@sgrsoft/vpe-react-sdk 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vpe-react-sdk.css +1 -1
- package/dist/vpe-react-sdk.es.js +8936 -8888
- package/dist/vpe-react-sdk.umd.js +11 -11
- package/package.json +1 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(xn,Hi){typeof exports=="object"&&typeof module<"u"?Hi(exports):typeof define=="function"&&define.amd?define(["exports"],Hi):(xn=typeof globalThis<"u"?globalThis:xn||self,Hi(xn.VpeReactSdk={}))})(this,(function(xn){"use strict";function Hi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ru={exports:{}},ji={};var M0;function I8(){if(M0)return ji;M0=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,c,h){var d=null;if(h!==void 0&&(d=""+h),c.key!==void 0&&(d=""+c.key),"key"in c){h={};for(var g in c)g!=="key"&&(h[g]=c[g])}else h=c;return c=h.ref,{$$typeof:a,type:r,key:d,ref:c!==void 0?c:null,props:h}}return ji.Fragment=i,ji.jsx=u,ji.jsxs=u,ji}var x0;function t4(){return x0||(x0=1,Ru.exports=I8()),Ru.exports}var A=t4(),Hu={exports:{}},Oi={},ju={exports:{}},Ou={};var V0;function e4(){return V0||(V0=1,(function(a){function i(F,N){var X=F.length;F.push(N);t:for(;0<X;){var ot=X-1>>>1,bt=F[ot];if(0<c(bt,N))F[ot]=N,F[X]=bt,X=ot;else break t}}function u(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var N=F[0],X=F.pop();if(X!==N){F[0]=X;t:for(var ot=0,bt=F.length,Wt=bt>>>1;ot<Wt;){var x=2*(ot+1)-1,G=F[x],P=x+1,tt=F[P];if(0>c(G,X))P<bt&&0>c(tt,G)?(F[ot]=tt,F[P]=X,ot=P):(F[ot]=G,F[x]=X,ot=x);else if(P<bt&&0>c(tt,X))F[ot]=tt,F[P]=X,ot=P;else break t}}return N}function c(F,N){var X=F.sortIndex-N.sortIndex;return X!==0?X:F.id-N.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var d=Date,g=d.now();a.unstable_now=function(){return d.now()-g}}var p=[],y=[],v=1,b=null,E=3,L=!1,O=!1,B=!1,U=!1,j=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function q(F){for(var N=u(y);N!==null;){if(N.callback===null)r(y);else if(N.startTime<=F)r(y),N.sortIndex=N.expirationTime,i(p,N);else break;N=u(y)}}function z(F){if(B=!1,q(F),!O)if(u(p)!==null)O=!0,k||(k=!0,$());else{var N=u(y);N!==null&&mt(z,N.startTime-F)}}var k=!1,J=-1,K=5,I=-1;function at(){return U?!0:!(a.unstable_now()-I<K)}function Rt(){if(U=!1,k){var F=a.unstable_now();I=F;var N=!0;try{t:{O=!1,B&&(B=!1,Y(J),J=-1),L=!0;var X=E;try{e:{for(q(F),b=u(p);b!==null&&!(b.expirationTime>F&&at());){var ot=b.callback;if(typeof ot=="function"){b.callback=null,E=b.priorityLevel;var bt=ot(b.expirationTime<=F);if(F=a.unstable_now(),typeof bt=="function"){b.callback=bt,q(F),N=!0;break e}b===u(p)&&r(p),q(F)}else r(p);b=u(p)}if(b!==null)N=!0;else{var Wt=u(y);Wt!==null&&mt(z,Wt.startTime-F),N=!1}}break t}finally{b=null,E=X,L=!1}N=void 0}}finally{N?$():k=!1}}}var $;if(typeof Q=="function")$=function(){Q(Rt)};else if(typeof MessageChannel<"u"){var ct=new MessageChannel,Mt=ct.port2;ct.port1.onmessage=Rt,$=function(){Mt.postMessage(null)}}else $=function(){j(Rt,0)};function mt(F,N){J=j(function(){F(a.unstable_now())},N)}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(F){F.callback=null},a.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<F?Math.floor(1e3/F):5},a.unstable_getCurrentPriorityLevel=function(){return E},a.unstable_next=function(F){switch(E){case 1:case 2:case 3:var N=3;break;default:N=E}var X=E;E=N;try{return F()}finally{E=X}},a.unstable_requestPaint=function(){U=!0},a.unstable_runWithPriority=function(F,N){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var X=E;E=F;try{return N()}finally{E=X}},a.unstable_scheduleCallback=function(F,N,X){var ot=a.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ot+X:ot):X=ot,F){case 1:var bt=-1;break;case 2:bt=250;break;case 5:bt=1073741823;break;case 4:bt=1e4;break;default:bt=5e3}return bt=X+bt,F={id:v++,callback:N,priorityLevel:F,startTime:X,expirationTime:bt,sortIndex:-1},X>ot?(F.sortIndex=X,i(y,F),u(p)===null&&F===u(y)&&(B?(Y(J),J=-1):B=!0,mt(z,X-ot))):(F.sortIndex=bt,i(p,F),O||L||(O=!0,k||(k=!0,$()))),F},a.unstable_shouldYield=at,a.unstable_wrapCallback=function(F){var N=E;return function(){var X=E;E=N;try{return F.apply(this,arguments)}finally{E=X}}}})(Ou)),Ou}var L0;function n4(){return L0||(L0=1,ju.exports=e4()),ju.exports}var zu={exports:{}},rt={},C0;function a4(){if(C0)return rt;C0=1;var a={};var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),L=Symbol.iterator;function O(x){return x===null||typeof x!="object"?null:(x=L&&x[L]||x["@@iterator"],typeof x=="function"?x:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,j={};function Y(x,G,P){this.props=x,this.context=G,this.refs=j,this.updater=P||B}Y.prototype.isReactComponent={},Y.prototype.setState=function(x,G){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,G,"setState")},Y.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function Q(){}Q.prototype=Y.prototype;function q(x,G,P){this.props=x,this.context=G,this.refs=j,this.updater=P||B}var z=q.prototype=new Q;z.constructor=q,U(z,Y.prototype),z.isPureReactComponent=!0;var k=Array.isArray;function J(){}var K={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function at(x,G,P){var tt=P.ref;return{$$typeof:i,type:x,key:G,ref:tt!==void 0?tt:null,props:P}}function Rt(x,G){return at(x.type,G,x.props)}function $(x){return typeof x=="object"&&x!==null&&x.$$typeof===i}function ct(x){var G={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(P){return G[P]})}var Mt=/\/+/g;function mt(x,G){return typeof x=="object"&&x!==null&&x.key!=null?ct(""+x.key):G.toString(36)}function F(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(J,J):(x.status="pending",x.then(function(G){x.status==="pending"&&(x.status="fulfilled",x.value=G)},function(G){x.status==="pending"&&(x.status="rejected",x.reason=G)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function N(x,G,P,tt,ut){var lt=typeof x;(lt==="undefined"||lt==="boolean")&&(x=null);var ht=!1;if(x===null)ht=!0;else switch(lt){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(x.$$typeof){case i:case u:ht=!0;break;case b:return ht=x._init,N(ht(x._payload),G,P,tt,ut)}}if(ht)return ut=ut(x),ht=tt===""?"."+mt(x,0):tt,k(ut)?(P="",ht!=null&&(P=ht.replace(Mt,"$&/")+"/"),N(ut,G,P,"",function(On){return On})):ut!=null&&($(ut)&&(ut=Rt(ut,P+(ut.key==null||x&&x.key===ut.key?"":(""+ut.key).replace(Mt,"$&/")+"/")+ht)),G.push(ut)),1;ht=0;var Jt=tt===""?".":tt+":";if(k(x))for(var Bt=0;Bt<x.length;Bt++)tt=x[Bt],lt=Jt+mt(tt,Bt),ht+=N(tt,G,P,lt,ut);else if(Bt=O(x),typeof Bt=="function")for(x=Bt.call(x),Bt=0;!(tt=x.next()).done;)tt=tt.value,lt=Jt+mt(tt,Bt++),ht+=N(tt,G,P,lt,ut);else if(lt==="object"){if(typeof x.then=="function")return N(F(x),G,P,tt,ut);throw G=String(x),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ht}function X(x,G,P){if(x==null)return x;var tt=[],ut=0;return N(x,tt,"","",function(lt){return G.call(P,lt,ut++)}),tt}function ot(x){if(x._status===-1){var G=x._result;G=G(),G.then(function(P){(x._status===0||x._status===-1)&&(x._status=1,x._result=P)},function(P){(x._status===0||x._status===-1)&&(x._status=2,x._result=P)}),x._status===-1&&(x._status=0,x._result=G)}if(x._status===1)return x._result.default;throw x._result}var bt=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(G))return}else if(typeof a=="object"&&typeof a.emit=="function"){a.emit("uncaughtException",x);return}console.error(x)},Wt={map:X,forEach:function(x,G,P){X(x,function(){G.apply(this,arguments)},P)},count:function(x){var G=0;return X(x,function(){G++}),G},toArray:function(x){return X(x,function(G){return G})||[]},only:function(x){if(!$(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return rt.Activity=E,rt.Children=Wt,rt.Component=Y,rt.Fragment=r,rt.Profiler=h,rt.PureComponent=q,rt.StrictMode=c,rt.Suspense=y,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,rt.__COMPILER_RUNTIME={__proto__:null,c:function(x){return K.H.useMemoCache(x)}},rt.cache=function(x){return function(){return x.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(x,G,P){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var tt=U({},x.props),ut=x.key;if(G!=null)for(lt in G.key!==void 0&&(ut=""+G.key),G)!I.call(G,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&G.ref===void 0||(tt[lt]=G[lt]);var lt=arguments.length-2;if(lt===1)tt.children=P;else if(1<lt){for(var ht=Array(lt),Jt=0;Jt<lt;Jt++)ht[Jt]=arguments[Jt+2];tt.children=ht}return at(x.type,ut,tt)},rt.createContext=function(x){return x={$$typeof:g,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},rt.createElement=function(x,G,P){var tt,ut={},lt=null;if(G!=null)for(tt in G.key!==void 0&&(lt=""+G.key),G)I.call(G,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(ut[tt]=G[tt]);var ht=arguments.length-2;if(ht===1)ut.children=P;else if(1<ht){for(var Jt=Array(ht),Bt=0;Bt<ht;Bt++)Jt[Bt]=arguments[Bt+2];ut.children=Jt}if(x&&x.defaultProps)for(tt in ht=x.defaultProps,ht)ut[tt]===void 0&&(ut[tt]=ht[tt]);return at(x,lt,ut)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(x){return{$$typeof:p,render:x}},rt.isValidElement=$,rt.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:ot}},rt.memo=function(x,G){return{$$typeof:v,type:x,compare:G===void 0?null:G}},rt.startTransition=function(x){var G=K.T,P={};K.T=P;try{var tt=x(),ut=K.S;ut!==null&&ut(P,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(J,bt)}catch(lt){bt(lt)}finally{G!==null&&P.types!==null&&(G.types=P.types),K.T=G}},rt.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},rt.use=function(x){return K.H.use(x)},rt.useActionState=function(x,G,P){return K.H.useActionState(x,G,P)},rt.useCallback=function(x,G){return K.H.useCallback(x,G)},rt.useContext=function(x){return K.H.useContext(x)},rt.useDebugValue=function(){},rt.useDeferredValue=function(x,G){return K.H.useDeferredValue(x,G)},rt.useEffect=function(x,G){return K.H.useEffect(x,G)},rt.useEffectEvent=function(x){return K.H.useEffectEvent(x)},rt.useId=function(){return K.H.useId()},rt.useImperativeHandle=function(x,G,P){return K.H.useImperativeHandle(x,G,P)},rt.useInsertionEffect=function(x,G){return K.H.useInsertionEffect(x,G)},rt.useLayoutEffect=function(x,G){return K.H.useLayoutEffect(x,G)},rt.useMemo=function(x,G){return K.H.useMemo(x,G)},rt.useOptimistic=function(x,G){return K.H.useOptimistic(x,G)},rt.useReducer=function(x,G,P){return K.H.useReducer(x,G,P)},rt.useRef=function(x){return K.H.useRef(x)},rt.useState=function(x){return K.H.useState(x)},rt.useSyncExternalStore=function(x,G,P){return K.H.useSyncExternalStore(x,G,P)},rt.useTransition=function(){return K.H.useTransition()},rt.version="19.2.1",rt}var D0;function Bu(){return D0||(D0=1,zu.exports=a4()),zu.exports}var wu={exports:{}},ue={};var R0;function i4(){if(R0)return ue;R0=1;var a=Bu();function i(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(p,y,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:p,containerInfo:y,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ue.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ue.createPortal=function(p,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return h(p,y,null,v)},ue.flushSync=function(p){var y=d.T,v=r.p;try{if(d.T=null,r.p=2,p)return p()}finally{d.T=y,r.p=v,r.d.f()}},ue.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},ue.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ue.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var v=y.as,b=g(v,y.crossOrigin),E=typeof y.integrity=="string"?y.integrity:void 0,L=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:E,fetchPriority:L}):v==="script"&&r.d.X(p,{crossOrigin:b,integrity:E,fetchPriority:L,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ue.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=g(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},ue.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,b=g(v,y.crossOrigin);r.d.L(p,v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ue.preloadModule=function(p,y){if(typeof p=="string")if(y){var v=g(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},ue.requestFormReset=function(p){r.d.r(p)},ue.unstable_batchedUpdates=function(p,y){return p(y)},ue.useFormState=function(p,y,v){return d.H.useFormState(p,y,v)},ue.useFormStatus=function(){return d.H.useHostTransitionStatus()},ue.version="19.2.1",ue}var H0;function l4(){if(H0)return wu.exports;H0=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(),wu.exports=i4(),wu.exports}var j0;function s4(){if(j0)return Oi;j0=1;var a={};var i=n4(),u=Bu(),r=l4();function c(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 h(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 g(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 p(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(c(188))}function v(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return y(s),t;if(o===l)return y(s),e;o=o.sibling}throw Error(c(188))}if(n.return!==l.return)n=s,l=o;else{for(var m=!1,S=s.child;S;){if(S===n){m=!0,n=s,l=o;break}if(S===l){m=!0,l=s,n=o;break}S=S.sibling}if(!m){for(S=o.child;S;){if(S===n){m=!0,n=o,l=s;break}if(S===l){m=!0,l=o,n=s;break}S=S.sibling}if(!m)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var E=Object.assign,L=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),q=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),at=Symbol.for("react.activity"),Rt=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function ct(t){return t===null||typeof t!="object"?null:(t=$&&t[$]||t["@@iterator"],typeof t=="function"?t:null)}var Mt=Symbol.for("react.client.reference");function mt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Mt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case Y:return"Profiler";case j:return"StrictMode";case k:return"Suspense";case J:return"SuspenseList";case at:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case B:return"Portal";case q:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case z:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K:return e=t.displayName||null,e!==null?e:mt(t.type)||"Memo";case I:e=t._payload,t=t._init;try{return mt(t(e))}catch{}}return null}var F=Array.isArray,N=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot={pending:!1,data:null,method:null,action:null},bt=[],Wt=-1;function x(t){return{current:t}}function G(t){0>Wt||(t.current=bt[Wt],bt[Wt]=null,Wt--)}function P(t,e){Wt++,bt[Wt]=t.current,t.current=e}var tt=x(null),ut=x(null),lt=x(null),ht=x(null);function Jt(t,e){switch(P(lt,e),P(ut,t),P(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?A8(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=A8(e),t=T8(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(tt),P(tt,t)}function Bt(){G(tt),G(ut),G(lt)}function On(t){t.memoizedState!==null&&P(ht,t);var e=tt.current,n=T8(e,t.type);e!==n&&(P(ut,t),P(tt,n))}function zn(t){ut.current===t&&(G(tt),G(ut)),ht.current===t&&(G(ht),Gl._currentValue=ot)}var Ka,$i;function sn(t){if(Ka===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ka=e&&e[1]||"",$i=-1<n.stack.indexOf(`
|
|
1
|
+
(function(rn,wi){typeof exports=="object"&&typeof module<"u"?wi(exports):typeof define=="function"&&define.amd?define(["exports"],wi):(rn=typeof globalThis<"u"?globalThis:rn||self,wi(rn.VpeReactSdk={}))})(this,(function(rn){"use strict";function wi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var _u={exports:{}},wa={};var Cf;function tg(){if(Cf)return wa;Cf=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var y in c)y!=="key"&&(f[y]=c[y])}else f=c;return c=f.ref,{$$typeof:i,type:o,key:d,ref:c!==void 0?c:null,props:f}}return wa.Fragment=a,wa.jsx=s,wa.jsxs=s,wa}var Df;function eg(){return Df||(Df=1,_u.exports=tg()),_u.exports}var S=eg(),Hu={exports:{}},Na={},Gu={exports:{}},Yu={};var zf;function ng(){return zf||(zf=1,(function(i){function a(P,U){var X=P.length;P.push(U);t:for(;0<X;){var ot=X-1>>>1,St=P[ot];if(0<c(St,U))P[ot]=U,P[X]=St,X=ot;else break t}}function s(P){return P.length===0?null:P[0]}function o(P){if(P.length===0)return null;var U=P[0],X=P.pop();if(X!==U){P[0]=X;t:for(var ot=0,St=P.length,$t=St>>>1;ot<$t;){var M=2*(ot+1)-1,q=P[M],F=M+1,I=P[F];if(0>c(q,X))F<St&&0>c(I,q)?(P[ot]=I,P[F]=X,ot=F):(P[ot]=q,P[M]=X,ot=M);else if(F<St&&0>c(I,X))P[ot]=I,P[F]=X,ot=F;else break t}}return U}function c(P,U){var X=P.sortIndex-U.sortIndex;return X!==0?X:P.id-U.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,y=d.now();i.unstable_now=function(){return d.now()-y}}var m=[],p=[],v=1,T=null,b=3,C=!1,w=!1,V=!1,H=!1,O=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function G(P){for(var U=s(p);U!==null;){if(U.callback===null)o(p);else if(U.startTime<=P)o(p),U.sortIndex=U.expirationTime,a(m,U);else break;U=s(p)}}function L(P){if(V=!1,G(P),!w)if(s(m)!==null)w=!0,K||(K=!0,W());else{var U=s(p);U!==null&&ft(L,U.startTime-P)}}var K=!1,J=-1,Z=5,tt=-1;function it(){return H?!0:!(i.unstable_now()-tt<Z)}function jt(){if(H=!1,K){var P=i.unstable_now();tt=P;var U=!0;try{t:{w=!1,V&&(V=!1,k(J),J=-1),C=!0;var X=b;try{e:{for(G(P),T=s(m);T!==null&&!(T.expirationTime>P&&it());){var ot=T.callback;if(typeof ot=="function"){T.callback=null,b=T.priorityLevel;var St=ot(T.expirationTime<=P);if(P=i.unstable_now(),typeof St=="function"){T.callback=St,G(P),U=!0;break e}T===s(m)&&o(m),G(P)}else o(m);T=s(m)}if(T!==null)U=!0;else{var $t=s(p);$t!==null&&ft(L,$t.startTime-P),U=!1}}break t}finally{T=null,b=X,C=!1}U=void 0}}finally{U?W():K=!1}}}var W;if(typeof Q=="function")W=function(){Q(jt)};else if(typeof MessageChannel<"u"){var st=new MessageChannel,Mt=st.port2;st.port1.onmessage=jt,W=function(){Mt.postMessage(null)}}else W=function(){O(jt,0)};function ft(P,U){J=O(function(){P(i.unstable_now())},U)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(P){P.callback=null},i.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<P?Math.floor(1e3/P):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(P){switch(b){case 1:case 2:case 3:var U=3;break;default:U=b}var X=b;b=U;try{return P()}finally{b=X}},i.unstable_requestPaint=function(){H=!0},i.unstable_runWithPriority=function(P,U){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var X=b;b=P;try{return U()}finally{b=X}},i.unstable_scheduleCallback=function(P,U,X){var ot=i.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ot+X:ot):X=ot,P){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=X+St,P={id:v++,callback:U,priorityLevel:P,startTime:X,expirationTime:St,sortIndex:-1},X>ot?(P.sortIndex=X,a(p,P),s(m)===null&&P===s(p)&&(V?(k(J),J=-1):V=!0,ft(L,X-ot))):(P.sortIndex=St,a(m,P),w||C||(w=!0,K||(K=!0,W()))),P},i.unstable_shouldYield=it,i.unstable_wrapCallback=function(P){var U=b;return function(){var X=b;b=U;try{return P.apply(this,arguments)}finally{b=X}}}})(Yu)),Yu}var Rf;function ig(){return Rf||(Rf=1,Gu.exports=ng()),Gu.exports}var qu={exports:{}},ut={},jf;function ag(){if(jf)return ut;jf=1;var i={};var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function w(M){return M===null||typeof M!="object"?null:(M=C&&M[C]||M["@@iterator"],typeof M=="function"?M:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,O={};function k(M,q,F){this.props=M,this.context=q,this.refs=O,this.updater=F||V}k.prototype.isReactComponent={},k.prototype.setState=function(M,q){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,q,"setState")},k.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function Q(){}Q.prototype=k.prototype;function G(M,q,F){this.props=M,this.context=q,this.refs=O,this.updater=F||V}var L=G.prototype=new Q;L.constructor=G,H(L,k.prototype),L.isPureReactComponent=!0;var K=Array.isArray;function J(){}var Z={H:null,A:null,T:null,S:null},tt=Object.prototype.hasOwnProperty;function it(M,q,F){var I=F.ref;return{$$typeof:a,type:M,key:q,ref:I!==void 0?I:null,props:F}}function jt(M,q){return it(M.type,q,M.props)}function W(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function st(M){var q={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(F){return q[F]})}var Mt=/\/+/g;function ft(M,q){return typeof M=="object"&&M!==null&&M.key!=null?st(""+M.key):q.toString(36)}function P(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(J,J):(M.status="pending",M.then(function(q){M.status==="pending"&&(M.status="fulfilled",M.value=q)},function(q){M.status==="pending"&&(M.status="rejected",M.reason=q)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function U(M,q,F,I,dt){var ht=typeof M;(ht==="undefined"||ht==="boolean")&&(M=null);var bt=!1;if(M===null)bt=!0;else switch(ht){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(M.$$typeof){case a:case s:bt=!0;break;case T:return bt=M._init,U(bt(M._payload),q,F,I,dt)}}if(bt)return dt=dt(M),bt=I===""?"."+ft(M,0):I,K(dt)?(F="",bt!=null&&(F=bt.replace(Mt,"$&/")+"/"),U(dt,q,F,"",function(fe){return fe})):dt!=null&&(W(dt)&&(dt=jt(dt,F+(dt.key==null||M&&M.key===dt.key?"":(""+dt.key).replace(Mt,"$&/")+"/")+bt)),q.push(dt)),1;bt=0;var ne=I===""?".":I+":";if(K(M))for(var _t=0;_t<M.length;_t++)I=M[_t],ht=ne+ft(I,_t),bt+=U(I,q,F,ht,dt);else if(_t=w(M),typeof _t=="function")for(M=_t.call(M),_t=0;!(I=M.next()).done;)I=I.value,ht=ne+ft(I,_t++),bt+=U(I,q,F,ht,dt);else if(ht==="object"){if(typeof M.then=="function")return U(P(M),q,F,I,dt);throw q=String(M),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return bt}function X(M,q,F){if(M==null)return M;var I=[],dt=0;return U(M,I,"","",function(ht){return q.call(F,ht,dt++)}),I}function ot(M){if(M._status===-1){var q=M._result;q=q(),q.then(function(F){(M._status===0||M._status===-1)&&(M._status=1,M._result=F)},function(F){(M._status===0||M._status===-1)&&(M._status=2,M._result=F)}),M._status===-1&&(M._status=0,M._result=q)}if(M._status===1)return M._result.default;throw M._result}var St=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(q))return}else if(typeof i=="object"&&typeof i.emit=="function"){i.emit("uncaughtException",M);return}console.error(M)},$t={map:X,forEach:function(M,q,F){X(M,function(){q.apply(this,arguments)},F)},count:function(M){var q=0;return X(M,function(){q++}),q},toArray:function(M){return X(M,function(q){return q})||[]},only:function(M){if(!W(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ut.Activity=b,ut.Children=$t,ut.Component=k,ut.Fragment=o,ut.Profiler=f,ut.PureComponent=G,ut.StrictMode=c,ut.Suspense=p,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ut.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Z.H.useMemoCache(M)}},ut.cache=function(M){return function(){return M.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(M,q,F){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var I=H({},M.props),dt=M.key;if(q!=null)for(ht in q.key!==void 0&&(dt=""+q.key),q)!tt.call(q,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&q.ref===void 0||(I[ht]=q[ht]);var ht=arguments.length-2;if(ht===1)I.children=F;else if(1<ht){for(var bt=Array(ht),ne=0;ne<ht;ne++)bt[ne]=arguments[ne+2];I.children=bt}return it(M.type,dt,I)},ut.createContext=function(M){return M={$$typeof:y,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:d,_context:M},M},ut.createElement=function(M,q,F){var I,dt={},ht=null;if(q!=null)for(I in q.key!==void 0&&(ht=""+q.key),q)tt.call(q,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(dt[I]=q[I]);var bt=arguments.length-2;if(bt===1)dt.children=F;else if(1<bt){for(var ne=Array(bt),_t=0;_t<bt;_t++)ne[_t]=arguments[_t+2];dt.children=ne}if(M&&M.defaultProps)for(I in bt=M.defaultProps,bt)dt[I]===void 0&&(dt[I]=bt[I]);return it(M,ht,dt)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(M){return{$$typeof:m,render:M}},ut.isValidElement=W,ut.lazy=function(M){return{$$typeof:T,_payload:{_status:-1,_result:M},_init:ot}},ut.memo=function(M,q){return{$$typeof:v,type:M,compare:q===void 0?null:q}},ut.startTransition=function(M){var q=Z.T,F={};Z.T=F;try{var I=M(),dt=Z.S;dt!==null&&dt(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(J,St)}catch(ht){St(ht)}finally{q!==null&&F.types!==null&&(q.types=F.types),Z.T=q}},ut.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ut.use=function(M){return Z.H.use(M)},ut.useActionState=function(M,q,F){return Z.H.useActionState(M,q,F)},ut.useCallback=function(M,q){return Z.H.useCallback(M,q)},ut.useContext=function(M){return Z.H.useContext(M)},ut.useDebugValue=function(){},ut.useDeferredValue=function(M,q){return Z.H.useDeferredValue(M,q)},ut.useEffect=function(M,q){return Z.H.useEffect(M,q)},ut.useEffectEvent=function(M){return Z.H.useEffectEvent(M)},ut.useId=function(){return Z.H.useId()},ut.useImperativeHandle=function(M,q,F){return Z.H.useImperativeHandle(M,q,F)},ut.useInsertionEffect=function(M,q){return Z.H.useInsertionEffect(M,q)},ut.useLayoutEffect=function(M,q){return Z.H.useLayoutEffect(M,q)},ut.useMemo=function(M,q){return Z.H.useMemo(M,q)},ut.useOptimistic=function(M,q){return Z.H.useOptimistic(M,q)},ut.useReducer=function(M,q,F){return Z.H.useReducer(M,q,F)},ut.useRef=function(M){return Z.H.useRef(M)},ut.useState=function(M){return Z.H.useState(M)},ut.useSyncExternalStore=function(M,q,F){return Z.H.useSyncExternalStore(M,q,F)},ut.useTransition=function(){return Z.H.useTransition()},ut.version="19.2.1",ut}var Of;function ku(){return Of||(Of=1,qu.exports=ag()),qu.exports}var Xu={exports:{}},oe={};var Bf;function lg(){if(Bf)return oe;Bf=1;var i=ku();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(a(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 f(m,p,v){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:T==null?null:""+T,children:m,containerInfo:p,implementation:v}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,oe.createPortal=function(m,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return f(m,p,null,v)},oe.flushSync=function(m){var p=d.T,v=o.p;try{if(d.T=null,o.p=2,m)return m()}finally{d.T=p,o.p=v,o.d.f()}},oe.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},oe.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},oe.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var v=p.as,T=y(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:T,integrity:b,fetchPriority:C}):v==="script"&&o.d.X(m,{crossOrigin:T,integrity:b,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},oe.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=y(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},oe.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,T=y(v,p.crossOrigin);o.d.L(m,v,{crossOrigin:T,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})}},oe.preloadModule=function(m,p){if(typeof m=="string")if(p){var v=y(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},oe.requestFormReset=function(m){o.d.r(m)},oe.unstable_batchedUpdates=function(m,p){return m(p)},oe.useFormState=function(m,p,v){return d.H.useFormState(m,p,v)},oe.useFormStatus=function(){return d.H.useHostTransitionStatus()},oe.version="19.2.1",oe}var Vf;function sg(){if(Vf)return Xu.exports;Vf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Xu.exports=lg(),Xu.exports}var Lf;function ug(){if(Lf)return Na;Lf=1;var i={};var a=ig(),s=ku(),o=sg();function c(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 f(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 y(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 p(t){if(d(t)!==t)throw Error(c(188))}function v(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,l=e;;){var u=n.return;if(u===null)break;var r=u.alternate;if(r===null){if(l=u.return,l!==null){n=l;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===n)return p(u),t;if(r===l)return p(u),e;r=r.sibling}throw Error(c(188))}if(n.return!==l.return)n=u,l=r;else{for(var h=!1,g=u.child;g;){if(g===n){h=!0,n=u,l=r;break}if(g===l){h=!0,l=u,n=r;break}g=g.sibling}if(!h){for(g=r.child;g;){if(g===n){h=!0,n=r,l=u;break}if(g===l){h=!0,l=r,n=u;break}g=g.sibling}if(!h)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function T(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=T(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),it=Symbol.for("react.activity"),jt=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var Mt=Symbol.for("react.client.reference");function ft(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Mt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case k:return"Profiler";case O:return"StrictMode";case K:return"Suspense";case J:return"SuspenseList";case it:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case G:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case L:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return e=t.displayName||null,e!==null?e:ft(t.type)||"Memo";case tt:e=t._payload,t=t._init;try{return ft(t(e))}catch{}}return null}var P=Array.isArray,U=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot={pending:!1,data:null,method:null,action:null},St=[],$t=-1;function M(t){return{current:t}}function q(t){0>$t||(t.current=St[$t],St[$t]=null,$t--)}function F(t,e){$t++,St[$t]=t.current,t.current=e}var I=M(null),dt=M(null),ht=M(null),bt=M(null);function ne(t,e){switch(F(ht,e),F(dt,t),F(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Ev(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Ev(e),t=Mv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(I),F(I,t)}function _t(){q(I),q(dt),q(ht)}function fe(t){t.memoizedState!==null&&F(bt,t);var e=I.current,n=Mv(e,t.type);e!==n&&(F(dt,t),F(I,n))}function de(t){dt.current===t&&(q(I),q(dt)),bt.current===t&&(q(bt),Zl._currentValue=ot)}var Me,Fi;function an(t){if(Me===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Me=e&&e[1]||"",Fi=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),
|
|
5
|
-
`);for(
|
|
6
|
-
`+
|
|
3
|
+
`+Me+t+Fi}var Ji=!1;function pi(t,e){if(!t||Ji)return"";Ji=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(B){var R=B}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(B){R=B}t.call(Y.prototype)}}else{try{throw Error()}catch(B){R=B}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(B){if(B&&R&&typeof B.stack=="string")return[B.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),h=r[0],g=r[1];if(h&&g){var x=h.split(`
|
|
4
|
+
`),z=g.split(`
|
|
5
|
+
`);for(u=l=0;l<x.length&&!x[l].includes("DetermineComponentFrameRoot");)l++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(l===x.length||u===z.length)for(l=x.length-1,u=z.length-1;1<=l&&0<=u&&x[l]!==z[u];)u--;for(;1<=l&&0<=u;l--,u--)if(x[l]!==z[u]){if(l!==1||u!==1)do if(l--,u--,0>u||x[l]!==z[u]){var N=`
|
|
6
|
+
`+x[l].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=l&&0<=u);break}}}finally{Ji=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?an(n):""}function bs(t,e){switch(t.tag){case 26:case 27:case 5:return an(t.type);case 16:return an("Lazy");case 13:return t.child!==e&&e!==null?an("Suspense Fallback"):an("Suspense");case 19:return an("SuspenseList");case 0:case 15:return pi(t.type,!1);case 11:return pi(t.type.render,!1);case 1:return pi(t.type,!0);case 31:return an("Activity");default:return""}}function el(t){try{var e="",n=null;do e+=bs(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
|
-
`+l.stack}}var ro=Object.prototype.hasOwnProperty,oo=i.unstable_scheduleCallback,co=i.unstable_cancelCallback,p3=i.unstable_shouldYield,y3=i.unstable_requestPaint,Ae=i.unstable_now,g3=i.unstable_getCurrentPriorityLevel,th=i.unstable_ImmediatePriority,eh=i.unstable_UserBlockingPriority,hs=i.unstable_NormalPriority,v3=i.unstable_LowPriority,nh=i.unstable_IdlePriority,S3=i.log,b3=i.unstable_setDisableYieldValue,Ii=null,Te=null;function Bn(t){if(typeof S3=="function"&&b3(t),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(Ii,t)}catch{}}var Me=Math.clz32?Math.clz32:T3,E3=Math.log,A3=Math.LN2;function T3(t){return t>>>=0,t===0?32:31-(E3(t)/A3|0)|0}var ms=256,ps=262144,ys=4194304;function ha(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 gs(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var s=0,o=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var S=l&134217727;return S!==0?(l=S&~o,l!==0?s=ha(l):(m&=S,m!==0?s=ha(m):n||(n=S&~t,n!==0&&(s=ha(n))))):(S=l&~o,S!==0?s=ha(S):m!==0?s=ha(m):n||(n=l&~t,n!==0&&(s=ha(n)))),s===0?0:e!==0&&e!==s&&(e&o)===0&&(o=s&-s,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:s}function tl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function M3(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 ah(){var t=ys;return ys<<=1,(ys&62914560)===0&&(ys=4194304),t}function fo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function el(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function x3(t,e,n,l,s,o){var m=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var S=t.entanglements,T=t.expirationTimes,D=t.hiddenUpdates;for(n=m&~n;0<n;){var w=31-Me(n),_=1<<w;S[w]=0,T[w]=-1;var R=D[w];if(R!==null)for(D[w]=null,w=0;w<R.length;w++){var H=R[w];H!==null&&(H.lane&=-536870913)}n&=~_}l!==0&&ih(t,l,0),o!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=o&~(m&~e))}function ih(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Me(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function lh(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Me(n),s=1<<l;s&e|t[l]&e&&(t[l]|=e),n&=~s}}function sh(t,e){var n=e&-e;return n=(n&42)!==0?1:ho(n),(n&(t.suspendedLanes|e))!==0?0:n}function ho(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 mo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function uh(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:K8(t.type))}function rh(t,e){var n=X.p;try{return X.p=t,e()}finally{X.p=n}}var wn=Math.random().toString(36).slice(2),ne="__reactFiber$"+wn,he="__reactProps$"+wn,Fa="__reactContainer$"+wn,po="__reactEvents$"+wn,V3="__reactListeners$"+wn,L3="__reactHandles$"+wn,oh="__reactResources$"+wn,nl="__reactMarker$"+wn;function yo(t){delete t[ne],delete t[he],delete t[po],delete t[V3],delete t[L3]}function Qa(t){var e=t[ne];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Fa]||n[ne]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=R8(t);t!==null;){if(n=t[ne])return n;t=R8(t)}return e}t=n,n=t.parentNode}return null}function Pa(t){if(t=t[ne]||t[Fa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function al(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Ja(t){var e=t[oh];return e||(e=t[oh]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[nl]=!0}var ch=new Set,fh={};function ma(t,e){$a(t,e),$a(t+"Capture",e)}function $a(t,e){for(fh[t]=e,t=0;t<e.length;t++)ch.add(e[t])}var C3=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]*$"),dh={},hh={};function D3(t){return ro.call(hh,t)?!0:ro.call(dh,t)?!1:C3.test(t)?hh[t]=!0:(dh[t]=!0,!1)}function vs(t,e,n){if(D3(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 Ss(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 un(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 Be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function mh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function R3(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 s=l.get,o=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(m){n=""+m,o.call(this,m)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function go(t){if(!t._valueTracker){var e=mh(t)?"checked":"value";t._valueTracker=R3(t,e,""+t[e])}}function ph(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=mh(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function bs(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 H3=/[\n"\\]/g;function we(t){return t.replace(H3,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vo(t,e,n,l,s,o,m,S){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Be(e)):t.value!==""+Be(e)&&(t.value=""+Be(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?So(t,m,Be(e)):n!=null?So(t,m,Be(n)):l!=null&&t.removeAttribute("value"),s==null&&o!=null&&(t.defaultChecked=!!o),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+Be(S):t.removeAttribute("name")}function yh(t,e,n,l,s,o,m,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)){go(t);return}n=n!=null?""+Be(n):"",e=e!=null?""+Be(e):n,S||e===t.value||(t.value=e),t.defaultValue=e}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=S?t.checked:!!l,t.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),go(t)}function So(t,e,n){e==="number"&&bs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Wa(t,e,n,l){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Be(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,l&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function gh(t,e,n){if(e!=null&&(e=""+Be(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Be(n):""}function vh(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(F(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Be(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),go(t)}function Ia(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var j3=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 Sh(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||j3.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function bh(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(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 s in e)l=e[s],e.hasOwnProperty(s)&&n[s]!==l&&Sh(t,s,l)}else for(var o in e)e.hasOwnProperty(o)&&Sh(t,o,e[o])}function bo(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 O3=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"]]),z3=/^[\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 Es(t){return z3.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function rn(){}var Eo=null;function Ao(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ti=null,ei=null;function Eh(t){var e=Pa(t);if(e&&(t=e.stateNode)){var n=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(vo(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="'+we(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var s=l[he]||null;if(!s)throw Error(c(90));vo(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&ph(l)}break t;case"textarea":gh(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Wa(t,!!n.multiple,e,!1)}}}var To=!1;function Ah(t,e,n){if(To)return t(e,n);To=!0;try{var l=t(e);return l}finally{if(To=!1,(ti!==null||ei!==null)&&(ru(),ti&&(e=ti,t=ei,ei=ti=null,Eh(e),t)))for(e=0;e<t.length;e++)Eh(t[e])}}function il(t,e){var n=t.stateNode;if(n===null)return null;var l=n[he]||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(c(231,e,typeof n));return n}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mo=!1;if(on)try{var ll={};Object.defineProperty(ll,"passive",{get:function(){Mo=!0}}),window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{Mo=!1}var Nn=null,xo=null,As=null;function Th(){if(As)return As;var t,e=xo,n=e.length,l,s="value"in Nn?Nn.value:Nn.textContent,o=s.length;for(t=0;t<n&&e[t]===s[t];t++);var m=n-t;for(l=1;l<=m&&e[n-l]===s[o-l];l++);return As=s.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 Ms(){return!0}function Mh(){return!1}function me(t){function e(n,l,s,o,m){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=o,this.target=m,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)?Ms:Mh,this.isPropagationStopped=Mh,this}return E(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=Ms)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ms)},persist:function(){},isPersistent:Ms}),e}var pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=me(pa),sl=E({},pa,{view:0,detail:0}),B3=me(sl),Vo,Lo,ul,Vs=E({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Do,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!==ul&&(ul&&t.type==="mousemove"?(Vo=t.screenX-ul.screenX,Lo=t.screenY-ul.screenY):Lo=Vo=0,ul=t),Vo)},movementY:function(t){return"movementY"in t?t.movementY:Lo}}),xh=me(Vs),w3=E({},Vs,{dataTransfer:0}),N3=me(w3),Z3=E({},sl,{relatedTarget:0}),Co=me(Z3),U3=E({},pa,{animationName:0,elapsedTime:0,pseudoElement:0}),_3=me(U3),G3=E({},pa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),q3=me(G3),Y3=E({},pa,{data:0}),Vh=me(Y3),X3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k3={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"},K3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F3(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=K3[t])?!!e[t]:!1}function Do(){return F3}var Q3=E({},sl,{key:function(t){if(t.key){var e=X3[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"?k3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Do,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}}),P3=me(Q3),J3=E({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lh=me(J3),$3=E({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Do}),W3=me($3),I3=E({},pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),t5=me(I3),e5=E({},Vs,{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}),n5=me(e5),a5=E({},pa,{newState:0,oldState:0}),i5=me(a5),l5=[9,13,27,32],Ro=on&&"CompositionEvent"in window,rl=null;on&&"documentMode"in document&&(rl=document.documentMode);var s5=on&&"TextEvent"in window&&!rl,Ch=on&&(!Ro||rl&&8<rl&&11>=rl),Dh=" ",Rh=!1;function Hh(t,e){switch(t){case"keyup":return l5.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ni=!1;function u5(t,e){switch(t){case"compositionend":return jh(e);case"keypress":return e.which!==32?null:(Rh=!0,Dh);case"textInput":return t=e.data,t===Dh&&Rh?null:t;default:return null}}function r5(t,e){if(ni)return t==="compositionend"||!Ro&&Hh(t,e)?(t=Th(),As=xo=Nn=null,ni=!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 Ch&&e.locale!=="ko"?null:e.data;default:return null}}var o5={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 Oh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!o5[t.type]:e==="textarea"}function zh(t,e,n,l){ti?ei?ei.push(l):ei=[l]:ti=l,e=pu(e,"onChange"),0<e.length&&(n=new xs("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ol=null,cl=null;function c5(t){y8(t,0)}function Ls(t){var e=al(t);if(ph(e))return t}function Bh(t,e){if(t==="change")return e}var wh=!1;if(on){var Ho;if(on){var jo="oninput"in document;if(!jo){var Nh=document.createElement("div");Nh.setAttribute("oninput","return;"),jo=typeof Nh.oninput=="function"}Ho=jo}else Ho=!1;wh=Ho&&(!document.documentMode||9<document.documentMode)}function Zh(){ol&&(ol.detachEvent("onpropertychange",Uh),cl=ol=null)}function Uh(t){if(t.propertyName==="value"&&Ls(cl)){var e=[];zh(e,cl,t,Ao(t)),Ah(c5,e)}}function f5(t,e,n){t==="focusin"?(Zh(),ol=e,cl=n,ol.attachEvent("onpropertychange",Uh)):t==="focusout"&&Zh()}function d5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ls(cl)}function h5(t,e){if(t==="click")return Ls(e)}function m5(t,e){if(t==="input"||t==="change")return Ls(e)}function p5(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xe=typeof Object.is=="function"?Object.is:p5;function fl(t,e){if(xe(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 s=n[l];if(!ro.call(e,s)||!xe(t[s],e[s]))return!1}return!0}function _h(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Gh(t,e){var n=_h(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=_h(n)}}function qh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Yh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=bs(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=bs(t.document)}return e}function Oo(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 y5=on&&"documentMode"in document&&11>=document.documentMode,ai=null,zo=null,dl=null,Bo=!1;function Xh(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bo||ai==null||ai!==bs(l)||(l=ai,"selectionStart"in l&&Oo(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}),dl&&fl(dl,l)||(dl=l,l=pu(zo,"onSelect"),0<l.length&&(e=new xs("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=ai)))}function ya(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ii={animationend:ya("Animation","AnimationEnd"),animationiteration:ya("Animation","AnimationIteration"),animationstart:ya("Animation","AnimationStart"),transitionrun:ya("Transition","TransitionRun"),transitionstart:ya("Transition","TransitionStart"),transitioncancel:ya("Transition","TransitionCancel"),transitionend:ya("Transition","TransitionEnd")},wo={},kh={};on&&(kh=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function ga(t){if(wo[t])return wo[t];if(!ii[t])return t;var e=ii[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in kh)return wo[t]=e[n];return t}var Kh=ga("animationend"),Fh=ga("animationiteration"),Qh=ga("animationstart"),g5=ga("transitionrun"),v5=ga("transitionstart"),S5=ga("transitioncancel"),Ph=ga("transitionend"),Jh=new Map,No="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(" ");No.push("scrollEnd");function Fe(t,e){Jh.set(t,e),ma(e,[t])}var Cs=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 a=="object"&&typeof a.emit=="function"){a.emit("uncaughtException",t);return}console.error(t)},Ne=[],li=0,Zo=0;function Ds(){for(var t=li,e=Zo=li=0;e<t;){var n=Ne[e];Ne[e++]=null;var l=Ne[e];Ne[e++]=null;var s=Ne[e];Ne[e++]=null;var o=Ne[e];if(Ne[e++]=null,l!==null&&s!==null){var m=l.pending;m===null?s.next=s:(s.next=m.next,m.next=s),l.pending=s}o!==0&&$h(n,s,o)}}function Rs(t,e,n,l){Ne[li++]=t,Ne[li++]=e,Ne[li++]=n,Ne[li++]=l,Zo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Uo(t,e,n,l){return Rs(t,e,n,l),Hs(t)}function va(t,e){return Rs(t,null,null,e),Hs(t)}function $h(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var s=!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||(s=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,s&&e!==null&&(s=31-Me(n),t=o.hiddenUpdates,l=t[s],l===null?t[s]=[e]:l.push(e),e.lane=n|536870912),o):null}function Hs(t){if(50<zl)throw zl=0,Qc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var si={};function b5(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 Ve(t,e,n,l){return new b5(t,e,n,l)}function _o(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cn(t,e){var n=t.alternate;return n===null?(n=Ve(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 Wh(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 js(t,e,n,l,s,o){var m=0;if(l=t,typeof t=="function")_o(t)&&(m=1);else if(typeof t=="string")m=xS(t,n,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case at:return t=Ve(31,n,e,s),t.elementType=at,t.lanes=o,t;case U:return Sa(n.children,s,o,e);case j:m=8,s|=24;break;case Y:return t=Ve(12,n,e,s|2),t.elementType=Y,t.lanes=o,t;case k:return t=Ve(13,n,e,s),t.elementType=k,t.lanes=o,t;case J:return t=Ve(19,n,e,s),t.elementType=J,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case q:m=10;break t;case Q:m=9;break t;case z:m=11;break t;case K:m=14;break t;case I:m=16,l=null;break t}m=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=Ve(m,n,e,s),e.elementType=t,e.type=l,e.lanes=o,e}function Sa(t,e,n,l){return t=Ve(7,t,l,e),t.lanes=n,t}function Go(t,e,n){return t=Ve(6,t,null,e),t.lanes=n,t}function Ih(t){var e=Ve(18,null,null,0);return e.stateNode=t,e}function qo(t,e,n){return e=Ve(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var tm=new WeakMap;function Ze(t,e){if(typeof t=="object"&&t!==null){var n=tm.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Id(e)},tm.set(t,e),e)}return{value:t,source:e,stack:Id(e)}}var ui=[],ri=0,Os=null,hl=0,Ue=[],_e=0,Zn=null,Ie=1,tn="";function fn(t,e){ui[ri++]=hl,ui[ri++]=Os,Os=t,hl=e}function em(t,e,n){Ue[_e++]=Ie,Ue[_e++]=tn,Ue[_e++]=Zn,Zn=t;var l=Ie;t=tn;var s=32-Me(l)-1;l&=~(1<<s),n+=1;var o=32-Me(e)+s;if(30<o){var m=s-s%5;o=(l&(1<<m)-1).toString(32),l>>=m,s-=m,Ie=1<<32-Me(e)+s|n<<s|l,tn=o+t}else Ie=1<<o|n<<s|l,tn=t}function Yo(t){t.return!==null&&(fn(t,1),em(t,1,0))}function Xo(t){for(;t===Os;)Os=ui[--ri],ui[ri]=null,hl=ui[--ri],ui[ri]=null;for(;t===Zn;)Zn=Ue[--_e],Ue[_e]=null,tn=Ue[--_e],Ue[_e]=null,Ie=Ue[--_e],Ue[_e]=null}function nm(t,e){Ue[_e++]=Ie,Ue[_e++]=tn,Ue[_e++]=Zn,Ie=e.id,tn=e.overflow,Zn=t}var ae=null,jt=null,St=!1,Un=null,Ge=!1,ko=Error(c(519));function _n(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ml(Ze(e,t)),ko}function am(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ne]=t,e[he]=l,n){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(n=0;n<wl.length;n++)yt(wl[n],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),yh(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),vh(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||b8(e.textContent,n)?(l.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),l.onScroll!=null&&yt("scroll",e),l.onScrollEnd!=null&&yt("scrollend",e),l.onClick!=null&&(e.onclick=rn),e=!0):e=!1,e||_n(t,!0)}function im(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:ae=ae.return}}function oi(t){if(t!==ae)return!1;if(!St)return im(t),St=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||o0(t.type,t.memoizedProps)),n=!n),n&&jt&&_n(t),im(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));jt=D8(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));jt=D8(t)}else e===27?(e=jt,ta(t.type)?(t=m0,m0=null,jt=t):jt=e):jt=ae?Ye(t.stateNode.nextSibling):null;return!0}function ba(){jt=ae=null,St=!1}function Ko(){var t=Un;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),Un=null),t}function ml(t){Un===null?Un=[t]:Un.push(t)}var Fo=x(null),Ea=null,dn=null;function Gn(t,e,n){P(Fo,e._currentValue),e._currentValue=n}function hn(t){t._currentValue=Fo.current,G(Fo)}function Qo(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 Po(t,e,n,l){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){var m=s.child;o=o.firstContext;t:for(;o!==null;){var S=o;o=s;for(var T=0;T<e.length;T++)if(S.context===e[T]){o.lanes|=n,S=o.alternate,S!==null&&(S.lanes|=n),Qo(o.return,n,t),l||(m=null);break t}o=S.next}}else if(s.tag===18){if(m=s.return,m===null)throw Error(c(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Qo(m,n,t),m=null}else m=s.child;if(m!==null)m.return=s;else for(m=s;m!==null;){if(m===t){m=null;break}if(s=m.sibling,s!==null){s.return=m.return,m=s;break}m=m.return}s=m}}function ci(t,e,n,l){t=null;for(var s=e,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var m=s.alternate;if(m===null)throw Error(c(387));if(m=m.memoizedProps,m!==null){var S=s.type;xe(s.pendingProps.value,m.value)||(t!==null?t.push(S):t=[S])}}else if(s===ht.current){if(m=s.alternate,m===null)throw Error(c(387));m.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(Gl):t=[Gl])}s=s.return}t!==null&&Po(e,t,n,l),e.flags|=262144}function zs(t){for(t=t.firstContext;t!==null;){if(!xe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Aa(t){Ea=t,dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ie(t){return lm(Ea,t)}function Bs(t,e){return Ea===null&&Aa(t),lm(t,e)}function lm(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},dn===null){if(t===null)throw Error(c(308));dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else dn=dn.next=e;return n}var E5=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()})}},A5=i.unstable_scheduleCallback,T5=i.unstable_NormalPriority,Xt={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jo(){return{controller:new E5,data:new Map,refCount:0}}function pl(t){t.refCount--,t.refCount===0&&A5(T5,function(){t.controller.abort()})}var yl=null,$o=0,fi=0,di=null;function M5(t,e){if(yl===null){var n=yl=[];$o=0,fi=t0(),di={status:"pending",value:void 0,then:function(l){n.push(l)}}}return $o++,e.then(sm,sm),e}function sm(){if(--$o===0&&yl!==null){di!==null&&(di.status="fulfilled");var t=yl;yl=null,fi=0,di=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function x5(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var um=N.S;N.S=function(t,e){X6=Ae(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&M5(t,e),um!==null&&um(t,e)};var Ta=x(null);function Wo(){var t=Ta.current;return t!==null?t:Ht.pooledCache}function ws(t,e){e===null?P(Ta,Ta.current):P(Ta,e.pool)}function rm(){var t=Wo();return t===null?null:{parent:Xt._currentValue,pool:t}}var hi=Error(c(460)),Io=Error(c(474)),Ns=Error(c(542)),Zs={then:function(){}};function om(t){return t=t.status,t==="fulfilled"||t==="rejected"}function cm(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(rn,rn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,dm(t),t;default:if(typeof e.status=="string")e.then(rn,rn);else{if(t=Ht,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=l}},function(l){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,dm(t),t}throw xa=e,hi}}function Ma(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xa=n,hi):n}}var xa=null;function fm(){if(xa===null)throw Error(c(459));var t=xa;return xa=null,t}function dm(t){if(t===hi||t===Ns)throw Error(c(483))}var mi=null,gl=0;function Us(t){var e=gl;return gl+=1,mi===null&&(mi=[]),cm(mi,t,e)}function vl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function _s(t,e){throw e.$$typeof===L?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function hm(t){function e(V,M){if(t){var C=V.deletions;C===null?(V.deletions=[M],V.flags|=16):C.push(M)}}function n(V,M){if(!t)return null;for(;M!==null;)e(V,M),M=M.sibling;return null}function l(V){for(var M=new Map;V!==null;)V.key!==null?M.set(V.key,V):M.set(V.index,V),V=V.sibling;return M}function s(V,M){return V=cn(V,M),V.index=0,V.sibling=null,V}function o(V,M,C){return V.index=C,t?(C=V.alternate,C!==null?(C=C.index,C<M?(V.flags|=67108866,M):C):(V.flags|=67108866,M)):(V.flags|=1048576,M)}function m(V){return t&&V.alternate===null&&(V.flags|=67108866),V}function S(V,M,C,Z){return M===null||M.tag!==6?(M=Go(C,V.mode,Z),M.return=V,M):(M=s(M,C),M.return=V,M)}function T(V,M,C,Z){var nt=C.type;return nt===U?w(V,M,C.props.children,Z,C.key):M!==null&&(M.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===I&&Ma(nt)===M.type)?(M=s(M,C.props),vl(M,C),M.return=V,M):(M=js(C.type,C.key,C.props,null,V.mode,Z),vl(M,C),M.return=V,M)}function D(V,M,C,Z){return M===null||M.tag!==4||M.stateNode.containerInfo!==C.containerInfo||M.stateNode.implementation!==C.implementation?(M=qo(C,V.mode,Z),M.return=V,M):(M=s(M,C.children||[]),M.return=V,M)}function w(V,M,C,Z,nt){return M===null||M.tag!==7?(M=Sa(C,V.mode,Z,nt),M.return=V,M):(M=s(M,C),M.return=V,M)}function _(V,M,C){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Go(""+M,V.mode,C),M.return=V,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case O:return C=js(M.type,M.key,M.props,null,V.mode,C),vl(C,M),C.return=V,C;case B:return M=qo(M,V.mode,C),M.return=V,M;case I:return M=Ma(M),_(V,M,C)}if(F(M)||ct(M))return M=Sa(M,V.mode,C,null),M.return=V,M;if(typeof M.then=="function")return _(V,Us(M),C);if(M.$$typeof===q)return _(V,Bs(V,M),C);_s(V,M)}return null}function R(V,M,C,Z){var nt=M!==null?M.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return nt!==null?null:S(V,M,""+C,Z);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case O:return C.key===nt?T(V,M,C,Z):null;case B:return C.key===nt?D(V,M,C,Z):null;case I:return C=Ma(C),R(V,M,C,Z)}if(F(C)||ct(C))return nt!==null?null:w(V,M,C,Z,null);if(typeof C.then=="function")return R(V,M,Us(C),Z);if(C.$$typeof===q)return R(V,M,Bs(V,C),Z);_s(V,C)}return null}function H(V,M,C,Z,nt){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return V=V.get(C)||null,S(M,V,""+Z,nt);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case O:return V=V.get(Z.key===null?C:Z.key)||null,T(M,V,Z,nt);case B:return V=V.get(Z.key===null?C:Z.key)||null,D(M,V,Z,nt);case I:return Z=Ma(Z),H(V,M,C,Z,nt)}if(F(Z)||ct(Z))return V=V.get(C)||null,w(M,V,Z,nt,null);if(typeof Z.then=="function")return H(V,M,C,Us(Z),nt);if(Z.$$typeof===q)return H(V,M,C,Bs(M,Z),nt);_s(M,Z)}return null}function W(V,M,C,Z){for(var nt=null,Et=null,et=M,dt=M=0,vt=null;et!==null&&dt<C.length;dt++){et.index>dt?(vt=et,et=null):vt=et.sibling;var At=R(V,et,C[dt],Z);if(At===null){et===null&&(et=vt);break}t&&et&&At.alternate===null&&e(V,et),M=o(At,M,dt),Et===null?nt=At:Et.sibling=At,Et=At,et=vt}if(dt===C.length)return n(V,et),St&&fn(V,dt),nt;if(et===null){for(;dt<C.length;dt++)et=_(V,C[dt],Z),et!==null&&(M=o(et,M,dt),Et===null?nt=et:Et.sibling=et,Et=et);return St&&fn(V,dt),nt}for(et=l(et);dt<C.length;dt++)vt=H(et,V,dt,C[dt],Z),vt!==null&&(t&&vt.alternate!==null&&et.delete(vt.key===null?dt:vt.key),M=o(vt,M,dt),Et===null?nt=vt:Et.sibling=vt,Et=vt);return t&&et.forEach(function(la){return e(V,la)}),St&&fn(V,dt),nt}function it(V,M,C,Z){if(C==null)throw Error(c(151));for(var nt=null,Et=null,et=M,dt=M=0,vt=null,At=C.next();et!==null&&!At.done;dt++,At=C.next()){et.index>dt?(vt=et,et=null):vt=et.sibling;var la=R(V,et,At.value,Z);if(la===null){et===null&&(et=vt);break}t&&et&&la.alternate===null&&e(V,et),M=o(la,M,dt),Et===null?nt=la:Et.sibling=la,Et=la,et=vt}if(At.done)return n(V,et),St&&fn(V,dt),nt;if(et===null){for(;!At.done;dt++,At=C.next())At=_(V,At.value,Z),At!==null&&(M=o(At,M,dt),Et===null?nt=At:Et.sibling=At,Et=At);return St&&fn(V,dt),nt}for(et=l(et);!At.done;dt++,At=C.next())At=H(et,V,dt,At.value,Z),At!==null&&(t&&At.alternate!==null&&et.delete(At.key===null?dt:At.key),M=o(At,M,dt),Et===null?nt=At:Et.sibling=At,Et=At);return t&&et.forEach(function(wS){return e(V,wS)}),St&&fn(V,dt),nt}function Dt(V,M,C,Z){if(typeof C=="object"&&C!==null&&C.type===U&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case O:t:{for(var nt=C.key;M!==null;){if(M.key===nt){if(nt=C.type,nt===U){if(M.tag===7){n(V,M.sibling),Z=s(M,C.props.children),Z.return=V,V=Z;break t}}else if(M.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===I&&Ma(nt)===M.type){n(V,M.sibling),Z=s(M,C.props),vl(Z,C),Z.return=V,V=Z;break t}n(V,M);break}else e(V,M);M=M.sibling}C.type===U?(Z=Sa(C.props.children,V.mode,Z,C.key),Z.return=V,V=Z):(Z=js(C.type,C.key,C.props,null,V.mode,Z),vl(Z,C),Z.return=V,V=Z)}return m(V);case B:t:{for(nt=C.key;M!==null;){if(M.key===nt)if(M.tag===4&&M.stateNode.containerInfo===C.containerInfo&&M.stateNode.implementation===C.implementation){n(V,M.sibling),Z=s(M,C.children||[]),Z.return=V,V=Z;break t}else{n(V,M);break}else e(V,M);M=M.sibling}Z=qo(C,V.mode,Z),Z.return=V,V=Z}return m(V);case I:return C=Ma(C),Dt(V,M,C,Z)}if(F(C))return W(V,M,C,Z);if(ct(C)){if(nt=ct(C),typeof nt!="function")throw Error(c(150));return C=nt.call(C),it(V,M,C,Z)}if(typeof C.then=="function")return Dt(V,M,Us(C),Z);if(C.$$typeof===q)return Dt(V,M,Bs(V,C),Z);_s(V,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,M!==null&&M.tag===6?(n(V,M.sibling),Z=s(M,C),Z.return=V,V=Z):(n(V,M),Z=Go(C,V.mode,Z),Z.return=V,V=Z),m(V)):n(V,M)}return function(V,M,C,Z){try{gl=0;var nt=Dt(V,M,C,Z);return mi=null,nt}catch(et){if(et===hi||et===Ns)throw et;var Et=Ve(29,et,null,V.mode);return Et.lanes=Z,Et.return=V,Et}finally{}}}var Va=hm(!0),mm=hm(!1),qn=!1;function tc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(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 Yn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Xn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Tt&2)!==0){var s=l.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),l.pending=e,e=Hs(t),$h(t,null,n),e}return Rs(t,l,e,n),Hs(t)}function Sl(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,lh(t,n)}}function nc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?s=o=e:o=o.next=e}else s=o=e;n={baseState:l.baseState,firstBaseUpdate:s,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 ac=!1;function bl(){if(ac){var t=di;if(t!==null)throw t}}function El(t,e,n,l){ac=!1;var s=t.updateQueue;qn=!1;var o=s.firstBaseUpdate,m=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var T=S,D=T.next;T.next=null,m===null?o=D:m.next=D,m=T;var w=t.alternate;w!==null&&(w=w.updateQueue,S=w.lastBaseUpdate,S!==m&&(S===null?w.firstBaseUpdate=D:S.next=D,w.lastBaseUpdate=T))}if(o!==null){var _=s.baseState;m=0,w=D=T=null,S=o;do{var R=S.lane&-536870913,H=R!==S.lane;if(H?(gt&R)===R:(l&R)===R){R!==0&&R===fi&&(ac=!0),w!==null&&(w=w.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var W=t,it=S;R=e;var Dt=n;switch(it.tag){case 1:if(W=it.payload,typeof W=="function"){_=W.call(Dt,_,R);break t}_=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=it.payload,R=typeof W=="function"?W.call(Dt,_,R):W,R==null)break t;_=E({},_,R);break t;case 2:qn=!0}}R=S.callback,R!==null&&(t.flags|=64,H&&(t.flags|=8192),H=s.callbacks,H===null?s.callbacks=[R]:H.push(R))}else H={lane:R,tag:S.tag,payload:S.payload,callback:S.callback,next:null},w===null?(D=w=H,T=_):w=w.next=H,m|=R;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;H=S,S=H.next,H.next=null,s.lastBaseUpdate=H,s.shared.pending=null}}while(!0);w===null&&(T=_),s.baseState=T,s.firstBaseUpdate=D,s.lastBaseUpdate=w,o===null&&(s.shared.lanes=0),Pn|=m,t.lanes=m,t.memoizedState=_}}function pm(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function ym(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)pm(n[t],e)}var pi=x(null),Gs=x(0);function gm(t,e){t=An,P(Gs,t),P(pi,e),An=t|e.baseLanes}function ic(){P(Gs,An),P(pi,pi.current)}function lc(){An=Gs.current,G(pi),G(Gs)}var Le=x(null),qe=null;function kn(t){var e=t.alternate;P(Gt,Gt.current&1),P(Le,t),qe===null&&(e===null||pi.current!==null||e.memoizedState!==null)&&(qe=t)}function sc(t){P(Gt,Gt.current),P(Le,t),qe===null&&(qe=t)}function vm(t){t.tag===22?(P(Gt,Gt.current),P(Le,t),qe===null&&(qe=t)):Kn()}function Kn(){P(Gt,Gt.current),P(Le,Le.current)}function Ce(t){G(Le),qe===t&&(qe=null),G(Gt)}var Gt=x(0);function qs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||d0(n)||h0(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 mn=0,ft=null,Lt=null,kt=null,Ys=!1,yi=!1,La=!1,Xs=0,Al=0,gi=null,V5=0;function Ut(){throw Error(c(321))}function uc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!xe(t[n],e[n]))return!1;return!0}function rc(t,e,n,l,s,o){return mn=o,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,N.H=t===null||t.memoizedState===null?e6:Tc,La=!1,o=n(l,s),La=!1,yi&&(o=bm(e,n,l,s)),Sm(t),o}function Sm(t){N.H=xl;var e=Lt!==null&&Lt.next!==null;if(mn=0,kt=Lt=ft=null,Ys=!1,Al=0,gi=null,e)throw Error(c(300));t===null||Kt||(t=t.dependencies,t!==null&&zs(t)&&(Kt=!0))}function bm(t,e,n,l){ft=t;var s=0;do{if(yi&&(gi=null),Al=0,yi=!1,25<=s)throw Error(c(301));if(s+=1,kt=Lt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=n6,o=e(n,l)}while(yi);return o}function L5(){var t=N.H,e=t.useState()[0];return e=typeof e.then=="function"?Tl(e):e,t=t.useState()[0],(Lt!==null?Lt.memoizedState:null)!==t&&(ft.flags|=1024),e}function oc(){var t=Xs!==0;return Xs=0,t}function cc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function fc(t){if(Ys){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ys=!1}mn=0,kt=Lt=ft=null,yi=!1,Al=Xs=0,gi=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?ft.memoizedState=kt=t:kt=kt.next=t,kt}function qt(){if(Lt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Lt.next;var e=kt===null?ft.memoizedState:kt.next;if(e!==null)kt=e,Lt=t;else{if(t===null)throw ft.alternate===null?Error(c(467)):Error(c(310));Lt=t,t={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},kt===null?ft.memoizedState=kt=t:kt=kt.next=t}return kt}function ks(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tl(t){var e=Al;return Al+=1,gi===null&&(gi=[]),t=cm(gi,t,e),e=ft,(kt===null?e.memoizedState:kt.next)===null&&(e=e.alternate,N.H=e===null||e.memoizedState===null?e6:Tc),t}function Ks(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Tl(t);if(t.$$typeof===q)return ie(t)}throw Error(c(438,String(t)))}function dc(t){var e=null,n=ft.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ft.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ks(),ft.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]=Rt;return e.index++,n}function pn(t,e){return typeof e=="function"?e(t):e}function Fs(t){var e=qt();return hc(e,Lt,t)}function hc(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var s=t.baseQueue,o=l.pending;if(o!==null){if(s!==null){var m=s.next;s.next=o.next,o.next=m}e.baseQueue=s=o,l.pending=null}if(o=t.baseState,s===null)t.memoizedState=o;else{e=s.next;var S=m=null,T=null,D=e,w=!1;do{var _=D.lane&-536870913;if(_!==D.lane?(gt&_)===_:(mn&_)===_){var R=D.revertLane;if(R===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),_===fi&&(w=!0);else if((mn&R)===R){D=D.next,R===fi&&(w=!0);continue}else _={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(S=T=_,m=o):T=T.next=_,ft.lanes|=R,Pn|=R;_=D.action,La&&n(o,_),o=D.hasEagerState?D.eagerState:n(o,_)}else R={lane:_,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(S=T=R,m=o):T=T.next=R,ft.lanes|=_,Pn|=_;D=D.next}while(D!==null&&D!==e);if(T===null?m=o:T.next=S,!xe(o,t.memoizedState)&&(Kt=!0,w&&(n=di,n!==null)))throw n;t.memoizedState=o,t.baseState=m,t.baseQueue=T,l.lastRenderedState=o}return s===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function mc(t){var e=qt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,s=n.pending,o=e.memoizedState;if(s!==null){n.pending=null;var m=s=s.next;do o=t(o,m.action),m=m.next;while(m!==s);xe(o,e.memoizedState)||(Kt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function Em(t,e,n){var l=ft,s=qt(),o=St;if(o){if(n===void 0)throw Error(c(407));n=n()}else n=e();var m=!xe((Lt||s).memoizedState,n);if(m&&(s.memoizedState=n,Kt=!0),s=s.queue,gc(Mm.bind(null,l,s,t),[t]),s.getSnapshot!==e||m||kt!==null&&kt.memoizedState.tag&1){if(l.flags|=2048,vi(9,{destroy:void 0},Tm.bind(null,l,s,n,e),null),Ht===null)throw Error(c(349));o||(mn&127)!==0||Am(l,e,n)}return n}function Am(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ft.updateQueue,e===null?(e=ks(),ft.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Tm(t,e,n,l){e.value=n,e.getSnapshot=l,xm(e)&&Vm(t)}function Mm(t,e,n){return n(function(){xm(e)&&Vm(t)})}function xm(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!xe(t,n)}catch{return!0}}function Vm(t){var e=va(t,2);e!==null&&Se(e,t,2)}function pc(t){var e=ce();if(typeof t=="function"){var n=t;if(t=n(),La){Bn(!0);try{n()}finally{Bn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:t},e}function Lm(t,e,n,l){return t.baseState=n,hc(t,Lt,typeof l=="function"?l:pn)}function C5(t,e,n,l,s){if(Js(t))throw Error(c(485));if(t=e.action,t!==null){var o={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};N.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,Cm(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Cm(t,e){var n=e.action,l=e.payload,s=t.state;if(e.isTransition){var o=N.T,m={};N.T=m;try{var S=n(s,l),T=N.S;T!==null&&T(m,S),Dm(t,e,S)}catch(D){yc(t,e,D)}finally{o!==null&&m.types!==null&&(o.types=m.types),N.T=o}}else try{o=n(s,l),Dm(t,e,o)}catch(D){yc(t,e,D)}}function Dm(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Rm(t,e,l)},function(l){return yc(t,e,l)}):Rm(t,e,n)}function Rm(t,e,n){e.status="fulfilled",e.value=n,Hm(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Cm(t,n)))}function yc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Hm(e),e=e.next;while(e!==l)}t.action=null}function Hm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function jm(t,e){return e}function Om(t,e){if(St){var n=Ht.formState;if(n!==null){t:{var l=ft;if(St){if(jt){e:{for(var s=jt,o=Ge;s.nodeType!==8;){if(!o){s=null;break e}if(s=Ye(s.nextSibling),s===null){s=null;break e}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){jt=Ye(s.nextSibling),l=s.data==="F!";break t}}_n(l)}l=!1}l&&(e=n[0])}}return n=ce(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jm,lastRenderedState:e},n.queue=l,n=Wm.bind(null,ft,l),l.dispatch=n,l=pc(!1),o=Ac.bind(null,ft,!1,l.queue),l=ce(),s={state:e,dispatch:null,action:t,pending:null},l.queue=s,n=C5.bind(null,ft,s,o,n),s.dispatch=n,l.memoizedState=t,[e,n,!1]}function zm(t){var e=qt();return Bm(e,Lt,t)}function Bm(t,e,n){if(e=hc(t,e,jm)[0],t=Fs(pn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Tl(e)}catch(m){throw m===hi?Ns:m}else l=e;e=qt();var s=e.queue,o=s.dispatch;return n!==e.memoizedState&&(ft.flags|=2048,vi(9,{destroy:void 0},D5.bind(null,s,n),null)),[l,o,t]}function D5(t,e){t.action=e}function wm(t){var e=qt(),n=Lt;if(n!==null)return Bm(e,n,t);qt(),e=e.memoizedState,n=qt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function vi(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ft.updateQueue,e===null&&(e=ks(),ft.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 Nm(){return qt().memoizedState}function Qs(t,e,n,l){var s=ce();ft.flags|=t,s.memoizedState=vi(1|e,{destroy:void 0},n,l===void 0?null:l)}function Ps(t,e,n,l){var s=qt();l=l===void 0?null:l;var o=s.memoizedState.inst;Lt!==null&&l!==null&&uc(l,Lt.memoizedState.deps)?s.memoizedState=vi(e,o,n,l):(ft.flags|=t,s.memoizedState=vi(1|e,o,n,l))}function Zm(t,e){Qs(8390656,8,t,e)}function gc(t,e){Ps(2048,8,t,e)}function R5(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=ks(),ft.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Um(t){var e=qt().memoizedState;return R5({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function _m(t,e){return Ps(4,2,t,e)}function Gm(t,e){return Ps(4,4,t,e)}function qm(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 Ym(t,e,n){n=n!=null?n.concat([t]):null,Ps(4,4,qm.bind(null,e,t),n)}function vc(){}function Xm(t,e){var n=qt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&uc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function km(t,e){var n=qt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&uc(e,l[1]))return l[0];if(l=t(),La){Bn(!0);try{t()}finally{Bn(!1)}}return n.memoizedState=[l,e],l}function Sc(t,e,n){return n===void 0||(mn&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=K6(),ft.lanes|=t,Pn|=t,n)}function Km(t,e,n,l){return xe(n,e)?n:pi.current!==null?(t=Sc(t,n,l),xe(t,e)||(Kt=!0),t):(mn&42)===0||(mn&1073741824)!==0&&(gt&261930)===0?(Kt=!0,t.memoizedState=n):(t=K6(),ft.lanes|=t,Pn|=t,e)}function Fm(t,e,n,l,s){var o=X.p;X.p=o!==0&&8>o?o:8;var m=N.T,S={};N.T=S,Ac(t,!1,e,n);try{var T=s(),D=N.S;if(D!==null&&D(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var w=x5(T,l);Ml(t,e,w,He(t))}else Ml(t,e,l,He(t))}catch(_){Ml(t,e,{then:function(){},status:"rejected",reason:_},He())}finally{X.p=o,m!==null&&S.types!==null&&(m.types=S.types),N.T=m}}function H5(){}function bc(t,e,n,l){if(t.tag!==5)throw Error(c(476));var s=Qm(t).queue;Fm(t,s,e,ot,n===null?H5:function(){return Pm(t),n(l)})}function Qm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ot,baseState:ot,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:ot},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Pm(t){var e=Qm(t);e.next===null&&(e=t.alternate.memoizedState),Ml(t,e.next.queue,{},He())}function Ec(){return ie(Gl)}function Jm(){return qt().memoizedState}function $m(){return qt().memoizedState}function j5(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=He();t=Yn(n);var l=Xn(e,t,n);l!==null&&(Se(l,e,n),Sl(l,e,n)),e={cache:Jo()},t.payload=e;return}e=e.return}}function O5(t,e,n){var l=He();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Js(t)?Im(e,n):(n=Uo(t,e,n,l),n!==null&&(Se(n,t,l),t6(n,e,l)))}function Wm(t,e,n){var l=He();Ml(t,e,n,l)}function Ml(t,e,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Js(t))Im(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var m=e.lastRenderedState,S=o(m,n);if(s.hasEagerState=!0,s.eagerState=S,xe(S,m))return Rs(t,e,s,0),Ht===null&&Ds(),!1}catch{}finally{}if(n=Uo(t,e,s,l),n!==null)return Se(n,t,l),t6(n,e,l),!0}return!1}function Ac(t,e,n,l){if(l={lane:2,revertLane:t0(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Js(t)){if(e)throw Error(c(479))}else e=Uo(t,n,l,2),e!==null&&Se(e,t,2)}function Js(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Im(t,e){yi=Ys=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function t6(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,lh(t,n)}}var xl={readContext:ie,use:Ks,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};xl.useEffectEvent=Ut;var e6={readContext:ie,use:Ks,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:ie,useEffect:Zm,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Qs(4194308,4,qm.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Qs(4194308,4,t,e)},useInsertionEffect:function(t,e){Qs(4,2,t,e)},useMemo:function(t,e){var n=ce();e=e===void 0?null:e;var l=t();if(La){Bn(!0);try{t()}finally{Bn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ce();if(n!==void 0){var s=n(e);if(La){Bn(!0);try{n(e)}finally{Bn(!1)}}}else s=e;return l.memoizedState=l.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},l.queue=t,t=t.dispatch=O5.bind(null,ft,t),[l.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=pc(t);var e=t.queue,n=Wm.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:vc,useDeferredValue:function(t,e){var n=ce();return Sc(n,t,e)},useTransition:function(){var t=pc(!1);return t=Fm.bind(null,ft,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ft,s=ce();if(St){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Ht===null)throw Error(c(349));(gt&127)!==0||Am(l,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,Zm(Mm.bind(null,l,o,t),[t]),l.flags|=2048,vi(9,{destroy:void 0},Tm.bind(null,l,o,n,e),null),n},useId:function(){var t=ce(),e=Ht.identifierPrefix;if(St){var n=tn,l=Ie;n=(l&~(1<<32-Me(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Xs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=V5++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ec,useFormState:Om,useActionState:Om,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ac.bind(null,ft,!0,n),n.dispatch=e,[t,e]},useMemoCache:dc,useCacheRefresh:function(){return ce().memoizedState=j5.bind(null,ft)},useEffectEvent:function(t){var e=ce(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Tc={readContext:ie,use:Ks,useCallback:Xm,useContext:ie,useEffect:gc,useImperativeHandle:Ym,useInsertionEffect:_m,useLayoutEffect:Gm,useMemo:km,useReducer:Fs,useRef:Nm,useState:function(){return Fs(pn)},useDebugValue:vc,useDeferredValue:function(t,e){var n=qt();return Km(n,Lt.memoizedState,t,e)},useTransition:function(){var t=Fs(pn)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:Tl(t),e]},useSyncExternalStore:Em,useId:Jm,useHostTransitionStatus:Ec,useFormState:zm,useActionState:zm,useOptimistic:function(t,e){var n=qt();return Lm(n,Lt,t,e)},useMemoCache:dc,useCacheRefresh:$m};Tc.useEffectEvent=Um;var n6={readContext:ie,use:Ks,useCallback:Xm,useContext:ie,useEffect:gc,useImperativeHandle:Ym,useInsertionEffect:_m,useLayoutEffect:Gm,useMemo:km,useReducer:mc,useRef:Nm,useState:function(){return mc(pn)},useDebugValue:vc,useDeferredValue:function(t,e){var n=qt();return Lt===null?Sc(n,t,e):Km(n,Lt.memoizedState,t,e)},useTransition:function(){var t=mc(pn)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:Tl(t),e]},useSyncExternalStore:Em,useId:Jm,useHostTransitionStatus:Ec,useFormState:wm,useActionState:wm,useOptimistic:function(t,e){var n=qt();return Lt!==null?Lm(n,Lt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:dc,useCacheRefresh:$m};n6.useEffectEvent=Um;function Mc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:E({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var xc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=He(),s=Yn(l);s.payload=e,n!=null&&(s.callback=n),e=Xn(t,s,l),e!==null&&(Se(e,t,l),Sl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=He(),s=Yn(l);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Xn(t,s,l),e!==null&&(Se(e,t,l),Sl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=He(),l=Yn(n);l.tag=2,e!=null&&(l.callback=e),e=Xn(t,l,n),e!==null&&(Se(e,t,n),Sl(e,t,n))}};function a6(t,e,n,l,s,o,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,o,m):e.prototype&&e.prototype.isPureReactComponent?!fl(n,l)||!fl(s,o):!0}function i6(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&&xc.enqueueReplaceState(e,e.state,null)}function Ca(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=E({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function l6(t){Cs(t)}function s6(t){console.error(t)}function u6(t){Cs(t)}function $s(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function r6(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Vc(t,e,n){return n=Yn(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(t,e)},n}function o6(t){return t=Yn(t),t.tag=3,t}function c6(t,e,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=l.value;t.payload=function(){return s(o)},t.callback=function(){r6(e,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){r6(e,n,l),typeof s!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function z5(t,e,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&ci(e,n,s,!0),n=Le.current,n!==null){switch(n.tag){case 31:case 13:return qe===null?ou():n.alternate===null&&_t===0&&(_t=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===Zs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),$c(t,l,s)),!1;case 22:return n.flags|=65536,l===Zs?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)),$c(t,l,s)),!1}throw Error(c(435,n.tag))}return $c(t,l,s),ou(),!1}if(St)return e=Le.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,l!==ko&&(t=Error(c(422),{cause:l}),ml(Ze(t,n)))):(l!==ko&&(e=Error(c(423),{cause:l}),ml(Ze(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,l=Ze(l,n),s=Vc(t.stateNode,l,s),nc(t,s),_t!==4&&(_t=2)),!1;var o=Error(c(520),{cause:l});if(o=Ze(o,n),Ol===null?Ol=[o]:Ol.push(o),_t!==4&&(_t=2),e===null)return!0;l=Ze(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Vc(n.stateNode,l,t),nc(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"&&(Jn===null||!Jn.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=o6(s),c6(s,t,n,l),nc(n,s),!1}n=n.return}while(n!==null);return!1}var Lc=Error(c(461)),Kt=!1;function le(t,e,n,l){e.child=t===null?mm(e,null,n,l):Va(e,t.child,n,l)}function f6(t,e,n,l,s){n=n.render;var o=e.ref;if("ref"in l){var m={};for(var S in l)S!=="ref"&&(m[S]=l[S])}else m=l;return Aa(e),l=rc(t,e,n,m,o,s),S=oc(),t!==null&&!Kt?(cc(t,e,s),yn(t,e,s)):(St&&S&&Yo(e),e.flags|=1,le(t,e,l,s),e.child)}function d6(t,e,n,l,s){if(t===null){var o=n.type;return typeof o=="function"&&!_o(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,h6(t,e,o,l,s)):(t=js(n.type,null,l,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!Bc(t,s)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:fl,n(m,l)&&t.ref===e.ref)return yn(t,e,s)}return e.flags|=1,t=cn(o,l),t.ref=e.ref,t.return=e,e.child=t}function h6(t,e,n,l,s){if(t!==null){var o=t.memoizedProps;if(fl(o,l)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=l=o,Bc(t,s))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,yn(t,e,s)}return Cc(t,e,n,l,s)}function m6(t,e,n,l){var s=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,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~o}else l=0,e.child=null;return p6(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ws(e,o!==null?o.cachePool:null),o!==null?gm(e,o):ic(),vm(e);else return l=e.lanes=536870912,p6(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(ws(e,o.cachePool),gm(e,o),Kn(),e.memoizedState=null):(t!==null&&ws(e,null),ic(),Kn());return le(t,e,s,n),e.child}function Vl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function p6(t,e,n,l,s){var o=Wo();return o=o===null?null:{parent:Xt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&ws(e,null),ic(),vm(e),t!==null&&ci(t,e,l,!0),e.childLanes=s,null}function Ws(t,e){return e=tu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function y6(t,e,n){return Va(e,t.child,null,n),t=Ws(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function B5(t,e,n){var l=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(St){if(l.mode==="hidden")return t=Ws(e,l),e.lanes=536870912,Vl(null,t);if(sc(e),(t=jt)?(t=C8(t,Ge),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=Ih(t),n.return=e,e.child=n,ae=e,jt=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 m=o.dehydrated;if(sc(e),s)if(e.flags&256)e.flags&=-257,e=y6(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Kt||ci(t,e,n,!1),s=(n&t.childLanes)!==0,Kt||s){if(l=Ht,l!==null&&(m=sh(l,n),m!==0&&m!==o.retryLane))throw o.retryLane=m,va(t,m),Se(l,t,m),Lc;ou(),e=y6(t,e,n)}else t=o.treeContext,jt=Ye(m.nextSibling),ae=e,St=!0,Un=null,Ge=!1,t!==null&&nm(e,t),e=Ws(e,l),e.flags|=4096;return e}return t=cn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Is(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(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Cc(t,e,n,l,s){return Aa(e),n=rc(t,e,n,l,void 0,s),l=oc(),t!==null&&!Kt?(cc(t,e,s),yn(t,e,s)):(St&&l&&Yo(e),e.flags|=1,le(t,e,n,s),e.child)}function g6(t,e,n,l,s,o){return Aa(e),e.updateQueue=null,n=bm(e,l,n,s),Sm(t),l=oc(),t!==null&&!Kt?(cc(t,e,o),yn(t,e,o)):(St&&l&&Yo(e),e.flags|=1,le(t,e,n,o),e.child)}function v6(t,e,n,l,s){if(Aa(e),e.stateNode===null){var o=si,m=n.contextType;typeof m=="object"&&m!==null&&(o=ie(m)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=xc,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},tc(e),m=n.contextType,o.context=typeof m=="object"&&m!==null?ie(m):si,o.state=e.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Mc(e,n,m,l),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&xc.enqueueReplaceState(o,o.state,null),El(e,l,o,s),bl(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){o=e.stateNode;var S=e.memoizedProps,T=Ca(n,S);o.props=T;var D=o.context,w=n.contextType;m=si,typeof w=="object"&&w!==null&&(m=ie(w));var _=n.getDerivedStateFromProps;w=typeof _=="function"||typeof o.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,w||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(S||D!==m)&&i6(e,o,l,m),qn=!1;var R=e.memoizedState;o.state=R,El(e,l,o,s),bl(),D=e.memoizedState,S||R!==D||qn?(typeof _=="function"&&(Mc(e,n,_,l),D=e.memoizedState),(T=qn||a6(e,n,T,l,R,D,m))?(w||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=D),o.props=l,o.state=D,o.context=m,l=T):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,ec(t,e),m=e.memoizedProps,w=Ca(n,m),o.props=w,_=e.pendingProps,R=o.context,D=n.contextType,T=si,typeof D=="object"&&D!==null&&(T=ie(D)),S=n.getDerivedStateFromProps,(D=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==_||R!==T)&&i6(e,o,l,T),qn=!1,R=e.memoizedState,o.state=R,El(e,l,o,s),bl();var H=e.memoizedState;m!==_||R!==H||qn||t!==null&&t.dependencies!==null&&zs(t.dependencies)?(typeof S=="function"&&(Mc(e,n,S,l),H=e.memoizedState),(w=qn||a6(e,n,w,l,R,H,T)||t!==null&&t.dependencies!==null&&zs(t.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,H,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,H,T)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=H),o.props=l,o.state=H,o.context=T,l=w):(typeof o.componentDidUpdate!="function"||m===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,Is(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=Va(e,t.child,null,s),e.child=Va(e,null,n,s)):le(t,e,n,s),e.memoizedState=o.state,t=e.child):t=yn(t,e,s),t}function S6(t,e,n,l){return ba(),e.flags|=256,le(t,e,n,l),e.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(t){return{baseLanes:t,cachePool:rm()}}function Hc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function b6(t,e,n){var l=e.pendingProps,s=!1,o=(e.flags&128)!==0,m;if((m=o)||(m=t!==null&&t.memoizedState===null?!1:(Gt.current&2)!==0),m&&(s=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(St){if(s?kn(e):Kn(),(t=jt)?(t=C8(t,Ge),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=Ih(t),n.return=e,e.child=n,ae=e,jt=null)):t=null,t===null)throw _n(e);return h0(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,s?(Kn(),s=e.mode,S=tu({mode:"hidden",children:S},s),l=Sa(l,s,n,null),S.return=e,l.return=e,S.sibling=l,e.child=S,l=e.child,l.memoizedState=Rc(n),l.childLanes=Hc(t,m,n),e.memoizedState=Dc,Vl(null,l)):(kn(e),jc(e,S))}var T=t.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(o)e.flags&256?(kn(e),e.flags&=-257,e=Oc(t,e,n)):e.memoizedState!==null?(Kn(),e.child=t.child,e.flags|=128,e=null):(Kn(),S=l.fallback,s=e.mode,l=tu({mode:"visible",children:l.children},s),S=Sa(S,s,n,null),S.flags|=2,l.return=e,S.return=e,l.sibling=S,e.child=l,Va(e,t.child,null,n),l=e.child,l.memoizedState=Rc(n),l.childLanes=Hc(t,m,n),e.memoizedState=Dc,e=Vl(null,l));else if(kn(e),h0(S)){if(m=S.nextSibling&&S.nextSibling.dataset,m)var D=m.dgst;m=D,l=Error(c(419)),l.stack="",l.digest=m,ml({value:l,source:null,stack:null}),e=Oc(t,e,n)}else if(Kt||ci(t,e,n,!1),m=(n&t.childLanes)!==0,Kt||m){if(m=Ht,m!==null&&(l=sh(m,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,va(t,l),Se(m,t,l),Lc;d0(S)||ou(),e=Oc(t,e,n)}else d0(S)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,jt=Ye(S.nextSibling),ae=e,St=!0,Un=null,Ge=!1,t!==null&&nm(e,t),e=jc(e,l.children),e.flags|=4096);return e}return s?(Kn(),S=l.fallback,s=e.mode,T=t.child,D=T.sibling,l=cn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,D!==null?S=cn(D,S):(S=Sa(S,s,n,null),S.flags|=2),S.return=e,l.return=e,l.sibling=S,e.child=l,Vl(null,l),l=e.child,S=t.child.memoizedState,S===null?S=Rc(n):(s=S.cachePool,s!==null?(T=Xt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=rm(),S={baseLanes:S.baseLanes|n,cachePool:s}),l.memoizedState=S,l.childLanes=Hc(t,m,n),e.memoizedState=Dc,Vl(t.child,l)):(kn(e),n=t.child,t=n.sibling,n=cn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=n,e.memoizedState=null,n)}function jc(t,e){return e=tu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function tu(t,e){return t=Ve(22,t,null,e),t.lanes=0,t}function Oc(t,e,n){return Va(e,t.child,null,n),t=jc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function E6(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Qo(t.return,e,n)}function zc(t,e,n,l,s,o){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:o}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=s,m.treeForkCount=o)}function A6(t,e,n){var l=e.pendingProps,s=l.revealOrder,o=l.tail;l=l.children;var m=Gt.current,S=(m&2)!==0;if(S?(m=m&1|2,e.flags|=128):m&=1,P(Gt,m),le(t,e,l,n),l=St?hl:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&E6(t,n,e);else if(t.tag===19)E6(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(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&qs(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),zc(e,!1,s,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&qs(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}zc(e,!0,n,null,o,l);break;case"together":zc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function yn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Pn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ci(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Bc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&zs(t)))}function w5(t,e,n){switch(e.tag){case 3:Jt(e,e.stateNode.containerInfo),Gn(e,Xt,t.memoizedState.cache),ba();break;case 27:case 5:On(e);break;case 4:Jt(e,e.stateNode.containerInfo);break;case 10:Gn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,sc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(kn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?b6(t,e,n):(kn(e),t=yn(t,e,n),t!==null?t.sibling:null);kn(e);break;case 19:var s=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(ci(t,e,n,!1),l=(n&e.childLanes)!==0),s){if(l)return A6(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),P(Gt,Gt.current),l)break;return null;case 22:return e.lanes=0,m6(t,e,n,e.pendingProps);case 24:Gn(e,Xt,t.memoizedState.cache)}return yn(t,e,n)}function T6(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Bc(t,n)&&(e.flags&128)===0)return Kt=!1,w5(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,St&&(e.flags&1048576)!==0&&em(e,hl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Ma(e.elementType),e.type=t,typeof t=="function")_o(t)?(l=Ca(t,l),e.tag=1,e=v6(null,e,t,l,n)):(e.tag=0,e=Cc(null,e,t,l,n));else{if(t!=null){var s=t.$$typeof;if(s===z){e.tag=11,e=f6(null,e,t,l,n);break t}else if(s===K){e.tag=14,e=d6(null,e,t,l,n);break t}}throw e=mt(t)||t,Error(c(306,e,""))}}return e;case 0:return Cc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,s=Ca(l,e.pendingProps),v6(t,e,l,s,n);case 3:t:{if(Jt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var o=e.memoizedState;s=o.element,ec(t,e),El(e,l,null,n);var m=e.memoizedState;if(l=m.cache,Gn(e,Xt,l),l!==o.cache&&Po(e,[Xt],n,!0),bl(),l=m.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=S6(t,e,l,n);break t}else if(l!==s){s=Ze(Error(c(424)),e),ml(s),e=S6(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(jt=Ye(t.firstChild),ae=e,St=!0,Un=null,Ge=!0,n=mm(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ba(),l===s){e=yn(t,e,n);break t}le(t,e,l,n)}e=e.child}return e;case 26:return Is(t,e),t===null?(n=z8(e.type,null,e.pendingProps,null))?e.memoizedState=n:St||(n=e.type,t=e.pendingProps,l=yu(lt.current).createElement(n),l[ne]=e,l[he]=t,se(l,n,t),It(l),e.stateNode=l):e.memoizedState=z8(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return On(e),t===null&&St&&(l=e.stateNode=H8(e.type,e.pendingProps,lt.current),ae=e,Ge=!0,s=jt,ta(e.type)?(m0=s,jt=Ye(l.firstChild)):jt=s),le(t,e,e.pendingProps.children,n),Is(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&St&&((s=l=jt)&&(l=dS(l,e.type,e.pendingProps,Ge),l!==null?(e.stateNode=l,ae=e,jt=Ye(l.firstChild),Ge=!1,s=!0):s=!1),s||_n(e)),On(e),s=e.type,o=e.pendingProps,m=t!==null?t.memoizedProps:null,l=o.children,o0(s,o)?l=null:m!==null&&o0(s,m)&&(e.flags|=32),e.memoizedState!==null&&(s=rc(t,e,L5,null,null,n),Gl._currentValue=s),Is(t,e),le(t,e,l,n),e.child;case 6:return t===null&&St&&((t=n=jt)&&(n=hS(n,e.pendingProps,Ge),n!==null?(e.stateNode=n,ae=e,jt=null,t=!0):t=!1),t||_n(e)),null;case 13:return b6(t,e,n);case 4:return Jt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Va(e,null,l,n):le(t,e,l,n),e.child;case 11:return f6(t,e,e.type,e.pendingProps,n);case 7:return le(t,e,e.pendingProps,n),e.child;case 8:return le(t,e,e.pendingProps.children,n),e.child;case 12:return le(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Gn(e,e.type,l.value),le(t,e,l.children,n),e.child;case 9:return s=e.type._context,l=e.pendingProps.children,Aa(e),s=ie(s),l=l(s),e.flags|=1,le(t,e,l,n),e.child;case 14:return d6(t,e,e.type,e.pendingProps,n);case 15:return h6(t,e,e.type,e.pendingProps,n);case 19:return A6(t,e,n);case 31:return B5(t,e,n);case 22:return m6(t,e,n,e.pendingProps);case 24:return Aa(e),l=ie(Xt),t===null?(s=Wo(),s===null&&(s=Ht,o=Jo(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),e.memoizedState={parent:l,cache:s},tc(e),Gn(e,Xt,s)):((t.lanes&n)!==0&&(ec(t,e),El(e,null,null,n),bl()),s=t.memoizedState,o=e.memoizedState,s.parent!==l?(s={parent:l,cache:l},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Gn(e,Xt,l)):(l=o.cache,Gn(e,Xt,l),l!==s.cache&&Po(e,[Xt],n,!0))),le(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function gn(t){t.flags|=4}function wc(t,e,n,l,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(J6())t.flags|=8192;else throw xa=Zs,Io}else t.flags&=-16777217}function M6(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!U8(e))if(J6())t.flags|=8192;else throw xa=Zs,Io}function eu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ah():536870912,t.lanes|=e,Ai|=e)}function Ll(t,e){if(!St)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 Ot(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function N5(t,e,n){var l=e.pendingProps;switch(Xo(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(e),null;case 1:return Ot(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),hn(Xt),Bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(oi(e)?gn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ko())),Ot(e),null;case 26:var s=e.type,o=e.memoizedState;return t===null?(gn(e),o!==null?(Ot(e),M6(e,o)):(Ot(e),wc(e,s,null,l,n))):o?o!==t.memoizedState?(gn(e),Ot(e),M6(e,o)):(Ot(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&gn(e),Ot(e),wc(e,s,t,l,n)),null;case 27:if(zn(e),n=lt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Ot(e),null}t=tt.current,oi(e)?am(e):(t=H8(s,l,n),e.stateNode=t,gn(e))}return Ot(e),null;case 5:if(zn(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Ot(e),null}if(o=tt.current,oi(e))am(e);else{var m=yu(lt.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?m.createElement(s,{is:l.is}):m.createElement(s)}}o[ne]=e,o[he]=l;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=o;t:switch(se(o,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&gn(e)}}return Ot(e),wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&gn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=lt.current,oi(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,s=ae,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}t[ne]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||b8(t.nodeValue,n)),t||_n(e,!0)}else t=yu(t).createTextNode(l),t[ne]=e,e.stateNode=t}return Ot(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=oi(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[ne]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),t=!1}else n=Ko(),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(c(558))}return Ot(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=oi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!s)throw Error(c(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(c(317));s[ne]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),s=!1}else s=Ko(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)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,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==s&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),eu(e,e.updateQueue),Ot(e),null);case 4:return Bt(),t===null&&i0(e.stateNode.containerInfo),Ot(e),null;case 10:return hn(e.type),Ot(e),null;case 19:if(G(Gt),l=e.memoizedState,l===null)return Ot(e),null;if(s=(e.flags&128)!==0,o=l.rendering,o===null)if(s)Ll(l,!1);else{if(_t!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=qs(t),o!==null){for(e.flags|=128,Ll(l,!1),t=o.updateQueue,e.updateQueue=t,eu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Wh(n,t),n=n.sibling;return P(Gt,Gt.current&1|2),St&&fn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Ae()>su&&(e.flags|=128,s=!0,Ll(l,!1),e.lanes=4194304)}else{if(!s)if(t=qs(o),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,eu(e,t),Ll(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!St)return Ot(e),null}else 2*Ae()-l.renderingStartTime>su&&n!==536870912&&(e.flags|=128,s=!0,Ll(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=Ae(),t.sibling=null,n=Gt.current,P(Gt,s?n&1|2:n&1),St&&fn(e,l.treeForkCount),t):(Ot(e),null);case 22:case 23:return Ce(e),lc(),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&&(Ot(e),e.subtreeFlags&6&&(e.flags|=8192)):Ot(e),n=e.updateQueue,n!==null&&eu(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&&G(Ta),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),hn(Xt),Ot(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Z5(t,e){switch(Xo(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hn(Xt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return zn(e),null;case 31:if(e.memoizedState!==null){if(Ce(e),e.alternate===null)throw Error(c(340));ba()}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(c(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G(Gt),null;case 4:return Bt(),null;case 10:return hn(e.type),null;case 22:case 23:return Ce(e),lc(),t!==null&&G(Ta),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return hn(Xt),null;case 25:return null;default:return null}}function x6(t,e){switch(Xo(e),e.tag){case 3:hn(Xt),Bt();break;case 26:case 27:case 5:zn(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:G(Gt);break;case 10:hn(e.type);break;case 22:case 23:Ce(e),lc(),t!==null&&G(Ta);break;case 24:hn(Xt)}}function Cl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&t)===t){l=void 0;var o=n.create,m=n.inst;l=o(),m.destroy=l}n=n.next}while(n!==s)}}catch(S){Vt(e,e.return,S)}}function Fn(t,e,n){try{var l=e.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var o=s.next;l=o;do{if((l.tag&t)===t){var m=l.inst,S=m.destroy;if(S!==void 0){m.destroy=void 0,s=e;var T=n,D=S;try{D()}catch(w){Vt(s,T,w)}}}l=l.next}while(l!==o)}}catch(w){Vt(e,e.return,w)}}function V6(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{ym(e,n)}catch(l){Vt(t,t.return,l)}}}function L6(t,e,n){n.props=Ca(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Vt(t,e,l)}}function Dl(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(s){Vt(t,e,s)}}function en(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Vt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Vt(t,e,s)}else n.current=null}function C6(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(s){Vt(t,t.return,s)}}function Nc(t,e,n){try{var l=t.stateNode;sS(l,t.type,n,e),l[he]=e}catch(s){Vt(t,t.return,s)}}function D6(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ta(t.type)||t.tag===4}function Zc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||D6(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&&ta(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 Uc(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=rn));else if(l!==4&&(l===27&&ta(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Uc(t,e,n),t=t.sibling;t!==null;)Uc(t,e,n),t=t.sibling}function nu(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&&ta(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(nu(t,e,n),t=t.sibling;t!==null;)nu(t,e,n),t=t.sibling}function R6(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);se(e,l,n),e[ne]=t,e[he]=n}catch(o){Vt(t,t.return,o)}}var vn=!1,Ft=!1,_c=!1,H6=typeof WeakSet=="function"?WeakSet:Set,te=null;function U5(t,e){if(t=t.containerInfo,u0=Tu,t=Yh(t),Oo(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 s=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var m=0,S=-1,T=-1,D=0,w=0,_=t,R=null;e:for(;;){for(var H;_!==n||s!==0&&_.nodeType!==3||(S=m+s),_!==o||l!==0&&_.nodeType!==3||(T=m+l),_.nodeType===3&&(m+=_.nodeValue.length),(H=_.firstChild)!==null;)R=_,_=H;for(;;){if(_===t)break e;if(R===n&&++D===s&&(S=m),R===o&&++w===l&&(T=m),(H=_.nextSibling)!==null)break;_=R,R=_.parentNode}_=H}n=S===-1||T===-1?null:{start:S,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(r0={focusedElem:t,selectionRange:n},Tu=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,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++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,s=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var W=Ca(n.type,s);t=l.getSnapshotBeforeUpdate(W,o),l.__reactInternalSnapshotBeforeUpdate=t}catch(it){Vt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)f0(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":f0(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(c(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function j6(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:bn(t,n),l&4&&Cl(5,n);break;case 1:if(bn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(m){Vt(n,n.return,m)}else{var s=Ca(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Vt(n,n.return,m)}}l&64&&V6(n),l&512&&Dl(n,n.return);break;case 3:if(bn(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{ym(t,e)}catch(m){Vt(n,n.return,m)}}break;case 27:e===null&&l&4&&R6(n);case 26:case 5:bn(t,n),e===null&&l&4&&C6(n),l&512&&Dl(n,n.return);break;case 12:bn(t,n);break;case 31:bn(t,n),l&4&&B6(t,n);break;case 13:bn(t,n),l&4&&w6(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Q5.bind(null,n),mS(t,n))));break;case 22:if(l=n.memoizedState!==null||vn,!l){e=e!==null&&e.memoizedState!==null||Ft,s=vn;var o=Ft;vn=l,(Ft=e)&&!o?En(t,n,(n.subtreeFlags&8772)!==0):bn(t,n),vn=s,Ft=o}break;case 30:break;default:bn(t,n)}}function O6(t){var e=t.alternate;e!==null&&(t.alternate=null,O6(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&yo(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 wt=null,pe=!1;function Sn(t,e,n){for(n=n.child;n!==null;)z6(t,e,n),n=n.sibling}function z6(t,e,n){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(Ii,n)}catch{}switch(n.tag){case 26:Ft||en(n,e),Sn(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=wt,s=pe;ta(n.type)&&(wt=n.stateNode,pe=!1),Sn(t,e,n),Zl(n.stateNode),wt=l,pe=s;break;case 5:Ft||en(n,e);case 6:if(l=wt,s=pe,wt=null,Sn(t,e,n),wt=l,pe=s,wt!==null)if(pe)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(o){Vt(n,e,o)}else try{wt.removeChild(n.stateNode)}catch(o){Vt(n,e,o)}break;case 18:wt!==null&&(pe?(t=wt,V8(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ri(t)):V8(wt,n.stateNode));break;case 4:l=wt,s=pe,wt=n.stateNode.containerInfo,pe=!0,Sn(t,e,n),wt=l,pe=s;break;case 0:case 11:case 14:case 15:Fn(2,n,e),Ft||Fn(4,n,e),Sn(t,e,n);break;case 1:Ft||(en(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&L6(n,e,l)),Sn(t,e,n);break;case 21:Sn(t,e,n);break;case 22:Ft=(l=Ft)||n.memoizedState!==null,Sn(t,e,n),Ft=l;break;default:Sn(t,e,n)}}function B6(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ri(t)}catch(n){Vt(e,e.return,n)}}}function w6(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ri(t)}catch(n){Vt(e,e.return,n)}}function _5(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new H6),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new H6),e;default:throw Error(c(435,t.tag))}}function au(t,e){var n=_5(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var s=P5.bind(null,t,l);l.then(s,s)}})}function ye(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],o=t,m=e,S=m;t:for(;S!==null;){switch(S.tag){case 27:if(ta(S.type)){wt=S.stateNode,pe=!1;break t}break;case 5:wt=S.stateNode,pe=!1;break t;case 3:case 4:wt=S.stateNode.containerInfo,pe=!0;break t}S=S.return}if(wt===null)throw Error(c(160));z6(o,m,s),wt=null,pe=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)N6(e,t),e=e.sibling}var Qe=null;function N6(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ge(t),l&4&&(Fn(3,t,t.return),Cl(3,t),Fn(5,t,t.return));break;case 1:ye(e,t),ge(t),l&512&&(Ft||n===null||en(n,n.return)),l&64&&vn&&(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 s=Qe;if(ye(e,t),ge(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,s=s.ownerDocument||s;e:switch(l){case"title":o=s.getElementsByTagName("title")[0],(!o||o[nl]||o[ne]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(l),s.head.insertBefore(o,s.querySelector("head > title"))),se(o,l,n),o[ne]=t,It(o),l=o;break t;case"link":var m=N8("link","href",s).get(l+(n.href||""));if(m){for(var S=0;S<m.length;S++)if(o=m[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)){m.splice(S,1);break e}}o=s.createElement(l),se(o,l,n),s.head.appendChild(o);break;case"meta":if(m=N8("meta","content",s).get(l+(n.content||""))){for(S=0;S<m.length;S++)if(o=m[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)){m.splice(S,1);break e}}o=s.createElement(l),se(o,l,n),s.head.appendChild(o);break;default:throw Error(c(468,l))}o[ne]=t,It(o),l=o}t.stateNode=l}else Z8(s,t.type,t.stateNode);else t.stateNode=w8(s,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Z8(s,t.type,t.stateNode):w8(s,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Nc(t,t.memoizedProps,n.memoizedProps)}break;case 27:ye(e,t),ge(t),l&512&&(Ft||n===null||en(n,n.return)),n!==null&&l&4&&Nc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ye(e,t),ge(t),l&512&&(Ft||n===null||en(n,n.return)),t.flags&32){s=t.stateNode;try{Ia(s,"")}catch(W){Vt(t,t.return,W)}}l&4&&t.stateNode!=null&&(s=t.memoizedProps,Nc(t,s,n!==null?n.memoizedProps:s)),l&1024&&(_c=!0);break;case 6:if(ye(e,t),ge(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(W){Vt(t,t.return,W)}}break;case 3:if(Su=null,s=Qe,Qe=gu(e.containerInfo),ye(e,t),Qe=s,ge(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ri(e.containerInfo)}catch(W){Vt(t,t.return,W)}_c&&(_c=!1,Z6(t));break;case 4:l=Qe,Qe=gu(t.stateNode.containerInfo),ye(e,t),ge(t),Qe=l;break;case 12:ye(e,t),ge(t);break;case 31:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,au(t,l)));break;case 13:ye(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(lu=Ae()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,au(t,l)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,D=vn,w=Ft;if(vn=D||s,Ft=w||T,ye(e,t),Ft=w,vn=D,ge(t),l&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||vn||Ft||Da(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(o=T.stateNode,s)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{S=T.stateNode;var _=T.memoizedProps.style,R=_!=null&&_.hasOwnProperty("display")?_.display:null;S.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(W){Vt(T,T.return,W)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(W){Vt(T,T.return,W)}}}else if(e.tag===18){if(n===null){T=e;try{var H=T.stateNode;s?L8(H,!0):L8(T.stateNode,!1)}catch(W){Vt(T,T.return,W)}}}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,au(t,n))));break;case 19:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,au(t,l)));break;case 30:break;case 21:break;default:ye(e,t),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(D6(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var s=n.stateNode,o=Zc(t);nu(t,o,s);break;case 5:var m=n.stateNode;n.flags&32&&(Ia(m,""),n.flags&=-33);var S=Zc(t);nu(t,S,m);break;case 3:case 4:var T=n.stateNode.containerInfo,D=Zc(t);Uc(t,D,T);break;default:throw Error(c(161))}}catch(w){Vt(t,t.return,w)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Z6(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Z6(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function bn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)j6(t,e.alternate,e),e=e.sibling}function Da(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Fn(4,e,e.return),Da(e);break;case 1:en(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&L6(e,e.return,n),Da(e);break;case 27:Zl(e.stateNode);case 26:case 5:en(e,e.return),Da(e);break;case 22:e.memoizedState===null&&Da(e);break;case 30:Da(e);break;default:Da(e)}t=t.sibling}}function En(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,s=t,o=e,m=o.flags;switch(o.tag){case 0:case 11:case 15:En(s,o,n),Cl(4,o);break;case 1:if(En(s,o,n),l=o,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(D){Vt(l,l.return,D)}if(l=o,s=l.updateQueue,s!==null){var S=l.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)pm(T[s],S)}catch(D){Vt(l,l.return,D)}}n&&m&64&&V6(o),Dl(o,o.return);break;case 27:R6(o);case 26:case 5:En(s,o,n),n&&l===null&&m&4&&C6(o),Dl(o,o.return);break;case 12:En(s,o,n);break;case 31:En(s,o,n),n&&m&4&&B6(s,o);break;case 13:En(s,o,n),n&&m&4&&w6(s,o);break;case 22:o.memoizedState===null&&En(s,o,n),Dl(o,o.return);break;case 30:break;default:En(s,o,n)}e=e.sibling}}function Gc(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&&pl(n))}function qc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&pl(t))}function Pe(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)U6(t,e,n,l),e=e.sibling}function U6(t,e,n,l){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Pe(t,e,n,l),s&2048&&Cl(9,e);break;case 1:Pe(t,e,n,l);break;case 3:Pe(t,e,n,l),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&pl(t)));break;case 12:if(s&2048){Pe(t,e,n,l),t=e.stateNode;try{var o=e.memoizedProps,m=o.id,S=o.onPostCommit;typeof S=="function"&&S(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Vt(e,e.return,T)}}else Pe(t,e,n,l);break;case 31:Pe(t,e,n,l);break;case 13:Pe(t,e,n,l);break;case 23:break;case 22:o=e.stateNode,m=e.alternate,e.memoizedState!==null?o._visibility&2?Pe(t,e,n,l):Rl(t,e):o._visibility&2?Pe(t,e,n,l):(o._visibility|=2,Si(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Gc(m,e);break;case 24:Pe(t,e,n,l),s&2048&&qc(e.alternate,e);break;default:Pe(t,e,n,l)}}function Si(t,e,n,l,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,m=e,S=n,T=l,D=m.flags;switch(m.tag){case 0:case 11:case 15:Si(o,m,S,T,s),Cl(8,m);break;case 23:break;case 22:var w=m.stateNode;m.memoizedState!==null?w._visibility&2?Si(o,m,S,T,s):Rl(o,m):(w._visibility|=2,Si(o,m,S,T,s)),s&&D&2048&&Gc(m.alternate,m);break;case 24:Si(o,m,S,T,s),s&&D&2048&&qc(m.alternate,m);break;default:Si(o,m,S,T,s)}e=e.sibling}}function Rl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,s=l.flags;switch(l.tag){case 22:Rl(n,l),s&2048&&Gc(l.alternate,l);break;case 24:Rl(n,l),s&2048&&qc(l.alternate,l);break;default:Rl(n,l)}e=e.sibling}}var Hl=8192;function bi(t,e,n){if(t.subtreeFlags&Hl)for(t=t.child;t!==null;)_6(t,e,n),t=t.sibling}function _6(t,e,n){switch(t.tag){case 26:bi(t,e,n),t.flags&Hl&&t.memoizedState!==null&&VS(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:bi(t,e,n);break;case 3:case 4:var l=Qe;Qe=gu(t.stateNode.containerInfo),bi(t,e,n),Qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Hl,Hl=16777216,bi(t,e,n),Hl=l):bi(t,e,n));break;default:bi(t,e,n)}}function G6(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 jl(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];te=l,Y6(l,t)}G6(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)q6(t),t=t.sibling}function q6(t){switch(t.tag){case 0:case 11:case 15:jl(t),t.flags&2048&&Fn(9,t,t.return);break;case 3:jl(t);break;case 12:jl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,iu(t)):jl(t);break;default:jl(t)}}function iu(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];te=l,Y6(l,t)}G6(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Fn(8,e,e.return),iu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,iu(e));break;default:iu(e)}t=t.sibling}}function Y6(t,e){for(;te!==null;){var n=te;switch(n.tag){case 0:case 11:case 15:Fn(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:pl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,te=l;else t:for(n=t;te!==null;){l=te;var s=l.sibling,o=l.return;if(O6(l),l===n){te=null;break t}if(s!==null){s.return=o,te=s;break t}te=o}}}var G5={getCacheForType:function(t){var e=ie(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ie(Xt).controller.signal}},q5=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Ht=null,pt=null,gt=0,xt=0,De=null,Qn=!1,Ei=!1,Yc=!1,An=0,_t=0,Pn=0,Ra=0,Xc=0,Re=0,Ai=0,Ol=null,ve=null,kc=!1,lu=0,X6=0,su=1/0,uu=null,Jn=null,$t=0,$n=null,Ti=null,Tn=0,Kc=0,Fc=null,k6=null,zl=0,Qc=null;function He(){return(Tt&2)!==0&>!==0?gt&-gt:N.T!==null?t0():uh()}function K6(){if(Re===0)if((gt&536870912)===0||St){var t=ps;ps<<=1,(ps&3932160)===0&&(ps=262144),Re=t}else Re=536870912;return t=Le.current,t!==null&&(t.flags|=32),Re}function Se(t,e,n){(t===Ht&&(xt===2||xt===9)||t.cancelPendingCommit!==null)&&(Mi(t,0),Wn(t,gt,Re,!1)),el(t,n),((Tt&2)===0||t!==Ht)&&(t===Ht&&((Tt&2)===0&&(Ra|=n),_t===4&&Wn(t,gt,Re,!1)),nn(t))}function F6(t,e,n){if((Tt&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||tl(t,e),s=l?k5(t,e):Jc(t,e,!0),o=l;do{if(s===0){Ei&&!l&&Wn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!Y5(n)){s=Jc(t,e,!1),o=!1;continue}if(s===2){if(o=e,t.errorRecoveryDisabledLanes&o)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var S=t;s=Ol;var T=S.current.memoizedState.isDehydrated;if(T&&(Mi(S,m).flags|=256),m=Jc(S,m,!1),m!==2){if(Yc&&!T){S.errorRecoveryDisabledLanes|=o,Ra|=o,s=4;break t}o=ve,ve=s,o!==null&&(ve===null?ve=o:ve.push.apply(ve,o))}s=m}if(o=!1,s!==2)continue}}if(s===1){Mi(t,0),Wn(t,e,0,!0);break}t:{switch(l=t,o=s,o){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Wn(l,e,Re,!Qn);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(s=lu+300-Ae(),10<s)){if(Wn(l,e,Re,!Qn),gs(l,0,!0)!==0)break t;Tn=e,l.timeoutHandle=M8(Q6.bind(null,l,n,ve,uu,kc,e,Re,Ra,Ai,Qn,o,"Throttled",-0,0),s);break t}Q6(l,n,ve,uu,kc,e,Re,Ra,Ai,Qn,o,null,-0,0)}}break}while(!0);nn(t)}function Q6(t,e,n,l,s,o,m,S,T,D,w,_,R,H){if(t.timeoutHandle=-1,_=e.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},_6(e,o,_);var W=(o&62914560)===o?lu-Ae():(o&4194048)===o?X6-Ae():0;if(W=LS(_,W),W!==null){Tn=o,t.cancelPendingCommit=W(n8.bind(null,t,e,o,n,l,s,m,S,T,w,_,null,R,H)),Wn(t,o,m,!D);return}}n8(t,e,o,n,l,s,m,S,T)}function Y5(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 s=n[l],o=s.getSnapshot;s=s.value;try{if(!xe(o(),s))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 Wn(t,e,n,l){e&=~Xc,e&=~Ra,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var s=e;0<s;){var o=31-Me(s),m=1<<o;l[o]=-1,s&=~m}n!==0&&ih(t,n,e)}function ru(){return(Tt&6)===0?(Bl(0),!1):!0}function Pc(){if(pt!==null){if(xt===0)var t=pt.return;else t=pt,dn=Ea=null,fc(t),mi=null,gl=0,t=pt;for(;t!==null;)x6(t.alternate,t),t=t.return;pt=null}}function Mi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,oS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Tn=0,Pc(),Ht=t,pt=n=cn(t.current,null),gt=e,xt=0,De=null,Qn=!1,Ei=tl(t,e),Yc=!1,Ai=Re=Xc=Ra=Pn=_t=0,ve=Ol=null,kc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var s=31-Me(l),o=1<<s;e|=t[s],l&=~o}return An=e,Ds(),n}function P6(t,e){ft=null,N.H=xl,e===hi||e===Ns?(e=fm(),xt=3):e===Io?(e=fm(),xt=4):xt=e===Lc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,pt===null&&(_t=1,$s(t,Ze(e,t.current)))}function J6(){var t=Le.current;return t===null?!0:(gt&4194048)===gt?qe===null:(gt&62914560)===gt||(gt&536870912)!==0?t===qe:!1}function $6(){var t=N.H;return N.H=xl,t===null?xl:t}function W6(){var t=N.A;return N.A=G5,t}function ou(){_t=4,Qn||(gt&4194048)!==gt&&Le.current!==null||(Ei=!0),(Pn&134217727)===0&&(Ra&134217727)===0||Ht===null||Wn(Ht,gt,Re,!1)}function Jc(t,e,n){var l=Tt;Tt|=2;var s=$6(),o=W6();(Ht!==t||gt!==e)&&(uu=null,Mi(t,e)),e=!1;var m=_t;t:do try{if(xt!==0&&pt!==null){var S=pt,T=De;switch(xt){case 8:Pc(),m=6;break t;case 3:case 2:case 9:case 6:Le.current===null&&(e=!0);var D=xt;if(xt=0,De=null,xi(t,S,T,D),n&&Ei){m=0;break t}break;default:D=xt,xt=0,De=null,xi(t,S,T,D)}}X5(),m=_t;break}catch(w){P6(t,w)}while(!0);return e&&t.shellSuspendCounter++,dn=Ea=null,Tt=l,N.H=s,N.A=o,pt===null&&(Ht=null,gt=0,Ds()),m}function X5(){for(;pt!==null;)I6(pt)}function k5(t,e){var n=Tt;Tt|=2;var l=$6(),s=W6();Ht!==t||gt!==e?(uu=null,su=Ae()+500,Mi(t,e)):Ei=tl(t,e);t:do try{if(xt!==0&&pt!==null){e=pt;var o=De;e:switch(xt){case 1:xt=0,De=null,xi(t,e,o,1);break;case 2:case 9:if(om(o)){xt=0,De=null,t8(e);break}e=function(){xt!==2&&xt!==9||Ht!==t||(xt=7),nn(t)},o.then(e,e);break t;case 3:xt=7;break t;case 4:xt=5;break t;case 7:om(o)?(xt=0,De=null,t8(e)):(xt=0,De=null,xi(t,e,o,7));break;case 5:var m=null;switch(pt.tag){case 26:m=pt.memoizedState;case 5:case 27:var S=pt;if(m?U8(m):S.stateNode.complete){xt=0,De=null;var T=S.sibling;if(T!==null)pt=T;else{var D=S.return;D!==null?(pt=D,cu(D)):pt=null}break e}}xt=0,De=null,xi(t,e,o,5);break;case 6:xt=0,De=null,xi(t,e,o,6);break;case 8:Pc(),_t=6;break t;default:throw Error(c(462))}}K5();break}catch(w){P6(t,w)}while(!0);return dn=Ea=null,N.H=l,N.A=s,Tt=n,pt!==null?0:(Ht=null,gt=0,Ds(),_t)}function K5(){for(;pt!==null&&!p3();)I6(pt)}function I6(t){var e=T6(t.alternate,t,An);t.memoizedProps=t.pendingProps,e===null?cu(t):pt=e}function t8(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=g6(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=g6(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:fc(e);default:x6(n,e),e=pt=Wh(e,An),e=T6(n,e,An)}t.memoizedProps=t.pendingProps,e===null?cu(t):pt=e}function xi(t,e,n,l){dn=Ea=null,fc(e),mi=null,gl=0;var s=e.return;try{if(z5(t,s,e,n,gt)){_t=1,$s(t,Ze(n,t.current)),pt=null;return}}catch(o){if(s!==null)throw pt=s,o;_t=1,$s(t,Ze(n,t.current)),pt=null;return}e.flags&32768?(St||l===1?t=!0:Ei||(gt&536870912)!==0?t=!1:(Qn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Le.current,l!==null&&l.tag===13&&(l.flags|=16384))),e8(e,t)):cu(e)}function cu(t){var e=t;do{if((e.flags&32768)!==0){e8(e,Qn);return}t=e.return;var n=N5(e.alternate,e,An);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);_t===0&&(_t=5)}function e8(t,e){do{var n=Z5(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);_t=6,pt=null}function n8(t,e,n,l,s,o,m,S,T){t.cancelPendingCommit=null;do fu();while($t!==0);if((Tt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(o=e.lanes|e.childLanes,o|=Zo,x3(t,n,o,m,S,T),t===Ht&&(pt=Ht=null,gt=0),Ti=e,$n=t,Tn=n,Kc=o,Fc=s,k6=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,J5(hs,function(){return u8(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=N.T,N.T=null,s=X.p,X.p=2,m=Tt,Tt|=4;try{U5(t,e,n)}finally{Tt=m,X.p=s,N.T=l}}$t=1,a8(),i8(),l8()}}function a8(){if($t===1){$t=0;var t=$n,e=Ti,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var l=X.p;X.p=2;var s=Tt;Tt|=4;try{N6(e,t);var o=r0,m=Yh(t.containerInfo),S=o.focusedElem,T=o.selectionRange;if(m!==S&&S&&S.ownerDocument&&qh(S.ownerDocument.documentElement,S)){if(T!==null&&Oo(S)){var D=T.start,w=T.end;if(w===void 0&&(w=D),"selectionStart"in S)S.selectionStart=D,S.selectionEnd=Math.min(w,S.value.length);else{var _=S.ownerDocument||document,R=_&&_.defaultView||window;if(R.getSelection){var H=R.getSelection(),W=S.textContent.length,it=Math.min(T.start,W),Dt=T.end===void 0?it:Math.min(T.end,W);!H.extend&&it>Dt&&(m=Dt,Dt=it,it=m);var V=Gh(S,it),M=Gh(S,Dt);if(V&&M&&(H.rangeCount!==1||H.anchorNode!==V.node||H.anchorOffset!==V.offset||H.focusNode!==M.node||H.focusOffset!==M.offset)){var C=_.createRange();C.setStart(V.node,V.offset),H.removeAllRanges(),it>Dt?(H.addRange(C),H.extend(M.node,M.offset)):(C.setEnd(M.node,M.offset),H.addRange(C))}}}}for(_=[],H=S;H=H.parentNode;)H.nodeType===1&&_.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<_.length;S++){var Z=_[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Tu=!!u0,r0=u0=null}finally{Tt=s,X.p=l,N.T=n}}t.current=e,$t=2}}function i8(){if($t===2){$t=0;var t=$n,e=Ti,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var l=X.p;X.p=2;var s=Tt;Tt|=4;try{j6(t,e.alternate,e)}finally{Tt=s,X.p=l,N.T=n}}$t=3}}function l8(){if($t===4||$t===3){$t=0,y3();var t=$n,e=Ti,n=Tn,l=k6;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,Ti=$n=null,s8(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Jn=null),mo(n),e=e.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(Ii,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=N.T,s=X.p,X.p=2,N.T=null;try{for(var o=t.onRecoverableError,m=0;m<l.length;m++){var S=l[m];o(S.value,{componentStack:S.stack})}}finally{N.T=e,X.p=s}}(Tn&3)!==0&&fu(),nn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Qc?zl++:(zl=0,Qc=t):zl=0,Bl(0)}}function s8(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,pl(e)))}function fu(){return a8(),i8(),l8(),u8()}function u8(){if($t!==5)return!1;var t=$n,e=Kc;Kc=0;var n=mo(Tn),l=N.T,s=X.p;try{X.p=32>n?32:n,N.T=null,n=Fc,Fc=null;var o=$n,m=Tn;if($t=0,Ti=$n=null,Tn=0,(Tt&6)!==0)throw Error(c(331));var S=Tt;if(Tt|=4,q6(o.current),U6(o,o.current,m,n),Tt=S,Bl(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(Ii,o)}catch{}return!0}finally{X.p=s,N.T=l,s8(t,e)}}function r8(t,e,n){e=Ze(n,e),e=Vc(t.stateNode,e,2),t=Xn(t,e,2),t!==null&&(el(t,2),nn(t))}function Vt(t,e,n){if(t.tag===3)r8(t,t,n);else for(;e!==null;){if(e.tag===3){r8(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Jn===null||!Jn.has(l))){t=Ze(n,t),n=o6(2),l=Xn(e,n,2),l!==null&&(c6(n,l,e,t),el(l,2),nn(l));break}}e=e.return}}function $c(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new q5;var s=new Set;l.set(e,s)}else s=l.get(e),s===void 0&&(s=new Set,l.set(e,s));s.has(n)||(Yc=!0,s.add(n),t=F5.bind(null,t,e,n),e.then(t,t))}function F5(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ht===t&&(gt&n)===n&&(_t===4||_t===3&&(gt&62914560)===gt&&300>Ae()-lu?(Tt&2)===0&&Mi(t,0):Xc|=n,Ai===gt&&(Ai=0)),nn(t)}function o8(t,e){e===0&&(e=ah()),t=va(t,e),t!==null&&(el(t,e),nn(t))}function Q5(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),o8(t,n)}function P5(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),o8(t,n)}function J5(t,e){return oo(t,e)}var du=null,Vi=null,Wc=!1,hu=!1,Ic=!1,In=0;function nn(t){t!==Vi&&t.next===null&&(Vi===null?du=Vi=t:Vi=Vi.next=t),hu=!0,Wc||(Wc=!0,W5())}function Bl(t,e){if(!Ic&&hu){Ic=!0;do for(var n=!1,l=du;l!==null;){if(t!==0){var s=l.pendingLanes;if(s===0)var o=0;else{var m=l.suspendedLanes,S=l.pingedLanes;o=(1<<31-Me(42|t)+1)-1,o&=s&~(m&~S),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,h8(l,o))}else o=gt,o=gs(l,l===Ht?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||tl(l,o)||(n=!0,h8(l,o));l=l.next}while(n);Ic=!1}}function $5(){c8()}function c8(){hu=Wc=!1;var t=0;In!==0&&rS()&&(t=In);for(var e=Ae(),n=null,l=du;l!==null;){var s=l.next,o=f8(l,e);o===0?(l.next=null,n===null?du=s:n.next=s,s===null&&(Vi=n)):(n=l,(t!==0||(o&3)!==0)&&(hu=!0)),l=s}$t!==0&&$t!==5||Bl(t),In!==0&&(In=0)}function f8(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var m=31-Me(o),S=1<<m,T=s[m];T===-1?((S&n)===0||(S&l)!==0)&&(s[m]=M3(S,e)):T<=e&&(t.expiredLanes|=S),o&=~S}if(e=Ht,n=gt,n=gs(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(xt===2||xt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&co(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||tl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&co(l),mo(n)){case 2:case 8:n=eh;break;case 32:n=hs;break;case 268435456:n=nh;break;default:n=hs}return l=d8.bind(null,t),n=oo(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&co(l),t.callbackPriority=2,t.callbackNode=null,2}function d8(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(fu()&&t.callbackNode!==n)return null;var l=gt;return l=gs(t,t===Ht?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(F6(t,l,e),f8(t,Ae()),t.callbackNode!=null&&t.callbackNode===n?d8.bind(null,t):null)}function h8(t,e){if(fu())return null;F6(t,e,!0)}function W5(){cS(function(){(Tt&6)!==0?oo(th,$5):c8()})}function t0(){if(In===0){var t=fi;t===0&&(t=ms,ms<<=1,(ms&261888)===0&&(ms=256)),In=t}return In}function m8(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Es(""+t)}function p8(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 I5(t,e,n,l,s){if(e==="submit"&&n&&n.stateNode===s){var o=m8((s[he]||null).action),m=l.submitter;m&&(e=(e=m[he]||null)?m8(e.formAction):m.getAttribute("formAction"),e!==null&&(o=e,m=null));var S=new xs("action","action",null,l,s);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(In!==0){var T=m?p8(s,m):new FormData(s);bc(n,{pending:!0,data:T,method:s.method,action:o},null,T)}}else typeof o=="function"&&(S.preventDefault(),T=m?p8(s,m):new FormData(s),bc(n,{pending:!0,data:T,method:s.method,action:o},o,T))},currentTarget:s}]})}}for(var e0=0;e0<No.length;e0++){var n0=No[e0],tS=n0.toLowerCase(),eS=n0[0].toUpperCase()+n0.slice(1);Fe(tS,"on"+eS)}Fe(Kh,"onAnimationEnd"),Fe(Fh,"onAnimationIteration"),Fe(Qh,"onAnimationStart"),Fe("dblclick","onDoubleClick"),Fe("focusin","onFocus"),Fe("focusout","onBlur"),Fe(g5,"onTransitionRun"),Fe(v5,"onTransitionStart"),Fe(S5,"onTransitionCancel"),Fe(Ph,"onTransitionEnd"),$a("onMouseEnter",["mouseout","mouseover"]),$a("onMouseLeave",["mouseout","mouseover"]),$a("onPointerEnter",["pointerout","pointerover"]),$a("onPointerLeave",["pointerout","pointerover"]),ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="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(" "),nS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function y8(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],s=l.event;l=l.listeners;t:{var o=void 0;if(e)for(var m=l.length-1;0<=m;m--){var S=l[m],T=S.instance,D=S.currentTarget;if(S=S.listener,T!==o&&s.isPropagationStopped())break t;o=S,s.currentTarget=D;try{o(s)}catch(w){Cs(w)}s.currentTarget=null,o=T}else for(m=0;m<l.length;m++){if(S=l[m],T=S.instance,D=S.currentTarget,S=S.listener,T!==o&&s.isPropagationStopped())break t;o=S,s.currentTarget=D;try{o(s)}catch(w){Cs(w)}s.currentTarget=null,o=T}}}}function yt(t,e){var n=e[po];n===void 0&&(n=e[po]=new Set);var l=t+"__bubble";n.has(l)||(g8(e,t,2,!1),n.add(l))}function a0(t,e,n){var l=0;e&&(l|=4),g8(n,t,l,e)}var mu="_reactListening"+Math.random().toString(36).slice(2);function i0(t){if(!t[mu]){t[mu]=!0,ch.forEach(function(n){n!=="selectionchange"&&(nS.has(n)||a0(n,!1,t),a0(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[mu]||(e[mu]=!0,a0("selectionchange",!1,e))}}function g8(t,e,n,l){switch(K8(e)){case 2:var s=RS;break;case 8:s=HS;break;default:s=S0}n=s.bind(null,e,n,t),s=void 0,!Mo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),l?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function l0(t,e,n,l,s){var o=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var S=l.stateNode.containerInfo;if(S===s)break;if(m===4)for(m=l.return;m!==null;){var T=m.tag;if((T===3||T===4)&&m.stateNode.containerInfo===s)return;m=m.return}for(;S!==null;){if(m=Qa(S),m===null)return;if(T=m.tag,T===5||T===6||T===26||T===27){l=o=m;continue t}S=S.parentNode}}l=l.return}Ah(function(){var D=o,w=Ao(n),_=[];t:{var R=Jh.get(t);if(R!==void 0){var H=xs,W=t;switch(t){case"keypress":if(Ts(n)===0)break t;case"keydown":case"keyup":H=P3;break;case"focusin":W="focus",H=Co;break;case"focusout":W="blur",H=Co;break;case"beforeblur":case"afterblur":H=Co;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":H=xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=N3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=W3;break;case Kh:case Fh:case Qh:H=_3;break;case Ph:H=t5;break;case"scroll":case"scrollend":H=B3;break;case"wheel":H=n5;break;case"copy":case"cut":case"paste":H=q3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Lh;break;case"toggle":case"beforetoggle":H=i5}var it=(e&4)!==0,Dt=!it&&(t==="scroll"||t==="scrollend"),V=it?R!==null?R+"Capture":null:R;it=[];for(var M=D,C;M!==null;){var Z=M;if(C=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||C===null||V===null||(Z=il(M,V),Z!=null&&it.push(Nl(M,Z,C))),Dt)break;M=M.return}0<it.length&&(R=new H(R,W,null,n,w),_.push({event:R,listeners:it}))}}if((e&7)===0){t:{if(R=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",R&&n!==Eo&&(W=n.relatedTarget||n.fromElement)&&(Qa(W)||W[Fa]))break t;if((H||R)&&(R=w.window===w?w:(R=w.ownerDocument)?R.defaultView||R.parentWindow:window,H?(W=n.relatedTarget||n.toElement,H=D,W=W?Qa(W):null,W!==null&&(Dt=d(W),it=W.tag,W!==Dt||it!==5&&it!==27&&it!==6)&&(W=null)):(H=null,W=D),H!==W)){if(it=xh,Z="onMouseLeave",V="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(it=Lh,Z="onPointerLeave",V="onPointerEnter",M="pointer"),Dt=H==null?R:al(H),C=W==null?R:al(W),R=new it(Z,M+"leave",H,n,w),R.target=Dt,R.relatedTarget=C,Z=null,Qa(w)===D&&(it=new it(V,M+"enter",W,n,w),it.target=C,it.relatedTarget=Dt,Z=it),Dt=Z,H&&W)e:{for(it=aS,V=H,M=W,C=0,Z=V;Z;Z=it(Z))C++;Z=0;for(var nt=M;nt;nt=it(nt))Z++;for(;0<C-Z;)V=it(V),C--;for(;0<Z-C;)M=it(M),Z--;for(;C--;){if(V===M||M!==null&&V===M.alternate){it=V;break e}V=it(V),M=it(M)}it=null}else it=null;H!==null&&v8(_,R,H,it,!1),W!==null&&Dt!==null&&v8(_,Dt,W,it,!0)}}t:{if(R=D?al(D):window,H=R.nodeName&&R.nodeName.toLowerCase(),H==="select"||H==="input"&&R.type==="file")var Et=Bh;else if(Oh(R))if(wh)Et=m5;else{Et=d5;var et=f5}else H=R.nodeName,!H||H.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?D&&bo(D.elementType)&&(Et=Bh):Et=h5;if(Et&&(Et=Et(t,D))){zh(_,Et,n,w);break t}et&&et(t,R,D),t==="focusout"&&D&&R.type==="number"&&D.memoizedProps.value!=null&&So(R,"number",R.value)}switch(et=D?al(D):window,t){case"focusin":(Oh(et)||et.contentEditable==="true")&&(ai=et,zo=D,dl=null);break;case"focusout":dl=zo=ai=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,Xh(_,n,w);break;case"selectionchange":if(y5)break;case"keydown":case"keyup":Xh(_,n,w)}var dt;if(Ro)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else ni?Hh(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(Ch&&n.locale!=="ko"&&(ni||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&ni&&(dt=Th()):(Nn=w,xo="value"in Nn?Nn.value:Nn.textContent,ni=!0)),et=pu(D,vt),0<et.length&&(vt=new Vh(vt,t,null,n,w),_.push({event:vt,listeners:et}),dt?vt.data=dt:(dt=jh(n),dt!==null&&(vt.data=dt)))),(dt=s5?u5(t,n):r5(t,n))&&(vt=pu(D,"onBeforeInput"),0<vt.length&&(et=new Vh("onBeforeInput","beforeinput",null,n,w),_.push({event:et,listeners:vt}),et.data=dt)),I5(_,t,D,n,w)}y8(_,e)})}function Nl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function pu(t,e){for(var n=e+"Capture",l=[];t!==null;){var s=t,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=il(t,n),s!=null&&l.unshift(Nl(t,s,o)),s=il(t,e),s!=null&&l.push(Nl(t,s,o))),t.tag===3)return l;t=t.return}return[]}function aS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function v8(t,e,n,l,s){for(var o=e._reactName,m=[];n!==null&&n!==l;){var S=n,T=S.alternate,D=S.stateNode;if(S=S.tag,T!==null&&T===l)break;S!==5&&S!==26&&S!==27||D===null||(T=D,s?(D=il(n,o),D!=null&&m.unshift(Nl(n,D,T))):s||(D=il(n,o),D!=null&&m.push(Nl(n,D,T)))),n=n.return}m.length!==0&&t.push({event:e,listeners:m})}var iS=/\r\n?/g,lS=/\u0000|\uFFFD/g;function S8(t){return(typeof t=="string"?t:""+t).replace(iS,`
|
|
9
|
-
`).replace(lS,"")}function b8(t,e){return e=S8(e),S8(t)===e}function Ct(t,e,n,l,s,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ia(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ia(t,""+l);break;case"className":Ss(t,"class",l);break;case"tabIndex":Ss(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ss(t,n,l);break;case"style":bh(t,l,o);break;case"data":if(e!=="object"){Ss(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=Es(""+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"&&Ct(t,e,"name",s.name,s,null),Ct(t,e,"formEncType",s.formEncType,s,null),Ct(t,e,"formMethod",s.formMethod,s,null),Ct(t,e,"formTarget",s.formTarget,s,null)):(Ct(t,e,"encType",s.encType,s,null),Ct(t,e,"method",s.method,s,null),Ct(t,e,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Es(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=rn);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(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=Es(""+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":yt("beforetoggle",t),yt("toggle",t),vs(t,"popover",l);break;case"xlinkActuate":un(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":un(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":un(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":un(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":un(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":un(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":un(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":un(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":un(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":vs(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=O3.get(n)||n,vs(t,n,l))}}function s0(t,e,n,l,s,o){switch(n){case"style":bh(t,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Ia(t,l):(typeof l=="number"||typeof l=="bigint")&&Ia(t,""+l);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fh.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),o=t[he]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,s),typeof l=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,s);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):vs(t,n,l)}}}function se(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var l=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ct(t,e,o,m,n,null)}}s&&Ct(t,e,"srcSet",n.srcSet,n,null),l&&Ct(t,e,"src",n.src,n,null);return;case"input":yt("invalid",t);var S=o=m=s=null,T=null,D=null;for(l in n)if(n.hasOwnProperty(l)){var w=n[l];if(w!=null)switch(l){case"name":s=w;break;case"type":m=w;break;case"checked":T=w;break;case"defaultChecked":D=w;break;case"value":o=w;break;case"defaultValue":S=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,e));break;default:Ct(t,e,l,w,n,null)}}yh(t,o,S,T,D,m,s,!1);return;case"select":yt("invalid",t),l=m=o=null;for(s in n)if(n.hasOwnProperty(s)&&(S=n[s],S!=null))switch(s){case"value":o=S;break;case"defaultValue":m=S;break;case"multiple":l=S;default:Ct(t,e,s,S,n,null)}e=o,n=m,t.multiple=!!l,e!=null?Wa(t,!!l,e,!1):n!=null&&Wa(t,!!l,n,!0);return;case"textarea":yt("invalid",t),o=s=l=null;for(m in n)if(n.hasOwnProperty(m)&&(S=n[m],S!=null))switch(m){case"value":l=S;break;case"defaultValue":s=S;break;case"children":o=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(c(91));break;default:Ct(t,e,m,S,n,null)}vh(t,l,s,o);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ct(t,e,T,l,n,null)}return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(l=0;l<wl.length;l++)yt(wl[l],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("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(D in n)if(n.hasOwnProperty(D)&&(l=n[D],l!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ct(t,e,D,l,n,null)}return;default:if(bo(e)){for(w in n)n.hasOwnProperty(w)&&(l=n[w],l!==void 0&&s0(t,e,w,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&Ct(t,e,S,l,n,null))}function sS(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 s=null,o=null,m=null,S=null,T=null,D=null,w=null;for(H in n){var _=n[H];if(n.hasOwnProperty(H)&&_!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":T=_;default:l.hasOwnProperty(H)||Ct(t,e,H,null,l,_)}}for(var R in l){var H=l[R];if(_=n[R],l.hasOwnProperty(R)&&(H!=null||_!=null))switch(R){case"type":o=H;break;case"name":s=H;break;case"checked":D=H;break;case"defaultChecked":w=H;break;case"value":m=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,e));break;default:H!==_&&Ct(t,e,R,H,l,_)}}vo(t,m,S,T,D,w,o,s);return;case"select":H=m=S=R=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":H=T;default:l.hasOwnProperty(o)||Ct(t,e,o,null,l,T)}for(s in l)if(o=l[s],T=n[s],l.hasOwnProperty(s)&&(o!=null||T!=null))switch(s){case"value":R=o;break;case"defaultValue":S=o;break;case"multiple":m=o;default:o!==T&&Ct(t,e,s,o,l,T)}e=S,n=m,l=H,R!=null?Wa(t,!!n,R,!1):!!l!=!!n&&(e!=null?Wa(t,!!n,e,!0):Wa(t,!!n,n?[]:"",!1));return;case"textarea":H=R=null;for(S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ct(t,e,S,null,l,s)}for(m in l)if(s=l[m],o=n[m],l.hasOwnProperty(m)&&(s!=null||o!=null))switch(m){case"value":R=s;break;case"defaultValue":H=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(c(91));break;default:s!==o&&Ct(t,e,m,s,l,o)}gh(t,R,H);return;case"option":for(var W in n)if(R=n[W],n.hasOwnProperty(W)&&R!=null&&!l.hasOwnProperty(W))switch(W){case"selected":t.selected=!1;break;default:Ct(t,e,W,null,l,R)}for(T in l)if(R=l[T],H=n[T],l.hasOwnProperty(T)&&R!==H&&(R!=null||H!=null))switch(T){case"selected":t.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Ct(t,e,T,R,l,H)}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 it in n)R=n[it],n.hasOwnProperty(it)&&R!=null&&!l.hasOwnProperty(it)&&Ct(t,e,it,null,l,R);for(D in l)if(R=l[D],H=n[D],l.hasOwnProperty(D)&&R!==H&&(R!=null||H!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:Ct(t,e,D,R,l,H)}return;default:if(bo(e)){for(var Dt in n)R=n[Dt],n.hasOwnProperty(Dt)&&R!==void 0&&!l.hasOwnProperty(Dt)&&s0(t,e,Dt,void 0,l,R);for(w in l)R=l[w],H=n[w],!l.hasOwnProperty(w)||R===H||R===void 0&&H===void 0||s0(t,e,w,R,l,H);return}}for(var V in n)R=n[V],n.hasOwnProperty(V)&&R!=null&&!l.hasOwnProperty(V)&&Ct(t,e,V,null,l,R);for(_ in l)R=l[_],H=n[_],!l.hasOwnProperty(_)||R===H||R==null&&H==null||Ct(t,e,_,R,l,H)}function E8(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],o=s.transferSize,m=s.initiatorType,S=s.duration;if(o&&S&&E8(m)){for(m=0,S=s.responseEnd,l+=1;l<n.length;l++){var T=n[l],D=T.startTime;if(D>S)break;var w=T.transferSize,_=T.initiatorType;w&&E8(_)&&(T=T.responseEnd,m+=w*(T<S?1:(S-D)/(T-D)))}if(--l,e+=8*(o+m)/(s.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 u0=null,r0=null;function yu(t){return t.nodeType===9?t:t.ownerDocument}function A8(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 T8(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 o0(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 c0=null;function rS(){var t=window.event;return t&&t.type==="popstate"?t===c0?!1:(c0=t,!0):(c0=null,!1)}var M8=typeof setTimeout=="function"?setTimeout:void 0,oS=typeof clearTimeout=="function"?clearTimeout:void 0,x8=typeof Promise=="function"?Promise:void 0,cS=typeof queueMicrotask=="function"?queueMicrotask:typeof x8<"u"?function(t){return x8.resolve(null).then(t).catch(fS)}:M8;function fS(t){setTimeout(function(){throw t})}function ta(t){return t==="head"}function V8(t,e){var n=e,l=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(s),Ri(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Zl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Zl(n);for(var o=n.firstChild;o;){var m=o.nextSibling,S=o.nodeName;o[nl]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=m}}else n==="body"&&Zl(t.ownerDocument.body);n=s}while(n);Ri(e)}function L8(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 f0(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":f0(n),yo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function dS(t,e,n,l){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[nl])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!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=Ye(t.nextSibling),t===null)break}return null}function hS(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ye(t.nextSibling),t===null))return null;return t}function C8(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ye(t.nextSibling),t===null))return null;return t}function d0(t){return t.data==="$?"||t.data==="$~"}function h0(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function mS(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 Ye(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 m0=null;function D8(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ye(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function R8(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 H8(t,e,n){switch(e=yu(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function Zl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);yo(t)}var Xe=new Map,j8=new Set;function gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mn=X.d;X.d={f:pS,r:yS,D:gS,C:vS,L:SS,m:bS,X:AS,S:ES,M:TS};function pS(){var t=Mn.f(),e=ru();return t||e}function yS(t){var e=Pa(t);e!==null&&e.tag===5&&e.type==="form"?Pm(e):Mn.r(t)}var Li=typeof document>"u"?null:document;function O8(t,e,n){var l=Li;if(l&&typeof e=="string"&&e){var s=we(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),j8.has(s)||(j8.add(s),t={rel:t,crossOrigin:n,href:e},l.querySelector(s)===null&&(e=l.createElement("link"),se(e,"link",t),It(e),l.head.appendChild(e)))}}function gS(t){Mn.D(t),O8("dns-prefetch",t,null)}function vS(t,e){Mn.C(t,e),O8("preconnect",t,e)}function SS(t,e,n){Mn.L(t,e,n);var l=Li;if(l&&t&&e){var s='link[rel="preload"][as="'+we(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+we(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+we(n.imageSizes)+'"]')):s+='[href="'+we(t)+'"]';var o=s;switch(e){case"style":o=Ci(t);break;case"script":o=Di(t)}Xe.has(o)||(t=E({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Xe.set(o,t),l.querySelector(s)!==null||e==="style"&&l.querySelector(Ul(o))||e==="script"&&l.querySelector(_l(o))||(e=l.createElement("link"),se(e,"link",t),It(e),l.head.appendChild(e)))}}function bS(t,e){Mn.m(t,e);var n=Li;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+we(l)+'"][href="'+we(t)+'"]',o=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Di(t)}if(!Xe.has(o)&&(t=E({rel:"modulepreload",href:t},e),Xe.set(o,t),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_l(o)))return}l=n.createElement("link"),se(l,"link",t),It(l),n.head.appendChild(l)}}}function ES(t,e,n){Mn.S(t,e,n);var l=Li;if(l&&t){var s=Ja(l).hoistableStyles,o=Ci(t);e=e||"default";var m=s.get(o);if(!m){var S={loading:0,preload:null};if(m=l.querySelector(Ul(o)))S.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Xe.get(o))&&p0(t,n);var T=m=l.createElement("link");It(T),se(T,"link",t),T._p=new Promise(function(D,w){T.onload=D,T.onerror=w}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,vu(m,e,l)}m={type:"stylesheet",instance:m,count:1,state:S},s.set(o,m)}}}function AS(t,e){Mn.X(t,e);var n=Li;if(n&&t){var l=Ja(n).hoistableScripts,s=Di(t),o=l.get(s);o||(o=n.querySelector(_l(s)),o||(t=E({src:t,async:!0},e),(e=Xe.get(s))&&y0(t,e),o=n.createElement("script"),It(o),se(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(s,o))}}function TS(t,e){Mn.M(t,e);var n=Li;if(n&&t){var l=Ja(n).hoistableScripts,s=Di(t),o=l.get(s);o||(o=n.querySelector(_l(s)),o||(t=E({src:t,async:!0,type:"module"},e),(e=Xe.get(s))&&y0(t,e),o=n.createElement("script"),It(o),se(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(s,o))}}function z8(t,e,n,l){var s=(s=lt.current)?gu(s):null;if(!s)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ci(n.href),n=Ja(s).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=Ci(n.href);var o=Ja(s).hoistableStyles,m=o.get(t);if(m||(s=s.ownerDocument||s,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,m),(o=s.querySelector(Ul(t)))&&!o._p&&(m.instance=o,m.state.loading=5),Xe.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},Xe.set(t,n),o||MS(s,t,n,m.state))),e&&l===null)throw Error(c(528,""));return m}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Di(n),n=Ja(s).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(c(444,t))}}function Ci(t){return'href="'+we(t)+'"'}function Ul(t){return'link[rel="stylesheet"]['+t+"]"}function B8(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function MS(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}),se(e,"link",n),It(e),t.head.appendChild(e))}function Di(t){return'[src="'+we(t)+'"]'}function _l(t){return"script[async]"+t}function w8(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+we(n.href)+'"]');if(l)return e.instance=l,It(l),l;var s=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),It(l),se(l,"style",s),vu(l,n.precedence,t),e.instance=l;case"stylesheet":s=Ci(n.href);var o=t.querySelector(Ul(s));if(o)return e.state.loading|=4,e.instance=o,It(o),o;l=B8(n),(s=Xe.get(s))&&p0(l,s),o=(t.ownerDocument||t).createElement("link"),It(o);var m=o;return m._p=new Promise(function(S,T){m.onload=S,m.onerror=T}),se(o,"link",l),e.state.loading|=4,vu(o,n.precedence,t),e.instance=o;case"script":return o=Di(n.src),(s=t.querySelector(_l(o)))?(e.instance=s,It(s),s):(l=n,(s=Xe.get(o))&&(l=E({},n),y0(l,s)),t=t.ownerDocument||t,s=t.createElement("script"),It(s),se(s,"link",l),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,vu(l,n.precedence,t));return e.instance}function vu(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,o=s,m=0;m<l.length;m++){var S=l[m];if(S.dataset.precedence===e)o=S;else if(o!==s)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function p0(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function y0(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Su=null;function N8(t,e,n){if(Su===null){var l=new Map,s=Su=new Map;s.set(n,l)}else s=Su,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var o=n[s];if(!(o[nl]||o[ne]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(e)||"";m=t+m;var S=l.get(m);S?S.push(o):l.set(m,[o])}}return l}function Z8(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 U8(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function VS(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 s=Ci(l.href),o=e.querySelector(Ul(s));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=bu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,It(o);return}o=e.ownerDocument||e,l=B8(l),(s=Xe.get(s))&&p0(l,s),o=o.createElement("link"),It(o);var m=o;m._p=new Promise(function(S,T){m.onload=S,m.onerror=T}),se(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=bu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var g0=0;function LS(t,e){return t.stylesheets&&t.count===0&&Au(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Au(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&g0===0&&(g0=62500*uS());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Au(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>g0?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Au(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Eu=null;function Au(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Eu=new Map,e.forEach(CS,t),Eu=null,bu.call(t))}function CS(t,e){if(!(e.state.loading&4)){var n=Eu.get(t);if(n)var l=n.get(null);else{n=new Map,Eu.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var m=s[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}s=e.instance,m=s.getAttribute("data-precedence"),o=n.get(m)||l,o===l&&n.set(null,s),n.set(m,s),this.count++,l=bu.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),o?o.parentNode.insertBefore(s,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var Gl={$$typeof:q,Provider:null,Consumer:null,_currentValue:ot,_currentValue2:ot,_threadCount:0};function DS(t,e,n,l,s,o,m,S,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fo(0),this.hiddenUpdates=fo(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function _8(t,e,n,l,s,o,m,S,T,D,w,_){return t=new DS(t,e,n,m,T,D,w,_,S),e=1,o===!0&&(e|=24),o=Ve(3,null,null,e),t.current=o,o.stateNode=t,e=Jo(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},tc(o),t}function G8(t){return t?(t=si,t):si}function q8(t,e,n,l,s,o){s=G8(s),l.context===null?l.context=s:l.pendingContext=s,l=Yn(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Xn(t,l,e),n!==null&&(Se(n,t,e),Sl(n,t,e))}function Y8(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function v0(t,e){Y8(t,e),(t=t.alternate)&&Y8(t,e)}function X8(t){if(t.tag===13||t.tag===31){var e=va(t,67108864);e!==null&&Se(e,t,67108864),v0(t,67108864)}}function k8(t){if(t.tag===13||t.tag===31){var e=He();e=ho(e);var n=va(t,e);n!==null&&Se(n,t,e),v0(t,e)}}var Tu=!0;function RS(t,e,n,l){var s=N.T;N.T=null;var o=X.p;try{X.p=2,S0(t,e,n,l)}finally{X.p=o,N.T=s}}function HS(t,e,n,l){var s=N.T;N.T=null;var o=X.p;try{X.p=8,S0(t,e,n,l)}finally{X.p=o,N.T=s}}function S0(t,e,n,l){if(Tu){var s=b0(l);if(s===null)l0(t,e,l,Mu,n),F8(t,l);else if(OS(s,t,e,n,l))l.stopPropagation();else if(F8(t,l),e&4&&-1<jS.indexOf(t)){for(;s!==null;){var o=Pa(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=ha(o.pendingLanes);if(m!==0){var S=o;for(S.pendingLanes|=2,S.entangledLanes|=2;m;){var T=1<<31-Me(m);S.entanglements[1]|=T,m&=~T}nn(o),(Tt&6)===0&&(su=Ae()+500,Bl(0))}}break;case 31:case 13:S=va(o,2),S!==null&&Se(S,o,2),ru(),v0(o,2)}if(o=b0(l),o===null&&l0(t,e,l,Mu,n),o===s)break;s=o}s!==null&&l.stopPropagation()}else l0(t,e,l,null,n)}}function b0(t){return t=Ao(t),E0(t)}var Mu=null;function E0(t){if(Mu=null,t=Qa(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=g(e),t!==null)return t;t=null}else if(n===31){if(t=p(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 Mu=t,null}function K8(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(g3()){case th:return 2;case eh:return 8;case hs:case v3:return 32;case nh:return 268435456;default:return 32}default:return 32}}var A0=!1,ea=null,na=null,aa=null,ql=new Map,Yl=new Map,ia=[],jS="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 F8(t,e){switch(t){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":ql.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yl.delete(e.pointerId)}}function Xl(t,e,n,l,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[s]},e!==null&&(e=Pa(e),e!==null&&X8(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function OS(t,e,n,l,s){switch(e){case"focusin":return ea=Xl(ea,t,e,n,l,s),!0;case"dragenter":return na=Xl(na,t,e,n,l,s),!0;case"mouseover":return aa=Xl(aa,t,e,n,l,s),!0;case"pointerover":var o=s.pointerId;return ql.set(o,Xl(ql.get(o)||null,t,e,n,l,s)),!0;case"gotpointercapture":return o=s.pointerId,Yl.set(o,Xl(Yl.get(o)||null,t,e,n,l,s)),!0}return!1}function Q8(t){var e=Qa(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=g(n),e!==null){t.blockedOn=e,rh(t.priority,function(){k8(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,rh(t.priority,function(){k8(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 xu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=b0(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Eo=l,n.target.dispatchEvent(l),Eo=null}else return e=Pa(n),e!==null&&X8(e),t.blockedOn=n,!1;e.shift()}return!0}function P8(t,e,n){xu(t)&&n.delete(e)}function zS(){A0=!1,ea!==null&&xu(ea)&&(ea=null),na!==null&&xu(na)&&(na=null),aa!==null&&xu(aa)&&(aa=null),ql.forEach(P8),Yl.forEach(P8)}function Vu(t,e){t.blockedOn===e&&(t.blockedOn=null,A0||(A0=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zS)))}var Lu=null;function J8(t){Lu!==t&&(Lu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Lu===t&&(Lu=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],s=t[e+2];if(typeof l!="function"){if(E0(l||n)===null)continue;break}var o=Pa(n);o!==null&&(t.splice(e,3),e-=3,bc(o,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function Ri(t){function e(T){return Vu(T,t)}ea!==null&&Vu(ea,t),na!==null&&Vu(na,t),aa!==null&&Vu(aa,t),ql.forEach(e),Yl.forEach(e);for(var n=0;n<ia.length;n++){var l=ia[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ia.length&&(n=ia[0],n.blockedOn===null);)Q8(n),n.blockedOn===null&&ia.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],o=n[l+1],m=s[he]||null;if(typeof o=="function")m||J8(n);else if(m){var S=null;if(o&&o.hasAttribute("formAction")){if(s=o,m=o[he]||null)S=m.formAction;else if(E0(s)!==null)continue}else S=m.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),J8(n)}}}function $8(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return s=m})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=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,s=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),s!==null&&(s(),s=null)}}}function T0(t){this._internalRoot=t}Cu.prototype.render=T0.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=He();q8(n,l,t,e,null,null)},Cu.prototype.unmount=T0.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;q8(t.current,2,null,t,null,null),ru(),e[Fa]=null}};function Cu(t){this._internalRoot=t}Cu.prototype.unstable_scheduleHydration=function(t){if(t){var e=uh();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ia.length&&e!==0&&e<ia[n].priority;n++);ia.splice(n,0,t),n===0&&Q8(t)}};var W8=u.version;if(W8!=="19.2.1")throw Error(c(527,W8,"19.2.1"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=v(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var BS={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Du.isDisabled&&Du.supportsFiber)try{Ii=Du.inject(BS),Te=Du}catch{}}return Oi.createRoot=function(t,e){if(!h(t))throw Error(c(299));var n=!1,l="",s=l6,o=s6,m=u6;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=_8(t,1,!1,null,null,n,l,null,s,o,m,$8),t[Fa]=e.current,i0(t),new T0(e)},Oi.hydrateRoot=function(t,e,n){if(!h(t))throw Error(c(299));var l=!1,s="",o=l6,m=s6,S=u6,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=_8(t,1,!0,e,n??null,l,s,T,o,m,S,$8),e.context=G8(null),n=e.current,l=He(),l=ho(l),s=Yn(l),s.callback=null,Xn(n,s,l),n=l,e.current.lanes=n,el(e,n),nn(e),t[Fa]=e.current,i0(t),new Cu(e)},Oi.version="19.2.1",Oi}var O0;function u4(){if(O0)return Hu.exports;O0=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(),Hu.exports=s4(),Hu.exports}var r4=u4();const o4=Hi(r4);var f=Bu();const c4={common:{cancel:"Cancel",auto:"Auto",normal:"Normal",notUse:"Not used",prev:"Previous video",next:"Next video",delayText:"seconds until auto-play",license:"License",play:"Play",pause:"Pause",replay:"Replay",fullOn:"Fullscreen",fullOff:"Exit fullscreen",muteOn:"Mute",muteOff:"Unmute",captionOff:"Turn off captions",captionOn:"Turn on captions",setting:"Settings",live:"LIVE",miniPlayer:"Mini player",isMute:"You are muted.",subtitle:"Subtitles",subtitleNot:"Subtitles not available"},settings:{autoplay:"Autoplay",playbackRate:"Playback speed",captions:"Subtitles",quality:"Quality"},error:{"01":{title:"Cannot play video",desc:"Invalid access. Please check your access_key."},"02":{title:"Cannot play video",desc:"You do not have permission to play this video."},"03":{title:"Authentication Failed",desc:"The network connection is unstable."},"04":{title:"Cannot play video",desc:"The video could not be played."},"05":{title:"Cannot play video",desc:"The license is not valid."},"06":{title:"Cannot play video",desc:"Monthly basic API calls exceeded. Please switch to a paid version."},"07":{title:"Cannot play video",desc:"Unsupported format."},"08":{title:"Cannot play video",desc:"Invalid URL format."},"09":{title:"Cannot play video",desc:"The live stream is OFFLINE."},10:{title:"Cannot play video",desc:"Cannot play DASH video on iOS."},11:{title:"Cannot play video",desc:"Invalid DRM token."},12:{title:"Cannot play video",desc:"Failed to communicate with the DRM license server."},13:{title:"Cannot play video",desc:"FairPlay certificate validation failed."},14:{title:"Cannot play video",desc:"Screen capture / screen recording has been detected."},15:{title:"Player Execution Failed",desc:"Required module was not loaded. (hls.js)"},16:{title:"Player Execution Failed",desc:"Required module was not loaded. (dash.js)"}},alternative:{hour:"hour(s)",minute:"minute(s)",second:"second(s)",after:"In a moment",afterMin:"min",afterHour:"hour",afterDay:"day",startPlay:"Video will start in {timeTxt}.",nextPlay:"Next video will play in {timeTxt} seconds.",afterPlay:"Scheduled"}},f4={common:{cancel:"취소",auto:"자동",normal:"보통",notUse:"사용안함",prev:"이전 동영상",next:"다음 동영상",delayText:"초 뒤 자동재생",license:"라이선스",play:"재생",pause:"일시정지",replay:"다시보기",fullOn:"전체화면",fullOff:"전체화면 해제",muteOn:"음소거",muteOff:"음소거 해제",captionOff:"자막끄기",captionOn:"자막켜기",setting:"설정",live:"실시간",miniPlayer:"미니플레이어",isMute:"음소거 상태입니다.",subtitle:"자막",subtitleNot:"자막 사용 불가"},settings:{autoplay:"자동재생",playbackRate:"재생 속도",captions:"자막",quality:"해상도"},error:{"01":{title:"동영상을 재생할 수 없음",desc:"잘못된 접근입니다. access_key를 확인해주세요."},"02":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 권한이 없습니다."},"03":{title:"인증 실패",desc:"네트워크 연결이 원활하지 않습니다."},"04":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 수 없습니다."},"05":{title:"동영상을 재생할 수 없음",desc:"라이선스가 유효하지 않습니다."},"06":{title:"동영상을 재생할 수 없음",desc:"월 기본 제공 호출 건수를 초과하였습니다. 유료 버전으로 전환 후 사용 부탁 드립니다."},"07":{title:"동영상을 재생할 수 없음",desc:"지원하지 않는 형식입니다."},"08":{title:"동영상을 재생할 수 없음",desc:"URL 형식이 잘못되었습니다."},"09":{title:"동영상을 재생할 수 없음",desc:"라이브스트림이 OFFLINE 입니다."},10:{title:"동영상을 재생할 수 없음",desc:"iOS에서 Dash 비디오를 재생할 수 없습니다."},11:{title:"동영상을 재생할 수 없음",desc:"DRM 토큰이 잘못되었습니다."},12:{title:"동영상을 재생할 수 없음",desc:"DRM 라이선스 서버와 통신에 실패하였습니다."},13:{title:"동영상을 재생할 수 없음",desc:"FairPlay 인증서 검증에 실패하였습니다."},14:{title:"동영상을 재생할 수 없음",desc:"화면 캡쳐 / 화면 녹화가 감지되었습니다."},15:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (hls.js)"},16:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (dash.js)"}},alternative:{hour:"시",minute:"분",second:"초",after:"잠시 ",afterMin:"분 ",afterHour:"시간 ",afterDay:"일 ",startPlay:"{timeTxt} 후 영상이 시작됩니다.",nextPlay:"{timeTxt}초 후 다음 영상이 재생됩니다.",afterPlay:"예정"}},d4={common:{cancel:"キャンセル",auto:"自動",normal:"標準",notUse:"使用しない",prev:"前の動画",next:"次の動画",delayText:"秒後に自動再生",license:"ライセンス",play:"再生",pause:"一時停止",replay:"リプレイ",fullOn:"全画面表示",fullOff:"全画面表示を終了",muteOn:"ミュート",muteOff:"ミュート解除",captionOff:"字幕をオフにする",captionOn:"字幕をオンにする",setting:"設定",live:"ライブ",miniPlayer:"ミニプレーヤー",isMute:"ミュート状態です。",subtitle:"字幕",subtitleNot:"字幕は利用できません"},settings:{autoplay:"自動再生",playbackRate:"再生速度",captions:"字幕",quality:"画質"},error:{"01":{title:"動画を再生できません",desc:"不正なアクセスです。access_keyを確認してください。"},"02":{title:"動画を再生できません",desc:"この動画を再生する権限がありません。"},"03":{title:"認証に失敗しました",desc:"ネットワーク接続が不安定です。"},"04":{title:"動画を再生できません",desc:"動画を再生できませんでした。"},"05":{title:"動画を再生できません",desc:"ライセンスが無効です。"},"06":{title:"動画を再生できません",desc:"月間の基本提供呼び出し回数を超過しました。有料版に切り替えてご利用ください。"},"07":{title:"動画を再生できません",desc:"サポートされていない形式です。"},"08":{title:"動画を再生できません",desc:"URLの形式が正しくありません。"},"09":{title:"動画を再生できません",desc:"ライブストリームはオフラインです。"},10:{title:"動画を再生できません",desc:"iOSではDASHビデオを再生できません。"},11:{title:"動画を再生できません",desc:"DRMトークンが無効です。"},12:{title:"動画を再生できません",desc:"DRMライセンスサーバーとの通信に失敗しました。"},13:{title:"動画を再生できません",desc:"FairPlay証明書の検証に失敗しました。"},14:{title:"動画を再生できません",desc:"画面キャプチャ/画面録画が検出されました。"},15:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(hls.js)"},16:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(dash.js)"}},alternative:{hour:"時間",minute:"分",second:"秒",after:"しばらくして",afterMin:"分後",afterHour:"時間後",afterDay:"日後",startPlay:"{timeTxt}後に動画が始まります。",nextPlay:"{timeTxt}秒後に次の動画が再生されます。",afterPlay:"予定"}},z0={en:c4,ko:f4,ja:d4},h4=()=>typeof navigator<"u"&&typeof navigator.language<"u";function m4(a){const i=a.split("-")[0];return i in z0?i:"en"}function B0(a){let i="en";a?i=a:h4()&&(i=navigator.language);const u=m4(i);return z0[u]}B0();const p4={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia (Plurinational State of)",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo (Democratic Republic of the)",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran (Islamic Republic of)",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (Democratic People's Republic of)",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia (the former Yugoslav Republic of)",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia (Federated States of)",MD:"Moldova (Republic of)",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States of America",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela (Bolivarian Republic of)",VN:"Viet Nam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},y4={gov:{prod:{log:"https://papi.vpe.gov-ntruss.com/player/maSync",report:"https://log.vpe.gov-ntruss.com/stats"},beta:{log:"https://papi.beta-vpe.gov-ntruss.com/player/maSync",report:"https://log.beta-vpe.gov-ntruss.com/stats"}},pub:{prod:{log:"https://papi.vpe.naverncp.com/player/maSync",report:"https://log.vpe.naverncp.com/stats"},beta:{log:"https://papi.beta-vpe.naverncp.com/player/maSync",report:"https://log.beta-vpe.naverncp.com/stats"}}};let be={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Vn={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const g4=new Date().getTime(),w0=()=>{const a=new Date,i=h=>String(h).padStart(2,"0"),u=`${a.getFullYear()}-${i(a.getMonth()+1)}-${i(a.getDate())} ${i(a.getHours())}:${i(a.getMinutes())}:${i(a.getSeconds())}`,r=Math.floor(a.getTime()/1e3),c=new Date().getTime()-g4;return{logDate:u,logDateUnix:r,thisSec:c}};function v4(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function S4(a,i){Object.entries(i).forEach(([u,r])=>{v4(r)?(a[u]||(a[u]={}),Object.entries(r).forEach(([c,h])=>{h!=null&&(a[u][c]=h)})):r!=null&&(a[u]=r)})}function b4(a){const i=[];return a?.r1&&i.push(a.r1),a?.r2&&i.push(a.r2),a?.r3&&i.push(a.r3),i.join(" ")}function E4(a){try{const i=Vn.syncResult?.geoLocation;i&&(a.address=b4(i),a.isp=i.net||"",a.ip=Vn.syncResult?.ip||"",a.nation=i.country||"")}catch{}}const A4=async a=>{if(!a)return;const{platform:i,stage:u}=Vn,r=y4[i][u].log;try{const c=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:a})})).json();Vn.sync=c.result?.sync||!1,Vn.syncResult=c.result||{};const{logDate:h,logDateUnix:d}=w0();return be.extra.logDate=h,be.extra.logDateUnix=d,Vn.syncResult?.geoLocation&&E4(be.extra),c}catch(c){return console.error("MA config initialization failed:",c),null}};async function T4(a,i,u,r,c){Vn.platform=a,Vn.stage=i,S4(be,u),r&&(be.extra.vpePackageId=r),c&&(be.extra.vpeKey=c),be.extra.nation?be.browser.country=p4[be.extra.nation]||"Korea, Republic of":be.browser.country="Korea, Republic of";const{logDate:h,logDateUnix:d}=w0();be.extra.logDate=h,be.extra.logDateUnix=d,be.extra.created_at=d}const M4=(a={})=>{const i={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!1,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,lang:"ko",ui:"all",controlBtn:{play:!0,fullscreen:!0,progressBar:!0,volume:!1,times:!0,pictureInPicture:!0,setting:!0,subtitle:!0},progressBarColor:"#4299f5",controlActiveTime:3e3,playRateSetting:[.5,.75,1,1.5,2],autoPause:!1,repeat:!1,setStartTime:void 0,playIndex:0,lowLatencyMode:!0,touchGestures:!0,descriptionNotVisible:!1,devTestAppId:void 0,token:"",visibleWatermark:!1,watermarkText:"NAVER CLOUD PLATFORM",watermarkConfig:{randPosition:!0,randPositionInterVal:3e3,x:10,y:10,opacity:.5},captionStyle:{fontSize:12,color:"#ffffff",backgroundColor:"rgba(0, 0, 0, 0.4)",edgeStyle:"dropshadow"},override:null},u={...i,...a};return a.controlBtn&&(u.controlBtn={...i.controlBtn,...a.controlBtn}),a.watermarkConfig&&(u.watermarkConfig={...i.watermarkConfig,...a.watermarkConfig}),a.captionStyle&&(u.captionStyle={...i.captionStyle,...a.captionStyle}),u.objectFit==="fill"&&(u.objectFit="stretch"),u.controlBtn?.progressBar===void 0&&(u.controlBtn.progressBar=!0),u},x4={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let N0=[];const V4=a=>{try{return atob(a)}catch(i){return console.error("Base64 decoding failed:",i),""}};class L4{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator;errorState;constructor({accessKey:i,appId:u,platform:r,stage:c,isDev:h=!1,language:d}){this.accessKey=i,this.appId=u||location.origin,this.platform=r,this.stage=c,this.isDev=h,this.translator=B0(d),this.errorState={errorCode:null,errorMessage:null}}async initialize(){const i=["accessKey","appId","E0002","E0001","E0003"],u="VPE Player: accessKey 또는 appId가 없어 키 인증을 건너뜁니다.";if([this[i[0]],this[i[1]]].some(c=>!c))return console.warn(u),{error:this.setErrorRun(i[2])};const r=c=>(this.serverConfig=c,this.playerInfo=this.createPlayerInfo(c),this.playerInfo);try{const c=await this.performKeyCheck();if(c.code!==200)return{error:this.setErrorRun(i[3])};const h=r(c);return await T4(this.platform,this.stage,h,this.appId,this.accessKey),await A4(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:h}}catch(c){return console.error("VPE SDK Initialization failed:",c),{error:this.setErrorRun(i[4])}}}async performKeyCheck(){const i=["?preview=true","config","Content-Type","application/json","access_key","domain","POST"],u=this.isDev?i[0]:"",r=V4(x4[this.platform][this.stage][i[1]])+u,c=JSON.stringify([i[4],i[5]].reduce((d,g,p)=>(d[g]=[this.accessKey,this.appId][p],d),{})),h=await fetch(r,{method:i[6],headers:{[i[2]]:i[3]},body:c});if(!h.ok)throw new Error(["API","Error:",h.status,h.statusText].join(" "));return h.json()}getBrowserInfo(){const i=navigator.userAgent;return/Edg\/(\d+\.\d+)/.test(i)?{origin:"Edge",version:RegExp.$1}:/Chrome\/(\d+\.\d+)/.test(i)&&!i.includes("Edg")?{origin:"Chrome",version:RegExp.$1}:/Firefox\/(\d+\.\d+)/.test(i)?{origin:"Firefox",version:RegExp.$1}:/Version\/(\d+\.\d+)/.test(i)&&i.includes("Safari")?{origin:"Safari",version:RegExp.$1}:{origin:"Unknown",version:"Unknown"}}createPlayerInfo(i){const[u,r]=i.result.name.split("|"),c=navigator.connection||navigator.mozConnection||navigator.webkitConnection,h=this.getBrowserInfo(),d=navigator.userAgentData;return{cid:i.result.cid,player_name:u,player_version:r,pricing:i.result.pricing,maUse:i.result.options?.maUse==="Y"?"Y":"N",browser:{lang:navigator.language,ua:navigator.userAgent},screen:{width:window.screen.width,height:window.screen.height},connection:{network:c?.effectiveType??"unknown",downlink:c?.downlink??null,rtt:c?.rtt??null,save_data:c?.saveData??!1},device:{platform:d?.platform??"Unknown",mobile:d?.mobile??!1,memory:navigator.deviceMemory??null,processor:navigator.hardwareConcurrency??null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:r,device:d?.platform??"Unknown",os:d?.platform??"Unknown",osOrigin:d?.platform??"Unknown",osVersion:d?.platformVersion??"Unknown",vpePackageId:this.appId,actionDuration:0,actionType:"ready",browser:h.origin,browserOrigin:h.origin,browserVersion:h.version,protocol:location.protocol,quality:"Other",qualityOrigin:"Auto",host:`${this.appId}&${d?.platform??"Unknown"}&${d?.platformVersion??"Unknown"}`,location:`${this.appId}://appView/video/vpe`,title:""}}}setErrorRun(i){const u=i.slice(-2),r=this.translator.error[u]||this.translator.error["01"],c={errorCode:i,errorMessage:r};return this.errorState=c,console.error("ncplayer : ",c),c}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(i){const u=M4(this.serverConfig.result?.options?.options),r={...u,...i??{}};return i?.controlBtn&&(r.controlBtn={...u.controlBtn,...i.controlBtn}),i?.watermarkConfig&&(r.watermarkConfig={...u.watermarkConfig,...i.watermarkConfig}),r.playlist&&!Array.isArray(r.playlist)&&(r.playlist=[{file:r.playlist}]),N0=r.playlist||[],r}getPlaylist(){return N0||[]}$t(i){const u=i.split(".");let r=this.translator;for(const c of u)if(r&&typeof r=="object"&&c in r)r=r[c];else return i;return typeof r=="string"?r:i}}const Nu=new Map;function C4(a,i){if(Nu.has(a))return Nu.get(a);const r={value:typeof i=="function"?i():i,listeners:new Set};return Nu.set(a,r),r}function Z0(a,i){const u=C4(a,i),r=g=>(u.listeners.add(g),()=>u.listeners.delete(g)),c=()=>u.value,h=g=>{u.value=typeof g=="function"?g(u.value):g,u.listeners.forEach(p=>p())};return[f.useSyncExternalStore(r,c),h]}const Zu=new Map;function D4(a,i){if(Zu.has(a))return Zu.get(a);const r={value:typeof i=="function"?i():i,listeners:new Set};return Zu.set(a,r),r}function U0(a,i){const u=D4(a,i),r=g=>(u.listeners.add(g),()=>u.listeners.delete(g)),c=()=>u.value,h=f.useCallback(g=>{u.value=typeof g=="function"?g(u.value):g,u.listeners.forEach(p=>p())},[u]);return[f.useSyncExternalStore(r,c),h]}const R4="playerState",H4={isUserTouch:!1,isPlaying:!1,initPlay:!1,isEnded:!1,isMuted:!1,isLive:!1,isDvr:!1,isSeeked:!1,isWaiting:!0,isLoading:!0,hasSubtitle:!1,isPictureInPicture:!1,isSettingModal:!1,isFullscreen:!1,isSubtitle:!0,subTitleIdx:0,currentTime:0,duration:0,buffered:0,bufferedStart:0,bufferedEnd:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function fe(){const[a,i]=U0(R4,H4),u=f.useCallback(r=>{i(c=>{const h=typeof r=="function"?r(c):r;return{...c,...h}})},[i]);return[a,u]}const j4="playerController",O4={videoEl:null,hls:null};function Ee(){const[a,i]=U0(j4,O4),[u,r]=fe(),c=f.useCallback(q=>{i(z=>({...z,videoEl:q}))},[i]),h=f.useCallback(q=>{i(z=>({...z,hls:q}))},[i]),d=f.useCallback(()=>{r({isUserTouch:!0})},[r]),g=f.useCallback(()=>{const q=a.videoEl;q&&q.paused&&q.play()},[a.videoEl]),p=f.useCallback(()=>{const q=a.videoEl;q&&(q.paused||q.pause())},[a.videoEl]),y=f.useCallback(q=>{const z=a.videoEl;if(!z||Number.isNaN(q))return;const k=Math.max(0,Math.min(q,z.duration||q));z.currentTime=k,r({currentTime:k})},[r,a.videoEl]),v=f.useCallback(q=>{const z=a.videoEl;if(!z||Number.isNaN(q))return;const k=Math.max(0,Math.min(100,q));z.volume=k/100,z.muted=k===0},[a.videoEl]),b=f.useCallback(q=>{const z=a.videoEl;z&&(z.muted=q)},[a.videoEl]),E=f.useCallback(q=>{const z=a.videoEl;if(!z)return;const k=z.textTracks;if(!k||k.length===0)return;const J=Math.max(0,Math.min(u.subTitleIdx??0,k.length-1));for(let K=0;K<k.length;K+=1)k[K].mode=q&&K===J?"showing":"disabled";r({isSubtitle:q})},[u.subTitleIdx,r,a.videoEl]),L=f.useCallback(()=>{const q=a.videoEl;if(!q)return;const z=q.textTracks;if(!z||z.length===0){r({isSubtitle:!1});return}let k=!1;for(let J=0;J<z.length;J+=1)if(z[J].mode==="showing"){k=!0;break}k?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),E(!k)},[r,E,a.videoEl]),O=f.useCallback(q=>{const z=a.videoEl;if(!z)return;const k=Array.from(z.querySelectorAll("track")),J=z.textTracks;if((!J||J.length===0)&&k.length===0){r({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const K=k.length>0?k.length-1:J.length-1,I=Math.max(0,Math.min(q,K));if(k.length>0)k.forEach((at,Rt)=>{at.track&&(at.track.mode=Rt===I?"showing":"disabled")});else for(let at=0;at<J.length;at+=1)J[at].mode=at===I?"showing":"disabled";r({isSubtitle:!0,subTitleIdx:I}),localStorage.setItem("vpeSubtitleEnabled","Y")},[r,a.videoEl]),B=f.useCallback(()=>{const q=a.videoEl;q&&(q.muted=!q.muted)},[a.videoEl]),U=f.useCallback(()=>{const q=a.videoEl;q&&(q.paused?g():p())},[p,g,a.videoEl]),j=f.useCallback(q=>{const z=a.hls;if(z){if(q==="auto"){z.currentLevel=-1,r({currentLevel:-1,isAutoLevel:!0});return}z.currentLevel=q,r({currentLevel:q,isAutoLevel:!1})}},[r,a.hls]),Y=f.useCallback(q=>{const z=a.videoEl;z&&(z.playbackRate=q)},[a.videoEl]),Q=f.useCallback(async()=>{const q=a.videoEl;if(!q||typeof document>"u")return;const z=document;if(z.pictureInPictureElement){typeof z.exitPictureInPicture=="function"&&await z.exitPictureInPicture();return}const k=q.requestPictureInPicture;typeof k=="function"&&await k.call(q)},[a.videoEl]);return{videoEl:a.videoEl,hls:a.hls,setVideoElement:c,setHlsInstance:h,play:g,pause:p,seekTo:y,setVolume:v,setMuted:b,setSubtitleEnabled:E,toggleSubtitle:L,toggleMute:B,togglePlay:U,useTouch:d,playBackRate:Y,selectSubTitle:O,selectQualityLevel:j,togglePictureInPicture:Q}}function z4(a,i,u=!1){f.useEffect(()=>{const r=a.current;if(!r)return;const c=()=>{i({isPlaying:!0,initPlay:!0,isEnded:!1})},h=()=>{i({isPlaying:!1})},d=()=>{u||Math.round(r.currentTime)%1==0&&i({currentTime:r.currentTime,duration:r.duration})},g=()=>{if(r.buffered.length>0){const Y=r.buffered.start(0),Q=r.buffered.end(r.buffered.length-1);i({buffered:Q,bufferedStart:Y,bufferedEnd:Q})}},p=()=>{i({isEnded:!0})},y=()=>{i({isSeeked:!0})},v=()=>{setTimeout(()=>{i({isSeeked:!1})},200)},b=()=>{i({isMuted:r.muted,isVolume:Math.round(r.volume*100)})},E=()=>{i({isLoading:!0,isWaiting:!0})},L=()=>{i({isLoading:!1})},O=()=>{i({isLoading:!1})},B=()=>{i({isWaiting:!0})},U=()=>{i({isWaiting:!1,isLoading:!1})},j=()=>{i({isWaiting:!0})};return r.addEventListener("play",c),r.addEventListener("pause",h),r.addEventListener("timeupdate",d),r.addEventListener("ended",p),r.addEventListener("progress",g),r.addEventListener("seeking",y),r.addEventListener("seeked",v),r.addEventListener("volumechange",b),r.addEventListener("loadstart",E),r.addEventListener("loadedmetadata",L),r.addEventListener("loadeddata",O),r.addEventListener("waiting",B),r.addEventListener("playing",U),r.addEventListener("stalled",j),b(),()=>{r.removeEventListener("play",c),r.removeEventListener("pause",h),r.removeEventListener("timeupdate",d),r.removeEventListener("ended",p),r.removeEventListener("progress",g),r.removeEventListener("seeking",y),r.removeEventListener("seeked",v),r.removeEventListener("volumechange",b),r.removeEventListener("loadstart",E),r.removeEventListener("loadedmetadata",L),r.removeEventListener("loadeddata",O),r.removeEventListener("waiting",B),r.removeEventListener("playing",U),r.removeEventListener("stalled",j)}},[u,i,a])}function B4(a){const i=f.useRef(null),[u,r]=fe(),{setVideoElement:c,setHlsInstance:h}=Ee(),d=a.hlsLib,g=a.options;return f.useEffect(()=>{const p=i.current,y=a?.src?.file;if(!(!p||!y)){if(d?.isSupported?.()){const v=new d({lowLatencyMode:g.lowLatencyMode,liveSyncDuration:g.lowLatencyMode?3:5,backBufferLength:g.lowLatencyMode?30:90,startPosition:-1});h(v),v.attachMedia(p),v.on(d.Events.MEDIA_ATTACHED,()=>{v.loadSource(y)});const b=E=>{if(typeof E?.details?.live=="boolean"){const L=E.details.live,O=E.details.totalduration,B=L&&typeof O=="number"&&Number.isFinite(O)&&O>0;r({isLive:L,isDvr:B})}};return v.on(d.Events.MANIFEST_PARSED,(E,L)=>{b(L);const O=(v.levels??[]).map((B,U)=>({index:U,width:B.width,height:B.height,bitrate:B.bitrate,name:B.name}));r({levels:O,currentLevel:v.currentLevel,isAutoLevel:v.autoLevelEnabled})}),v.on(d.Events.LEVEL_LOADED,(E,L)=>{b(L)}),v.on(d.Events.LEVEL_SWITCHED,(E,L)=>{r({currentLevel:L.level,isAutoLevel:v.autoLevelEnabled})}),v.on(d.Events.ERROR,(E,L)=>{a.onError&&a.onError({evt:E,data:L})}),()=>{h(null),v.destroy()}}p.src=y}},[d,a?.src?.file,a.onError,h,r]),f.useEffect(()=>{const p=i.current;if(!p||d?.isSupported?.())return;const y=()=>{const v=p.duration,b=!Number.isFinite(v)||v===1/0,E=b?Number.isFinite(v)&&v>0:!1;r({isLive:b,isDvr:E})};return p.addEventListener("loadedmetadata",y),p.addEventListener("durationchange",y),y(),()=>{p.removeEventListener("loadedmetadata",y),p.removeEventListener("durationchange",y)}},[d,r]),f.useEffect(()=>(c(i.current),()=>c(null)),[c]),f.useEffect(()=>{const p=i.current;if(!p)return;const y=g?.playbackRate;typeof y=="number"&&(p.playbackRate=y,r({playbackRate:y}))},[g]),f.useEffect(()=>{const p=i.current;if(!p||!a.src?.vtt?.length)return;const y=50,v=16,b=1.2,E=40,O=-Math.max(1,Math.round(y/(v*b))),B=z=>{if(z.cues)for(let k=0;k<z.cues.length;k+=1){const J=z.cues[k];J.line=O,J.lineAlign="center"}},U=z=>{if(!z.cues)return;const k=p.getBoundingClientRect(),J=k.width>0?E*2*100/k.width:0,K=Math.max(10,Math.min(100,100-J));for(let I=0;I<z.cues.length;I+=1){const at=z.cues[I];at.size=K,at.position=50,at.align="center"}},j=z=>{B(z),U(z)},Y=Array.from(p.querySelectorAll("track")),Q=z=>{const k=z.currentTarget;k?.track&&j(k.track)};Y.forEach(z=>{z.addEventListener("load",Q),z.track&&j(z.track)});const q=new ResizeObserver(()=>{Y.forEach(z=>{z.track&&U(z.track)})});return q.observe(p),()=>{Y.forEach(z=>{z.removeEventListener("load",Q)}),q.disconnect()}},[g,a.src?.vtt]),z4(i,r,u.isSeeked),f.useEffect(()=>{const p=a.src?.vtt??[],y=p.length>0,v=p.findIndex(E=>E.default),b=v>=0?v:0;r({hasSubtitle:y,isSubtitle:!1,subTitleIdx:b})},[a.src?.vtt,r]),f.useEffect(()=>{if(!u.isSubtitle)return;const p=i.current;if(!p||!a.src?.vtt?.length)return;const y=new Map,v=[],b=async(L,O)=>{try{const B=await fetch(O,{mode:"cors"});if(!B.ok)return;const U=await B.blob(),j=URL.createObjectURL(U);v.push(j),y.set(L,L.src),L.src=j}catch{}},E=Array.from(p.querySelectorAll("track"));return E.forEach(L=>{L.src&&b(L,L.src)}),()=>{E.forEach(L=>{const O=y.get(L);O&&(L.src=O)}),v.forEach(L=>URL.revokeObjectURL(L))}},[a.src?.vtt,u.subTitleIdx,u.isSubtitle]),f.useEffect(()=>{const p=i.current;if(!p)return;const y=Array.from(p.querySelectorAll("track")),v=p.textTracks;if((!v||v.length===0)&&y.length===0)return;const b=u.subTitleIdx,E=u.isSubtitle,L=()=>{if(y.length>0){y.forEach(B=>{B.track&&(B.default=!1,B.track.mode="disabled")}),y.forEach((B,U)=>{B.track&&E&&U===b&&(B.default=!0,B.track.mode="showing")});return}for(let B=0;B<v.length;B+=1)v[B].mode="disabled";E&&v[b]&&(v[b].mode="showing")};L();const O=()=>{L()};return y.forEach(B=>{B.addEventListener("load",O)}),()=>{y.forEach(B=>{B.removeEventListener("load",O)})}},[u.isSubtitle,u.subTitleIdx,a.src?.vtt]),f.useEffect(()=>{const p=i.current;p&&g.autostart&&p.play().catch(y=>{console.log(y),p.muted=!0,p.play()})},[g.autostart]),f.useEffect(()=>{setTimeout(()=>{if(!i.current)return;const y=localStorage.getItem("vpeSubtitleEnabled");y!==null&&u.hasSubtitle&&r({isSubtitle:!!y})},1e3)},[u.hasSubtitle,r]),A.jsx(A.Fragment,{children:a?.src?.file&&A.jsx("video",{playsInline:!0,ref:i,className:"w-full h-full ",controls:!1,autoPlay:g?.autostart,muted:g?.muted,loop:g?.repeat,style:{maxHeight:"100%",background:a.src.poster?u.initPlay?"transparent":`url(${a.src.poster}) center / ${g?.objectFit??"contain"} no-repeat`:void 0,objectFit:g?.objectFit??"contain"},children:a.src.vtt?.map(p=>A.jsx("track",{kind:"subtitles",srcLang:p.id,label:p.label,src:p.src,default:p.default},`${p.id}-${p.src}`))})})}function w4(a){return A.jsx(A.Fragment,{children:a?.src?.file&&A.jsx("div",{children:a.src.file})})}function N4(a){return A.jsx(A.Fragment,{children:a?.src?.file&&A.jsx("div",{children:a.src.file})})}function Z4(a){return A.jsx(B4,{...a})}function U4(a){return A.jsx(w4,{...a})}function _4(a){return A.jsx(N4,{...a})}function G4(a){const i=f.useRef(null),u=f.useRef(null),r=a.hlsLib;return f.useEffect(()=>{const c=i.current,h=a?.src?.file;if(!(!c||!h)){if(r?.isSupported?.()){const d=new r({startLevel:0,autoLevelCapping:0});return d.attachMedia(c),d.on(r.Events.MEDIA_ATTACHED,()=>{d.loadSource(h)}),d.on(r.Events.MANIFEST_PARSED,()=>{d.currentLevel=0,d.autoLevelEnabled=!1}),d.on(r.Events.ERROR,(g,p)=>{a.onError&&a.onError({evt:g,data:p})}),()=>{d.destroy()}}c.src=h}},[r,a?.src?.file,a.onError]),f.useEffect(()=>{const c=i.current;if(!c||!a.isHovering||typeof a.previewTime!="number")return;u.current=a.previewTime;const h=()=>{const g=u.current;if(typeof g!="number"||Number.isNaN(g))return;const p=c.duration,y=Math.max(0,Math.min(g,Number.isFinite(p)?p:g));Math.abs(c.currentTime-y)>.25&&(c.currentTime=y),c.pause()};if(c.readyState>=1){h();return}const d=()=>h();return c.addEventListener("loadedmetadata",d,{once:!0}),()=>{c.removeEventListener("loadedmetadata",d)}},[a.isHovering,a.previewTime]),A.jsx(A.Fragment,{children:a?.src?.file&&A.jsx("video",{playsInline:!0,ref:i,className:"w-full h-full",controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{objectFit:"cover"}})})}function q4(a="(max-width: 768px)"){const[i,u]=f.useState({isMobile:!1,isPortrait:!1});return f.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(a),c=window.matchMedia("(orientation: portrait)"),h=()=>u({isMobile:r.matches,isPortrait:c.matches});return h(),r.addEventListener("change",h),c.addEventListener("change",h),()=>{r.removeEventListener("change",h),c.removeEventListener("change",h)}},[a]),i}class Y4{formatTime(i){if(!i)return"00:00";const u=Math.floor(i),r=String(Math.floor(u/3600)).padStart(2,"0"),c=String(Math.floor(u%3600/60)).padStart(2,"0"),h=String(u%60).padStart(2,"0");return r!=="00"?`${r}:${c}:${h}`:`${c}:${h}`}}const Uu=new Y4,Ha=a=>Math.max(0,Math.min(100,a));function _0({color:a="#ff0000",src:i,hlsLib:u,dashLib:r,options:c,onError:h}){const{isMobile:d}=q4(),[g,p]=fe(),{seekTo:y}=Ee(),[v,b]=f.useState(!1),[E,L]=f.useState(0),[O,B]=f.useState(0),[U,j]=f.useState(null),[Y,Q]=f.useState(null),[q,z]=f.useState(null),k=f.useRef(null),J=f.useRef(null),K=f.useRef(null),I=a||"#ff0000",at="5px",Rt=g.duration??0,$=Rt>0?Rt:0,ct=$>0?(g.currentTime??0)/$*100:0,Mt=$>0?(g.buffered??0)/$*100:0,mt=!!g.isLive,N=(mt&&Rt>0?Math.abs(Rt-(g.currentTime??0))<30:!1)?100:Ha(E),X=U??ct,ot=Y??X,bt=q??X,Wt=$>0?$*(X/100):0,x=U!==null,G=f.useCallback(ut=>{const lt=k.current;if(!lt)return null;const ht=lt.getBoundingClientRect();if(ht.width<=0)return null;const Jt="clientX"in ut?ut.clientX:0;return Math.min(Math.max(Jt-ht.left,0),ht.width)/ht.width*100},[]),P=f.useCallback(ut=>{const lt=k.current;if(!lt)return;const ht=lt.getBoundingClientRect();if(ht.width<=0)return;const Jt=$i=>{const sn=$i>0?$i/2/ht.width*100:0,da=Math.max(0,Math.min(50,sn)),Wi=Math.max(da,100-da);return{minPercent:da,maxPercent:Wi}},Bt=J.current?.offsetWidth??0,On=Jt(Bt),zn=G(ut);if(zn===null)return;j(Ha(zn));const Ka=Math.max(On.minPercent,Math.min(On.maxPercent,zn));z(Ka),Q(Ka)},[G]),tt=f.useCallback(()=>{j(null),Q(null),z(null)},[]);return f.useEffect(()=>{v||(L(ct),B(Mt))},[v,ct,Mt]),A.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px"},onMouseMove:P,onMouseLeave:tt,children:A.jsxs("div",{style:{margin:"0px 0px",position:"relative","--seekSliderColor":I,"--seekSliderThumbColor":I,"--rlMargin":at},children:[A.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:k,children:A.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.38)",width:"100%"},children:[x&&!g.isLive&&!d&&A.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:c?.aspectRatio??"16/9",backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Ha(bt)}%`,transform:"translateX(-50%)"},ref:J,children:A.jsx(A.Fragment,{children:u&&A.jsx(G4,{src:i,hlsLib:u,options:c,onError:h,previewTime:Wt,isHovering:x})})}),x&&!g.isLive&&A.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-30px",left:`${Ha(ot)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:K,children:Uu.formatTime(Wt)})]})}),A.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:A.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${O<1?1:O>98?100:O}%`}})}),A.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:A.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${N<1?1:N}%`},children:A.jsx("div",{style:{position:"relative"},children:A.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),A.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:A.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:N,onPointerDown:ut=>{if(mt)return;p({isSeeked:!0}),b(!0);const lt=G(ut);lt!==null&&L(Ha(lt))},onPointerUp:()=>{if(mt)return;b(!1);const ut=$*(N/100);y(ut)},onChange:ut=>{if(mt)return;const lt=Number(ut.currentTarget.value),ht=Number.isNaN(lt)?0:lt;L(Ha(ht))},disabled:mt||$===0})})]})})}const X4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),f.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),k4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216.49,56.48,177,96h19a12,12,0,0,1,0,24H148a12,12,0,0,1-12-12V60a12,12,0,0,1,24,0V79l39.51-39.52a12,12,0,0,1,17,17ZM108,136H60a12,12,0,0,0,0,24H79L39.51,199.51a12,12,0,0,0,17,17L96,177v19a12,12,0,0,0,24,0V148A12,12,0,0,0,108,136Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),f.createElement("path",{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M120,144v48a8,8,0,0,1-13.66,5.66L88,179.31,53.66,213.66a8,8,0,0,1-11.32-11.32L76.69,168,58.34,149.66A8,8,0,0,1,64,136h48A8,8,0,0,1,120,144ZM213.66,42.34a8,8,0,0,0-11.32,0L168,76.69,149.66,58.34A8,8,0,0,0,136,64v48a8,8,0,0,0,8,8h48a8,8,0,0,0,5.66-13.66L179.31,88l34.35-34.34A8,8,0,0,0,213.66,42.34Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M212.24,52.24,158.48,106H192a6,6,0,0,1,0,12H144a6,6,0,0,1-6-6V64a6,6,0,0,1,12,0V97.52l53.76-53.76a6,6,0,0,1,8.48,8.48ZM112,138H64a6,6,0,0,0,0,12H97.52L43.76,203.76a6,6,0,1,0,8.48,8.48L106,158.48V192a6,6,0,0,0,12,0V144A6,6,0,0,0,112,138Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M210.83,50.83,153.66,108H192a4,4,0,0,1,0,8H144a4,4,0,0,1-4-4V64a4,4,0,0,1,8,0v38.34l57.17-57.17a4,4,0,1,1,5.66,5.66ZM112,140H64a4,4,0,0,0,0,8h38.34L45.17,205.17a4,4,0,0,0,5.66,5.66L108,153.66V192a4,4,0,0,0,8,0V144A4,4,0,0,0,112,140Z"}))]]),K4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M220,48V96a12,12,0,0,1-24,0V77l-39.51,39.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM99.51,139.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l39.52-39.51a12,12,0,0,0-17-17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),f.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M117.66,138.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l34.34-34.35A8,8,0,0,1,117.66,138.34ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72l-34.35,34.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M212,48V96a4,4,0,0,1-8,0V57.66l-57.17,57.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM109.17,141.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l57.17-57.17a4,4,0,0,0-5.66-5.66Z"}))]]),F4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M204.4,51.6a108,108,0,1,0,0,152.8A108.16,108.16,0,0,0,204.4,51.6Zm-17,135.82a84,84,0,1,1,0-118.84A84.12,84.12,0,0,1,187.42,187.42Zm-58.93-67.91a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17-17L103,128,79.49,104.47a12,12,0,1,1,17-17Zm56,17-32,32a12,12,0,0,1-17-17L159,128l-23.52-23.53a12,12,0,1,1,17-17l32,32A12,12,0,0,1,184.51,136.49Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M195.88,195.88a96,96,0,1,1,0-135.76A96,96,0,0,1,195.88,195.88Z",opacity:"0.2"}),f.createElement("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,190.23a88,88,0,1,1,0-124.46A88.11,88.11,0,0,1,190.23,190.23Zm-64.57-67.89a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L108.69,128,82.34,101.66A8,8,0,0,1,93.66,90.34Zm56,0a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L164.69,128l-26.35-26.34a8,8,0,0,1,11.32-11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M201.57,54.42a104,104,0,1,0,0,147.15A104.17,104.17,0,0,0,201.57,54.42Zm-75.91,79.24-32,32a8,8,0,1,1-11.32-11.32L108.68,128,82.32,101.64A8,8,0,1,1,93.64,90.32l32,32A8,8,0,0,1,125.66,133.66Zm56,0-32,32a8,8,0,0,1-11.32-11.32L164.71,128l-26.36-26.36a8,8,0,1,1,11.32-11.32l32,32A8,8,0,0,1,181.68,133.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200.12,55.87A102,102,0,0,0,55.87,200.12,102,102,0,1,0,200.12,55.87Zm-8.48,135.77a90,90,0,1,1,0-127.28A90.1,90.1,0,0,1,191.64,191.64Zm-67.4-67.88a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L111.51,128,83.76,100.24a6,6,0,0,1,8.48-8.48Zm56,0a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L167.51,128l-27.75-27.76a6,6,0,0,1,8.48-8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,190.23a88,88,0,1,1,0-124.46A88.11,88.11,0,0,1,190.23,190.23Zm-64.57-67.89a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L108.69,128,82.34,101.66A8,8,0,0,1,93.66,90.34Zm56,0a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32-11.32L164.69,128l-26.35-26.34a8,8,0,0,1,11.32-11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M198.71,57.29A100,100,0,1,0,57.29,198.71,100,100,0,1,0,198.71,57.29Zm-5.66,135.76A92,92,0,1,1,220,128,91.37,91.37,0,0,1,193.05,193.05Zm-70.22-67.88a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L114.34,128,85.17,98.83a4,4,0,0,1,5.66-5.66Zm56,0a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L170.34,128,141.17,98.83a4,4,0,0,1,5.66-5.66Z"}))]]),Q4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),f.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),P4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),f.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),J4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),$4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,144H36V68H220ZM52,128a44,44,0,0,1,66-38.11,12,12,0,0,1-12,20.78,20,20,0,1,0,0,34.66,12,12,0,1,1,12,20.77A44,44,0,0,1,52,128Zm80,0a44,44,0,0,1,66-38.11,12,12,0,0,1-12,20.78,20,20,0,1,0,0,34.66,12,12,0,1,1,12,20.77A44,44,0,0,1,132,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232,64V192a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H224A8,8,0,0,1,232,64Z",opacity:"0.2"}),f.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM118.93,151.71A8,8,0,0,1,116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,118.93,151.71Zm80,0A8,8,0,0,1,196,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,198.93,151.71Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58,8,8,0,0,1,8,13.85Zm80,0a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58,8,8,0,0,1,8,13.85Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50Zm2,142a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM117.19,152.71a6,6,0,0,1-2.19,8.2,38,38,0,1,1,0-65.82,6,6,0,1,1-6,10.38,26,26,0,1,0,0,45.05A6,6,0,0,1,117.19,152.71Zm80,0a6,6,0,0,1-2.19,8.2,38,38,0,1,1,0-65.82,6,6,0,1,1-6,10.38,26,26,0,1,0,0,45.05A6,6,0,0,1,197.19,152.71Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192ZM118.92,151.71A8,8,0,0,1,116,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,118.92,151.71Zm80,0A8,8,0,0,1,196,162.64a40,40,0,1,1,0-69.28,8,8,0,1,1-8,13.85,24,24,0,1,0,0,41.58A8,8,0,0,1,198.92,151.71Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52Zm4,140a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM115.46,153.71a4,4,0,0,1-1.46,5.47,36,36,0,1,1,0-62.36,4,4,0,0,1-4,6.92,28,28,0,1,0,0,48.52A4,4,0,0,1,115.46,153.71Zm80,0a4,4,0,0,1-1.46,5.47,36,36,0,1,1,0-62.36,4,4,0,0,1-4,6.92,28,28,0,1,0,0,48.52A4,4,0,0,1,195.46,153.71Z"}))]]),W4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M140,124v92a12,12,0,0,1-24,0V124a12,12,0,0,1,24,0Zm60,68a12,12,0,0,0-12,12v12a12,12,0,0,0,24,0V204A12,12,0,0,0,200,192Zm24-40H212V40a12,12,0,0,0-24,0V152H176a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24ZM56,160a12,12,0,0,0-12,12v44a12,12,0,0,0,24,0V172A12,12,0,0,0,56,160Zm24-40H68V40a12,12,0,0,0-24,0v80H32a12,12,0,0,0,0,24H80a12,12,0,0,0,0-24Zm72-48H140V40a12,12,0,0,0-24,0V72H104a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,40V216H56V40Z",opacity:"0.2"}),f.createElement("path",{d:"M136,120v96a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0Zm64,72a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V200A8,8,0,0,0,200,192Zm24-32H208V40a8,8,0,0,0-16,0V160H176a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16ZM56,160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168A8,8,0,0,0,56,160Zm24-32H64V40a8,8,0,0,0-16,0v88H32a8,8,0,0,0,0,16H80a8,8,0,0,0,0-16Zm72-48H136V40a8,8,0,0,0-16,0V80H104a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,120v96a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0Zm64,72a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V200A8,8,0,0,0,200,192Zm24-48H208V40a8,8,0,0,0-16,0V144H176a8,8,0,0,0-8,8v16a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,224,144ZM56,160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168A8,8,0,0,0,56,160Zm24-48H64V40a8,8,0,0,0-16,0v72H32a8,8,0,0,0-8,8v16a8,8,0,0,0,8,8H80a8,8,0,0,0,8-8V120A8,8,0,0,0,80,112Zm72-48H136V40a8,8,0,0,0-16,0V64H104a8,8,0,0,0-8,8V88a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V72A8,8,0,0,0,152,64Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M134,120v96a6,6,0,0,1-12,0V120a6,6,0,0,1,12,0Zm66,74a6,6,0,0,0-6,6v16a6,6,0,0,0,12,0V200A6,6,0,0,0,200,194Zm24-32H206V40a6,6,0,0,0-12,0V162H176a6,6,0,0,0,0,12h48a6,6,0,0,0,0-12ZM56,162a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V168A6,6,0,0,0,56,162Zm24-32H62V40a6,6,0,0,0-12,0v90H32a6,6,0,0,0,0,12H80a6,6,0,0,0,0-12Zm72-48H134V40a6,6,0,0,0-12,0V82H104a6,6,0,0,0,0,12h48a6,6,0,0,0,0-12Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,120v96a8,8,0,0,1-16,0V120a8,8,0,0,1,16,0Zm64,72a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V200A8,8,0,0,0,200,192Zm24-32H208V40a8,8,0,0,0-16,0V160H176a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16ZM56,160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168A8,8,0,0,0,56,160Zm24-32H64V40a8,8,0,0,0-16,0v88H32a8,8,0,0,0,0,16H80a8,8,0,0,0,0-16Zm72-48H136V40a8,8,0,0,0-16,0V80H104a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M132,120v96a4,4,0,0,1-8,0V120a4,4,0,0,1,8,0Zm68,76a4,4,0,0,0-4,4v16a4,4,0,0,0,8,0V200A4,4,0,0,0,200,196Zm24-32H204V40a4,4,0,0,0-8,0V164H176a4,4,0,0,0,0,8h48a4,4,0,0,0,0-8ZM56,164a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V168A4,4,0,0,0,56,164Zm24-32H60V40a4,4,0,0,0-8,0v92H32a4,4,0,0,0,0,8H80a4,4,0,0,0,0-8Zm72-48H132V40a4,4,0,0,0-8,0V84H104a4,4,0,0,0,0,8h48a4,4,0,0,0,0-8Z"}))]]),I4=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),f.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),tp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),f.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),ep=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,44H40A20,20,0,0,0,20,64V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44ZM44,68H212v48H136a12,12,0,0,0-12,12v60H44ZM148,188V140h64v48Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,64v64H136v72H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),f.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,64H216v56H136a8,8,0,0,0-8,8v64H40ZM216,192H144V136h72v56Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48Zm0,144H136V128h80v64Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,50H40A14,14,0,0,0,26,64V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50ZM38,192V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2v58H136a6,6,0,0,0-6,6v66H40A2,2,0,0,1,38,192Zm178,2H142V134h76v58A2,2,0,0,1,216,194Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,64H216v56H136a8,8,0,0,0-8,8v64H40ZM216,192H144V136h72v56Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,52H40A12,12,0,0,0,28,64V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52ZM36,192V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4v60H136a4,4,0,0,0-4,4v68H40A4,4,0,0,1,36,192Zm180,4H140V132h80v60A4,4,0,0,1,216,196Z"}))]]),np=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),f.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),ap=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.27,21.22a12,12,0,0,0-12.64,1.31L83.88,76H40A20,20,0,0,0,20,96v64a20,20,0,0,0,20,20H83.88l68.75,53.47A12,12,0,0,0,172,224V32A12,12,0,0,0,165.27,21.22ZM148,199.47,95.37,158.53A12,12,0,0,0,88,156H44V100H88a12,12,0,0,0,7.37-2.53L148,56.54ZM212,104v48a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm36-16v80a12,12,0,0,1-24,0V88a12,12,0,0,1,24,0Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,32V224L88,168H40a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H88Z",opacity:"0.2"}),f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36ZM208,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32-16v80a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,32V224a8,8,0,0,1-12.91,6.31L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H85.25l69.84-54.31A8,8,0,0,1,168,32Zm32,64a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V104A8,8,0,0,0,200,96Zm32-16a8,8,0,0,0-8,8v80a8,8,0,0,0,16,0V88A8,8,0,0,0,232,80Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.64,26.61a6,6,0,0,0-6.32.65L85.94,82H40A14,14,0,0,0,26,96v64a14,14,0,0,0,14,14H85.94l70.38,54.74A6,6,0,0,0,166,224V32A6,6,0,0,0,162.64,26.61ZM154,211.73,91.68,163.26A6,6,0,0,0,88,162H40a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H88a6,6,0,0,0,3.68-1.26L154,44.27ZM206,104v48a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm32-16v80a6,6,0,0,1-12,0V88a6,6,0,0,1,12,0Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36ZM208,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32-16v80a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M161.76,28.41a4,4,0,0,0-4.22.43L86.63,84H40A12,12,0,0,0,28,96v64a12,12,0,0,0,12,12H86.63l70.91,55.16A4.07,4.07,0,0,0,160,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,164,224V32A4,4,0,0,0,161.76,28.41ZM156,215.82l-65.54-51A4.06,4.06,0,0,0,88,164H40a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H88a4.06,4.06,0,0,0,2.46-.84l65.54-51ZM204,104v48a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm32-16v80a4,4,0,0,1-8,0V88a4,4,0,0,1,8,0Z"}))]]),ip=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.27,21.22a12,12,0,0,0-12.64,1.31L83.88,76H40A20,20,0,0,0,20,96v64a20,20,0,0,0,20,20H83.88l68.75,53.47A12,12,0,0,0,172,224V32A12,12,0,0,0,165.27,21.22ZM148,199.46,95.37,158.53A12,12,0,0,0,88,156H44V100H88a12,12,0,0,0,7.37-2.53L148,56.54ZM212,104v48a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,32V224L88,168H40a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H88Z",opacity:"0.2"}),f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36ZM208,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,32V224a8,8,0,0,1-12.91,6.31L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H85.25l69.84-54.31A8,8,0,0,1,168,32Zm32,64a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V104A8,8,0,0,0,200,96Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.64,26.61a6,6,0,0,0-6.32.65L85.94,82H40A14,14,0,0,0,26,96v64a14,14,0,0,0,14,14H85.94l70.38,54.74A6,6,0,0,0,166,224V32A6,6,0,0,0,162.64,26.61ZM154,211.73,91.68,163.26A6,6,0,0,0,88,162H40a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H88a6,6,0,0,0,3.68-1.26L154,44.27ZM206,104v48a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36ZM208,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M161.76,28.41a4,4,0,0,0-4.22.43L86.63,84H40A12,12,0,0,0,28,96v64a12,12,0,0,0,12,12H86.63l70.91,55.16A4.07,4.07,0,0,0,160,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,164,224V32A4,4,0,0,0,161.76,28.41ZM156,215.82l-65.54-51A4.06,4.06,0,0,0,88,164H40a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H88a4.06,4.06,0,0,0,2.46-.84l65.54-51ZM204,104v48a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),lp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.27,21.22a12,12,0,0,0-12.64,1.31L83.88,76H40A20,20,0,0,0,20,96v64a20,20,0,0,0,20,20H83.88l68.75,53.47A12,12,0,0,0,172,224V32A12,12,0,0,0,165.27,21.22ZM148,199.46,95.37,158.53A12,12,0,0,0,88,156H44V100H88a12,12,0,0,0,7.37-2.53L148,56.54Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,32V224L88,168H40a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H88Z",opacity:"0.2"}),f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M163.52,24.81a8,8,0,0,0-8.43.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A7.94,7.94,0,0,0,160,232a8,8,0,0,0,8-8V32A8,8,0,0,0,163.52,24.81Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.64,26.61a6,6,0,0,0-6.32.65L85.94,82H40A14,14,0,0,0,26,96v64a14,14,0,0,0,14,14H85.94l70.38,54.74A6,6,0,0,0,166,224V32A6,6,0,0,0,162.64,26.61ZM154,211.73,91.68,163.26A6,6,0,0,0,88,162H40a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H88a6,6,0,0,0,3.68-1.26L154,44.27Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M163.51,24.81a8,8,0,0,0-8.42.88L85.25,80H40A16,16,0,0,0,24,96v64a16,16,0,0,0,16,16H85.25l69.84,54.31A8,8,0,0,0,168,224V32A8,8,0,0,0,163.51,24.81ZM152,207.64,92.91,161.69A7.94,7.94,0,0,0,88,160H40V96H88a7.94,7.94,0,0,0,4.91-1.69L152,48.36Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M161.76,28.41a4,4,0,0,0-4.22.43L86.63,84H40A12,12,0,0,0,28,96v64a12,12,0,0,0,12,12H86.63l70.91,55.16A4.07,4.07,0,0,0,160,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,164,224V32A4,4,0,0,0,161.76,28.41ZM156,215.82l-65.54-51A4.06,4.06,0,0,0,88,164H40a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H88a4.06,4.06,0,0,0,2.46-.84l65.54-51Z"}))]]),sp=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M248,88v80a12,12,0,0,1-24,0V88a12,12,0,0,1,24,0ZM224.88,207.93a12,12,0,1,1-17.76,16.14L172,185.44V224a12,12,0,0,1-19.37,9.47L83.88,180H40a20,20,0,0,1-20-20V96A20,20,0,0,1,40,76H72.51L47.12,48.07A12,12,0,0,1,64.88,31.93ZM148,159,94.33,100H44v56H88a12,12,0,0,1,7.37,2.53L148,199.46Zm-14.15-91.5,14.15-11v38.4a12,12,0,0,0,24,0V32a12,12,0,0,0-19.37-9.47L119.12,48.6a12,12,0,1,0,14.73,18.94ZM200,150.94a12,12,0,0,0,12-12V104a12,12,0,0,0-24,0v34.94A12,12,0,0,0,200,150.94Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,32V224L88,168H40a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H88Z",opacity:"0.2"}),f.createElement("path",{d:"M192,152V104a8,8,0,0,1,16,0v48a8,8,0,0,1-16,0Zm40-72a8,8,0,0,0-8,8v80a8,8,0,0,0,16,0V88A8,8,0,0,0,232,80ZM221.92,210.62a8,8,0,1,1-11.84,10.76L168,175.09V224a8,8,0,0,1-12.91,6.31L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H81.55L50.08,45.38A8,8,0,0,1,61.92,34.62ZM152,157.49,96.1,96H40v64H88a7.94,7.94,0,0,1,4.91,1.69L152,207.64ZM125.06,69.31l26.94-21v58.47a8,8,0,0,0,16,0V32a8,8,0,0,0-12.91-6.31l-39.85,31a8,8,0,0,0,9.82,12.63Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M221.92,210.62a8,8,0,1,1-11.84,10.76L168,175.09v48.6a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H81.55L50.08,45.38A8,8,0,0,1,61.92,34.62ZM200.53,160a8.17,8.17,0,0,0,7.47-8.25V104.27A8.17,8.17,0,0,0,200.53,96a8,8,0,0,0-8.53,8v48A8,8,0,0,0,200.53,160ZM161,119.87a4,4,0,0,0,7-2.7V32.24a8.25,8.25,0,0,0-2.88-6.39,8,8,0,0,0-10-.16L111.83,59.33a4,4,0,0,0-.5,5.85ZM231.47,80A8.17,8.17,0,0,0,224,88.27v79.46a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V88A8,8,0,0,0,231.47,80Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M194,152V104a6,6,0,0,1,12,0v48a6,6,0,0,1-12,0Zm38-70a6,6,0,0,0-6,6v80a6,6,0,0,0,12,0V88A6,6,0,0,0,232,82ZM220.44,212a6,6,0,0,1-8.88,8.08L166,169.92V224a6,6,0,0,1-9.68,4.74L85.94,174H40a14,14,0,0,1-14-14V96A14,14,0,0,1,40,82H86.07L51.56,44A6,6,0,0,1,60.44,36ZM154,156.72,97,94H40a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H88a6,6,0,0,1,3.68,1.26L154,211.73Zm-30.17-89L154,44.27v62.56a6,6,0,0,0,12,0V32a6,6,0,0,0-9.68-4.74l-39.85,31a6,6,0,1,0,7.36,9.47Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M192,152V104a8,8,0,0,1,16,0v48a8,8,0,0,1-16,0Zm40-72a8,8,0,0,0-8,8v80a8,8,0,0,0,16,0V88A8,8,0,0,0,232,80ZM221.92,210.62a8,8,0,1,1-11.84,10.76L168,175.09V224a8,8,0,0,1-12.91,6.31L85.25,176H40a16,16,0,0,1-16-16V96A16,16,0,0,1,40,80H81.55L50.08,45.38A8,8,0,0,1,61.92,34.62ZM152,157.49,96.1,96H40v64H88a7.94,7.94,0,0,1,4.91,1.69L152,207.64ZM125.06,69.31l26.94-21v58.47a8,8,0,0,0,16,0V32a8,8,0,0,0-12.91-6.31l-39.85,31a8,8,0,0,0,9.82,12.63Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M196,152V104a4,4,0,0,1,8,0v48a4,4,0,0,1-8,0Zm36-68a4,4,0,0,0-4,4v80a4,4,0,0,0,8,0V88A4,4,0,0,0,232,84ZM219,213.31a4,4,0,1,1-5.92,5.38l-49-53.94V224a4,4,0,0,1-2.24,3.59A3.92,3.92,0,0,1,160,228a4.07,4.07,0,0,1-2.46-.84L86.63,172H40a12,12,0,0,1-12-12V96A12,12,0,0,1,40,84H90.59L53,42.69A4,4,0,0,1,59,37.31ZM156,156,97.87,92H40a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H88a4.06,4.06,0,0,1,2.46.84l65.54,51Zm-33.39-89.8,33.39-26v66.65a4,4,0,0,0,8,0V32a4,4,0,0,0-6.46-3.16l-39.85,31a4,4,0,1,0,4.92,6.31Z"}))]]),up=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),rp=f.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Qt=f.forwardRef((a,i)=>{const{alt:u,color:r,size:c,weight:h,mirrored:d,children:g,weights:p,...y}=a,{color:v="currentColor",size:b,weight:E="regular",mirrored:L=!1,...O}=f.useContext(rp);return f.createElement("svg",{ref:i,xmlns:"http://www.w3.org/2000/svg",width:c??b,height:c??b,fill:r??v,viewBox:"0 0 256 256",transform:d||L?"scale(-1, 1)":void 0,...O,...y},!!u&&f.createElement("title",null,u),g,p.get(h??E))});Qt.displayName="IconBase";const _u=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:X4}));_u.displayName="ArrowClockwiseIcon";const G0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:k4}));G0.displayName="ArrowsInSimpleIcon";const q0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:K4}));q0.displayName="ArrowsOutSimpleIcon";const Y0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:F4}));Y0.displayName="CaretCircleDoubleRightIcon";const X0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:Q4}));X0.displayName="CaretLeftIcon";const zi=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:P4}));zi.displayName="CaretRightIcon";const ja=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:J4}));ja.displayName="CheckIcon";const kl=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:$4}));kl.displayName="ClosedCaptioningIcon";const k0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:W4}));k0.displayName="FadersIcon";const K0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:I4}));K0.displayName="GearIcon";const Gu=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:tp}));Gu.displayName="PauseIcon";const F0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:ep}));F0.displayName="PictureInPictureIcon";const qu=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:np}));qu.displayName="PlayIcon";const Q0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:ap}));Q0.displayName="SpeakerSimpleHighIcon";const P0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:ip}));P0.displayName="SpeakerSimpleLowIcon";const J0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:lp}));J0.displayName="SpeakerSimpleNoneIcon";const $0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:sp}));$0.displayName="SpeakerSimpleSlashIcon";const W0=f.forwardRef((a,i)=>f.createElement(Qt,{ref:i,...a,weights:up}));W0.displayName="XIcon";function Oa(a){const i=a.noBg??!1;return A.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:i?"obtnNoBg":"obtn",children:a.children})}function op(a){const i=a.noPadding??!1,u=a.cap??0;return A.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:i?0:"0.5rem",paddingRight:i?0:"0.5rem",gap:u||0,position:"relative"},className:a.noBg?"obtn-group-nobg":"obtn-group",children:a.children})}function Kl(a){return A.jsx(op,{...a,children:a.children})}const Ln={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},I0={border:0,background:"transparent"},cp={display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderBottom:"1px solid rgb(205 205 205 / 8%)"},fp={flex:1},dp={display:"flex",alignItems:"center",gap:6},hp={padding:0,display:"flex",alignItems:"center",gap:6},Fl={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},Je={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer"},Cn={flex:1,justifyContent:"start",display:"flex"},Yu={display:"flex",alignItems:"center",gap:5},Ql={fontSize:"0.9rem",opacity:.6};function tf({size:a=25,weight:i="fill",color:u="#ffffff",text:r={},pos:c="left"}){const[h]=fe(),{play:d,pause:g}=Ee();return A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:h.isPlaying?r?.pause??"일시정지":r?.play??"재생"})}),A.jsx("button",{type:"button",onClick:h.isPlaying?g:d,style:Ln,children:h.isEnded?A.jsx(_u,{size:a,weight:i,color:u}):A.jsx(A.Fragment,{children:h.isPlaying?A.jsx(Gu,{size:a,weight:i,color:u}):A.jsx(qu,{size:a,weight:i,color:u})})})]})})}function mp({size:a=50,weight:i="fill",color:u="#ffffff",isPortrait:r=!1,isMobile:c=!1}){const[h]=fe(),[d,g]=f.useState(0),{play:p,pause:y}=Ee();return f.useEffect(()=>{g(v=>v+1)},[h.isPlaying]),A.jsx("div",{className:h.isEnded?"":"center-play-btn-anim",children:A.jsx(Kl,{noPadding:!0,children:A.jsx(Oa,{children:A.jsx("button",{type:"button",style:Ln,onClick:()=>{(c||r)&&(h.isPlaying?y():p())},children:h.isEnded?A.jsx(_u,{size:a,weight:i,color:u}):A.jsx(A.Fragment,{children:h.isPlaying?A.jsx(Gu,{size:a,weight:i,color:u}):A.jsx(qu,{size:a,weight:i,color:u})})})})})},d)}function pp({color:a="#ffffff"}){const[i]=fe(),{seekTo:u}=Ee(),c=(i.bufferedEnd??i.buffered??0)||i.duration||0,h=!!i.isLive,g=h&&c>0?Math.abs((i.currentTime??0)-c)<10:h,p=()=>{h&&(!c||Number.isNaN(c)||u(Math.max(0,c-.1)))};return A.jsx(A.Fragment,{children:i.isLive?A.jsxs("button",{type:"button",onClick:p,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[A.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:g?"#ff0000":a,display:"inline-block"}}),A.jsx("span",{style:{fontWeight:"bold",fontSize:"0.9rem"},children:"LIVE"})]}):A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center"},children:Uu.formatTime(i.currentTime??0)||0}),A.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),A.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center"},children:Uu.formatTime(i.duration??0)||0})]})})}function yp({text:a={},color:i="#ffffff"}){const[u]=fe(),{selectQualityLevel:r}=Ee(),c=f.useRef(!1),h=u.currentLevel??-1,d=u.levels?.find(p=>p.index===h),g=u.isAutoLevel?a.auto:d?.name??(d?.height?`${d.height}p`:`${h}`);return A.jsxs("div",{style:{position:"relative"},children:[c.current&&A.jsx("div",{style:{position:"absolute",width:"100px",height:"auto",backgroundColor:"rgba(0, 0, 0, 0.85)",borderRadius:"5px",padding:"1rem 0.8rem",bottom:"80px",left:"-50%",fontSize:"0.9rem",color:"#ffffff",zIndex:99999},children:A.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[A.jsx("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{r(-1)},children:A.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:a?.auto??"Auto"})}),[...u.levels??[]].sort((p,y)=>(y.height??0)-(p.height??0)).map(p=>{const y=p.name??(p.height?`${p.height}p`:`${p.index}`);return A.jsx("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{r(p.index),c.current=!1},children:A.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:y})},p.index)})]})}),A.jsx("button",{type:"button",onClick:()=>{c.current=!c.current},style:{...Ln,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${i}`},children:A.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:g})})]})}function gp({color:a="#ffffff",click:i=()=>{},title:u=""}){return A.jsx(A.Fragment,{children:u&&A.jsx(Kl,{children:A.jsx("button",{type:"button",onClick:i,style:{border:0,background:"transparent",lineHeight:"100%",display:"flex",alignItems:"center",height:"46px"},children:A.jsxs("div",{className:"defObj",style:{paddingLeft:"0.5rem",paddingRight:"0.2rem",maxWidth:"15rem",lineHeight:"1rem",display:"flex",alignItems:"center",color:`${a}`},children:[A.jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:u}),A.jsx("div",{style:{paddingTop:"2px"},children:A.jsx(zi,{size:15})})]})})})})}function ef(a){return A.jsx("div",{style:{flex:1,display:"flex"},children:a.children})}function vp({size:a=25,weight:i="fill",color:u="#ffffff",options:r={},text:c={},pos:h="left"}){const[d,g]=fe(),{videoEl:p}=Ee(),y=f.useRef(0),v=f.useRef(""),b=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),E=()=>{const U=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return U instanceof HTMLElement?U:null},L=U=>{if(U)if(U.classList.contains("vpe-ios-fullscreen")){g({isFullscreen:!1}),U.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=v.current;const j=document.getElementById("vpeIosFullscreenTmpDiv");j&&j.remove(),window.scrollY=y.current}else{g({isFullscreen:!0}),U.classList.add("vpe-ios-fullscreen"),y.current=window.scrollY,v.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const j=document.createElement("div");j.id="vpeIosFullscreenTmpDiv",j.style.height="120dvh",document.body.appendChild(j),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},O=()=>{if(!p)return!1;const U=p.webkitEnterFullscreen;return typeof U!="function"?!1:(U.call(p),!0)},B=()=>{if(b)if(r.iosFullscreenNativeMode){if(O())return}else{const j=document.querySelector(".vpe-root-wrap");L(j);return}if(document.fullscreenElement){document.exitFullscreen?.();return}const U=E();U&&U.requestFullscreen?.()};return f.useEffect(()=>{const U=()=>{b&&!r.iosFullscreenNativeMode||g({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",U),U(),()=>{document.removeEventListener("fullscreenchange",U)}},[g]),A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${h}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:d.isFullscreen?c?.fullOff??"전체화면 해제":c?.fullOn??"전체화면"})}),A.jsx("button",{type:"button",onClick:B,style:Ln,children:d.isFullscreen?A.jsx(G0,{size:a,weight:i,color:u}):A.jsx(q0,{size:a,weight:i,color:u})})]})})}function Sp({size:a=25,color:i="#ffffff",text:u={},pos:r="left"}){const[c]=fe(),{toggleSubtitle:h}=Ee();return A.jsx(A.Fragment,{children:c.hasSubtitle&&A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:c.isSubtitle?u?.captionOff??"자막끄기":u?.captionOn??"자막켜기"})}),A.jsx("button",{type:"button",onClick:h,style:Ln,children:c.isSubtitle?A.jsx(kl,{size:a,weight:"fill",color:i}):A.jsx(kl,{size:a,weight:"regular",color:i})})]})})})}function bp({size:a=25,weight:i="fill",color:u="#ffffff",text:r={},pos:c="left"}){const[h]=fe(),{setVolume:d,toggleMute:g}=Ee(),p=h.isVolume??0,y=h.isMuted?0:p;return A.jsxs("div",{className:"VolumBtnWrap",children:[A.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:h.isMuted?r?.muteOff??"음소거 해제":r?.muteOn??"음소거"})}),A.jsx("button",{type:"button",onClick:g,style:Ln,children:A.jsxs(A.Fragment,{children:[(p===0||h.isMuted)&&A.jsx($0,{size:a,weight:i,color:u}),p>=5&&p<=10&&!h.isMuted&&A.jsx(J0,{size:a,weight:i,color:u}),p>=11&&p<=50&&!h.isMuted&&A.jsx(P0,{size:a,weight:i,color:u}),p>=51&&!h.isMuted&&A.jsx(Q0,{size:a,weight:i,color:u})]})})]}),A.jsx("div",{className:"vslideWrap",children:A.jsx("input",{type:"range",min:0,max:100,value:y,onChange:v=>{const b=Number(v.currentTarget.value);d(Number.isNaN(b)?0:b)},className:"VolumSlide"})})]})}function Ep({color:a="#ffffff",size:i=25,text:u={},pos:r="left"}){const[c,h]=fe();return A.jsx(A.Fragment,{children:A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:u?.setting??"설정"})}),A.jsx("button",{type:"button",onClick:()=>{h({isSettingModal:!c.isSettingModal})},style:Ln,children:A.jsx(K0,{size:i,weight:"fill",color:a})})]})})})}function Ap({color:a="#ffffff",size:i=25,text:u={},pos:r="left"}){const{togglePictureInPicture:c}=Ee();return A.jsx(A.Fragment,{children:A.jsx(Oa,{noBg:!0,children:A.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[A.jsx("div",{className:"vpe-popver",children:A.jsx("div",{className:"vpe-popver-text",children:u?.miniPlayer??"미니플레이어"})}),A.jsx("button",{type:"button",onClick:()=>{c()},style:Ln,children:A.jsx(F0,{size:i,weight:"fill",color:a})})]})})})}function Tp(a){const{useTouch:i}=Ee();return A.jsx("div",{className:"absolute z-[2] h-full w-full bg-neutral-900/20 flex items-center justify-center",style:{background:`url(${a.poster}) center / ${a.options?.objectFit||"contain"} no-repeat`},onClick:()=>{i()},onTouchStart:()=>{i()},children:A.jsx("div",{children:A.jsx(Kl,{noPadding:!0,children:A.jsx(tf,{size:50})})})})}function nf(a){const[i]=fe(),{poster:u,options:r}=a,c={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${u}) center / ${r?.objectFit||"contain"} no-repeat`};return A.jsx(A.Fragment,{children:i.isLoading&&A.jsx("div",{style:c,children:A.jsx("div",{className:"ncplayer-spinner"})})})}function Mp(a){const[i,u]=fe(),{playBackRate:r,selectQualityLevel:c}=Ee(),{text:h}=a,d=a.vtt??a.src?.vtt??[],g=i.currentLevel??-1,p=i.levels?.find(j=>j.index===g),y=i.isAutoLevel?h.auto:p?.name??(p?.height?`${p.height}p`:`${g}`),[v,b]=f.useState(0),[E,L]=f.useState("forward"),[O,B]=f.useState(!1),U=f.useCallback(j=>{L(j>v?"forward":"back"),b(j),B(!0)},[v]);return f.useEffect(()=>{if(!O)return;const j=window.setTimeout(()=>{B(!1)},200);return()=>window.clearTimeout(j)},[O]),A.jsx("div",{className:"vpe-setting-modal",children:A.jsxs("div",{className:"vpe-setting-content",children:[A.jsxs("div",{style:cp,children:[A.jsxs("div",{style:fp,children:[v===0&&A.jsx("div",{children:h.setting}),v>0&&A.jsx("div",{style:dp,children:A.jsx("div",{children:A.jsxs("button",{onClick:()=>{U(0)},type:"button",style:{...I0,...hp},children:[A.jsx(X0,{size:25,color:"#ffffff"}),A.jsxs("div",{children:[v==1&&h.quality,v==2&&h.playbackRate,v==3&&h.captions]})]})})})]}),A.jsx("div",{children:A.jsx("button",{type:"button",style:I0,onClick:()=>{u({isSettingModal:!1})},children:A.jsx(W0,{size:25,color:"#ffffff"})})})]}),A.jsxs("div",{className:"vpe-modal-menu",children:[v===0&&A.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${E}`:""}`,style:Fl,children:[A.jsxs("button",{type:"button",style:Je,className:"vpe-menu-item",onClick:()=>{U(1)},children:[A.jsx("div",{children:A.jsx(k0,{size:25,color:"#ffffff"})}),A.jsx("div",{style:Cn,children:h.quality}),A.jsxs("div",{style:Yu,children:[A.jsx("span",{style:Ql,children:y}),A.jsx(zi,{size:20,color:"#ffffff"})]})]}),A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{U(2)},children:[A.jsx("div",{children:A.jsx(Y0,{size:25,color:"#ffffff"})}),A.jsx("div",{style:Cn,children:h.playbackRate}),A.jsxs("div",{style:Yu,children:[A.jsxs("span",{style:Ql,children:[i.playbackRate,"x"]}),A.jsx(zi,{size:20,color:"#ffffff"})]})]}),A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{U(3)},children:[A.jsx("div",{children:A.jsx(kl,{size:25,color:"#ffffff"})}),A.jsx("div",{style:Cn,children:h.captions}),A.jsxs("div",{style:Yu,children:[A.jsx(A.Fragment,{children:i.isSubtitle?A.jsx(A.Fragment,{children:d.map((j,Y)=>A.jsx("span",{children:i.subTitleIdx===Y&&A.jsx("span",{style:Ql,children:j.label})},`${j.id}-${j.src}`))}):A.jsx("span",{style:Ql,children:h.notUse})}),A.jsx(zi,{size:20,color:"#ffffff"})]})]})]},v),v===1&&A.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${E}`:""}`,style:Fl,children:[A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{c("auto")},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:i.isAutoLevel?"#ffffff":"transparent"})}),A.jsx("div",{style:Cn,children:h.auto})]}),[...i.levels??[]].sort((j,Y)=>(Y.height??0)-(j.height??0)).map(j=>{const Y=j.name??(j.height?`${j.height}p`:`${j.index}`);return A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{c(j.index)},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:!i.isAutoLevel&&i.currentLevel===j.index?"#ffffff":"transparent"})}),A.jsx("div",{style:Cn,children:Y})]},j.index)})]},v),v===2&&A.jsx("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${E}`:""}`,style:Fl,children:(a.options?.playRateSetting??[]).map(j=>A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{r(j),u({playbackRate:j}),U(0)},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:i.playbackRate===j?"#ffffff":"transparent"})}),A.jsxs("div",{style:Cn,children:[j,"x"]})]},j))},v),v===3&&A.jsxs("div",{className:`vpe-modal-menu-panel ${O?`vpe-modal-menu-${E}`:""}`,style:Fl,children:[A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{u({isSubtitle:!1})},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:i.isSubtitle?"transparent":"#ffffff"})}),A.jsx("div",{style:Cn,children:h.notUse})]}),d.map((j,Y)=>A.jsxs("button",{type:"button",className:"vpe-menu-item",style:Je,onClick:()=>{u({isSubtitle:!0,subTitleIdx:Y})},children:[A.jsx("div",{children:A.jsx(ja,{size:15,color:i.isSubtitle&&i.subTitleIdx===Y?"#ffffff":"transparent"})}),A.jsx("div",{style:Cn,children:j.label})]},`${j.id}-${j.src}`))]},v)]})]})})}const Xu=f.createContext({});function ku(a){const i=f.useRef(null);return i.current===null&&(i.current=a()),i.current}const Ku=typeof window<"u",af=Ku?f.useLayoutEffect:f.useEffect,Pl=f.createContext(null);function Fu(a,i){a.indexOf(i)===-1&&a.push(i)}function Qu(a,i){const u=a.indexOf(i);u>-1&&a.splice(u,1)}const an=(a,i,u)=>u>i?i:u<a?a:u;let Pu=()=>{};const ln={},lf=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function sf(a){return typeof a=="object"&&a!==null}const uf=a=>/^0[^.\s]+$/u.test(a);function Ju(a){let i;return()=>(i===void 0&&(i=a()),i)}const je=a=>a,xp=(a,i)=>u=>i(a(u)),Bi=(...a)=>a.reduce(xp),wi=(a,i,u)=>{const r=i-a;return r===0?1:(u-a)/r};class $u{constructor(){this.subscriptions=[]}add(i){return Fu(this.subscriptions,i),()=>Qu(this.subscriptions,i)}notify(i,u,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,u,r);else for(let h=0;h<c;h++){const d=this.subscriptions[h];d&&d(i,u,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $e=a=>a*1e3,Oe=a=>a/1e3;function rf(a,i){return i?a*(1e3/i):0}const of=(a,i,u)=>(((1-3*u+3*i)*a+(3*u-6*i))*a+3*i)*a,Vp=1e-7,Lp=12;function Cp(a,i,u,r,c){let h,d,g=0;do d=i+(u-i)/2,h=of(d,r,c)-a,h>0?u=d:i=d;while(Math.abs(h)>Vp&&++g<Lp);return d}function Ni(a,i,u,r){if(a===i&&u===r)return je;const c=h=>Cp(h,0,1,a,u);return h=>h===0||h===1?h:of(c(h),i,r)}const cf=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,ff=a=>i=>1-a(1-i),df=Ni(.33,1.53,.69,.99),Wu=ff(df),hf=cf(Wu),mf=a=>(a*=2)<1?.5*Wu(a):.5*(2-Math.pow(2,-10*(a-1))),Iu=a=>1-Math.sin(Math.acos(a)),pf=ff(Iu),yf=cf(Iu),Dp=Ni(.42,0,1,1),Rp=Ni(0,0,.58,1),gf=Ni(.42,0,.58,1),Hp=a=>Array.isArray(a)&&typeof a[0]!="number",vf=a=>Array.isArray(a)&&typeof a[0]=="number",jp={linear:je,easeIn:Dp,easeInOut:gf,easeOut:Rp,circIn:Iu,circInOut:yf,circOut:pf,backIn:Wu,backInOut:hf,backOut:df,anticipate:mf},Op=a=>typeof a=="string",Sf=a=>{if(vf(a)){Pu(a.length===4);const[i,u,r,c]=a;return Ni(i,u,r,c)}else if(Op(a))return jp[a];return a},Jl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function zp(a,i){let u=new Set,r=new Set,c=!1,h=!1;const d=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function p(v){d.has(v)&&(y.schedule(v),a()),v(g)}const y={schedule:(v,b=!1,E=!1)=>{const O=E&&c?u:r;return b&&d.add(v),O.has(v)||O.add(v),v},cancel:v=>{r.delete(v),d.delete(v)},process:v=>{if(g=v,c){h=!0;return}c=!0,[u,r]=[r,u],u.forEach(p),u.clear(),c=!1,h&&(h=!1,y.process(v))}};return y}const Bp=40;function bf(a,i){let u=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>u=!0,d=Jl.reduce((Q,q)=>(Q[q]=zp(h),Q),{}),{setup:g,read:p,resolveKeyframes:y,preUpdate:v,update:b,preRender:E,render:L,postRender:O}=d,B=()=>{const Q=ln.useManualTiming?c.timestamp:performance.now();u=!1,ln.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(Q-c.timestamp,Bp),1)),c.timestamp=Q,c.isProcessing=!0,g.process(c),p.process(c),y.process(c),v.process(c),b.process(c),E.process(c),L.process(c),O.process(c),c.isProcessing=!1,u&&i&&(r=!1,a(B))},U=()=>{u=!0,r=!0,c.isProcessing||a(B)};return{schedule:Jl.reduce((Q,q)=>{const z=d[q];return Q[q]=(k,J=!1,K=!1)=>(u||U(),z.schedule(k,J,K)),Q},{}),cancel:Q=>{for(let q=0;q<Jl.length;q++)d[Jl[q]].cancel(Q)},state:c,steps:d}}const{schedule:zt,cancel:Dn,state:ee,steps:tr}=bf(typeof requestAnimationFrame<"u"?requestAnimationFrame:je,!0);let $l;function wp(){$l=void 0}const de={now:()=>($l===void 0&&de.set(ee.isProcessing||ln.useManualTiming?ee.timestamp:performance.now()),$l),set:a=>{$l=a,queueMicrotask(wp)}},Ef=a=>i=>typeof i=="string"&&i.startsWith(a),Af=Ef("--"),Np=Ef("var(--"),er=a=>Np(a)?Zp.test(a.split("/*")[0].trim()):!1,Zp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,za={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Zi={...za,transform:a=>an(0,1,a)},Wl={...za,default:1},Ui=a=>Math.round(a*1e5)/1e5,nr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Up(a){return a==null}const _p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ar=(a,i)=>u=>!!(typeof u=="string"&&_p.test(u)&&u.startsWith(a)||i&&!Up(u)&&Object.prototype.hasOwnProperty.call(u,i)),Tf=(a,i,u)=>r=>{if(typeof r!="string")return r;const[c,h,d,g]=r.match(nr);return{[a]:parseFloat(c),[i]:parseFloat(h),[u]:parseFloat(d),alpha:g!==void 0?parseFloat(g):1}},Gp=a=>an(0,255,a),ir={...za,transform:a=>Math.round(Gp(a))},sa={test:ar("rgb","red"),parse:Tf("red","green","blue"),transform:({red:a,green:i,blue:u,alpha:r=1})=>"rgba("+ir.transform(a)+", "+ir.transform(i)+", "+ir.transform(u)+", "+Ui(Zi.transform(r))+")"};function qp(a){let i="",u="",r="",c="";return a.length>5?(i=a.substring(1,3),u=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),u=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),i+=i,u+=u,r+=r,c+=c),{red:parseInt(i,16),green:parseInt(u,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const lr={test:ar("#"),parse:qp,transform:sa.transform},_i=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Rn=_i("deg"),We=_i("%"),st=_i("px"),Yp=_i("vh"),Xp=_i("vw"),Mf={...We,parse:a=>We.parse(a)/100,transform:a=>We.transform(a*100)},Ba={test:ar("hsl","hue"),parse:Tf("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:u,alpha:r=1})=>"hsla("+Math.round(a)+", "+We.transform(Ui(i))+", "+We.transform(Ui(u))+", "+Ui(Zi.transform(r))+")"},Yt={test:a=>sa.test(a)||lr.test(a)||Ba.test(a),parse:a=>sa.test(a)?sa.parse(a):Ba.test(a)?Ba.parse(a):lr.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?sa.transform(a):Ba.transform(a),getAnimatableNone:a=>{const i=Yt.parse(a);return i.alpha=0,Yt.transform(i)}},kp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kp(a){return isNaN(a)&&typeof a=="string"&&(a.match(nr)?.length||0)+(a.match(kp)?.length||0)>0}const xf="number",Vf="color",Fp="var",Qp="var(",Lf="${}",Pp=/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 Gi(a){const i=a.toString(),u=[],r={color:[],number:[],var:[]},c=[];let h=0;const g=i.replace(Pp,p=>(Yt.test(p)?(r.color.push(h),c.push(Vf),u.push(Yt.parse(p))):p.startsWith(Qp)?(r.var.push(h),c.push(Fp),u.push(p)):(r.number.push(h),c.push(xf),u.push(parseFloat(p))),++h,Lf)).split(Lf);return{values:u,split:g,indexes:r,types:c}}function Cf(a){return Gi(a).values}function Df(a){const{split:i,types:u}=Gi(a),r=i.length;return c=>{let h="";for(let d=0;d<r;d++)if(h+=i[d],c[d]!==void 0){const g=u[d];g===xf?h+=Ui(c[d]):g===Vf?h+=Yt.transform(c[d]):h+=c[d]}return h}}const Jp=a=>typeof a=="number"?0:Yt.test(a)?Yt.getAnimatableNone(a):a;function $p(a){const i=Cf(a);return Df(a)(i.map(Jp))}const Hn={test:Kp,parse:Cf,createTransformer:Df,getAnimatableNone:$p};function sr(a,i,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?a+(i-a)*6*u:u<1/2?i:u<2/3?a+(i-a)*(2/3-u)*6:a}function Wp({hue:a,saturation:i,lightness:u,alpha:r}){a/=360,i/=100,u/=100;let c=0,h=0,d=0;if(!i)c=h=d=u;else{const g=u<.5?u*(1+i):u+i-u*i,p=2*u-g;c=sr(p,g,a+1/3),h=sr(p,g,a),d=sr(p,g,a-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:r}}function Il(a,i){return u=>u>0?i:a}const Nt=(a,i,u)=>a+(i-a)*u,ur=(a,i,u)=>{const r=a*a,c=u*(i*i-r)+r;return c<0?0:Math.sqrt(c)},Ip=[lr,sa,Ba],ty=a=>Ip.find(i=>i.test(a));function Rf(a){const i=ty(a);if(!i)return!1;let u=i.parse(a);return i===Ba&&(u=Wp(u)),u}const Hf=(a,i)=>{const u=Rf(a),r=Rf(i);if(!u||!r)return Il(a,i);const c={...u};return h=>(c.red=ur(u.red,r.red,h),c.green=ur(u.green,r.green,h),c.blue=ur(u.blue,r.blue,h),c.alpha=Nt(u.alpha,r.alpha,h),sa.transform(c))},rr=new Set(["none","hidden"]);function ey(a,i){return rr.has(a)?u=>u<=0?a:i:u=>u>=1?i:a}function ny(a,i){return u=>Nt(a,i,u)}function or(a){return typeof a=="number"?ny:typeof a=="string"?er(a)?Il:Yt.test(a)?Hf:ly:Array.isArray(a)?jf:typeof a=="object"?Yt.test(a)?Hf:ay:Il}function jf(a,i){const u=[...a],r=u.length,c=a.map((h,d)=>or(h)(h,i[d]));return h=>{for(let d=0;d<r;d++)u[d]=c[d](h);return u}}function ay(a,i){const u={...a,...i},r={};for(const c in u)a[c]!==void 0&&i[c]!==void 0&&(r[c]=or(a[c])(a[c],i[c]));return c=>{for(const h in r)u[h]=r[h](c);return u}}function iy(a,i){const u=[],r={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const h=i.types[c],d=a.indexes[h][r[h]],g=a.values[d]??0;u[c]=g,r[h]++}return u}const ly=(a,i)=>{const u=Hn.createTransformer(i),r=Gi(a),c=Gi(i);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?rr.has(a)&&!c.values.length||rr.has(i)&&!r.values.length?ey(a,i):Bi(jf(iy(r,c),c.values),u):Il(a,i)};function Of(a,i,u){return typeof a=="number"&&typeof i=="number"&&typeof u=="number"?Nt(a,i,u):or(a)(a,i)}const sy=a=>{const i=({timestamp:u})=>a(u);return{start:(u=!0)=>zt.update(i,u),stop:()=>Dn(i),now:()=>ee.isProcessing?ee.timestamp:de.now()}},zf=(a,i,u=10)=>{let r="";const c=Math.max(Math.round(i/u),2);for(let h=0;h<c;h++)r+=Math.round(a(h/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ts=2e4;function cr(a){let i=0;const u=50;let r=a.next(i);for(;!r.done&&i<ts;)i+=u,r=a.next(i);return i>=ts?1/0:i}function uy(a,i=100,u){const r=u({...a,keyframes:[0,i]}),c=Math.min(cr(r),ts);return{type:"keyframes",ease:h=>r.next(c*h).value/i,duration:Oe(c)}}const ry=5;function Bf(a,i,u){const r=Math.max(i-ry,0);return rf(u-a(r),i-r)}const Zt={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},fr=.001;function oy({duration:a=Zt.duration,bounce:i=Zt.bounce,velocity:u=Zt.velocity,mass:r=Zt.mass}){let c,h,d=1-i;d=an(Zt.minDamping,Zt.maxDamping,d),a=an(Zt.minDuration,Zt.maxDuration,Oe(a)),d<1?(c=y=>{const v=y*d,b=v*a,E=v-u,L=dr(y,d),O=Math.exp(-b);return fr-E/L*O},h=y=>{const b=y*d*a,E=b*u+u,L=Math.pow(d,2)*Math.pow(y,2)*a,O=Math.exp(-b),B=dr(Math.pow(y,2),d);return(-c(y)+fr>0?-1:1)*((E-L)*O)/B}):(c=y=>{const v=Math.exp(-y*a),b=(y-u)*a+1;return-fr+v*b},h=y=>{const v=Math.exp(-y*a),b=(u-y)*(a*a);return v*b});const g=5/a,p=fy(c,h,g);if(a=$e(a),isNaN(p))return{stiffness:Zt.stiffness,damping:Zt.damping,duration:a};{const y=Math.pow(p,2)*r;return{stiffness:y,damping:d*2*Math.sqrt(r*y),duration:a}}}const cy=12;function fy(a,i,u){let r=u;for(let c=1;c<cy;c++)r=r-a(r)/i(r);return r}function dr(a,i){return a*Math.sqrt(1-i*i)}const dy=["duration","bounce"],hy=["stiffness","damping","mass"];function wf(a,i){return i.some(u=>a[u]!==void 0)}function my(a){let i={velocity:Zt.velocity,stiffness:Zt.stiffness,damping:Zt.damping,mass:Zt.mass,isResolvedFromDuration:!1,...a};if(!wf(a,hy)&&wf(a,dy))if(a.visualDuration){const u=a.visualDuration,r=2*Math.PI/(u*1.2),c=r*r,h=2*an(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Zt.mass,stiffness:c,damping:h}}else{const u=oy(a);i={...i,...u,mass:Zt.mass},i.isResolvedFromDuration=!0}return i}function es(a=Zt.visualDuration,i=Zt.bounce){const u=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:r,restDelta:c}=u;const h=u.keyframes[0],d=u.keyframes[u.keyframes.length-1],g={done:!1,value:h},{stiffness:p,damping:y,mass:v,duration:b,velocity:E,isResolvedFromDuration:L}=my({...u,velocity:-Oe(u.velocity||0)}),O=E||0,B=y/(2*Math.sqrt(p*v)),U=d-h,j=Oe(Math.sqrt(p/v)),Y=Math.abs(U)<5;r||(r=Y?Zt.restSpeed.granular:Zt.restSpeed.default),c||(c=Y?Zt.restDelta.granular:Zt.restDelta.default);let Q;if(B<1){const z=dr(j,B);Q=k=>{const J=Math.exp(-B*j*k);return d-J*((O+B*j*U)/z*Math.sin(z*k)+U*Math.cos(z*k))}}else if(B===1)Q=z=>d-Math.exp(-j*z)*(U+(O+j*U)*z);else{const z=j*Math.sqrt(B*B-1);Q=k=>{const J=Math.exp(-B*j*k),K=Math.min(z*k,300);return d-J*((O+B*j*U)*Math.sinh(K)+z*U*Math.cosh(K))/z}}const q={calculatedDuration:L&&b||null,next:z=>{const k=Q(z);if(L)g.done=z>=b;else{let J=z===0?O:0;B<1&&(J=z===0?$e(O):Bf(Q,z,k));const K=Math.abs(J)<=r,I=Math.abs(d-k)<=c;g.done=K&&I}return g.value=g.done?d:k,g},toString:()=>{const z=Math.min(cr(q),ts),k=zf(J=>q.next(z*J).value,z,30);return z+"ms "+k},toTransition:()=>{}};return q}es.applyToOptions=a=>{const i=uy(a,100,es);return a.ease=i.ease,a.duration=$e(i.duration),a.type="keyframes",a};function hr({keyframes:a,velocity:i=0,power:u=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:d,min:g,max:p,restDelta:y=.5,restSpeed:v}){const b=a[0],E={done:!1,value:b},L=K=>g!==void 0&&K<g||p!==void 0&&K>p,O=K=>g===void 0?p:p===void 0||Math.abs(g-K)<Math.abs(p-K)?g:p;let B=u*i;const U=b+B,j=d===void 0?U:d(U);j!==U&&(B=j-b);const Y=K=>-B*Math.exp(-K/r),Q=K=>j+Y(K),q=K=>{const I=Y(K),at=Q(K);E.done=Math.abs(I)<=y,E.value=E.done?j:at};let z,k;const J=K=>{L(E.value)&&(z=K,k=es({keyframes:[E.value,O(E.value)],velocity:Bf(Q,K,E.value),damping:c,stiffness:h,restDelta:y,restSpeed:v}))};return J(0),{calculatedDuration:null,next:K=>{let I=!1;return!k&&z===void 0&&(I=!0,q(K),J(K)),z!==void 0&&K>=z?k.next(K-z):(!I&&q(K),E)}}}function py(a,i,u){const r=[],c=u||ln.mix||Of,h=a.length-1;for(let d=0;d<h;d++){let g=c(a[d],a[d+1]);if(i){const p=Array.isArray(i)?i[d]||je:i;g=Bi(p,g)}r.push(g)}return r}function yy(a,i,{clamp:u=!0,ease:r,mixer:c}={}){const h=a.length;if(Pu(h===i.length),h===1)return()=>i[0];if(h===2&&i[0]===i[1])return()=>i[1];const d=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),i=[...i].reverse());const g=py(i,r,c),p=g.length,y=v=>{if(d&&v<a[0])return i[0];let b=0;if(p>1)for(;b<a.length-2&&!(v<a[b+1]);b++);const E=wi(a[b],a[b+1],v);return g[b](E)};return u?v=>y(an(a[0],a[h-1],v)):y}function gy(a,i){const u=a[a.length-1];for(let r=1;r<=i;r++){const c=wi(0,i,r);a.push(Nt(u,1,c))}}function vy(a){const i=[0];return gy(i,a.length-1),i}function Sy(a,i){return a.map(u=>u*i)}function by(a,i){return a.map(()=>i||gf).splice(0,a.length-1)}function qi({duration:a=300,keyframes:i,times:u,ease:r="easeInOut"}){const c=Hp(r)?r.map(Sf):Sf(r),h={done:!1,value:i[0]},d=Sy(u&&u.length===i.length?u:vy(i),a),g=yy(d,i,{ease:Array.isArray(c)?c:by(i,c)});return{calculatedDuration:a,next:p=>(h.value=g(p),h.done=p>=a,h)}}const Ey=a=>a!==null;function mr(a,{repeat:i,repeatType:u="loop"},r,c=1){const h=a.filter(Ey),g=c<0||i&&u!=="loop"&&i%2===1?0:h.length-1;return!g||r===void 0?h[g]:r}const Ay={decay:hr,inertia:hr,tween:qi,keyframes:qi,spring:es};function Nf(a){typeof a.type=="string"&&(a.type=Ay[a.type])}class pr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,u){return this.finished.then(i,u)}}const Ty=a=>a/100;class yr extends pr{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:u}=this.options;u&&u.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Nf(i);const{type:u=qi,repeat:r=0,repeatDelay:c=0,repeatType:h,velocity:d=0}=i;let{keyframes:g}=i;const p=u||qi;p!==qi&&typeof g[0]!="number"&&(this.mixKeyframes=Bi(Ty,Of(g[0],g[1])),g=[0,100]);const y=p({...i,keyframes:g});h==="mirror"&&(this.mirroredGenerator=p({...i,keyframes:[...g].reverse(),velocity:-d})),y.calculatedDuration===null&&(y.calculatedDuration=cr(y));const{calculatedDuration:v}=y;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=y}updateTime(i){const u=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(i,u=!1){const{generator:r,totalDuration:c,mixKeyframes:h,mirroredGenerator:d,resolvedDuration:g,calculatedDuration:p}=this;if(this.startTime===null)return r.next(0);const{delay:y=0,keyframes:v,repeat:b,repeatType:E,repeatDelay:L,type:O,onUpdate:B,finalKeyframe:U}=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)),u?this.currentTime=i:this.updateTime(i);const j=this.currentTime-y*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?j<0:j>c;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Q=this.currentTime,q=r;if(b){const K=Math.min(this.currentTime,c)/g;let I=Math.floor(K),at=K%1;!at&&K>=1&&(at=1),at===1&&I--,I=Math.min(I,b+1),!!(I%2)&&(E==="reverse"?(at=1-at,L&&(at-=L/g)):E==="mirror"&&(q=d)),Q=an(0,1,at)*g}const z=Y?{done:!1,value:v[0]}:q.next(Q);h&&(z.value=h(z.value));let{done:k}=z;!Y&&p!==null&&(k=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return J&&O!==hr&&(z.value=mr(v,this.options,U,this.speed)),B&&B(z.value),J&&this.finish(),z}then(i,u){return this.finished.then(i,u)}get duration(){return Oe(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Oe(i)}get time(){return Oe(this.currentTime)}set time(i){i=$e(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(de.now());const u=this.playbackSpeed!==i;this.playbackSpeed=i,u&&(this.time=Oe(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=sy,startTime:u}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=u??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(de.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function My(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const ua=a=>a*180/Math.PI,gr=a=>{const i=ua(Math.atan2(a[1],a[0]));return vr(i)},xy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:gr,rotateZ:gr,skewX:a=>ua(Math.atan(a[1])),skewY:a=>ua(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},vr=a=>(a=a%360,a<0&&(a+=360),a),Zf=gr,Uf=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),_f=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),Vy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uf,scaleY:_f,scale:a=>(Uf(a)+_f(a))/2,rotateX:a=>vr(ua(Math.atan2(a[6],a[5]))),rotateY:a=>vr(ua(Math.atan2(-a[2],a[0]))),rotateZ:Zf,rotate:Zf,skewX:a=>ua(Math.atan(a[4])),skewY:a=>ua(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Sr(a){return a.includes("scale")?1:0}function br(a,i){if(!a||a==="none")return Sr(i);const u=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(u)r=Vy,c=u;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xy,c=g}if(!c)return Sr(i);const h=r[i],d=c[1].split(",").map(Cy);return typeof h=="function"?h(d):d[h]}const Ly=(a,i)=>{const{transform:u="none"}=getComputedStyle(a);return br(u,i)};function Cy(a){return parseFloat(a.trim())}const wa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Na=new Set(wa),Gf=a=>a===za||a===st,Dy=new Set(["x","y","z"]),Ry=wa.filter(a=>!Dy.has(a));function Hy(a){const i=[];return Ry.forEach(u=>{const r=a.getValue(u);r!==void 0&&(i.push([u,r.get()]),r.set(u.startsWith("scale")?1:0))}),i}const ra={width:({x:a},{paddingLeft:i="0",paddingRight:u="0"})=>a.max-a.min-parseFloat(i)-parseFloat(u),height:({y:a},{paddingTop:i="0",paddingBottom:u="0"})=>a.max-a.min-parseFloat(i)-parseFloat(u),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})=>br(i,"x"),y:(a,{transform:i})=>br(i,"y")};ra.translateX=ra.x,ra.translateY=ra.y;const oa=new Set;let Er=!1,Ar=!1,Tr=!1;function qf(){if(Ar){const a=Array.from(oa).filter(r=>r.needsMeasurement),i=new Set(a.map(r=>r.element)),u=new Map;i.forEach(r=>{const c=Hy(r);c.length&&(u.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const c=u.get(r);c&&c.forEach(([h,d])=>{r.getValue(h)?.set(d)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ar=!1,Er=!1,oa.forEach(a=>a.complete(Tr)),oa.clear()}function Yf(){oa.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Ar=!0)})}function jy(){Tr=!0,Yf(),qf(),Tr=!1}class Mr{constructor(i,u,r,c,h,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=u,this.name=r,this.motionValue=c,this.element=h,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(oa.add(this),Er||(Er=!0,zt.read(Yf),zt.resolveKeyframes(qf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:u,element:r,motionValue:c}=this;if(i[0]===null){const h=c?.get(),d=i[i.length-1];if(h!==void 0)i[0]=h;else if(r&&u){const g=r.readValue(u,d);g!=null&&(i[0]=g)}i[0]===void 0&&(i[0]=d),c&&h===void 0&&c.set(i[0])}My(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),oa.delete(this)}cancel(){this.state==="scheduled"&&(oa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Oy=a=>a.startsWith("--");function zy(a,i,u){Oy(i)?a.style.setProperty(i,u):a.style[i]=u}const By=Ju(()=>window.ScrollTimeline!==void 0),wy={};function Ny(a,i){const u=Ju(a);return()=>wy[i]??u()}const Xf=Ny(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Yi=([a,i,u,r])=>`cubic-bezier(${a}, ${i}, ${u}, ${r})`,kf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yi([0,.65,.55,1]),circOut:Yi([.55,0,1,.45]),backIn:Yi([.31,.01,.66,-.59]),backOut:Yi([.33,1.53,.69,.99])};function Kf(a,i){if(a)return typeof a=="function"?Xf()?zf(a,i):"ease-out":vf(a)?Yi(a):Array.isArray(a)?a.map(u=>Kf(u,i)||kf.easeOut):kf[a]}function Zy(a,i,u,{delay:r=0,duration:c=300,repeat:h=0,repeatType:d="loop",ease:g="easeOut",times:p}={},y=void 0){const v={[i]:u};p&&(v.offset=p);const b=Kf(g,c);Array.isArray(b)&&(v.easing=b);const E={delay:r,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"};return y&&(E.pseudoElement=y),a.animate(v,E)}function Ff(a){return typeof a=="function"&&"applyToOptions"in a}function Uy({type:a,...i}){return Ff(a)&&Xf()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class _y extends pr{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:u,name:r,keyframes:c,pseudoElement:h,allowFlatten:d=!1,finalKeyframe:g,onComplete:p}=i;this.isPseudoElement=!!h,this.allowFlatten=d,this.options=i,Pu(typeof i.type!="string");const y=Uy(i);this.animation=Zy(u,r,c,y,h),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const v=mr(c,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(v):zy(u,r,v),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return Oe(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Oe(i)}get time(){return Oe(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=$e(i)}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 Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&By()?(this.animation.timeline=i,je):u(this)}}const Qf={anticipate:mf,backInOut:hf,circInOut:yf};function Gy(a){return a in Qf}function qy(a){typeof a.ease=="string"&&Gy(a.ease)&&(a.ease=Qf[a.ease])}const Pf=10;class Yy extends _y{constructor(i){qy(i),Nf(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:u,onUpdate:r,onComplete:c,element:h,...d}=this.options;if(!u)return;if(i!==void 0){u.set(i);return}const g=new yr({...d,autoplay:!1}),p=$e(this.finishedTime??this.time);u.setWithVelocity(g.sample(p-Pf).value,g.sample(p).value,Pf),g.stop()}}const Jf=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Hn.test(a)||a==="0")&&!a.startsWith("url("));function Xy(a){const i=a[0];if(a.length===1)return!0;for(let u=0;u<a.length;u++)if(a[u]!==i)return!0}function ky(a,i,u,r){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const h=a[a.length-1],d=Jf(c,i),g=Jf(h,i);return!d||!g?!1:Xy(a)||(u==="spring"||Ff(u))&&r}function xr(a){a.duration=0,a.type="keyframes"}const Ky=new Set(["opacity","clipPath","filter","transform"]),Fy=Ju(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qy(a){const{motionValue:i,name:u,repeatDelay:r,repeatType:c,damping:h,type:d}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:y}=i.owner.getProps();return Fy()&&u&&Ky.has(u)&&(u!=="transform"||!y)&&!p&&!r&&c!=="mirror"&&h!==0&&d!=="inertia"}const Py=40;class Jy extends pr{constructor({autoplay:i=!0,delay:u=0,type:r="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:d="loop",keyframes:g,name:p,motionValue:y,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=de.now();const E={autoplay:i,delay:u,type:r,repeat:c,repeatDelay:h,repeatType:d,name:p,motionValue:y,element:v,...b},L=v?.KeyframeResolver||Mr;this.keyframeResolver=new L(g,(O,B,U)=>this.onKeyframesResolved(O,B,E,!U),p,y,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,u,r,c){this.keyframeResolver=void 0;const{name:h,type:d,velocity:g,delay:p,isHandoff:y,onUpdate:v}=r;this.resolvedAt=de.now(),ky(i,h,d,g)||((ln.instantAnimations||!p)&&v?.(mr(i,r,u)),i[0]=i[i.length-1],xr(r),r.repeat=0);const E={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Py?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...r,keyframes:i},L=!y&&Qy(E)?new Yy({...E,element:E.motionValue.owner.current}):new yr(E);L.finished.then(()=>this.notifyFinished()).catch(je),this.pendingTimeline&&(this.stopTimeline=L.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=L}get finished(){return this._animation?this.animation.finished:this._finished}then(i,u){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),jy()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const $y=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wy(a){const i=$y.exec(a);if(!i)return[,];const[,u,r,c]=i;return[`--${u??r}`,c]}function $f(a,i,u=1){const[r,c]=Wy(a);if(!r)return;const h=window.getComputedStyle(i).getPropertyValue(r);if(h){const d=h.trim();return lf(d)?parseFloat(d):d}return er(c)?$f(c,i,u+1):c}function Vr(a,i){return a?.[i]??a?.default??a}const Wf=new Set(["width","height","top","left","right","bottom",...wa]),Iy={test:a=>a==="auto",parse:a=>a},If=a=>i=>i.test(a),t1=[za,st,We,Rn,Xp,Yp,Iy],e1=a=>t1.find(If(a));function tg(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||uf(a):!0}const eg=new Set(["brightness","contrast","saturate","opacity"]);function ng(a){const[i,u]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[r]=u.match(nr)||[];if(!r)return a;const c=u.replace(r,"");let h=eg.has(i)?1:0;return r!==u&&(h*=100),i+"("+h+c+")"}const ag=/\b([a-z-]*)\(.*?\)/gu,Lr={...Hn,getAnimatableNone:a=>{const i=a.match(ag);return i?i.map(ng).join(" "):a}},n1={...za,transform:Math.round},Cr={borderWidth:st,borderTopWidth:st,borderRightWidth:st,borderBottomWidth:st,borderLeftWidth:st,borderRadius:st,radius:st,borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomRightRadius:st,borderBottomLeftRadius:st,width:st,maxWidth:st,height:st,maxHeight:st,top:st,right:st,bottom:st,left:st,padding:st,paddingTop:st,paddingRight:st,paddingBottom:st,paddingLeft:st,margin:st,marginTop:st,marginRight:st,marginBottom:st,marginLeft:st,backgroundPositionX:st,backgroundPositionY:st,...{rotate:Rn,rotateX:Rn,rotateY:Rn,rotateZ:Rn,scale:Wl,scaleX:Wl,scaleY:Wl,scaleZ:Wl,skew:Rn,skewX:Rn,skewY:Rn,distance:st,translateX:st,translateY:st,translateZ:st,x:st,y:st,z:st,perspective:st,transformPerspective:st,opacity:Zi,originX:Mf,originY:Mf,originZ:st},zIndex:n1,fillOpacity:Zi,strokeOpacity:Zi,numOctaves:n1},ig={...Cr,color:Yt,backgroundColor:Yt,outlineColor:Yt,fill:Yt,stroke:Yt,borderColor:Yt,borderTopColor:Yt,borderRightColor:Yt,borderBottomColor:Yt,borderLeftColor:Yt,filter:Lr,WebkitFilter:Lr},a1=a=>ig[a];function i1(a,i){let u=a1(a);return u!==Lr&&(u=Hn),u.getAnimatableNone?u.getAnimatableNone(i):void 0}const lg=new Set(["auto","none","0"]);function sg(a,i,u){let r=0,c;for(;r<a.length&&!c;){const h=a[r];typeof h=="string"&&!lg.has(h)&&Gi(h).values.length&&(c=a[r]),r++}if(c&&u)for(const h of i)a[h]=i1(u,c)}class ug extends Mr{constructor(i,u,r,c,h){super(i,u,r,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:u,name:r}=this;if(!u||!u.current)return;super.readKeyframes();for(let p=0;p<i.length;p++){let y=i[p];if(typeof y=="string"&&(y=y.trim(),er(y))){const v=$f(y,u.current);v!==void 0&&(i[p]=v),p===i.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Wf.has(r)||i.length!==2)return;const[c,h]=i,d=e1(c),g=e1(h);if(d!==g)if(Gf(d)&&Gf(g))for(let p=0;p<i.length;p++){const y=i[p];typeof y=="string"&&(i[p]=parseFloat(y))}else ra[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:u}=this,r=[];for(let c=0;c<i.length;c++)(i[c]===null||tg(i[c]))&&r.push(c);r.length&&sg(i,r,u)}measureInitialState(){const{element:i,unresolvedKeyframes:u,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ra[r](i.measureViewportBox(),window.getComputedStyle(i.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&i.getValue(r,c).jump(c,!1)}measureEndState(){const{element:i,name:u,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const c=i.getValue(u);c&&c.jump(this.measuredOrigin,!1);const h=r.length-1,d=r[h];r[h]=ra[u](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,p])=>{i.getValue(g).set(p)}),this.resolveNoneKeyframes()}}function rg(a,i,u){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=u?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const l1=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function s1(a){return sf(a)&&"offsetHeight"in a}const u1=30,og=a=>!isNaN(parseFloat(a));class cg{constructor(i,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=de.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=u.owner}setCurrent(i){this.current=i,this.updatedAt=de.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=og(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,u){this.events[i]||(this.events[i]=new $u);const r=this.events[i].add(u);return i==="change"?()=>{r(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,u){this.passiveEffect=i,this.stopPassiveEffect=u}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,u,r){this.set(u),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,u=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.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=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>u1)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,u1);return rf(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(i){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=i(u),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Za(a,i){return new cg(a,i)}const{schedule:Dr}=bf(queueMicrotask,!1),ke={x:!1,y:!1};function r1(){return ke.x||ke.y}function fg(a){return a==="x"||a==="y"?ke[a]?null:(ke[a]=!0,()=>{ke[a]=!1}):ke.x||ke.y?null:(ke.x=ke.y=!0,()=>{ke.x=ke.y=!1})}function o1(a,i){const u=rg(a),r=new AbortController,c={passive:!0,...i,signal:r.signal};return[u,c,()=>r.abort()]}function c1(a){return!(a.pointerType==="touch"||r1())}function dg(a,i,u={}){const[r,c,h]=o1(a,u),d=g=>{if(!c1(g))return;const{target:p}=g,y=i(p,g);if(typeof y!="function"||!p)return;const v=b=>{c1(b)&&(y(b),p.removeEventListener("pointerleave",v))};p.addEventListener("pointerleave",v,c)};return r.forEach(g=>{g.addEventListener("pointerenter",d,c)}),h}const f1=(a,i)=>i?a===i?!0:f1(a,i.parentElement):!1,Rr=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,hg=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mg(a){return hg.has(a.tagName)||a.tabIndex!==-1}const ns=new WeakSet;function d1(a){return i=>{i.key==="Enter"&&a(i)}}function Hr(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const pg=(a,i)=>{const u=a.currentTarget;if(!u)return;const r=d1(()=>{if(ns.has(u))return;Hr(u,"down");const c=d1(()=>{Hr(u,"up")}),h=()=>Hr(u,"cancel");u.addEventListener("keyup",c,i),u.addEventListener("blur",h,i)});u.addEventListener("keydown",r,i),u.addEventListener("blur",()=>u.removeEventListener("keydown",r),i)};function h1(a){return Rr(a)&&!r1()}function yg(a,i,u={}){const[r,c,h]=o1(a,u),d=g=>{const p=g.currentTarget;if(!h1(g))return;ns.add(p);const y=i(p,g),v=(L,O)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",E),ns.has(p)&&ns.delete(p),h1(L)&&typeof y=="function"&&y(L,{success:O})},b=L=>{v(L,p===window||p===document||u.useGlobalTarget||f1(p,L.target))},E=L=>{v(L,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",E,c)};return r.forEach(g=>{(u.useGlobalTarget?window:g).addEventListener("pointerdown",d,c),s1(g)&&(g.addEventListener("focus",y=>pg(y,c)),!mg(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),h}function m1(a){return sf(a)&&"ownerSVGElement"in a}function gg(a){return m1(a)&&a.tagName==="svg"}const re=a=>!!(a&&a.getVelocity),vg=[...t1,Yt,Hn],Sg=a=>vg.find(If(a)),jr=f.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function p1(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function bg(...a){return i=>{let u=!1;const r=a.map(c=>{const h=p1(c,i);return!u&&typeof h=="function"&&(u=!0),h});if(u)return()=>{for(let c=0;c<r.length;c++){const h=r[c];typeof h=="function"?h():p1(a[c],null)}}}}function Eg(...a){return f.useCallback(bg(...a),a)}class Ag extends f.Component{getSnapshotBeforeUpdate(i){const u=this.props.childRef.current;if(u&&i.isPresent&&!this.props.isPresent){const r=u.offsetParent,c=s1(r)&&r.offsetWidth||0,h=this.props.sizeRef.current;h.height=u.offsetHeight||0,h.width=u.offsetWidth||0,h.top=u.offsetTop,h.left=u.offsetLeft,h.right=c-h.width-h.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Tg({children:a,isPresent:i,anchorX:u,root:r}){const c=f.useId(),h=f.useRef(null),d=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=f.useContext(jr),p=Eg(h,a?.ref);return f.useInsertionEffect(()=>{const{width:y,height:v,top:b,left:E,right:L}=d.current;if(i||!h.current||!y||!v)return;const O=u==="left"?`left: ${E}`:`right: ${L}`;h.current.dataset.motionPopId=c;const B=document.createElement("style");g&&(B.nonce=g);const U=r??document.head;return U.appendChild(B),B.sheet&&B.sheet.insertRule(`
|
|
8
|
+
`+l.stack}}var nl=Object.prototype.hasOwnProperty,yi=a.unstable_scheduleCallback,il=a.unstable_cancelCallback,TE=a.unstable_shouldYield,xE=a.unstable_requestPaint,Ae=a.unstable_now,EE=a.unstable_getCurrentPriorityLevel,ep=a.unstable_ImmediatePriority,np=a.unstable_UserBlockingPriority,Ts=a.unstable_NormalPriority,ME=a.unstable_LowPriority,ip=a.unstable_IdlePriority,AE=a.log,CE=a.unstable_setDisableYieldValue,al=null,Ce=null;function Un(t){if(typeof AE=="function"&&CE(t),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(al,t)}catch{}}var De=Math.clz32?Math.clz32:RE,DE=Math.log,zE=Math.LN2;function RE(t){return t>>>=0,t===0?32:31-(DE(t)/zE|0)|0}var xs=256,Es=262144,Ms=4194304;function vi(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 As(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var u=0,r=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var g=l&134217727;return g!==0?(l=g&~r,l!==0?u=vi(l):(h&=g,h!==0?u=vi(h):n||(n=g&~t,n!==0&&(u=vi(n))))):(g=l&~r,g!==0?u=vi(g):h!==0?u=vi(h):n||(n=l&~t,n!==0&&(u=vi(n)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:u}function ll(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function jE(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 ap(){var t=Ms;return Ms<<=1,(Ms&62914560)===0&&(Ms=4194304),t}function hr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function sl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function OE(t,e,n,l,u,r){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 g=t.entanglements,x=t.expirationTimes,z=t.hiddenUpdates;for(n=h&~n;0<n;){var N=31-De(n),Y=1<<N;g[N]=0,x[N]=-1;var R=z[N];if(R!==null)for(z[N]=null,N=0;N<R.length;N++){var B=R[N];B!==null&&(B.lane&=-536870913)}n&=~Y}l!==0&&lp(t,l,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(h&~e))}function lp(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-De(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function sp(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-De(n),u=1<<l;u&e|t[l]&e&&(t[l]|=e),n&=~u}}function up(t,e){var n=e&-e;return n=(n&42)!==0?1:mr(n),(n&(t.suspendedLanes|e))!==0?0:n}function mr(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 pr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function op(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Qv(t.type))}function rp(t,e){var n=X.p;try{return X.p=t,e()}finally{X.p=n}}var _n=Math.random().toString(36).slice(2),ie="__reactFiber$"+_n,ye="__reactProps$"+_n,Wi="__reactContainer$"+_n,yr="__reactEvents$"+_n,BE="__reactListeners$"+_n,VE="__reactHandles$"+_n,cp="__reactResources$"+_n,ul="__reactMarker$"+_n;function vr(t){delete t[ie],delete t[ye],delete t[yr],delete t[BE],delete t[VE]}function $i(t){var e=t[ie];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Wi]||n[ie]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ov(t);t!==null;){if(n=t[ie])return n;t=Ov(t)}return e}t=n,n=t.parentNode}return null}function Ii(t){if(t=t[ie]||t[Wi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ol(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function ta(t){var e=t[cp];return e||(e=t[cp]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[ul]=!0}var fp=new Set,dp={};function gi(t,e){ea(t,e),ea(t+"Capture",e)}function ea(t,e){for(dp[t]=e,t=0;t<e.length;t++)fp.add(e[t])}var LE=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]*$"),hp={},mp={};function wE(t){return nl.call(mp,t)?!0:nl.call(hp,t)?!1:LE.test(t)?mp[t]=!0:(hp[t]=!0,!1)}function Cs(t,e,n){if(wE(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 Ds(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 hn(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 pp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function NE(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 u=l.get,r=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(h){n=""+h,r.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 gr(t){if(!t._valueTracker){var e=pp(t)?"checked":"value";t._valueTracker=NE(t,e,""+t[e])}}function yp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=pp(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function zs(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 UE=/[\n"\\]/g;function He(t){return t.replace(UE,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Sr(t,e,n,l,u,r,h,g){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?br(t,h,_e(e)):n!=null?br(t,h,_e(n)):l!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+_e(g):t.removeAttribute("name")}function vp(t,e,n,l,u,r,h,g){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){gr(t);return}n=n!=null?""+_e(n):"",e=e!=null?""+_e(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=g?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),gr(t)}function br(t,e,n){e==="number"&&zs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function na(t,e,n,l){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&l&&(t[n].defaultSelected=!0)}else{for(n=""+_e(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function gp(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 Sp(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(P(l)){if(1<l.length)throw Error(c(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),gr(t)}function ia(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var _E=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 bp(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||_E.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Tp(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(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 u in e)l=e[u],e.hasOwnProperty(u)&&n[u]!==l&&bp(t,u,l)}else for(var r in e)e.hasOwnProperty(r)&&bp(t,r,e[r])}function Tr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var HE=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"]]),GE=/^[\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 Rs(t){return GE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function mn(){}var xr=null;function Er(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var aa=null,la=null;function xp(t){var e=Ii(t);if(e&&(t=e.stateNode)){var n=t[ye]||null;t:switch(t=e.stateNode,e.type){case"input":if(Sr(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="'+He(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var u=l[ye]||null;if(!u)throw Error(c(90));Sr(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&yp(l)}break t;case"textarea":gp(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&na(t,!!n.multiple,e,!1)}}}var Mr=!1;function Ep(t,e,n){if(Mr)return t(e,n);Mr=!0;try{var l=t(e);return l}finally{if(Mr=!1,(aa!==null||la!==null)&&(yu(),aa&&(e=aa,t=la,la=aa=null,xp(e),t)))for(e=0;e<t.length;e++)xp(t[e])}}function rl(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ye]||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(c(231,e,typeof n));return n}var pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ar=!1;if(pn)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Ar=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Ar=!1}var Hn=null,Cr=null,js=null;function Mp(){if(js)return js;var t,e=Cr,n=e.length,l,u="value"in Hn?Hn.value:Hn.textContent,r=u.length;for(t=0;t<n&&e[t]===u[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===u[r-l];l++);return js=u.slice(t,1<l?1-l:void 0)}function Os(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 Bs(){return!0}function Ap(){return!1}function ve(t){function e(n,l,u,r,h){this._reactName=n,this._targetInst=u,this.type=l,this.nativeEvent=r,this.target=h,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(r):r[g]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Bs:Ap,this.isPropagationStopped=Ap,this}return b(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=Bs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bs)},persist:function(){},isPersistent:Bs}),e}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vs=ve(Si),fl=b({},Si,{view:0,detail:0}),YE=ve(fl),Dr,zr,dl,Ls=b({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jr,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!==dl&&(dl&&t.type==="mousemove"?(Dr=t.screenX-dl.screenX,zr=t.screenY-dl.screenY):zr=Dr=0,dl=t),Dr)},movementY:function(t){return"movementY"in t?t.movementY:zr}}),Cp=ve(Ls),qE=b({},Ls,{dataTransfer:0}),kE=ve(qE),XE=b({},fl,{relatedTarget:0}),Rr=ve(XE),KE=b({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),ZE=ve(KE),QE=b({},Si,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),PE=ve(QE),FE=b({},Si,{data:0}),Dp=ve(FE),JE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WE={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"},$E={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function IE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=$E[t])?!!e[t]:!1}function jr(){return IE}var tM=b({},fl,{key:function(t){if(t.key){var e=JE[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Os(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?WE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jr,charCode:function(t){return t.type==="keypress"?Os(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Os(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),eM=ve(tM),nM=b({},Ls,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zp=ve(nM),iM=b({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jr}),aM=ve(iM),lM=b({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),sM=ve(lM),uM=b({},Ls,{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}),oM=ve(uM),rM=b({},Si,{newState:0,oldState:0}),cM=ve(rM),fM=[9,13,27,32],Or=pn&&"CompositionEvent"in window,hl=null;pn&&"documentMode"in document&&(hl=document.documentMode);var dM=pn&&"TextEvent"in window&&!hl,Rp=pn&&(!Or||hl&&8<hl&&11>=hl),jp=" ",Op=!1;function Bp(t,e){switch(t){case"keyup":return fM.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sa=!1;function hM(t,e){switch(t){case"compositionend":return Vp(e);case"keypress":return e.which!==32?null:(Op=!0,jp);case"textInput":return t=e.data,t===jp&&Op?null:t;default:return null}}function mM(t,e){if(sa)return t==="compositionend"||!Or&&Bp(t,e)?(t=Mp(),js=Cr=Hn=null,sa=!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 Rp&&e.locale!=="ko"?null:e.data;default:return null}}var pM={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 Lp(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!pM[t.type]:e==="textarea"}function wp(t,e,n,l){aa?la?la.push(l):la=[l]:aa=l,e=Eu(e,"onChange"),0<e.length&&(n=new Vs("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ml=null,pl=null;function yM(t){vv(t,0)}function ws(t){var e=ol(t);if(yp(e))return t}function Np(t,e){if(t==="change")return e}var Up=!1;if(pn){var Br;if(pn){var Vr="oninput"in document;if(!Vr){var _p=document.createElement("div");_p.setAttribute("oninput","return;"),Vr=typeof _p.oninput=="function"}Br=Vr}else Br=!1;Up=Br&&(!document.documentMode||9<document.documentMode)}function Hp(){ml&&(ml.detachEvent("onpropertychange",Gp),pl=ml=null)}function Gp(t){if(t.propertyName==="value"&&ws(pl)){var e=[];wp(e,pl,t,Er(t)),Ep(yM,e)}}function vM(t,e,n){t==="focusin"?(Hp(),ml=e,pl=n,ml.attachEvent("onpropertychange",Gp)):t==="focusout"&&Hp()}function gM(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ws(pl)}function SM(t,e){if(t==="click")return ws(e)}function bM(t,e){if(t==="input"||t==="change")return ws(e)}function TM(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:TM;function yl(t,e){if(ze(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 u=n[l];if(!nl.call(e,u)||!ze(t[u],e[u]))return!1}return!0}function Yp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function qp(t,e){var n=Yp(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=Yp(n)}}function kp(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?kp(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Xp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=zs(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=zs(t.document)}return e}function Lr(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 xM=pn&&"documentMode"in document&&11>=document.documentMode,ua=null,wr=null,vl=null,Nr=!1;function Kp(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||ua==null||ua!==zs(l)||(l=ua,"selectionStart"in l&&Lr(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}),vl&&yl(vl,l)||(vl=l,l=Eu(wr,"onSelect"),0<l.length&&(e=new Vs("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=ua)))}function bi(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var oa={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionrun:bi("Transition","TransitionRun"),transitionstart:bi("Transition","TransitionStart"),transitioncancel:bi("Transition","TransitionCancel"),transitionend:bi("Transition","TransitionEnd")},Ur={},Zp={};pn&&(Zp=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Ti(t){if(Ur[t])return Ur[t];if(!oa[t])return t;var e=oa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Zp)return Ur[t]=e[n];return t}var Qp=Ti("animationend"),Pp=Ti("animationiteration"),Fp=Ti("animationstart"),EM=Ti("transitionrun"),MM=Ti("transitionstart"),AM=Ti("transitioncancel"),Jp=Ti("transitionend"),Wp=new Map,_r="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(" ");_r.push("scrollEnd");function Je(t,e){Wp.set(t,e),gi(e,[t])}var Ns=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 i=="object"&&typeof i.emit=="function"){i.emit("uncaughtException",t);return}console.error(t)},Ge=[],ra=0,Hr=0;function Us(){for(var t=ra,e=Hr=ra=0;e<t;){var n=Ge[e];Ge[e++]=null;var l=Ge[e];Ge[e++]=null;var u=Ge[e];Ge[e++]=null;var r=Ge[e];if(Ge[e++]=null,l!==null&&u!==null){var h=l.pending;h===null?u.next=u:(u.next=h.next,h.next=u),l.pending=u}r!==0&&$p(n,u,r)}}function _s(t,e,n,l){Ge[ra++]=t,Ge[ra++]=e,Ge[ra++]=n,Ge[ra++]=l,Hr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Gr(t,e,n,l){return _s(t,e,n,l),Hs(t)}function xi(t,e){return _s(t,null,null,e),Hs(t)}function $p(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var u=!1,r=t.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(u=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,u&&e!==null&&(u=31-De(n),t=r.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=n|536870912),r):null}function Hs(t){if(50<Hl)throw Hl=0,Fc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ca={};function CM(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 Re(t,e,n,l){return new CM(t,e,n,l)}function Yr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function yn(t,e){var n=t.alternate;return n===null?(n=Re(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 Ip(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 Gs(t,e,n,l,u,r){var h=0;if(l=t,typeof t=="function")Yr(t)&&(h=1);else if(typeof t=="string")h=OA(t,n,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case it:return t=Re(31,n,e,u),t.elementType=it,t.lanes=r,t;case H:return Ei(n.children,u,r,e);case O:h=8,u|=24;break;case k:return t=Re(12,n,e,u|2),t.elementType=k,t.lanes=r,t;case K:return t=Re(13,n,e,u),t.elementType=K,t.lanes=r,t;case J:return t=Re(19,n,e,u),t.elementType=J,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:h=10;break t;case Q:h=9;break t;case L:h=11;break t;case Z:h=14;break t;case tt:h=16,l=null;break t}h=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=Re(h,n,e,u),e.elementType=t,e.type=l,e.lanes=r,e}function Ei(t,e,n,l){return t=Re(7,t,l,e),t.lanes=n,t}function qr(t,e,n){return t=Re(6,t,null,e),t.lanes=n,t}function ty(t){var e=Re(18,null,null,0);return e.stateNode=t,e}function kr(t,e,n){return e=Re(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ey=new WeakMap;function Ye(t,e){if(typeof t=="object"&&t!==null){var n=ey.get(t);return n!==void 0?n:(e={value:t,source:e,stack:el(e)},ey.set(t,e),e)}return{value:t,source:e,stack:el(e)}}var fa=[],da=0,Ys=null,gl=0,qe=[],ke=0,Gn=null,ln=1,sn="";function vn(t,e){fa[da++]=gl,fa[da++]=Ys,Ys=t,gl=e}function ny(t,e,n){qe[ke++]=ln,qe[ke++]=sn,qe[ke++]=Gn,Gn=t;var l=ln;t=sn;var u=32-De(l)-1;l&=~(1<<u),n+=1;var r=32-De(e)+u;if(30<r){var h=u-u%5;r=(l&(1<<h)-1).toString(32),l>>=h,u-=h,ln=1<<32-De(e)+u|n<<u|l,sn=r+t}else ln=1<<r|n<<u|l,sn=t}function Xr(t){t.return!==null&&(vn(t,1),ny(t,1,0))}function Kr(t){for(;t===Ys;)Ys=fa[--da],fa[da]=null,gl=fa[--da],fa[da]=null;for(;t===Gn;)Gn=qe[--ke],qe[ke]=null,sn=qe[--ke],qe[ke]=null,ln=qe[--ke],qe[ke]=null}function iy(t,e){qe[ke++]=ln,qe[ke++]=sn,qe[ke++]=Gn,ln=e.id,sn=e.overflow,Gn=t}var ae=null,Bt=null,gt=!1,Yn=null,Xe=!1,Zr=Error(c(519));function qn(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sl(Ye(e,t)),Zr}function ay(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ie]=t,e[ye]=l,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<Yl.length;n++)pt(Yl[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),vp(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),Sp(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||Tv(e.textContent,n)?(l.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),l.onScroll!=null&&pt("scroll",e),l.onScrollEnd!=null&&pt("scrollend",e),l.onClick!=null&&(e.onclick=mn),e=!0):e=!1,e||qn(t,!0)}function ly(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:ae=ae.return}}function ha(t){if(t!==ae)return!1;if(!gt)return ly(t),gt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ff(t.type,t.memoizedProps)),n=!n),n&&Bt&&qn(t),ly(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Bt=jv(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Bt=jv(t)}else e===27?(e=Bt,ni(t.type)?(t=yf,yf=null,Bt=t):Bt=e):Bt=ae?Ze(t.stateNode.nextSibling):null;return!0}function Mi(){Bt=ae=null,gt=!1}function Qr(){var t=Yn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),Yn=null),t}function Sl(t){Yn===null?Yn=[t]:Yn.push(t)}var Pr=M(null),Ai=null,gn=null;function kn(t,e,n){F(Pr,e._currentValue),e._currentValue=n}function Sn(t){t._currentValue=Pr.current,q(Pr)}function Fr(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 Jr(t,e,n,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var r=u.dependencies;if(r!==null){var h=u.child;r=r.firstContext;t:for(;r!==null;){var g=r;r=u;for(var x=0;x<e.length;x++)if(g.context===e[x]){r.lanes|=n,g=r.alternate,g!==null&&(g.lanes|=n),Fr(r.return,n,t),l||(h=null);break t}r=g.next}}else if(u.tag===18){if(h=u.return,h===null)throw Error(c(341));h.lanes|=n,r=h.alternate,r!==null&&(r.lanes|=n),Fr(h,n,t),h=null}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}}function ma(t,e,n,l){t=null;for(var u=e,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var h=u.alternate;if(h===null)throw Error(c(387));if(h=h.memoizedProps,h!==null){var g=u.type;ze(u.pendingProps.value,h.value)||(t!==null?t.push(g):t=[g])}}else if(u===bt.current){if(h=u.alternate,h===null)throw Error(c(387));h.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Zl):t=[Zl])}u=u.return}t!==null&&Jr(e,t,n,l),e.flags|=262144}function qs(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ci(t){Ai=t,gn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return sy(Ai,t)}function ks(t,e){return Ai===null&&Ci(t),sy(t,e)}function sy(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},gn===null){if(t===null)throw Error(c(308));gn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else gn=gn.next=e;return n}var DM=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()})}},zM=a.unstable_scheduleCallback,RM=a.unstable_NormalPriority,Kt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wr(){return{controller:new DM,data:new Map,refCount:0}}function bl(t){t.refCount--,t.refCount===0&&zM(RM,function(){t.controller.abort()})}var Tl=null,$r=0,pa=0,ya=null;function jM(t,e){if(Tl===null){var n=Tl=[];$r=0,pa=ef(),ya={status:"pending",value:void 0,then:function(l){n.push(l)}}}return $r++,e.then(uy,uy),e}function uy(){if(--$r===0&&Tl!==null){ya!==null&&(ya.status="fulfilled");var t=Tl;Tl=null,pa=0,ya=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function OM(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),l}var oy=U.S;U.S=function(t,e){K0=Ae(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&jM(t,e),oy!==null&&oy(t,e)};var Di=M(null);function Ir(){var t=Di.current;return t!==null?t:Ot.pooledCache}function Xs(t,e){e===null?F(Di,Di.current):F(Di,e.pool)}function ry(){var t=Ir();return t===null?null:{parent:Kt._currentValue,pool:t}}var va=Error(c(460)),tc=Error(c(474)),Ks=Error(c(542)),Zs={then:function(){}};function cy(t){return t=t.status,t==="fulfilled"||t==="rejected"}function fy(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(mn,mn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,hy(t),t;default:if(typeof e.status=="string")e.then(mn,mn);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,hy(t),t}throw Ri=e,va}}function zi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ri=n,va):n}}var Ri=null;function dy(){if(Ri===null)throw Error(c(459));var t=Ri;return Ri=null,t}function hy(t){if(t===va||t===Ks)throw Error(c(483))}var ga=null,xl=0;function Qs(t){var e=xl;return xl+=1,ga===null&&(ga=[]),fy(ga,t,e)}function El(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ps(t,e){throw e.$$typeof===C?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function my(t){function e(A,E){if(t){var D=A.deletions;D===null?(A.deletions=[E],A.flags|=16):D.push(E)}}function n(A,E){if(!t)return null;for(;E!==null;)e(A,E),E=E.sibling;return null}function l(A){for(var E=new Map;A!==null;)A.key!==null?E.set(A.key,A):E.set(A.index,A),A=A.sibling;return E}function u(A,E){return A=yn(A,E),A.index=0,A.sibling=null,A}function r(A,E,D){return A.index=D,t?(D=A.alternate,D!==null?(D=D.index,D<E?(A.flags|=67108866,E):D):(A.flags|=67108866,E)):(A.flags|=1048576,E)}function h(A){return t&&A.alternate===null&&(A.flags|=67108866),A}function g(A,E,D,_){return E===null||E.tag!==6?(E=qr(D,A.mode,_),E.return=A,E):(E=u(E,D),E.return=A,E)}function x(A,E,D,_){var nt=D.type;return nt===H?N(A,E,D.props.children,_,D.key):E!==null&&(E.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===tt&&zi(nt)===E.type)?(E=u(E,D.props),El(E,D),E.return=A,E):(E=Gs(D.type,D.key,D.props,null,A.mode,_),El(E,D),E.return=A,E)}function z(A,E,D,_){return E===null||E.tag!==4||E.stateNode.containerInfo!==D.containerInfo||E.stateNode.implementation!==D.implementation?(E=kr(D,A.mode,_),E.return=A,E):(E=u(E,D.children||[]),E.return=A,E)}function N(A,E,D,_,nt){return E===null||E.tag!==7?(E=Ei(D,A.mode,_,nt),E.return=A,E):(E=u(E,D),E.return=A,E)}function Y(A,E,D){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=qr(""+E,A.mode,D),E.return=A,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case w:return D=Gs(E.type,E.key,E.props,null,A.mode,D),El(D,E),D.return=A,D;case V:return E=kr(E,A.mode,D),E.return=A,E;case tt:return E=zi(E),Y(A,E,D)}if(P(E)||st(E))return E=Ei(E,A.mode,D,null),E.return=A,E;if(typeof E.then=="function")return Y(A,Qs(E),D);if(E.$$typeof===G)return Y(A,ks(A,E),D);Ps(A,E)}return null}function R(A,E,D,_){var nt=E!==null?E.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return nt!==null?null:g(A,E,""+D,_);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return D.key===nt?x(A,E,D,_):null;case V:return D.key===nt?z(A,E,D,_):null;case tt:return D=zi(D),R(A,E,D,_)}if(P(D)||st(D))return nt!==null?null:N(A,E,D,_,null);if(typeof D.then=="function")return R(A,E,Qs(D),_);if(D.$$typeof===G)return R(A,E,ks(A,D),_);Ps(A,D)}return null}function B(A,E,D,_,nt){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return A=A.get(D)||null,g(E,A,""+_,nt);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case w:return A=A.get(_.key===null?D:_.key)||null,x(E,A,_,nt);case V:return A=A.get(_.key===null?D:_.key)||null,z(E,A,_,nt);case tt:return _=zi(_),B(A,E,D,_,nt)}if(P(_)||st(_))return A=A.get(D)||null,N(E,A,_,nt,null);if(typeof _.then=="function")return B(A,E,D,Qs(_),nt);if(_.$$typeof===G)return B(A,E,D,ks(E,_),nt);Ps(E,_)}return null}function $(A,E,D,_){for(var nt=null,Tt=null,et=E,ct=E=0,vt=null;et!==null&&ct<D.length;ct++){et.index>ct?(vt=et,et=null):vt=et.sibling;var xt=R(A,et,D[ct],_);if(xt===null){et===null&&(et=vt);break}t&&et&&xt.alternate===null&&e(A,et),E=r(xt,E,ct),Tt===null?nt=xt:Tt.sibling=xt,Tt=xt,et=vt}if(ct===D.length)return n(A,et),gt&&vn(A,ct),nt;if(et===null){for(;ct<D.length;ct++)et=Y(A,D[ct],_),et!==null&&(E=r(et,E,ct),Tt===null?nt=et:Tt.sibling=et,Tt=et);return gt&&vn(A,ct),nt}for(et=l(et);ct<D.length;ct++)vt=B(et,A,ct,D[ct],_),vt!==null&&(t&&vt.alternate!==null&&et.delete(vt.key===null?ct:vt.key),E=r(vt,E,ct),Tt===null?nt=vt:Tt.sibling=vt,Tt=vt);return t&&et.forEach(function(ui){return e(A,ui)}),gt&&vn(A,ct),nt}function at(A,E,D,_){if(D==null)throw Error(c(151));for(var nt=null,Tt=null,et=E,ct=E=0,vt=null,xt=D.next();et!==null&&!xt.done;ct++,xt=D.next()){et.index>ct?(vt=et,et=null):vt=et.sibling;var ui=R(A,et,xt.value,_);if(ui===null){et===null&&(et=vt);break}t&&et&&ui.alternate===null&&e(A,et),E=r(ui,E,ct),Tt===null?nt=ui:Tt.sibling=ui,Tt=ui,et=vt}if(xt.done)return n(A,et),gt&&vn(A,ct),nt;if(et===null){for(;!xt.done;ct++,xt=D.next())xt=Y(A,xt.value,_),xt!==null&&(E=r(xt,E,ct),Tt===null?nt=xt:Tt.sibling=xt,Tt=xt);return gt&&vn(A,ct),nt}for(et=l(et);!xt.done;ct++,xt=D.next())xt=B(et,A,ct,xt.value,_),xt!==null&&(t&&xt.alternate!==null&&et.delete(xt.key===null?ct:xt.key),E=r(xt,E,ct),Tt===null?nt=xt:Tt.sibling=xt,Tt=xt);return t&&et.forEach(function(qA){return e(A,qA)}),gt&&vn(A,ct),nt}function Rt(A,E,D,_){if(typeof D=="object"&&D!==null&&D.type===H&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case w:t:{for(var nt=D.key;E!==null;){if(E.key===nt){if(nt=D.type,nt===H){if(E.tag===7){n(A,E.sibling),_=u(E,D.props.children),_.return=A,A=_;break t}}else if(E.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===tt&&zi(nt)===E.type){n(A,E.sibling),_=u(E,D.props),El(_,D),_.return=A,A=_;break t}n(A,E);break}else e(A,E);E=E.sibling}D.type===H?(_=Ei(D.props.children,A.mode,_,D.key),_.return=A,A=_):(_=Gs(D.type,D.key,D.props,null,A.mode,_),El(_,D),_.return=A,A=_)}return h(A);case V:t:{for(nt=D.key;E!==null;){if(E.key===nt)if(E.tag===4&&E.stateNode.containerInfo===D.containerInfo&&E.stateNode.implementation===D.implementation){n(A,E.sibling),_=u(E,D.children||[]),_.return=A,A=_;break t}else{n(A,E);break}else e(A,E);E=E.sibling}_=kr(D,A.mode,_),_.return=A,A=_}return h(A);case tt:return D=zi(D),Rt(A,E,D,_)}if(P(D))return $(A,E,D,_);if(st(D)){if(nt=st(D),typeof nt!="function")throw Error(c(150));return D=nt.call(D),at(A,E,D,_)}if(typeof D.then=="function")return Rt(A,E,Qs(D),_);if(D.$$typeof===G)return Rt(A,E,ks(A,D),_);Ps(A,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,E!==null&&E.tag===6?(n(A,E.sibling),_=u(E,D),_.return=A,A=_):(n(A,E),_=qr(D,A.mode,_),_.return=A,A=_),h(A)):n(A,E)}return function(A,E,D,_){try{xl=0;var nt=Rt(A,E,D,_);return ga=null,nt}catch(et){if(et===va||et===Ks)throw et;var Tt=Re(29,et,null,A.mode);return Tt.lanes=_,Tt.return=A,Tt}finally{}}}var ji=my(!0),py=my(!1),Xn=!1;function ec(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nc(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 Kn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=Hs(t),$p(t,null,n),e}return _s(t,l,e,n),Hs(t)}function Ml(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,sp(t,n)}}function ic(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var u=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=h:r=r.next=h,n=n.next}while(n!==null);r===null?u=r=e:r=r.next=e}else u=r=e;n={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,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 ac=!1;function Al(){if(ac){var t=ya;if(t!==null)throw t}}function Cl(t,e,n,l){ac=!1;var u=t.updateQueue;Xn=!1;var r=u.firstBaseUpdate,h=u.lastBaseUpdate,g=u.shared.pending;if(g!==null){u.shared.pending=null;var x=g,z=x.next;x.next=null,h===null?r=z:h.next=z,h=x;var N=t.alternate;N!==null&&(N=N.updateQueue,g=N.lastBaseUpdate,g!==h&&(g===null?N.firstBaseUpdate=z:g.next=z,N.lastBaseUpdate=x))}if(r!==null){var Y=u.baseState;h=0,N=z=x=null,g=r;do{var R=g.lane&-536870913,B=R!==g.lane;if(B?(yt&R)===R:(l&R)===R){R!==0&&R===pa&&(ac=!0),N!==null&&(N=N.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var $=t,at=g;R=e;var Rt=n;switch(at.tag){case 1:if($=at.payload,typeof $=="function"){Y=$.call(Rt,Y,R);break t}Y=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=at.payload,R=typeof $=="function"?$.call(Rt,Y,R):$,R==null)break t;Y=b({},Y,R);break t;case 2:Xn=!0}}R=g.callback,R!==null&&(t.flags|=64,B&&(t.flags|=8192),B=u.callbacks,B===null?u.callbacks=[R]:B.push(R))}else B={lane:R,tag:g.tag,payload:g.payload,callback:g.callback,next:null},N===null?(z=N=B,x=Y):N=N.next=B,h|=R;if(g=g.next,g===null){if(g=u.shared.pending,g===null)break;B=g,g=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);N===null&&(x=Y),u.baseState=x,u.firstBaseUpdate=z,u.lastBaseUpdate=N,r===null&&(u.shared.lanes=0),Wn|=h,t.lanes=h,t.memoizedState=Y}}function yy(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function vy(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)yy(n[t],e)}var Sa=M(null),Fs=M(0);function gy(t,e){t=zn,F(Fs,t),F(Sa,e),zn=t|e.baseLanes}function lc(){F(Fs,zn),F(Sa,Sa.current)}function sc(){zn=Fs.current,q(Sa),q(Fs)}var je=M(null),Ke=null;function Qn(t){var e=t.alternate;F(qt,qt.current&1),F(je,t),Ke===null&&(e===null||Sa.current!==null||e.memoizedState!==null)&&(Ke=t)}function uc(t){F(qt,qt.current),F(je,t),Ke===null&&(Ke=t)}function Sy(t){t.tag===22?(F(qt,qt.current),F(je,t),Ke===null&&(Ke=t)):Pn()}function Pn(){F(qt,qt.current),F(je,je.current)}function Oe(t){q(je),Ke===t&&(Ke=null),q(qt)}var qt=M(0);function Js(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mf(n)||pf(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 bn=0,rt=null,Dt=null,Zt=null,Ws=!1,ba=!1,Oi=!1,$s=0,Dl=0,Ta=null,BM=0;function Gt(){throw Error(c(321))}function oc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ze(t[n],e[n]))return!1;return!0}function rc(t,e,n,l,u,r){return bn=r,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?n0:Mc,Oi=!1,r=n(l,u),Oi=!1,ba&&(r=Ty(e,n,l,u)),by(t),r}function by(t){U.H=jl;var e=Dt!==null&&Dt.next!==null;if(bn=0,Zt=Dt=rt=null,Ws=!1,Dl=0,Ta=null,e)throw Error(c(300));t===null||Qt||(t=t.dependencies,t!==null&&qs(t)&&(Qt=!0))}function Ty(t,e,n,l){rt=t;var u=0;do{if(ba&&(Ta=null),Dl=0,ba=!1,25<=u)throw Error(c(301));if(u+=1,Zt=Dt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}U.H=i0,r=e(n,l)}while(ba);return r}function VM(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?zl(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(rt.flags|=1024),e}function cc(){var t=$s!==0;return $s=0,t}function fc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function dc(t){if(Ws){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ws=!1}bn=0,Zt=Dt=rt=null,ba=!1,Dl=$s=0,Ta=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?rt.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function kt(){if(Dt===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Zt===null?rt.memoizedState:Zt.next;if(e!==null)Zt=e,Dt=t;else{if(t===null)throw rt.alternate===null?Error(c(467)):Error(c(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Zt===null?rt.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Is(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zl(t){var e=Dl;return Dl+=1,Ta===null&&(Ta=[]),t=fy(Ta,t,e),e=rt,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?n0:Mc),t}function tu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return zl(t);if(t.$$typeof===G)return le(t)}throw Error(c(438,String(t)))}function hc(t){var e=null,n=rt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=rt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Is(),rt.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]=jt;return e.index++,n}function Tn(t,e){return typeof e=="function"?e(t):e}function eu(t){var e=kt();return mc(e,Dt,t)}function mc(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var u=t.baseQueue,r=l.pending;if(r!==null){if(u!==null){var h=u.next;u.next=r.next,r.next=h}e.baseQueue=u=r,l.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var g=h=null,x=null,z=e,N=!1;do{var Y=z.lane&-536870913;if(Y!==z.lane?(yt&Y)===Y:(bn&Y)===Y){var R=z.revertLane;if(R===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Y===pa&&(N=!0);else if((bn&R)===R){z=z.next,R===pa&&(N=!0);continue}else Y={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(g=x=Y,h=r):x=x.next=Y,rt.lanes|=R,Wn|=R;Y=z.action,Oi&&n(r,Y),r=z.hasEagerState?z.eagerState:n(r,Y)}else R={lane:Y,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(g=x=R,h=r):x=x.next=R,rt.lanes|=Y,Wn|=Y;z=z.next}while(z!==null&&z!==e);if(x===null?h=r:x.next=g,!ze(r,t.memoizedState)&&(Qt=!0,N&&(n=ya,n!==null)))throw n;t.memoizedState=r,t.baseState=h,t.baseQueue=x,l.lastRenderedState=r}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function pc(t){var e=kt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,u=n.pending,r=e.memoizedState;if(u!==null){n.pending=null;var h=u=u.next;do r=t(r,h.action),h=h.next;while(h!==u);ze(r,e.memoizedState)||(Qt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,l]}function xy(t,e,n){var l=rt,u=kt(),r=gt;if(r){if(n===void 0)throw Error(c(407));n=n()}else n=e();var h=!ze((Dt||u).memoizedState,n);if(h&&(u.memoizedState=n,Qt=!0),u=u.queue,gc(Ay.bind(null,l,u,t),[t]),u.getSnapshot!==e||h||Zt!==null&&Zt.memoizedState.tag&1){if(l.flags|=2048,xa(9,{destroy:void 0},My.bind(null,l,u,n,e),null),Ot===null)throw Error(c(349));r||(bn&127)!==0||Ey(l,e,n)}return n}function Ey(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=rt.updateQueue,e===null?(e=Is(),rt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function My(t,e,n,l){e.value=n,e.getSnapshot=l,Cy(e)&&Dy(t)}function Ay(t,e,n){return n(function(){Cy(e)&&Dy(t)})}function Cy(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ze(t,n)}catch{return!0}}function Dy(t){var e=xi(t,2);e!==null&&xe(e,t,2)}function yc(t){var e=me();if(typeof t=="function"){var n=t;if(t=n(),Oi){Un(!0);try{n()}finally{Un(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:t},e}function zy(t,e,n,l){return t.baseState=n,mc(t,Dt,typeof l=="function"?l:Tn)}function LM(t,e,n,l,u){if(au(t))throw Error(c(485));if(t=e.action,t!==null){var r={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){r.listeners.push(h)}};U.T!==null?n(!0):r.isTransition=!1,l(r),n=e.pending,n===null?(r.next=e.pending=r,Ry(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Ry(t,e){var n=e.action,l=e.payload,u=t.state;if(e.isTransition){var r=U.T,h={};U.T=h;try{var g=n(u,l),x=U.S;x!==null&&x(h,g),jy(t,e,g)}catch(z){vc(t,e,z)}finally{r!==null&&h.types!==null&&(r.types=h.types),U.T=r}}else try{r=n(u,l),jy(t,e,r)}catch(z){vc(t,e,z)}}function jy(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Oy(t,e,l)},function(l){return vc(t,e,l)}):Oy(t,e,n)}function Oy(t,e,n){e.status="fulfilled",e.value=n,By(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Ry(t,n)))}function vc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,By(e),e=e.next;while(e!==l)}t.action=null}function By(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Vy(t,e){return e}function Ly(t,e){if(gt){var n=Ot.formState;if(n!==null){t:{var l=rt;if(gt){if(Bt){e:{for(var u=Bt,r=Xe;u.nodeType!==8;){if(!r){u=null;break e}if(u=Ze(u.nextSibling),u===null){u=null;break e}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){Bt=Ze(u.nextSibling),l=u.data==="F!";break t}}qn(l)}l=!1}l&&(e=n[0])}}return n=me(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vy,lastRenderedState:e},n.queue=l,n=Iy.bind(null,rt,l),l.dispatch=n,l=yc(!1),r=Ec.bind(null,rt,!1,l.queue),l=me(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,n=LM.bind(null,rt,u,r,n),u.dispatch=n,l.memoizedState=t,[e,n,!1]}function wy(t){var e=kt();return Ny(e,Dt,t)}function Ny(t,e,n){if(e=mc(t,e,Vy)[0],t=eu(Tn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=zl(e)}catch(h){throw h===va?Ks:h}else l=e;e=kt();var u=e.queue,r=u.dispatch;return n!==e.memoizedState&&(rt.flags|=2048,xa(9,{destroy:void 0},wM.bind(null,u,n),null)),[l,r,t]}function wM(t,e){t.action=e}function Uy(t){var e=kt(),n=Dt;if(n!==null)return Ny(e,n,t);kt(),e=e.memoizedState,n=kt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function xa(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=rt.updateQueue,e===null&&(e=Is(),rt.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 _y(){return kt().memoizedState}function nu(t,e,n,l){var u=me();rt.flags|=t,u.memoizedState=xa(1|e,{destroy:void 0},n,l===void 0?null:l)}function iu(t,e,n,l){var u=kt();l=l===void 0?null:l;var r=u.memoizedState.inst;Dt!==null&&l!==null&&oc(l,Dt.memoizedState.deps)?u.memoizedState=xa(e,r,n,l):(rt.flags|=t,u.memoizedState=xa(1|e,r,n,l))}function Hy(t,e){nu(8390656,8,t,e)}function gc(t,e){iu(2048,8,t,e)}function NM(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=Is(),rt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Gy(t){var e=kt().memoizedState;return NM({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Yy(t,e){return iu(4,2,t,e)}function qy(t,e){return iu(4,4,t,e)}function ky(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 Xy(t,e,n){n=n!=null?n.concat([t]):null,iu(4,4,ky.bind(null,e,t),n)}function Sc(){}function Ky(t,e){var n=kt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&oc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Zy(t,e){var n=kt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&oc(e,l[1]))return l[0];if(l=t(),Oi){Un(!0);try{t()}finally{Un(!1)}}return n.memoizedState=[l,e],l}function bc(t,e,n){return n===void 0||(bn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Q0(),rt.lanes|=t,Wn|=t,n)}function Qy(t,e,n,l){return ze(n,e)?n:Sa.current!==null?(t=bc(t,n,l),ze(t,e)||(Qt=!0),t):(bn&42)===0||(bn&1073741824)!==0&&(yt&261930)===0?(Qt=!0,t.memoizedState=n):(t=Q0(),rt.lanes|=t,Wn|=t,e)}function Py(t,e,n,l,u){var r=X.p;X.p=r!==0&&8>r?r:8;var h=U.T,g={};U.T=g,Ec(t,!1,e,n);try{var x=u(),z=U.S;if(z!==null&&z(g,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var N=OM(x,l);Rl(t,e,N,Le(t))}else Rl(t,e,l,Le(t))}catch(Y){Rl(t,e,{then:function(){},status:"rejected",reason:Y},Le())}finally{X.p=r,h!==null&&g.types!==null&&(h.types=g.types),U.T=h}}function UM(){}function Tc(t,e,n,l){if(t.tag!==5)throw Error(c(476));var u=Fy(t).queue;Py(t,u,e,ot,n===null?UM:function(){return Jy(t),n(l)})}function Fy(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ot,baseState:ot,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:ot},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Jy(t){var e=Fy(t);e.next===null&&(e=t.alternate.memoizedState),Rl(t,e.next.queue,{},Le())}function xc(){return le(Zl)}function Wy(){return kt().memoizedState}function $y(){return kt().memoizedState}function _M(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Le();t=Kn(n);var l=Zn(e,t,n);l!==null&&(xe(l,e,n),Ml(l,e,n)),e={cache:Wr()},t.payload=e;return}e=e.return}}function HM(t,e,n){var l=Le();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},au(t)?t0(e,n):(n=Gr(t,e,n,l),n!==null&&(xe(n,t,l),e0(n,e,l)))}function Iy(t,e,n){var l=Le();Rl(t,e,n,l)}function Rl(t,e,n,l){var u={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(au(t))t0(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var h=e.lastRenderedState,g=r(h,n);if(u.hasEagerState=!0,u.eagerState=g,ze(g,h))return _s(t,e,u,0),Ot===null&&Us(),!1}catch{}finally{}if(n=Gr(t,e,u,l),n!==null)return xe(n,t,l),e0(n,e,l),!0}return!1}function Ec(t,e,n,l){if(l={lane:2,revertLane:ef(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},au(t)){if(e)throw Error(c(479))}else e=Gr(t,n,l,2),e!==null&&xe(e,t,2)}function au(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function t0(t,e){ba=Ws=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function e0(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,sp(t,n)}}var jl={readContext:le,use:tu,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};jl.useEffectEvent=Gt;var n0={readContext:le,use:tu,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Hy,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,nu(4194308,4,ky.bind(null,e,t),n)},useLayoutEffect:function(t,e){return nu(4194308,4,t,e)},useInsertionEffect:function(t,e){nu(4,2,t,e)},useMemo:function(t,e){var n=me();e=e===void 0?null:e;var l=t();if(Oi){Un(!0);try{t()}finally{Un(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=me();if(n!==void 0){var u=n(e);if(Oi){Un(!0);try{n(e)}finally{Un(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=HM.bind(null,rt,t),[l.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=yc(t);var e=t.queue,n=Iy.bind(null,rt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Sc,useDeferredValue:function(t,e){var n=me();return bc(n,t,e)},useTransition:function(){var t=yc(!1);return t=Py.bind(null,rt,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=rt,u=me();if(gt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Ot===null)throw Error(c(349));(yt&127)!==0||Ey(l,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,Hy(Ay.bind(null,l,r,t),[t]),l.flags|=2048,xa(9,{destroy:void 0},My.bind(null,l,r,n,e),null),n},useId:function(){var t=me(),e=Ot.identifierPrefix;if(gt){var n=sn,l=ln;n=(l&~(1<<32-De(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=$s++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=BM++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:xc,useFormState:Ly,useActionState:Ly,useOptimistic:function(t){var e=me();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ec.bind(null,rt,!0,n),n.dispatch=e,[t,e]},useMemoCache:hc,useCacheRefresh:function(){return me().memoizedState=_M.bind(null,rt)},useEffectEvent:function(t){var e=me(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Mc={readContext:le,use:tu,useCallback:Ky,useContext:le,useEffect:gc,useImperativeHandle:Xy,useInsertionEffect:Yy,useLayoutEffect:qy,useMemo:Zy,useReducer:eu,useRef:_y,useState:function(){return eu(Tn)},useDebugValue:Sc,useDeferredValue:function(t,e){var n=kt();return Qy(n,Dt.memoizedState,t,e)},useTransition:function(){var t=eu(Tn)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:zl(t),e]},useSyncExternalStore:xy,useId:Wy,useHostTransitionStatus:xc,useFormState:wy,useActionState:wy,useOptimistic:function(t,e){var n=kt();return zy(n,Dt,t,e)},useMemoCache:hc,useCacheRefresh:$y};Mc.useEffectEvent=Gy;var i0={readContext:le,use:tu,useCallback:Ky,useContext:le,useEffect:gc,useImperativeHandle:Xy,useInsertionEffect:Yy,useLayoutEffect:qy,useMemo:Zy,useReducer:pc,useRef:_y,useState:function(){return pc(Tn)},useDebugValue:Sc,useDeferredValue:function(t,e){var n=kt();return Dt===null?bc(n,t,e):Qy(n,Dt.memoizedState,t,e)},useTransition:function(){var t=pc(Tn)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:zl(t),e]},useSyncExternalStore:xy,useId:Wy,useHostTransitionStatus:xc,useFormState:Uy,useActionState:Uy,useOptimistic:function(t,e){var n=kt();return Dt!==null?zy(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:hc,useCacheRefresh:$y};i0.useEffectEvent=Gy;function Ac(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Cc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Le(),u=Kn(l);u.payload=e,n!=null&&(u.callback=n),e=Zn(t,u,l),e!==null&&(xe(e,t,l),Ml(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Le(),u=Kn(l);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=Zn(t,u,l),e!==null&&(xe(e,t,l),Ml(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Le(),l=Kn(n);l.tag=2,e!=null&&(l.callback=e),e=Zn(t,l,n),e!==null&&(xe(e,t,n),Ml(e,t,n))}};function a0(t,e,n,l,u,r,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,r,h):e.prototype&&e.prototype.isPureReactComponent?!yl(n,l)||!yl(u,r):!0}function l0(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&&Cc.enqueueReplaceState(e,e.state,null)}function Bi(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=b({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function s0(t){Ns(t)}function u0(t){console.error(t)}function o0(t){Ns(t)}function lu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function r0(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Dc(t,e,n){return n=Kn(n),n.tag=3,n.payload={element:null},n.callback=function(){lu(t,e)},n}function c0(t){return t=Kn(t),t.tag=3,t}function f0(t,e,n,l){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var r=l.value;t.payload=function(){return u(r)},t.callback=function(){r0(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){r0(e,n,l),typeof u!="function"&&($n===null?$n=new Set([this]):$n.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function GM(t,e,n,l,u){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&ma(e,n,u,!0),n=je.current,n!==null){switch(n.tag){case 31:case 13:return Ke===null?vu():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,l===Zs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),$c(t,l,u)),!1;case 22:return n.flags|=65536,l===Zs?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)),$c(t,l,u)),!1}throw Error(c(435,n.tag))}return $c(t,l,u),vu(),!1}if(gt)return e=je.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==Zr&&(t=Error(c(422),{cause:l}),Sl(Ye(t,n)))):(l!==Zr&&(e=Error(c(423),{cause:l}),Sl(Ye(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Ye(l,n),u=Dc(t.stateNode,l,u),ic(t,u),Yt!==4&&(Yt=2)),!1;var r=Error(c(520),{cause:l});if(r=Ye(r,n),_l===null?_l=[r]:_l.push(r),Yt!==4&&(Yt=2),e===null)return!0;l=Ye(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Dc(n.stateNode,l,t),ic(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))))return n.flags|=65536,u&=-u,n.lanes|=u,u=c0(u),f0(u,t,n,l),ic(n,u),!1}n=n.return}while(n!==null);return!1}var zc=Error(c(461)),Qt=!1;function se(t,e,n,l){e.child=t===null?py(e,null,n,l):ji(e,t.child,n,l)}function d0(t,e,n,l,u){n=n.render;var r=e.ref;if("ref"in l){var h={};for(var g in l)g!=="ref"&&(h[g]=l[g])}else h=l;return Ci(e),l=rc(t,e,n,h,r,u),g=cc(),t!==null&&!Qt?(fc(t,e,u),xn(t,e,u)):(gt&&g&&Xr(e),e.flags|=1,se(t,e,l,u),e.child)}function h0(t,e,n,l,u){if(t===null){var r=n.type;return typeof r=="function"&&!Yr(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,m0(t,e,r,l,u)):(t=Gs(n.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Nc(t,u)){var h=r.memoizedProps;if(n=n.compare,n=n!==null?n:yl,n(h,l)&&t.ref===e.ref)return xn(t,e,u)}return e.flags|=1,t=yn(r,l),t.ref=e.ref,t.return=e,e.child=t}function m0(t,e,n,l,u){if(t!==null){var r=t.memoizedProps;if(yl(r,l)&&t.ref===e.ref)if(Qt=!1,e.pendingProps=l=r,Nc(t,u))(t.flags&131072)!==0&&(Qt=!0);else return e.lanes=t.lanes,xn(t,e,u)}return Rc(t,e,n,l,u)}function p0(t,e,n,l){var u=l.children,r=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(r=r!==null?r.baseLanes|n:n,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~r}else l=0,e.child=null;return y0(t,e,r,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Xs(e,r!==null?r.cachePool:null),r!==null?gy(e,r):lc(),Sy(e);else return l=e.lanes=536870912,y0(t,e,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(Xs(e,r.cachePool),gy(e,r),Pn(),e.memoizedState=null):(t!==null&&Xs(e,null),lc(),Pn());return se(t,e,u,n),e.child}function Ol(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function y0(t,e,n,l,u){var r=Ir();return r=r===null?null:{parent:Kt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Xs(e,null),lc(),Sy(e),t!==null&&ma(t,e,l,!0),e.childLanes=u,null}function su(t,e){return e=ou({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function v0(t,e,n){return ji(e,t.child,null,n),t=su(e,e.pendingProps),t.flags|=2,Oe(e),e.memoizedState=null,t}function YM(t,e,n){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(gt){if(l.mode==="hidden")return t=su(e,l),e.lanes=536870912,Ol(null,t);if(uc(e),(t=Bt)?(t=Rv(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:ln,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=ty(t),n.return=e,e.child=n,ae=e,Bt=null)):t=null,t===null)throw qn(e);return e.lanes=536870912,null}return su(e,l)}var r=t.memoizedState;if(r!==null){var h=r.dehydrated;if(uc(e),u)if(e.flags&256)e.flags&=-257,e=v0(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Qt||ma(t,e,n,!1),u=(n&t.childLanes)!==0,Qt||u){if(l=Ot,l!==null&&(h=up(l,n),h!==0&&h!==r.retryLane))throw r.retryLane=h,xi(t,h),xe(l,t,h),zc;vu(),e=v0(t,e,n)}else t=r.treeContext,Bt=Ze(h.nextSibling),ae=e,gt=!0,Yn=null,Xe=!1,t!==null&&iy(e,t),e=su(e,l),e.flags|=4096;return e}return t=yn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function uu(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(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Rc(t,e,n,l,u){return Ci(e),n=rc(t,e,n,l,void 0,u),l=cc(),t!==null&&!Qt?(fc(t,e,u),xn(t,e,u)):(gt&&l&&Xr(e),e.flags|=1,se(t,e,n,u),e.child)}function g0(t,e,n,l,u,r){return Ci(e),e.updateQueue=null,n=Ty(e,l,n,u),by(t),l=cc(),t!==null&&!Qt?(fc(t,e,r),xn(t,e,r)):(gt&&l&&Xr(e),e.flags|=1,se(t,e,n,r),e.child)}function S0(t,e,n,l,u){if(Ci(e),e.stateNode===null){var r=ca,h=n.contextType;typeof h=="object"&&h!==null&&(r=le(h)),r=new n(l,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Cc,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=l,r.state=e.memoizedState,r.refs={},ec(e),h=n.contextType,r.context=typeof h=="object"&&h!==null?le(h):ca,r.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Ac(e,n,h,l),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(h=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),h!==r.state&&Cc.enqueueReplaceState(r,r.state,null),Cl(e,l,r,u),Al(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){r=e.stateNode;var g=e.memoizedProps,x=Bi(n,g);r.props=x;var z=r.context,N=n.contextType;h=ca,typeof N=="object"&&N!==null&&(h=le(N));var Y=n.getDerivedStateFromProps;N=typeof Y=="function"||typeof r.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,N||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g||z!==h)&&l0(e,r,l,h),Xn=!1;var R=e.memoizedState;r.state=R,Cl(e,l,r,u),Al(),z=e.memoizedState,g||R!==z||Xn?(typeof Y=="function"&&(Ac(e,n,Y,l),z=e.memoizedState),(x=Xn||a0(e,n,x,l,R,z,h))?(N||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),r.props=l,r.state=z,r.context=h,l=x):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{r=e.stateNode,nc(t,e),h=e.memoizedProps,N=Bi(n,h),r.props=N,Y=e.pendingProps,R=r.context,z=n.contextType,x=ca,typeof z=="object"&&z!==null&&(x=le(z)),g=n.getDerivedStateFromProps,(z=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(h!==Y||R!==x)&&l0(e,r,l,x),Xn=!1,R=e.memoizedState,r.state=R,Cl(e,l,r,u),Al();var B=e.memoizedState;h!==Y||R!==B||Xn||t!==null&&t.dependencies!==null&&qs(t.dependencies)?(typeof g=="function"&&(Ac(e,n,g,l),B=e.memoizedState),(N=Xn||a0(e,n,N,l,R,B,x)||t!==null&&t.dependencies!==null&&qs(t.dependencies))?(z||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,B,x),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,B,x)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=B),r.props=l,r.state=B,r.context=x,l=N):(typeof r.componentDidUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),l=!1)}return r=l,uu(t,e),l=(e.flags&128)!==0,r||l?(r=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&l?(e.child=ji(e,t.child,null,u),e.child=ji(e,null,n,u)):se(t,e,n,u),e.memoizedState=r.state,t=e.child):t=xn(t,e,u),t}function b0(t,e,n,l){return Mi(),e.flags|=256,se(t,e,n,l),e.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(t){return{baseLanes:t,cachePool:ry()}}function Bc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ve),t}function T0(t,e,n){var l=e.pendingProps,u=!1,r=(e.flags&128)!==0,h;if((h=r)||(h=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),h&&(u=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(gt){if(u?Qn(e):Pn(),(t=Bt)?(t=Rv(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:ln,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=ty(t),n.return=e,e.child=n,ae=e,Bt=null)):t=null,t===null)throw qn(e);return pf(t)?e.lanes=32:e.lanes=536870912,null}var g=l.children;return l=l.fallback,u?(Pn(),u=e.mode,g=ou({mode:"hidden",children:g},u),l=Ei(l,u,n,null),g.return=e,l.return=e,g.sibling=l,e.child=g,l=e.child,l.memoizedState=Oc(n),l.childLanes=Bc(t,h,n),e.memoizedState=jc,Ol(null,l)):(Qn(e),Vc(e,g))}var x=t.memoizedState;if(x!==null&&(g=x.dehydrated,g!==null)){if(r)e.flags&256?(Qn(e),e.flags&=-257,e=Lc(t,e,n)):e.memoizedState!==null?(Pn(),e.child=t.child,e.flags|=128,e=null):(Pn(),g=l.fallback,u=e.mode,l=ou({mode:"visible",children:l.children},u),g=Ei(g,u,n,null),g.flags|=2,l.return=e,g.return=e,l.sibling=g,e.child=l,ji(e,t.child,null,n),l=e.child,l.memoizedState=Oc(n),l.childLanes=Bc(t,h,n),e.memoizedState=jc,e=Ol(null,l));else if(Qn(e),pf(g)){if(h=g.nextSibling&&g.nextSibling.dataset,h)var z=h.dgst;h=z,l=Error(c(419)),l.stack="",l.digest=h,Sl({value:l,source:null,stack:null}),e=Lc(t,e,n)}else if(Qt||ma(t,e,n,!1),h=(n&t.childLanes)!==0,Qt||h){if(h=Ot,h!==null&&(l=up(h,n),l!==0&&l!==x.retryLane))throw x.retryLane=l,xi(t,l),xe(h,t,l),zc;mf(g)||vu(),e=Lc(t,e,n)}else mf(g)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,Bt=Ze(g.nextSibling),ae=e,gt=!0,Yn=null,Xe=!1,t!==null&&iy(e,t),e=Vc(e,l.children),e.flags|=4096);return e}return u?(Pn(),g=l.fallback,u=e.mode,x=t.child,z=x.sibling,l=yn(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&65011712,z!==null?g=yn(z,g):(g=Ei(g,u,n,null),g.flags|=2),g.return=e,l.return=e,l.sibling=g,e.child=l,Ol(null,l),l=e.child,g=t.child.memoizedState,g===null?g=Oc(n):(u=g.cachePool,u!==null?(x=Kt._currentValue,u=u.parent!==x?{parent:x,pool:x}:u):u=ry(),g={baseLanes:g.baseLanes|n,cachePool:u}),l.memoizedState=g,l.childLanes=Bc(t,h,n),e.memoizedState=jc,Ol(t.child,l)):(Qn(e),n=t.child,t=n.sibling,n=yn(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 Vc(t,e){return e=ou({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ou(t,e){return t=Re(22,t,null,e),t.lanes=0,t}function Lc(t,e,n){return ji(e,t.child,null,n),t=Vc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function x0(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Fr(t.return,e,n)}function wc(t,e,n,l,u,r){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:u,treeForkCount:r}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=u,h.treeForkCount=r)}function E0(t,e,n){var l=e.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var h=qt.current,g=(h&2)!==0;if(g?(h=h&1|2,e.flags|=128):h&=1,F(qt,h),se(t,e,l,n),l=gt?gl:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&x0(t,n,e);else if(t.tag===19)x0(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(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&Js(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),wc(e,!1,u,n,r,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Js(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}wc(e,!0,n,null,r,l);break;case"together":wc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function xn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Wn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ma(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=yn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=yn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Nc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&qs(t)))}function qM(t,e,n){switch(e.tag){case 3:ne(e,e.stateNode.containerInfo),kn(e,Kt,t.memoizedState.cache),Mi();break;case 27:case 5:fe(e);break;case 4:ne(e,e.stateNode.containerInfo);break;case 10:kn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,uc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Qn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?T0(t,e,n):(Qn(e),t=xn(t,e,n),t!==null?t.sibling:null);Qn(e);break;case 19:var u=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(ma(t,e,n,!1),l=(n&e.childLanes)!==0),u){if(l)return E0(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),F(qt,qt.current),l)break;return null;case 22:return e.lanes=0,p0(t,e,n,e.pendingProps);case 24:kn(e,Kt,t.memoizedState.cache)}return xn(t,e,n)}function M0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Qt=!0;else{if(!Nc(t,n)&&(e.flags&128)===0)return Qt=!1,qM(t,e,n);Qt=(t.flags&131072)!==0}else Qt=!1,gt&&(e.flags&1048576)!==0&&ny(e,gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=zi(e.elementType),e.type=t,typeof t=="function")Yr(t)?(l=Bi(t,l),e.tag=1,e=S0(null,e,t,l,n)):(e.tag=0,e=Rc(null,e,t,l,n));else{if(t!=null){var u=t.$$typeof;if(u===L){e.tag=11,e=d0(null,e,t,l,n);break t}else if(u===Z){e.tag=14,e=h0(null,e,t,l,n);break t}}throw e=ft(t)||t,Error(c(306,e,""))}}return e;case 0:return Rc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,u=Bi(l,e.pendingProps),S0(t,e,l,u,n);case 3:t:{if(ne(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var r=e.memoizedState;u=r.element,nc(t,e),Cl(e,l,null,n);var h=e.memoizedState;if(l=h.cache,kn(e,Kt,l),l!==r.cache&&Jr(e,[Kt],n,!0),Al(),l=h.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=b0(t,e,l,n);break t}else if(l!==u){u=Ye(Error(c(424)),e),Sl(u),e=b0(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(Bt=Ze(t.firstChild),ae=e,gt=!0,Yn=null,Xe=!0,n=py(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Mi(),l===u){e=xn(t,e,n);break t}se(t,e,l,n)}e=e.child}return e;case 26:return uu(t,e),t===null?(n=wv(e.type,null,e.pendingProps,null))?e.memoizedState=n:gt||(n=e.type,t=e.pendingProps,l=Mu(ht.current).createElement(n),l[ie]=e,l[ye]=t,ue(l,n,t),It(l),e.stateNode=l):e.memoizedState=wv(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return fe(e),t===null&>&&(l=e.stateNode=Bv(e.type,e.pendingProps,ht.current),ae=e,Xe=!0,u=Bt,ni(e.type)?(yf=u,Bt=Ze(l.firstChild)):Bt=u),se(t,e,e.pendingProps.children,n),uu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&>&&((u=l=Bt)&&(l=gA(l,e.type,e.pendingProps,Xe),l!==null?(e.stateNode=l,ae=e,Bt=Ze(l.firstChild),Xe=!1,u=!0):u=!1),u||qn(e)),fe(e),u=e.type,r=e.pendingProps,h=t!==null?t.memoizedProps:null,l=r.children,ff(u,r)?l=null:h!==null&&ff(u,h)&&(e.flags|=32),e.memoizedState!==null&&(u=rc(t,e,VM,null,null,n),Zl._currentValue=u),uu(t,e),se(t,e,l,n),e.child;case 6:return t===null&>&&((t=n=Bt)&&(n=SA(n,e.pendingProps,Xe),n!==null?(e.stateNode=n,ae=e,Bt=null,t=!0):t=!1),t||qn(e)),null;case 13:return T0(t,e,n);case 4:return ne(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ji(e,null,l,n):se(t,e,l,n),e.child;case 11:return d0(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,kn(e,e.type,l.value),se(t,e,l.children,n),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,Ci(e),u=le(u),l=l(u),e.flags|=1,se(t,e,l,n),e.child;case 14:return h0(t,e,e.type,e.pendingProps,n);case 15:return m0(t,e,e.type,e.pendingProps,n);case 19:return E0(t,e,n);case 31:return YM(t,e,n);case 22:return p0(t,e,n,e.pendingProps);case 24:return Ci(e),l=le(Kt),t===null?(u=Ir(),u===null&&(u=Ot,r=Wr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=n),u=r),e.memoizedState={parent:l,cache:u},ec(e),kn(e,Kt,u)):((t.lanes&n)!==0&&(nc(t,e),Cl(e,null,null,n),Al()),u=t.memoizedState,r=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),kn(e,Kt,l)):(l=r.cache,kn(e,Kt,l),l!==u.cache&&Jr(e,[Kt],n,!0))),se(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function En(t){t.flags|=4}function Uc(t,e,n,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(W0())t.flags|=8192;else throw Ri=Zs,tc}else t.flags&=-16777217}function A0(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Gv(e))if(W0())t.flags|=8192;else throw Ri=Zs,tc}function ru(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ap():536870912,t.lanes|=e,Ca|=e)}function Bl(t,e){if(!gt)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 u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function kM(t,e,n){var l=e.pendingProps;switch(Kr(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),Sn(Kt),_t(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ha(e)?En(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Qr())),Vt(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(En(e),r!==null?(Vt(e),A0(e,r)):(Vt(e),Uc(e,u,null,l,n))):r?r!==t.memoizedState?(En(e),Vt(e),A0(e,r)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&En(e),Vt(e),Uc(e,u,t,l,n)),null;case 27:if(de(e),n=ht.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&En(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Vt(e),null}t=I.current,ha(e)?ay(e):(t=Bv(u,l,n),e.stateNode=t,En(e))}return Vt(e),null;case 5:if(de(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&En(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Vt(e),null}if(r=I.current,ha(e))ay(e);else{var h=Mu(ht.current);switch(r){case 1:r=h.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=h.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=h.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?h.createElement(u,{is:l.is}):h.createElement(u)}}r[ie]=e,r[ye]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)r.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=r;t:switch(ue(r,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&En(e)}}return Vt(e),Uc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&En(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=ht.current,ha(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,u=ae,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[ie]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Tv(t.nodeValue,n)),t||qn(e,!0)}else t=Mu(t).createTextNode(l),t[ie]=e,e.stateNode=t}return Vt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=ha(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[ie]=e}else Mi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else n=Qr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Oe(e),e):(Oe(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Vt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=ha(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(c(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[ie]=e}else Mi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),u=!1}else u=Qr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Oe(e),e):(Oe(e),null)}return Oe(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),ru(e,e.updateQueue),Vt(e),null);case 4:return _t(),t===null&&sf(e.stateNode.containerInfo),Vt(e),null;case 10:return Sn(e.type),Vt(e),null;case 19:if(q(qt),l=e.memoizedState,l===null)return Vt(e),null;if(u=(e.flags&128)!==0,r=l.rendering,r===null)if(u)Bl(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Js(t),r!==null){for(e.flags|=128,Bl(l,!1),t=r.updateQueue,e.updateQueue=t,ru(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Ip(n,t),n=n.sibling;return F(qt,qt.current&1|2),gt&&vn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Ae()>mu&&(e.flags|=128,u=!0,Bl(l,!1),e.lanes=4194304)}else{if(!u)if(t=Js(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,ru(e,t),Bl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!gt)return Vt(e),null}else 2*Ae()-l.renderingStartTime>mu&&n!==536870912&&(e.flags|=128,u=!0,Bl(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(t=l.last,t!==null?t.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ae(),t.sibling=null,n=qt.current,F(qt,u?n&1|2:n&1),gt&&vn(e,l.treeForkCount),t):(Vt(e),null);case 22:case 23:return Oe(e),sc(),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&&ru(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&&q(Di),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Sn(Kt),Vt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function XM(t,e){switch(Kr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Sn(Kt),_t(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return de(e),null;case 31:if(e.memoizedState!==null){if(Oe(e),e.alternate===null)throw Error(c(340));Mi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Oe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Mi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(qt),null;case 4:return _t(),null;case 10:return Sn(e.type),null;case 22:case 23:return Oe(e),sc(),t!==null&&q(Di),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Sn(Kt),null;case 25:return null;default:return null}}function C0(t,e){switch(Kr(e),e.tag){case 3:Sn(Kt),_t();break;case 26:case 27:case 5:de(e);break;case 4:_t();break;case 31:e.memoizedState!==null&&Oe(e);break;case 13:Oe(e);break;case 19:q(qt);break;case 10:Sn(e.type);break;case 22:case 23:Oe(e),sc(),t!==null&&q(Di);break;case 24:Sn(Kt)}}function Vl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){l=void 0;var r=n.create,h=n.inst;l=r(),h.destroy=l}n=n.next}while(n!==u)}}catch(g){Ct(e,e.return,g)}}function Fn(t,e,n){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var r=u.next;l=r;do{if((l.tag&t)===t){var h=l.inst,g=h.destroy;if(g!==void 0){h.destroy=void 0,u=e;var x=n,z=g;try{z()}catch(N){Ct(u,x,N)}}}l=l.next}while(l!==r)}}catch(N){Ct(e,e.return,N)}}function D0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{vy(e,n)}catch(l){Ct(t,t.return,l)}}}function z0(t,e,n){n.props=Bi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ct(t,e,l)}}function Ll(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(u){Ct(t,e,u)}}function un(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(u){Ct(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Ct(t,e,u)}else n.current=null}function R0(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(u){Ct(t,t.return,u)}}function _c(t,e,n){try{var l=t.stateNode;dA(l,t.type,n,e),l[ye]=e}catch(u){Ct(t,t.return,u)}}function j0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ni(t.type)||t.tag===4}function Hc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||j0(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&&ni(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 Gc(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=mn));else if(l!==4&&(l===27&&ni(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Gc(t,e,n),t=t.sibling;t!==null;)Gc(t,e,n),t=t.sibling}function cu(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&&ni(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(cu(t,e,n),t=t.sibling;t!==null;)cu(t,e,n),t=t.sibling}function O0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ue(e,l,n),e[ie]=t,e[ye]=n}catch(r){Ct(t,t.return,r)}}var Mn=!1,Pt=!1,Yc=!1,B0=typeof WeakSet=="function"?WeakSet:Set,te=null;function KM(t,e){if(t=t.containerInfo,rf=Ou,t=Xp(t),Lr(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 u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var h=0,g=-1,x=-1,z=0,N=0,Y=t,R=null;e:for(;;){for(var B;Y!==n||u!==0&&Y.nodeType!==3||(g=h+u),Y!==r||l!==0&&Y.nodeType!==3||(x=h+l),Y.nodeType===3&&(h+=Y.nodeValue.length),(B=Y.firstChild)!==null;)R=Y,Y=B;for(;;){if(Y===t)break e;if(R===n&&++z===u&&(g=h),R===r&&++N===l&&(x=h),(B=Y.nextSibling)!==null)break;Y=R,R=Y.parentNode}Y=B}n=g===-1||x===-1?null:{start:g,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(cf={focusedElem:t,selectionRange:n},Ou=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,r=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++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,u=r.memoizedProps,r=r.memoizedState,l=n.stateNode;try{var $=Bi(n.type,u);t=l.getSnapshotBeforeUpdate($,r),l.__reactInternalSnapshotBeforeUpdate=t}catch(at){Ct(n,n.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)hf(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":hf(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(c(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function V0(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(t,n),l&4&&Vl(5,n);break;case 1:if(Cn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Ct(n,n.return,h)}else{var u=Bi(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Ct(n,n.return,h)}}l&64&&D0(n),l&512&&Ll(n,n.return);break;case 3:if(Cn(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{vy(t,e)}catch(h){Ct(n,n.return,h)}}break;case 27:e===null&&l&4&&O0(n);case 26:case 5:Cn(t,n),e===null&&l&4&&R0(n),l&512&&Ll(n,n.return);break;case 12:Cn(t,n);break;case 31:Cn(t,n),l&4&&N0(t,n);break;case 13:Cn(t,n),l&4&&U0(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=tA.bind(null,n),bA(t,n))));break;case 22:if(l=n.memoizedState!==null||Mn,!l){e=e!==null&&e.memoizedState!==null||Pt,u=Mn;var r=Pt;Mn=l,(Pt=e)&&!r?Dn(t,n,(n.subtreeFlags&8772)!==0):Cn(t,n),Mn=u,Pt=r}break;case 30:break;default:Cn(t,n)}}function L0(t){var e=t.alternate;e!==null&&(t.alternate=null,L0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&vr(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 wt=null,ge=!1;function An(t,e,n){for(n=n.child;n!==null;)w0(t,e,n),n=n.sibling}function w0(t,e,n){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(al,n)}catch{}switch(n.tag){case 26:Pt||un(n,e),An(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pt||un(n,e);var l=wt,u=ge;ni(n.type)&&(wt=n.stateNode,ge=!1),An(t,e,n),kl(n.stateNode),wt=l,ge=u;break;case 5:Pt||un(n,e);case 6:if(l=wt,u=ge,wt=null,An(t,e,n),wt=l,ge=u,wt!==null)if(ge)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(r){Ct(n,e,r)}else try{wt.removeChild(n.stateNode)}catch(r){Ct(n,e,r)}break;case 18:wt!==null&&(ge?(t=wt,Dv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),La(t)):Dv(wt,n.stateNode));break;case 4:l=wt,u=ge,wt=n.stateNode.containerInfo,ge=!0,An(t,e,n),wt=l,ge=u;break;case 0:case 11:case 14:case 15:Fn(2,n,e),Pt||Fn(4,n,e),An(t,e,n);break;case 1:Pt||(un(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&z0(n,e,l)),An(t,e,n);break;case 21:An(t,e,n);break;case 22:Pt=(l=Pt)||n.memoizedState!==null,An(t,e,n),Pt=l;break;default:An(t,e,n)}}function N0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{La(t)}catch(n){Ct(e,e.return,n)}}}function U0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{La(t)}catch(n){Ct(e,e.return,n)}}function ZM(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new B0),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new B0),e;default:throw Error(c(435,t.tag))}}function fu(t,e){var n=ZM(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var u=eA.bind(null,t,l);l.then(u,u)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l],r=t,h=e,g=h;t:for(;g!==null;){switch(g.tag){case 27:if(ni(g.type)){wt=g.stateNode,ge=!1;break t}break;case 5:wt=g.stateNode,ge=!1;break t;case 3:case 4:wt=g.stateNode.containerInfo,ge=!0;break t}g=g.return}if(wt===null)throw Error(c(160));w0(r,h,u),wt=null,ge=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)_0(e,t),e=e.sibling}var We=null;function _0(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),be(t),l&4&&(Fn(3,t,t.return),Vl(3,t),Fn(5,t,t.return));break;case 1:Se(e,t),be(t),l&512&&(Pt||n===null||un(n,n.return)),l&64&&Mn&&(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 u=We;if(Se(e,t),be(t),l&512&&(Pt||n===null||un(n,n.return)),l&4){var r=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,u=u.ownerDocument||u;e:switch(l){case"title":r=u.getElementsByTagName("title")[0],(!r||r[ul]||r[ie]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(l),u.head.insertBefore(r,u.querySelector("head > title"))),ue(r,l,n),r[ie]=t,It(r),l=r;break t;case"link":var h=_v("link","href",u).get(l+(n.href||""));if(h){for(var g=0;g<h.length;g++)if(r=h[g],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(g,1);break e}}r=u.createElement(l),ue(r,l,n),u.head.appendChild(r);break;case"meta":if(h=_v("meta","content",u).get(l+(n.content||""))){for(g=0;g<h.length;g++)if(r=h[g],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(g,1);break e}}r=u.createElement(l),ue(r,l,n),u.head.appendChild(r);break;default:throw Error(c(468,l))}r[ie]=t,It(r),l=r}t.stateNode=l}else Hv(u,t.type,t.stateNode);else t.stateNode=Uv(u,l,t.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?Hv(u,t.type,t.stateNode):Uv(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&_c(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),be(t),l&512&&(Pt||n===null||un(n,n.return)),n!==null&&l&4&&_c(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),be(t),l&512&&(Pt||n===null||un(n,n.return)),t.flags&32){u=t.stateNode;try{ia(u,"")}catch($){Ct(t,t.return,$)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,_c(t,u,n!==null?n.memoizedProps:u)),l&1024&&(Yc=!0);break;case 6:if(Se(e,t),be(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch($){Ct(t,t.return,$)}}break;case 3:if(Du=null,u=We,We=Au(e.containerInfo),Se(e,t),We=u,be(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{La(e.containerInfo)}catch($){Ct(t,t.return,$)}Yc&&(Yc=!1,H0(t));break;case 4:l=We,We=Au(t.stateNode.containerInfo),Se(e,t),be(t),We=l;break;case 12:Se(e,t),be(t);break;case 31:Se(e,t),be(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,fu(t,l)));break;case 13:Se(e,t),be(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(hu=Ae()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,fu(t,l)));break;case 22:u=t.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,z=Mn,N=Pt;if(Mn=z||u,Pt=N||x,Se(e,t),Pt=N,Mn=z,be(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||x||Mn||Pt||Vi(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){x=n=e;try{if(r=x.stateNode,u)h=r.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{g=x.stateNode;var Y=x.memoizedProps.style,R=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;g.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch($){Ct(x,x.return,$)}}}else if(e.tag===6){if(n===null){x=e;try{x.stateNode.nodeValue=u?"":x.memoizedProps}catch($){Ct(x,x.return,$)}}}else if(e.tag===18){if(n===null){x=e;try{var B=x.stateNode;u?zv(B,!0):zv(x.stateNode,!1)}catch($){Ct(x,x.return,$)}}}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,fu(t,n))));break;case 19:Se(e,t),be(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,fu(t,l)));break;case 30:break;case 21:break;default:Se(e,t),be(t)}}function be(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(j0(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var u=n.stateNode,r=Hc(t);cu(t,r,u);break;case 5:var h=n.stateNode;n.flags&32&&(ia(h,""),n.flags&=-33);var g=Hc(t);cu(t,g,h);break;case 3:case 4:var x=n.stateNode.containerInfo,z=Hc(t);Gc(t,z,x);break;default:throw Error(c(161))}}catch(N){Ct(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function H0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;H0(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Cn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)V0(t,e.alternate,e),e=e.sibling}function Vi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Fn(4,e,e.return),Vi(e);break;case 1:un(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&z0(e,e.return,n),Vi(e);break;case 27:kl(e.stateNode);case 26:case 5:un(e,e.return),Vi(e);break;case 22:e.memoizedState===null&&Vi(e);break;case 30:Vi(e);break;default:Vi(e)}t=t.sibling}}function Dn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,r=e,h=r.flags;switch(r.tag){case 0:case 11:case 15:Dn(u,r,n),Vl(4,r);break;case 1:if(Dn(u,r,n),l=r,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Ct(l,l.return,z)}if(l=r,u=l.updateQueue,u!==null){var g=l.stateNode;try{var x=u.shared.hiddenCallbacks;if(x!==null)for(u.shared.hiddenCallbacks=null,u=0;u<x.length;u++)yy(x[u],g)}catch(z){Ct(l,l.return,z)}}n&&h&64&&D0(r),Ll(r,r.return);break;case 27:O0(r);case 26:case 5:Dn(u,r,n),n&&l===null&&h&4&&R0(r),Ll(r,r.return);break;case 12:Dn(u,r,n);break;case 31:Dn(u,r,n),n&&h&4&&N0(u,r);break;case 13:Dn(u,r,n),n&&h&4&&U0(u,r);break;case 22:r.memoizedState===null&&Dn(u,r,n),Ll(r,r.return);break;case 30:break;default:Dn(u,r,n)}e=e.sibling}}function qc(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&&bl(n))}function kc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&bl(t))}function $e(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)G0(t,e,n,l),e=e.sibling}function G0(t,e,n,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:$e(t,e,n,l),u&2048&&Vl(9,e);break;case 1:$e(t,e,n,l);break;case 3:$e(t,e,n,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&bl(t)));break;case 12:if(u&2048){$e(t,e,n,l),t=e.stateNode;try{var r=e.memoizedProps,h=r.id,g=r.onPostCommit;typeof g=="function"&&g(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(x){Ct(e,e.return,x)}}else $e(t,e,n,l);break;case 31:$e(t,e,n,l);break;case 13:$e(t,e,n,l);break;case 23:break;case 22:r=e.stateNode,h=e.alternate,e.memoizedState!==null?r._visibility&2?$e(t,e,n,l):wl(t,e):r._visibility&2?$e(t,e,n,l):(r._visibility|=2,Ea(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&qc(h,e);break;case 24:$e(t,e,n,l),u&2048&&kc(e.alternate,e);break;default:$e(t,e,n,l)}}function Ea(t,e,n,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,h=e,g=n,x=l,z=h.flags;switch(h.tag){case 0:case 11:case 15:Ea(r,h,g,x,u),Vl(8,h);break;case 23:break;case 22:var N=h.stateNode;h.memoizedState!==null?N._visibility&2?Ea(r,h,g,x,u):wl(r,h):(N._visibility|=2,Ea(r,h,g,x,u)),u&&z&2048&&qc(h.alternate,h);break;case 24:Ea(r,h,g,x,u),u&&z&2048&&kc(h.alternate,h);break;default:Ea(r,h,g,x,u)}e=e.sibling}}function wl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,u=l.flags;switch(l.tag){case 22:wl(n,l),u&2048&&qc(l.alternate,l);break;case 24:wl(n,l),u&2048&&kc(l.alternate,l);break;default:wl(n,l)}e=e.sibling}}var Nl=8192;function Ma(t,e,n){if(t.subtreeFlags&Nl)for(t=t.child;t!==null;)Y0(t,e,n),t=t.sibling}function Y0(t,e,n){switch(t.tag){case 26:Ma(t,e,n),t.flags&Nl&&t.memoizedState!==null&&BA(n,We,t.memoizedState,t.memoizedProps);break;case 5:Ma(t,e,n);break;case 3:case 4:var l=We;We=Au(t.stateNode.containerInfo),Ma(t,e,n),We=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Nl,Nl=16777216,Ma(t,e,n),Nl=l):Ma(t,e,n));break;default:Ma(t,e,n)}}function q0(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 Ul(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];te=l,X0(l,t)}q0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)k0(t),t=t.sibling}function k0(t){switch(t.tag){case 0:case 11:case 15:Ul(t),t.flags&2048&&Fn(9,t,t.return);break;case 3:Ul(t);break;case 12:Ul(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,du(t)):Ul(t);break;default:Ul(t)}}function du(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];te=l,X0(l,t)}q0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Fn(8,e,e.return),du(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,du(e));break;default:du(e)}t=t.sibling}}function X0(t,e){for(;te!==null;){var n=te;switch(n.tag){case 0:case 11:case 15:Fn(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:bl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,te=l;else t:for(n=t;te!==null;){l=te;var u=l.sibling,r=l.return;if(L0(l),l===n){te=null;break t}if(u!==null){u.return=r,te=u;break t}te=r}}}var QM={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}},PM=typeof WeakMap=="function"?WeakMap:Map,Et=0,Ot=null,mt=null,yt=0,At=0,Be=null,Jn=!1,Aa=!1,Xc=!1,zn=0,Yt=0,Wn=0,Li=0,Kc=0,Ve=0,Ca=0,_l=null,Te=null,Zc=!1,hu=0,K0=0,mu=1/0,pu=null,$n=null,Wt=0,In=null,Da=null,Rn=0,Qc=0,Pc=null,Z0=null,Hl=0,Fc=null;function Le(){return(Et&2)!==0&&yt!==0?yt&-yt:U.T!==null?ef():op()}function Q0(){if(Ve===0)if((yt&536870912)===0||gt){var t=Es;Es<<=1,(Es&3932160)===0&&(Es=262144),Ve=t}else Ve=536870912;return t=je.current,t!==null&&(t.flags|=32),Ve}function xe(t,e,n){(t===Ot&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(za(t,0),ti(t,yt,Ve,!1)),sl(t,n),((Et&2)===0||t!==Ot)&&(t===Ot&&((Et&2)===0&&(Li|=n),Yt===4&&ti(t,yt,Ve,!1)),on(t))}function P0(t,e,n){if((Et&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ll(t,e),u=l?WM(t,e):Wc(t,e,!0),r=l;do{if(u===0){Aa&&!l&&ti(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!FM(n)){u=Wc(t,e,!1),r=!1;continue}if(u===2){if(r=e,t.errorRecoveryDisabledLanes&r)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var g=t;u=_l;var x=g.current.memoizedState.isDehydrated;if(x&&(za(g,h).flags|=256),h=Wc(g,h,!1),h!==2){if(Xc&&!x){g.errorRecoveryDisabledLanes|=r,Li|=r,u=4;break t}r=Te,Te=u,r!==null&&(Te===null?Te=r:Te.push.apply(Te,r))}u=h}if(r=!1,u!==2)continue}}if(u===1){za(t,0),ti(t,e,0,!0);break}t:{switch(l=t,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:ti(l,e,Ve,!Jn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(u=hu+300-Ae(),10<u)){if(ti(l,e,Ve,!Jn),As(l,0,!0)!==0)break t;Rn=e,l.timeoutHandle=Av(F0.bind(null,l,n,Te,pu,Zc,e,Ve,Li,Ca,Jn,r,"Throttled",-0,0),u);break t}F0(l,n,Te,pu,Zc,e,Ve,Li,Ca,Jn,r,null,-0,0)}}break}while(!0);on(t)}function F0(t,e,n,l,u,r,h,g,x,z,N,Y,R,B){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},Y0(e,r,Y);var $=(r&62914560)===r?hu-Ae():(r&4194048)===r?K0-Ae():0;if($=VA(Y,$),$!==null){Rn=r,t.cancelPendingCommit=$(iv.bind(null,t,e,r,n,l,u,h,g,x,N,Y,null,R,B)),ti(t,r,h,!z);return}}iv(t,e,r,n,l,u,h,g,x)}function FM(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 u=n[l],r=u.getSnapshot;u=u.value;try{if(!ze(r(),u))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 ti(t,e,n,l){e&=~Kc,e&=~Li,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var r=31-De(u),h=1<<r;l[r]=-1,u&=~h}n!==0&&lp(t,n,e)}function yu(){return(Et&6)===0?(Gl(0),!1):!0}function Jc(){if(mt!==null){if(At===0)var t=mt.return;else t=mt,gn=Ai=null,dc(t),ga=null,xl=0,t=mt;for(;t!==null;)C0(t.alternate,t),t=t.return;mt=null}}function za(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,pA(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Rn=0,Jc(),Ot=t,mt=n=yn(t.current,null),yt=e,At=0,Be=null,Jn=!1,Aa=ll(t,e),Xc=!1,Ca=Ve=Kc=Li=Wn=Yt=0,Te=_l=null,Zc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-De(l),r=1<<u;e|=t[u],l&=~r}return zn=e,Us(),n}function J0(t,e){rt=null,U.H=jl,e===va||e===Ks?(e=dy(),At=3):e===tc?(e=dy(),At=4):At=e===zc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Be=e,mt===null&&(Yt=1,lu(t,Ye(e,t.current)))}function W0(){var t=je.current;return t===null?!0:(yt&4194048)===yt?Ke===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Ke:!1}function $0(){var t=U.H;return U.H=jl,t===null?jl:t}function I0(){var t=U.A;return U.A=QM,t}function vu(){Yt=4,Jn||(yt&4194048)!==yt&&je.current!==null||(Aa=!0),(Wn&134217727)===0&&(Li&134217727)===0||Ot===null||ti(Ot,yt,Ve,!1)}function Wc(t,e,n){var l=Et;Et|=2;var u=$0(),r=I0();(Ot!==t||yt!==e)&&(pu=null,za(t,e)),e=!1;var h=Yt;t:do try{if(At!==0&&mt!==null){var g=mt,x=Be;switch(At){case 8:Jc(),h=6;break t;case 3:case 2:case 9:case 6:je.current===null&&(e=!0);var z=At;if(At=0,Be=null,Ra(t,g,x,z),n&&Aa){h=0;break t}break;default:z=At,At=0,Be=null,Ra(t,g,x,z)}}JM(),h=Yt;break}catch(N){J0(t,N)}while(!0);return e&&t.shellSuspendCounter++,gn=Ai=null,Et=l,U.H=u,U.A=r,mt===null&&(Ot=null,yt=0,Us()),h}function JM(){for(;mt!==null;)tv(mt)}function WM(t,e){var n=Et;Et|=2;var l=$0(),u=I0();Ot!==t||yt!==e?(pu=null,mu=Ae()+500,za(t,e)):Aa=ll(t,e);t:do try{if(At!==0&&mt!==null){e=mt;var r=Be;e:switch(At){case 1:At=0,Be=null,Ra(t,e,r,1);break;case 2:case 9:if(cy(r)){At=0,Be=null,ev(e);break}e=function(){At!==2&&At!==9||Ot!==t||(At=7),on(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:cy(r)?(At=0,Be=null,ev(e)):(At=0,Be=null,Ra(t,e,r,7));break;case 5:var h=null;switch(mt.tag){case 26:h=mt.memoizedState;case 5:case 27:var g=mt;if(h?Gv(h):g.stateNode.complete){At=0,Be=null;var x=g.sibling;if(x!==null)mt=x;else{var z=g.return;z!==null?(mt=z,gu(z)):mt=null}break e}}At=0,Be=null,Ra(t,e,r,5);break;case 6:At=0,Be=null,Ra(t,e,r,6);break;case 8:Jc(),Yt=6;break t;default:throw Error(c(462))}}$M();break}catch(N){J0(t,N)}while(!0);return gn=Ai=null,U.H=l,U.A=u,Et=n,mt!==null?0:(Ot=null,yt=0,Us(),Yt)}function $M(){for(;mt!==null&&!TE();)tv(mt)}function tv(t){var e=M0(t.alternate,t,zn);t.memoizedProps=t.pendingProps,e===null?gu(t):mt=e}function ev(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=g0(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=g0(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:dc(e);default:C0(n,e),e=mt=Ip(e,zn),e=M0(n,e,zn)}t.memoizedProps=t.pendingProps,e===null?gu(t):mt=e}function Ra(t,e,n,l){gn=Ai=null,dc(e),ga=null,xl=0;var u=e.return;try{if(GM(t,u,e,n,yt)){Yt=1,lu(t,Ye(n,t.current)),mt=null;return}}catch(r){if(u!==null)throw mt=u,r;Yt=1,lu(t,Ye(n,t.current)),mt=null;return}e.flags&32768?(gt||l===1?t=!0:Aa||(yt&536870912)!==0?t=!1:(Jn=t=!0,(l===2||l===9||l===3||l===6)&&(l=je.current,l!==null&&l.tag===13&&(l.flags|=16384))),nv(e,t)):gu(e)}function gu(t){var e=t;do{if((e.flags&32768)!==0){nv(e,Jn);return}t=e.return;var n=kM(e.alternate,e,zn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Yt===0&&(Yt=5)}function nv(t,e){do{var n=XM(t.alternate,t);if(n!==null){n.flags&=32767,mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=n}while(t!==null);Yt=6,mt=null}function iv(t,e,n,l,u,r,h,g,x){t.cancelPendingCommit=null;do Su();while(Wt!==0);if((Et&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(r=e.lanes|e.childLanes,r|=Hr,OE(t,n,r,h,g,x),t===Ot&&(mt=Ot=null,yt=0),Da=e,In=t,Rn=n,Qc=r,Pc=u,Z0=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,nA(Ts,function(){return ov(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,u=X.p,X.p=2,h=Et,Et|=4;try{KM(t,e,n)}finally{Et=h,X.p=u,U.T=l}}Wt=1,av(),lv(),sv()}}function av(){if(Wt===1){Wt=0;var t=In,e=Da,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=X.p;X.p=2;var u=Et;Et|=4;try{_0(e,t);var r=cf,h=Xp(t.containerInfo),g=r.focusedElem,x=r.selectionRange;if(h!==g&&g&&g.ownerDocument&&kp(g.ownerDocument.documentElement,g)){if(x!==null&&Lr(g)){var z=x.start,N=x.end;if(N===void 0&&(N=z),"selectionStart"in g)g.selectionStart=z,g.selectionEnd=Math.min(N,g.value.length);else{var Y=g.ownerDocument||document,R=Y&&Y.defaultView||window;if(R.getSelection){var B=R.getSelection(),$=g.textContent.length,at=Math.min(x.start,$),Rt=x.end===void 0?at:Math.min(x.end,$);!B.extend&&at>Rt&&(h=Rt,Rt=at,at=h);var A=qp(g,at),E=qp(g,Rt);if(A&&E&&(B.rangeCount!==1||B.anchorNode!==A.node||B.anchorOffset!==A.offset||B.focusNode!==E.node||B.focusOffset!==E.offset)){var D=Y.createRange();D.setStart(A.node,A.offset),B.removeAllRanges(),at>Rt?(B.addRange(D),B.extend(E.node,E.offset)):(D.setEnd(E.node,E.offset),B.addRange(D))}}}}for(Y=[],B=g;B=B.parentNode;)B.nodeType===1&&Y.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Y.length;g++){var _=Y[g];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}Ou=!!rf,cf=rf=null}finally{Et=u,X.p=l,U.T=n}}t.current=e,Wt=2}}function lv(){if(Wt===2){Wt=0;var t=In,e=Da,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=X.p;X.p=2;var u=Et;Et|=4;try{V0(t,e.alternate,e)}finally{Et=u,X.p=l,U.T=n}}Wt=3}}function sv(){if(Wt===4||Wt===3){Wt=0,xE();var t=In,e=Da,n=Rn,l=Z0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,Da=In=null,uv(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&($n=null),pr(n),e=e.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(al,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=U.T,u=X.p,X.p=2,U.T=null;try{for(var r=t.onRecoverableError,h=0;h<l.length;h++){var g=l[h];r(g.value,{componentStack:g.stack})}}finally{U.T=e,X.p=u}}(Rn&3)!==0&&Su(),on(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Fc?Hl++:(Hl=0,Fc=t):Hl=0,Gl(0)}}function uv(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,bl(e)))}function Su(){return av(),lv(),sv(),ov()}function ov(){if(Wt!==5)return!1;var t=In,e=Qc;Qc=0;var n=pr(Rn),l=U.T,u=X.p;try{X.p=32>n?32:n,U.T=null,n=Pc,Pc=null;var r=In,h=Rn;if(Wt=0,Da=In=null,Rn=0,(Et&6)!==0)throw Error(c(331));var g=Et;if(Et|=4,k0(r.current),G0(r,r.current,h,n),Et=g,Gl(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(al,r)}catch{}return!0}finally{X.p=u,U.T=l,uv(t,e)}}function rv(t,e,n){e=Ye(n,e),e=Dc(t.stateNode,e,2),t=Zn(t,e,2),t!==null&&(sl(t,2),on(t))}function Ct(t,e,n){if(t.tag===3)rv(t,t,n);else for(;e!==null;){if(e.tag===3){rv(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&($n===null||!$n.has(l))){t=Ye(n,t),n=c0(2),l=Zn(e,n,2),l!==null&&(f0(n,l,e,t),sl(l,2),on(l));break}}e=e.return}}function $c(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new PM;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(n)||(Xc=!0,u.add(n),t=IM.bind(null,t,e,n),e.then(t,t))}function IM(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(yt&n)===n&&(Yt===4||Yt===3&&(yt&62914560)===yt&&300>Ae()-hu?(Et&2)===0&&za(t,0):Kc|=n,Ca===yt&&(Ca=0)),on(t)}function cv(t,e){e===0&&(e=ap()),t=xi(t,e),t!==null&&(sl(t,e),on(t))}function tA(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),cv(t,n)}function eA(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),cv(t,n)}function nA(t,e){return yi(t,e)}var bu=null,ja=null,Ic=!1,Tu=!1,tf=!1,ei=0;function on(t){t!==ja&&t.next===null&&(ja===null?bu=ja=t:ja=ja.next=t),Tu=!0,Ic||(Ic=!0,aA())}function Gl(t,e){if(!tf&&Tu){tf=!0;do for(var n=!1,l=bu;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var h=l.suspendedLanes,g=l.pingedLanes;r=(1<<31-De(42|t)+1)-1,r&=u&~(h&~g),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,mv(l,r))}else r=yt,r=As(l,l===Ot?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||ll(l,r)||(n=!0,mv(l,r));l=l.next}while(n);tf=!1}}function iA(){fv()}function fv(){Tu=Ic=!1;var t=0;ei!==0&&mA()&&(t=ei);for(var e=Ae(),n=null,l=bu;l!==null;){var u=l.next,r=dv(l,e);r===0?(l.next=null,n===null?bu=u:n.next=u,u===null&&(ja=n)):(n=l,(t!==0||(r&3)!==0)&&(Tu=!0)),l=u}Wt!==0&&Wt!==5||Gl(t),ei!==0&&(ei=0)}function dv(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var h=31-De(r),g=1<<h,x=u[h];x===-1?((g&n)===0||(g&l)!==0)&&(u[h]=jE(g,e)):x<=e&&(t.expiredLanes|=g),r&=~g}if(e=Ot,n=yt,n=As(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&il(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ll(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&il(l),pr(n)){case 2:case 8:n=np;break;case 32:n=Ts;break;case 268435456:n=ip;break;default:n=Ts}return l=hv.bind(null,t),n=yi(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&il(l),t.callbackPriority=2,t.callbackNode=null,2}function hv(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Su()&&t.callbackNode!==n)return null;var l=yt;return l=As(t,t===Ot?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(P0(t,l,e),dv(t,Ae()),t.callbackNode!=null&&t.callbackNode===n?hv.bind(null,t):null)}function mv(t,e){if(Su())return null;P0(t,e,!0)}function aA(){yA(function(){(Et&6)!==0?yi(ep,iA):fv()})}function ef(){if(ei===0){var t=pa;t===0&&(t=xs,xs<<=1,(xs&261888)===0&&(xs=256)),ei=t}return ei}function pv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Rs(""+t)}function yv(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 lA(t,e,n,l,u){if(e==="submit"&&n&&n.stateNode===u){var r=pv((u[ye]||null).action),h=l.submitter;h&&(e=(e=h[ye]||null)?pv(e.formAction):h.getAttribute("formAction"),e!==null&&(r=e,h=null));var g=new Vs("action","action",null,l,u);t.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ei!==0){var x=h?yv(u,h):new FormData(u);Tc(n,{pending:!0,data:x,method:u.method,action:r},null,x)}}else typeof r=="function"&&(g.preventDefault(),x=h?yv(u,h):new FormData(u),Tc(n,{pending:!0,data:x,method:u.method,action:r},r,x))},currentTarget:u}]})}}for(var nf=0;nf<_r.length;nf++){var af=_r[nf],sA=af.toLowerCase(),uA=af[0].toUpperCase()+af.slice(1);Je(sA,"on"+uA)}Je(Qp,"onAnimationEnd"),Je(Pp,"onAnimationIteration"),Je(Fp,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(EM,"onTransitionRun"),Je(MM,"onTransitionStart"),Je(AM,"onTransitionCancel"),Je(Jp,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gi("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(" "),oA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yl));function vv(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],u=l.event;l=l.listeners;t:{var r=void 0;if(e)for(var h=l.length-1;0<=h;h--){var g=l[h],x=g.instance,z=g.currentTarget;if(g=g.listener,x!==r&&u.isPropagationStopped())break t;r=g,u.currentTarget=z;try{r(u)}catch(N){Ns(N)}u.currentTarget=null,r=x}else for(h=0;h<l.length;h++){if(g=l[h],x=g.instance,z=g.currentTarget,g=g.listener,x!==r&&u.isPropagationStopped())break t;r=g,u.currentTarget=z;try{r(u)}catch(N){Ns(N)}u.currentTarget=null,r=x}}}}function pt(t,e){var n=e[yr];n===void 0&&(n=e[yr]=new Set);var l=t+"__bubble";n.has(l)||(gv(e,t,2,!1),n.add(l))}function lf(t,e,n){var l=0;e&&(l|=4),gv(n,t,l,e)}var xu="_reactListening"+Math.random().toString(36).slice(2);function sf(t){if(!t[xu]){t[xu]=!0,fp.forEach(function(n){n!=="selectionchange"&&(oA.has(n)||lf(n,!1,t),lf(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xu]||(e[xu]=!0,lf("selectionchange",!1,e))}}function gv(t,e,n,l){switch(Qv(e)){case 2:var u=NA;break;case 8:u=UA;break;default:u=Tf}n=u.bind(null,e,n,t),u=void 0,!Ar||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function uf(t,e,n,l,u){var r=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 g=l.stateNode.containerInfo;if(g===u)break;if(h===4)for(h=l.return;h!==null;){var x=h.tag;if((x===3||x===4)&&h.stateNode.containerInfo===u)return;h=h.return}for(;g!==null;){if(h=$i(g),h===null)return;if(x=h.tag,x===5||x===6||x===26||x===27){l=r=h;continue t}g=g.parentNode}}l=l.return}Ep(function(){var z=r,N=Er(n),Y=[];t:{var R=Wp.get(t);if(R!==void 0){var B=Vs,$=t;switch(t){case"keypress":if(Os(n)===0)break t;case"keydown":case"keyup":B=eM;break;case"focusin":$="focus",B=Rr;break;case"focusout":$="blur",B=Rr;break;case"beforeblur":case"afterblur":B=Rr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Cp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=kE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=aM;break;case Qp:case Pp:case Fp:B=ZE;break;case Jp:B=sM;break;case"scroll":case"scrollend":B=YE;break;case"wheel":B=oM;break;case"copy":case"cut":case"paste":B=PE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=zp;break;case"toggle":case"beforetoggle":B=cM}var at=(e&4)!==0,Rt=!at&&(t==="scroll"||t==="scrollend"),A=at?R!==null?R+"Capture":null:R;at=[];for(var E=z,D;E!==null;){var _=E;if(D=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||D===null||A===null||(_=rl(E,A),_!=null&&at.push(ql(E,_,D))),Rt)break;E=E.return}0<at.length&&(R=new B(R,$,null,n,N),Y.push({event:R,listeners:at}))}}if((e&7)===0){t:{if(R=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",R&&n!==xr&&($=n.relatedTarget||n.fromElement)&&($i($)||$[Wi]))break t;if((B||R)&&(R=N.window===N?N:(R=N.ownerDocument)?R.defaultView||R.parentWindow:window,B?($=n.relatedTarget||n.toElement,B=z,$=$?$i($):null,$!==null&&(Rt=d($),at=$.tag,$!==Rt||at!==5&&at!==27&&at!==6)&&($=null)):(B=null,$=z),B!==$)){if(at=Cp,_="onMouseLeave",A="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(at=zp,_="onPointerLeave",A="onPointerEnter",E="pointer"),Rt=B==null?R:ol(B),D=$==null?R:ol($),R=new at(_,E+"leave",B,n,N),R.target=Rt,R.relatedTarget=D,_=null,$i(N)===z&&(at=new at(A,E+"enter",$,n,N),at.target=D,at.relatedTarget=Rt,_=at),Rt=_,B&&$)e:{for(at=rA,A=B,E=$,D=0,_=A;_;_=at(_))D++;_=0;for(var nt=E;nt;nt=at(nt))_++;for(;0<D-_;)A=at(A),D--;for(;0<_-D;)E=at(E),_--;for(;D--;){if(A===E||E!==null&&A===E.alternate){at=A;break e}A=at(A),E=at(E)}at=null}else at=null;B!==null&&Sv(Y,R,B,at,!1),$!==null&&Rt!==null&&Sv(Y,Rt,$,at,!0)}}t:{if(R=z?ol(z):window,B=R.nodeName&&R.nodeName.toLowerCase(),B==="select"||B==="input"&&R.type==="file")var Tt=Np;else if(Lp(R))if(Up)Tt=bM;else{Tt=gM;var et=vM}else B=R.nodeName,!B||B.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?z&&Tr(z.elementType)&&(Tt=Np):Tt=SM;if(Tt&&(Tt=Tt(t,z))){wp(Y,Tt,n,N);break t}et&&et(t,R,z),t==="focusout"&&z&&R.type==="number"&&z.memoizedProps.value!=null&&br(R,"number",R.value)}switch(et=z?ol(z):window,t){case"focusin":(Lp(et)||et.contentEditable==="true")&&(ua=et,wr=z,vl=null);break;case"focusout":vl=wr=ua=null;break;case"mousedown":Nr=!0;break;case"contextmenu":case"mouseup":case"dragend":Nr=!1,Kp(Y,n,N);break;case"selectionchange":if(xM)break;case"keydown":case"keyup":Kp(Y,n,N)}var ct;if(Or)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else sa?Bp(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(Rp&&n.locale!=="ko"&&(sa||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&sa&&(ct=Mp()):(Hn=N,Cr="value"in Hn?Hn.value:Hn.textContent,sa=!0)),et=Eu(z,vt),0<et.length&&(vt=new Dp(vt,t,null,n,N),Y.push({event:vt,listeners:et}),ct?vt.data=ct:(ct=Vp(n),ct!==null&&(vt.data=ct)))),(ct=dM?hM(t,n):mM(t,n))&&(vt=Eu(z,"onBeforeInput"),0<vt.length&&(et=new Dp("onBeforeInput","beforeinput",null,n,N),Y.push({event:et,listeners:vt}),et.data=ct)),lA(Y,t,z,n,N)}vv(Y,e)})}function ql(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Eu(t,e){for(var n=e+"Capture",l=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=rl(t,n),u!=null&&l.unshift(ql(t,u,r)),u=rl(t,e),u!=null&&l.push(ql(t,u,r))),t.tag===3)return l;t=t.return}return[]}function rA(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Sv(t,e,n,l,u){for(var r=e._reactName,h=[];n!==null&&n!==l;){var g=n,x=g.alternate,z=g.stateNode;if(g=g.tag,x!==null&&x===l)break;g!==5&&g!==26&&g!==27||z===null||(x=z,u?(z=rl(n,r),z!=null&&h.unshift(ql(n,z,x))):u||(z=rl(n,r),z!=null&&h.push(ql(n,z,x)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var cA=/\r\n?/g,fA=/\u0000|\uFFFD/g;function bv(t){return(typeof t=="string"?t:""+t).replace(cA,`
|
|
9
|
+
`).replace(fA,"")}function Tv(t,e){return e=bv(e),bv(t)===e}function zt(t,e,n,l,u,r){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ia(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ia(t,""+l);break;case"className":Ds(t,"class",l);break;case"tabIndex":Ds(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ds(t,n,l);break;case"style":Tp(t,l,r);break;case"data":if(e!=="object"){Ds(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=Rs(""+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 r=="function"&&(n==="formAction"?(e!=="input"&&zt(t,e,"name",u.name,u,null),zt(t,e,"formEncType",u.formEncType,u,null),zt(t,e,"formMethod",u.formMethod,u,null),zt(t,e,"formTarget",u.formTarget,u,null)):(zt(t,e,"encType",u.encType,u,null),zt(t,e,"method",u.method,u,null),zt(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Rs(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=mn);break;case"onScroll":l!=null&&pt("scroll",t);break;case"onScrollEnd":l!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(c(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=Rs(""+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":pt("beforetoggle",t),pt("toggle",t),Cs(t,"popover",l);break;case"xlinkActuate":hn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":hn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":hn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":hn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":hn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":hn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":hn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":hn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":hn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Cs(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=HE.get(n)||n,Cs(t,n,l))}}function of(t,e,n,l,u,r){switch(n){case"style":Tp(t,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ia(t,l):(typeof l=="number"||typeof l=="bigint")&&ia(t,""+l);break;case"onScroll":l!=null&&pt("scroll",t);break;case"onScrollEnd":l!=null&&pt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dp.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),r=t[ye]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof l=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,u);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Cs(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":pt("error",t),pt("load",t);var l=!1,u=!1,r;for(r in n)if(n.hasOwnProperty(r)){var h=n[r];if(h!=null)switch(r){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:zt(t,e,r,h,n,null)}}u&&zt(t,e,"srcSet",n.srcSet,n,null),l&&zt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var g=r=h=u=null,x=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var N=n[l];if(N!=null)switch(l){case"name":u=N;break;case"type":h=N;break;case"checked":x=N;break;case"defaultChecked":z=N;break;case"value":r=N;break;case"defaultValue":g=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,e));break;default:zt(t,e,l,N,n,null)}}vp(t,r,g,x,z,h,u,!1);return;case"select":pt("invalid",t),l=h=r=null;for(u in n)if(n.hasOwnProperty(u)&&(g=n[u],g!=null))switch(u){case"value":r=g;break;case"defaultValue":h=g;break;case"multiple":l=g;default:zt(t,e,u,g,n,null)}e=r,n=h,t.multiple=!!l,e!=null?na(t,!!l,e,!1):n!=null&&na(t,!!l,n,!0);return;case"textarea":pt("invalid",t),r=u=l=null;for(h in n)if(n.hasOwnProperty(h)&&(g=n[h],g!=null))switch(h){case"value":l=g;break;case"defaultValue":u=g;break;case"children":r=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:zt(t,e,h,g,n,null)}Sp(t,l,u,r);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(l=n[x],l!=null))switch(x){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:zt(t,e,x,l,n,null)}return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(l=0;l<Yl.length;l++)pt(Yl[l],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:zt(t,e,z,l,n,null)}return;default:if(Tr(e)){for(N in n)n.hasOwnProperty(N)&&(l=n[N],l!==void 0&&of(t,e,N,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&zt(t,e,g,l,n,null))}function dA(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 u=null,r=null,h=null,g=null,x=null,z=null,N=null;for(B in n){var Y=n[B];if(n.hasOwnProperty(B)&&Y!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":x=Y;default:l.hasOwnProperty(B)||zt(t,e,B,null,l,Y)}}for(var R in l){var B=l[R];if(Y=n[R],l.hasOwnProperty(R)&&(B!=null||Y!=null))switch(R){case"type":r=B;break;case"name":u=B;break;case"checked":z=B;break;case"defaultChecked":N=B;break;case"value":h=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,e));break;default:B!==Y&&zt(t,e,R,B,l,Y)}}Sr(t,h,g,x,z,N,r,u);return;case"select":B=h=g=R=null;for(r in n)if(x=n[r],n.hasOwnProperty(r)&&x!=null)switch(r){case"value":break;case"multiple":B=x;default:l.hasOwnProperty(r)||zt(t,e,r,null,l,x)}for(u in l)if(r=l[u],x=n[u],l.hasOwnProperty(u)&&(r!=null||x!=null))switch(u){case"value":R=r;break;case"defaultValue":g=r;break;case"multiple":h=r;default:r!==x&&zt(t,e,u,r,l,x)}e=g,n=h,l=B,R!=null?na(t,!!n,R,!1):!!l!=!!n&&(e!=null?na(t,!!n,e,!0):na(t,!!n,n?[]:"",!1));return;case"textarea":B=R=null;for(g in n)if(u=n[g],n.hasOwnProperty(g)&&u!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:zt(t,e,g,null,l,u)}for(h in l)if(u=l[h],r=n[h],l.hasOwnProperty(h)&&(u!=null||r!=null))switch(h){case"value":R=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&zt(t,e,h,u,l,r)}gp(t,R,B);return;case"option":for(var $ in n)if(R=n[$],n.hasOwnProperty($)&&R!=null&&!l.hasOwnProperty($))switch($){case"selected":t.selected=!1;break;default:zt(t,e,$,null,l,R)}for(x in l)if(R=l[x],B=n[x],l.hasOwnProperty(x)&&R!==B&&(R!=null||B!=null))switch(x){case"selected":t.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:zt(t,e,x,R,l,B)}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 at in n)R=n[at],n.hasOwnProperty(at)&&R!=null&&!l.hasOwnProperty(at)&&zt(t,e,at,null,l,R);for(z in l)if(R=l[z],B=n[z],l.hasOwnProperty(z)&&R!==B&&(R!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:zt(t,e,z,R,l,B)}return;default:if(Tr(e)){for(var Rt in n)R=n[Rt],n.hasOwnProperty(Rt)&&R!==void 0&&!l.hasOwnProperty(Rt)&&of(t,e,Rt,void 0,l,R);for(N in l)R=l[N],B=n[N],!l.hasOwnProperty(N)||R===B||R===void 0&&B===void 0||of(t,e,N,R,l,B);return}}for(var A in n)R=n[A],n.hasOwnProperty(A)&&R!=null&&!l.hasOwnProperty(A)&&zt(t,e,A,null,l,R);for(Y in l)R=l[Y],B=n[Y],!l.hasOwnProperty(Y)||R===B||R==null&&B==null||zt(t,e,Y,R,l,B)}function xv(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hA(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var u=n[l],r=u.transferSize,h=u.initiatorType,g=u.duration;if(r&&g&&xv(h)){for(h=0,g=u.responseEnd,l+=1;l<n.length;l++){var x=n[l],z=x.startTime;if(z>g)break;var N=x.transferSize,Y=x.initiatorType;N&&xv(Y)&&(x=x.responseEnd,h+=N*(x<g?1:(g-z)/(x-z)))}if(--l,e+=8*(r+h)/(u.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 rf=null,cf=null;function Mu(t){return t.nodeType===9?t:t.ownerDocument}function Ev(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 Mv(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 ff(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 df=null;function mA(){var t=window.event;return t&&t.type==="popstate"?t===df?!1:(df=t,!0):(df=null,!1)}var Av=typeof setTimeout=="function"?setTimeout:void 0,pA=typeof clearTimeout=="function"?clearTimeout:void 0,Cv=typeof Promise=="function"?Promise:void 0,yA=typeof queueMicrotask=="function"?queueMicrotask:typeof Cv<"u"?function(t){return Cv.resolve(null).then(t).catch(vA)}:Av;function vA(t){setTimeout(function(){throw t})}function ni(t){return t==="head"}function Dv(t,e){var n=e,l=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(u),La(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")kl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,kl(n);for(var r=n.firstChild;r;){var h=r.nextSibling,g=r.nodeName;r[ul]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=h}}else n==="body"&&kl(t.ownerDocument.body);n=u}while(n);La(e)}function zv(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 hf(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":hf(n),vr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function gA(t,e,n,l){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[ul])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function SA(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ze(t.nextSibling),t===null))return null;return t}function Rv(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function mf(t){return t.data==="$?"||t.data==="$~"}function pf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function bA(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 Ze(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 yf=null;function jv(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ze(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Ov(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 Bv(t,e,n){switch(e=Mu(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function kl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);vr(t)}var Qe=new Map,Vv=new Set;function Au(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var jn=X.d;X.d={f:TA,r:xA,D:EA,C:MA,L:AA,m:CA,X:zA,S:DA,M:RA};function TA(){var t=jn.f(),e=yu();return t||e}function xA(t){var e=Ii(t);e!==null&&e.tag===5&&e.type==="form"?Jy(e):jn.r(t)}var Oa=typeof document>"u"?null:document;function Lv(t,e,n){var l=Oa;if(l&&typeof e=="string"&&e){var u=He(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Vv.has(u)||(Vv.add(u),t={rel:t,crossOrigin:n,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),ue(e,"link",t),It(e),l.head.appendChild(e)))}}function EA(t){jn.D(t),Lv("dns-prefetch",t,null)}function MA(t,e){jn.C(t,e),Lv("preconnect",t,e)}function AA(t,e,n){jn.L(t,e,n);var l=Oa;if(l&&t&&e){var u='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+He(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+He(n.imageSizes)+'"]')):u+='[href="'+He(t)+'"]';var r=u;switch(e){case"style":r=Ba(t);break;case"script":r=Va(t)}Qe.has(r)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Qe.set(r,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(Xl(r))||e==="script"&&l.querySelector(Kl(r))||(e=l.createElement("link"),ue(e,"link",t),It(e),l.head.appendChild(e)))}}function CA(t,e){jn.m(t,e);var n=Oa;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+He(l)+'"][href="'+He(t)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Va(t)}if(!Qe.has(r)&&(t=b({rel:"modulepreload",href:t},e),Qe.set(r,t),n.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Kl(r)))return}l=n.createElement("link"),ue(l,"link",t),It(l),n.head.appendChild(l)}}}function DA(t,e,n){jn.S(t,e,n);var l=Oa;if(l&&t){var u=ta(l).hoistableStyles,r=Ba(t);e=e||"default";var h=u.get(r);if(!h){var g={loading:0,preload:null};if(h=l.querySelector(Xl(r)))g.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Qe.get(r))&&vf(t,n);var x=h=l.createElement("link");It(x),ue(x,"link",t),x._p=new Promise(function(z,N){x.onload=z,x.onerror=N}),x.addEventListener("load",function(){g.loading|=1}),x.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Cu(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:g},u.set(r,h)}}}function zA(t,e){jn.X(t,e);var n=Oa;if(n&&t){var l=ta(n).hoistableScripts,u=Va(t),r=l.get(u);r||(r=n.querySelector(Kl(u)),r||(t=b({src:t,async:!0},e),(e=Qe.get(u))&&gf(t,e),r=n.createElement("script"),It(r),ue(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function RA(t,e){jn.M(t,e);var n=Oa;if(n&&t){var l=ta(n).hoistableScripts,u=Va(t),r=l.get(u);r||(r=n.querySelector(Kl(u)),r||(t=b({src:t,async:!0,type:"module"},e),(e=Qe.get(u))&&gf(t,e),r=n.createElement("script"),It(r),ue(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function wv(t,e,n,l){var u=(u=ht.current)?Au(u):null;if(!u)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ba(n.href),n=ta(u).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=Ba(n.href);var r=ta(u).hoistableStyles,h=r.get(t);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,h),(r=u.querySelector(Xl(t)))&&!r._p&&(h.instance=r,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),r||jA(u,t,n,h.state))),e&&l===null)throw Error(c(528,""));return h}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Va(n),n=ta(u).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(c(444,t))}}function Ba(t){return'href="'+He(t)+'"'}function Xl(t){return'link[rel="stylesheet"]['+t+"]"}function Nv(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function jA(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),It(e),t.head.appendChild(e))}function Va(t){return'[src="'+He(t)+'"]'}function Kl(t){return"script[async]"+t}function Uv(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+He(n.href)+'"]');if(l)return e.instance=l,It(l),l;var u=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),It(l),ue(l,"style",u),Cu(l,n.precedence,t),e.instance=l;case"stylesheet":u=Ba(n.href);var r=t.querySelector(Xl(u));if(r)return e.state.loading|=4,e.instance=r,It(r),r;l=Nv(n),(u=Qe.get(u))&&vf(l,u),r=(t.ownerDocument||t).createElement("link"),It(r);var h=r;return h._p=new Promise(function(g,x){h.onload=g,h.onerror=x}),ue(r,"link",l),e.state.loading|=4,Cu(r,n.precedence,t),e.instance=r;case"script":return r=Va(n.src),(u=t.querySelector(Kl(r)))?(e.instance=u,It(u),u):(l=n,(u=Qe.get(r))&&(l=b({},n),gf(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),It(u),ue(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Cu(l,n.precedence,t));return e.instance}function Cu(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,r=u,h=0;h<l.length;h++){var g=l[h];if(g.dataset.precedence===e)r=g;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function vf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function gf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Du=null;function _v(t,e,n){if(Du===null){var l=new Map,u=Du=new Map;u.set(n,l)}else u=Du,l=u.get(n),l||(l=new Map,u.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var r=n[u];if(!(r[ul]||r[ie]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var h=r.getAttribute(e)||"";h=t+h;var g=l.get(h);g?g.push(r):l.set(h,[r])}}return l}function Hv(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function OA(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 Gv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function BA(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 u=Ba(l.href),r=e.querySelector(Xl(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=zu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,It(r);return}r=e.ownerDocument||e,l=Nv(l),(u=Qe.get(u))&&vf(l,u),r=r.createElement("link"),It(r);var h=r;h._p=new Promise(function(g,x){h.onload=g,h.onerror=x}),ue(r,"link",l),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=zu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Sf=0;function VA(t,e){return t.stylesheets&&t.count===0&&ju(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&ju(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Sf===0&&(Sf=62500*hA());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ju(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Sf?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function zu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ju(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ru=null;function ju(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ru=new Map,e.forEach(LA,t),Ru=null,zu.call(t))}function LA(t,e){if(!(e.state.loading&4)){var n=Ru.get(t);if(n)var l=n.get(null);else{n=new Map,Ru.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var h=u[r];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}u=e.instance,h=u.getAttribute("data-precedence"),r=n.get(h)||l,r===l&&n.set(null,u),n.set(h,u),this.count++,l=zu.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),r?r.parentNode.insertBefore(u,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Zl={$$typeof:G,Provider:null,Consumer:null,_currentValue:ot,_currentValue2:ot,_threadCount:0};function wA(t,e,n,l,u,r,h,g,x){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=hr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hr(0),this.hiddenUpdates=hr(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Yv(t,e,n,l,u,r,h,g,x,z,N,Y){return t=new wA(t,e,n,h,x,z,N,Y,g),e=1,r===!0&&(e|=24),r=Re(3,null,null,e),t.current=r,r.stateNode=t,e=Wr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:e},ec(r),t}function qv(t){return t?(t=ca,t):ca}function kv(t,e,n,l,u,r){u=qv(u),l.context===null?l.context=u:l.pendingContext=u,l=Kn(e),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=Zn(t,l,e),n!==null&&(xe(n,t,e),Ml(n,t,e))}function Xv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function bf(t,e){Xv(t,e),(t=t.alternate)&&Xv(t,e)}function Kv(t){if(t.tag===13||t.tag===31){var e=xi(t,67108864);e!==null&&xe(e,t,67108864),bf(t,67108864)}}function Zv(t){if(t.tag===13||t.tag===31){var e=Le();e=mr(e);var n=xi(t,e);n!==null&&xe(n,t,e),bf(t,e)}}var Ou=!0;function NA(t,e,n,l){var u=U.T;U.T=null;var r=X.p;try{X.p=2,Tf(t,e,n,l)}finally{X.p=r,U.T=u}}function UA(t,e,n,l){var u=U.T;U.T=null;var r=X.p;try{X.p=8,Tf(t,e,n,l)}finally{X.p=r,U.T=u}}function Tf(t,e,n,l){if(Ou){var u=xf(l);if(u===null)uf(t,e,l,Bu,n),Pv(t,l);else if(HA(u,t,e,n,l))l.stopPropagation();else if(Pv(t,l),e&4&&-1<_A.indexOf(t)){for(;u!==null;){var r=Ii(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var h=vi(r.pendingLanes);if(h!==0){var g=r;for(g.pendingLanes|=2,g.entangledLanes|=2;h;){var x=1<<31-De(h);g.entanglements[1]|=x,h&=~x}on(r),(Et&6)===0&&(mu=Ae()+500,Gl(0))}}break;case 31:case 13:g=xi(r,2),g!==null&&xe(g,r,2),yu(),bf(r,2)}if(r=xf(l),r===null&&uf(t,e,l,Bu,n),r===u)break;u=r}u!==null&&l.stopPropagation()}else uf(t,e,l,null,n)}}function xf(t){return t=Er(t),Ef(t)}var Bu=null;function Ef(t){if(Bu=null,t=$i(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=y(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 Bu=t,null}function Qv(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(EE()){case ep:return 2;case np:return 8;case Ts:case ME:return 32;case ip:return 268435456;default:return 32}default:return 32}}var Mf=!1,ii=null,ai=null,li=null,Ql=new Map,Pl=new Map,si=[],_A="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 Pv(t,e){switch(t){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Ql.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(e.pointerId)}}function Fl(t,e,n,l,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[u]},e!==null&&(e=Ii(e),e!==null&&Kv(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function HA(t,e,n,l,u){switch(e){case"focusin":return ii=Fl(ii,t,e,n,l,u),!0;case"dragenter":return ai=Fl(ai,t,e,n,l,u),!0;case"mouseover":return li=Fl(li,t,e,n,l,u),!0;case"pointerover":var r=u.pointerId;return Ql.set(r,Fl(Ql.get(r)||null,t,e,n,l,u)),!0;case"gotpointercapture":return r=u.pointerId,Pl.set(r,Fl(Pl.get(r)||null,t,e,n,l,u)),!0}return!1}function Fv(t){var e=$i(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=y(n),e!==null){t.blockedOn=e,rp(t.priority,function(){Zv(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,rp(t.priority,function(){Zv(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 Vu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=xf(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);xr=l,n.target.dispatchEvent(l),xr=null}else return e=Ii(n),e!==null&&Kv(e),t.blockedOn=n,!1;e.shift()}return!0}function Jv(t,e,n){Vu(t)&&n.delete(e)}function GA(){Mf=!1,ii!==null&&Vu(ii)&&(ii=null),ai!==null&&Vu(ai)&&(ai=null),li!==null&&Vu(li)&&(li=null),Ql.forEach(Jv),Pl.forEach(Jv)}function Lu(t,e){t.blockedOn===e&&(t.blockedOn=null,Mf||(Mf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,GA)))}var wu=null;function Wv(t){wu!==t&&(wu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){wu===t&&(wu=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(Ef(l||n)===null)continue;break}var r=Ii(n);r!==null&&(t.splice(e,3),e-=3,Tc(r,{pending:!0,data:u,method:n.method,action:l},l,u))}}))}function La(t){function e(x){return Lu(x,t)}ii!==null&&Lu(ii,t),ai!==null&&Lu(ai,t),li!==null&&Lu(li,t),Ql.forEach(e),Pl.forEach(e);for(var n=0;n<si.length;n++){var l=si[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<si.length&&(n=si[0],n.blockedOn===null);)Fv(n),n.blockedOn===null&&si.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var u=n[l],r=n[l+1],h=u[ye]||null;if(typeof r=="function")h||Wv(n);else if(h){var g=null;if(r&&r.hasAttribute("formAction")){if(u=r,h=r[ye]||null)g=h.formAction;else if(Ef(u)!==null)continue}else g=h.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),Wv(n)}}}function $v(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(h){return u=h})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=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),u!==null&&(u(),u=null)}}}function Af(t){this._internalRoot=t}Nu.prototype.render=Af.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=Le();kv(n,l,t,e,null,null)},Nu.prototype.unmount=Af.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;kv(t.current,2,null,t,null,null),yu(),e[Wi]=null}};function Nu(t){this._internalRoot=t}Nu.prototype.unstable_scheduleHydration=function(t){if(t){var e=op();t={blockedOn:null,target:t,priority:e};for(var n=0;n<si.length&&e!==0&&e<si[n].priority;n++);si.splice(n,0,t),n===0&&Fv(t)}};var Iv=s.version;if(Iv!=="19.2.1")throw Error(c(527,Iv,"19.2.1"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=v(e),t=t!==null?T(t):null,t=t===null?null:t.stateNode,t};var YA={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uu.isDisabled&&Uu.supportsFiber)try{al=Uu.inject(YA),Ce=Uu}catch{}}return Na.createRoot=function(t,e){if(!f(t))throw Error(c(299));var n=!1,l="",u=s0,r=u0,h=o0;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=Yv(t,1,!1,null,null,n,l,null,u,r,h,$v),t[Wi]=e.current,sf(t),new Af(e)},Na.hydrateRoot=function(t,e,n){if(!f(t))throw Error(c(299));var l=!1,u="",r=s0,h=u0,g=o0,x=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),e=Yv(t,1,!0,e,n??null,l,u,x,r,h,g,$v),e.context=qv(null),n=e.current,l=Le(),l=mr(l),u=Kn(l),u.callback=null,Zn(n,u,l),n=l,e.current.lanes=n,sl(e,n),on(e),t[Wi]=e.current,sf(t),new Nu(e)},Na.version="19.2.1",Na}var wf;function og(){if(wf)return Hu.exports;wf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Hu.exports=ug(),Hu.exports}var rg=og();const cg=wi(rg);var j=ku();const oi=wi(j),fg={common:{cancel:"Cancel",auto:"Auto",normal:"Normal",notUse:"Not used",prev:"Previous video",next:"Next video",delayText:"seconds until auto-play",license:"License",play:"Play",pause:"Pause",replay:"Replay",fullOn:"Fullscreen",fullOff:"Exit fullscreen",muteOn:"Mute",muteOff:"Unmute",captionOff:"Turn off captions",captionOn:"Turn on captions",setting:"Settings",live:"LIVE",miniPlayer:"Mini player",isMute:"You are muted.",subtitle:"Subtitles",subtitleNot:"Subtitles not available"},settings:{autoplay:"Autoplay",playbackRate:"Playback speed",captions:"Subtitles",quality:"Quality"},error:{"01":{title:"Cannot play video",desc:"Invalid access. Please check your access_key."},"02":{title:"Cannot play video",desc:"You do not have permission to play this video."},"03":{title:"Authentication Failed",desc:"The network connection is unstable."},"04":{title:"Cannot play video",desc:"The video could not be played."},"05":{title:"Cannot play video",desc:"The license is not valid."},"06":{title:"Cannot play video",desc:"Monthly basic API calls exceeded. Please switch to a paid version."},"07":{title:"Cannot play video",desc:"Unsupported format."},"08":{title:"Cannot play video",desc:"Invalid URL format."},"09":{title:"Cannot play video",desc:"The live stream is OFFLINE."},10:{title:"Cannot play video",desc:"Cannot play DASH video on iOS."},11:{title:"Cannot play video",desc:"Invalid DRM token."},12:{title:"Cannot play video",desc:"Failed to communicate with the DRM license server."},13:{title:"Cannot play video",desc:"FairPlay certificate validation failed."},14:{title:"Cannot play video",desc:"Screen capture / screen recording has been detected."},15:{title:"Player Execution Failed",desc:"Required module was not loaded. (hls.js)"},16:{title:"Player Execution Failed",desc:"Required module was not loaded. (dash.js)"}},alternative:{hour:"hour(s)",minute:"minute(s)",second:"second(s)",after:"In a moment",afterMin:"min",afterHour:"hour",afterDay:"day",startPlay:"Video will start in {timeTxt}.",nextPlay:"Next video will play in {timeTxt} seconds.",afterPlay:"Scheduled"}},dg={common:{cancel:"취소",auto:"자동",normal:"보통",notUse:"사용안함",prev:"이전 동영상",next:"다음 동영상",delayText:"초 뒤 자동재생",license:"라이선스",play:"재생",pause:"일시정지",replay:"다시보기",fullOn:"전체화면",fullOff:"전체화면 해제",muteOn:"음소거",muteOff:"음소거 해제",captionOff:"자막끄기",captionOn:"자막켜기",setting:"설정",live:"실시간",miniPlayer:"미니플레이어",isMute:"음소거 상태입니다.",subtitle:"자막",subtitleNot:"자막 사용 불가"},settings:{autoplay:"자동재생",playbackRate:"재생 속도",captions:"자막",quality:"해상도"},error:{"01":{title:"동영상을 재생할 수 없음",desc:"잘못된 접근입니다. access_key를 확인해주세요."},"02":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 권한이 없습니다."},"03":{title:"인증 실패",desc:"네트워크 연결이 원활하지 않습니다."},"04":{title:"동영상을 재생할 수 없음",desc:"동영상을 재생할 수 없습니다."},"05":{title:"동영상을 재생할 수 없음",desc:"라이선스가 유효하지 않습니다."},"06":{title:"동영상을 재생할 수 없음",desc:"월 기본 제공 호출 건수를 초과하였습니다. 유료 버전으로 전환 후 사용 부탁 드립니다."},"07":{title:"동영상을 재생할 수 없음",desc:"지원하지 않는 형식입니다."},"08":{title:"동영상을 재생할 수 없음",desc:"URL 형식이 잘못되었습니다."},"09":{title:"동영상을 재생할 수 없음",desc:"라이브스트림이 OFFLINE 입니다."},10:{title:"동영상을 재생할 수 없음",desc:"iOS에서 Dash 비디오를 재생할 수 없습니다."},11:{title:"동영상을 재생할 수 없음",desc:"DRM 토큰이 잘못되었습니다."},12:{title:"동영상을 재생할 수 없음",desc:"DRM 라이선스 서버와 통신에 실패하였습니다."},13:{title:"동영상을 재생할 수 없음",desc:"FairPlay 인증서 검증에 실패하였습니다."},14:{title:"동영상을 재생할 수 없음",desc:"화면 캡쳐 / 화면 녹화가 감지되었습니다."},15:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (hls.js)"},16:{title:"플레이어 실행 실패",desc:"필수 모듈이 로드되지 않았습니다. (dash.js)"}},alternative:{hour:"시",minute:"분",second:"초",after:"잠시 ",afterMin:"분 ",afterHour:"시간 ",afterDay:"일 ",startPlay:"{timeTxt} 후 영상이 시작됩니다.",nextPlay:"{timeTxt}초 후 다음 영상이 재생됩니다.",afterPlay:"예정"}},hg={common:{cancel:"キャンセル",auto:"自動",normal:"標準",notUse:"使用しない",prev:"前の動画",next:"次の動画",delayText:"秒後に自動再生",license:"ライセンス",play:"再生",pause:"一時停止",replay:"リプレイ",fullOn:"全画面表示",fullOff:"全画面表示を終了",muteOn:"ミュート",muteOff:"ミュート解除",captionOff:"字幕をオフにする",captionOn:"字幕をオンにする",setting:"設定",live:"ライブ",miniPlayer:"ミニプレーヤー",isMute:"ミュート状態です。",subtitle:"字幕",subtitleNot:"字幕は利用できません"},settings:{autoplay:"自動再生",playbackRate:"再生速度",captions:"字幕",quality:"画質"},error:{"01":{title:"動画を再生できません",desc:"不正なアクセスです。access_keyを確認してください。"},"02":{title:"動画を再生できません",desc:"この動画を再生する権限がありません。"},"03":{title:"認証に失敗しました",desc:"ネットワーク接続が不安定です。"},"04":{title:"動画を再生できません",desc:"動画を再生できませんでした。"},"05":{title:"動画を再生できません",desc:"ライセンスが無効です。"},"06":{title:"動画を再生できません",desc:"月間の基本提供呼び出し回数を超過しました。有料版に切り替えてご利用ください。"},"07":{title:"動画を再生できません",desc:"サポートされていない形式です。"},"08":{title:"動画を再生できません",desc:"URLの形式が正しくありません。"},"09":{title:"動画を再生できません",desc:"ライブストリームはオフラインです。"},10:{title:"動画を再生できません",desc:"iOSではDASHビデオを再生できません。"},11:{title:"動画を再生できません",desc:"DRMトークンが無効です。"},12:{title:"動画を再生できません",desc:"DRMライセンスサーバーとの通信に失敗しました。"},13:{title:"動画を再生できません",desc:"FairPlay証明書の検証に失敗しました。"},14:{title:"動画を再生できません",desc:"画面キャプチャ/画面録画が検出されました。"},15:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(hls.js)"},16:{title:"プレーヤーの起動に失敗しました",desc:"必須モジュールが読み込まれていません。(dash.js)"}},alternative:{hour:"時間",minute:"分",second:"秒",after:"しばらくして",afterMin:"分後",afterHour:"時間後",afterDay:"日後",startPlay:"{timeTxt}後に動画が始まります。",nextPlay:"{timeTxt}秒後に次の動画が再生されます。",afterPlay:"予定"}},Nf={en:fg,ko:dg,ja:hg},mg=()=>typeof navigator<"u"&&typeof navigator.language<"u";function pg(i){const a=i.split("-")[0];return a in Nf?a:"en"}function Uf(i){let a="en";i?a=i:mg()&&(a=navigator.language);const s=pg(a);return Nf[s]}Uf();const yg={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia (Plurinational State of)",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo (Democratic Republic of the)",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran (Islamic Republic of)",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (Democratic People's Republic of)",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia (the former Yugoslav Republic of)",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia (Federated States of)",MD:"Moldova (Republic of)",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States of America",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela (Bolivarian Republic of)",VN:"Viet Nam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},vg={gov:{prod:{log:"https://papi.vpe.gov-ntruss.com/player/maSync",report:"https://log.vpe.gov-ntruss.com/stats"},beta:{log:"https://papi.beta-vpe.gov-ntruss.com/player/maSync",report:"https://log.beta-vpe.gov-ntruss.com/stats"}},pub:{prod:{log:"https://papi.vpe.naverncp.com/player/maSync",report:"https://log.vpe.naverncp.com/stats"},beta:{log:"https://papi.beta-vpe.naverncp.com/player/maSync",report:"https://log.beta-vpe.naverncp.com/stats"}}};let Ee={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},On={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const gg=new Date().getTime(),_f=()=>{const i=new Date,a=f=>String(f).padStart(2,"0"),s=`${i.getFullYear()}-${a(i.getMonth()+1)}-${a(i.getDate())} ${a(i.getHours())}:${a(i.getMinutes())}:${a(i.getSeconds())}`,o=Math.floor(i.getTime()/1e3),c=new Date().getTime()-gg;return{logDate:s,logDateUnix:o,thisSec:c}};function Sg(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function bg(i,a){Object.entries(a).forEach(([s,o])=>{Sg(o)?(i[s]||(i[s]={}),Object.entries(o).forEach(([c,f])=>{f!=null&&(i[s][c]=f)})):o!=null&&(i[s]=o)})}function Tg(i){const a=[];return i?.r1&&a.push(i.r1),i?.r2&&a.push(i.r2),i?.r3&&a.push(i.r3),a.join(" ")}function xg(i){try{const a=On.syncResult?.geoLocation;a&&(i.address=Tg(a),i.isp=a.net||"",i.ip=On.syncResult?.ip||"",i.nation=a.country||"")}catch{}}const Eg=async i=>{if(!i)return;const{platform:a,stage:s}=On,o=vg[a][s].log;try{const c=await(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:i})})).json();On.sync=c.result?.sync||!1,On.syncResult=c.result||{};const{logDate:f,logDateUnix:d}=_f();return Ee.extra.logDate=f,Ee.extra.logDateUnix=d,On.syncResult?.geoLocation&&xg(Ee.extra),c}catch(c){return console.error("MA config initialization failed:",c),null}};async function Mg(i,a,s,o,c){On.platform=i,On.stage=a,bg(Ee,s),o&&(Ee.extra.vpePackageId=o),c&&(Ee.extra.vpeKey=c),Ee.extra.nation?Ee.browser.country=yg[Ee.extra.nation]||"Korea, Republic of":Ee.browser.country="Korea, Republic of";const{logDate:f,logDateUnix:d}=_f();Ee.extra.logDate=f,Ee.extra.logDateUnix=d,Ee.extra.created_at=d}const Ag=(i={})=>{const a={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!1,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,lang:"ko",ui:"all",controlBtn:{play:!0,fullscreen:!0,progressBar:!0,volume:!1,times:!0,pictureInPicture:!0,setting:!0,subtitle:!0},progressBarColor:"#4299f5",controlActiveTime:3e3,playRateSetting:[.5,.75,1,1.5,2],autoPause:!1,repeat:!1,setStartTime:void 0,playIndex:0,lowLatencyMode:!0,touchGestures:!0,descriptionNotVisible:!1,devTestAppId:void 0,token:"",visibleWatermark:!1,watermarkText:"NAVER CLOUD PLATFORM",watermarkConfig:{randPosition:!0,randPositionInterVal:3e3,x:10,y:10,opacity:.5},captionStyle:{fontSize:12,color:"#ffffff",backgroundColor:"rgba(0, 0, 0, 0.4)",edgeStyle:"dropshadow"},override:null},s={...a,...i};return i.controlBtn&&(s.controlBtn={...a.controlBtn,...i.controlBtn}),i.watermarkConfig&&(s.watermarkConfig={...a.watermarkConfig,...i.watermarkConfig}),i.captionStyle&&(s.captionStyle={...a.captionStyle,...i.captionStyle}),s.objectFit==="fill"&&(s.objectFit="stretch"),s.controlBtn?.progressBar===void 0&&(s.controlBtn.progressBar=!0),s},Cg={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let Hf=[];const Dg=i=>{try{return atob(i)}catch(a){return console.error("Base64 decoding failed:",a),""}};class zg{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator;errorState;constructor({accessKey:a,appId:s,platform:o,stage:c,isDev:f=!1,language:d}){this.accessKey=a,this.appId=s||location.origin,this.platform=o,this.stage=c,this.isDev=f,this.translator=Uf(d),this.errorState={errorCode:null,errorMessage:null}}async initialize(){const a=["accessKey","appId","E0002","E0001","E0003"],s="VPE Player: accessKey 또는 appId가 없어 키 인증을 건너뜁니다.";if([this[a[0]],this[a[1]]].some(c=>!c))return console.warn(s),{error:this.setErrorRun(a[2])};const o=c=>(this.serverConfig=c,this.playerInfo=this.createPlayerInfo(c),this.playerInfo);try{const c=await this.performKeyCheck();if(c.code!==200)return{error:this.setErrorRun(a[3])};const f=o(c);return await Mg(this.platform,this.stage,f,this.appId,this.accessKey),await Eg(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:f}}catch(c){return console.error("VPE SDK Initialization failed:",c),{error:this.setErrorRun(a[4])}}}async performKeyCheck(){const a=["?preview=true","config","Content-Type","application/json","access_key","domain","POST"],s=this.isDev?a[0]:"",o=Dg(Cg[this.platform][this.stage][a[1]])+s,c=JSON.stringify([a[4],a[5]].reduce((d,y,m)=>(d[y]=[this.accessKey,this.appId][m],d),{})),f=await fetch(o,{method:a[6],headers:{[a[2]]:a[3]},body:c});if(!f.ok)throw new Error(["API","Error:",f.status,f.statusText].join(" "));return f.json()}getBrowserInfo(){const a=navigator.userAgent;return/Edg\/(\d+\.\d+)/.test(a)?{origin:"Edge",version:RegExp.$1}:/Chrome\/(\d+\.\d+)/.test(a)&&!a.includes("Edg")?{origin:"Chrome",version:RegExp.$1}:/Firefox\/(\d+\.\d+)/.test(a)?{origin:"Firefox",version:RegExp.$1}:/Version\/(\d+\.\d+)/.test(a)&&a.includes("Safari")?{origin:"Safari",version:RegExp.$1}:{origin:"Unknown",version:"Unknown"}}createPlayerInfo(a){const[s,o]=a.result.name.split("|"),c=navigator.connection||navigator.mozConnection||navigator.webkitConnection,f=this.getBrowserInfo(),d=navigator.userAgentData;return{cid:a.result.cid,player_name:s,player_version:o,pricing:a.result.pricing,maUse:a.result.options?.maUse==="Y"?"Y":"N",browser:{lang:navigator.language,ua:navigator.userAgent},screen:{width:window.screen.width,height:window.screen.height},connection:{network:c?.effectiveType??"unknown",downlink:c?.downlink??null,rtt:c?.rtt??null,save_data:c?.saveData??!1},device:{platform:d?.platform??"Unknown",mobile:d?.mobile??!1,memory:navigator.deviceMemory??null,processor:navigator.hardwareConcurrency??null},video:{url:""},extra:{vpeKey:this.accessKey,playerType:"VPE",playerVersion:o,device:d?.platform??"Unknown",os:d?.platform??"Unknown",osOrigin:d?.platform??"Unknown",osVersion:d?.platformVersion??"Unknown",vpePackageId:this.appId,actionDuration:0,actionType:"ready",browser:f.origin,browserOrigin:f.origin,browserVersion:f.version,protocol:location.protocol,quality:"Other",qualityOrigin:"Auto",host:`${this.appId}&${d?.platform??"Unknown"}&${d?.platformVersion??"Unknown"}`,location:`${this.appId}://appView/video/vpe`,title:""}}}setErrorRun(a){const s=a.slice(-2),o=this.translator.error[s]||this.translator.error["01"],c={errorCode:a,errorMessage:o};return this.errorState=c,console.error("ncplayer : ",c),c}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(a){const s=Ag(this.serverConfig.result?.options?.options),o={...s,...a??{}};return a?.controlBtn&&(o.controlBtn={...s.controlBtn,...a.controlBtn}),a?.watermarkConfig&&(o.watermarkConfig={...s.watermarkConfig,...a.watermarkConfig}),o.playlist&&!Array.isArray(o.playlist)&&(o.playlist=[{file:o.playlist}]),Hf=o.playlist||[],o}getPlaylist(){return Hf||[]}$t(a){const s=a.split(".");let o=this.translator;for(const c of s)if(o&&typeof o=="object"&&c in o)o=o[c];else return a;return typeof o=="string"?o:a}}const Ku=new Map;function Rg(i,a){if(Ku.has(i))return Ku.get(i);const o={value:typeof a=="function"?a():a,listeners:new Set};return Ku.set(i,o),o}function Gf(i,a){const s=Rg(i,a),o=m=>(s.listeners.add(m),()=>s.listeners.delete(m)),c=()=>s.value,f=()=>s.value,d=m=>{s.value=typeof m=="function"?m(s.value):m,s.listeners.forEach(p=>p())};return[j.useSyncExternalStore(o,c,f),d]}const Zu=new Map;function jg(i,a){if(Zu.has(i))return Zu.get(i);const o={value:typeof a=="function"?a():a,listeners:new Set};return Zu.set(i,o),o}function Yf(i,a){const s=jg(i,a),o=m=>(s.listeners.add(m),()=>s.listeners.delete(m)),c=()=>s.value,f=()=>s.value,d=j.useCallback(m=>{s.value=typeof m=="function"?m(s.value):m,s.listeners.forEach(p=>p())},[s]);return[j.useSyncExternalStore(o,c,f),d]}const Og="playerState",Bg={isUserTouch:!1,isPlaying:!1,initPlay:!1,isEnded:!1,isMuted:!1,isLive:!1,isDvr:!1,isSeeked:!1,isWaiting:!0,isLoading:!0,hasSubtitle:!1,isHd:!1,is4k:!1,isPictureInPicture:!1,isSettingModal:!1,isFullscreen:!1,isSubtitle:!0,videoWidth:0,videoHeight:0,subTitleIdx:0,currentTime:0,duration:0,buffered:0,bufferedStart:0,bufferedEnd:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function Ft(){const[i,a]=Yf(Og,Bg),s=j.useCallback(o=>{a(c=>{const f=typeof o=="function"?o(c):o;return{...c,...f}})},[a]);return[i,s]}const Vg="playerController",Lg={videoEl:null,hls:null};function re(){const[i,a]=Yf(Vg,Lg),[s,o]=Ft(),c=j.useCallback(G=>{a(L=>({...L,videoEl:G}))},[a]),f=j.useCallback(G=>{a(L=>({...L,hls:G}))},[a]),d=j.useCallback(()=>{o({isUserTouch:!0})},[o]),y=j.useCallback(()=>{const G=i.videoEl;G&&G.paused&&G.play()},[i.videoEl]),m=j.useCallback(()=>{const G=i.videoEl;G&&(G.paused||G.pause())},[i.videoEl]),p=j.useCallback(G=>{const L=i.videoEl;if(!L||Number.isNaN(G))return;const K=Math.max(0,Math.min(G,L.duration||G));L.currentTime=K,o({currentTime:K})},[o,i.videoEl]),v=j.useCallback(G=>{const L=i.videoEl;if(!L||Number.isNaN(G))return;const K=Math.max(0,Math.min(100,G));L.volume=K/100,L.muted=K===0},[i.videoEl]),T=j.useCallback(G=>{const L=i.videoEl;L&&(L.muted=G)},[i.videoEl]),b=j.useCallback(G=>{const L=i.videoEl;if(!L)return;const K=L.textTracks;if(!K||K.length===0)return;const J=Math.max(0,Math.min(s.subTitleIdx??0,K.length-1));for(let Z=0;Z<K.length;Z+=1)K[Z].mode=G&&Z===J?"showing":"disabled";o({isSubtitle:G})},[s.subTitleIdx,o,i.videoEl]),C=j.useCallback(()=>{const G=i.videoEl;if(!G)return;const L=G.textTracks;if(!L||L.length===0){o({isSubtitle:!1});return}let K=!1;for(let J=0;J<L.length;J+=1)if(L[J].mode==="showing"){K=!0;break}K?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),b(!K)},[o,b,i.videoEl]),w=j.useCallback(G=>{const L=i.videoEl;if(!L)return;const K=Array.from(L.querySelectorAll("track")),J=L.textTracks;if((!J||J.length===0)&&K.length===0){o({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const Z=K.length>0?K.length-1:J.length-1,tt=Math.max(0,Math.min(G,Z));if(K.length>0)K.forEach((it,jt)=>{it.track&&(it.track.mode=jt===tt?"showing":"disabled")});else for(let it=0;it<J.length;it+=1)J[it].mode=it===tt?"showing":"disabled";o({isSubtitle:!0,subTitleIdx:tt}),localStorage.setItem("vpeSubtitleEnabled","Y")},[o,i.videoEl]),V=j.useCallback(()=>{const G=i.videoEl;G&&(G.muted=!G.muted)},[i.videoEl]),H=j.useCallback(()=>{const G=i.videoEl;G&&(G.paused?y():m())},[m,y,i.videoEl]),O=j.useCallback(G=>{const L=i.hls;if(L){if(G==="auto"){L.currentLevel=-1,o({currentLevel:-1,isAutoLevel:!0});return}L.currentLevel=G,o({currentLevel:G,isAutoLevel:!1})}},[o,i.hls]),k=j.useCallback(G=>{const L=i.videoEl;L&&(L.playbackRate=G)},[i.videoEl]),Q=j.useCallback(async()=>{const G=i.videoEl;if(!G||typeof document>"u")return;const L=document;if(L.pictureInPictureElement){typeof L.exitPictureInPicture=="function"&&await L.exitPictureInPicture();return}const K=G.requestPictureInPicture;typeof K=="function"&&await K.call(G)},[i.videoEl]);return{videoEl:i.videoEl,hls:i.hls,setVideoElement:c,setHlsInstance:f,play:y,pause:m,seekTo:p,setVolume:v,setMuted:T,setSubtitleEnabled:b,toggleSubtitle:C,toggleMute:V,togglePlay:H,useTouch:d,playBackRate:k,selectSubTitle:w,selectQualityLevel:O,togglePictureInPicture:Q}}function wg(i,a,s=!1){j.useEffect(()=>{const o=i.current;if(!o)return;const c=()=>{a({isPlaying:!0,initPlay:!0,isEnded:!1})},f=()=>{a({isPlaying:!1})},d=()=>{s||Math.round(o.currentTime)%1==0&&a({currentTime:o.currentTime,duration:o.duration})},y=()=>{if(o.buffered.length>0){const Q=o.buffered.start(0),G=o.buffered.end(o.buffered.length-1);a({buffered:G,bufferedStart:Q,bufferedEnd:G})}},m=()=>{const Q=o.videoWidth||0,G=o.videoHeight||0;a({isHd:Q>=1280,is4k:Q>=2560,videoWidth:Q,videoHeight:G})},p=()=>{a({isEnded:!0})},v=()=>{a({isSeeked:!0})},T=()=>{setTimeout(()=>{a({isSeeked:!1})},200)},b=()=>{a({isMuted:o.muted,isVolume:Math.round(o.volume*100)})},C=()=>{a({isLoading:!0,isWaiting:!0})},w=()=>{a({isLoading:!1}),m()},V=()=>{a({isLoading:!1}),m()},H=()=>{a({isWaiting:!0})},O=()=>{a({isWaiting:!1,isLoading:!1})},k=()=>{a({isWaiting:!0})};return o.addEventListener("play",c),o.addEventListener("pause",f),o.addEventListener("timeupdate",d),o.addEventListener("ended",p),o.addEventListener("progress",y),o.addEventListener("seeking",v),o.addEventListener("seeked",T),o.addEventListener("volumechange",b),o.addEventListener("loadstart",C),o.addEventListener("loadedmetadata",w),o.addEventListener("loadeddata",V),o.addEventListener("resize",m),o.addEventListener("waiting",H),o.addEventListener("playing",O),o.addEventListener("stalled",k),b(),()=>{o.removeEventListener("play",c),o.removeEventListener("pause",f),o.removeEventListener("timeupdate",d),o.removeEventListener("ended",p),o.removeEventListener("progress",y),o.removeEventListener("seeking",v),o.removeEventListener("seeked",T),o.removeEventListener("volumechange",b),o.removeEventListener("loadstart",C),o.removeEventListener("loadedmetadata",w),o.removeEventListener("loadeddata",V),o.removeEventListener("resize",m),o.removeEventListener("waiting",H),o.removeEventListener("playing",O),o.removeEventListener("stalled",k)}},[s,a,i])}function Ng(i){const a=j.useRef(null),[s,o]=Ft(),{setVideoElement:c,setHlsInstance:f}=re(),d=i.hlsLib,y=i.options;return j.useEffect(()=>{const m=a.current,p=i?.src?.file;if(!(!m||!p)){if(d?.isSupported?.()){const v=new d({lowLatencyMode:y.lowLatencyMode,liveSyncDuration:y.lowLatencyMode?3:5,backBufferLength:y.lowLatencyMode?30:90,startPosition:-1});f(v),v.attachMedia(m),v.on(d.Events.MEDIA_ATTACHED,()=>{v.loadSource(p)});const T=b=>{if(typeof b?.details?.live=="boolean"){const C=b.details.live,w=b.details.totalduration,V=C&&typeof w=="number"&&Number.isFinite(w)&&w>0;o({isLive:C,isDvr:V})}};return v.on(d.Events.MANIFEST_PARSED,(b,C)=>{T(C);const w=(v.levels??[]).map((V,H)=>({index:H,width:V.width,height:V.height,bitrate:V.bitrate,name:V.name}));o({levels:w,currentLevel:v.currentLevel,isAutoLevel:v.autoLevelEnabled})}),v.on(d.Events.LEVEL_LOADED,(b,C)=>{T(C)}),v.on(d.Events.LEVEL_SWITCHED,(b,C)=>{o({currentLevel:C.level,isAutoLevel:v.autoLevelEnabled})}),v.on(d.Events.ERROR,(b,C)=>{i.onError&&i.onError({evt:b,data:C})}),()=>{f(null),v.destroy()}}m.src=p}},[d,i?.src?.file,i.onError,f,o]),j.useEffect(()=>{const m=a.current;if(!m||d?.isSupported?.())return;const p=()=>{const v=m.duration,T=!Number.isFinite(v)||v===1/0,b=T?Number.isFinite(v)&&v>0:!1;o({isLive:T,isDvr:b})};return m.addEventListener("loadedmetadata",p),m.addEventListener("durationchange",p),p(),()=>{m.removeEventListener("loadedmetadata",p),m.removeEventListener("durationchange",p)}},[d,o]),j.useEffect(()=>(c(a.current),()=>c(null)),[c]),j.useEffect(()=>{const m=a.current;if(!m)return;const p=y?.playbackRate;typeof p=="number"&&(m.playbackRate=p,o({playbackRate:p}))},[y]),j.useEffect(()=>{const m=a.current;if(!m||!i.src?.vtt?.length)return;const p=50,v=16,T=1.2,b=40,w=-Math.max(1,Math.round(p/(v*T))),V=L=>{if(L.cues)for(let K=0;K<L.cues.length;K+=1){const J=L.cues[K];J.line=w,J.lineAlign="center"}},H=L=>{if(!L.cues)return;const K=m.getBoundingClientRect(),J=K.width>0?b*2*100/K.width:0,Z=Math.max(10,Math.min(100,100-J));for(let tt=0;tt<L.cues.length;tt+=1){const it=L.cues[tt];it.size=Z,it.position=50,it.align="center"}},O=L=>{V(L),H(L)},k=Array.from(m.querySelectorAll("track")),Q=L=>{const K=L.currentTarget;K?.track&&O(K.track)};k.forEach(L=>{L.addEventListener("load",Q),L.track&&O(L.track)});const G=new ResizeObserver(()=>{k.forEach(L=>{L.track&&H(L.track)})});return G.observe(m),()=>{k.forEach(L=>{L.removeEventListener("load",Q)}),G.disconnect()}},[y,i.src?.vtt]),wg(a,o,s.isSeeked),j.useEffect(()=>{const m=i.src?.vtt??[],p=m.length>0,v=m.findIndex(b=>b.default),T=v>=0?v:0;o({hasSubtitle:p,isSubtitle:!1,subTitleIdx:T})},[i.src?.vtt,o]),j.useEffect(()=>{if(!s.isSubtitle)return;const m=a.current;if(!m||!i.src?.vtt?.length)return;const p=new Map,v=[],T=async(C,w)=>{try{const V=await fetch(w,{mode:"cors"});if(!V.ok)return;const H=await V.blob(),O=URL.createObjectURL(H);v.push(O),p.set(C,C.src),C.src=O}catch{}},b=Array.from(m.querySelectorAll("track"));return b.forEach(C=>{C.src&&T(C,C.src)}),()=>{b.forEach(C=>{const w=p.get(C);w&&(C.src=w)}),v.forEach(C=>URL.revokeObjectURL(C))}},[i.src?.vtt,s.subTitleIdx,s.isSubtitle]),j.useEffect(()=>{const m=a.current;if(!m)return;const p=Array.from(m.querySelectorAll("track")),v=m.textTracks;if((!v||v.length===0)&&p.length===0)return;const T=s.subTitleIdx,b=s.isSubtitle,C=()=>{if(p.length>0){p.forEach(V=>{V.track&&(V.default=!1,V.track.mode="disabled")}),p.forEach((V,H)=>{V.track&&b&&H===T&&(V.default=!0,V.track.mode="showing")});return}for(let V=0;V<v.length;V+=1)v[V].mode="disabled";b&&v[T]&&(v[T].mode="showing")};C();const w=()=>{C()};return p.forEach(V=>{V.addEventListener("load",w)}),()=>{p.forEach(V=>{V.removeEventListener("load",w)})}},[s.isSubtitle,s.subTitleIdx,i.src?.vtt]),j.useEffect(()=>{const m=a.current;m&&y.autostart&&m.play().catch(p=>{console.log(p),m.muted=!0,m.play()})},[y.autostart]),j.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const p=localStorage.getItem("vpeSubtitleEnabled");p!==null&&s.hasSubtitle&&o({isSubtitle:!!p})},1e3)},[s.hasSubtitle,o]),S.jsx(S.Fragment,{children:i?.src?.file&&S.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:y?.autostart,muted:y?.muted,loop:y?.repeat,style:{width:"100%",height:"100%",maxHeight:"100%",background:i.src.poster?s.initPlay?"transparent":`url(${i.src.poster}) center / ${y?.objectFit??"contain"} no-repeat`:void 0,objectFit:y?.objectFit??"contain"},children:i.src.vtt?.map(m=>S.jsx("track",{kind:"subtitles",srcLang:m.id,label:m.label,src:m.src,default:m.default},`${m.id}-${m.src}`))})})}function Ug(i){return S.jsx(S.Fragment,{children:i?.src?.file&&S.jsx("div",{children:i.src.file})})}function _g(i){return S.jsx(S.Fragment,{children:i?.src?.file&&S.jsx("div",{children:i.src.file})})}function Hg(i){return S.jsx(Ng,{...i})}function Gg(i){return S.jsx(Ug,{...i})}function Yg(i){return S.jsx(_g,{...i})}function qg(i){const a=j.useRef(null),s=j.useRef(null),o=i.hlsLib;return j.useEffect(()=>{const c=a.current,f=i?.src?.file;if(!(!c||!f)){if(o?.isSupported?.()){const d=new o({startLevel:0,autoLevelCapping:0});return d.attachMedia(c),d.on(o.Events.MEDIA_ATTACHED,()=>{d.loadSource(f)}),d.on(o.Events.MANIFEST_PARSED,()=>{d.currentLevel=0,d.autoLevelEnabled=!1}),d.on(o.Events.ERROR,(y,m)=>{i.onError&&i.onError({evt:y,data:m})}),()=>{d.destroy()}}c.src=f}},[o,i?.src?.file,i.onError]),j.useEffect(()=>{const c=a.current;if(!c||!i.isHovering||typeof i.previewTime!="number")return;s.current=i.previewTime;const f=()=>{const y=s.current;if(typeof y!="number"||Number.isNaN(y))return;const m=c.duration,p=Math.max(0,Math.min(y,Number.isFinite(m)?m:y));Math.abs(c.currentTime-p)>.25&&(c.currentTime=p),c.pause()};if(c.readyState>=1){f();return}const d=()=>f();return c.addEventListener("loadedmetadata",d,{once:!0}),()=>{c.removeEventListener("loadedmetadata",d)}},[i.isHovering,i.previewTime]),S.jsx(S.Fragment,{children:i?.src?.file&&S.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function qf(i="(max-width: 768px)"){const[a,s]=j.useState({isMobile:!1,isPortrait:!1});return j.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=window.matchMedia(i),c=window.matchMedia("(orientation: portrait)"),f=()=>s({isMobile:o.matches,isPortrait:c.matches});return f(),o.addEventListener("change",f),c.addEventListener("change",f),()=>{o.removeEventListener("change",f),c.removeEventListener("change",f)}},[i]),a}class kg{formatTime(a){if(!a)return"00:00";const s=Math.floor(a),o=String(Math.floor(s/3600)).padStart(2,"0"),c=String(Math.floor(s%3600/60)).padStart(2,"0"),f=String(s%60).padStart(2,"0");return o!=="00"?`${o}:${c}:${f}`:`${c}:${f}`}}const Ua=new kg,Ni=i=>Math.max(0,Math.min(100,i));function kf({color:i="#31ec2a",src:a,hlsLib:s,dashLib:o,options:c,onError:f}){const{isMobile:d}=qf(),[y,m]=Ft(),{seekTo:p}=re(),[v,T]=j.useState(!1),[b,C]=j.useState(0),[w,V]=j.useState(0),[H,O]=j.useState(null),[k,Q]=j.useState(null),[G,L]=j.useState(null),K=j.useRef(null),J=j.useRef(null),Z=j.useRef(null),tt=i||"#31ec2a",it="5px",jt=y.duration??0,W=jt>0?jt:0,st=W>0?(y.currentTime??0)/W*100:0,Mt=W>0?(y.buffered??0)/W*100:0,ft=!!y.isLive,U=(ft&&jt>0?Math.abs(jt-(y.currentTime??0))<30:!1)?100:Ni(b),X=H??st,ot=k??X,St=G??X,$t=W>0?W*(X/100):0,M=H!==null,q=y.videoWidth??0,F=y.videoHeight??0,I=q>0&&F>0,dt=I?`${q}/${F}`:"16/9",ht=I&&q>F?"160px":"55px",bt=j.useCallback(fe=>{const de=K.current;if(!de)return null;const Me=de.getBoundingClientRect();if(Me.width<=0)return null;const Fi="clientX"in fe?fe.clientX:0;return Math.min(Math.max(Fi-Me.left,0),Me.width)/Me.width*100},[]),ne=j.useCallback(fe=>{const de=K.current;if(!de)return;const Me=de.getBoundingClientRect();if(Me.width<=0)return;const Fi=el=>{const nl=el>0?el/2/Me.width*100:0,yi=Math.max(0,Math.min(50,nl)),il=Math.max(yi,100-yi);return{minPercent:yi,maxPercent:il}},an=J.current?.offsetWidth??0,Ji=Fi(an),pi=bt(fe);if(pi===null)return;O(Ni(pi));const bs=Math.max(Ji.minPercent,Math.min(Ji.maxPercent,pi));L(bs),Q(bs)},[bt]),_t=j.useCallback(()=>{O(null),Q(null),L(null)},[]);return j.useEffect(()=>{v||(C(st),V(Mt))},[v,st,Mt]),S.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:ne,onMouseLeave:_t,children:S.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":tt,"--seekSliderThumbColor":tt,"--rlMargin":it},children:[S.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:K,children:S.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.38)",width:"100%"},children:[M&&!y.isLive&&!d&&S.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:dt,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Ni(St)}%`,transform:"translateX(-50%)",maxWidth:ht},ref:J,children:S.jsx(S.Fragment,{children:s&&S.jsx(qg,{src:a,hlsLib:s,options:c,onError:f,previewTime:$t,isHovering:M})})}),M&&!y.isLive&&S.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Ni(ot)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:Z,children:Ua.formatTime($t)})]})}),S.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:S.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${w<1?1:w>98?100:w}%`}})}),S.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:S.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${U<1?1:U}%`},children:S.jsx("div",{style:{position:"relative"},children:S.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),S.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:S.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:U,onPointerDown:fe=>{if(ft)return;m({isSeeked:!0}),T(!0);const de=bt(fe);de!==null&&C(Ni(de))},onPointerUp:()=>{if(ft)return;T(!1);const fe=W*(U/100);p(fe)},onChange:fe=>{if(ft)return;const de=Number(fe.currentTarget.value),Me=Number.isNaN(de)?0:de;C(Ni(Me))},disabled:ft||W===0})})]})})}var Xf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Kf=oi.createContext&&oi.createContext(Xf),Xg=["attr","size","title"];function Kg(i,a){if(i==null)return{};var s=Zg(i,a),o,c;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);for(c=0;c<f.length;c++)o=f[c],!(a.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(i,o)&&(s[o]=i[o])}return s}function Zg(i,a){if(i==null)return{};var s={};for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){if(a.indexOf(o)>=0)continue;s[o]=i[o]}return s}function Jl(){return Jl=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i[o]=s[o])}return i},Jl.apply(this,arguments)}function Zf(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);a&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),s.push.apply(s,o)}return s}function Wl(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?Zf(Object(s),!0).forEach(function(o){Qg(i,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):Zf(Object(s)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(s,o))})}return i}function Qg(i,a,s){return a=Pg(a),a in i?Object.defineProperty(i,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[a]=s,i}function Pg(i){var a=Fg(i,"string");return typeof a=="symbol"?a:a+""}function Fg(i,a){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var o=s.call(i,a);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function Qf(i){return i&&i.map((a,s)=>oi.createElement(a.tag,Wl({key:s},a.attr),Qf(a.child)))}function Nt(i){return a=>oi.createElement(Jg,Jl({attr:Wl({},i.attr)},a),Qf(i.child))}function Jg(i){var a=s=>{var{attr:o,size:c,title:f}=i,d=Kg(i,Xg),y=c||s.size||"1em",m;return s.className&&(m=s.className),i.className&&(m=(m?m+" ":"")+i.className),oi.createElement("svg",Jl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,d,{className:m,style:Wl(Wl({color:i.color||s.color},s.style),i.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),f&&oi.createElement("title",null,f),i.children)};return Kf!==void 0?oi.createElement(Kf.Consumer,null,s=>a(s)):a(Xf)}function Wg(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 14H4V5h16v12z"},child:[]},{tag:"path",attr:{d:"M6 8.25h8v1.5H6zM16.5 9.75H18v-1.5h-1.5V7H15v4h1.5zM10 12.25h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},child:[]}]})(i)}function $g(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"},child:[]}]})(i)}function Ig(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(i)}function t1(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H6.83l8 8H20v2h-3.17l4.93 4.93c.15-.28.24-.59.24-.93V6c0-1.1-.9-2-2-2zM1.04 3.87l1.2 1.2C2.09 5.35 2 5.66 2 6v12c0 1.1.9 2 2 2h13.17l2.96 2.96 1.41-1.41L2.45 2.45 1.04 3.87zM8 12v2H4v-2h4zm6 4.83V18H4v-2h9.17l.83.83z"},child:[]}]})(i)}function e1(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 13c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6v4l5-5-5-5v4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8h-2z"},child:[]},{tag:"path",attr:{d:"M10.86 15.94v-4.27h-.09L9 12.3v.69l1.01-.31v3.26zM12.25 13.44v.74c0 1.9 1.31 1.82 1.44 1.82.14 0 1.44.09 1.44-1.82v-.74c0-1.9-1.31-1.82-1.44-1.82-.14 0-1.44-.09-1.44 1.82zm2.04-.12v.97c0 .77-.21 1.03-.59 1.03s-.6-.26-.6-1.03v-.97c0-.75.22-1.01.59-1.01.38-.01.6.26.6 1.01z"},child:[]}]})(i)}function Pf(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"},child:[]}]})(i)}function Ff(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(i)}function n1(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 5V1l-5 5 5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6h-2c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"},child:[]},{tag:"path",attr:{d:"M10.89 16h-.85v-3.26l-1.01.31v-.69l1.77-.63h.09V16zM15.17 14.24c0 .32-.03.6-.1.82s-.17.42-.29.57-.28.26-.45.33-.37.1-.59.1-.41-.03-.59-.1-.33-.18-.46-.33-.23-.34-.3-.57-.11-.5-.11-.82v-.74c0-.32.03-.6.1-.82s.17-.42.29-.57.28-.26.45-.33.37-.1.59-.1.41.03.59.1.33.18.46.33.23.34.3.57.11.5.11.82v.74zm-.85-.86c0-.19-.01-.35-.04-.48s-.07-.23-.12-.31-.11-.14-.19-.17-.16-.05-.25-.05-.18.02-.25.05-.14.09-.19.17-.09.18-.12.31-.04.29-.04.48v.97c0 .19.01.35.04.48s.07.24.12.32.11.14.19.17.16.05.25.05.18-.02.25-.05.14-.09.19-.17.09-.19.11-.32.04-.29.04-.48v-.97z"},child:[]}]})(i)}function i1(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z"},child:[]}]})(i)}function Jf(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"},child:[]}]})(i)}function Wf(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02S15.48 8.71 14 7.97zM3 9v6h4l5 5V4L7 9H3z"},child:[]}]})(i)}function $f(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 9v6h4l5 5V4l-5 5H7z"},child:[]}]})(i)}function If(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.796 8.796 0 0 0 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z"},child:[]}]})(i)}function td(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"},child:[]}]})(i)}function a1(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"},child:[]}]})(i)}function $l(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(i)}function _a(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(i)}function l1(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(i)}function s1(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"},child:[]}]})(i)}function u1(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(i)}function ed(i){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(i)}function cn(i){const a=i.noBg??!1;return S.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:a?"obtnNoBg":"obtn",children:i.children})}function o1(i){const a=i.noPadding??!1,s=i.cap??0;return S.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:a?0:"0.5rem",paddingRight:a?0:"0.5rem",gap:s||0,position:"relative"},className:i.noBg?"obtn-group-nobg":"obtn-group",children:i.children})}function Il(i){return S.jsx(o1,{...i,children:i.children})}const Ie={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},r1={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},nd={border:0,background:"transparent"},c1={display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderBottom:"1px solid rgb(205 205 205 / 8%)",position:"relative"},f1={flex:1},d1={display:"flex",alignItems:"center",gap:6},h1={padding:0,display:"flex",alignItems:"center",gap:6},ts={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},tn={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},Bn={flex:1,justifyContent:"start",display:"flex"},Qu={display:"flex",alignItems:"center",gap:5},es={fontSize:"0.9rem",opacity:.6};function id({size:i=25,weight:a="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[f]=Ft(),{play:d,pause:y}=re();return S.jsx(cn,{noBg:!0,children:S.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[S.jsx("div",{className:"vpe-popver",children:S.jsx("div",{className:"vpe-popver-text",children:f.isPlaying?o?.pause??"일시정지":o?.play??"재생"})}),S.jsx("button",{type:"button",onClick:f.isPlaying?y:d,style:Ie,children:f.isEnded?S.jsx(ed,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}):S.jsx(S.Fragment,{children:f.isPlaying?S.jsx(Pf,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}):S.jsx(Ff,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}})})})]})})}function m1({size:i=80,weight:a="fill",color:s="#ffffff",isPortrait:o=!1,isMobile:c=!1}){const[f]=Ft(),[d,y]=j.useState(0),{play:m,pause:p}=re();return j.useEffect(()=>{y(v=>v+1)},[f.isPlaying]),S.jsx("div",{className:`vpe-big-play-btn ${f.isEnded?"":"center-play-btn-anim"}`,children:S.jsx(Il,{noPadding:!0,children:S.jsx(cn,{children:S.jsx("button",{type:"button",style:r1,onClick:()=>{(c||o)&&(f.isPlaying?p():m())},children:f.isEnded?S.jsx(ed,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}):S.jsx(S.Fragment,{children:f.isPlaying?S.jsx(Pf,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}):S.jsx(Ff,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}})})})})})},d)}function p1({size:i=25,weight:a="fill",color:s="#ffffff",pos:o="left",options:c={}}){const[f]=Ft(),{seekTo:d}=re(),y=typeof c?.skipSeconds=="number"?c.skipSeconds:10,m=()=>{if(f.isLive&&!f.isDvr)return;const v=(f.currentTime??0)-y;d(Math.max(0,v))};return S.jsx(cn,{noBg:!0,children:S.jsx("div",{className:`vpe-popover-wrap vp-${o}`,children:S.jsx("button",{type:"button",onClick:m,style:Ie,children:S.jsx(n1,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}})})})})}function y1({size:i=25,weight:a="fill",color:s="#ffffff",pos:o="left",options:c={}}){const[f]=Ft(),{seekTo:d}=re(),y=typeof c?.skipSeconds=="number"?c.skipSeconds:10,m=()=>{if(f.isLive&&!f.isDvr)return;const p=f.currentTime??0,v=f.duration??0,T=p+y,b=Number.isFinite(v)&&v>0?Math.min(T,v):Math.max(0,T);d(b)};return S.jsx(cn,{noBg:!0,children:S.jsx("div",{className:`vpe-popover-wrap vp-${o}`,children:S.jsx("button",{type:"button",onClick:m,style:Ie,children:S.jsx(e1,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}})})})})}function v1({color:i="#ffffff"}){const[a]=Ft();return S.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:i},children:Ua.formatTime(a.currentTime??0)||0})}function g1({color:i="#ffffff"}){const[a]=Ft();return S.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:i},children:Ua.formatTime(a.duration??0)||0})}function S1({color:i="#ffffff"}){const[a]=Ft(),{seekTo:s}=re(),c=(a.bufferedEnd??a.buffered??0)||a.duration||0,f=!!a.isLive,y=f&&c>0?Math.abs((a.currentTime??0)-c)<10:f,m=()=>{f&&(!c||Number.isNaN(c)||s(Math.max(0,c-.1)))};return S.jsx(S.Fragment,{children:a.isLive?S.jsxs("button",{type:"button",onClick:m,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[S.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:y?"#ff0000":i,display:"inline-block"}}),S.jsx("span",{style:{fontWeight:"bold",fontSize:"0.9rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:"LIVE"})]}):S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Ua.formatTime(a.currentTime??0)||0}),S.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),S.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"1rem",minWidth:"70px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Ua.formatTime(a.duration??0)||0})]})})}function b1({text:i={},color:a="#ffffff"}){const[s]=Ft(),{selectQualityLevel:o}=re(),c=j.useRef(!1),f=s.currentLevel??-1,d=s.levels?.find(m=>m.index===f),y=s.isAutoLevel?i.auto:d?.name??(d?.height?`${d.height}p`:`${f}`);return S.jsxs("div",{style:{position:"relative"},children:[c.current&&S.jsx("div",{style:{position:"absolute",width:"100px",height:"auto",backgroundColor:"rgba(0, 0, 0, 0.85)",borderRadius:"5px",padding:"1rem 0.8rem",bottom:"80px",left:"-50%",fontSize:"0.9rem",color:"#ffffff",zIndex:99999},children:S.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[S.jsx("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(-1)},children:S.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:i?.auto??"Auto"})}),[...s.levels??[]].sort((m,p)=>(p.height??0)-(m.height??0)).map(m=>{const p=m.name??(m.height?`${m.height}p`:`${m.index}`);return S.jsx("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(m.index),c.current=!1},children:S.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:p})},m.index)})]})}),S.jsx("button",{type:"button",onClick:()=>{c.current=!c.current},style:{...Ie,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${a}`},children:S.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:y})})]})}function T1({color:i="#ffffff",click:a=()=>{},title:s=""}){return S.jsx(S.Fragment,{children:s&&S.jsx(Il,{children:S.jsx("button",{type:"button",onClick:a,style:{border:0,background:"transparent",lineHeight:"100%",display:"flex",alignItems:"center",height:"46px"},children:S.jsxs("div",{className:"defObj",style:{paddingLeft:"0.5rem",paddingRight:"0.2rem",maxWidth:"15rem",lineHeight:"1rem",display:"flex",alignItems:"center",color:`${i}`},children:[S.jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:s}),S.jsx("div",{style:{paddingTop:"2px"},children:S.jsx($l,{size:15})})]})})})})}function ad(i){let a=i.align=="left"?"start":i.align=="end"?"end":"center";return S.jsx("div",{style:{flex:1,display:"flex",justifyContent:a,alignItems:"center"},children:i.children})}function x1(i){return Nt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.577 8.9v.03h1.828V5.898h-.062a47 47 0 0 0-1.766 3.001z"},child:[]},{tag:"path",attr:{d:"M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm2.372 3.715.435-.714h1.71v3.93h.733v.957h-.733V11H5.405V9.888H2.5v-.971c.574-1.077 1.225-2.142 1.872-3.202m7.73-.714h1.306l-2.14 2.584L13.5 11h-1.428l-1.679-2.624-.615.7V11H8.59V5.001h1.187v2.686h.057L12.102 5z"},child:[]}]})(i)}function E1(i){return Nt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.53 5.968h-.843v4.06h.843c1.117 0 1.622-.667 1.622-2.02 0-1.354-.51-2.04-1.622-2.04"},child:[]},{tag:"path",attr:{d:"M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm5.396 3.001V11H6.209V8.43H3.687V11H2.5V5.001h1.187v2.44h2.522V5h1.187zM8.5 11V5.001h2.188c1.824 0 2.685 1.09 2.685 2.984C13.373 9.893 12.5 11 10.69 11z"},child:[]}]})(i)}function M1({size:i=25,weight:a="fill",color:s="#ffffff",options:o={},text:c={},pos:f="left"}){const[d,y]=Ft(),{videoEl:m}=re(),p=j.useRef(0),v=j.useRef(""),T=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),b=()=>{const H=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return H instanceof HTMLElement?H:null},C=H=>{if(H)if(H.classList.contains("vpe-ios-fullscreen")){y({isFullscreen:!1}),H.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=v.current;const O=document.getElementById("vpeIosFullscreenTmpDiv");O&&O.remove(),window.scrollY=p.current}else{y({isFullscreen:!0}),H.classList.add("vpe-ios-fullscreen"),p.current=window.scrollY,v.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const O=document.createElement("div");O.id="vpeIosFullscreenTmpDiv",O.style.height="120dvh",document.body.appendChild(O),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},w=()=>{if(!m)return!1;const H=m.webkitEnterFullscreen;return typeof H!="function"?!1:(H.call(m),!0)},V=()=>{if(T)if(o.iosFullscreenNativeMode){if(w())return}else{const O=document.querySelector(".vpe-root-wrap");C(O);return}if(document.fullscreenElement){document.exitFullscreen?.();return}const H=b();H&&H.requestFullscreen?.()};return j.useEffect(()=>{const H=()=>{T&&!o.iosFullscreenNativeMode||y({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",H),H(),()=>{document.removeEventListener("fullscreenchange",H)}},[y]),S.jsx(cn,{noBg:!0,children:S.jsxs("div",{className:`vpe-popover-wrap vp-${f}`,children:[S.jsx("div",{className:"vpe-popver",children:S.jsx("div",{className:"vpe-popver-text",children:d.isFullscreen?c?.fullOff??"전체화면 해제":c?.fullOn??"전체화면"})}),S.jsx("button",{type:"button",onClick:V,style:Ie,children:d.isFullscreen?S.jsx(s1,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}):S.jsx(u1,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}})})]})})}function A1({size:i=25,color:a="#ffffff",text:s={},pos:o="left"}){const[c]=Ft(),{toggleSubtitle:f}=re();return S.jsx(S.Fragment,{children:c.hasSubtitle&&S.jsx(cn,{noBg:!0,children:S.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[S.jsx("div",{className:"vpe-popver",children:S.jsx("div",{className:"vpe-popver-text",children:c.isSubtitle?s?.captionOff??"자막끄기":s?.captionOn??"자막켜기"})}),S.jsx("button",{type:"button",onClick:f,style:Ie,children:c.isSubtitle?S.jsx(Jf,{style:{fontSize:i,color:a,cursor:"pointer"}}):S.jsx(t1,{style:{fontSize:i,color:a,cursor:"pointer"}})})]})})})}function C1({size:i=25,weight:a="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[f]=Ft(),{toggleMute:d}=re(),y=f.isVolume??0;return S.jsx(cn,{noBg:!0,children:S.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[S.jsx("div",{className:"vpe-popver",children:S.jsx("div",{className:"vpe-popver-text",children:f.isMuted?o?.muteOff??"음소거 해제":o?.muteOn??"음소거"})}),S.jsx("button",{type:"button",onClick:d,style:Ie,children:S.jsxs(S.Fragment,{children:[(y===0||f.isMuted)&&S.jsx(If,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}),y>=5&&y<=10&&!f.isMuted&&S.jsx($f,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}),y>=11&&y<=50&&!f.isMuted&&S.jsx(Wf,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}),y>=51&&!f.isMuted&&S.jsx(td,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}})]})})]})})}function D1({size:i=25,weight:a="fill",color:s="#ffffff",text:o={},pos:c="left"}){const[f]=Ft(),{setVolume:d,toggleMute:y}=re(),m=f.isVolume??0,p=f.isMuted?0:m;return S.jsxs("div",{className:"VolumeBtnWrap",children:[S.jsxs("div",{className:`vpe-popover-wrap vp-${c}`,children:[S.jsx("div",{className:"vpe-popver",children:S.jsx("div",{className:"vpe-popver-text",children:f.isMuted?o?.muteOff??"음소거 해제":o?.muteOn??"음소거"})}),S.jsx("button",{type:"button",onClick:y,style:Ie,children:S.jsxs(S.Fragment,{children:[(m===0||f.isMuted)&&S.jsx(If,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}),m>=5&&m<=10&&!f.isMuted&&S.jsx($f,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}),m>=11&&m<=50&&!f.isMuted&&S.jsx(Wf,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}}),m>=51&&!f.isMuted&&S.jsx(td,{style:{fontSize:i,fontWeight:a,color:s,cursor:"pointer"}})]})})]}),S.jsx("div",{className:"vslideWrap",children:S.jsx("input",{type:"range",min:0,max:100,value:p,onChange:v=>{const T=Number(v.currentTarget.value);d(Number.isNaN(T)?0:T)},className:"VolumSlide"})})]})}function z1({color:i="#ffffff",size:a=25,text:s={},pos:o="left"}){const[c,f]=Ft(),d=c.isHd,y=c.is4k;return S.jsx(S.Fragment,{children:S.jsx(cn,{noBg:!0,children:S.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[S.jsx("div",{className:"vpe-popver",children:S.jsx("div",{className:"vpe-popver-text",children:s?.setting??"설정"})}),S.jsxs("button",{type:"button",onClick:()=>{f({isSettingModal:!c.isSettingModal})},style:Ie,children:[(d||y)&&S.jsx("div",{style:{position:"absolute",right:"-4px",top:"-4px",backgroundColor:"#ffffff",width:"12px",height:"12px"},children:d&&S.jsx(E1,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})||y&&S.jsx(x1,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})}),S.jsx(Ig,{style:{fontSize:a,color:i,cursor:"pointer"}})]})]})})})}function R1({color:i="#ffffff",size:a=25,text:s={},pos:o="left"}){const{togglePictureInPicture:c}=re();return S.jsx(S.Fragment,{children:S.jsx(cn,{noBg:!0,children:S.jsxs("div",{className:`vpe-popover-wrap vp-${o}`,children:[S.jsx("div",{className:"vpe-popver",children:S.jsx("div",{className:"vpe-popver-text",children:s?.miniPlayer??"미니플레이어"})}),S.jsx("button",{type:"button",onClick:()=>{c()},style:Ie,children:S.jsx($g,{style:{fontSize:a,color:i,cursor:"pointer"}})})]})})})}function j1(i){const{useTouch:a}=re();return S.jsx("div",{className:"absolute z-[2] h-full w-full bg-neutral-900/20 flex items-center justify-center",style:{background:`url(${i.poster}) center / ${i.options?.objectFit||"contain"} no-repeat`},onClick:()=>{a()},onTouchStart:()=>{a()},children:S.jsx("div",{children:S.jsx(Il,{noPadding:!0,children:S.jsx(id,{size:50})})})})}function ld(i){const[a]=Ft(),{poster:s,options:o}=i,c={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${s}) center / ${o?.objectFit||"contain"} no-repeat`};return S.jsx(S.Fragment,{children:a.isLoading&&S.jsx("div",{style:c,children:S.jsx("div",{className:"ncplayer-spinner"})})})}function O1(i){const[a,s]=Ft(),{playBackRate:o,selectQualityLevel:c}=re(),{text:f}=i,d=i.vtt??i.src?.vtt??[],y=a.currentLevel??-1,m=a.levels?.find(O=>O.index===y),p=a.isAutoLevel?f.auto:m?.name??(m?.height?`${m.height}p`:`${y}`),[v,T]=j.useState(0),[b,C]=j.useState("forward"),[w,V]=j.useState(!1),H=j.useCallback(O=>{C(O>v?"forward":"back"),T(O),V(!0)},[v]);return j.useEffect(()=>{if(!w)return;const O=window.setTimeout(()=>{V(!1)},200);return()=>window.clearTimeout(O)},[w]),S.jsx("div",{className:"vpe-setting-modal",children:S.jsxs("div",{className:"vpe-setting-content",children:[S.jsxs("div",{style:c1,children:[S.jsxs("div",{style:f1,children:[v===0&&S.jsx("div",{children:f.setting}),v>0&&S.jsx("div",{style:d1,children:S.jsx("div",{children:S.jsxs("button",{onClick:()=>{H(0)},type:"button",style:{...nd,...h1},children:[S.jsx(a1,{style:{fontSize:"12px"},color:"#ffffff"}),S.jsxs("div",{children:[v==1&&f.quality,v==2&&f.playbackRate,v==3&&f.captions]})]})})})]}),S.jsx("div",{children:S.jsx("button",{type:"button",style:nd,onClick:()=>{s({isSettingModal:!1})},children:S.jsx(l1,{size:25,color:"#ffffff"})})})]}),S.jsxs("div",{className:"vpe-modal-menu",children:[v===0&&S.jsxs("div",{className:`vpe-modal-menu-panel ${w?`vpe-modal-menu-${b}`:""}`,style:ts,children:[S.jsxs("button",{type:"button",style:tn,className:"vpe-menu-item",onClick:()=>{H(1)},children:[S.jsx("div",{children:S.jsx(Wg,{size:25,color:"#ffffff"})}),S.jsx("div",{style:Bn,children:f.quality}),S.jsxs("div",{style:Qu,children:[S.jsx("span",{style:es,children:p}),S.jsx($l,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),S.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{H(2)},children:[S.jsx("div",{children:S.jsx(i1,{size:25,color:"#ffffff"})}),S.jsx("div",{style:Bn,children:f.playbackRate}),S.jsxs("div",{style:Qu,children:[S.jsxs("span",{style:es,children:[a.playbackRate,"x"]}),S.jsx($l,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),S.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{H(3)},children:[S.jsx("div",{children:S.jsx(Jf,{size:25,color:"#ffffff"})}),S.jsx("div",{style:Bn,children:f.captions}),S.jsxs("div",{style:Qu,children:[S.jsx(S.Fragment,{children:a.isSubtitle?S.jsx(S.Fragment,{children:d.map((O,k)=>S.jsx("span",{children:a.subTitleIdx===k&&S.jsx("span",{style:es,children:O.label})},`${O.id}-${O.src}`))}):S.jsx("span",{style:es,children:f.notUse})}),S.jsx($l,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},v),v===1&&S.jsxs("div",{className:`vpe-modal-menu-panel ${w?`vpe-modal-menu-${b}`:""}`,style:ts,children:[S.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{c("auto")},children:[S.jsx("div",{children:S.jsx(_a,{size:15,color:a.isAutoLevel?"#ffffff":"transparent"})}),S.jsx("div",{style:Bn,children:f.auto})]}),[...a.levels??[]].sort((O,k)=>(k.height??0)-(O.height??0)).map(O=>{const k=O.name??(O.height?`${O.height}p`:`${O.index}`);return S.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{c(O.index)},children:[S.jsx("div",{children:S.jsx(_a,{size:15,color:!a.isAutoLevel&&a.currentLevel===O.index?"#ffffff":"transparent"})}),S.jsx("div",{style:Bn,children:k})]},O.index)})]},v),v===2&&S.jsx("div",{className:`vpe-modal-menu-panel ${w?`vpe-modal-menu-${b}`:""}`,style:ts,children:(i.options?.playRateSetting??[]).map(O=>S.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{o(O),s({playbackRate:O}),H(0)},children:[S.jsx("div",{children:S.jsx(_a,{size:15,color:a.playbackRate===O?"#ffffff":"transparent"})}),S.jsxs("div",{style:Bn,children:[O,"x"]})]},O))},v),v===3&&S.jsxs("div",{className:`vpe-modal-menu-panel ${w?`vpe-modal-menu-${b}`:""}`,style:ts,children:[S.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{s({isSubtitle:!1})},children:[S.jsx("div",{children:S.jsx(_a,{size:15,color:a.isSubtitle?"transparent":"#ffffff"})}),S.jsx("div",{style:Bn,children:f.notUse})]}),d.map((O,k)=>S.jsxs("button",{type:"button",className:"vpe-menu-item",style:tn,onClick:()=>{s({isSubtitle:!0,subTitleIdx:k})},children:[S.jsx("div",{children:S.jsx(_a,{size:15,color:a.isSubtitle&&a.subTitleIdx===k?"#ffffff":"transparent"})}),S.jsx("div",{style:Bn,children:O.label})]},`${O.id}-${O.src}`))]},v)]})]})})}const Pu=j.createContext({});function Fu(i){const a=j.useRef(null);return a.current===null&&(a.current=i()),a.current}const Ju=typeof window<"u",sd=Ju?j.useLayoutEffect:j.useEffect,ns=j.createContext(null);function Wu(i,a){i.indexOf(a)===-1&&i.push(a)}function $u(i,a){const s=i.indexOf(a);s>-1&&i.splice(s,1)}const fn=(i,a,s)=>s>a?a:s<i?i:s;let Iu=()=>{};const dn={},ud=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function od(i){return typeof i=="object"&&i!==null}const rd=i=>/^0[^.\s]+$/u.test(i);function to(i){let a;return()=>(a===void 0&&(a=i()),a)}const we=i=>i,B1=(i,a)=>s=>a(i(s)),Ha=(...i)=>i.reduce(B1),Ga=(i,a,s)=>{const o=a-i;return o===0?1:(s-i)/o};class eo{constructor(){this.subscriptions=[]}add(a){return Wu(this.subscriptions,a),()=>$u(this.subscriptions,a)}notify(a,s,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](a,s,o);else for(let f=0;f<c;f++){const d=this.subscriptions[f];d&&d(a,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const en=i=>i*1e3,Ne=i=>i/1e3;function cd(i,a){return a?i*(1e3/a):0}const fd=(i,a,s)=>(((1-3*s+3*a)*i+(3*s-6*a))*i+3*a)*i,V1=1e-7,L1=12;function w1(i,a,s,o,c){let f,d,y=0;do d=a+(s-a)/2,f=fd(d,o,c)-i,f>0?s=d:a=d;while(Math.abs(f)>V1&&++y<L1);return d}function Ya(i,a,s,o){if(i===a&&s===o)return we;const c=f=>w1(f,0,1,i,s);return f=>f===0||f===1?f:fd(c(f),a,o)}const dd=i=>a=>a<=.5?i(2*a)/2:(2-i(2*(1-a)))/2,hd=i=>a=>1-i(1-a),md=Ya(.33,1.53,.69,.99),no=hd(md),pd=dd(no),yd=i=>(i*=2)<1?.5*no(i):.5*(2-Math.pow(2,-10*(i-1))),io=i=>1-Math.sin(Math.acos(i)),vd=hd(io),gd=dd(io),N1=Ya(.42,0,1,1),U1=Ya(0,0,.58,1),Sd=Ya(.42,0,.58,1),_1=i=>Array.isArray(i)&&typeof i[0]!="number",bd=i=>Array.isArray(i)&&typeof i[0]=="number",H1={linear:we,easeIn:N1,easeInOut:Sd,easeOut:U1,circIn:io,circInOut:gd,circOut:vd,backIn:no,backInOut:pd,backOut:md,anticipate:yd},G1=i=>typeof i=="string",Td=i=>{if(bd(i)){Iu(i.length===4);const[a,s,o,c]=i;return Ya(a,s,o,c)}else if(G1(i))return H1[i];return i},is=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Y1(i,a){let s=new Set,o=new Set,c=!1,f=!1;const d=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function m(v){d.has(v)&&(p.schedule(v),i()),v(y)}const p={schedule:(v,T=!1,b=!1)=>{const w=b&&c?s:o;return T&&d.add(v),w.has(v)||w.add(v),v},cancel:v=>{o.delete(v),d.delete(v)},process:v=>{if(y=v,c){f=!0;return}c=!0,[s,o]=[o,s],s.forEach(m),s.clear(),c=!1,f&&(f=!1,p.process(v))}};return p}const q1=40;function xd(i,a){let s=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=is.reduce((Q,G)=>(Q[G]=Y1(f),Q),{}),{setup:y,read:m,resolveKeyframes:p,preUpdate:v,update:T,preRender:b,render:C,postRender:w}=d,V=()=>{const Q=dn.useManualTiming?c.timestamp:performance.now();s=!1,dn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(Q-c.timestamp,q1),1)),c.timestamp=Q,c.isProcessing=!0,y.process(c),m.process(c),p.process(c),v.process(c),T.process(c),b.process(c),C.process(c),w.process(c),c.isProcessing=!1,s&&a&&(o=!1,i(V))},H=()=>{s=!0,o=!0,c.isProcessing||i(V)};return{schedule:is.reduce((Q,G)=>{const L=d[G];return Q[G]=(K,J=!1,Z=!1)=>(s||H(),L.schedule(K,J,Z)),Q},{}),cancel:Q=>{for(let G=0;G<is.length;G++)d[is[G]].cancel(Q)},state:c,steps:d}}const{schedule:Lt,cancel:Vn,state:ee,steps:ao}=xd(typeof requestAnimationFrame<"u"?requestAnimationFrame:we,!0);let as;function k1(){as=void 0}const pe={now:()=>(as===void 0&&pe.set(ee.isProcessing||dn.useManualTiming?ee.timestamp:performance.now()),as),set:i=>{as=i,queueMicrotask(k1)}},Ed=i=>a=>typeof a=="string"&&a.startsWith(i),Md=Ed("--"),X1=Ed("var(--"),lo=i=>X1(i)?K1.test(i.split("/*")[0].trim()):!1,K1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ui={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},qa={...Ui,transform:i=>fn(0,1,i)},ls={...Ui,default:1},ka=i=>Math.round(i*1e5)/1e5,so=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Z1(i){return i==null}const Q1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uo=(i,a)=>s=>!!(typeof s=="string"&&Q1.test(s)&&s.startsWith(i)||a&&!Z1(s)&&Object.prototype.hasOwnProperty.call(s,a)),Ad=(i,a,s)=>o=>{if(typeof o!="string")return o;const[c,f,d,y]=o.match(so);return{[i]:parseFloat(c),[a]:parseFloat(f),[s]:parseFloat(d),alpha:y!==void 0?parseFloat(y):1}},P1=i=>fn(0,255,i),oo={...Ui,transform:i=>Math.round(P1(i))},ri={test:uo("rgb","red"),parse:Ad("red","green","blue"),transform:({red:i,green:a,blue:s,alpha:o=1})=>"rgba("+oo.transform(i)+", "+oo.transform(a)+", "+oo.transform(s)+", "+ka(qa.transform(o))+")"};function F1(i){let a="",s="",o="",c="";return i.length>5?(a=i.substring(1,3),s=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(a=i.substring(1,2),s=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),a+=a,s+=s,o+=o,c+=c),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const ro={test:uo("#"),parse:F1,transform:ri.transform},Xa=i=>({test:a=>typeof a=="string"&&a.endsWith(i)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${i}`}),Ln=Xa("deg"),nn=Xa("%"),lt=Xa("px"),J1=Xa("vh"),W1=Xa("vw"),Cd={...nn,parse:i=>nn.parse(i)/100,transform:i=>nn.transform(i*100)},_i={test:uo("hsl","hue"),parse:Ad("hue","saturation","lightness"),transform:({hue:i,saturation:a,lightness:s,alpha:o=1})=>"hsla("+Math.round(i)+", "+nn.transform(ka(a))+", "+nn.transform(ka(s))+", "+ka(qa.transform(o))+")"},Xt={test:i=>ri.test(i)||ro.test(i)||_i.test(i),parse:i=>ri.test(i)?ri.parse(i):_i.test(i)?_i.parse(i):ro.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?ri.transform(i):_i.transform(i),getAnimatableNone:i=>{const a=Xt.parse(i);return a.alpha=0,Xt.transform(a)}},$1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function I1(i){return isNaN(i)&&typeof i=="string"&&(i.match(so)?.length||0)+(i.match($1)?.length||0)>0}const Dd="number",zd="color",tS="var",eS="var(",Rd="${}",nS=/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 Ka(i){const a=i.toString(),s=[],o={color:[],number:[],var:[]},c=[];let f=0;const y=a.replace(nS,m=>(Xt.test(m)?(o.color.push(f),c.push(zd),s.push(Xt.parse(m))):m.startsWith(eS)?(o.var.push(f),c.push(tS),s.push(m)):(o.number.push(f),c.push(Dd),s.push(parseFloat(m))),++f,Rd)).split(Rd);return{values:s,split:y,indexes:o,types:c}}function jd(i){return Ka(i).values}function Od(i){const{split:a,types:s}=Ka(i),o=a.length;return c=>{let f="";for(let d=0;d<o;d++)if(f+=a[d],c[d]!==void 0){const y=s[d];y===Dd?f+=ka(c[d]):y===zd?f+=Xt.transform(c[d]):f+=c[d]}return f}}const iS=i=>typeof i=="number"?0:Xt.test(i)?Xt.getAnimatableNone(i):i;function aS(i){const a=jd(i);return Od(i)(a.map(iS))}const wn={test:I1,parse:jd,createTransformer:Od,getAnimatableNone:aS};function co(i,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+(a-i)*6*s:s<1/2?a:s<2/3?i+(a-i)*(2/3-s)*6:i}function lS({hue:i,saturation:a,lightness:s,alpha:o}){i/=360,a/=100,s/=100;let c=0,f=0,d=0;if(!a)c=f=d=s;else{const y=s<.5?s*(1+a):s+a-s*a,m=2*s-y;c=co(m,y,i+1/3),f=co(m,y,i),d=co(m,y,i-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:o}}function ss(i,a){return s=>s>0?a:i}const Ut=(i,a,s)=>i+(a-i)*s,fo=(i,a,s)=>{const o=i*i,c=s*(a*a-o)+o;return c<0?0:Math.sqrt(c)},sS=[ro,ri,_i],uS=i=>sS.find(a=>a.test(i));function Bd(i){const a=uS(i);if(!a)return!1;let s=a.parse(i);return a===_i&&(s=lS(s)),s}const Vd=(i,a)=>{const s=Bd(i),o=Bd(a);if(!s||!o)return ss(i,a);const c={...s};return f=>(c.red=fo(s.red,o.red,f),c.green=fo(s.green,o.green,f),c.blue=fo(s.blue,o.blue,f),c.alpha=Ut(s.alpha,o.alpha,f),ri.transform(c))},ho=new Set(["none","hidden"]);function oS(i,a){return ho.has(i)?s=>s<=0?i:a:s=>s>=1?a:i}function rS(i,a){return s=>Ut(i,a,s)}function mo(i){return typeof i=="number"?rS:typeof i=="string"?lo(i)?ss:Xt.test(i)?Vd:dS:Array.isArray(i)?Ld:typeof i=="object"?Xt.test(i)?Vd:cS:ss}function Ld(i,a){const s=[...i],o=s.length,c=i.map((f,d)=>mo(f)(f,a[d]));return f=>{for(let d=0;d<o;d++)s[d]=c[d](f);return s}}function cS(i,a){const s={...i,...a},o={};for(const c in s)i[c]!==void 0&&a[c]!==void 0&&(o[c]=mo(i[c])(i[c],a[c]));return c=>{for(const f in o)s[f]=o[f](c);return s}}function fS(i,a){const s=[],o={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const f=a.types[c],d=i.indexes[f][o[f]],y=i.values[d]??0;s[c]=y,o[f]++}return s}const dS=(i,a)=>{const s=wn.createTransformer(a),o=Ka(i),c=Ka(a);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?ho.has(i)&&!c.values.length||ho.has(a)&&!o.values.length?oS(i,a):Ha(Ld(fS(o,c),c.values),s):ss(i,a)};function wd(i,a,s){return typeof i=="number"&&typeof a=="number"&&typeof s=="number"?Ut(i,a,s):mo(i)(i,a)}const hS=i=>{const a=({timestamp:s})=>i(s);return{start:(s=!0)=>Lt.update(a,s),stop:()=>Vn(a),now:()=>ee.isProcessing?ee.timestamp:pe.now()}},Nd=(i,a,s=10)=>{let o="";const c=Math.max(Math.round(a/s),2);for(let f=0;f<c;f++)o+=Math.round(i(f/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},us=2e4;function po(i){let a=0;const s=50;let o=i.next(a);for(;!o.done&&a<us;)a+=s,o=i.next(a);return a>=us?1/0:a}function mS(i,a=100,s){const o=s({...i,keyframes:[0,a]}),c=Math.min(po(o),us);return{type:"keyframes",ease:f=>o.next(c*f).value/a,duration:Ne(c)}}const pS=5;function Ud(i,a,s){const o=Math.max(a-pS,0);return cd(s-i(o),a-o)}const Ht={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},yo=.001;function yS({duration:i=Ht.duration,bounce:a=Ht.bounce,velocity:s=Ht.velocity,mass:o=Ht.mass}){let c,f,d=1-a;d=fn(Ht.minDamping,Ht.maxDamping,d),i=fn(Ht.minDuration,Ht.maxDuration,Ne(i)),d<1?(c=p=>{const v=p*d,T=v*i,b=v-s,C=vo(p,d),w=Math.exp(-T);return yo-b/C*w},f=p=>{const T=p*d*i,b=T*s+s,C=Math.pow(d,2)*Math.pow(p,2)*i,w=Math.exp(-T),V=vo(Math.pow(p,2),d);return(-c(p)+yo>0?-1:1)*((b-C)*w)/V}):(c=p=>{const v=Math.exp(-p*i),T=(p-s)*i+1;return-yo+v*T},f=p=>{const v=Math.exp(-p*i),T=(s-p)*(i*i);return v*T});const y=5/i,m=gS(c,f,y);if(i=en(i),isNaN(m))return{stiffness:Ht.stiffness,damping:Ht.damping,duration:i};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:d*2*Math.sqrt(o*p),duration:i}}}const vS=12;function gS(i,a,s){let o=s;for(let c=1;c<vS;c++)o=o-i(o)/a(o);return o}function vo(i,a){return i*Math.sqrt(1-a*a)}const SS=["duration","bounce"],bS=["stiffness","damping","mass"];function _d(i,a){return a.some(s=>i[s]!==void 0)}function TS(i){let a={velocity:Ht.velocity,stiffness:Ht.stiffness,damping:Ht.damping,mass:Ht.mass,isResolvedFromDuration:!1,...i};if(!_d(i,bS)&&_d(i,SS))if(i.visualDuration){const s=i.visualDuration,o=2*Math.PI/(s*1.2),c=o*o,f=2*fn(.05,1,1-(i.bounce||0))*Math.sqrt(c);a={...a,mass:Ht.mass,stiffness:c,damping:f}}else{const s=yS(i);a={...a,...s,mass:Ht.mass},a.isResolvedFromDuration=!0}return a}function os(i=Ht.visualDuration,a=Ht.bounce){const s=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:a}:i;let{restSpeed:o,restDelta:c}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],y={done:!1,value:f},{stiffness:m,damping:p,mass:v,duration:T,velocity:b,isResolvedFromDuration:C}=TS({...s,velocity:-Ne(s.velocity||0)}),w=b||0,V=p/(2*Math.sqrt(m*v)),H=d-f,O=Ne(Math.sqrt(m/v)),k=Math.abs(H)<5;o||(o=k?Ht.restSpeed.granular:Ht.restSpeed.default),c||(c=k?Ht.restDelta.granular:Ht.restDelta.default);let Q;if(V<1){const L=vo(O,V);Q=K=>{const J=Math.exp(-V*O*K);return d-J*((w+V*O*H)/L*Math.sin(L*K)+H*Math.cos(L*K))}}else if(V===1)Q=L=>d-Math.exp(-O*L)*(H+(w+O*H)*L);else{const L=O*Math.sqrt(V*V-1);Q=K=>{const J=Math.exp(-V*O*K),Z=Math.min(L*K,300);return d-J*((w+V*O*H)*Math.sinh(Z)+L*H*Math.cosh(Z))/L}}const G={calculatedDuration:C&&T||null,next:L=>{const K=Q(L);if(C)y.done=L>=T;else{let J=L===0?w:0;V<1&&(J=L===0?en(w):Ud(Q,L,K));const Z=Math.abs(J)<=o,tt=Math.abs(d-K)<=c;y.done=Z&&tt}return y.value=y.done?d:K,y},toString:()=>{const L=Math.min(po(G),us),K=Nd(J=>G.next(L*J).value,L,30);return L+"ms "+K},toTransition:()=>{}};return G}os.applyToOptions=i=>{const a=mS(i,100,os);return i.ease=a.ease,i.duration=en(a.duration),i.type="keyframes",i};function go({keyframes:i,velocity:a=0,power:s=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:y,max:m,restDelta:p=.5,restSpeed:v}){const T=i[0],b={done:!1,value:T},C=Z=>y!==void 0&&Z<y||m!==void 0&&Z>m,w=Z=>y===void 0?m:m===void 0||Math.abs(y-Z)<Math.abs(m-Z)?y:m;let V=s*a;const H=T+V,O=d===void 0?H:d(H);O!==H&&(V=O-T);const k=Z=>-V*Math.exp(-Z/o),Q=Z=>O+k(Z),G=Z=>{const tt=k(Z),it=Q(Z);b.done=Math.abs(tt)<=p,b.value=b.done?O:it};let L,K;const J=Z=>{C(b.value)&&(L=Z,K=os({keyframes:[b.value,w(b.value)],velocity:Ud(Q,Z,b.value),damping:c,stiffness:f,restDelta:p,restSpeed:v}))};return J(0),{calculatedDuration:null,next:Z=>{let tt=!1;return!K&&L===void 0&&(tt=!0,G(Z),J(Z)),L!==void 0&&Z>=L?K.next(Z-L):(!tt&&G(Z),b)}}}function xS(i,a,s){const o=[],c=s||dn.mix||wd,f=i.length-1;for(let d=0;d<f;d++){let y=c(i[d],i[d+1]);if(a){const m=Array.isArray(a)?a[d]||we:a;y=Ha(m,y)}o.push(y)}return o}function ES(i,a,{clamp:s=!0,ease:o,mixer:c}={}){const f=i.length;if(Iu(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const d=i[0]===i[1];i[0]>i[f-1]&&(i=[...i].reverse(),a=[...a].reverse());const y=xS(a,o,c),m=y.length,p=v=>{if(d&&v<i[0])return a[0];let T=0;if(m>1)for(;T<i.length-2&&!(v<i[T+1]);T++);const b=Ga(i[T],i[T+1],v);return y[T](b)};return s?v=>p(fn(i[0],i[f-1],v)):p}function MS(i,a){const s=i[i.length-1];for(let o=1;o<=a;o++){const c=Ga(0,a,o);i.push(Ut(s,1,c))}}function AS(i){const a=[0];return MS(a,i.length-1),a}function CS(i,a){return i.map(s=>s*a)}function DS(i,a){return i.map(()=>a||Sd).splice(0,i.length-1)}function Za({duration:i=300,keyframes:a,times:s,ease:o="easeInOut"}){const c=_1(o)?o.map(Td):Td(o),f={done:!1,value:a[0]},d=CS(s&&s.length===a.length?s:AS(a),i),y=ES(d,a,{ease:Array.isArray(c)?c:DS(a,c)});return{calculatedDuration:i,next:m=>(f.value=y(m),f.done=m>=i,f)}}const zS=i=>i!==null;function So(i,{repeat:a,repeatType:s="loop"},o,c=1){const f=i.filter(zS),y=c<0||a&&s!=="loop"&&a%2===1?0:f.length-1;return!y||o===void 0?f[y]:o}const RS={decay:go,inertia:go,tween:Za,keyframes:Za,spring:os};function Hd(i){typeof i.type=="string"&&(i.type=RS[i.type])}class bo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,s){return this.finished.then(a,s)}}const jS=i=>i/100;class To extends bo{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==pe.now()&&this.tick(pe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;Hd(a);const{type:s=Za,repeat:o=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=a;let{keyframes:y}=a;const m=s||Za;m!==Za&&typeof y[0]!="number"&&(this.mixKeyframes=Ha(jS,wd(y[0],y[1])),y=[0,100]);const p=m({...a,keyframes:y});f==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...y].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=po(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(a){const s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!1){const{generator:o,totalDuration:c,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:y,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:v,repeat:T,repeatType:b,repeatDelay:C,type:w,onUpdate:V,finalKeyframe:H}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-c/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const O=this.currentTime-p*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?O<0:O>c;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Q=this.currentTime,G=o;if(T){const Z=Math.min(this.currentTime,c)/y;let tt=Math.floor(Z),it=Z%1;!it&&Z>=1&&(it=1),it===1&&tt--,tt=Math.min(tt,T+1),!!(tt%2)&&(b==="reverse"?(it=1-it,C&&(it-=C/y)):b==="mirror"&&(G=d)),Q=fn(0,1,it)*y}const L=k?{done:!1,value:v[0]}:G.next(Q);f&&(L.value=f(L.value));let{done:K}=L;!k&&m!==null&&(K=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&K);return J&&w!==go&&(L.value=So(v,this.options,H,this.speed)),V&&V(L.value),J&&this.finish(),L}then(a,s){return this.finished.then(a,s)}get duration(){return Ne(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ne(a)}get time(){return Ne(this.currentTime)}set time(a){a=en(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(pe.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Ne(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=hS,startTime:s}=this.options;this.driver||(this.driver=a(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),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(pe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function OS(i){for(let a=1;a<i.length;a++)i[a]??(i[a]=i[a-1])}const ci=i=>i*180/Math.PI,xo=i=>{const a=ci(Math.atan2(i[1],i[0]));return Eo(a)},BS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:xo,rotateZ:xo,skewX:i=>ci(Math.atan(i[1])),skewY:i=>ci(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},Eo=i=>(i=i%360,i<0&&(i+=360),i),Gd=xo,Yd=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),qd=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),VS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yd,scaleY:qd,scale:i=>(Yd(i)+qd(i))/2,rotateX:i=>Eo(ci(Math.atan2(i[6],i[5]))),rotateY:i=>Eo(ci(Math.atan2(-i[2],i[0]))),rotateZ:Gd,rotate:Gd,skewX:i=>ci(Math.atan(i[4])),skewY:i=>ci(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function Mo(i){return i.includes("scale")?1:0}function Ao(i,a){if(!i||i==="none")return Mo(a);const s=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(s)o=VS,c=s;else{const y=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=BS,c=y}if(!c)return Mo(a);const f=o[a],d=c[1].split(",").map(wS);return typeof f=="function"?f(d):d[f]}const LS=(i,a)=>{const{transform:s="none"}=getComputedStyle(i);return Ao(s,a)};function wS(i){return parseFloat(i.trim())}const Hi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gi=new Set(Hi),kd=i=>i===Ui||i===lt,NS=new Set(["x","y","z"]),US=Hi.filter(i=>!NS.has(i));function _S(i){const a=[];return US.forEach(s=>{const o=i.getValue(s);o!==void 0&&(a.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),a}const fi={width:({x:i},{paddingLeft:a="0",paddingRight:s="0"})=>i.max-i.min-parseFloat(a)-parseFloat(s),height:({y:i},{paddingTop:a="0",paddingBottom:s="0"})=>i.max-i.min-parseFloat(a)-parseFloat(s),top:(i,{top:a})=>parseFloat(a),left:(i,{left:a})=>parseFloat(a),bottom:({y:i},{top:a})=>parseFloat(a)+(i.max-i.min),right:({x:i},{left:a})=>parseFloat(a)+(i.max-i.min),x:(i,{transform:a})=>Ao(a,"x"),y:(i,{transform:a})=>Ao(a,"y")};fi.translateX=fi.x,fi.translateY=fi.y;const di=new Set;let Co=!1,Do=!1,zo=!1;function Xd(){if(Do){const i=Array.from(di).filter(o=>o.needsMeasurement),a=new Set(i.map(o=>o.element)),s=new Map;a.forEach(o=>{const c=_S(o);c.length&&(s.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const c=s.get(o);c&&c.forEach(([f,d])=>{o.getValue(f)?.set(d)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Do=!1,Co=!1,di.forEach(i=>i.complete(zo)),di.clear()}function Kd(){di.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Do=!0)})}function HS(){zo=!0,Kd(),Xd(),zo=!1}class Ro{constructor(a,s,o,c,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=o,this.motionValue=c,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(di.add(this),Co||(Co=!0,Lt.read(Kd),Lt.resolveKeyframes(Xd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:o,motionValue:c}=this;if(a[0]===null){const f=c?.get(),d=a[a.length-1];if(f!==void 0)a[0]=f;else if(o&&s){const y=o.readValue(s,d);y!=null&&(a[0]=y)}a[0]===void 0&&(a[0]=d),c&&f===void 0&&c.set(a[0])}OS(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),di.delete(this)}cancel(){this.state==="scheduled"&&(di.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const GS=i=>i.startsWith("--");function YS(i,a,s){GS(a)?i.style.setProperty(a,s):i.style[a]=s}const qS=to(()=>window.ScrollTimeline!==void 0),kS={};function XS(i,a){const s=to(i);return()=>kS[a]??s()}const Zd=XS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qa=([i,a,s,o])=>`cubic-bezier(${i}, ${a}, ${s}, ${o})`,Qd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qa([0,.65,.55,1]),circOut:Qa([.55,0,1,.45]),backIn:Qa([.31,.01,.66,-.59]),backOut:Qa([.33,1.53,.69,.99])};function Pd(i,a){if(i)return typeof i=="function"?Zd()?Nd(i,a):"ease-out":bd(i)?Qa(i):Array.isArray(i)?i.map(s=>Pd(s,a)||Qd.easeOut):Qd[i]}function KS(i,a,s,{delay:o=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:y="easeOut",times:m}={},p=void 0){const v={[a]:s};m&&(v.offset=m);const T=Pd(y,c);Array.isArray(T)&&(v.easing=T);const b={delay:o,duration:c,easing:Array.isArray(T)?"linear":T,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),i.animate(v,b)}function Fd(i){return typeof i=="function"&&"applyToOptions"in i}function ZS({type:i,...a}){return Fd(i)&&Zd()?i.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class QS extends bo{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:s,name:o,keyframes:c,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:y,onComplete:m}=a;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=a,Iu(typeof a.type!="string");const p=ZS(a);this.animation=KS(s,o,c,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=So(c,this.options,y,this.speed);this.updateMotionValue?this.updateMotionValue(v):YS(s,o,v),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const a=this.animation.effect?.getComputedTiming?.().duration||0;return Ne(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ne(a)}get time(){return Ne(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=en(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(a){this.animation.startTime=a}attachTimeline({timeline:a,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&qS()?(this.animation.timeline=a,we):s(this)}}const Jd={anticipate:yd,backInOut:pd,circInOut:gd};function PS(i){return i in Jd}function FS(i){typeof i.ease=="string"&&PS(i.ease)&&(i.ease=Jd[i.ease])}const Wd=10;class JS extends QS{constructor(a){FS(a),Hd(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:o,onComplete:c,element:f,...d}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const y=new To({...d,autoplay:!1}),m=en(this.finishedTime??this.time);s.setWithVelocity(y.sample(m-Wd).value,y.sample(m).value,Wd),y.stop()}}const $d=(i,a)=>a==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(wn.test(i)||i==="0")&&!i.startsWith("url("));function WS(i){const a=i[0];if(i.length===1)return!0;for(let s=0;s<i.length;s++)if(i[s]!==a)return!0}function $S(i,a,s,o){const c=i[0];if(c===null)return!1;if(a==="display"||a==="visibility")return!0;const f=i[i.length-1],d=$d(c,a),y=$d(f,a);return!d||!y?!1:WS(i)||(s==="spring"||Fd(s))&&o}function jo(i){i.duration=0,i.type="keyframes"}const IS=new Set(["opacity","clipPath","filter","transform"]),tb=to(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eb(i){const{motionValue:a,name:s,repeatDelay:o,repeatType:c,damping:f,type:d}=i;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=a.owner.getProps();return tb()&&s&&IS.has(s)&&(s!=="transform"||!p)&&!m&&!o&&c!=="mirror"&&f!==0&&d!=="inertia"}const nb=40;class ib extends bo{constructor({autoplay:a=!0,delay:s=0,type:o="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:y,name:m,motionValue:p,element:v,...T}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=pe.now();const b={autoplay:a,delay:s,type:o,repeat:c,repeatDelay:f,repeatType:d,name:m,motionValue:p,element:v,...T},C=v?.KeyframeResolver||Ro;this.keyframeResolver=new C(y,(w,V,H)=>this.onKeyframesResolved(w,V,b,!H),m,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,s,o,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:y,delay:m,isHandoff:p,onUpdate:v}=o;this.resolvedAt=pe.now(),$S(a,f,d,y)||((dn.instantAnimations||!m)&&v?.(So(a,o,s)),a[0]=a[a.length-1],jo(o),o.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>nb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:a},C=!p&&eb(b)?new JS({...b,element:b.motionValue.owner.current}):new To(b);C.finished.then(()=>this.notifyFinished()).catch(we),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),HS()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const ab=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lb(i){const a=ab.exec(i);if(!a)return[,];const[,s,o,c]=a;return[`--${s??o}`,c]}function Id(i,a,s=1){const[o,c]=lb(i);if(!o)return;const f=window.getComputedStyle(a).getPropertyValue(o);if(f){const d=f.trim();return ud(d)?parseFloat(d):d}return lo(c)?Id(c,a,s+1):c}function Oo(i,a){return i?.[a]??i?.default??i}const th=new Set(["width","height","top","left","right","bottom",...Hi]),sb={test:i=>i==="auto",parse:i=>i},eh=i=>a=>a.test(i),nh=[Ui,lt,nn,Ln,W1,J1,sb],ih=i=>nh.find(eh(i));function ub(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||rd(i):!0}const ob=new Set(["brightness","contrast","saturate","opacity"]);function rb(i){const[a,s]=i.slice(0,-1).split("(");if(a==="drop-shadow")return i;const[o]=s.match(so)||[];if(!o)return i;const c=s.replace(o,"");let f=ob.has(a)?1:0;return o!==s&&(f*=100),a+"("+f+c+")"}const cb=/\b([a-z-]*)\(.*?\)/gu,Bo={...wn,getAnimatableNone:i=>{const a=i.match(cb);return a?a.map(rb).join(" "):i}},ah={...Ui,transform:Math.round},Vo={borderWidth:lt,borderTopWidth:lt,borderRightWidth:lt,borderBottomWidth:lt,borderLeftWidth:lt,borderRadius:lt,radius:lt,borderTopLeftRadius:lt,borderTopRightRadius:lt,borderBottomRightRadius:lt,borderBottomLeftRadius:lt,width:lt,maxWidth:lt,height:lt,maxHeight:lt,top:lt,right:lt,bottom:lt,left:lt,padding:lt,paddingTop:lt,paddingRight:lt,paddingBottom:lt,paddingLeft:lt,margin:lt,marginTop:lt,marginRight:lt,marginBottom:lt,marginLeft:lt,backgroundPositionX:lt,backgroundPositionY:lt,...{rotate:Ln,rotateX:Ln,rotateY:Ln,rotateZ:Ln,scale:ls,scaleX:ls,scaleY:ls,scaleZ:ls,skew:Ln,skewX:Ln,skewY:Ln,distance:lt,translateX:lt,translateY:lt,translateZ:lt,x:lt,y:lt,z:lt,perspective:lt,transformPerspective:lt,opacity:qa,originX:Cd,originY:Cd,originZ:lt},zIndex:ah,fillOpacity:qa,strokeOpacity:qa,numOctaves:ah},fb={...Vo,color:Xt,backgroundColor:Xt,outlineColor:Xt,fill:Xt,stroke:Xt,borderColor:Xt,borderTopColor:Xt,borderRightColor:Xt,borderBottomColor:Xt,borderLeftColor:Xt,filter:Bo,WebkitFilter:Bo},lh=i=>fb[i];function sh(i,a){let s=lh(i);return s!==Bo&&(s=wn),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const db=new Set(["auto","none","0"]);function hb(i,a,s){let o=0,c;for(;o<i.length&&!c;){const f=i[o];typeof f=="string"&&!db.has(f)&&Ka(f).values.length&&(c=i[o]),o++}if(c&&s)for(const f of a)i[f]=sh(s,c)}class mb extends Ro{constructor(a,s,o,c,f){super(a,s,o,c,f,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<a.length;m++){let p=a[m];if(typeof p=="string"&&(p=p.trim(),lo(p))){const v=Id(p,s.current);v!==void 0&&(a[m]=v),m===a.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!th.has(o)||a.length!==2)return;const[c,f]=a,d=ih(c),y=ih(f);if(d!==y)if(kd(d)&&kd(y))for(let m=0;m<a.length;m++){const p=a[m];typeof p=="string"&&(a[m]=parseFloat(p))}else fi[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,o=[];for(let c=0;c<a.length;c++)(a[c]===null||ub(a[c]))&&o.push(c);o.length&&hb(a,o,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fi[o](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&a.getValue(o,c).jump(c,!1)}measureEndState(){const{element:a,name:s,unresolvedKeyframes:o}=this;if(!a||!a.current)return;const c=a.getValue(s);c&&c.jump(this.measuredOrigin,!1);const f=o.length-1,d=o[f];o[f]=fi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([y,m])=>{a.getValue(y).set(m)}),this.resolveNoneKeyframes()}}function pb(i,a,s){if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const c=s?.[i]??o.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i)}const uh=(i,a)=>a&&typeof i=="number"?a.transform(i):i;function oh(i){return od(i)&&"offsetHeight"in i}const rh=30,yb=i=>!isNaN(parseFloat(i));class vb{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=pe.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=pe.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=yb(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new eo);const o=this.events[a].add(s);return a==="change"?()=>{o(),Lt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=pe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>rh)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,rh);return cd(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yi(i,a){return new vb(i,a)}const{schedule:Lo}=xd(queueMicrotask,!1),Pe={x:!1,y:!1};function ch(){return Pe.x||Pe.y}function gb(i){return i==="x"||i==="y"?Pe[i]?null:(Pe[i]=!0,()=>{Pe[i]=!1}):Pe.x||Pe.y?null:(Pe.x=Pe.y=!0,()=>{Pe.x=Pe.y=!1})}function fh(i,a){const s=pb(i),o=new AbortController,c={passive:!0,...a,signal:o.signal};return[s,c,()=>o.abort()]}function dh(i){return!(i.pointerType==="touch"||ch())}function Sb(i,a,s={}){const[o,c,f]=fh(i,s),d=y=>{if(!dh(y))return;const{target:m}=y,p=a(m,y);if(typeof p!="function"||!m)return;const v=T=>{dh(T)&&(p(T),m.removeEventListener("pointerleave",v))};m.addEventListener("pointerleave",v,c)};return o.forEach(y=>{y.addEventListener("pointerenter",d,c)}),f}const hh=(i,a)=>a?i===a?!0:hh(i,a.parentElement):!1,wo=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,bb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Tb(i){return bb.has(i.tagName)||i.tabIndex!==-1}const rs=new WeakSet;function mh(i){return a=>{a.key==="Enter"&&i(a)}}function No(i,a){i.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const xb=(i,a)=>{const s=i.currentTarget;if(!s)return;const o=mh(()=>{if(rs.has(s))return;No(s,"down");const c=mh(()=>{No(s,"up")}),f=()=>No(s,"cancel");s.addEventListener("keyup",c,a),s.addEventListener("blur",f,a)});s.addEventListener("keydown",o,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),a)};function ph(i){return wo(i)&&!ch()}function Eb(i,a,s={}){const[o,c,f]=fh(i,s),d=y=>{const m=y.currentTarget;if(!ph(y))return;rs.add(m);const p=a(m,y),v=(C,w)=>{window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",b),rs.has(m)&&rs.delete(m),ph(C)&&typeof p=="function"&&p(C,{success:w})},T=C=>{v(C,m===window||m===document||s.useGlobalTarget||hh(m,C.target))},b=C=>{v(C,!1)};window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",b,c)};return o.forEach(y=>{(s.useGlobalTarget?window:y).addEventListener("pointerdown",d,c),oh(y)&&(y.addEventListener("focus",p=>xb(p,c)),!Tb(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),f}function yh(i){return od(i)&&"ownerSVGElement"in i}function Mb(i){return yh(i)&&i.tagName==="svg"}const ce=i=>!!(i&&i.getVelocity),Ab=[...nh,Xt,wn],Cb=i=>Ab.find(eh(i)),Uo=j.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function vh(i,a){if(typeof i=="function")return i(a);i!=null&&(i.current=a)}function Db(...i){return a=>{let s=!1;const o=i.map(c=>{const f=vh(c,a);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():vh(i[c],null)}}}}function zb(...i){return j.useCallback(Db(...i),i)}class Rb extends j.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const o=s.offsetParent,c=oh(o)&&o.offsetWidth||0,f=this.props.sizeRef.current;f.height=s.offsetHeight||0,f.width=s.offsetWidth||0,f.top=s.offsetTop,f.left=s.offsetLeft,f.right=c-f.width-f.left}return null}componentDidUpdate(){}render(){return this.props.children}}function jb({children:i,isPresent:a,anchorX:s,root:o}){const c=j.useId(),f=j.useRef(null),d=j.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:y}=j.useContext(Uo),m=zb(f,i?.ref);return j.useInsertionEffect(()=>{const{width:p,height:v,top:T,left:b,right:C}=d.current;if(a||!f.current||!p||!v)return;const w=s==="left"?`left: ${b}`:`right: ${C}`;f.current.dataset.motionPopId=c;const V=document.createElement("style");y&&(V.nonce=y);const H=o??document.head;return H.appendChild(V),V.sheet&&V.sheet.insertRule(`
|
|
10
10
|
[data-motion-pop-id="${c}"] {
|
|
11
11
|
position: absolute !important;
|
|
12
|
-
width: ${
|
|
12
|
+
width: ${p}px !important;
|
|
13
13
|
height: ${v}px !important;
|
|
14
|
-
${
|
|
15
|
-
top: ${
|
|
14
|
+
${w}px !important;
|
|
15
|
+
top: ${T}px !important;
|
|
16
16
|
}
|
|
17
|
-
`),()=>{U.contains(B)&&U.removeChild(B)}},[i]),A.jsx(Ag,{isPresent:i,childRef:h,sizeRef:d,children:f.cloneElement(a,{ref:p})})}const Mg=({children:a,initial:i,isPresent:u,onExitComplete:r,custom:c,presenceAffectsLayout:h,mode:d,anchorX:g,root:p})=>{const y=ku(xg),v=f.useId();let b=!0,E=f.useMemo(()=>(b=!1,{id:v,initial:i,isPresent:u,custom:c,onExitComplete:L=>{y.set(L,!0);for(const O of y.values())if(!O)return;r&&r()},register:L=>(y.set(L,!1),()=>y.delete(L))}),[u,y,r]);return h&&b&&(E={...E}),f.useMemo(()=>{y.forEach((L,O)=>y.set(O,!1))},[u]),f.useEffect(()=>{!u&&!y.size&&r&&r()},[u]),d==="popLayout"&&(a=A.jsx(Tg,{isPresent:u,anchorX:g,root:p,children:a})),A.jsx(Pl.Provider,{value:E,children:a})};function xg(){return new Map}function y1(a=!0){const i=f.useContext(Pl);if(i===null)return[!0,null];const{isPresent:u,onExitComplete:r,register:c}=i,h=f.useId();f.useEffect(()=>{if(a)return c(h)},[a]);const d=f.useCallback(()=>a&&r&&r(h),[h,r,a]);return!u&&r?[!1,d]:[!0]}const as=a=>a.key||"";function g1(a){const i=[];return f.Children.forEach(a,u=>{f.isValidElement(u)&&i.push(u)}),i}const Vg=({children:a,custom:i,initial:u=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:g="left",root:p})=>{const[y,v]=y1(d),b=f.useMemo(()=>g1(a),[a]),E=d&&!y?[]:b.map(as),L=f.useRef(!0),O=f.useRef(b),B=ku(()=>new Map),[U,j]=f.useState(b),[Y,Q]=f.useState(b);af(()=>{L.current=!1,O.current=b;for(let k=0;k<Y.length;k++){const J=as(Y[k]);E.includes(J)?B.delete(J):B.get(J)!==!0&&B.set(J,!1)}},[Y,E.length,E.join("-")]);const q=[];if(b!==U){let k=[...b];for(let J=0;J<Y.length;J++){const K=Y[J],I=as(K);E.includes(I)||(k.splice(J,0,K),q.push(K))}return h==="wait"&&q.length&&(k=q),Q(g1(k)),j(b),null}const{forceRender:z}=f.useContext(Xu);return A.jsx(A.Fragment,{children:Y.map(k=>{const J=as(k),K=d&&!y?!1:b===Y||E.includes(J),I=()=>{if(B.has(J))B.set(J,!0);else return;let at=!0;B.forEach(Rt=>{Rt||(at=!1)}),at&&(z?.(),Q(O.current),d&&v?.(),r&&r())};return A.jsx(Mg,{isPresent:K,initial:!L.current||u?void 0:!1,custom:i,presenceAffectsLayout:c,mode:h,root:p,onExitComplete:K?void 0:I,anchorX:g,children:k},J)})})},v1=f.createContext({strict:!1}),S1={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"]},Ua={};for(const a in S1)Ua[a]={isEnabled:i=>S1[a].some(u=>!!i[u])};function Lg(a){for(const i in a)Ua[i]={...Ua[i],...a[i]}}const Cg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function is(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Cg.has(a)}let b1=a=>!is(a);function Dg(a){typeof a=="function"&&(b1=i=>i.startsWith("on")?!is(i):a(i))}try{Dg(require("@emotion/is-prop-valid").default)}catch{}function Rg(a,i,u){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||(b1(c)||u===!0&&is(c)||!i&&!is(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const ls=f.createContext({});function ss(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Xi(a){return typeof a=="string"||Array.isArray(a)}const Or=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zr=["initial",...Or];function us(a){return ss(a.animate)||zr.some(i=>Xi(a[i]))}function E1(a){return!!(us(a)||a.variants)}function Hg(a,i){if(us(a)){const{initial:u,animate:r}=a;return{initial:u===!1||Xi(u)?u:void 0,animate:Xi(r)?r:void 0}}return a.inherit!==!1?i:{}}function jg(a){const{initial:i,animate:u}=Hg(a,f.useContext(ls));return f.useMemo(()=>({initial:i,animate:u}),[A1(i),A1(u)])}function A1(a){return Array.isArray(a)?a.join(" "):a}function T1(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const ki={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(st.test(a))a=parseFloat(a);else return a;const u=T1(a,i.target.x),r=T1(a,i.target.y);return`${u}% ${r}%`}},Og={correct:(a,{treeScale:i,projectionDelta:u})=>{const r=a,c=Hn.parse(a);if(c.length>5)return r;const h=Hn.createTransformer(a),d=typeof c[0]!="number"?1:0,g=u.x.scale*i.x,p=u.y.scale*i.y;c[0+d]/=g,c[1+d]/=p;const y=Nt(g,p,.5);return typeof c[2+d]=="number"&&(c[2+d]/=y),typeof c[3+d]=="number"&&(c[3+d]/=y),h(c)}},Br={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:Og};function M1(a,{layout:i,layoutId:u}){return Na.has(a)||a.startsWith("origin")||(i||u!==void 0)&&(!!Br[a]||a==="opacity")}const zg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bg=wa.length;function wg(a,i,u){let r="",c=!0;for(let h=0;h<Bg;h++){const d=wa[h],g=a[d];if(g===void 0)continue;let p=!0;if(typeof g=="number"?p=g===(d.startsWith("scale")?1:0):p=parseFloat(g)===0,!p||u){const y=l1(g,Cr[d]);if(!p){c=!1;const v=zg[d]||d;r+=`${v}(${y}) `}u&&(i[d]=y)}}return r=r.trim(),u?r=u(i,c?"":r):c&&(r="none"),r}function wr(a,i,u){const{style:r,vars:c,transformOrigin:h}=a;let d=!1,g=!1;for(const p in i){const y=i[p];if(Na.has(p)){d=!0;continue}else if(Af(p)){c[p]=y;continue}else{const v=l1(y,Cr[p]);p.startsWith("origin")?(g=!0,h[p]=v):r[p]=v}}if(i.transform||(d||u?r.transform=wg(i,a.transform,u):r.transform&&(r.transform="none")),g){const{originX:p="50%",originY:y="50%",originZ:v=0}=h;r.transformOrigin=`${p} ${y} ${v}`}}const Nr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function x1(a,i,u){for(const r in i)!re(i[r])&&!M1(r,u)&&(a[r]=i[r])}function Ng({transformTemplate:a},i){return f.useMemo(()=>{const u=Nr();return wr(u,i,a),Object.assign({},u.vars,u.style)},[i])}function Zg(a,i){const u=a.style||{},r={};return x1(r,u,a),Object.assign(r,Ng(a,i)),r}function Ug(a,i){const u={},r=Zg(a,i);return a.drag&&a.dragListener!==!1&&(u.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(u.tabIndex=0),u.style=r,u}const _g={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gg={offset:"strokeDashoffset",array:"strokeDasharray"};function qg(a,i,u=1,r=0,c=!0){a.pathLength=1;const h=c?_g:Gg;a[h.offset]=st.transform(-r);const d=st.transform(i),g=st.transform(u);a[h.array]=`${d} ${g}`}function V1(a,{attrX:i,attrY:u,attrScale:r,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...g},p,y,v){if(wr(a,g,y),p){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:E}=a;b.transform&&(E.transform=b.transform,delete b.transform),(E.transform||b.transformOrigin)&&(E.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),E.transform&&(E.transformBox=v?.transformBox??"fill-box",delete b.transformBox),i!==void 0&&(b.x=i),u!==void 0&&(b.y=u),r!==void 0&&(b.scale=r),c!==void 0&&qg(b,c,h,d,!1)}const L1=()=>({...Nr(),attrs:{}}),C1=a=>typeof a=="string"&&a.toLowerCase()==="svg";function Yg(a,i,u,r){const c=f.useMemo(()=>{const h=L1();return V1(h,i,C1(r),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[i]);if(a.style){const h={};x1(h,a.style,a),c.style={...h,...c.style}}return c}const Xg=["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 Zr(a){return typeof a!="string"||a.includes("-")?!1:!!(Xg.indexOf(a)>-1||/[A-Z]/u.test(a))}function kg(a,i,u,{latestValues:r},c,h=!1){const g=(Zr(a)?Yg:Ug)(i,r,c,a),p=Rg(i,typeof a=="string",h),y=a!==f.Fragment?{...p,...g,ref:u}:{},{children:v}=i,b=f.useMemo(()=>re(v)?v.get():v,[v]);return f.createElement(a,{...y,children:b})}function D1(a){const i=[{},{}];return a?.values.forEach((u,r)=>{i[0][r]=u.get(),i[1][r]=u.getVelocity()}),i}function Ur(a,i,u,r){if(typeof i=="function"){const[c,h]=D1(r);i=i(u!==void 0?u:a.custom,c,h)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,h]=D1(r);i=i(u!==void 0?u:a.custom,c,h)}return i}function rs(a){return re(a)?a.get():a}function Kg({scrapeMotionValuesFromProps:a,createRenderState:i},u,r,c){return{latestValues:Fg(u,r,c,a),renderState:i()}}function Fg(a,i,u,r){const c={},h=r(a,{});for(const E in h)c[E]=rs(h[E]);let{initial:d,animate:g}=a;const p=us(a),y=E1(a);i&&y&&!p&&a.inherit!==!1&&(d===void 0&&(d=i.initial),g===void 0&&(g=i.animate));let v=u?u.initial===!1:!1;v=v||d===!1;const b=v?g:d;if(b&&typeof b!="boolean"&&!ss(b)){const E=Array.isArray(b)?b:[b];for(let L=0;L<E.length;L++){const O=Ur(a,E[L]);if(O){const{transitionEnd:B,transition:U,...j}=O;for(const Y in j){let Q=j[Y];if(Array.isArray(Q)){const q=v?Q.length-1:0;Q=Q[q]}Q!==null&&(c[Y]=Q)}for(const Y in B)c[Y]=B[Y]}}}return c}const R1=a=>(i,u)=>{const r=f.useContext(ls),c=f.useContext(Pl),h=()=>Kg(a,i,r,c);return u?h():ku(h)};function _r(a,i,u){const{style:r}=a,c={};for(const h in r)(re(r[h])||i.style&&re(i.style[h])||M1(h,a)||u?.getValue(h)?.liveStyle!==void 0)&&(c[h]=r[h]);return c}const Qg=R1({scrapeMotionValuesFromProps:_r,createRenderState:Nr});function H1(a,i,u){const r=_r(a,i,u);for(const c in a)if(re(a[c])||re(i[c])){const h=wa.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[h]=a[c]}return r}const Pg=R1({scrapeMotionValuesFromProps:H1,createRenderState:L1}),Jg=Symbol.for("motionComponentSymbol");function _a(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function $g(a,i,u){return f.useCallback(r=>{r&&a.onMount&&a.onMount(r),i&&(r?i.mount(r):i.unmount()),u&&(typeof u=="function"?u(r):_a(u)&&(u.current=r))},[i])}const Gr=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),j1="data-"+Gr("framerAppearId"),O1=f.createContext({});function Wg(a,i,u,r,c){const{visualElement:h}=f.useContext(ls),d=f.useContext(v1),g=f.useContext(Pl),p=f.useContext(jr).reducedMotion,y=f.useRef(null);r=r||d.renderer,!y.current&&r&&(y.current=r(a,{visualState:i,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:p}));const v=y.current,b=f.useContext(O1);v&&!v.projection&&c&&(v.type==="html"||v.type==="svg")&&Ig(y.current,u,c,b);const E=f.useRef(!1);f.useInsertionEffect(()=>{v&&E.current&&v.update(u,g)});const L=u[j1],O=f.useRef(!!L&&!window.MotionHandoffIsComplete?.(L)&&window.MotionHasOptimisedAnimation?.(L));return af(()=>{v&&(E.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),O.current&&v.animationState&&v.animationState.animateChanges())}),f.useEffect(()=>{v&&(!O.current&&v.animationState&&v.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(L)}),O.current=!1),v.enteringChildren=void 0)}),v}function Ig(a,i,u,r){const{layoutId:c,layout:h,drag:d,dragConstraints:g,layoutScroll:p,layoutRoot:y,layoutCrossfade:v}=i;a.projection=new u(a.latestValues,i["data-framer-portal-id"]?void 0:z1(a.parent)),a.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!d||g&&_a(g),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:p,layoutRoot:y})}function z1(a){if(a)return a.options.allowProjection!==!1?a.projection:z1(a.parent)}function qr(a,{forwardMotionProps:i=!1}={},u,r){u&&Lg(u);const c=Zr(a)?Pg:Qg;function h(g,p){let y;const v={...f.useContext(jr),...g,layoutId:tv(g)},{isStatic:b}=v,E=jg(g),L=c(g,b);if(!b&&Ku){ev();const O=nv(v);y=O.MeasureLayout,E.visualElement=Wg(a,L,v,r,O.ProjectionNode)}return A.jsxs(ls.Provider,{value:E,children:[y&&E.visualElement?A.jsx(y,{visualElement:E.visualElement,...v}):null,kg(a,g,$g(L,E.visualElement,p),L,b,i)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const d=f.forwardRef(h);return d[Jg]=a,d}function tv({layoutId:a}){const i=f.useContext(Xu).id;return i&&a!==void 0?i+"-"+a:a}function ev(a,i){f.useContext(v1).strict}function nv(a){const{drag:i,layout:u}=Ua;if(!i&&!u)return{};const r={...i,...u};return{MeasureLayout:i?.isEnabled(a)||u?.isEnabled(a)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function av(a,i){if(typeof Proxy>"u")return qr;const u=new Map,r=(h,d)=>qr(h,d,a,i),c=(h,d)=>r(h,d);return new Proxy(c,{get:(h,d)=>d==="create"?r:(u.has(d)||u.set(d,qr(d,void 0,a,i)),u.get(d))})}function B1({top:a,left:i,right:u,bottom:r}){return{x:{min:i,max:u},y:{min:a,max:r}}}function iv({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function lv(a,i){if(!i)return a;const u=i({x:a.left,y:a.top}),r=i({x:a.right,y:a.bottom});return{top:u.y,left:u.x,bottom:r.y,right:r.x}}function Yr(a){return a===void 0||a===1}function Xr({scale:a,scaleX:i,scaleY:u}){return!Yr(a)||!Yr(i)||!Yr(u)}function ca(a){return Xr(a)||w1(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function w1(a){return N1(a.x)||N1(a.y)}function N1(a){return a&&a!=="0%"}function os(a,i,u){const r=a-u,c=i*r;return u+c}function Z1(a,i,u,r,c){return c!==void 0&&(a=os(a,c,r)),os(a,u,r)+i}function kr(a,i=0,u=1,r,c){a.min=Z1(a.min,i,u,r,c),a.max=Z1(a.max,i,u,r,c)}function U1(a,{x:i,y:u}){kr(a.x,i.translate,i.scale,i.originPoint),kr(a.y,u.translate,u.scale,u.originPoint)}const _1=.999999999999,G1=1.0000000000001;function sv(a,i,u,r=!1){const c=u.length;if(!c)return;i.x=i.y=1;let h,d;for(let g=0;g<c;g++){h=u[g],d=h.projectionDelta;const{visualElement:p}=h.options;p&&p.props.style&&p.props.style.display==="contents"||(r&&h.options.layoutScroll&&h.scroll&&h!==h.root&&qa(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,U1(a,d)),r&&ca(h.latestValues)&&qa(a,h.latestValues))}i.x<G1&&i.x>_1&&(i.x=1),i.y<G1&&i.y>_1&&(i.y=1)}function Ga(a,i){a.min=a.min+i,a.max=a.max+i}function q1(a,i,u,r,c=.5){const h=Nt(a.min,a.max,c);kr(a,i,u,h,r)}function qa(a,i){q1(a.x,i.x,i.scaleX,i.scale,i.originX),q1(a.y,i.y,i.scaleY,i.scale,i.originY)}function Y1(a,i){return B1(lv(a.getBoundingClientRect(),i))}function uv(a,i,u){const r=Y1(a,u),{scroll:c}=i;return c&&(Ga(r.x,c.offset.x),Ga(r.y,c.offset.y)),r}const X1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ya=()=>({x:X1(),y:X1()}),k1=()=>({min:0,max:0}),Pt=()=>({x:k1(),y:k1()}),Kr={current:null},K1={current:!1};function rv(){if(K1.current=!0,!!Ku)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Kr.current=a.matches;a.addEventListener("change",i),i()}else Kr.current=!1}const ov=new WeakMap;function cv(a,i,u){for(const r in i){const c=i[r],h=u[r];if(re(c))a.addValue(r,c);else if(re(h))a.addValue(r,Za(c,{owner:a}));else if(h!==c)if(a.hasValue(r)){const d=a.getValue(r);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=a.getStaticValue(r);a.addValue(r,Za(d!==void 0?d:c,{owner:a}))}}for(const r in u)i[r]===void 0&&a.removeValue(r);return i}const F1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fv{scrapeMotionValuesFromProps(i,u,r){return{}}constructor({parent:i,props:u,presenceContext:r,reducedMotionConfig:c,blockInitialAnimation:h,visualState:d},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=de.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,zt.render(this.render,!1,!0))};const{latestValues:p,renderState:y}=d;this.latestValues=p,this.baseTarget={...p},this.initialValues=u.initial?{...p}:{},this.renderState=y,this.parent=i,this.props=u,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=us(u),this.isVariantNode=E1(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...b}=this.scrapeMotionValuesFromProps(u,{},this);for(const E in b){const L=b[E];p[E]!==void 0&&re(L)&&L.set(p[E])}}mount(i){this.current=i,ov.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((u,r)=>this.bindToMotionValue(r,u)),K1.current||rv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Kr.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Dn(this.notifyUpdate),Dn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const u=this.features[i];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,u){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const r=Na.has(i);r&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&zt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,i,u)),this.valueSubscriptions.set(i,()=>{c(),h&&h(),u.owner&&u.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 Ua){const u=Ua[i];if(!u)continue;const{isEnabled:r,Feature:c}=u;if(!this.features[i]&&c&&r(this.props)&&(this.features[i]=new c(this)),this.features[i]){const h=this.features[i];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,u){this.latestValues[i]=u}update(i,u){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let r=0;r<F1.length;r++){const c=F1[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,d=i[h];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=cv(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 u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(i),()=>u.variantChildren.delete(i)}addValue(i,u){const r=this.values.get(i);u!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,u),this.values.set(i,u),this.latestValues[i]=u.get())}removeValue(i){this.values.delete(i);const u=this.valueSubscriptions.get(i);u&&(u(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,u){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&u!==void 0&&(r=Za(u===null?void 0:u,{owner:this}),this.addValue(i,r)),r}readValue(i,u){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(lf(r)||uf(r))?r=parseFloat(r):!Sg(r)&&Hn.test(u)&&(r=i1(i,u)),this.setBaseTarget(i,re(r)?r.get():r)),re(r)?r.get():r}setBaseTarget(i,u){this.baseTarget[i]=u}getBaseTarget(i){const{initial:u}=this.props;let r;if(typeof u=="string"||typeof u=="object"){const h=Ur(this.props,u,this.presenceContext?.custom);h&&(r=h[i])}if(u&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!re(c)?c:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,u){return this.events[i]||(this.events[i]=new $u),this.events[i].add(u)}notify(i,...u){this.events[i]&&this.events[i].notify(...u)}scheduleRenderMicrotask(){Dr.render(this.render)}}class Q1 extends fv{constructor(){super(...arguments),this.KeyframeResolver=ug}sortInstanceNodePosition(i,u){return i.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(i,u){return i.style?i.style[u]:void 0}removeValueFromRenderState(i,{vars:u,style:r}){delete u[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;re(i)&&(this.childSubscription=i.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}function P1(a,{style:i,vars:u},r,c){const h=a.style;let d;for(d in i)h[d]=i[d];c?.applyProjectionStyles(h,r);for(d in u)h.setProperty(d,u[d])}function dv(a){return window.getComputedStyle(a)}class hv extends Q1{constructor(){super(...arguments),this.type="html",this.renderInstance=P1}readValueFromInstance(i,u){if(Na.has(u))return this.projection?.isProjecting?Sr(u):Ly(i,u);{const r=dv(i),c=(Af(u)?r.getPropertyValue(u):r[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:u}){return Y1(i,u)}build(i,u,r){wr(i,u,r.transformTemplate)}scrapeMotionValuesFromProps(i,u,r){return _r(i,u,r)}}const J1=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"]);function mv(a,i,u,r){P1(a,i,void 0,r);for(const c in i.attrs)a.setAttribute(J1.has(c)?c:Gr(c),i.attrs[c])}class pv extends Q1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pt}getBaseTargetFromProps(i,u){return i[u]}readValueFromInstance(i,u){if(Na.has(u)){const r=a1(u);return r&&r.default||0}return u=J1.has(u)?u:Gr(u),i.getAttribute(u)}scrapeMotionValuesFromProps(i,u,r){return H1(i,u,r)}build(i,u,r){V1(i,u,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,u,r,c){mv(i,u,r,c)}mount(i){this.isSVGTag=C1(i.tagName),super.mount(i)}}const yv=(a,i)=>Zr(a)?new pv(i):new hv(i,{allowProjection:a!==f.Fragment});function Xa(a,i,u){const r=a.getProps();return Ur(r,i,u!==void 0?u:r.custom,a)}const Fr=a=>Array.isArray(a);function gv(a,i,u){a.hasValue(i)?a.getValue(i).set(u):a.addValue(i,Za(u))}function vv(a){return Fr(a)?a[a.length-1]||0:a}function Sv(a,i){const u=Xa(a,i);let{transitionEnd:r={},transition:c={},...h}=u||{};h={...h,...r};for(const d in h){const g=vv(h[d]);gv(a,d,g)}}function bv(a){return!!(re(a)&&a.add)}function Qr(a,i){const u=a.getValue("willChange");if(bv(u))return u.add(i);if(!u&&ln.WillChange){const r=new ln.WillChange("auto");a.addValue("willChange",r),r.add(i)}}function $1(a){return a.props[j1]}const Ev=a=>a!==null;function Av(a,{repeat:i,repeatType:u="loop"},r){const c=a.filter(Ev),h=i&&u!=="loop"&&i%2===1?0:c.length-1;return c[h]}const Tv={type:"spring",stiffness:500,damping:25,restSpeed:10},Mv=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),xv={type:"keyframes",duration:.8},Vv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lv=(a,{keyframes:i})=>i.length>2?xv:Na.has(a)?a.startsWith("scale")?Mv(i[1]):Tv:Vv;function Cv({when:a,delay:i,delayChildren:u,staggerChildren:r,staggerDirection:c,repeat:h,repeatType:d,repeatDelay:g,from:p,elapsed:y,...v}){return!!Object.keys(v).length}const Pr=(a,i,u,r={},c,h)=>d=>{const g=Vr(r,a)||{},p=g.delay||r.delay||0;let{elapsed:y=0}=r;y=y-$e(p);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:i.getVelocity(),...g,delay:-y,onUpdate:E=>{i.set(E),g.onUpdate&&g.onUpdate(E)},onComplete:()=>{d(),g.onComplete&&g.onComplete()},name:a,motionValue:i,element:h?void 0:c};Cv(g)||Object.assign(v,Lv(a,v)),v.duration&&(v.duration=$e(v.duration)),v.repeatDelay&&(v.repeatDelay=$e(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(xr(v),v.delay===0&&(b=!0)),(ln.instantAnimations||ln.skipAnimations)&&(b=!0,xr(v),v.delay=0),v.allowFlatten=!g.type&&!g.ease,b&&!h&&i.get()!==void 0){const E=Av(v.keyframes,g);if(E!==void 0){zt.update(()=>{v.onUpdate(E),v.onComplete()});return}}return g.isSync?new yr(v):new Jy(v)};function Dv({protectedKeys:a,needsAnimating:i},u){const r=a.hasOwnProperty(u)&&i[u]!==!0;return i[u]=!1,r}function W1(a,i,{delay:u=0,transitionOverride:r,type:c}={}){let{transition:h=a.getDefaultTransition(),transitionEnd:d,...g}=i;r&&(h=r);const p=[],y=c&&a.animationState&&a.animationState.getState()[c];for(const v in g){const b=a.getValue(v,a.latestValues[v]??null),E=g[v];if(E===void 0||y&&Dv(y,v))continue;const L={delay:u,...Vr(h||{},v)},O=b.get();if(O!==void 0&&!b.isAnimating&&!Array.isArray(E)&&E===O&&!L.velocity)continue;let B=!1;if(window.MotionHandoffAnimation){const j=$1(a);if(j){const Y=window.MotionHandoffAnimation(j,v,zt);Y!==null&&(L.startTime=Y,B=!0)}}Qr(a,v),b.start(Pr(v,b,E,a.shouldReduceMotion&&Wf.has(v)?{type:!1}:L,a,B));const U=b.animation;U&&p.push(U)}return d&&Promise.all(p).then(()=>{zt.update(()=>{d&&Sv(a,d)})}),p}function I1(a,i,u,r=0,c=1){const h=Array.from(a).sort((y,v)=>y.sortNodePosition(v)).indexOf(i),d=a.size,g=(d-1)*r;return typeof u=="function"?u(h,d):c===1?h*r:g-h*r}function Jr(a,i,u={}){const r=Xa(a,i,u.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};u.transitionOverride&&(c=u.transitionOverride);const h=r?()=>Promise.all(W1(a,r,u)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:b}=c;return Rv(a,i,p,y,v,b,u)}:()=>Promise.resolve(),{when:g}=c;if(g){const[p,y]=g==="beforeChildren"?[h,d]:[d,h];return p().then(()=>y())}else return Promise.all([h(),d(u.delay)])}function Rv(a,i,u=0,r=0,c=0,h=1,d){const g=[];for(const p of a.variantChildren)p.notify("AnimationStart",i),g.push(Jr(p,i,{...d,delay:u+(typeof r=="function"?0:r)+I1(a.variantChildren,p,r,c,h)}).then(()=>p.notify("AnimationComplete",i)));return Promise.all(g)}function Hv(a,i,u={}){a.notify("AnimationStart",i);let r;if(Array.isArray(i)){const c=i.map(h=>Jr(a,h,u));r=Promise.all(c)}else if(typeof i=="string")r=Jr(a,i,u);else{const c=typeof i=="function"?Xa(a,i,u.custom):i;r=Promise.all(W1(a,c,u))}return r.then(()=>{a.notify("AnimationComplete",i)})}function td(a,i){if(!Array.isArray(i))return!1;const u=i.length;if(u!==a.length)return!1;for(let r=0;r<u;r++)if(i[r]!==a[r])return!1;return!0}const jv=zr.length;function ed(a){if(!a)return;if(!a.isControllingVariants){const u=a.parent?ed(a.parent)||{}:{};return a.props.initial!==void 0&&(u.initial=a.props.initial),u}const i={};for(let u=0;u<jv;u++){const r=zr[u],c=a.props[r];(Xi(c)||c===!1)&&(i[r]=c)}return i}const Ov=[...Or].reverse(),zv=Or.length;function Bv(a){return i=>Promise.all(i.map(({animation:u,options:r})=>Hv(a,u,r)))}function wv(a){let i=Bv(a),u=nd(),r=!0;const c=p=>(y,v)=>{const b=Xa(a,v,p==="exit"?a.presenceContext?.custom:void 0);if(b){const{transition:E,transitionEnd:L,...O}=b;y={...y,...O,...L}}return y};function h(p){i=p(a)}function d(p){const{props:y}=a,v=ed(a.parent)||{},b=[],E=new Set;let L={},O=1/0;for(let U=0;U<zv;U++){const j=Ov[U],Y=u[j],Q=y[j]!==void 0?y[j]:v[j],q=Xi(Q),z=j===p?Y.isActive:null;z===!1&&(O=U);let k=Q===v[j]&&Q!==y[j]&&q;if(k&&r&&a.manuallyAnimateOnMount&&(k=!1),Y.protectedKeys={...L},!Y.isActive&&z===null||!Q&&!Y.prevProp||ss(Q)||typeof Q=="boolean")continue;const J=Nv(Y.prevProp,Q);let K=J||j===p&&Y.isActive&&!k&&q||U>O&&q,I=!1;const at=Array.isArray(Q)?Q:[Q];let Rt=at.reduce(c(j),{});z===!1&&(Rt={});const{prevResolvedValues:$={}}=Y,ct={...$,...Rt},Mt=N=>{K=!0,E.has(N)&&(I=!0,E.delete(N)),Y.needsAnimating[N]=!0;const X=a.getValue(N);X&&(X.liveStyle=!1)};for(const N in ct){const X=Rt[N],ot=$[N];if(L.hasOwnProperty(N))continue;let bt=!1;Fr(X)&&Fr(ot)?bt=!td(X,ot):bt=X!==ot,bt?X!=null?Mt(N):E.add(N):X!==void 0&&E.has(N)?Mt(N):Y.protectedKeys[N]=!0}Y.prevProp=Q,Y.prevResolvedValues=Rt,Y.isActive&&(L={...L,...Rt}),r&&a.blockInitialAnimation&&(K=!1);const mt=k&&J;K&&(!mt||I)&&b.push(...at.map(N=>{const X={type:j};if(typeof N=="string"&&r&&!mt&&a.manuallyAnimateOnMount&&a.parent){const{parent:ot}=a,bt=Xa(ot,N);if(ot.enteringChildren&&bt){const{delayChildren:Wt}=bt.transition||{};X.delay=I1(ot.enteringChildren,a,Wt)}}return{animation:N,options:X}}))}if(E.size){const U={};if(typeof y.initial!="boolean"){const j=Xa(a,Array.isArray(y.initial)?y.initial[0]:y.initial);j&&j.transition&&(U.transition=j.transition)}E.forEach(j=>{const Y=a.getBaseTarget(j),Q=a.getValue(j);Q&&(Q.liveStyle=!0),U[j]=Y??null}),b.push({animation:U})}let B=!!b.length;return r&&(y.initial===!1||y.initial===y.animate)&&!a.manuallyAnimateOnMount&&(B=!1),r=!1,B?i(b):Promise.resolve()}function g(p,y){if(u[p].isActive===y)return Promise.resolve();a.variantChildren?.forEach(b=>b.animationState?.setActive(p,y)),u[p].isActive=y;const v=d(p);for(const b in u)u[b].protectedKeys={};return v}return{animateChanges:d,setActive:g,setAnimateFunction:h,getState:()=>u,reset:()=>{u=nd()}}}function Nv(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!td(i,a):!1}function fa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nd(){return{animate:fa(!0),whileInView:fa(),whileHover:fa(),whileTap:fa(),whileDrag:fa(),whileFocus:fa(),exit:fa()}}class jn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class Zv extends jn{constructor(i){super(i),i.animationState||(i.animationState=wv(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();ss(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:u}=this.node.prevProps||{};i!==u&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Uv=0;class _v extends jn{constructor(){super(...arguments),this.id=Uv++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:u}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const c=this.node.animationState.setActive("exit",!i);u&&!i&&c.then(()=>{u(this.id)})}mount(){const{register:i,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const Gv={animation:{Feature:Zv},exit:{Feature:_v}};function Ki(a,i,u,r={passive:!0}){return a.addEventListener(i,u,r),()=>a.removeEventListener(i,u)}function Fi(a){return{point:{x:a.pageX,y:a.pageY}}}const qv=a=>i=>Rr(i)&&a(i,Fi(i));function Qi(a,i,u,r){return Ki(a,i,qv(u),r)}const ad=1e-4,Yv=1-ad,Xv=1+ad,id=.01,kv=0-id,Kv=0+id;function oe(a){return a.max-a.min}function Fv(a,i,u){return Math.abs(a-i)<=u}function ld(a,i,u,r=.5){a.origin=r,a.originPoint=Nt(i.min,i.max,a.origin),a.scale=oe(u)/oe(i),a.translate=Nt(u.min,u.max,a.origin)-a.originPoint,(a.scale>=Yv&&a.scale<=Xv||isNaN(a.scale))&&(a.scale=1),(a.translate>=kv&&a.translate<=Kv||isNaN(a.translate))&&(a.translate=0)}function Pi(a,i,u,r){ld(a.x,i.x,u.x,r?r.originX:void 0),ld(a.y,i.y,u.y,r?r.originY:void 0)}function sd(a,i,u){a.min=u.min+i.min,a.max=a.min+oe(i)}function Qv(a,i,u){sd(a.x,i.x,u.x),sd(a.y,i.y,u.y)}function ud(a,i,u){a.min=i.min-u.min,a.max=a.min+oe(i)}function cs(a,i,u){ud(a.x,i.x,u.x),ud(a.y,i.y,u.y)}function ze(a){return[a("x"),a("y")]}const rd=({current:a})=>a?a.ownerDocument.defaultView:null,od=(a,i)=>Math.abs(a-i);function Pv(a,i){const u=od(a.x,i.x),r=od(a.y,i.y);return Math.sqrt(u**2+r**2)}class cd{constructor(i,u,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:d=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Wr(this.lastMoveEventInfo,this.history),L=this.startEvent!==null,O=Pv(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!L&&!O)return;const{point:B}=E,{timestamp:U}=ee;this.history.push({...B,timestamp:U});const{onStart:j,onMove:Y}=this.handlers;L||(j&&j(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,E)},this.handlePointerMove=(E,L)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=$r(L,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(E,L)=>{this.end();const{onEnd:O,onSessionEnd:B,resumeAnimation:U}=this.handlers;if(this.dragSnapToOrigin&&U&&U(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Wr(E.type==="pointercancel"?this.lastMoveEventInfo:$r(L,this.transformPagePoint),this.history);this.startEvent&&O&&O(E,j),B&&B(E,j)},!Rr(i))return;this.dragSnapToOrigin=h,this.handlers=u,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const g=Fi(i),p=$r(g,this.transformPagePoint),{point:y}=p,{timestamp:v}=ee;this.history=[{...y,timestamp:v}];const{onSessionStart:b}=u;b&&b(i,Wr(p,this.history)),this.removeListeners=Bi(Qi(this.contextWindow,"pointermove",this.handlePointerMove),Qi(this.contextWindow,"pointerup",this.handlePointerUp),Qi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),Dn(this.updatePoint)}}function $r(a,i){return i?{point:i(a.point)}:a}function fd(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Wr({point:a},i){return{point:a,delta:fd(a,dd(i)),offset:fd(a,Jv(i)),velocity:$v(i,.1)}}function Jv(a){return a[0]}function dd(a){return a[a.length-1]}function $v(a,i){if(a.length<2)return{x:0,y:0};let u=a.length-1,r=null;const c=dd(a);for(;u>=0&&(r=a[u],!(c.timestamp-r.timestamp>$e(i)));)u--;if(!r)return{x:0,y:0};const h=Oe(c.timestamp-r.timestamp);if(h===0)return{x:0,y:0};const d={x:(c.x-r.x)/h,y:(c.y-r.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function Wv(a,{min:i,max:u},r){return i!==void 0&&a<i?a=r?Nt(i,a,r.min):Math.max(a,i):u!==void 0&&a>u&&(a=r?Nt(u,a,r.max):Math.min(a,u)),a}function hd(a,i,u){return{min:i!==void 0?a.min+i:void 0,max:u!==void 0?a.max+u-(a.max-a.min):void 0}}function Iv(a,{top:i,left:u,bottom:r,right:c}){return{x:hd(a.x,u,c),y:hd(a.y,i,r)}}function md(a,i){let u=i.min-a.min,r=i.max-a.max;return i.max-i.min<a.max-a.min&&([u,r]=[r,u]),{min:u,max:r}}function t2(a,i){return{x:md(a.x,i.x),y:md(a.y,i.y)}}function e2(a,i){let u=.5;const r=oe(a),c=oe(i);return c>r?u=wi(i.min,i.max-r,a.min):r>c&&(u=wi(a.min,a.max-c,i.min)),an(0,1,u)}function n2(a,i){const u={};return i.min!==void 0&&(u.min=i.min-a.min),i.max!==void 0&&(u.max=i.max-a.min),u}const Ir=.35;function a2(a=Ir){return a===!1?a=0:a===!0&&(a=Ir),{x:pd(a,"left","right"),y:pd(a,"top","bottom")}}function pd(a,i,u){return{min:yd(a,i),max:yd(a,u)}}function yd(a,i){return typeof a=="number"?a:a[i]||0}const i2=new WeakMap;class l2{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=Pt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:u=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=b=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),u&&this.snapToCursor(Fi(b).point)},d=(b,E)=>{const{drag:L,dragPropagation:O,onDragStart:B}=this.getProps();if(L&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fg(L),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=E,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ze(j=>{let Y=this.getAxisMotionValue(j).get()||0;if(We.test(Y)){const{projection:Q}=this.visualElement;if(Q&&Q.layout){const q=Q.layout.layoutBox[j];q&&(Y=oe(q)*(parseFloat(Y)/100))}}this.originPoint[j]=Y}),B&&zt.postRender(()=>B(b,E)),Qr(this.visualElement,"transform");const{animationState:U}=this.visualElement;U&&U.setActive("whileDrag",!0)},g=(b,E)=>{this.latestPointerEvent=b,this.latestPanInfo=E;const{dragPropagation:L,dragDirectionLock:O,onDirectionLock:B,onDrag:U}=this.getProps();if(!L&&!this.openDragLock)return;const{offset:j}=E;if(O&&this.currentDirection===null){this.currentDirection=s2(j),this.currentDirection!==null&&B&&B(this.currentDirection);return}this.updateAxis("x",E.point,j),this.updateAxis("y",E.point,j),this.visualElement.render(),U&&U(b,E)},p=(b,E)=>{this.latestPointerEvent=b,this.latestPanInfo=E,this.stop(b,E),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>ze(b=>this.getAnimationState(b)==="paused"&&this.getAxisMotionValue(b).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new cd(i,{onSessionStart:h,onStart:d,onMove:g,onSessionEnd:p,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:rd(this.visualElement)})}stop(i,u){const r=i||this.latestPointerEvent,c=u||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!r)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:g}=this.getProps();g&&zt.postRender(()=>g(r,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:u}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}updateAxis(i,u,r){const{drag:c}=this.getProps();if(!r||!fs(i,c,this.currentDirection))return;const h=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=Wv(d,this.constraints[i],this.elastic[i])),h.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:u}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&_a(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=Iv(r.layoutBox,i):this.constraints=!1,this.elastic=a2(u),c!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ze(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=n2(r.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:u}=this.getProps();if(!i||!_a(i))return!1;const r=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=uv(r,c.root,this.visualElement.getTransformPagePoint());let d=t2(c.layout.layoutBox,h);if(u){const g=u(iv(d));this.hasMutatedConstraints=!!g,g&&(d=B1(g))}return d}startAnimation(i){const{drag:u,dragMomentum:r,dragElastic:c,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:g}=this.getProps(),p=this.constraints||{},y=ze(v=>{if(!fs(v,u,this.currentDirection))return;let b=p&&p[v]||{};d&&(b={min:0,max:0});const E=c?200:1e6,L=c?40:1e7,O={type:"inertia",velocity:r?i[v]:0,bounceStiffness:E,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(v,O)});return Promise.all(y).then(g)}startAxisValueAnimation(i,u){const r=this.getAxisMotionValue(i);return Qr(this.visualElement,i),r.start(Pr(i,r,0,u,this.visualElement,!1))}stopAnimation(){ze(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){ze(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const u=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),c=r[u];return c||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){ze(u=>{const{drag:r}=this.getProps();if(!fs(u,r,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(u);if(c&&c.layout){const{min:d,max:g}=c.layout.layoutBox[u];h.set(i[u]-Nt(d,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:u}=this.getProps(),{projection:r}=this.visualElement;if(!_a(u)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};ze(d=>{const g=this.getAxisMotionValue(d);if(g&&this.constraints!==!1){const p=g.get();c[d]=e2({min:p,max:p},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(d=>{if(!fs(d,i,null))return;const g=this.getAxisMotionValue(d),{min:p,max:y}=this.constraints[d];g.set(Nt(p,y,c[d]))})}addListeners(){if(!this.visualElement.current)return;i2.set(this.visualElement,this);const i=this.visualElement.current,u=Qi(i,"pointerdown",p=>{const{drag:y,dragListener:v=!0}=this.getProps();y&&v&&this.start(p)}),r=()=>{const{dragConstraints:p}=this.getProps();_a(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",r);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),zt.read(r);const d=Ki(window,"resize",()=>this.scalePositionWithinConstraints()),g=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:y})=>{this.isDragging&&y&&(ze(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=p[v].translate,b.set(b.get()+p[v].translate))}),this.visualElement.render())}));return()=>{d(),u(),h(),g&&g()}}getProps(){const i=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:d=Ir,dragMomentum:g=!0}=i;return{...i,drag:u,dragDirectionLock:r,dragPropagation:c,dragConstraints:h,dragElastic:d,dragMomentum:g}}}function fs(a,i,u){return(i===!0||i===a)&&(u===null||u===a)}function s2(a,i=10){let u=null;return Math.abs(a.y)>i?u="y":Math.abs(a.x)>i&&(u="x"),u}class u2 extends jn{constructor(i){super(i),this.removeGroupControls=je,this.removeListeners=je,this.controls=new l2(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||je}unmount(){this.removeGroupControls(),this.removeListeners()}}const gd=a=>(i,u)=>{a&&zt.postRender(()=>a(i,u))};class r2 extends jn{constructor(){super(...arguments),this.removePointerDownListener=je}onPointerDown(i){this.session=new cd(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rd(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:u,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:gd(i),onStart:gd(u),onMove:r,onEnd:(h,d)=>{delete this.session,c&&zt.postRender(()=>c(h,d))}}}mount(){this.removePointerDownListener=Qi(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ds={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let to=!1;class o2 extends f.Component{componentDidMount(){const{visualElement:i,layoutGroup:u,switchLayoutGroup:r,layoutId:c}=this.props,{projection:h}=i;h&&(u.group&&u.group.add(h),r&&r.register&&c&&r.register(h),to&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),ds.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:u,visualElement:r,drag:c,isPresent:h}=this.props,{projection:d}=r;return d&&(d.isPresent=h,to=!0,c||i.layoutDependency!==u||u===void 0||i.isPresent!==h?d.willUpdate():this.safeToRemove(),i.isPresent!==h&&(h?d.promote():d.relegate()||zt.postRender(()=>{const g=d.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Dr.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:u,switchLayoutGroup:r}=this.props,{projection:c}=i;to=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function vd(a){const[i,u]=y1(),r=f.useContext(Xu);return A.jsx(o2,{...a,layoutGroup:r,switchLayoutGroup:f.useContext(O1),isPresent:i,safeToRemove:u})}function c2(a,i,u){const r=re(a)?a:Za(a);return r.start(Pr("",r,i,u)),r.animation}const f2=(a,i)=>a.depth-i.depth;class d2{constructor(){this.children=[],this.isDirty=!1}add(i){Fu(this.children,i),this.isDirty=!0}remove(i){Qu(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(f2),this.isDirty=!1,this.children.forEach(i)}}function h2(a,i){const u=de.now(),r=({timestamp:c})=>{const h=c-u;h>=i&&(Dn(r),a(h-i))};return zt.setup(r,!0),()=>Dn(r)}const Sd=["TopLeft","TopRight","BottomLeft","BottomRight"],m2=Sd.length,bd=a=>typeof a=="string"?parseFloat(a):a,Ed=a=>typeof a=="number"||st.test(a);function p2(a,i,u,r,c,h){c?(a.opacity=Nt(0,u.opacity??1,y2(r)),a.opacityExit=Nt(i.opacity??1,0,g2(r))):h&&(a.opacity=Nt(i.opacity??1,u.opacity??1,r));for(let d=0;d<m2;d++){const g=`border${Sd[d]}Radius`;let p=Ad(i,g),y=Ad(u,g);if(p===void 0&&y===void 0)continue;p||(p=0),y||(y=0),p===0||y===0||Ed(p)===Ed(y)?(a[g]=Math.max(Nt(bd(p),bd(y),r),0),(We.test(y)||We.test(p))&&(a[g]+="%")):a[g]=y}(i.rotate||u.rotate)&&(a.rotate=Nt(i.rotate||0,u.rotate||0,r))}function Ad(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const y2=Td(0,.5,pf),g2=Td(.5,.95,je);function Td(a,i,u){return r=>r<a?0:r>i?1:u(wi(a,i,r))}function Md(a,i){a.min=i.min,a.max=i.max}function Ke(a,i){Md(a.x,i.x),Md(a.y,i.y)}function xd(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}function Vd(a,i,u,r,c){return a-=i,a=os(a,1/u,r),c!==void 0&&(a=os(a,1/c,r)),a}function v2(a,i=0,u=1,r=.5,c,h=a,d=a){if(We.test(i)&&(i=parseFloat(i),i=Nt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let g=Nt(h.min,h.max,r);a===h&&(g-=i),a.min=Vd(a.min,i,u,g,c),a.max=Vd(a.max,i,u,g,c)}function Ld(a,i,[u,r,c],h,d){v2(a,i[u],i[r],i[c],i.scale,h,d)}const S2=["x","scaleX","originX"],b2=["y","scaleY","originY"];function Cd(a,i,u,r){Ld(a.x,i,S2,u?u.x:void 0,r?r.x:void 0),Ld(a.y,i,b2,u?u.y:void 0,r?r.y:void 0)}function Dd(a){return a.translate===0&&a.scale===1}function Rd(a){return Dd(a.x)&&Dd(a.y)}function Hd(a,i){return a.min===i.min&&a.max===i.max}function E2(a,i){return Hd(a.x,i.x)&&Hd(a.y,i.y)}function jd(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function Od(a,i){return jd(a.x,i.x)&&jd(a.y,i.y)}function zd(a){return oe(a.x)/oe(a.y)}function Bd(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}class A2{constructor(){this.members=[]}add(i){Fu(this.members,i),i.scheduleRender()}remove(i){if(Qu(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(i){const u=this.members.findIndex(c=>i===c);if(u===0)return!1;let r;for(let c=u;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){r=h;break}}return r?(this.promote(r),!0):!1}promote(i,u){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender(),i.resumeFrom=r,u&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:u,resumingFrom:r}=i;u.onExitComplete&&u.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function T2(a,i,u){let r="";const c=a.x.translate/i.x,h=a.y.translate/i.y,d=u?.z||0;if((c||h||d)&&(r=`translate3d(${c}px, ${h}px, ${d}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),u){const{transformPerspective:y,rotate:v,rotateX:b,rotateY:E,skewX:L,skewY:O}=u;y&&(r=`perspective(${y}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),E&&(r+=`rotateY(${E}deg) `),L&&(r+=`skewX(${L}deg) `),O&&(r+=`skewY(${O}deg) `)}const g=a.x.scale*i.x,p=a.y.scale*i.y;return(g!==1||p!==1)&&(r+=`scale(${g}, ${p})`),r||"none"}const eo=["","X","Y","Z"],M2=1e3;let x2=0;function no(a,i,u,r){const{latestValues:c}=i;c[a]&&(u[a]=c[a],i.setStaticValue(a,0),r&&(r[a]=0))}function wd(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const u=$1(i);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(u,"transform",zt,!(c||h))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&wd(r)}function Nd({attachResizeListener:a,defaultParent:i,measureScroll:u,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},g=i?.()){this.id=x2++,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(C2),this.nodes.forEach(j2),this.nodes.forEach(O2),this.nodes.forEach(D2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new d2)}addEventListener(d,g){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new $u),this.eventHandlers.get(d).add(g)}notifyListeners(d,...g){const p=this.eventHandlers.get(d);p&&p.notify(...g)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=m1(d)&&!gg(d),this.instance=d;const{layoutId:g,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||g)&&(this.isLayoutDirty=!0),a){let v,b=0;const E=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{b=window.innerWidth}),a(d,()=>{const L=window.innerWidth;L!==b&&(b=L,this.root.updateBlockedByResize=!0,v&&v(),v=h2(E,250),ds.hasAnimatedSinceResize&&(ds.hasAnimatedSinceResize=!1,this.nodes.forEach(_d)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&y&&(g||p)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:E,layout:L})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||y.getDefaultTransition()||Z2,{onLayoutAnimationStart:B,onLayoutAnimationComplete:U}=y.getProps(),j=!this.targetLayout||!Od(this.targetLayout,L),Y=!b&&E;if(this.options.layoutRoot||this.resumeFrom||Y||b&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Q={...Vr(O,"layout"),onPlay:B,onComplete:U};(y.shouldReduceMotion||this.options.layoutRoot)&&(Q.delay=0,Q.type=!1),this.startAnimation(Q),this.setAnimationOrigin(v,Y)}else b||_d(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=L})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Dn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(z2),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wd(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:g,layout:p}=this.options;if(g===void 0&&!p)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zd);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ud);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(H2),this.nodes.forEach(V2),this.nodes.forEach(L2)):this.nodes.forEach(Ud),this.clearAllSnapshots();const g=de.now();ee.delta=an(0,1e3/60,g-ee.timestamp),ee.timestamp=g,ee.isProcessing=!0,tr.update.process(ee),tr.preRender.process(ee),tr.render.process(ee),ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Dr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(R2),this.sharedNodes.forEach(B2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oe(this.snapshot.measuredBox.x)&&!oe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(g=!1),g&&this.instance){const p=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:p,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!Rd(this.projectionDelta),p=this.getTransformTemplate(),y=p?p(this.latestValues,""):void 0,v=y!==this.prevTransformTemplateValue;d&&this.instance&&(g||ca(this.latestValues)||v)&&(c(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const g=this.measurePageBox();let p=this.removeElementScroll(g);return d&&(p=this.removeTransform(p)),U2(p),{animationId:this.root.animationId,measuredBox:g,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Pt();const g=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_2))){const{scroll:y}=this.root;y&&(Ga(g.x,y.offset.x),Ga(g.y,y.offset.y))}return g}removeElementScroll(d){const g=Pt();if(Ke(g,d),this.scroll?.wasRoot)return g;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:v,options:b}=y;y!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Ke(g,d),Ga(g.x,v.offset.x),Ga(g.y,v.offset.y))}return g}applyTransform(d,g=!1){const p=Pt();Ke(p,d);for(let y=0;y<this.path.length;y++){const v=this.path[y];!g&&v.options.layoutScroll&&v.scroll&&v!==v.root&&qa(p,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),ca(v.latestValues)&&qa(p,v.latestValues)}return ca(this.latestValues)&&qa(p,this.latestValues),p}removeTransform(d){const g=Pt();Ke(g,d);for(let p=0;p<this.path.length;p++){const y=this.path[p];if(!y.instance||!ca(y.latestValues))continue;Xr(y.latestValues)&&y.updateSnapshot();const v=Pt(),b=y.measurePageBox();Ke(v,b),Cd(g,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,v)}return ca(this.latestValues)&&Cd(g,this.latestValues),g}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==g;if(!(d||p&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=ee.timestamp;const E=this.getClosestProjectingParent();E&&this.linkedParentVersion!==E.layoutVersion&&!E.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(E&&E.layout?this.createRelativeTarget(E,this.layout.layoutBox,E.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pt(),this.targetWithTransforms=Pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ke(this.target,this.layout.layoutBox),U1(this.target,this.targetDelta)):Ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?this.createRelativeTarget(E,this.target,E.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Xr(this.parent.latestValues)||w1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,g,p){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),cs(this.relativeTargetOrigin,g,p),Ke(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),g=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(p=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===ee.timestamp&&(p=!1),p)return;const{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;Ke(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,E=this.treeScale.y;sv(this.layoutCorrected,this.treeScale,this.path,g),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Pt());const{target:L}=d;if(!L){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xd(this.prevProjectionDelta.x,this.projectionDelta.x),xd(this.prevProjectionDelta.y,this.projectionDelta.y)),Pi(this.projectionDelta,this.layoutCorrected,L,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==E||!Bd(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bd(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",L))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ya(),this.projectionDelta=Ya(),this.projectionDeltaWithTransform=Ya()}setAnimationOrigin(d,g=!1){const p=this.snapshot,y=p?p.latestValues:{},v={...this.latestValues},b=Ya();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const E=Pt(),L=p?p.source:void 0,O=this.layout?this.layout.source:void 0,B=L!==O,U=this.getStack(),j=!U||U.members.length<=1,Y=!!(B&&!j&&this.options.crossfade===!0&&!this.path.some(N2));this.animationProgress=0;let Q;this.mixTargetDelta=q=>{const z=q/1e3;Gd(b.x,d.x,z),Gd(b.y,d.y,z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cs(E,this.layout.layoutBox,this.relativeParent.layout.layoutBox),w2(this.relativeTarget,this.relativeTargetOrigin,E,z),Q&&E2(this.relativeTarget,Q)&&(this.isProjectionDirty=!1),Q||(Q=Pt()),Ke(Q,this.relativeTarget)),B&&(this.animationValues=v,p2(v,y,this.latestValues,z,Y,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Dn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{ds.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Za(0)),this.currentAnimation=c2(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),d.onUpdate&&d.onUpdate(g)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(M2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:g,target:p,layout:y,latestValues:v}=d;if(!(!g||!p||!y)){if(this!==d&&this.layout&&y&&Kd(this.options.animationType,this.layout.layoutBox,y.layoutBox)){p=this.target||Pt();const b=oe(this.layout.layoutBox.x);p.x.min=d.target.x.min,p.x.max=p.x.min+b;const E=oe(this.layout.layoutBox.y);p.y.min=d.target.y.min,p.y.max=p.y.min+E}Ke(g,p),qa(g,v),Pi(this.projectionDeltaWithTransform,this.layoutCorrected,g,v)}}registerSharedNode(d,g){this.sharedNodes.has(d)||this.sharedNodes.set(d,new A2),this.sharedNodes.get(d).add(g);const y=g.options.initialPromotionConfig;g.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(g):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:g,preserveFollowOpacity:p}={}){const y=this.getStack();y&&y.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let g=!1;const{latestValues:p}=d;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(g=!0),!g)return;const y={};p.z&&no("z",d,y,this.animationValues);for(let v=0;v<eo.length;v++)no(`rotate${eo[v]}`,d,y,this.animationValues),no(`skew${eo[v]}`,d,y,this.animationValues);d.render();for(const v in y)d.setStaticValue(v,y[v]),this.animationValues&&(this.animationValues[v]=y[v]);d.scheduleRender()}applyProjectionStyles(d,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=rs(g?.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none";return}const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=rs(g?.pointerEvents)||""),this.hasProjected&&!ca(this.latestValues)&&(d.transform=p?p({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=y.animationValues||y.latestValues;this.applyTransformsToTarget();let b=T2(this.projectionDeltaWithTransform,this.treeScale,v);p&&(b=p(v,b)),d.transform=b;const{x:E,y:L}=this.projectionDelta;d.transformOrigin=`${E.origin*100}% ${L.origin*100}% 0`,y.animationValues?d.opacity=y===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const O in Br){if(v[O]===void 0)continue;const{correct:B,applyTo:U,isCSSVariable:j}=Br[O],Y=b==="none"?v[O]:B(v[O],y);if(U){const Q=U.length;for(let q=0;q<Q;q++)d[U[q]]=Y}else j?this.options.visualElement.renderState.vars[O]=Y:d[O]=Y}this.options.layoutId&&(d.pointerEvents=y===this?rs(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Zd),this.root.sharedNodes.clear()}}}function V2(a){a.updateLayout()}function L2(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:r}=a.layout,{animationType:c}=a.options,h=i.source!==a.layout.source;c==="size"?ze(v=>{const b=h?i.measuredBox[v]:i.layoutBox[v],E=oe(b);b.min=u[v].min,b.max=b.min+E}):Kd(c,i.layoutBox,u)&&ze(v=>{const b=h?i.measuredBox[v]:i.layoutBox[v],E=oe(u[v]);b.max=b.min+E,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+E)});const d=Ya();Pi(d,u,i.layoutBox);const g=Ya();h?Pi(g,a.applyTransform(r,!0),i.measuredBox):Pi(g,u,i.layoutBox);const p=!Rd(d);let y=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:E}=v;if(b&&E){const L=Pt();cs(L,i.layoutBox,b.layoutBox);const O=Pt();cs(O,u,E.layoutBox),Od(L,O)||(y=!0),v.options.layoutRoot&&(a.relativeTarget=O,a.relativeTargetOrigin=L,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:u,snapshot:i,delta:g,layoutDelta:d,hasLayoutChanged:p,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:u}=a.options;u&&u()}a.options.transition=void 0}function C2(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 D2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function R2(a){a.clearSnapshot()}function Zd(a){a.clearMeasurements()}function Ud(a){a.isLayoutDirty=!1}function H2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function _d(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function j2(a){a.resolveTargetDelta()}function O2(a){a.calcProjection()}function z2(a){a.resetSkewAndRotation()}function B2(a){a.removeLeadSnapshot()}function Gd(a,i,u){a.translate=Nt(i.translate,0,u),a.scale=Nt(i.scale,1,u),a.origin=i.origin,a.originPoint=i.originPoint}function qd(a,i,u,r){a.min=Nt(i.min,u.min,r),a.max=Nt(i.max,u.max,r)}function w2(a,i,u,r){qd(a.x,i.x,u.x,r),qd(a.y,i.y,u.y,r)}function N2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const Z2={duration:.45,ease:[.4,0,.1,1]},Yd=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Xd=Yd("applewebkit/")&&!Yd("chrome/")?Math.round:je;function kd(a){a.min=Xd(a.min),a.max=Xd(a.max)}function U2(a){kd(a.x),kd(a.y)}function Kd(a,i,u){return a==="position"||a==="preserve-aspect"&&!Fv(zd(i),zd(u),.2)}function _2(a){return a!==a.root&&a.scroll?.wasRoot}const G2=Nd({attachResizeListener:(a,i)=>Ki(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ao={current:void 0},Fd=Nd({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!ao.current){const a=new G2({});a.mount(window),a.setOptions({layoutScroll:!0}),ao.current=a}return ao.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),q2={pan:{Feature:r2},drag:{Feature:u2,ProjectionNode:Fd,MeasureLayout:vd}};function Qd(a,i,u){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,h=r[c];h&&zt.postRender(()=>h(i,Fi(i)))}class Y2 extends jn{mount(){const{current:i}=this.node;i&&(this.unmount=dg(i,(u,r)=>(Qd(this.node,r,"Start"),c=>Qd(this.node,c,"End"))))}unmount(){}}class X2 extends jn{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=Bi(Ki(this.node.current,"focus",()=>this.onFocus()),Ki(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Pd(a,i,u){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),h=r[c];h&&zt.postRender(()=>h(i,Fi(i)))}class k2 extends jn{mount(){const{current:i}=this.node;i&&(this.unmount=yg(i,(u,r)=>(Pd(this.node,r,"Start"),(c,{success:h})=>Pd(this.node,c,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const io=new WeakMap,lo=new WeakMap,K2=a=>{const i=io.get(a.target);i&&i(a)},F2=a=>{a.forEach(K2)};function Q2({root:a,...i}){const u=a||document;lo.has(u)||lo.set(u,{});const r=lo.get(u),c=JSON.stringify(i);return r[c]||(r[c]=new IntersectionObserver(F2,{root:a,...i})),r[c]}function P2(a,i,u){const r=Q2(i);return io.set(a,u),r.observe(a),()=>{io.delete(a),r.unobserve(a)}}const J2={some:0,all:1};class $2 extends jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:u,margin:r,amount:c="some",once:h}=i,d={root:u?u.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:J2[c]},g=p=>{const{isIntersecting:y}=p;if(this.isInView===y||(this.isInView=y,h&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),E=y?v:b;E&&E(p)};return P2(this.node.current,d,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:u}=this.node;["amount","margin","root"].some(W2(i,u))&&this.startObserver()}unmount(){}}function W2({viewport:a={}},{viewport:i={}}={}){return u=>a[u]!==i[u]}const I2={...Gv,...{inView:{Feature:$2},tap:{Feature:k2},focus:{Feature:X2},hover:{Feature:Y2}},...q2,...{layout:{ProjectionNode:Fd,MeasureLayout:vd}}},t3=av(I2,yv);function e3(a="(max-width: 768px)"){const[i,u]=f.useState({isMobile:!1,isPortrait:!1});return f.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=navigator?.userAgent??"",c=/iPhone|Android/i.test(r),h=window.matchMedia(a),d=window.matchMedia("(orientation: portrait)"),g=()=>u({isMobile:h.matches||c,isPortrait:d.matches});return g(),h.addEventListener("change",g),d.addEventListener("change",g),()=>{h.removeEventListener("change",g),d.removeEventListener("change",g)}},[a]),i}const n3={order:["top","center","seekbar","bottom"],top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group"},{key:"volume",items:["VolumBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"meta",items:["MetaBtn"]},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},a3={order:["top","center","bottom","seekbar"],top:[{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]},i3={order:["top","center","seekbar","bottom"],top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group"},{key:"volume",items:["VolumBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},l3=768,Ji={pc:n3,mobile:a3,fullscreen:i3},s3={top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group",noPadding:!0},{key:"volume",items:["VolumBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]};function u3(a){const[i,u]=Z0("isActive",!1),r=f.useRef(null),c=f.useRef(!1),h=f.useRef(!1),d=f.useRef(0),g=a.options?.controlActiveTime||3e3,[p]=fe(),{isMobile:y,isPortrait:v}=e3(),{togglePlay:b,useTouch:E}=Ee(),[L,O]=f.useState(!1),B=(()=>{const $=a.layout??Ji;if("top"in $||"center"in $||"bottom"in $)return $;const ct=$,Mt={pc:ct.pc??Ji.pc,mobile:ct.mobile??Ji.mobile,fullscreen:ct.fullscreen??Ji.fullscreen,breakpoint:ct.breakpoint};return p.isFullscreen&&Mt.fullscreen?Mt.fullscreen:(L?Mt.mobile:Mt.pc)??Mt.pc??Mt.mobile??Mt.fullscreen??s3})(),U=h.current||p.isEnded,j=()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},Y=()=>{j(),r.current=window.setTimeout(()=>{u(!1),c.current=!0,r.current=null},g)},Q=()=>{c.current=!1,d.current=Date.now(),i||u(!0),Y()},q=()=>{c.current||Q()};f.useEffect(()=>{if(typeof window>"u")return;const $=a.layout??Ji;if("top"in $||"center"in $||"bottom"in $){O(!1);return}const Mt=$.breakpoint??l3,mt=window.matchMedia(`(max-width: ${Mt}px)`),F=()=>O(mt.matches||y);return F(),typeof mt.addEventListener=="function"?(mt.addEventListener("change",F),()=>mt.removeEventListener("change",F)):(mt.addListener(F),()=>mt.removeListener(F))},[a.layout,y]);const z=$=>[$.top,$.center,$.bottom].some(Mt=>Mt?.some(mt=>(mt.items?.length?mt.items:["Blank"]).includes("SeekBar"))??!1),k=($,ct)=>{if(typeof $!="string")return f.isValidElement($)?f.cloneElement($,{pos:ct}):$;switch($){case"PlayBtn":return A.jsx(tf,{isMobile:y,isPortrait:v,pos:ct,text:{play:a.t?.("common.play")??"재생",pause:a.t?.("common.pause")??"일시정지"}});case"VolumBtn":return A.jsx(bp,{isMobile:y,isPortrait:v,pos:ct,text:{muteOn:a.t?.("common.muteOn")??"음소거",muteOff:a.t?.("common.muteOff")??"음소거 해제"}});case"TimeBtn":return A.jsx(pp,{isMobile:y,isPortrait:v,pos:ct});case"SubtitleBtn":return A.jsx(Sp,{isMobile:y,isPortrait:v,pos:ct,text:{captionOn:a.t?.("common.captionOn")??"자막켜기",captionOff:a.t?.("common.captionOff")??"자막 끄기"}});case"FullscreenBtn":return A.jsx(vp,{isMobile:y,isPortrait:v,pos:ct,options:a.options,text:{fullOn:a.t?.("common.fullOn")??"전체화면",fullOff:a.t?.("common.fullOff")??"전체화면 해제"}});case"PipBtn":return A.jsx(Ap,{isMobile:y,isPortrait:v,pos:ct,options:a.options,text:{miniPlayer:a.t?.("common.miniPlayer")??"미니플레이어"}});case"MetaBtn":return A.jsx(gp,{title:a.metaTitle??"",isMobile:y,isPortrait:v,pos:ct});case"BigPlayBtn":return U?A.jsx(mp,{isMobile:y,isPortrait:v}):null;case"SeekBar":return A.jsx(_0,{src:a.src,hlsLib:a.hlsLib,dashLib:a.dashLib,options:a.options,pos:ct});case"LevelSelectBtn":return A.jsx(yp,{options:a.options,text:{auto:a.t?.("common.auto")??"자동"}});case"SettingBtn":return A.jsx(Ep,{isMobile:y,isPortrait:v,pos:ct,text:{setting:a.t?.("common.setting")??"설정"}});case"Blank":return A.jsx(ef,{});default:return null}},J=($,ct,Mt)=>{const F=($.items?.length?$.items:["Blank"]).map((N,X)=>{const ot=k(N,Mt);return ot?A.jsx(f.Fragment,{children:ot},`${ct}-${$.key}-${N}-${X}`):null}).filter(N=>N!==null);return F.length?$.wrapper==="Blank"?A.jsx(ef,{children:F},`${ct}-${$.key}`):$.wrapper==="Group"?A.jsx(Kl,{noPadding:!(F.length>1),cap:$.cap,children:F},`${ct}-${$.key}`):A.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:F},`${ct}-${$.key}`):null},K=($,ct)=>{if(!$?.length)return null;if(ct!=="bottom")return $.map(mt=>J(mt,ct));let Mt="left";return $.map(mt=>{const F=mt.items?.length?mt.items:["Blank"],N=mt.wrapper==="Blank"||F.includes("Blank"),X=J(mt,ct,Mt);return N&&(Mt="right"),X})},I=!z(B),at=B.order??["top","center","seekbar","bottom"],Rt=()=>I?A.jsx("div",{children:A.jsx(_0,{src:a.src,hlsLib:a.hlsLib,dashLib:a.dashLib,options:a.options})}):null;return f.useEffect(()=>{y&&(h.current=!0)},[y]),A.jsxs(A.Fragment,{children:[p.isLoading&&A.jsx(nf,{poster:a.poster,options:a.options}),p.isWaiting&&A.jsx(nf,{}),p.isSettingModal&&A.jsx(Mp,{text:{setting:a.t?.("common.setting")??"세팅",auto:a.t?.("common.auto")??"자동",notUse:a.t?.("common.notUse")??"사용안함",quality:a.t?.("settings.quality")??"해상도",autoplay:a.t?.("settings.autoplay")??"자동재생",playbackRate:a.t?.("settings.playbackRate")??"재생 속도",captions:a.t?.("settings.captions")??"자막"},vtt:a.src?.vtt,options:a.options}),!p.isLoading&&A.jsx(A.Fragment,{children:p.initPlay?A.jsx("div",{className:"absolute z-[2] h-full w-full max-h-[100dvh] max-w-[100dvw] overflow-hidden",style:{cursor:"none"},onClick:()=>{E()},onMouseEnter:()=>{q()},onMouseMove:()=>{Q()},onTouchStart:()=>{E()},onMouseLeave:()=>{j(),c.current=!1},children:A.jsx(Vg,{children:(i||p.isEnded)&&A.jsx(t3.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"flex flex-col w-full h-full vpe-contorl-bar-root p-3 gap-3 ",style:{cursor:"default"},children:at.map($=>$==="top"?A.jsx("div",{className:"flex items-center ",children:K(B.top,"top")},"layout-top"):$==="center"?A.jsx("div",{className:"flex-1 flex justify-center items-center",onClick:()=>{!y&&!v&&b(),h.current=!0},onMouseLeave:()=>{h.current=!1},children:K(B.center,"center")},"layout-center"):$==="seekbar"?A.jsx("div",{children:A.jsx(f.Fragment,{children:Rt()})},"layout-seekbar"):$==="bottom"?A.jsx("div",{className:"flex items-center gap-2",children:K(B.bottom,"bottom")},"layout-bottom"):null)})})}):A.jsx(Tp,{poster:a.poster,options:a.options})})]})}function Jd(a){const{accessKey:i,platform:u="pub",stage:r="prod",isDev:c=!1,hls:h,dashjs:d,options:g,layout:p}=a,[y,v]=f.useState(null),[b,E]=f.useState([]),[L,O]=f.useState(!1),[B,U]=Z0("playerOptions",g??{}),[j,Y]=f.useState(""),Q=0,q=location.host||"local";f.useEffect(()=>{if(!i)return;const I=new L4({accessKey:i,appId:q,platform:u,stage:r,isDev:c});v(I)},[i,q,u,r,c]),f.useEffect(()=>{if(!y||L)return;(async()=>{if(await y.initialize(),y.isInitialized()){const at=y.getValidatedOptions(g);U(at),E(at?.playlist||[]),O(!0)}})()},[y,L,g,U]),f.useEffect(()=>{const I=globalThis;h&&(I.Hls=h),d&&(I.dashjs=d)},[h,d]),f.useEffect(()=>{const I=b?.[Q]?.file;if(!I){Y("");return}const at=I.toLowerCase();at.endsWith(".m3u8")?Y("hls"):at.endsWith(".mpd")?Y("dash"):at.endsWith(".mp4")?Y("mp4"):Y("")},[b,Q]),f.useEffect(()=>{if(!y||!j)return;const I=globalThis,at=h??I.Hls,Rt=d??I.dashjs;j==="hls"&&!at&&y.setErrorRun("E0015"),j==="dash"&&!Rt&&y.setErrorRun("E0016")},[j,y,h,d]);const z=b?.[Q],k=h??globalThis.Hls,J=d??globalThis.dashjs,K=()=>{if(!z)return null;switch(j){case"hls":return A.jsx(Z4,{src:z,hlsLib:k,options:B});case"dash":return A.jsx(U4,{src:z,dashLib:J,options:B});case"mp4":return A.jsx(_4,{src:z,options:B});default:return null}};return A.jsxs("div",{className:"vpe-root-wrap relative max-h-[100dvh] ",children:[A.jsx(u3,{src:z,hlsLib:k,dashLib:J,options:B,poster:z?.poster,layout:p,metaTitle:z?.description?.title,t:I=>y?.$t(I)??I}),A.jsx("div",{className:"flex h-full w-full justify-center flex-col max-h-[100dvh]",style:{aspectRatio:B?.aspectRatio||"16/9"},children:K()})]})}const $d=globalThis;$d.process||($d.process={env:{}});let Wd,so;const r3=(()=>{if(typeof document>"u")return"";const a=[];document.currentScript instanceof HTMLScriptElement&&a.push(document.currentScript),a.push(...Array.from(document.getElementsByTagName("script")));for(const i of a)if(i.src)try{const r=new URL(i.src,window.location.href).searchParams.get("accessKey");if(r)return r}catch{continue}return""})();function o3(a){return a||r3}const c3=a=>!a||typeof a!="object"?!1:"options"in a||"layout"in a||"platform"in a||"stage"in a||"hls"in a||"dashjs"in a||"accessKey"in a;function f3(a){if(!a)return;const i=globalThis,u=typeof a=="object"&&a!==null&&("MediaPlayer"in a||"MediaPlayerFactory"in a),r=typeof a=="function"||typeof a=="object"&&a!==null&&("isSupported"in a||"Events"in a);if(u&&!r){i.dashjs=a;return}if(r&&!u){i.Hls=a;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function d3(a){return typeof a!="string"||a.startsWith("#")||a.startsWith(".")||a.startsWith("[")||a.includes(" ")||a.includes(">")||a.includes(":")?a:typeof document<"u"&&document.getElementById(a)?`#${a}`:a}function h3(a){return A.jsx(Jd,{...a})}function uo(a,i,u={}){const r=typeof i=="string"?i:i?.accessKey,c=typeof i=="string"?u:i??{},h=c3(c)?c:{options:c},d=o3(r);if(!d)throw new Error("accessKey를 찾을 수 없습니다.");const g=typeof a=="string"?document.querySelector(a):a;if(!g)throw new Error("지정한 타겟을 찾을 수 없습니다.");const p=document.createElement("div");g.appendChild(p);const y=o4.createRoot(p),v={...h,layout:h.layout??Wd,platform:h.platform??so?.platform,stage:h.stage??so?.stage},b=(L={})=>{y.render(A.jsx(Jd,{...v,...L,accessKey:d}))};return b(),{destroy:()=>{y.unmount(),p.parentNode&&p.parentNode.removeChild(p)},container:p,render:b}}class ka{destroy;container;render;static use(i){return f3(i),ka}static layout(i){return Wd=i,ka}static config(i){return so=i,ka}constructor(i,u,r={}){const c=uo(d3(i),u,r);this.destroy=c.destroy,this.container=c.container,this.render=c.render}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:uo},window.ncplayer=ka),xn.Ncplayer=ka,xn.VpePlayer=h3,xn.setup=uo,Object.defineProperty(xn,Symbol.toStringTag,{value:"Module"})}));
|
|
17
|
+
`),()=>{H.contains(V)&&H.removeChild(V)}},[a]),S.jsx(Rb,{isPresent:a,childRef:f,sizeRef:d,children:j.cloneElement(i,{ref:m})})}const Ob=({children:i,initial:a,isPresent:s,onExitComplete:o,custom:c,presenceAffectsLayout:f,mode:d,anchorX:y,root:m})=>{const p=Fu(Bb),v=j.useId();let T=!0,b=j.useMemo(()=>(T=!1,{id:v,initial:a,isPresent:s,custom:c,onExitComplete:C=>{p.set(C,!0);for(const w of p.values())if(!w)return;o&&o()},register:C=>(p.set(C,!1),()=>p.delete(C))}),[s,p,o]);return f&&T&&(b={...b}),j.useMemo(()=>{p.forEach((C,w)=>p.set(w,!1))},[s]),j.useEffect(()=>{!s&&!p.size&&o&&o()},[s]),d==="popLayout"&&(i=S.jsx(jb,{isPresent:s,anchorX:y,root:m,children:i})),S.jsx(ns.Provider,{value:b,children:i})};function Bb(){return new Map}function gh(i=!0){const a=j.useContext(ns);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:c}=a,f=j.useId();j.useEffect(()=>{if(i)return c(f)},[i]);const d=j.useCallback(()=>i&&o&&o(f),[f,o,i]);return!s&&o?[!1,d]:[!0]}const cs=i=>i.key||"";function Sh(i){const a=[];return j.Children.forEach(i,s=>{j.isValidElement(s)&&a.push(s)}),a}const Vb=({children:i,custom:a,initial:s=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:f="sync",propagate:d=!1,anchorX:y="left",root:m})=>{const[p,v]=gh(d),T=j.useMemo(()=>Sh(i),[i]),b=d&&!p?[]:T.map(cs),C=j.useRef(!0),w=j.useRef(T),V=Fu(()=>new Map),[H,O]=j.useState(T),[k,Q]=j.useState(T);sd(()=>{C.current=!1,w.current=T;for(let K=0;K<k.length;K++){const J=cs(k[K]);b.includes(J)?V.delete(J):V.get(J)!==!0&&V.set(J,!1)}},[k,b.length,b.join("-")]);const G=[];if(T!==H){let K=[...T];for(let J=0;J<k.length;J++){const Z=k[J],tt=cs(Z);b.includes(tt)||(K.splice(J,0,Z),G.push(Z))}return f==="wait"&&G.length&&(K=G),Q(Sh(K)),O(T),null}const{forceRender:L}=j.useContext(Pu);return S.jsx(S.Fragment,{children:k.map(K=>{const J=cs(K),Z=d&&!p?!1:T===k||b.includes(J),tt=()=>{if(V.has(J))V.set(J,!0);else return;let it=!0;V.forEach(jt=>{jt||(it=!1)}),it&&(L?.(),Q(w.current),d&&v?.(),o&&o())};return S.jsx(Ob,{isPresent:Z,initial:!C.current||s?void 0:!1,custom:a,presenceAffectsLayout:c,mode:f,root:m,onExitComplete:Z?void 0:tt,anchorX:y,children:K},J)})})},bh=j.createContext({strict:!1}),Th={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"]},qi={};for(const i in Th)qi[i]={isEnabled:a=>Th[i].some(s=>!!a[s])};function Lb(i){for(const a in i)qi[a]={...qi[a],...i[a]}}const wb=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fs(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||wb.has(i)}let xh=i=>!fs(i);function Nb(i){typeof i=="function"&&(xh=a=>a.startsWith("on")?!fs(a):i(a))}try{Nb(require("@emotion/is-prop-valid").default)}catch{}function Ub(i,a,s){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||(xh(c)||s===!0&&fs(c)||!a&&!fs(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const ds=j.createContext({});function hs(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Pa(i){return typeof i=="string"||Array.isArray(i)}const _o=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ho=["initial",..._o];function ms(i){return hs(i.animate)||Ho.some(a=>Pa(i[a]))}function Eh(i){return!!(ms(i)||i.variants)}function _b(i,a){if(ms(i)){const{initial:s,animate:o}=i;return{initial:s===!1||Pa(s)?s:void 0,animate:Pa(o)?o:void 0}}return i.inherit!==!1?a:{}}function Hb(i){const{initial:a,animate:s}=_b(i,j.useContext(ds));return j.useMemo(()=>({initial:a,animate:s}),[Mh(a),Mh(s)])}function Mh(i){return Array.isArray(i)?i.join(" "):i}function Ah(i,a){return a.max===a.min?0:i/(a.max-a.min)*100}const Fa={correct:(i,a)=>{if(!a.target)return i;if(typeof i=="string")if(lt.test(i))i=parseFloat(i);else return i;const s=Ah(i,a.target.x),o=Ah(i,a.target.y);return`${s}% ${o}%`}},Gb={correct:(i,{treeScale:a,projectionDelta:s})=>{const o=i,c=wn.parse(i);if(c.length>5)return o;const f=wn.createTransformer(i),d=typeof c[0]!="number"?1:0,y=s.x.scale*a.x,m=s.y.scale*a.y;c[0+d]/=y,c[1+d]/=m;const p=Ut(y,m,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),f(c)}},Go={borderRadius:{...Fa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fa,borderTopRightRadius:Fa,borderBottomLeftRadius:Fa,borderBottomRightRadius:Fa,boxShadow:Gb};function Ch(i,{layout:a,layoutId:s}){return Gi.has(i)||i.startsWith("origin")||(a||s!==void 0)&&(!!Go[i]||i==="opacity")}const Yb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qb=Hi.length;function kb(i,a,s){let o="",c=!0;for(let f=0;f<qb;f++){const d=Hi[f],y=i[d];if(y===void 0)continue;let m=!0;if(typeof y=="number"?m=y===(d.startsWith("scale")?1:0):m=parseFloat(y)===0,!m||s){const p=uh(y,Vo[d]);if(!m){c=!1;const v=Yb[d]||d;o+=`${v}(${p}) `}s&&(a[d]=p)}}return o=o.trim(),s?o=s(a,c?"":o):c&&(o="none"),o}function Yo(i,a,s){const{style:o,vars:c,transformOrigin:f}=i;let d=!1,y=!1;for(const m in a){const p=a[m];if(Gi.has(m)){d=!0;continue}else if(Md(m)){c[m]=p;continue}else{const v=uh(p,Vo[m]);m.startsWith("origin")?(y=!0,f[m]=v):o[m]=v}}if(a.transform||(d||s?o.transform=kb(a,i.transform,s):o.transform&&(o.transform="none")),y){const{originX:m="50%",originY:p="50%",originZ:v=0}=f;o.transformOrigin=`${m} ${p} ${v}`}}const qo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dh(i,a,s){for(const o in a)!ce(a[o])&&!Ch(o,s)&&(i[o]=a[o])}function Xb({transformTemplate:i},a){return j.useMemo(()=>{const s=qo();return Yo(s,a,i),Object.assign({},s.vars,s.style)},[a])}function Kb(i,a){const s=i.style||{},o={};return Dh(o,s,i),Object.assign(o,Xb(i,a)),o}function Zb(i,a){const s={},o=Kb(i,a);return i.drag&&i.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(s.tabIndex=0),s.style=o,s}const Qb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pb={offset:"strokeDashoffset",array:"strokeDasharray"};function Fb(i,a,s=1,o=0,c=!0){i.pathLength=1;const f=c?Qb:Pb;i[f.offset]=lt.transform(-o);const d=lt.transform(a),y=lt.transform(s);i[f.array]=`${d} ${y}`}function zh(i,{attrX:a,attrY:s,attrScale:o,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...y},m,p,v){if(Yo(i,y,p),m){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:T,style:b}=i;T.transform&&(b.transform=T.transform,delete T.transform),(b.transform||T.transformOrigin)&&(b.transformOrigin=T.transformOrigin??"50% 50%",delete T.transformOrigin),b.transform&&(b.transformBox=v?.transformBox??"fill-box",delete T.transformBox),a!==void 0&&(T.x=a),s!==void 0&&(T.y=s),o!==void 0&&(T.scale=o),c!==void 0&&Fb(T,c,f,d,!1)}const Rh=()=>({...qo(),attrs:{}}),jh=i=>typeof i=="string"&&i.toLowerCase()==="svg";function Jb(i,a,s,o){const c=j.useMemo(()=>{const f=Rh();return zh(f,a,jh(o),i.transformTemplate,i.style),{...f.attrs,style:{...f.style}}},[a]);if(i.style){const f={};Dh(f,i.style,i),c.style={...f,...c.style}}return c}const Wb=["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 ko(i){return typeof i!="string"||i.includes("-")?!1:!!(Wb.indexOf(i)>-1||/[A-Z]/u.test(i))}function $b(i,a,s,{latestValues:o},c,f=!1){const y=(ko(i)?Jb:Zb)(a,o,c,i),m=Ub(a,typeof i=="string",f),p=i!==j.Fragment?{...m,...y,ref:s}:{},{children:v}=a,T=j.useMemo(()=>ce(v)?v.get():v,[v]);return j.createElement(i,{...p,children:T})}function Oh(i){const a=[{},{}];return i?.values.forEach((s,o)=>{a[0][o]=s.get(),a[1][o]=s.getVelocity()}),a}function Xo(i,a,s,o){if(typeof a=="function"){const[c,f]=Oh(o);a=a(s!==void 0?s:i.custom,c,f)}if(typeof a=="string"&&(a=i.variants&&i.variants[a]),typeof a=="function"){const[c,f]=Oh(o);a=a(s!==void 0?s:i.custom,c,f)}return a}function ps(i){return ce(i)?i.get():i}function Ib({scrapeMotionValuesFromProps:i,createRenderState:a},s,o,c){return{latestValues:tT(s,o,c,i),renderState:a()}}function tT(i,a,s,o){const c={},f=o(i,{});for(const b in f)c[b]=ps(f[b]);let{initial:d,animate:y}=i;const m=ms(i),p=Eh(i);a&&p&&!m&&i.inherit!==!1&&(d===void 0&&(d=a.initial),y===void 0&&(y=a.animate));let v=s?s.initial===!1:!1;v=v||d===!1;const T=v?y:d;if(T&&typeof T!="boolean"&&!hs(T)){const b=Array.isArray(T)?T:[T];for(let C=0;C<b.length;C++){const w=Xo(i,b[C]);if(w){const{transitionEnd:V,transition:H,...O}=w;for(const k in O){let Q=O[k];if(Array.isArray(Q)){const G=v?Q.length-1:0;Q=Q[G]}Q!==null&&(c[k]=Q)}for(const k in V)c[k]=V[k]}}}return c}const Bh=i=>(a,s)=>{const o=j.useContext(ds),c=j.useContext(ns),f=()=>Ib(i,a,o,c);return s?f():Fu(f)};function Ko(i,a,s){const{style:o}=i,c={};for(const f in o)(ce(o[f])||a.style&&ce(a.style[f])||Ch(f,i)||s?.getValue(f)?.liveStyle!==void 0)&&(c[f]=o[f]);return c}const eT=Bh({scrapeMotionValuesFromProps:Ko,createRenderState:qo});function Vh(i,a,s){const o=Ko(i,a,s);for(const c in i)if(ce(i[c])||ce(a[c])){const f=Hi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[f]=i[c]}return o}const nT=Bh({scrapeMotionValuesFromProps:Vh,createRenderState:Rh}),iT=Symbol.for("motionComponentSymbol");function ki(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function aT(i,a,s){return j.useCallback(o=>{o&&i.onMount&&i.onMount(o),a&&(o?a.mount(o):a.unmount()),s&&(typeof s=="function"?s(o):ki(s)&&(s.current=o))},[a])}const Zo=i=>i.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lh="data-"+Zo("framerAppearId"),wh=j.createContext({});function lT(i,a,s,o,c){const{visualElement:f}=j.useContext(ds),d=j.useContext(bh),y=j.useContext(ns),m=j.useContext(Uo).reducedMotion,p=j.useRef(null);o=o||d.renderer,!p.current&&o&&(p.current=o(i,{visualState:a,parent:f,props:s,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:m}));const v=p.current,T=j.useContext(wh);v&&!v.projection&&c&&(v.type==="html"||v.type==="svg")&&sT(p.current,s,c,T);const b=j.useRef(!1);j.useInsertionEffect(()=>{v&&b.current&&v.update(s,y)});const C=s[Lh],w=j.useRef(!!C&&!window.MotionHandoffIsComplete?.(C)&&window.MotionHasOptimisedAnimation?.(C));return sd(()=>{v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),w.current&&v.animationState&&v.animationState.animateChanges())}),j.useEffect(()=>{v&&(!w.current&&v.animationState&&v.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(C)}),w.current=!1),v.enteringChildren=void 0)}),v}function sT(i,a,s,o){const{layoutId:c,layout:f,drag:d,dragConstraints:y,layoutScroll:m,layoutRoot:p,layoutCrossfade:v}=a;i.projection=new s(i.latestValues,a["data-framer-portal-id"]?void 0:Nh(i.parent)),i.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||y&&ki(y),visualElement:i,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:m,layoutRoot:p})}function Nh(i){if(i)return i.options.allowProjection!==!1?i.projection:Nh(i.parent)}function Qo(i,{forwardMotionProps:a=!1}={},s,o){s&&Lb(s);const c=ko(i)?nT:eT;function f(y,m){let p;const v={...j.useContext(Uo),...y,layoutId:uT(y)},{isStatic:T}=v,b=Hb(y),C=c(y,T);if(!T&&Ju){oT();const w=rT(v);p=w.MeasureLayout,b.visualElement=lT(i,C,v,o,w.ProjectionNode)}return S.jsxs(ds.Provider,{value:b,children:[p&&b.visualElement?S.jsx(p,{visualElement:b.visualElement,...v}):null,$b(i,y,aT(C,b.visualElement,m),C,T,a)]})}f.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const d=j.forwardRef(f);return d[iT]=i,d}function uT({layoutId:i}){const a=j.useContext(Pu).id;return a&&i!==void 0?a+"-"+i:i}function oT(i,a){j.useContext(bh).strict}function rT(i){const{drag:a,layout:s}=qi;if(!a&&!s)return{};const o={...a,...s};return{MeasureLayout:a?.isEnabled(i)||s?.isEnabled(i)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function cT(i,a){if(typeof Proxy>"u")return Qo;const s=new Map,o=(f,d)=>Qo(f,d,i,a),c=(f,d)=>o(f,d);return new Proxy(c,{get:(f,d)=>d==="create"?o:(s.has(d)||s.set(d,Qo(d,void 0,i,a)),s.get(d))})}function Uh({top:i,left:a,right:s,bottom:o}){return{x:{min:a,max:s},y:{min:i,max:o}}}function fT({x:i,y:a}){return{top:a.min,right:i.max,bottom:a.max,left:i.min}}function dT(i,a){if(!a)return i;const s=a({x:i.left,y:i.top}),o=a({x:i.right,y:i.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function Po(i){return i===void 0||i===1}function Fo({scale:i,scaleX:a,scaleY:s}){return!Po(i)||!Po(a)||!Po(s)}function hi(i){return Fo(i)||_h(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function _h(i){return Hh(i.x)||Hh(i.y)}function Hh(i){return i&&i!=="0%"}function ys(i,a,s){const o=i-s,c=a*o;return s+c}function Gh(i,a,s,o,c){return c!==void 0&&(i=ys(i,c,o)),ys(i,s,o)+a}function Jo(i,a=0,s=1,o,c){i.min=Gh(i.min,a,s,o,c),i.max=Gh(i.max,a,s,o,c)}function Yh(i,{x:a,y:s}){Jo(i.x,a.translate,a.scale,a.originPoint),Jo(i.y,s.translate,s.scale,s.originPoint)}const qh=.999999999999,kh=1.0000000000001;function hT(i,a,s,o=!1){const c=s.length;if(!c)return;a.x=a.y=1;let f,d;for(let y=0;y<c;y++){f=s[y],d=f.projectionDelta;const{visualElement:m}=f.options;m&&m.props.style&&m.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ki(i,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,Yh(i,d)),o&&hi(f.latestValues)&&Ki(i,f.latestValues))}a.x<kh&&a.x>qh&&(a.x=1),a.y<kh&&a.y>qh&&(a.y=1)}function Xi(i,a){i.min=i.min+a,i.max=i.max+a}function Xh(i,a,s,o,c=.5){const f=Ut(i.min,i.max,c);Jo(i,a,s,f,o)}function Ki(i,a){Xh(i.x,a.x,a.scaleX,a.scale,a.originX),Xh(i.y,a.y,a.scaleY,a.scale,a.originY)}function Kh(i,a){return Uh(dT(i.getBoundingClientRect(),a))}function mT(i,a,s){const o=Kh(i,s),{scroll:c}=a;return c&&(Xi(o.x,c.offset.x),Xi(o.y,c.offset.y)),o}const Zh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zi=()=>({x:Zh(),y:Zh()}),Qh=()=>({min:0,max:0}),Jt=()=>({x:Qh(),y:Qh()}),Wo={current:null},Ph={current:!1};function pT(){if(Ph.current=!0,!!Ju)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),a=()=>Wo.current=i.matches;i.addEventListener("change",a),a()}else Wo.current=!1}const yT=new WeakMap;function vT(i,a,s){for(const o in a){const c=a[o],f=s[o];if(ce(c))i.addValue(o,c);else if(ce(f))i.addValue(o,Yi(c,{owner:i}));else if(f!==c)if(i.hasValue(o)){const d=i.getValue(o);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=i.getStaticValue(o);i.addValue(o,Yi(d!==void 0?d:c,{owner:i}))}}for(const o in s)a[o]===void 0&&i.removeValue(o);return a}const Fh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gT{scrapeMotionValuesFromProps(a,s,o){return{}}constructor({parent:a,props:s,presenceContext:o,reducedMotionConfig:c,blockInitialAnimation:f,visualState:d},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ro,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=pe.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Lt.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=d;this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=p,this.parent=a,this.props=s,this.presenceContext=o,this.depth=a?a.depth+1:0,this.reducedMotionConfig=c,this.options=y,this.blockInitialAnimation=!!f,this.isControllingVariants=ms(s),this.isVariantNode=Eh(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:v,...T}=this.scrapeMotionValuesFromProps(s,{},this);for(const b in T){const C=T[b];m[b]!==void 0&&ce(C)&&C.set(m[b])}}mount(a){this.current=a,yT.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),Ph.current||pT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Wo.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Vn(this.notifyUpdate),Vn(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const s=this.features[a];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,s){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const o=Gi.has(a);o&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&Lt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{c(),f&&f(),s.owner&&s.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in qi){const s=qi[a];if(!s)continue;const{isEnabled:o,Feature:c}=s;if(!this.features[a]&&c&&o(this.props)&&(this.features[a]=new c(this)),this.features[a]){const f=this.features[a];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<Fh.length;o++){const c=Fh[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const f="on"+c,d=a[f];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=vT(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const o=this.values.get(a);s!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&s!==void 0&&(o=Yi(s===null?void 0:s,{owner:this}),this.addValue(a,o)),o}readValue(a,s){let o=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return o!=null&&(typeof o=="string"&&(ud(o)||rd(o))?o=parseFloat(o):!Cb(o)&&wn.test(s)&&(o=sh(a,s)),this.setBaseTarget(a,ce(o)?o.get():o)),ce(o)?o.get():o}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const f=Xo(this.props,s,this.presenceContext?.custom);f&&(o=f[a])}if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,a);return c!==void 0&&!ce(c)?c:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new eo),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){Lo.render(this.render)}}class Jh extends gT{constructor(){super(...arguments),this.KeyframeResolver=mb}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){return a.style?a.style[s]:void 0}removeValueFromRenderState(a,{vars:s,style:o}){delete s[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ce(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function Wh(i,{style:a,vars:s},o,c){const f=i.style;let d;for(d in a)f[d]=a[d];c?.applyProjectionStyles(f,o);for(d in s)f.setProperty(d,s[d])}function ST(i){return window.getComputedStyle(i)}class bT extends Jh{constructor(){super(...arguments),this.type="html",this.renderInstance=Wh}readValueFromInstance(a,s){if(Gi.has(s))return this.projection?.isProjecting?Mo(s):LS(a,s);{const o=ST(a),c=(Md(s)?o.getPropertyValue(s):o[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(a,{transformPagePoint:s}){return Kh(a,s)}build(a,s,o){Yo(a,s,o.transformTemplate)}scrapeMotionValuesFromProps(a,s,o){return Ko(a,s,o)}}const $h=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"]);function TT(i,a,s,o){Wh(i,a,void 0,o);for(const c in a.attrs)i.setAttribute($h.has(c)?c:Zo(c),a.attrs[c])}class xT extends Jh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Jt}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Gi.has(s)){const o=lh(s);return o&&o.default||0}return s=$h.has(s)?s:Zo(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,o){return Vh(a,s,o)}build(a,s,o){zh(a,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,s,o,c){TT(a,s,o,c)}mount(a){this.isSVGTag=jh(a.tagName),super.mount(a)}}const ET=(i,a)=>ko(i)?new xT(a):new bT(a,{allowProjection:i!==j.Fragment});function Qi(i,a,s){const o=i.getProps();return Xo(o,a,s!==void 0?s:o.custom,i)}const $o=i=>Array.isArray(i);function MT(i,a,s){i.hasValue(a)?i.getValue(a).set(s):i.addValue(a,Yi(s))}function AT(i){return $o(i)?i[i.length-1]||0:i}function CT(i,a){const s=Qi(i,a);let{transitionEnd:o={},transition:c={},...f}=s||{};f={...f,...o};for(const d in f){const y=AT(f[d]);MT(i,d,y)}}function DT(i){return!!(ce(i)&&i.add)}function Io(i,a){const s=i.getValue("willChange");if(DT(s))return s.add(a);if(!s&&dn.WillChange){const o=new dn.WillChange("auto");i.addValue("willChange",o),o.add(a)}}function Ih(i){return i.props[Lh]}const zT=i=>i!==null;function RT(i,{repeat:a,repeatType:s="loop"},o){const c=i.filter(zT),f=a&&s!=="loop"&&a%2===1?0:c.length-1;return c[f]}const jT={type:"spring",stiffness:500,damping:25,restSpeed:10},OT=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),BT={type:"keyframes",duration:.8},VT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LT=(i,{keyframes:a})=>a.length>2?BT:Gi.has(i)?i.startsWith("scale")?OT(a[1]):jT:VT;function wT({when:i,delay:a,delayChildren:s,staggerChildren:o,staggerDirection:c,repeat:f,repeatType:d,repeatDelay:y,from:m,elapsed:p,...v}){return!!Object.keys(v).length}const tr=(i,a,s,o={},c,f)=>d=>{const y=Oo(o,i)||{},m=y.delay||o.delay||0;let{elapsed:p=0}=o;p=p-en(m);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...y,delay:-p,onUpdate:b=>{a.set(b),y.onUpdate&&y.onUpdate(b)},onComplete:()=>{d(),y.onComplete&&y.onComplete()},name:i,motionValue:a,element:f?void 0:c};wT(y)||Object.assign(v,LT(i,v)),v.duration&&(v.duration=en(v.duration)),v.repeatDelay&&(v.repeatDelay=en(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let T=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(jo(v),v.delay===0&&(T=!0)),(dn.instantAnimations||dn.skipAnimations)&&(T=!0,jo(v),v.delay=0),v.allowFlatten=!y.type&&!y.ease,T&&!f&&a.get()!==void 0){const b=RT(v.keyframes,y);if(b!==void 0){Lt.update(()=>{v.onUpdate(b),v.onComplete()});return}}return y.isSync?new To(v):new ib(v)};function NT({protectedKeys:i,needsAnimating:a},s){const o=i.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,o}function tm(i,a,{delay:s=0,transitionOverride:o,type:c}={}){let{transition:f=i.getDefaultTransition(),transitionEnd:d,...y}=a;o&&(f=o);const m=[],p=c&&i.animationState&&i.animationState.getState()[c];for(const v in y){const T=i.getValue(v,i.latestValues[v]??null),b=y[v];if(b===void 0||p&&NT(p,v))continue;const C={delay:s,...Oo(f||{},v)},w=T.get();if(w!==void 0&&!T.isAnimating&&!Array.isArray(b)&&b===w&&!C.velocity)continue;let V=!1;if(window.MotionHandoffAnimation){const O=Ih(i);if(O){const k=window.MotionHandoffAnimation(O,v,Lt);k!==null&&(C.startTime=k,V=!0)}}Io(i,v),T.start(tr(v,T,b,i.shouldReduceMotion&&th.has(v)?{type:!1}:C,i,V));const H=T.animation;H&&m.push(H)}return d&&Promise.all(m).then(()=>{Lt.update(()=>{d&&CT(i,d)})}),m}function em(i,a,s,o=0,c=1){const f=Array.from(i).sort((p,v)=>p.sortNodePosition(v)).indexOf(a),d=i.size,y=(d-1)*o;return typeof s=="function"?s(f,d):c===1?f*o:y-f*o}function er(i,a,s={}){const o=Qi(i,a,s.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(c=s.transitionOverride);const f=o?()=>Promise.all(tm(i,o,s)):()=>Promise.resolve(),d=i.variantChildren&&i.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:T}=c;return UT(i,a,m,p,v,T,s)}:()=>Promise.resolve(),{when:y}=c;if(y){const[m,p]=y==="beforeChildren"?[f,d]:[d,f];return m().then(()=>p())}else return Promise.all([f(),d(s.delay)])}function UT(i,a,s=0,o=0,c=0,f=1,d){const y=[];for(const m of i.variantChildren)m.notify("AnimationStart",a),y.push(er(m,a,{...d,delay:s+(typeof o=="function"?0:o)+em(i.variantChildren,m,o,c,f)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(y)}function _T(i,a,s={}){i.notify("AnimationStart",a);let o;if(Array.isArray(a)){const c=a.map(f=>er(i,f,s));o=Promise.all(c)}else if(typeof a=="string")o=er(i,a,s);else{const c=typeof a=="function"?Qi(i,a,s.custom):a;o=Promise.all(tm(i,c,s))}return o.then(()=>{i.notify("AnimationComplete",a)})}function nm(i,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==i.length)return!1;for(let o=0;o<s;o++)if(a[o]!==i[o])return!1;return!0}const HT=Ho.length;function im(i){if(!i)return;if(!i.isControllingVariants){const s=i.parent?im(i.parent)||{}:{};return i.props.initial!==void 0&&(s.initial=i.props.initial),s}const a={};for(let s=0;s<HT;s++){const o=Ho[s],c=i.props[o];(Pa(c)||c===!1)&&(a[o]=c)}return a}const GT=[..._o].reverse(),YT=_o.length;function qT(i){return a=>Promise.all(a.map(({animation:s,options:o})=>_T(i,s,o)))}function kT(i){let a=qT(i),s=am(),o=!0;const c=m=>(p,v)=>{const T=Qi(i,v,m==="exit"?i.presenceContext?.custom:void 0);if(T){const{transition:b,transitionEnd:C,...w}=T;p={...p,...w,...C}}return p};function f(m){a=m(i)}function d(m){const{props:p}=i,v=im(i.parent)||{},T=[],b=new Set;let C={},w=1/0;for(let H=0;H<YT;H++){const O=GT[H],k=s[O],Q=p[O]!==void 0?p[O]:v[O],G=Pa(Q),L=O===m?k.isActive:null;L===!1&&(w=H);let K=Q===v[O]&&Q!==p[O]&&G;if(K&&o&&i.manuallyAnimateOnMount&&(K=!1),k.protectedKeys={...C},!k.isActive&&L===null||!Q&&!k.prevProp||hs(Q)||typeof Q=="boolean")continue;const J=XT(k.prevProp,Q);let Z=J||O===m&&k.isActive&&!K&&G||H>w&&G,tt=!1;const it=Array.isArray(Q)?Q:[Q];let jt=it.reduce(c(O),{});L===!1&&(jt={});const{prevResolvedValues:W={}}=k,st={...W,...jt},Mt=U=>{Z=!0,b.has(U)&&(tt=!0,b.delete(U)),k.needsAnimating[U]=!0;const X=i.getValue(U);X&&(X.liveStyle=!1)};for(const U in st){const X=jt[U],ot=W[U];if(C.hasOwnProperty(U))continue;let St=!1;$o(X)&&$o(ot)?St=!nm(X,ot):St=X!==ot,St?X!=null?Mt(U):b.add(U):X!==void 0&&b.has(U)?Mt(U):k.protectedKeys[U]=!0}k.prevProp=Q,k.prevResolvedValues=jt,k.isActive&&(C={...C,...jt}),o&&i.blockInitialAnimation&&(Z=!1);const ft=K&&J;Z&&(!ft||tt)&&T.push(...it.map(U=>{const X={type:O};if(typeof U=="string"&&o&&!ft&&i.manuallyAnimateOnMount&&i.parent){const{parent:ot}=i,St=Qi(ot,U);if(ot.enteringChildren&&St){const{delayChildren:$t}=St.transition||{};X.delay=em(ot.enteringChildren,i,$t)}}return{animation:U,options:X}}))}if(b.size){const H={};if(typeof p.initial!="boolean"){const O=Qi(i,Array.isArray(p.initial)?p.initial[0]:p.initial);O&&O.transition&&(H.transition=O.transition)}b.forEach(O=>{const k=i.getBaseTarget(O),Q=i.getValue(O);Q&&(Q.liveStyle=!0),H[O]=k??null}),T.push({animation:H})}let V=!!T.length;return o&&(p.initial===!1||p.initial===p.animate)&&!i.manuallyAnimateOnMount&&(V=!1),o=!1,V?a(T):Promise.resolve()}function y(m,p){if(s[m].isActive===p)return Promise.resolve();i.variantChildren?.forEach(T=>T.animationState?.setActive(m,p)),s[m].isActive=p;const v=d(m);for(const T in s)s[T].protectedKeys={};return v}return{animateChanges:d,setActive:y,setAnimateFunction:f,getState:()=>s,reset:()=>{s=am()}}}function XT(i,a){return typeof a=="string"?a!==i:Array.isArray(a)?!nm(a,i):!1}function mi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function am(){return{animate:mi(!0),whileInView:mi(),whileHover:mi(),whileTap:mi(),whileDrag:mi(),whileFocus:mi(),exit:mi()}}class Nn{constructor(a){this.isMounted=!1,this.node=a}update(){}}class KT extends Nn{constructor(a){super(a),a.animationState||(a.animationState=kT(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();hs(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ZT=0;class QT extends Nn{constructor(){super(...arguments),this.id=ZT++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;const c=this.node.animationState.setActive("exit",!a);s&&!a&&c.then(()=>{s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const PT={animation:{Feature:KT},exit:{Feature:QT}};function Ja(i,a,s,o={passive:!0}){return i.addEventListener(a,s,o),()=>i.removeEventListener(a,s)}function Wa(i){return{point:{x:i.pageX,y:i.pageY}}}const FT=i=>a=>wo(a)&&i(a,Wa(a));function $a(i,a,s,o){return Ja(i,a,FT(s),o)}const lm=1e-4,JT=1-lm,WT=1+lm,sm=.01,$T=0-sm,IT=0+sm;function he(i){return i.max-i.min}function tx(i,a,s){return Math.abs(i-a)<=s}function um(i,a,s,o=.5){i.origin=o,i.originPoint=Ut(a.min,a.max,i.origin),i.scale=he(s)/he(a),i.translate=Ut(s.min,s.max,i.origin)-i.originPoint,(i.scale>=JT&&i.scale<=WT||isNaN(i.scale))&&(i.scale=1),(i.translate>=$T&&i.translate<=IT||isNaN(i.translate))&&(i.translate=0)}function Ia(i,a,s,o){um(i.x,a.x,s.x,o?o.originX:void 0),um(i.y,a.y,s.y,o?o.originY:void 0)}function om(i,a,s){i.min=s.min+a.min,i.max=i.min+he(a)}function ex(i,a,s){om(i.x,a.x,s.x),om(i.y,a.y,s.y)}function rm(i,a,s){i.min=a.min-s.min,i.max=i.min+he(a)}function vs(i,a,s){rm(i.x,a.x,s.x),rm(i.y,a.y,s.y)}function Ue(i){return[i("x"),i("y")]}const cm=({current:i})=>i?i.ownerDocument.defaultView:null,fm=(i,a)=>Math.abs(i-a);function nx(i,a){const s=fm(i.x,a.x),o=fm(i.y,a.y);return Math.sqrt(s**2+o**2)}class dm{constructor(a,s,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=ir(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,w=nx(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!C&&!w)return;const{point:V}=b,{timestamp:H}=ee;this.history.push({...V,timestamp:H});const{onStart:O,onMove:k}=this.handlers;C||(O&&O(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,b)},this.handlePointerMove=(b,C)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=nr(C,this.transformPagePoint),Lt.update(this.updatePoint,!0)},this.handlePointerUp=(b,C)=>{this.end();const{onEnd:w,onSessionEnd:V,resumeAnimation:H}=this.handlers;if(this.dragSnapToOrigin&&H&&H(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=ir(b.type==="pointercancel"?this.lastMoveEventInfo:nr(C,this.transformPagePoint),this.history);this.startEvent&&w&&w(b,O),V&&V(b,O)},!wo(a))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=d,this.contextWindow=c||window;const y=Wa(a),m=nr(y,this.transformPagePoint),{point:p}=m,{timestamp:v}=ee;this.history=[{...p,timestamp:v}];const{onSessionStart:T}=s;T&&T(a,ir(m,this.history)),this.removeListeners=Ha($a(this.contextWindow,"pointermove",this.handlePointerMove),$a(this.contextWindow,"pointerup",this.handlePointerUp),$a(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),Vn(this.updatePoint)}}function nr(i,a){return a?{point:a(i.point)}:i}function hm(i,a){return{x:i.x-a.x,y:i.y-a.y}}function ir({point:i},a){return{point:i,delta:hm(i,mm(a)),offset:hm(i,ix(a)),velocity:ax(a,.1)}}function ix(i){return i[0]}function mm(i){return i[i.length-1]}function ax(i,a){if(i.length<2)return{x:0,y:0};let s=i.length-1,o=null;const c=mm(i);for(;s>=0&&(o=i[s],!(c.timestamp-o.timestamp>en(a)));)s--;if(!o)return{x:0,y:0};const f=Ne(c.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const d={x:(c.x-o.x)/f,y:(c.y-o.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function lx(i,{min:a,max:s},o){return a!==void 0&&i<a?i=o?Ut(a,i,o.min):Math.max(i,a):s!==void 0&&i>s&&(i=o?Ut(s,i,o.max):Math.min(i,s)),i}function pm(i,a,s){return{min:a!==void 0?i.min+a:void 0,max:s!==void 0?i.max+s-(i.max-i.min):void 0}}function sx(i,{top:a,left:s,bottom:o,right:c}){return{x:pm(i.x,s,c),y:pm(i.y,a,o)}}function ym(i,a){let s=a.min-i.min,o=a.max-i.max;return a.max-a.min<i.max-i.min&&([s,o]=[o,s]),{min:s,max:o}}function ux(i,a){return{x:ym(i.x,a.x),y:ym(i.y,a.y)}}function ox(i,a){let s=.5;const o=he(i),c=he(a);return c>o?s=Ga(a.min,a.max-o,i.min):o>c&&(s=Ga(i.min,i.max-c,a.min)),fn(0,1,s)}function rx(i,a){const s={};return a.min!==void 0&&(s.min=a.min-i.min),a.max!==void 0&&(s.max=a.max-i.min),s}const ar=.35;function cx(i=ar){return i===!1?i=0:i===!0&&(i=ar),{x:vm(i,"left","right"),y:vm(i,"top","bottom")}}function vm(i,a,s){return{min:gm(i,a),max:gm(i,s)}}function gm(i,a){return typeof i=="number"?i:i[a]||0}const fx=new WeakMap;class dx{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const f=T=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Wa(T).point)},d=(T,b)=>{const{drag:C,dragPropagation:w,onDragStart:V}=this.getProps();if(C&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gb(C),!this.openDragLock))return;this.latestPointerEvent=T,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),Ue(O=>{let k=this.getAxisMotionValue(O).get()||0;if(nn.test(k)){const{projection:Q}=this.visualElement;if(Q&&Q.layout){const G=Q.layout.layoutBox[O];G&&(k=he(G)*(parseFloat(k)/100))}}this.originPoint[O]=k}),V&&Lt.postRender(()=>V(T,b)),Io(this.visualElement,"transform");const{animationState:H}=this.visualElement;H&&H.setActive("whileDrag",!0)},y=(T,b)=>{this.latestPointerEvent=T,this.latestPanInfo=b;const{dragPropagation:C,dragDirectionLock:w,onDirectionLock:V,onDrag:H}=this.getProps();if(!C&&!this.openDragLock)return;const{offset:O}=b;if(w&&this.currentDirection===null){this.currentDirection=hx(O),this.currentDirection!==null&&V&&V(this.currentDirection);return}this.updateAxis("x",b.point,O),this.updateAxis("y",b.point,O),this.visualElement.render(),H&&H(T,b)},m=(T,b)=>{this.latestPointerEvent=T,this.latestPanInfo=b,this.stop(T,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Ue(T=>this.getAnimationState(T)==="paused"&&this.getAxisMotionValue(T).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new dm(a,{onSessionStart:f,onStart:d,onMove:y,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:cm(this.visualElement)})}stop(a,s){const o=a||this.latestPointerEvent,c=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!c||!o)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:y}=this.getProps();y&&Lt.postRender(()=>y(o,c))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,o){const{drag:c}=this.getProps();if(!o||!gs(a,c,this.currentDirection))return;const f=this.getAxisMotionValue(a);let d=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(d=lx(d,this.constraints[a],this.elastic[a])),f.set(d)}resolveConstraints(){const{dragConstraints:a,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;a&&ki(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=sx(o.layoutBox,a):this.constraints=!1,this.elastic=cx(s),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ue(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=rx(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!ki(a))return!1;const o=a.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const f=mT(o,c.root,this.visualElement.getTransformPagePoint());let d=ux(c.layout.layoutBox,f);if(s){const y=s(fT(d));this.hasMutatedConstraints=!!y,y&&(d=Uh(y))}return d}startAnimation(a){const{drag:s,dragMomentum:o,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:y}=this.getProps(),m=this.constraints||{},p=Ue(v=>{if(!gs(v,s,this.currentDirection))return;let T=m&&m[v]||{};d&&(T={min:0,max:0});const b=c?200:1e6,C=c?40:1e7,w={type:"inertia",velocity:o?a[v]:0,bounceStiffness:b,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...f,...T};return this.startAxisValueAnimation(v,w)});return Promise.all(p).then(y)}startAxisValueAnimation(a,s){const o=this.getAxisMotionValue(a);return Io(this.visualElement,a),o.start(tr(a,o,0,s,this.visualElement,!1))}stopAnimation(){Ue(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Ue(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),c=o[s];return c||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){Ue(s=>{const{drag:o}=this.getProps();if(!gs(s,o,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(s);if(c&&c.layout){const{min:d,max:y}=c.layout.layoutBox[s];f.set(a[s]-Ut(d,y,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!ki(s)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ue(d=>{const y=this.getAxisMotionValue(d);if(y&&this.constraints!==!1){const m=y.get();c[d]=ox({min:m,max:m},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ue(d=>{if(!gs(d,a,null))return;const y=this.getAxisMotionValue(d),{min:m,max:p}=this.constraints[d];y.set(Ut(m,p,c[d]))})}addListeners(){if(!this.visualElement.current)return;fx.set(this.visualElement,this);const a=this.visualElement.current,s=$a(a,"pointerdown",m=>{const{drag:p,dragListener:v=!0}=this.getProps();p&&v&&this.start(m)}),o=()=>{const{dragConstraints:m}=this.getProps();ki(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,f=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Lt.read(o);const d=Ja(window,"resize",()=>this.scalePositionWithinConstraints()),y=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ue(v=>{const T=this.getAxisMotionValue(v);T&&(this.originPoint[v]+=m[v].translate,T.set(T.get()+m[v].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),y&&y()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=ar,dragMomentum:y=!0}=a;return{...a,drag:s,dragDirectionLock:o,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:y}}}function gs(i,a,s){return(a===!0||a===i)&&(s===null||s===i)}function hx(i,a=10){let s=null;return Math.abs(i.y)>a?s="y":Math.abs(i.x)>a&&(s="x"),s}class mx extends Nn{constructor(a){super(a),this.removeGroupControls=we,this.removeListeners=we,this.controls=new dx(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||we}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sm=i=>(a,s)=>{i&&Lt.postRender(()=>i(a,s))};class px extends Nn{constructor(){super(...arguments),this.removePointerDownListener=we}onPointerDown(a){this.session=new dm(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cm(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Sm(a),onStart:Sm(s),onMove:o,onEnd:(f,d)=>{delete this.session,c&&Lt.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=$a(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let lr=!1;class yx extends j.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o,layoutId:c}=this.props,{projection:f}=a;f&&(s.group&&s.group.add(f),o&&o.register&&c&&o.register(f),lr&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),Ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:o,drag:c,isPresent:f}=this.props,{projection:d}=o;return d&&(d.isPresent=f,lr=!0,c||a.layoutDependency!==s||s===void 0||a.isPresent!==f?d.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?d.promote():d.relegate()||Lt.postRender(()=>{const y=d.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Lo.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:c}=a;lr=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function bm(i){const[a,s]=gh(),o=j.useContext(Pu);return S.jsx(yx,{...i,layoutGroup:o,switchLayoutGroup:j.useContext(wh),isPresent:a,safeToRemove:s})}function vx(i,a,s){const o=ce(i)?i:Yi(i);return o.start(tr("",o,a,s)),o.animation}const gx=(i,a)=>i.depth-a.depth;class Sx{constructor(){this.children=[],this.isDirty=!1}add(a){Wu(this.children,a),this.isDirty=!0}remove(a){$u(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(gx),this.isDirty=!1,this.children.forEach(a)}}function bx(i,a){const s=pe.now(),o=({timestamp:c})=>{const f=c-s;f>=a&&(Vn(o),i(f-a))};return Lt.setup(o,!0),()=>Vn(o)}const Tm=["TopLeft","TopRight","BottomLeft","BottomRight"],Tx=Tm.length,xm=i=>typeof i=="string"?parseFloat(i):i,Em=i=>typeof i=="number"||lt.test(i);function xx(i,a,s,o,c,f){c?(i.opacity=Ut(0,s.opacity??1,Ex(o)),i.opacityExit=Ut(a.opacity??1,0,Mx(o))):f&&(i.opacity=Ut(a.opacity??1,s.opacity??1,o));for(let d=0;d<Tx;d++){const y=`border${Tm[d]}Radius`;let m=Mm(a,y),p=Mm(s,y);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Em(m)===Em(p)?(i[y]=Math.max(Ut(xm(m),xm(p),o),0),(nn.test(p)||nn.test(m))&&(i[y]+="%")):i[y]=p}(a.rotate||s.rotate)&&(i.rotate=Ut(a.rotate||0,s.rotate||0,o))}function Mm(i,a){return i[a]!==void 0?i[a]:i.borderRadius}const Ex=Am(0,.5,vd),Mx=Am(.5,.95,we);function Am(i,a,s){return o=>o<i?0:o>a?1:s(Ga(i,a,o))}function Cm(i,a){i.min=a.min,i.max=a.max}function Fe(i,a){Cm(i.x,a.x),Cm(i.y,a.y)}function Dm(i,a){i.translate=a.translate,i.scale=a.scale,i.originPoint=a.originPoint,i.origin=a.origin}function zm(i,a,s,o,c){return i-=a,i=ys(i,1/s,o),c!==void 0&&(i=ys(i,1/c,o)),i}function Ax(i,a=0,s=1,o=.5,c,f=i,d=i){if(nn.test(a)&&(a=parseFloat(a),a=Ut(d.min,d.max,a/100)-d.min),typeof a!="number")return;let y=Ut(f.min,f.max,o);i===f&&(y-=a),i.min=zm(i.min,a,s,y,c),i.max=zm(i.max,a,s,y,c)}function Rm(i,a,[s,o,c],f,d){Ax(i,a[s],a[o],a[c],a.scale,f,d)}const Cx=["x","scaleX","originX"],Dx=["y","scaleY","originY"];function jm(i,a,s,o){Rm(i.x,a,Cx,s?s.x:void 0,o?o.x:void 0),Rm(i.y,a,Dx,s?s.y:void 0,o?o.y:void 0)}function Om(i){return i.translate===0&&i.scale===1}function Bm(i){return Om(i.x)&&Om(i.y)}function Vm(i,a){return i.min===a.min&&i.max===a.max}function zx(i,a){return Vm(i.x,a.x)&&Vm(i.y,a.y)}function Lm(i,a){return Math.round(i.min)===Math.round(a.min)&&Math.round(i.max)===Math.round(a.max)}function wm(i,a){return Lm(i.x,a.x)&&Lm(i.y,a.y)}function Nm(i){return he(i.x)/he(i.y)}function Um(i,a){return i.translate===a.translate&&i.scale===a.scale&&i.originPoint===a.originPoint}class Rx{constructor(){this.members=[]}add(a){Wu(this.members,a),a.scheduleRender()}remove(a){if($u(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){const s=this.members.findIndex(c=>a===c);if(s===0)return!1;let o;for(let c=s;c>=0;c--){const f=this.members[c];if(f.isPresent!==!1){o=f;break}}return o?(this.promote(o),!0):!1}promote(a,s){const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.instance&&o.scheduleRender(),a.scheduleRender(),a.resumeFrom=o,s&&(a.resumeFrom.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:c}=a.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:o}=a;s.onExitComplete&&s.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jx(i,a,s){let o="";const c=i.x.translate/a.x,f=i.y.translate/a.y,d=s?.z||0;if((c||f||d)&&(o=`translate3d(${c}px, ${f}px, ${d}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:p,rotate:v,rotateX:T,rotateY:b,skewX:C,skewY:w}=s;p&&(o=`perspective(${p}px) ${o}`),v&&(o+=`rotate(${v}deg) `),T&&(o+=`rotateX(${T}deg) `),b&&(o+=`rotateY(${b}deg) `),C&&(o+=`skewX(${C}deg) `),w&&(o+=`skewY(${w}deg) `)}const y=i.x.scale*a.x,m=i.y.scale*a.y;return(y!==1||m!==1)&&(o+=`scale(${y}, ${m})`),o||"none"}const sr=["","X","Y","Z"],Ox=1e3;let Bx=0;function ur(i,a,s,o){const{latestValues:c}=a;c[i]&&(s[i]=c[i],a.setStaticValue(i,0),o&&(o[i]=0))}function _m(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:a}=i.options;if(!a)return;const s=Ih(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:f}=i.options;window.MotionCancelOptimisedAnimation(s,"transform",Lt,!(c||f))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&_m(o)}function Hm({attachResizeListener:i,defaultParent:a,measureScroll:s,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(d={},y=a?.()){this.id=Bx++,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(wx),this.nodes.forEach(Hx),this.nodes.forEach(Gx),this.nodes.forEach(Nx)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Sx)}addEventListener(d,y){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new eo),this.eventHandlers.get(d).add(y)}notifyListeners(d,...y){const m=this.eventHandlers.get(d);m&&m.notify(...y)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=yh(d)&&!Mb(d),this.instance=d;const{layoutId:y,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||y)&&(this.isLayoutDirty=!0),i){let v,T=0;const b=()=>this.root.updateBlockedByResize=!1;Lt.read(()=>{T=window.innerWidth}),i(d,()=>{const C=window.innerWidth;C!==T&&(T=C,this.root.updateBlockedByResize=!0,v&&v(),v=bx(b,250),Ss.hasAnimatedSinceResize&&(Ss.hasAnimatedSinceResize=!1,this.nodes.forEach(qm)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&p&&(y||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:T,hasRelativeLayoutChanged:b,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||p.getDefaultTransition()||Kx,{onLayoutAnimationStart:V,onLayoutAnimationComplete:H}=p.getProps(),O=!this.targetLayout||!wm(this.targetLayout,C),k=!T&&b;if(this.options.layoutRoot||this.resumeFrom||k||T&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Q={...Oo(w,"layout"),onPlay:V,onComplete:H};(p.shouldReduceMotion||this.options.layoutRoot)&&(Q.delay=0,Q.type=!1),this.startAnimation(Q),this.setAnimationOrigin(v,k)}else T||qm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vn(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(Yx),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_m(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const T=this.path[v];T.shouldResetTransform=!0,T.updateScroll("snapshot"),T.options.layoutRoot&&T.willUpdate(!1)}const{layoutId:y,layout:m}=this.options;if(y===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gm);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ym);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_x),this.nodes.forEach(Vx),this.nodes.forEach(Lx)):this.nodes.forEach(Ym),this.clearAllSnapshots();const y=pe.now();ee.delta=fn(0,1e3/60,y-ee.timestamp),ee.timestamp=y,ee.isProcessing=!0,ao.update.process(ee),ao.preRender.process(ee),ao.render.process(ee),ee.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Lo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ux),this.sharedNodes.forEach(qx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Lt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!he(this.snapshot.measuredBox.x)&&!he(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Jt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(y=!1),y&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,y=this.projectionDelta&&!Bm(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;d&&this.instance&&(y||hi(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const y=this.measurePageBox();let m=this.removeElementScroll(y);return d&&(m=this.removeTransform(m)),Zx(m),{animationId:this.root.animationId,measuredBox:y,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Jt();const y=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Qx))){const{scroll:p}=this.root;p&&(Xi(y.x,p.offset.x),Xi(y.y,p.offset.y))}return y}removeElementScroll(d){const y=Jt();if(Fe(y,d),this.scroll?.wasRoot)return y;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:v,options:T}=p;p!==this.root&&v&&T.layoutScroll&&(v.wasRoot&&Fe(y,d),Xi(y.x,v.offset.x),Xi(y.y,v.offset.y))}return y}applyTransform(d,y=!1){const m=Jt();Fe(m,d);for(let p=0;p<this.path.length;p++){const v=this.path[p];!y&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Ki(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),hi(v.latestValues)&&Ki(m,v.latestValues)}return hi(this.latestValues)&&Ki(m,this.latestValues),m}removeTransform(d){const y=Jt();Fe(y,d);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!hi(p.latestValues))continue;Fo(p.latestValues)&&p.updateSnapshot();const v=Jt(),T=p.measurePageBox();Fe(v,T),jm(y,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return hi(this.latestValues)&&jm(y,this.latestValues),y}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==ee.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==y;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:T}=this.options;if(!this.layout||!(v||T))return;this.resolvedRelativeTargetAt=ee.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Jt(),this.targetWithTransforms=Jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ex(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fe(this.target,this.layout.layoutBox),Yh(this.target,this.targetDelta)):Fe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!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||Fo(this.parent.latestValues)||_h(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,y,m){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),vs(this.relativeTargetOrigin,y,m),Fe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),y=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ee.timestamp&&(m=!1),m)return;const{layout:p,layoutId:v}=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||v))return;Fe(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,b=this.treeScale.y;hT(this.layoutCorrected,this.treeScale,this.path,y),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Jt());const{target:C}=d;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Dm(this.prevProjectionDelta.x,this.projectionDelta.x),Dm(this.prevProjectionDelta.y,this.projectionDelta.y)),Ia(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==b||!Um(this.projectionDelta.x,this.prevProjectionDelta.x)||!Um(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Zi(),this.projectionDelta=Zi(),this.projectionDeltaWithTransform=Zi()}setAnimationOrigin(d,y=!1){const m=this.snapshot,p=m?m.latestValues:{},v={...this.latestValues},T=Zi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const b=Jt(),C=m?m.source:void 0,w=this.layout?this.layout.source:void 0,V=C!==w,H=this.getStack(),O=!H||H.members.length<=1,k=!!(V&&!O&&this.options.crossfade===!0&&!this.path.some(Xx));this.animationProgress=0;let Q;this.mixTargetDelta=G=>{const L=G/1e3;km(T.x,d.x,L),km(T.y,d.y,L),this.setTargetDelta(T),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vs(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kx(this.relativeTarget,this.relativeTargetOrigin,b,L),Q&&zx(this.relativeTarget,Q)&&(this.isProjectionDirty=!1),Q||(Q=Jt()),Fe(Q,this.relativeTarget)),V&&(this.animationValues=v,xx(v,p,this.latestValues,L,k,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Vn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Lt.update(()=>{Ss.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Yi(0)),this.currentAnimation=vx(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),d.onUpdate&&d.onUpdate(y)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ox),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:y,target:m,layout:p,latestValues:v}=d;if(!(!y||!m||!p)){if(this!==d&&this.layout&&p&&Pm(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||Jt();const T=he(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+T;const b=he(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+b}Fe(y,m),Ki(y,v),Ia(this.projectionDeltaWithTransform,this.layoutCorrected,y,v)}}registerSharedNode(d,y){this.sharedNodes.has(d)||this.sharedNodes.set(d,new Rx),this.sharedNodes.get(d).add(y);const p=y.options.initialPromotionConfig;y.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(y):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:y,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),d&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let y=!1;const{latestValues:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(y=!0),!y)return;const p={};m.z&&ur("z",d,p,this.animationValues);for(let v=0;v<sr.length;v++)ur(`rotate${sr[v]}`,d,p,this.animationValues),ur(`skew${sr[v]}`,d,p,this.animationValues);d.render();for(const v in p)d.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);d.scheduleRender()}applyProjectionStyles(d,y){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=ps(y?.pointerEvents)||"",d.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=ps(y?.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(d.transform=m?m({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let T=jx(this.projectionDeltaWithTransform,this.treeScale,v);m&&(T=m(v,T)),d.transform=T;const{x:b,y:C}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${C.origin*100}% 0`,p.animationValues?d.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const w in Go){if(v[w]===void 0)continue;const{correct:V,applyTo:H,isCSSVariable:O}=Go[w],k=T==="none"?v[w]:V(v[w],p);if(H){const Q=H.length;for(let G=0;G<Q;G++)d[H[G]]=k}else O?this.options.visualElement.renderState.vars[w]=k:d[w]=k}this.options.layoutId&&(d.pointerEvents=p===this?ps(y?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Gm),this.root.sharedNodes.clear()}}}function Vx(i){i.updateLayout()}function Lx(i){const a=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&a&&i.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=i.layout,{animationType:c}=i.options,f=a.source!==i.layout.source;c==="size"?Ue(v=>{const T=f?a.measuredBox[v]:a.layoutBox[v],b=he(T);T.min=s[v].min,T.max=T.min+b}):Pm(c,a.layoutBox,s)&&Ue(v=>{const T=f?a.measuredBox[v]:a.layoutBox[v],b=he(s[v]);T.max=T.min+b,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+b)});const d=Zi();Ia(d,s,a.layoutBox);const y=Zi();f?Ia(y,i.applyTransform(o,!0),a.measuredBox):Ia(y,s,a.layoutBox);const m=!Bm(d);let p=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:T,layout:b}=v;if(T&&b){const C=Jt();vs(C,a.layoutBox,T.layoutBox);const w=Jt();vs(w,s,b.layoutBox),wm(C,w)||(p=!0),v.options.layoutRoot&&(i.relativeTarget=w,i.relativeTargetOrigin=C,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:y,layoutDelta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(i.isLead()){const{onExitComplete:s}=i.options;s&&s()}i.options.transition=void 0}function wx(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function Nx(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function Ux(i){i.clearSnapshot()}function Gm(i){i.clearMeasurements()}function Ym(i){i.isLayoutDirty=!1}function _x(i){const{visualElement:a}=i.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),i.resetTransform()}function qm(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function Hx(i){i.resolveTargetDelta()}function Gx(i){i.calcProjection()}function Yx(i){i.resetSkewAndRotation()}function qx(i){i.removeLeadSnapshot()}function km(i,a,s){i.translate=Ut(a.translate,0,s),i.scale=Ut(a.scale,1,s),i.origin=a.origin,i.originPoint=a.originPoint}function Xm(i,a,s,o){i.min=Ut(a.min,s.min,o),i.max=Ut(a.max,s.max,o)}function kx(i,a,s,o){Xm(i.x,a.x,s.x,o),Xm(i.y,a.y,s.y,o)}function Xx(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const Kx={duration:.45,ease:[.4,0,.1,1]},Km=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Zm=Km("applewebkit/")&&!Km("chrome/")?Math.round:we;function Qm(i){i.min=Zm(i.min),i.max=Zm(i.max)}function Zx(i){Qm(i.x),Qm(i.y)}function Pm(i,a,s){return i==="position"||i==="preserve-aspect"&&!tx(Nm(a),Nm(s),.2)}function Qx(i){return i!==i.root&&i.scroll?.wasRoot}const Px=Hm({attachResizeListener:(i,a)=>Ja(i,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),or={current:void 0},Fm=Hm({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!or.current){const i=new Px({});i.mount(window),i.setOptions({layoutScroll:!0}),or.current=i}return or.current},resetTransform:(i,a)=>{i.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Fx={pan:{Feature:px},drag:{Feature:mx,ProjectionNode:Fm,MeasureLayout:bm}};function Jm(i,a,s){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,f=o[c];f&&Lt.postRender(()=>f(a,Wa(a)))}class Jx extends Nn{mount(){const{current:a}=this.node;a&&(this.unmount=Sb(a,(s,o)=>(Jm(this.node,o,"Start"),c=>Jm(this.node,c,"End"))))}unmount(){}}class Wx extends Nn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=Ha(Ja(this.node.current,"focus",()=>this.onFocus()),Ja(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wm(i,a,s){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),f=o[c];f&&Lt.postRender(()=>f(a,Wa(a)))}class $x extends Nn{mount(){const{current:a}=this.node;a&&(this.unmount=Eb(a,(s,o)=>(Wm(this.node,o,"Start"),(c,{success:f})=>Wm(this.node,c,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const rr=new WeakMap,cr=new WeakMap,Ix=i=>{const a=rr.get(i.target);a&&a(i)},tE=i=>{i.forEach(Ix)};function eE({root:i,...a}){const s=i||document;cr.has(s)||cr.set(s,{});const o=cr.get(s),c=JSON.stringify(a);return o[c]||(o[c]=new IntersectionObserver(tE,{root:i,...a})),o[c]}function nE(i,a,s){const o=eE(a);return rr.set(i,s),o.observe(i),()=>{rr.delete(i),o.unobserve(i)}}const iE={some:0,all:1};class aE extends Nn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:o,amount:c="some",once:f}=a,d={root:s?s.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:iE[c]},y=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:T}=this.node.getProps(),b=p?v:T;b&&b(m)};return nE(this.node.current,d,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(lE(a,s))&&this.startObserver()}unmount(){}}function lE({viewport:i={}},{viewport:a={}}={}){return s=>i[s]!==a[s]}const sE={...PT,...{inView:{Feature:aE},tap:{Feature:$x},focus:{Feature:Wx},hover:{Feature:Jx}},...Fx,...{layout:{ProjectionNode:Fm,MeasureLayout:bm}}},uE=cT(sE,ET);function oE(i="(max-width: 768px)"){const[a,s]=j.useState({isMobile:!1,isPortrait:!1});return j.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=navigator?.userAgent??"",c=/iPhone|Android/i.test(o),f=window.matchMedia(i),d=window.matchMedia("(orientation: portrait)"),y=()=>s({isMobile:f.matches||c,isPortrait:d.matches});return y(),f.addEventListener("change",y),d.addEventListener("change",y),()=>{f.removeEventListener("change",y),d.removeEventListener("change",y)}},[i]),a}const rE={order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group"},{key:"volume",items:["VolumeBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"meta",items:["MetaBtn"]},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},cE={order:["top","upper","center","lower","bottom","seekbar"],top:[{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["MuteBtn","PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]},fE={order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group"},{key:"volume",items:["VolumeBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},dE=768,tl={pc:rE,mobile:cE,fullscreen:fE},hE={top:[],center:[{key:"bigPlayBtn",items:["BigPlayBtn"]}],bottom:[{key:"play",items:["PlayBtn"],wrapper:"Group",noPadding:!0},{key:"volume",items:["VolumeBtn"],wrapper:"Group"},{key:"time",items:["TimeBtn"],wrapper:"Group"},{key:"blank",wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]};function mE(i){const[a,s]=Gf("isActive",!1),o=j.useRef(null),c=j.useRef(!1),f=j.useRef(!1),d=j.useRef(0),y=i.options?.controlActiveTime||3e3,[m]=Ft(),{isMobile:p,isPortrait:v}=oE(),{togglePlay:T,useTouch:b}=re(),[C,w]=j.useState(!1),V=(()=>{const W=i.layout??tl;if("top"in W||"center"in W||"bottom"in W||"lower"in W||"upper"in W)return W;const st=W,Mt={pc:st.pc??tl.pc,mobile:st.mobile??tl.mobile,fullscreen:st.fullscreen??tl.fullscreen,breakpoint:st.breakpoint};return m.isFullscreen&&Mt.fullscreen?Mt.fullscreen:(C?Mt.mobile:Mt.pc)??Mt.pc??Mt.mobile??Mt.fullscreen??hE})(),H=f.current||m.isEnded,O=()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},k=()=>{O(),o.current=window.setTimeout(()=>{s(!1),c.current=!0,o.current=null},y)},Q=()=>{c.current=!1,d.current=Date.now(),a||s(!0),k()},G=()=>{c.current||Q()};j.useEffect(()=>{if(typeof window>"u")return;const W=i.layout??tl;if("top"in W||"center"in W||"bottom"in W||"upper"in W||"lower"in W){w(!1);return}const Mt=W.breakpoint??dE,ft=window.matchMedia(`(max-width: ${Mt}px)`),P=()=>w(ft.matches||p);return P(),typeof ft.addEventListener=="function"?(ft.addEventListener("change",P),()=>ft.removeEventListener("change",P)):(ft.addListener(P),()=>ft.removeListener(P))},[i.layout,p]);const L=W=>[W.top,W.upper,W.center,W.lower,W.bottom].some(Mt=>Mt?.some(ft=>(ft.items?.length?ft.items:["Blank"]).includes("SeekBar"))??!1),K=(W,st)=>{if(typeof W!="string")return j.isValidElement(W)?j.cloneElement(W,{pos:st}):W;switch(W){case"PlayBtn":return S.jsx(id,{isMobile:p,isPortrait:v,pos:st,text:{play:i.t?.("common.play")??"재생",pause:i.t?.("common.pause")??"일시정지"}});case"VolumeBtn":return S.jsx(D1,{isMobile:p,isPortrait:v,pos:st,text:{muteOn:i.t?.("common.muteOn")??"음소거",muteOff:i.t?.("common.muteOff")??"음소거 해제"}});case"MuteBtn":return S.jsx(C1,{isMobile:p,isPortrait:v,pos:st,text:{muteOn:i.t?.("common.muteOn")??"음소거",muteOff:i.t?.("common.muteOff")??"음소거 해제"}});case"CurrentTimeBtn":return S.jsx(v1,{isMobile:p,isPortrait:v,pos:st});case"DurationBtn":return S.jsx(g1,{isMobile:p,isPortrait:v,pos:st});case"TimeBtn":return S.jsx(S1,{isMobile:p,isPortrait:v,pos:st});case"SubtitleBtn":return S.jsx(A1,{isMobile:p,isPortrait:v,pos:st,text:{captionOn:i.t?.("common.captionOn")??"자막켜기",captionOff:i.t?.("common.captionOff")??"자막 끄기"}});case"FullscreenBtn":return S.jsx(M1,{isMobile:p,isPortrait:v,pos:st,options:i.options,text:{fullOn:i.t?.("common.fullOn")??"전체화면",fullOff:i.t?.("common.fullOff")??"전체화면 해제"}});case"PipBtn":return S.jsx(R1,{isMobile:p,isPortrait:v,pos:st,options:i.options,text:{miniPlayer:i.t?.("common.miniPlayer")??"미니플레이어"}});case"SkipBackBtn":return S.jsx(p1,{isMobile:p,isPortrait:v,pos:st,options:i.options});case"SkipForwardBtn":return S.jsx(y1,{isMobile:p,isPortrait:v,pos:st,options:i.options});case"MetaBtn":return S.jsx(T1,{title:i.metaTitle??"",isMobile:p,isPortrait:v,pos:st});case"BigPlayBtn":return H?S.jsx(m1,{isMobile:p,isPortrait:v}):null;case"SeekBar":return S.jsx(kf,{src:i.src,hlsLib:i.hlsLib,dashLib:i.dashLib,options:i.options,pos:st});case"LevelSelectBtn":return S.jsx(b1,{options:i.options,text:{auto:i.t?.("common.auto")??"자동"}});case"SettingBtn":return S.jsx(z1,{isMobile:p,isPortrait:v,pos:st,text:{setting:i.t?.("common.setting")??"설정"}});case"Blank":return S.jsx(ad,{});default:return null}},J=(W,st,Mt)=>{const P=(W.items?.length?W.items:["Blank"]).map((U,X)=>{const ot=K(U,Mt);return ot?S.jsx(j.Fragment,{children:ot},`${st}-${W.key}-${U}-${X}`):null}).filter(U=>U!==null);return P.length?W.wrapper==="Blank"?S.jsx(ad,{align:W?.align,children:P},`${st}-${W.key}`):W.wrapper==="Group"?S.jsx(Il,{noPadding:!(P.length>1),cap:W.cap,children:P},`${st}-${W.key}`):S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:P},`${st}-${W.key}`):null},Z=(W,st)=>{if(!W?.length)return null;if(st!=="bottom")return W.map(ft=>J(ft,st));let Mt="left";return W.map(ft=>{const P=ft.items?.length?ft.items:["Blank"],U=ft.wrapper==="Blank"||P.includes("Blank"),X=J(ft,st,Mt);return U&&(Mt="right"),X})},tt=!L(V),it=V.order??["top","upper","center","seekbar","lower","bottom"],jt=()=>tt?S.jsx("div",{children:S.jsx(kf,{src:i.src,hlsLib:i.hlsLib,dashLib:i.dashLib,options:i.options})}):null;return j.useEffect(()=>{p&&(f.current=!0)},[p]),S.jsxs(S.Fragment,{children:[m.isLoading&&S.jsx(ld,{poster:i.poster,options:i.options}),m.isWaiting&&S.jsx(ld,{}),m.isSettingModal&&S.jsx(O1,{text:{setting:i.t?.("common.setting")??"세팅",auto:i.t?.("common.auto")??"자동",notUse:i.t?.("common.notUse")??"사용안함",quality:i.t?.("settings.quality")??"해상도",autoplay:i.t?.("settings.autoplay")??"자동재생",playbackRate:i.t?.("settings.playbackRate")??"재생 속도",captions:i.t?.("settings.captions")??"자막"},vtt:i.src?.vtt,options:i.options}),!m.isLoading&&S.jsx(S.Fragment,{children:m.initPlay?S.jsx("div",{style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},onClick:()=>{b(),O(),k()},onMouseEnter:()=>{G()},onMouseMove:()=>{Q()},onTouchStart:()=>{b(),O(),k()},onMouseLeave:()=>{O(),k(),c.current=!1},children:S.jsx(Vb,{children:(a||m.isEnded)&&S.jsx(uE.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",padding:"0.75rem",gap:"0.75rem",cursor:"default"},children:it.map(W=>W==="top"?S.jsx("div",{style:{display:"flex",alignItems:"center"},children:Z(V.top,"top")},"layout-top"):W==="upper"?S.jsx("div",{style:{display:"flex",alignItems:"center"},children:Z(V.upper,"upper")},"layout-upper"):W==="center"?S.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!p&&!v&&T(),f.current=!0},onMouseLeave:()=>{f.current=!1},children:Z(V.center,"center")},"layout-center"):W==="seekbar"?S.jsx("div",{children:S.jsx(j.Fragment,{children:jt()})},"layout-seekbar"):W==="lower"?S.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:Z(V.lower,"lower")},"layout-lower"):W==="bottom"?S.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:Z(V.bottom,"bottom")},"layout-bottom"):null)})})}):S.jsx(j1,{poster:i.poster,options:i.options})})]})}function $m(i){const{accessKey:a,platform:s="pub",stage:o="prod",isDev:c=!1,hls:f,dashjs:d,options:y,layout:m}=i,[p,v]=j.useState(null),[T,b]=j.useState([]),[C,w]=j.useState(!1),[V,H]=Gf("playerOptions",y??{}),[O,k]=j.useState(""),Q=0,G=typeof window<"u"&&window.location.host||"local";j.useEffect(()=>{if(!a)return;const tt=new zg({accessKey:a,appId:G,platform:s,stage:o,isDev:c});v(tt)},[a,G,s,o,c]),j.useEffect(()=>{if(!p||C)return;(async()=>{if(await p.initialize(),p.isInitialized()){const it=p.getValidatedOptions(y);H(it),b(it?.playlist||[]),w(!0)}})()},[p,C,y,H]),j.useEffect(()=>{const tt=globalThis;f&&(tt.Hls=f),d&&(tt.dashjs=d)},[f,d]),j.useEffect(()=>{const tt=T?.[Q]?.file;if(!tt){k("");return}const it=tt.toLowerCase();it.endsWith(".m3u8")?k("hls"):it.endsWith(".mpd")?k("dash"):it.endsWith(".mp4")?k("mp4"):k("")},[T,Q]),j.useEffect(()=>{if(!p||!O)return;const tt=globalThis,it=f??tt.Hls,jt=d??tt.dashjs;O==="hls"&&!it&&p.setErrorRun("E0015"),O==="dash"&&!jt&&p.setErrorRun("E0016")},[O,p,f,d]);const L=T?.[Q],K=f??globalThis.Hls,J=d??globalThis.dashjs,Z=()=>{if(!L)return null;switch(O){case"hls":return S.jsx(Hg,{src:L,hlsLib:K,options:V});case"dash":return S.jsx(Gg,{src:L,dashLib:J,options:V});case"mp4":return S.jsx(Yg,{src:L,options:V});default:return null}};return S.jsxs("div",{style:{position:"relative",maxHeight:"100dvh",width:"100%",height:"100%",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},className:"vpe-root-wrap",children:[S.jsx(mE,{src:L,hlsLib:K,dashLib:J,options:V,poster:L?.poster,layout:m,metaTitle:L?.description?.title,t:tt=>p?.$t(tt)??tt}),S.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:V?.aspectRatio||"16/9"},children:Z()})]})}const Im=globalThis;Im.process||(Im.process={env:{}});let tp,fr;const pE=(()=>{if(typeof document>"u")return"";const i=[];document.currentScript instanceof HTMLScriptElement&&i.push(document.currentScript),i.push(...Array.from(document.getElementsByTagName("script")));for(const a of i)if(a.src)try{const o=new URL(a.src,window.location.href).searchParams.get("accessKey");if(o)return o}catch{continue}return""})();function yE(i){return i||pE}const vE=i=>!i||typeof i!="object"?!1:"options"in i||"layout"in i||"platform"in i||"stage"in i||"hls"in i||"dashjs"in i||"accessKey"in i;function gE(i){if(!i)return;const a=globalThis,s=typeof i=="object"&&i!==null&&("MediaPlayer"in i||"MediaPlayerFactory"in i),o=typeof i=="function"||typeof i=="object"&&i!==null&&("isSupported"in i||"Events"in i);if(s&&!o){a.dashjs=i;return}if(o&&!s){a.Hls=i;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function SE(i){return typeof i!="string"||i.startsWith("#")||i.startsWith(".")||i.startsWith("[")||i.includes(" ")||i.includes(">")||i.includes(":")?i:typeof document<"u"&&document.getElementById(i)?`#${i}`:i}function bE(i){return S.jsx($m,{...i})}function dr(i,a,s={}){const o=typeof a=="string"?a:a?.accessKey,c=typeof a=="string"?s:a??{},f=vE(c)?c:{options:c},d=yE(o);if(!d)throw new Error("accessKey를 찾을 수 없습니다.");const y=typeof i=="string"?document.querySelector(i):i;if(!y)throw new Error("지정한 타겟을 찾을 수 없습니다.");const m=document.createElement("div");y.appendChild(m);const p=cg.createRoot(m),v={...f,layout:f.layout??tp,platform:f.platform??fr?.platform,stage:f.stage??fr?.stage},T=(C={})=>{p.render(S.jsx($m,{...v,...C,accessKey:d}))};return T(),{destroy:()=>{p.unmount(),m.parentNode&&m.parentNode.removeChild(m)},container:m,render:T}}class Pi{destroy;container;render;static use(a){return gE(a),Pi}static layout(a){return tp=a,Pi}static config(a){return fr=a,Pi}constructor(a,s,o={}){const c=dr(SE(a),s,o);this.destroy=c.destroy,this.container=c.container,this.render=c.render}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:dr},window.ncplayer=Pi),rn.Ncplayer=Pi,rn.VpePlayer=bE,rn.setup=dr,rn.useDeviceState=qf,Object.defineProperty(rn,Symbol.toStringTag,{value:"Module"})}));
|