@sgrsoft/vpe-react-sdk 0.1.5 → 0.1.7

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.
@@ -1,74 +1,12 @@
1
- (function(yn,ki){typeof exports=="object"&&typeof module<"u"?ki(exports):typeof define=="function"&&define.amd?define(["exports"],ki):(yn=typeof globalThis<"u"?globalThis:yn||self,ki(yn.VpeReactSdk={}))})(this,(function(yn){"use strict";function ki(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Kr={exports:{}},ka={};var Gf;function jv(){if(Gf)return ka;Gf=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:r,key:d,ref:u!==void 0?u:null,props:f}}return ka.Fragment=a,ka.jsx=s,ka.jsxs=s,ka}var Yf;function zv(){return Yf||(Yf=1,Kr.exports=jv()),Kr.exports}var b=zv(),Fr={exports:{}},mt={},qf;function Bv(){if(qf)return mt;qf=1;var n={};var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),A=Symbol.iterator;function j(M){return M===null||typeof M!="object"?null:(M=A&&M[A]||M["@@iterator"],typeof M=="function"?M:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,C={};function U(M,N,I){this.props=M,this.context=N,this.refs=C,this.updater=I||L}U.prototype.isReactComponent={},U.prototype.setState=function(M,N){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,N,"setState")},U.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function V(){}V.prototype=U.prototype;function K(M,N,I){this.props=M,this.context=N,this.refs=C,this.updater=I||L}var Q=K.prototype=new V;Q.constructor=K,H(Q,U.prototype),Q.isPureReactComponent=!0;var J=Array.isArray;function Y(){}var k={H:null,A:null,T:null,S:null},st=Object.prototype.hasOwnProperty;function bt(M,N,I){var tt=I.ref;return{$$typeof:a,type:M,key:N,ref:tt!==void 0?tt:null,props:I}}function pt(M,N){return bt(M.type,N,M.props)}function dt(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function Z(M){var N={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(I){return N[I]})}var et=/\/+/g;function lt(M,N){return typeof M=="object"&&M!==null&&M.key!=null?Z(""+M.key):N.toString(36)}function F(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(Y,Y):(M.status="pending",M.then(function(N){M.status==="pending"&&(M.status="fulfilled",M.value=N)},function(N){M.status==="pending"&&(M.status="rejected",M.reason=N)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function D(M,N,I,tt,ut){var W=typeof M;(W==="undefined"||W==="boolean")&&(M=null);var ht=!1;if(M===null)ht=!0;else switch(W){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(M.$$typeof){case a:case s:ht=!0;break;case S:return ht=M._init,D(ht(M._payload),N,I,tt,ut)}}if(ht)return ut=ut(M),ht=tt===""?"."+lt(M,0):tt,J(ut)?(I="",ht!=null&&(I=ht.replace(et,"$&/")+"/"),D(ut,N,I,"",function(ue){return ue})):ut!=null&&(dt(ut)&&(ut=pt(ut,I+(ut.key==null||M&&M.key===ut.key?"":(""+ut.key).replace(et,"$&/")+"/")+ht)),N.push(ut)),1;ht=0;var Ut=tt===""?".":tt+":";if(J(M))for(var Rt=0;Rt<M.length;Rt++)tt=M[Rt],W=Ut+lt(tt,Rt),ht+=D(tt,N,I,W,ut);else if(Rt=j(M),typeof Rt=="function")for(M=Rt.call(M),Rt=0;!(tt=M.next()).done;)tt=tt.value,W=Ut+lt(tt,Rt++),ht+=D(tt,N,I,W,ut);else if(W==="object"){if(typeof M.then=="function")return D(F(M),N,I,tt,ut);throw N=String(M),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return ht}function G(M,N,I){if(M==null)return M;var tt=[],ut=0;return D(M,tt,"","",function(W){return N.call(I,W,ut++)}),tt}function $(M){if(M._status===-1){var N=M._result;N=N(),N.then(function(I){(M._status===0||M._status===-1)&&(M._status=1,M._result=I)},function(I){(M._status===0||M._status===-1)&&(M._status=2,M._result=I)}),M._status===-1&&(M._status=0,M._result=N)}if(M._status===1)return M._result.default;throw M._result}var nt=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=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(N))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",M);return}console.error(M)},yt={map:G,forEach:function(M,N,I){G(M,function(){N.apply(this,arguments)},I)},count:function(M){var N=0;return G(M,function(){N++}),N},toArray:function(M){return G(M,function(N){return N})||[]},only:function(M){if(!dt(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return mt.Activity=v,mt.Children=yt,mt.Component=U,mt.Fragment=r,mt.Profiler=f,mt.PureComponent=K,mt.StrictMode=u,mt.Suspense=g,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,mt.__COMPILER_RUNTIME={__proto__:null,c:function(M){return k.H.useMemoCache(M)}},mt.cache=function(M){return function(){return M.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(M,N,I){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var tt=H({},M.props),ut=M.key;if(N!=null)for(W in N.key!==void 0&&(ut=""+N.key),N)!st.call(N,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&N.ref===void 0||(tt[W]=N[W]);var W=arguments.length-2;if(W===1)tt.children=I;else if(1<W){for(var ht=Array(W),Ut=0;Ut<W;Ut++)ht[Ut]=arguments[Ut+2];tt.children=ht}return bt(M.type,ut,tt)},mt.createContext=function(M){return M={$$typeof:h,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:d,_context:M},M},mt.createElement=function(M,N,I){var tt,ut={},W=null;if(N!=null)for(tt in N.key!==void 0&&(W=""+N.key),N)st.call(N,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(ut[tt]=N[tt]);var ht=arguments.length-2;if(ht===1)ut.children=I;else if(1<ht){for(var Ut=Array(ht),Rt=0;Rt<ht;Rt++)Ut[Rt]=arguments[Rt+2];ut.children=Ut}if(M&&M.defaultProps)for(tt in ht=M.defaultProps,ht)ut[tt]===void 0&&(ut[tt]=ht[tt]);return bt(M,W,ut)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(M){return{$$typeof:y,render:M}},mt.isValidElement=dt,mt.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:$}},mt.memo=function(M,N){return{$$typeof:p,type:M,compare:N===void 0?null:N}},mt.startTransition=function(M){var N=k.T,I={};k.T=I;try{var tt=M(),ut=k.S;ut!==null&&ut(I,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(Y,nt)}catch(W){nt(W)}finally{N!==null&&I.types!==null&&(N.types=I.types),k.T=N}},mt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},mt.use=function(M){return k.H.use(M)},mt.useActionState=function(M,N,I){return k.H.useActionState(M,N,I)},mt.useCallback=function(M,N){return k.H.useCallback(M,N)},mt.useContext=function(M){return k.H.useContext(M)},mt.useDebugValue=function(){},mt.useDeferredValue=function(M,N){return k.H.useDeferredValue(M,N)},mt.useEffect=function(M,N){return k.H.useEffect(M,N)},mt.useEffectEvent=function(M){return k.H.useEffectEvent(M)},mt.useId=function(){return k.H.useId()},mt.useImperativeHandle=function(M,N,I){return k.H.useImperativeHandle(M,N,I)},mt.useInsertionEffect=function(M,N){return k.H.useInsertionEffect(M,N)},mt.useLayoutEffect=function(M,N){return k.H.useLayoutEffect(M,N)},mt.useMemo=function(M,N){return k.H.useMemo(M,N)},mt.useOptimistic=function(M,N){return k.H.useOptimistic(M,N)},mt.useReducer=function(M,N,I){return k.H.useReducer(M,N,I)},mt.useRef=function(M){return k.H.useRef(M)},mt.useState=function(M){return k.H.useState(M)},mt.useSyncExternalStore=function(M,N,I){return k.H.useSyncExternalStore(M,N,I)},mt.useTransition=function(){return k.H.useTransition()},mt.version="19.2.1",mt}var Pf;function Qr(){return Pf||(Pf=1,Fr.exports=Bv()),Fr.exports}var T=Qr();const mi=ki(T);var Zr={exports:{}},Ga={},Ir={exports:{}},Jr={};var Xf;function Ov(){return Xf||(Xf=1,(function(n){function a(F,D){var G=F.length;F.push(D);t:for(;0<G;){var $=G-1>>>1,nt=F[$];if(0<u(nt,D))F[$]=D,F[G]=nt,G=$;else break t}}function s(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var D=F[0],G=F.pop();if(G!==D){F[0]=G;t:for(var $=0,nt=F.length,yt=nt>>>1;$<yt;){var M=2*($+1)-1,N=F[M],I=M+1,tt=F[I];if(0>u(N,G))I<nt&&0>u(tt,N)?(F[$]=tt,F[I]=G,$=I):(F[$]=N,F[M]=G,$=M);else if(I<nt&&0>u(tt,G))F[$]=tt,F[I]=G,$=I;else break t}}return D}function u(F,D){var G=F.sortIndex-D.sortIndex;return G!==0?G:F.id-D.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var y=[],g=[],p=1,S=null,v=3,A=!1,j=!1,L=!1,H=!1,C=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function K(F){for(var D=s(g);D!==null;){if(D.callback===null)r(g);else if(D.startTime<=F)r(g),D.sortIndex=D.expirationTime,a(y,D);else break;D=s(g)}}function Q(F){if(L=!1,K(F),!j)if(s(y)!==null)j=!0,J||(J=!0,dt());else{var D=s(g);D!==null&&lt(Q,D.startTime-F)}}var J=!1,Y=-1,k=5,st=-1;function bt(){return H?!0:!(n.unstable_now()-st<k)}function pt(){if(H=!1,J){var F=n.unstable_now();st=F;var D=!0;try{t:{j=!1,L&&(L=!1,U(Y),Y=-1),A=!0;var G=v;try{e:{for(K(F),S=s(y);S!==null&&!(S.expirationTime>F&&bt());){var $=S.callback;if(typeof $=="function"){S.callback=null,v=S.priorityLevel;var nt=$(S.expirationTime<=F);if(F=n.unstable_now(),typeof nt=="function"){S.callback=nt,K(F),D=!0;break e}S===s(y)&&r(y),K(F)}else r(y);S=s(y)}if(S!==null)D=!0;else{var yt=s(g);yt!==null&&lt(Q,yt.startTime-F),D=!1}}break t}finally{S=null,v=G,A=!1}D=void 0}}finally{D?dt():J=!1}}}var dt;if(typeof V=="function")dt=function(){V(pt)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,et=Z.port2;Z.port1.onmessage=pt,dt=function(){et.postMessage(null)}}else dt=function(){C(pt,0)};function lt(F,D){Y=C(function(){F(n.unstable_now())},D)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(F){F.callback=null},n.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},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(F){switch(v){case 1:case 2:case 3:var D=3;break;default:D=v}var G=v;v=D;try{return F()}finally{v=G}},n.unstable_requestPaint=function(){H=!0},n.unstable_runWithPriority=function(F,D){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var G=v;v=F;try{return D()}finally{v=G}},n.unstable_scheduleCallback=function(F,D,G){var $=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?$+G:$):G=$,F){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=G+nt,F={id:p++,callback:D,priorityLevel:F,startTime:G,expirationTime:nt,sortIndex:-1},G>$?(F.sortIndex=G,a(g,F),s(y)===null&&F===s(g)&&(L?(U(Y),Y=-1):L=!0,lt(Q,G-$))):(F.sortIndex=nt,a(y,F),j||A||(j=!0,J||(J=!0,dt()))),F},n.unstable_shouldYield=bt,n.unstable_wrapCallback=function(F){var D=v;return function(){var G=v;v=D;try{return F.apply(this,arguments)}finally{v=G}}}})(Jr)),Jr}var Kf;function Lv(){return Kf||(Kf=1,Ir.exports=Ov()),Ir.exports}var Wr={exports:{}},pe={};var Ff;function Vv(){if(Ff)return pe;Ff=1;var n=Qr();function a(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)g+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={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},u=Symbol.for("react.portal");function f(y,g,p){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:y,containerInfo:g,implementation:p}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,pe.createPortal=function(y,g){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return f(y,g,null,p)},pe.flushSync=function(y){var g=d.T,p=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=g,r.p=p,r.d.f()}},pe.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},pe.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},pe.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var p=g.as,S=h(p,g.crossOrigin),v=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;p==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:v,fetchPriority:A}):p==="script"&&r.d.X(y,{crossOrigin:S,integrity:v,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},pe.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var p=h(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:p,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},pe.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var p=g.as,S=h(p,g.crossOrigin);r.d.L(y,p,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},pe.preloadModule=function(y,g){if(typeof y=="string")if(g){var p=h(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:p,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},pe.requestFormReset=function(y){r.d.r(y)},pe.unstable_batchedUpdates=function(y,g){return y(g)},pe.useFormState=function(y,g,p){return d.H.useFormState(y,g,p)},pe.useFormStatus=function(){return d.H.useHostTransitionStatus()},pe.version="19.2.1",pe}var Qf;function Nv(){if(Qf)return Wr.exports;Qf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Wr.exports=Vv(),Wr.exports}var Zf;function Uv(){if(Zf)return Ga;Zf=1;var n={};var a=Lv(),s=Qr(),r=Nv();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}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,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function h(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 y(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 g(t){if(d(t)!==t)throw Error(u(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var i=t,l=e;;){var o=i.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){i=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===i)return g(o),t;if(c===l)return g(o),e;c=c.sibling}throw Error(u(188))}if(i.return!==l.return)i=o,l=c;else{for(var m=!1,x=o.child;x;){if(x===i){m=!0,i=o,l=c;break}if(x===l){m=!0,l=o,i=c;break}x=x.sibling}if(!m){for(x=c.child;x;){if(x===i){m=!0,i=c,l=o;break}if(x===l){m=!0,l=c,i=o;break}x=x.sibling}if(!m)throw Error(u(189))}}if(i.alternate!==l)throw Error(u(190))}if(i.tag!==3)throw Error(u(188));return i.stateNode.current===i?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,A=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),bt=Symbol.for("react.activity"),pt=Symbol.for("react.memo_cache_sentinel"),dt=Symbol.iterator;function Z(t){return t===null||typeof t!="object"?null:(t=dt&&t[dt]||t["@@iterator"],typeof t=="function"?t:null)}var et=Symbol.for("react.client.reference");function lt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===et?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case U:return"Profiler";case C:return"StrictMode";case J:return"Suspense";case Y:return"SuspenseList";case bt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case L:return"Portal";case K:return t.displayName||"Context";case V:return(t._context.displayName||"Context")+".Consumer";case Q: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:lt(t.type)||"Memo";case st:e=t._payload,t=t._init;try{return lt(t(e))}catch{}}return null}var F=Array.isArray,D=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},nt=[],yt=-1;function M(t){return{current:t}}function N(t){0>yt||(t.current=nt[yt],nt[yt]=null,yt--)}function I(t,e){yt++,nt[yt]=t.current,t.current=e}var tt=M(null),ut=M(null),W=M(null),ht=M(null);function Ut(t,e){switch(I(W,e),I(ut,t),I(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?$g(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=$g(e),t=tv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(tt),I(tt,t)}function Rt(){N(tt),N(ut),N(W)}function ue(t){t.memoizedState!==null&&I(ht,t);var e=tt.current,i=tv(e,t.type);e!==i&&(I(ut,t),I(tt,i))}function cn(t){ut.current===t&&(N(tt),N(ut)),ht.current===t&&(N(ht),Wl._currentValue=$)}var fn,ta;function nn(t){if(fn===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);fn=e&&e[1]||"",ta=-1<i.stack.indexOf(`
1
+ (function(bn,Fi){typeof exports=="object"&&typeof module<"u"?Fi(exports):typeof define=="function"&&define.amd?define(["exports"],Fi):(bn=typeof globalThis<"u"?globalThis:bn||self,Fi(bn.VpeReactSdk={}))})(this,(function(bn){"use strict";function Fi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var $r={exports:{}},Xa={};var If;function Pv(){if(If)return Xa;If=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:n,type:r,key:d,ref:u!==void 0?u:null,props:f}}return Xa.Fragment=a,Xa.jsx=s,Xa.jsxs=s,Xa}var Jf;function qv(){return Jf||(Jf=1,$r.exports=Pv()),$r.exports}var b=qv(),to={exports:{}},pt={},Wf;function Xv(){if(Wf)return pt;Wf=1;var n={};var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),T=Symbol.iterator;function D(C){return C===null||typeof C!="object"?null:(C=T&&C[T]||C["@@iterator"],typeof C=="function"?C:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,M={};function O(C,H,W){this.props=C,this.context=H,this.refs=M,this.updater=W||B}O.prototype.isReactComponent={},O.prototype.setState=function(C,H){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,H,"setState")},O.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function z(){}z.prototype=O.prototype;function q(C,H,W){this.props=C,this.context=H,this.refs=M,this.updater=W||B}var Z=q.prototype=new z;Z.constructor=q,L(Z,O.prototype),Z.isPureReactComponent=!0;var J=Array.isArray;function k(){}var N={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function nt(C,H,W){var et=W.ref;return{$$typeof:a,type:C,key:H,ref:et!==void 0?et:null,props:W}}function st(C,H){return nt(C.type,H,C.props)}function ut(C){return typeof C=="object"&&C!==null&&C.$$typeof===a}function Q(C){var H={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(W){return H[W]})}var $=/\/+/g;function at(C,H){return typeof C=="object"&&C!==null&&C.key!=null?Q(""+C.key):H.toString(36)}function K(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(k,k):(C.status="pending",C.then(function(H){C.status==="pending"&&(C.status="fulfilled",C.value=H)},function(H){C.status==="pending"&&(C.status="rejected",C.reason=H)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function R(C,H,W,et,dt){var tt=typeof C;(tt==="undefined"||tt==="boolean")&&(C=null);var yt=!1;if(C===null)yt=!0;else switch(tt){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(C.$$typeof){case a:case s:yt=!0;break;case S:return yt=C._init,R(yt(C._payload),H,W,et,dt)}}if(yt)return dt=dt(C),yt=et===""?"."+at(C,0):et,J(dt)?(W="",yt!=null&&(W=yt.replace($,"$&/")+"/"),R(dt,H,W,"",function(be){return be})):dt!=null&&(ut(dt)&&(dt=st(dt,W+(dt.key==null||C&&C.key===dt.key?"":(""+dt.key).replace($,"$&/")+"/")+yt)),H.push(dt)),1;yt=0;var Gt=et===""?".":et+":";if(J(C))for(var Rt=0;Rt<C.length;Rt++)et=C[Rt],tt=Gt+at(et,Rt),yt+=R(et,H,W,tt,dt);else if(Rt=D(C),typeof Rt=="function")for(C=Rt.call(C),Rt=0;!(et=C.next()).done;)et=et.value,tt=Gt+at(et,Rt++),yt+=R(et,H,W,tt,dt);else if(tt==="object"){if(typeof C.then=="function")return R(K(C),H,W,et,dt);throw H=String(C),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return yt}function Y(C,H,W){if(C==null)return C;var et=[],dt=0;return R(C,et,"","",function(tt){return H.call(W,tt,dt++)}),et}function it(C){if(C._status===-1){var H=C._result;H=H(),H.then(function(W){(C._status===0||C._status===-1)&&(C._status=1,C._result=W)},function(W){(C._status===0||C._status===-1)&&(C._status=2,C._result=W)}),C._status===-1&&(C._status=0,C._result=H)}if(C._status===1)return C._result.default;throw C._result}var lt=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(H))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",C);return}console.error(C)},gt={map:Y,forEach:function(C,H,W){Y(C,function(){H.apply(this,arguments)},W)},count:function(C){var H=0;return Y(C,function(){H++}),H},toArray:function(C){return Y(C,function(H){return H})||[]},only:function(C){if(!ut(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return pt.Activity=v,pt.Children=gt,pt.Component=O,pt.Fragment=r,pt.Profiler=f,pt.PureComponent=q,pt.StrictMode=u,pt.Suspense=y,pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,pt.__COMPILER_RUNTIME={__proto__:null,c:function(C){return N.H.useMemoCache(C)}},pt.cache=function(C){return function(){return C.apply(null,arguments)}},pt.cacheSignal=function(){return null},pt.cloneElement=function(C,H,W){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var et=L({},C.props),dt=C.key;if(H!=null)for(tt in H.key!==void 0&&(dt=""+H.key),H)!I.call(H,tt)||tt==="key"||tt==="__self"||tt==="__source"||tt==="ref"&&H.ref===void 0||(et[tt]=H[tt]);var tt=arguments.length-2;if(tt===1)et.children=W;else if(1<tt){for(var yt=Array(tt),Gt=0;Gt<tt;Gt++)yt[Gt]=arguments[Gt+2];et.children=yt}return nt(C.type,dt,et)},pt.createContext=function(C){return C={$$typeof:p,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:d,_context:C},C},pt.createElement=function(C,H,W){var et,dt={},tt=null;if(H!=null)for(et in H.key!==void 0&&(tt=""+H.key),H)I.call(H,et)&&et!=="key"&&et!=="__self"&&et!=="__source"&&(dt[et]=H[et]);var yt=arguments.length-2;if(yt===1)dt.children=W;else if(1<yt){for(var Gt=Array(yt),Rt=0;Rt<yt;Rt++)Gt[Rt]=arguments[Rt+2];dt.children=Gt}if(C&&C.defaultProps)for(et in yt=C.defaultProps,yt)dt[et]===void 0&&(dt[et]=yt[et]);return nt(C,tt,dt)},pt.createRef=function(){return{current:null}},pt.forwardRef=function(C){return{$$typeof:h,render:C}},pt.isValidElement=ut,pt.lazy=function(C){return{$$typeof:S,_payload:{_status:-1,_result:C},_init:it}},pt.memo=function(C,H){return{$$typeof:m,type:C,compare:H===void 0?null:H}},pt.startTransition=function(C){var H=N.T,W={};N.T=W;try{var et=C(),dt=N.S;dt!==null&&dt(W,et),typeof et=="object"&&et!==null&&typeof et.then=="function"&&et.then(k,lt)}catch(tt){lt(tt)}finally{H!==null&&W.types!==null&&(H.types=W.types),N.T=H}},pt.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},pt.use=function(C){return N.H.use(C)},pt.useActionState=function(C,H,W){return N.H.useActionState(C,H,W)},pt.useCallback=function(C,H){return N.H.useCallback(C,H)},pt.useContext=function(C){return N.H.useContext(C)},pt.useDebugValue=function(){},pt.useDeferredValue=function(C,H){return N.H.useDeferredValue(C,H)},pt.useEffect=function(C,H){return N.H.useEffect(C,H)},pt.useEffectEvent=function(C){return N.H.useEffectEvent(C)},pt.useId=function(){return N.H.useId()},pt.useImperativeHandle=function(C,H,W){return N.H.useImperativeHandle(C,H,W)},pt.useInsertionEffect=function(C,H){return N.H.useInsertionEffect(C,H)},pt.useLayoutEffect=function(C,H){return N.H.useLayoutEffect(C,H)},pt.useMemo=function(C,H){return N.H.useMemo(C,H)},pt.useOptimistic=function(C,H){return N.H.useOptimistic(C,H)},pt.useReducer=function(C,H,W){return N.H.useReducer(C,H,W)},pt.useRef=function(C){return N.H.useRef(C)},pt.useState=function(C){return N.H.useState(C)},pt.useSyncExternalStore=function(C,H,W){return N.H.useSyncExternalStore(C,H,W)},pt.useTransition=function(){return N.H.useTransition()},pt.version="19.2.1",pt}var $f;function eo(){return $f||($f=1,to.exports=Xv()),to.exports}var E=eo();const xi=Fi(E);var no={exports:{}},Fa={},io={exports:{}},ao={};var td;function Fv(){return td||(td=1,(function(n){function a(K,R){var Y=K.length;K.push(R);t:for(;0<Y;){var it=Y-1>>>1,lt=K[it];if(0<u(lt,R))K[it]=R,K[Y]=lt,Y=it;else break t}}function s(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var R=K[0],Y=K.pop();if(Y!==R){K[0]=Y;t:for(var it=0,lt=K.length,gt=lt>>>1;it<gt;){var C=2*(it+1)-1,H=K[C],W=C+1,et=K[W];if(0>u(H,Y))W<lt&&0>u(et,H)?(K[it]=et,K[W]=Y,it=W):(K[it]=H,K[C]=Y,it=C);else if(W<lt&&0>u(et,Y))K[it]=et,K[W]=Y,it=W;else break t}}return R}function u(K,R){var Y=K.sortIndex-R.sortIndex;return Y!==0?Y:K.id-R.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var h=[],y=[],m=1,S=null,v=3,T=!1,D=!1,B=!1,L=!1,M=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function q(K){for(var R=s(y);R!==null;){if(R.callback===null)r(y);else if(R.startTime<=K)r(y),R.sortIndex=R.expirationTime,a(h,R);else break;R=s(y)}}function Z(K){if(B=!1,q(K),!D)if(s(h)!==null)D=!0,J||(J=!0,ut());else{var R=s(y);R!==null&&at(Z,R.startTime-K)}}var J=!1,k=-1,N=5,I=-1;function nt(){return L?!0:!(n.unstable_now()-I<N)}function st(){if(L=!1,J){var K=n.unstable_now();I=K;var R=!0;try{t:{D=!1,B&&(B=!1,O(k),k=-1),T=!0;var Y=v;try{e:{for(q(K),S=s(h);S!==null&&!(S.expirationTime>K&&nt());){var it=S.callback;if(typeof it=="function"){S.callback=null,v=S.priorityLevel;var lt=it(S.expirationTime<=K);if(K=n.unstable_now(),typeof lt=="function"){S.callback=lt,q(K),R=!0;break e}S===s(h)&&r(h),q(K)}else r(h);S=s(h)}if(S!==null)R=!0;else{var gt=s(y);gt!==null&&at(Z,gt.startTime-K),R=!1}}break t}finally{S=null,v=Y,T=!1}R=void 0}}finally{R?ut():J=!1}}}var ut;if(typeof z=="function")ut=function(){z(st)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,$=Q.port2;Q.port1.onmessage=st,ut=function(){$.postMessage(null)}}else ut=function(){M(st,0)};function at(K,R){k=M(function(){K(n.unstable_now())},R)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(K){K.callback=null},n.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<K?Math.floor(1e3/K):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(K){switch(v){case 1:case 2:case 3:var R=3;break;default:R=v}var Y=v;v=R;try{return K()}finally{v=Y}},n.unstable_requestPaint=function(){L=!0},n.unstable_runWithPriority=function(K,R){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var Y=v;v=K;try{return R()}finally{v=Y}},n.unstable_scheduleCallback=function(K,R,Y){var it=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?it+Y:it):Y=it,K){case 1:var lt=-1;break;case 2:lt=250;break;case 5:lt=1073741823;break;case 4:lt=1e4;break;default:lt=5e3}return lt=Y+lt,K={id:m++,callback:R,priorityLevel:K,startTime:Y,expirationTime:lt,sortIndex:-1},Y>it?(K.sortIndex=Y,a(y,K),s(h)===null&&K===s(y)&&(B?(O(k),k=-1):B=!0,at(Z,Y-it))):(K.sortIndex=lt,a(h,K),D||T||(D=!0,J||(J=!0,ut()))),K},n.unstable_shouldYield=nt,n.unstable_wrapCallback=function(K){var R=v;return function(){var Y=v;v=R;try{return K.apply(this,arguments)}finally{v=Y}}}})(ao)),ao}var ed;function Kv(){return ed||(ed=1,io.exports=Fv()),io.exports}var lo={exports:{}},ye={};var nd;function Qv(){if(nd)return ye;nd=1;var n=eo();function a(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)y+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={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},u=Symbol.for("react.portal");function f(h,y,m){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:h,containerInfo:y,implementation:m}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ye.createPortal=function(h,y){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(h,y,null,m)},ye.flushSync=function(h){var y=d.T,m=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=y,r.p=m,r.d.f()}},ye.preconnect=function(h,y){typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(h,y))},ye.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},ye.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var m=y.as,S=p(m,y.crossOrigin),v=typeof y.integrity=="string"?y.integrity:void 0,T=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;m==="style"?r.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:v,fetchPriority:T}):m==="script"&&r.d.X(h,{crossOrigin:S,integrity:v,fetchPriority:T,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ye.preinitModule=function(h,y){if(typeof h=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var m=p(y.as,y.crossOrigin);r.d.M(h,{crossOrigin:m,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(h)},ye.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var m=y.as,S=p(m,y.crossOrigin);r.d.L(h,m,{crossOrigin:S,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})}},ye.preloadModule=function(h,y){if(typeof h=="string")if(y){var m=p(y.as,y.crossOrigin);r.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:m,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(h)},ye.requestFormReset=function(h){r.d.r(h)},ye.unstable_batchedUpdates=function(h,y){return h(y)},ye.useFormState=function(h,y,m){return d.H.useFormState(h,y,m)},ye.useFormStatus=function(){return d.H.useHostTransitionStatus()},ye.version="19.2.1",ye}var id;function Zv(){if(id)return lo.exports;id=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),lo.exports=Qv(),lo.exports}var ad;function Iv(){if(ad)return Fa;ad=1;var n={};var a=Kv(),s=eo(),r=Zv();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}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,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function p(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 h(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(u(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var i=t,l=e;;){var o=i.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){i=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===i)return y(o),t;if(c===l)return y(o),e;c=c.sibling}throw Error(u(188))}if(i.return!==l.return)i=o,l=c;else{for(var g=!1,x=o.child;x;){if(x===i){g=!0,i=o,l=c;break}if(x===l){g=!0,l=o,i=c;break}x=x.sibling}if(!g){for(x=c.child;x;){if(x===i){g=!0,i=c,l=o;break}if(x===l){g=!0,l=c,i=o;break}x=x.sibling}if(!g)throw Error(u(189))}}if(i.alternate!==l)throw Error(u(190))}if(i.tag!==3)throw Error(u(188));return i.stateNode.current===i?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,T=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),q=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),nt=Symbol.for("react.activity"),st=Symbol.for("react.memo_cache_sentinel"),ut=Symbol.iterator;function Q(t){return t===null||typeof t!="object"?null:(t=ut&&t[ut]||t["@@iterator"],typeof t=="function"?t:null)}var $=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===$?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case O:return"Profiler";case M:return"StrictMode";case J:return"Suspense";case k:return"SuspenseList";case nt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case B:return"Portal";case q:return t.displayName||"Context";case z: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 N:return e=t.displayName||null,e!==null?e:at(t.type)||"Memo";case I:e=t._payload,t=t._init;try{return at(t(e))}catch{}}return null}var K=Array.isArray,R=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},lt=[],gt=-1;function C(t){return{current:t}}function H(t){0>gt||(t.current=lt[gt],lt[gt]=null,gt--)}function W(t,e){gt++,lt[gt]=t.current,t.current=e}var et=C(null),dt=C(null),tt=C(null),yt=C(null);function Gt(t,e){switch(W(tt,e),W(dt,t),W(et,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dv(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dv(e),t=hv(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(et),W(et,t)}function Rt(){H(et),H(dt),H(tt)}function be(t){t.memoizedState!==null&&W(yt,t);var e=et.current,i=hv(e,t.type);e!==i&&(W(dt,t),W(et,i))}function ze(t){dt.current===t&&(H(et),H(dt)),yt.current===t&&(H(yt),is._currentValue=it)}var Ke,En;function rn(t){if(Ke===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Ke=e&&e[1]||"",En=-1<i.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+fn+t+ta}var at=!1;function gt(t,e){if(!t||at)return"";at=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(_){var O=_}Reflect.construct(t,[],X)}else{try{X.call()}catch(_){O=_}t.call(X.prototype)}}else{try{throw Error()}catch(_){O=_}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(_){if(_&&O&&typeof _.stack=="string")return[_.stack,O.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),m=c[0],x=c[1];if(m&&x){var E=m.split(`
4
- `),B=x.split(`
5
- `);for(o=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(l===E.length||o===B.length)for(l=E.length-1,o=B.length-1;1<=l&&0<=o&&E[l]!==B[o];)o--;for(;1<=l&&0<=o;l--,o--)if(E[l]!==B[o]){if(l!==1||o!==1)do if(l--,o--,0>o||E[l]!==B[o]){var q=`
6
- `+E[l].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=l&&0<=o);break}}}finally{at=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?nn(i):""}function Ht(t,e){switch(t.tag){case 26:case 27:case 5:return nn(t.type);case 16:return nn("Lazy");case 13:return t.child!==e&&e!==null?nn("Suspense Fallback"):nn("Suspense");case 19:return nn("SuspenseList");case 0:case 15:return gt(t.type,!1);case 11:return gt(t.type.render,!1);case 1:return gt(t.type,!0);case 31:return nn("Activity");default:return""}}function Kt(t){try{var e="",i=null;do e+=Ht(t,i),i=t,t=t.return;while(t);return e}catch(l){return`
3
+ `+Ke+t+En}var ce=!1;function se(t,e){if(!t||ce)return"";ce=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(G){var _=G}Reflect.construct(t,[],F)}else{try{F.call()}catch(G){_=G}t.call(F.prototype)}}else{try{throw Error()}catch(G){_=G}(F=t())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(G){if(G&&_&&typeof G.stack=="string")return[G.stack,_.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],x=c[1];if(g&&x){var A=g.split(`
4
+ `),U=x.split(`
5
+ `);for(o=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;o<U.length&&!U[o].includes("DetermineComponentFrameRoot");)o++;if(l===A.length||o===U.length)for(l=A.length-1,o=U.length-1;1<=l&&0<=o&&A[l]!==U[o];)o--;for(;1<=l&&0<=o;l--,o--)if(A[l]!==U[o]){if(l!==1||o!==1)do if(l--,o--,0>o||A[l]!==U[o]){var P=`
6
+ `+A[l].replace(" at new "," at ");return t.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",t.displayName)),P}while(1<=l&&0<=o);break}}}finally{ce=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?rn(i):""}function Be(t,e){switch(t.tag){case 26:case 27:case 5:return rn(t.type);case 16:return rn("Lazy");case 13:return t.child!==e&&e!==null?rn("Suspense Fallback"):rn("Suspense");case 19:return rn("SuspenseList");case 0:case 15:return se(t.type,!1);case 11:return se(t.type.render,!1);case 1:return se(t.type,!0);case 31:return rn("Activity");default:return""}}function Le(t){try{var e="",i=null;do e+=Be(t,i),i=t,t=t.return;while(t);return e}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var qe=Object.prototype.hasOwnProperty,ea=a.unstable_scheduleCallback,xi=a.unstable_cancelCallback,Cs=a.unstable_shouldYield,ws=a.unstable_requestPaint,ve=a.unstable_now,ul=a.unstable_getCurrentPriorityLevel,Ds=a.unstable_ImmediatePriority,Bp=a.unstable_UserBlockingPriority,Rs=a.unstable_NormalPriority,CM=a.unstable_LowPriority,Op=a.unstable_IdlePriority,wM=a.log,DM=a.unstable_setDisableYieldValue,cl=null,je=null;function qn(t){if(typeof wM=="function"&&DM(t),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(cl,t)}catch{}}var ze=Math.clz32?Math.clz32:zM,RM=Math.log,jM=Math.LN2;function zM(t){return t>>>=0,t===0?32:31-(RM(t)/jM|0)|0}var js=256,zs=262144,Bs=4194304;function Ti(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 Os(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var o=0,c=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?o=Ti(l):(m&=x,m!==0?o=Ti(m):i||(i=x&~t,i!==0&&(o=Ti(i))))):(x=l&~c,x!==0?o=Ti(x):m!==0?o=Ti(m):i||(i=l&~t,i!==0&&(o=Ti(i)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,i=e&-e,c>=i||c===32&&(i&4194048)!==0)?e:o}function fl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function BM(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 Lp(){var t=Bs;return Bs<<=1,(Bs&62914560)===0&&(Bs=4194304),t}function Du(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function dl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function OM(t,e,i,l,o,c){var m=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var x=t.entanglements,E=t.expirationTimes,B=t.hiddenUpdates;for(i=m&~i;0<i;){var q=31-ze(i),X=1<<q;x[q]=0,E[q]=-1;var O=B[q];if(O!==null)for(B[q]=null,q=0;q<O.length;q++){var _=O[q];_!==null&&(_.lane&=-536870913)}i&=~X}l!==0&&Vp(t,l,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(m&~e))}function Vp(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ze(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function Np(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-ze(i),o=1<<l;o&e|t[l]&e&&(t[l]|=e),i&=~o}}function Up(t,e){var i=e&-e;return i=(i&42)!==0?1:Ru(i),(i&(t.suspendedLanes|e))!==0?0:i}function Ru(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ju(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Hp(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:Ev(t.type))}function _p(t,e){var i=G.p;try{return G.p=t,e()}finally{G.p=i}}var Pn=Math.random().toString(36).slice(2),ce="__reactFiber$"+Pn,xe="__reactProps$"+Pn,na="__reactContainer$"+Pn,zu="__reactEvents$"+Pn,LM="__reactListeners$"+Pn,VM="__reactHandles$"+Pn,kp="__reactResources$"+Pn,hl="__reactMarker$"+Pn;function Bu(t){delete t[ce],delete t[xe],delete t[zu],delete t[LM],delete t[VM]}function ia(t){var e=t[ce];if(e)return e;for(var i=t.parentNode;i;){if(e=i[na]||i[ce]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=rv(t);t!==null;){if(i=t[ce])return i;t=rv(t)}return e}t=i,i=t.parentNode}return null}function aa(t){if(t=t[ce]||t[na]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ml(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function la(t){var e=t[kp];return e||(e=t[kp]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function se(t){t[hl]=!0}var Gp=new Set,Yp={};function Ei(t,e){sa(t,e),sa(t+"Capture",e)}function sa(t,e){for(Yp[t]=e,t=0;t<e.length;t++)Gp.add(e[t])}var NM=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]*$"),qp={},Pp={};function UM(t){return qe.call(Pp,t)?!0:qe.call(qp,t)?!1:NM.test(t)?Pp[t]=!0:(qp[t]=!0,!1)}function Ls(t,e,i){if(UM(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){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,""+i)}}function Vs(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function bn(t,e,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+l)}}function Pe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Xp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function HM(t,e,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(m){i=""+m,c.call(this,m)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ou(t){if(!t._valueTracker){var e=Xp(t)?"checked":"value";t._valueTracker=HM(t,e,""+t[e])}}function Kp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=Xp(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function Ns(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 _M=/[\n"\\]/g;function Xe(t){return t.replace(_M,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Lu(t,e,i,l,o,c,m,x){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=""+Pe(e)):t.value!==""+Pe(e)&&(t.value=""+Pe(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?Vu(t,m,Pe(e)):i!=null?Vu(t,m,Pe(i)):l!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Pe(x):t.removeAttribute("name")}function Fp(t,e,i,l,o,c,m,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Ou(t);return}i=i!=null?""+Pe(i):"",e=e!=null?""+Pe(e):i,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),Ou(t)}function Vu(t,e,i){e==="number"&&Ns(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function ra(t,e,i,l){if(t=t.options,e){e={};for(var o=0;o<i.length;o++)e["$"+i[o]]=!0;for(i=0;i<t.length;i++)o=e.hasOwnProperty("$"+t[i].value),t[i].selected!==o&&(t[i].selected=o),o&&l&&(t[i].defaultSelected=!0)}else{for(i=""+Pe(i),e=null,o=0;o<t.length;o++){if(t[o].value===i){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Qp(t,e,i){if(e!=null&&(e=""+Pe(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Pe(i):""}function Zp(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(u(92));if(F(l)){if(1<l.length)throw Error(u(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=Pe(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Ou(t)}function oa(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var kM=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 Ip(t,e,i){var l=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,i):typeof i!="number"||i===0||kM.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function Jp(t,e,i){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&i[o]!==l&&Ip(t,o,l)}else for(var c in e)e.hasOwnProperty(c)&&Ip(t,c,e[c])}function Nu(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 GM=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"]]),YM=/^[\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 Us(t){return YM.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Sn(){}var Uu=null;function Hu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ua=null,ca=null;function Wp(t){var e=aa(t);if(e&&(t=e.stateNode)){var i=t[xe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Lu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Xe(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var o=l[xe]||null;if(!o)throw Error(u(90));Lu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<i.length;e++)l=i[e],l.form===t.form&&Kp(l)}break t;case"textarea":Qp(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&ra(t,!!i.multiple,e,!1)}}}var _u=!1;function $p(t,e,i){if(_u)return t(e,i);_u=!0;try{var l=t(e);return l}finally{if(_u=!1,(ua!==null||ca!==null)&&(Mr(),ua&&(e=ua,t=ca,ca=ua=null,Wp(e),t)))for(e=0;e<t.length;e++)Wp(t[e])}}function pl(t,e){var i=t.stateNode;if(i===null)return null;var l=i[xe]||null;if(l===null)return null;i=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(i&&typeof i!="function")throw Error(u(231,e,typeof i));return i}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=!1;if(xn)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){ku=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{ku=!1}var Xn=null,Gu=null,Hs=null;function t0(){if(Hs)return Hs;var t,e=Gu,i=e.length,l,o="value"in Xn?Xn.value:Xn.textContent,c=o.length;for(t=0;t<i&&e[t]===o[t];t++);var m=i-t;for(l=1;l<=m&&e[i-l]===o[c-l];l++);return Hs=o.slice(t,1<l?1-l:void 0)}function _s(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 ks(){return!0}function e0(){return!1}function Te(t){function e(i,l,o,c,m){this._reactName=i,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(i=t[x],this[x]=i?i(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ks:e0,this.isPropagationStopped=e0,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ks)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ks)},persist:function(){},isPersistent:ks}),e}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=Te(Mi),gl=v({},Mi,{view:0,detail:0}),qM=Te(gl),Yu,qu,vl,Ys=v({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xu,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!==vl&&(vl&&t.type==="mousemove"?(Yu=t.screenX-vl.screenX,qu=t.screenY-vl.screenY):qu=Yu=0,vl=t),Yu)},movementY:function(t){return"movementY"in t?t.movementY:qu}}),n0=Te(Ys),PM=v({},Ys,{dataTransfer:0}),XM=Te(PM),KM=v({},gl,{relatedTarget:0}),Pu=Te(KM),FM=v({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),QM=Te(FM),ZM=v({},Mi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),IM=Te(ZM),JM=v({},Mi,{data:0}),i0=Te(JM),WM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$M={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"},tA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eA(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=tA[t])?!!e[t]:!1}function Xu(){return eA}var nA=v({},gl,{key:function(t){if(t.key){var e=WM[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=_s(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$M[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xu,charCode:function(t){return t.type==="keypress"?_s(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_s(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),iA=Te(nA),aA=v({},Ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a0=Te(aA),lA=v({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xu}),sA=Te(lA),rA=v({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),oA=Te(rA),uA=v({},Ys,{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}),cA=Te(uA),fA=v({},Mi,{newState:0,oldState:0}),dA=Te(fA),hA=[9,13,27,32],Ku=xn&&"CompositionEvent"in window,bl=null;xn&&"documentMode"in document&&(bl=document.documentMode);var mA=xn&&"TextEvent"in window&&!bl,l0=xn&&(!Ku||bl&&8<bl&&11>=bl),s0=" ",r0=!1;function o0(t,e){switch(t){case"keyup":return hA.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fa=!1;function pA(t,e){switch(t){case"compositionend":return u0(e);case"keypress":return e.which!==32?null:(r0=!0,s0);case"textInput":return t=e.data,t===s0&&r0?null:t;default:return null}}function yA(t,e){if(fa)return t==="compositionend"||!Ku&&o0(t,e)?(t=t0(),Hs=Gu=Xn=null,fa=!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 l0&&e.locale!=="ko"?null:e.data;default:return null}}var gA={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 c0(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!gA[t.type]:e==="textarea"}function f0(t,e,i,l){ua?ca?ca.push(l):ca=[l]:ua=l,e=zr(e,"onChange"),0<e.length&&(i=new Gs("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var Sl=null,xl=null;function vA(t){Fg(t,0)}function qs(t){var e=ml(t);if(Kp(e))return t}function d0(t,e){if(t==="change")return e}var h0=!1;if(xn){var Fu;if(xn){var Qu="oninput"in document;if(!Qu){var m0=document.createElement("div");m0.setAttribute("oninput","return;"),Qu=typeof m0.oninput=="function"}Fu=Qu}else Fu=!1;h0=Fu&&(!document.documentMode||9<document.documentMode)}function p0(){Sl&&(Sl.detachEvent("onpropertychange",y0),xl=Sl=null)}function y0(t){if(t.propertyName==="value"&&qs(xl)){var e=[];f0(e,xl,t,Hu(t)),$p(vA,e)}}function bA(t,e,i){t==="focusin"?(p0(),Sl=e,xl=i,Sl.attachEvent("onpropertychange",y0)):t==="focusout"&&p0()}function SA(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return qs(xl)}function xA(t,e){if(t==="click")return qs(e)}function TA(t,e){if(t==="input"||t==="change")return qs(e)}function EA(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Be=typeof Object.is=="function"?Object.is:EA;function Tl(t,e){if(Be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),l=Object.keys(e);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var o=i[l];if(!qe.call(e,o)||!Be(t[o],e[o]))return!1}return!0}function g0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function v0(t,e){var i=g0(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=e&&l>=e)return{node:i,offset:e-t};t=l}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=g0(i)}}function b0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?b0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function S0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ns(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=Ns(t.document)}return e}function Zu(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 MA=xn&&"documentMode"in document&&11>=document.documentMode,da=null,Iu=null,El=null,Ju=!1;function x0(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ju||da==null||da!==Ns(l)||(l=da,"selectionStart"in l&&Zu(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}),El&&Tl(El,l)||(El=l,l=zr(Iu,"onSelect"),0<l.length&&(e=new Gs("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=da)))}function Ai(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var ha={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionrun:Ai("Transition","TransitionRun"),transitionstart:Ai("Transition","TransitionStart"),transitioncancel:Ai("Transition","TransitionCancel"),transitionend:Ai("Transition","TransitionEnd")},Wu={},T0={};xn&&(T0=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function Ci(t){if(Wu[t])return Wu[t];if(!ha[t])return t;var e=ha[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in T0)return Wu[t]=e[i];return t}var E0=Ci("animationend"),M0=Ci("animationiteration"),A0=Ci("animationstart"),AA=Ci("transitionrun"),CA=Ci("transitionstart"),wA=Ci("transitioncancel"),C0=Ci("transitionend"),w0=new Map,$u="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(" ");$u.push("scrollEnd");function an(t,e){w0.set(t,e),Ei(e,[t])}var Ps=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 n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",t);return}console.error(t)},Ke=[],ma=0,tc=0;function Xs(){for(var t=ma,e=tc=ma=0;e<t;){var i=Ke[e];Ke[e++]=null;var l=Ke[e];Ke[e++]=null;var o=Ke[e];Ke[e++]=null;var c=Ke[e];if(Ke[e++]=null,l!==null&&o!==null){var m=l.pending;m===null?o.next=o:(o.next=m.next,m.next=o),l.pending=o}c!==0&&D0(i,o,c)}}function Ks(t,e,i,l){Ke[ma++]=t,Ke[ma++]=e,Ke[ma++]=i,Ke[ma++]=l,tc|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function ec(t,e,i,l){return Ks(t,e,i,l),Fs(t)}function wi(t,e){return Ks(t,null,null,e),Fs(t)}function D0(t,e,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var o=!1,c=t.return;c!==null;)c.childLanes|=i,l=c.alternate,l!==null&&(l.childLanes|=i),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-ze(i),t=c.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=i|536870912),c):null}function Fs(t){if(50<Xl)throw Xl=0,ff=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var pa={};function DA(t,e,i,l){this.tag=t,this.key=i,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 Oe(t,e,i,l){return new DA(t,e,i,l)}function nc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Tn(t,e){var i=t.alternate;return i===null?(i=Oe(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function R0(t,e){t.flags&=65011714;var i=t.alternate;return i===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=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Qs(t,e,i,l,o,c){var m=0;if(l=t,typeof t=="function")nc(t)&&(m=1);else if(typeof t=="string")m=O5(t,i,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case bt:return t=Oe(31,i,e,o),t.elementType=bt,t.lanes=c,t;case H:return Di(i.children,o,c,e);case C:m=8,o|=24;break;case U:return t=Oe(12,i,e,o|2),t.elementType=U,t.lanes=c,t;case J:return t=Oe(13,i,e,o),t.elementType=J,t.lanes=c,t;case Y:return t=Oe(19,i,e,o),t.elementType=Y,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:m=10;break t;case V:m=9;break t;case Q:m=11;break t;case k:m=14;break t;case st:m=16,l=null;break t}m=29,i=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=Oe(m,i,e,o),e.elementType=t,e.type=l,e.lanes=c,e}function Di(t,e,i,l){return t=Oe(7,t,l,e),t.lanes=i,t}function ic(t,e,i){return t=Oe(6,t,null,e),t.lanes=i,t}function j0(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function ac(t,e,i){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var z0=new WeakMap;function Fe(t,e){if(typeof t=="object"&&t!==null){var i=z0.get(t);return i!==void 0?i:(e={value:t,source:e,stack:Kt(e)},z0.set(t,e),e)}return{value:t,source:e,stack:Kt(e)}}var ya=[],ga=0,Zs=null,Ml=0,Qe=[],Ze=0,Kn=null,dn=1,hn="";function En(t,e){ya[ga++]=Ml,ya[ga++]=Zs,Zs=t,Ml=e}function B0(t,e,i){Qe[Ze++]=dn,Qe[Ze++]=hn,Qe[Ze++]=Kn,Kn=t;var l=dn;t=hn;var o=32-ze(l)-1;l&=~(1<<o),i+=1;var c=32-ze(e)+o;if(30<c){var m=o-o%5;c=(l&(1<<m)-1).toString(32),l>>=m,o-=m,dn=1<<32-ze(e)+o|i<<o|l,hn=c+t}else dn=1<<c|i<<o|l,hn=t}function lc(t){t.return!==null&&(En(t,1),B0(t,1,0))}function sc(t){for(;t===Zs;)Zs=ya[--ga],ya[ga]=null,Ml=ya[--ga],ya[ga]=null;for(;t===Kn;)Kn=Qe[--Ze],Qe[Ze]=null,hn=Qe[--Ze],Qe[Ze]=null,dn=Qe[--Ze],Qe[Ze]=null}function O0(t,e){Qe[Ze++]=dn,Qe[Ze++]=hn,Qe[Ze++]=Kn,dn=e.id,hn=e.overflow,Kn=t}var fe=null,_t=null,At=!1,Fn=null,Ie=!1,rc=Error(u(519));function Qn(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Al(Fe(e,t)),rc}function L0(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[ce]=t,e[xe]=l,i){case"dialog":Tt("cancel",e),Tt("close",e);break;case"iframe":case"object":case"embed":Tt("load",e);break;case"video":case"audio":for(i=0;i<Fl.length;i++)Tt(Fl[i],e);break;case"source":Tt("error",e);break;case"img":case"image":case"link":Tt("error",e),Tt("load",e);break;case"details":Tt("toggle",e);break;case"input":Tt("invalid",e),Fp(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Tt("invalid",e);break;case"textarea":Tt("invalid",e),Zp(e,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||l.suppressHydrationWarning===!0||Jg(e.textContent,i)?(l.popover!=null&&(Tt("beforetoggle",e),Tt("toggle",e)),l.onScroll!=null&&Tt("scroll",e),l.onScrollEnd!=null&&Tt("scrollend",e),l.onClick!=null&&(e.onclick=Sn),e=!0):e=!1,e||Qn(t,!0)}function V0(t){for(fe=t.return;fe;)switch(fe.tag){case 5:case 31:case 13:Ie=!1;return;case 27:case 3:Ie=!0;return;default:fe=fe.return}}function va(t){if(t!==fe)return!1;if(!At)return V0(t),At=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Cf(t.type,t.memoizedProps)),i=!i),i&&_t&&Qn(t),V0(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=sv(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=sv(t)}else e===27?(e=_t,oi(t.type)?(t=zf,zf=null,_t=t):_t=e):_t=fe?We(t.stateNode.nextSibling):null;return!0}function Ri(){_t=fe=null,At=!1}function oc(){var t=Fn;return t!==null&&(Ce===null?Ce=t:Ce.push.apply(Ce,t),Fn=null),t}function Al(t){Fn===null?Fn=[t]:Fn.push(t)}var uc=M(null),ji=null,Mn=null;function Zn(t,e,i){I(uc,e._currentValue),e._currentValue=i}function An(t){t._currentValue=uc.current,N(uc)}function cc(t,e,i){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===i)break;t=t.return}}function fc(t,e,i,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=o;for(var E=0;E<e.length;E++)if(x.context===e[E]){c.lanes|=i,x=c.alternate,x!==null&&(x.lanes|=i),cc(c.return,i,t),l||(m=null);break t}c=x.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(u(341));m.lanes|=i,c=m.alternate,c!==null&&(c.lanes|=i),cc(m,i,t),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===t){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function ba(t,e,i,l){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(u(387));if(m=m.memoizedProps,m!==null){var x=o.type;Be(o.pendingProps.value,m.value)||(t!==null?t.push(x):t=[x])}}else if(o===ht.current){if(m=o.alternate,m===null)throw Error(u(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Wl):t=[Wl])}o=o.return}t!==null&&fc(e,t,i,l),e.flags|=262144}function Is(t){for(t=t.firstContext;t!==null;){if(!Be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function zi(t){ji=t,Mn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function de(t){return N0(ji,t)}function Js(t,e){return ji===null&&zi(t),N0(t,e)}function N0(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},Mn===null){if(t===null)throw Error(u(308));Mn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Mn=Mn.next=e;return i}var RA=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},jA=a.unstable_scheduleCallback,zA=a.unstable_NormalPriority,$t={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dc(){return{controller:new RA,data:new Map,refCount:0}}function Cl(t){t.refCount--,t.refCount===0&&jA(zA,function(){t.controller.abort()})}var wl=null,hc=0,Sa=0,xa=null;function BA(t,e){if(wl===null){var i=wl=[];hc=0,Sa=gf(),xa={status:"pending",value:void 0,then:function(l){i.push(l)}}}return hc++,e.then(U0,U0),e}function U0(){if(--hc===0&&wl!==null){xa!==null&&(xa.status="fulfilled");var t=wl;wl=null,Sa=0,xa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function OA(t,e){var i=[],l={status:"pending",value:null,reason:null,then:function(o){i.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<i.length;o++)(0,i[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<i.length;o++)(0,i[o])(void 0)}),l}var H0=D.S;D.S=function(t,e){xg=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&BA(t,e),H0!==null&&H0(t,e)};var Bi=M(null);function mc(){var t=Bi.current;return t!==null?t:Vt.pooledCache}function Ws(t,e){e===null?I(Bi,Bi.current):I(Bi,e.pool)}function _0(){var t=mc();return t===null?null:{parent:$t._currentValue,pool:t}}var Ta=Error(u(460)),pc=Error(u(474)),$s=Error(u(542)),tr={then:function(){}};function k0(t){return t=t.status,t==="fulfilled"||t==="rejected"}function G0(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(Sn,Sn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,q0(t),t;default:if(typeof e.status=="string")e.then(Sn,Sn);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,q0(t),t}throw Li=e,Ta}}function Oi(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Li=i,Ta):i}}var Li=null;function Y0(){if(Li===null)throw Error(u(459));var t=Li;return Li=null,t}function q0(t){if(t===Ta||t===$s)throw Error(u(483))}var Ea=null,Dl=0;function er(t){var e=Dl;return Dl+=1,Ea===null&&(Ea=[]),G0(Ea,t,e)}function Rl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function nr(t,e){throw e.$$typeof===A?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function P0(t){function e(R,w){if(t){var z=R.deletions;z===null?(R.deletions=[w],R.flags|=16):z.push(w)}}function i(R,w){if(!t)return null;for(;w!==null;)e(R,w),w=w.sibling;return null}function l(R){for(var w=new Map;R!==null;)R.key!==null?w.set(R.key,R):w.set(R.index,R),R=R.sibling;return w}function o(R,w){return R=Tn(R,w),R.index=0,R.sibling=null,R}function c(R,w,z){return R.index=z,t?(z=R.alternate,z!==null?(z=z.index,z<w?(R.flags|=67108866,w):z):(R.flags|=67108866,w)):(R.flags|=1048576,w)}function m(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function x(R,w,z,P){return w===null||w.tag!==6?(w=ic(z,R.mode,P),w.return=R,w):(w=o(w,z),w.return=R,w)}function E(R,w,z,P){var ot=z.type;return ot===H?q(R,w,z.props.children,P,z.key):w!==null&&(w.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===st&&Oi(ot)===w.type)?(w=o(w,z.props),Rl(w,z),w.return=R,w):(w=Qs(z.type,z.key,z.props,null,R.mode,P),Rl(w,z),w.return=R,w)}function B(R,w,z,P){return w===null||w.tag!==4||w.stateNode.containerInfo!==z.containerInfo||w.stateNode.implementation!==z.implementation?(w=ac(z,R.mode,P),w.return=R,w):(w=o(w,z.children||[]),w.return=R,w)}function q(R,w,z,P,ot){return w===null||w.tag!==7?(w=Di(z,R.mode,P,ot),w.return=R,w):(w=o(w,z),w.return=R,w)}function X(R,w,z){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ic(""+w,R.mode,z),w.return=R,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case j:return z=Qs(w.type,w.key,w.props,null,R.mode,z),Rl(z,w),z.return=R,z;case L:return w=ac(w,R.mode,z),w.return=R,w;case st:return w=Oi(w),X(R,w,z)}if(F(w)||Z(w))return w=Di(w,R.mode,z,null),w.return=R,w;if(typeof w.then=="function")return X(R,er(w),z);if(w.$$typeof===K)return X(R,Js(R,w),z);nr(R,w)}return null}function O(R,w,z,P){var ot=w!==null?w.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ot!==null?null:x(R,w,""+z,P);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return z.key===ot?E(R,w,z,P):null;case L:return z.key===ot?B(R,w,z,P):null;case st:return z=Oi(z),O(R,w,z,P)}if(F(z)||Z(z))return ot!==null?null:q(R,w,z,P,null);if(typeof z.then=="function")return O(R,w,er(z),P);if(z.$$typeof===K)return O(R,w,Js(R,z),P);nr(R,z)}return null}function _(R,w,z,P,ot){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return R=R.get(z)||null,x(w,R,""+P,ot);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case j:return R=R.get(P.key===null?z:P.key)||null,E(w,R,P,ot);case L:return R=R.get(P.key===null?z:P.key)||null,B(w,R,P,ot);case st:return P=Oi(P),_(R,w,z,P,ot)}if(F(P)||Z(P))return R=R.get(z)||null,q(w,R,P,ot,null);if(typeof P.then=="function")return _(R,w,z,er(P),ot);if(P.$$typeof===K)return _(R,w,z,Js(w,P),ot);nr(w,P)}return null}function it(R,w,z,P){for(var ot=null,Ct=null,rt=w,St=w=0,Mt=null;rt!==null&&St<z.length;St++){rt.index>St?(Mt=rt,rt=null):Mt=rt.sibling;var wt=O(R,rt,z[St],P);if(wt===null){rt===null&&(rt=Mt);break}t&&rt&&wt.alternate===null&&e(R,rt),w=c(wt,w,St),Ct===null?ot=wt:Ct.sibling=wt,Ct=wt,rt=Mt}if(St===z.length)return i(R,rt),At&&En(R,St),ot;if(rt===null){for(;St<z.length;St++)rt=X(R,z[St],P),rt!==null&&(w=c(rt,w,St),Ct===null?ot=rt:Ct.sibling=rt,Ct=rt);return At&&En(R,St),ot}for(rt=l(rt);St<z.length;St++)Mt=_(rt,R,St,z[St],P),Mt!==null&&(t&&Mt.alternate!==null&&rt.delete(Mt.key===null?St:Mt.key),w=c(Mt,w,St),Ct===null?ot=Mt:Ct.sibling=Mt,Ct=Mt);return t&&rt.forEach(function(hi){return e(R,hi)}),At&&En(R,St),ot}function ct(R,w,z,P){if(z==null)throw Error(u(151));for(var ot=null,Ct=null,rt=w,St=w=0,Mt=null,wt=z.next();rt!==null&&!wt.done;St++,wt=z.next()){rt.index>St?(Mt=rt,rt=null):Mt=rt.sibling;var hi=O(R,rt,wt.value,P);if(hi===null){rt===null&&(rt=Mt);break}t&&rt&&hi.alternate===null&&e(R,rt),w=c(hi,w,St),Ct===null?ot=hi:Ct.sibling=hi,Ct=hi,rt=Mt}if(wt.done)return i(R,rt),At&&En(R,St),ot;if(rt===null){for(;!wt.done;St++,wt=z.next())wt=X(R,wt.value,P),wt!==null&&(w=c(wt,w,St),Ct===null?ot=wt:Ct.sibling=wt,Ct=wt);return At&&En(R,St),ot}for(rt=l(rt);!wt.done;St++,wt=z.next())wt=_(rt,R,St,wt.value,P),wt!==null&&(t&&wt.alternate!==null&&rt.delete(wt.key===null?St:wt.key),w=c(wt,w,St),Ct===null?ot=wt:Ct.sibling=wt,Ct=wt);return t&&rt.forEach(function(P5){return e(R,P5)}),At&&En(R,St),ot}function Lt(R,w,z,P){if(typeof z=="object"&&z!==null&&z.type===H&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case j:t:{for(var ot=z.key;w!==null;){if(w.key===ot){if(ot=z.type,ot===H){if(w.tag===7){i(R,w.sibling),P=o(w,z.props.children),P.return=R,R=P;break t}}else if(w.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===st&&Oi(ot)===w.type){i(R,w.sibling),P=o(w,z.props),Rl(P,z),P.return=R,R=P;break t}i(R,w);break}else e(R,w);w=w.sibling}z.type===H?(P=Di(z.props.children,R.mode,P,z.key),P.return=R,R=P):(P=Qs(z.type,z.key,z.props,null,R.mode,P),Rl(P,z),P.return=R,R=P)}return m(R);case L:t:{for(ot=z.key;w!==null;){if(w.key===ot)if(w.tag===4&&w.stateNode.containerInfo===z.containerInfo&&w.stateNode.implementation===z.implementation){i(R,w.sibling),P=o(w,z.children||[]),P.return=R,R=P;break t}else{i(R,w);break}else e(R,w);w=w.sibling}P=ac(z,R.mode,P),P.return=R,R=P}return m(R);case st:return z=Oi(z),Lt(R,w,z,P)}if(F(z))return it(R,w,z,P);if(Z(z)){if(ot=Z(z),typeof ot!="function")throw Error(u(150));return z=ot.call(z),ct(R,w,z,P)}if(typeof z.then=="function")return Lt(R,w,er(z),P);if(z.$$typeof===K)return Lt(R,w,Js(R,z),P);nr(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,w!==null&&w.tag===6?(i(R,w.sibling),P=o(w,z),P.return=R,R=P):(i(R,w),P=ic(z,R.mode,P),P.return=R,R=P),m(R)):i(R,w)}return function(R,w,z,P){try{Dl=0;var ot=Lt(R,w,z,P);return Ea=null,ot}catch(rt){if(rt===Ta||rt===$s)throw rt;var Ct=Oe(29,rt,null,R.mode);return Ct.lanes=P,Ct.return=R,Ct}finally{}}}var Vi=P0(!0),X0=P0(!1),In=!1;function yc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(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 Jn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Wn(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=Fs(t),D0(t,null,i),e}return Ks(t,l,e,i),Fs(t)}function jl(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Np(t,i)}}function vc(t,e){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var m={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,i=i.next}while(i!==null);c===null?o=c=e:c=c.next=e}else o=c=e;i={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var bc=!1;function zl(){if(bc){var t=xa;if(t!==null)throw t}}function Bl(t,e,i,l){bc=!1;var o=t.updateQueue;In=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var E=x,B=E.next;E.next=null,m===null?c=B:m.next=B,m=E;var q=t.alternate;q!==null&&(q=q.updateQueue,x=q.lastBaseUpdate,x!==m&&(x===null?q.firstBaseUpdate=B:x.next=B,q.lastBaseUpdate=E))}if(c!==null){var X=o.baseState;m=0,q=B=E=null,x=c;do{var O=x.lane&-536870913,_=O!==x.lane;if(_?(Et&O)===O:(l&O)===O){O!==0&&O===Sa&&(bc=!0),q!==null&&(q=q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var it=t,ct=x;O=e;var Lt=i;switch(ct.tag){case 1:if(it=ct.payload,typeof it=="function"){X=it.call(Lt,X,O);break t}X=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=ct.payload,O=typeof it=="function"?it.call(Lt,X,O):it,O==null)break t;X=v({},X,O);break t;case 2:In=!0}}O=x.callback,O!==null&&(t.flags|=64,_&&(t.flags|=8192),_=o.callbacks,_===null?o.callbacks=[O]:_.push(O))}else _={lane:O,tag:x.tag,payload:x.payload,callback:x.callback,next:null},q===null?(B=q=_,E=X):q=q.next=_,m|=O;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;_=x,x=_.next,_.next=null,o.lastBaseUpdate=_,o.shared.pending=null}}while(!0);q===null&&(E=X),o.baseState=E,o.firstBaseUpdate=B,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),ii|=m,t.lanes=m,t.memoizedState=X}}function K0(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function F0(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)K0(i[t],e)}var Ma=M(null),ir=M(0);function Q0(t,e){t=Ln,I(ir,t),I(Ma,e),Ln=t|e.baseLanes}function Sc(){I(ir,Ln),I(Ma,Ma.current)}function xc(){Ln=ir.current,N(Ma),N(ir)}var Le=M(null),Je=null;function $n(t){var e=t.alternate;I(It,It.current&1),I(Le,t),Je===null&&(e===null||Ma.current!==null||e.memoizedState!==null)&&(Je=t)}function Tc(t){I(It,It.current),I(Le,t),Je===null&&(Je=t)}function Z0(t){t.tag===22?(I(It,It.current),I(Le,t),Je===null&&(Je=t)):ti()}function ti(){I(It,It.current),I(Le,Le.current)}function Ve(t){N(Le),Je===t&&(Je=null),N(It)}var It=M(0);function ar(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Rf(i)||jf(i)))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 Cn=0,vt=null,Bt=null,te=null,lr=!1,Aa=!1,Ni=!1,sr=0,Ol=0,Ca=null,LA=0;function Qt(){throw Error(u(321))}function Ec(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Be(t[i],e[i]))return!1;return!0}function Mc(t,e,i,l,o,c){return Cn=c,vt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?By:_c,Ni=!1,c=i(l,o),Ni=!1,Aa&&(c=J0(e,i,l,o)),I0(t),c}function I0(t){D.H=Nl;var e=Bt!==null&&Bt.next!==null;if(Cn=0,te=Bt=vt=null,lr=!1,Ol=0,Ca=null,e)throw Error(u(300));t===null||ee||(t=t.dependencies,t!==null&&Is(t)&&(ee=!0))}function J0(t,e,i,l){vt=t;var o=0;do{if(Aa&&(Ca=null),Ol=0,Aa=!1,25<=o)throw Error(u(301));if(o+=1,te=Bt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Oy,c=e(i,l)}while(Aa);return c}function VA(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?Ll(e):e,t=t.useState()[0],(Bt!==null?Bt.memoizedState:null)!==t&&(vt.flags|=1024),e}function Ac(){var t=sr!==0;return sr=0,t}function Cc(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function wc(t){if(lr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}lr=!1}Cn=0,te=Bt=vt=null,Aa=!1,Ol=sr=0,Ca=null}function be(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?vt.memoizedState=te=t:te=te.next=t,te}function Jt(){if(Bt===null){var t=vt.alternate;t=t!==null?t.memoizedState:null}else t=Bt.next;var e=te===null?vt.memoizedState:te.next;if(e!==null)te=e,Bt=t;else{if(t===null)throw vt.alternate===null?Error(u(467)):Error(u(310));Bt=t,t={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},te===null?vt.memoizedState=te=t:te=te.next=t}return te}function rr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ll(t){var e=Ol;return Ol+=1,Ca===null&&(Ca=[]),t=G0(Ca,t,e),e=vt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?By:_c),t}function or(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ll(t);if(t.$$typeof===K)return de(t)}throw Error(u(438,String(t)))}function Dc(t){var e=null,i=vt.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=vt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=rr(),vt.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),l=0;l<t;l++)i[l]=pt;return e.index++,i}function wn(t,e){return typeof e=="function"?e(t):e}function ur(t){var e=Jt();return Rc(e,Bt,t)}function Rc(t,e,i){var l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=i;var o=t.baseQueue,c=l.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}e.baseQueue=o=c,l.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var x=m=null,E=null,B=e,q=!1;do{var X=B.lane&-536870913;if(X!==B.lane?(Et&X)===X:(Cn&X)===X){var O=B.revertLane;if(O===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),X===Sa&&(q=!0);else if((Cn&O)===O){B=B.next,O===Sa&&(q=!0);continue}else X={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},E===null?(x=E=X,m=c):E=E.next=X,vt.lanes|=O,ii|=O;X=B.action,Ni&&i(c,X),c=B.hasEagerState?B.eagerState:i(c,X)}else O={lane:X,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},E===null?(x=E=O,m=c):E=E.next=O,vt.lanes|=X,ii|=X;B=B.next}while(B!==null&&B!==e);if(E===null?m=c:E.next=x,!Be(c,t.memoizedState)&&(ee=!0,q&&(i=xa,i!==null)))throw i;t.memoizedState=c,t.baseState=m,t.baseQueue=E,l.lastRenderedState=c}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function jc(t){var e=Jt(),i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=t;var l=i.dispatch,o=i.pending,c=e.memoizedState;if(o!==null){i.pending=null;var m=o=o.next;do c=t(c,m.action),m=m.next;while(m!==o);Be(c,e.memoizedState)||(ee=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function W0(t,e,i){var l=vt,o=Jt(),c=At;if(c){if(i===void 0)throw Error(u(407));i=i()}else i=e();var m=!Be((Bt||o).memoizedState,i);if(m&&(o.memoizedState=i,ee=!0),o=o.queue,Oc(ey.bind(null,l,o,t),[t]),o.getSnapshot!==e||m||te!==null&&te.memoizedState.tag&1){if(l.flags|=2048,wa(9,{destroy:void 0},ty.bind(null,l,o,i,e),null),Vt===null)throw Error(u(349));c||(Cn&127)!==0||$0(l,e,i)}return i}function $0(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=vt.updateQueue,e===null?(e=rr(),vt.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function ty(t,e,i,l){e.value=i,e.getSnapshot=l,ny(e)&&iy(t)}function ey(t,e,i){return i(function(){ny(e)&&iy(t)})}function ny(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Be(t,i)}catch{return!0}}function iy(t){var e=wi(t,2);e!==null&&we(e,t,2)}function zc(t){var e=be();if(typeof t=="function"){var i=t;if(t=i(),Ni){qn(!0);try{i()}finally{qn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:t},e}function ay(t,e,i,l){return t.baseState=i,Rc(t,Bt,typeof l=="function"?l:wn)}function NA(t,e,i,l,o){if(dr(t))throw Error(u(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};D.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,ly(e,c)):(c.next=i.next,e.pending=i.next=c)}}function ly(t,e){var i=e.action,l=e.payload,o=t.state;if(e.isTransition){var c=D.T,m={};D.T=m;try{var x=i(o,l),E=D.S;E!==null&&E(m,x),sy(t,e,x)}catch(B){Bc(t,e,B)}finally{c!==null&&m.types!==null&&(c.types=m.types),D.T=c}}else try{c=i(o,l),sy(t,e,c)}catch(B){Bc(t,e,B)}}function sy(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){ry(t,e,l)},function(l){return Bc(t,e,l)}):ry(t,e,i)}function ry(t,e,i){e.status="fulfilled",e.value=i,oy(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,ly(t,i)))}function Bc(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,oy(e),e=e.next;while(e!==l)}t.action=null}function oy(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function uy(t,e){return e}function cy(t,e){if(At){var i=Vt.formState;if(i!==null){t:{var l=vt;if(At){if(_t){e:{for(var o=_t,c=Ie;o.nodeType!==8;){if(!c){o=null;break e}if(o=We(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){_t=We(o.nextSibling),l=o.data==="F!";break t}}Qn(l)}l=!1}l&&(e=i[0])}}return i=be(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uy,lastRenderedState:e},i.queue=l,i=Ry.bind(null,vt,l),l.dispatch=i,l=zc(!1),c=Hc.bind(null,vt,!1,l.queue),l=be(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,i=NA.bind(null,vt,o,c,i),o.dispatch=i,l.memoizedState=t,[e,i,!1]}function fy(t){var e=Jt();return dy(e,Bt,t)}function dy(t,e,i){if(e=Rc(t,e,uy)[0],t=ur(wn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ll(e)}catch(m){throw m===Ta?$s:m}else l=e;e=Jt();var o=e.queue,c=o.dispatch;return i!==e.memoizedState&&(vt.flags|=2048,wa(9,{destroy:void 0},UA.bind(null,o,i),null)),[l,c,t]}function UA(t,e){t.action=e}function hy(t){var e=Jt(),i=Bt;if(i!==null)return dy(e,i,t);Jt(),e=e.memoizedState,i=Jt();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function wa(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=vt.updateQueue,e===null&&(e=rr(),vt.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,e.lastEffect=t),t}function my(){return Jt().memoizedState}function cr(t,e,i,l){var o=be();vt.flags|=t,o.memoizedState=wa(1|e,{destroy:void 0},i,l===void 0?null:l)}function fr(t,e,i,l){var o=Jt();l=l===void 0?null:l;var c=o.memoizedState.inst;Bt!==null&&l!==null&&Ec(l,Bt.memoizedState.deps)?o.memoizedState=wa(e,c,i,l):(vt.flags|=t,o.memoizedState=wa(1|e,c,i,l))}function py(t,e){cr(8390656,8,t,e)}function Oc(t,e){fr(2048,8,t,e)}function HA(t){vt.flags|=4;var e=vt.updateQueue;if(e===null)e=rr(),vt.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function yy(t){var e=Jt().memoizedState;return HA({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function gy(t,e){return fr(4,2,t,e)}function vy(t,e){return fr(4,4,t,e)}function by(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Sy(t,e,i){i=i!=null?i.concat([t]):null,fr(4,4,by.bind(null,e,t),i)}function Lc(){}function xy(t,e){var i=Jt();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&Ec(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function Ty(t,e){var i=Jt();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&Ec(e,l[1]))return l[0];if(l=t(),Ni){qn(!0);try{t()}finally{qn(!1)}}return i.memoizedState=[l,e],l}function Vc(t,e,i){return i===void 0||(Cn&1073741824)!==0&&(Et&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Eg(),vt.lanes|=t,ii|=t,i)}function Ey(t,e,i,l){return Be(i,e)?i:Ma.current!==null?(t=Vc(t,i,l),Be(t,e)||(ee=!0),t):(Cn&42)===0||(Cn&1073741824)!==0&&(Et&261930)===0?(ee=!0,t.memoizedState=i):(t=Eg(),vt.lanes|=t,ii|=t,e)}function My(t,e,i,l,o){var c=G.p;G.p=c!==0&&8>c?c:8;var m=D.T,x={};D.T=x,Hc(t,!1,e,i);try{var E=o(),B=D.S;if(B!==null&&B(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=OA(E,l);Vl(t,e,q,He(t))}else Vl(t,e,l,He(t))}catch(X){Vl(t,e,{then:function(){},status:"rejected",reason:X},He())}finally{G.p=c,m!==null&&x.types!==null&&(m.types=x.types),D.T=m}}function _A(){}function Nc(t,e,i,l){if(t.tag!==5)throw Error(u(476));var o=Ay(t).queue;My(t,o,e,$,i===null?_A:function(){return Cy(t),i(l)})}function Ay(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:$},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Cy(t){var e=Ay(t);e.next===null&&(e=t.alternate.memoizedState),Vl(t,e.next.queue,{},He())}function Uc(){return de(Wl)}function wy(){return Jt().memoizedState}function Dy(){return Jt().memoizedState}function kA(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=He();t=Jn(i);var l=Wn(e,t,i);l!==null&&(we(l,e,i),jl(l,e,i)),e={cache:dc()},t.payload=e;return}e=e.return}}function GA(t,e,i){var l=He();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},dr(t)?jy(e,i):(i=ec(t,e,i,l),i!==null&&(we(i,t,l),zy(i,e,l)))}function Ry(t,e,i){var l=He();Vl(t,e,i,l)}function Vl(t,e,i,l){var o={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(dr(t))jy(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var m=e.lastRenderedState,x=c(m,i);if(o.hasEagerState=!0,o.eagerState=x,Be(x,m))return Ks(t,e,o,0),Vt===null&&Xs(),!1}catch{}finally{}if(i=ec(t,e,o,l),i!==null)return we(i,t,l),zy(i,e,l),!0}return!1}function Hc(t,e,i,l){if(l={lane:2,revertLane:gf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},dr(t)){if(e)throw Error(u(479))}else e=ec(t,i,l,2),e!==null&&we(e,t,2)}function dr(t){var e=t.alternate;return t===vt||e!==null&&e===vt}function jy(t,e){Aa=lr=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function zy(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Np(t,i)}}var Nl={readContext:de,use:or,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt};Nl.useEffectEvent=Qt;var By={readContext:de,use:or,useCallback:function(t,e){return be().memoizedState=[t,e===void 0?null:e],t},useContext:de,useEffect:py,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,cr(4194308,4,by.bind(null,e,t),i)},useLayoutEffect:function(t,e){return cr(4194308,4,t,e)},useInsertionEffect:function(t,e){cr(4,2,t,e)},useMemo:function(t,e){var i=be();e=e===void 0?null:e;var l=t();if(Ni){qn(!0);try{t()}finally{qn(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=be();if(i!==void 0){var o=i(e);if(Ni){qn(!0);try{i(e)}finally{qn(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=GA.bind(null,vt,t),[l.memoizedState,t]},useRef:function(t){var e=be();return t={current:t},e.memoizedState=t},useState:function(t){t=zc(t);var e=t.queue,i=Ry.bind(null,vt,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:Lc,useDeferredValue:function(t,e){var i=be();return Vc(i,t,e)},useTransition:function(){var t=zc(!1);return t=My.bind(null,vt,t.queue,!0,!1),be().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=vt,o=be();if(At){if(i===void 0)throw Error(u(407));i=i()}else{if(i=e(),Vt===null)throw Error(u(349));(Et&127)!==0||$0(l,e,i)}o.memoizedState=i;var c={value:i,getSnapshot:e};return o.queue=c,py(ey.bind(null,l,c,t),[t]),l.flags|=2048,wa(9,{destroy:void 0},ty.bind(null,l,c,i,e),null),i},useId:function(){var t=be(),e=Vt.identifierPrefix;if(At){var i=hn,l=dn;i=(l&~(1<<32-ze(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=sr++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=LA++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Uc,useFormState:cy,useActionState:cy,useOptimistic:function(t){var e=be();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Hc.bind(null,vt,!0,i),i.dispatch=e,[t,e]},useMemoCache:Dc,useCacheRefresh:function(){return be().memoizedState=kA.bind(null,vt)},useEffectEvent:function(t){var e=be(),i={impl:t};return e.memoizedState=i,function(){if((Dt&2)!==0)throw Error(u(440));return i.impl.apply(void 0,arguments)}}},_c={readContext:de,use:or,useCallback:xy,useContext:de,useEffect:Oc,useImperativeHandle:Sy,useInsertionEffect:gy,useLayoutEffect:vy,useMemo:Ty,useReducer:ur,useRef:my,useState:function(){return ur(wn)},useDebugValue:Lc,useDeferredValue:function(t,e){var i=Jt();return Ey(i,Bt.memoizedState,t,e)},useTransition:function(){var t=ur(wn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:Ll(t),e]},useSyncExternalStore:W0,useId:wy,useHostTransitionStatus:Uc,useFormState:fy,useActionState:fy,useOptimistic:function(t,e){var i=Jt();return ay(i,Bt,t,e)},useMemoCache:Dc,useCacheRefresh:Dy};_c.useEffectEvent=yy;var Oy={readContext:de,use:or,useCallback:xy,useContext:de,useEffect:Oc,useImperativeHandle:Sy,useInsertionEffect:gy,useLayoutEffect:vy,useMemo:Ty,useReducer:jc,useRef:my,useState:function(){return jc(wn)},useDebugValue:Lc,useDeferredValue:function(t,e){var i=Jt();return Bt===null?Vc(i,t,e):Ey(i,Bt.memoizedState,t,e)},useTransition:function(){var t=jc(wn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:Ll(t),e]},useSyncExternalStore:W0,useId:wy,useHostTransitionStatus:Uc,useFormState:hy,useActionState:hy,useOptimistic:function(t,e){var i=Jt();return Bt!==null?ay(i,Bt,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Dc,useCacheRefresh:Dy};Oy.useEffectEvent=yy;function kc(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:v({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Gc={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=He(),o=Jn(l);o.payload=e,i!=null&&(o.callback=i),e=Wn(t,o,l),e!==null&&(we(e,t,l),jl(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=He(),o=Jn(l);o.tag=1,o.payload=e,i!=null&&(o.callback=i),e=Wn(t,o,l),e!==null&&(we(e,t,l),jl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=He(),l=Jn(i);l.tag=2,e!=null&&(l.callback=e),e=Wn(t,l,i),e!==null&&(we(e,t,i),jl(e,t,i))}};function Ly(t,e,i,l,o,c,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,m):e.prototype&&e.prototype.isPureReactComponent?!Tl(i,l)||!Tl(o,c):!0}function Vy(t,e,i,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,l),e.state!==t&&Gc.enqueueReplaceState(e,e.state,null)}function Ui(t,e){var i=e;if("ref"in e){i={};for(var l in e)l!=="ref"&&(i[l]=e[l])}if(t=t.defaultProps){i===e&&(i=v({},i));for(var o in t)i[o]===void 0&&(i[o]=t[o])}return i}function Ny(t){Ps(t)}function Uy(t){console.error(t)}function Hy(t){Ps(t)}function hr(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function _y(t,e,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yc(t,e,i){return i=Jn(i),i.tag=3,i.payload={element:null},i.callback=function(){hr(t,e)},i}function ky(t){return t=Jn(t),t.tag=3,t}function Gy(t,e,i,l){var o=i.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;t.payload=function(){return o(c)},t.callback=function(){_y(e,i,l)}}var m=i.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){_y(e,i,l),typeof o!="function"&&(ai===null?ai=new Set([this]):ai.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function YA(t,e,i,l,o){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&ba(e,i,o,!0),i=Le.current,i!==null){switch(i.tag){case 31:case 13:return Je===null?Ar():i.alternate===null&&Zt===0&&(Zt=3),i.flags&=-257,i.flags|=65536,i.lanes=o,l===tr?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),mf(t,l,o)),!1;case 22:return i.flags|=65536,l===tr?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([l]):i.add(l)),mf(t,l,o)),!1}throw Error(u(435,i.tag))}return mf(t,l,o),Ar(),!1}if(At)return e=Le.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==rc&&(t=Error(u(422),{cause:l}),Al(Fe(t,i)))):(l!==rc&&(e=Error(u(423),{cause:l}),Al(Fe(e,i))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=Fe(l,i),o=Yc(t.stateNode,l,o),vc(t,o),Zt!==4&&(Zt=2)),!1;var c=Error(u(520),{cause:l});if(c=Fe(c,i),Pl===null?Pl=[c]:Pl.push(c),Zt!==4&&(Zt=2),e===null)return!0;l=Fe(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=o&-o,i.lanes|=t,t=Yc(i.stateNode,l,t),vc(i,t),!1;case 1:if(e=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ai===null||!ai.has(c))))return i.flags|=65536,o&=-o,i.lanes|=o,o=ky(o),Gy(o,t,i,l),vc(i,o),!1}i=i.return}while(i!==null);return!1}var qc=Error(u(461)),ee=!1;function he(t,e,i,l){e.child=t===null?X0(e,null,i,l):Vi(e,t.child,i,l)}function Yy(t,e,i,l,o){i=i.render;var c=e.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return zi(e),l=Mc(t,e,i,m,c,o),x=Ac(),t!==null&&!ee?(Cc(t,e,o),Dn(t,e,o)):(At&&x&&lc(e),e.flags|=1,he(t,e,l,o),e.child)}function qy(t,e,i,l,o){if(t===null){var c=i.type;return typeof c=="function"&&!nc(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,Py(t,e,c,l,o)):(t=Qs(i.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Jc(t,o)){var m=c.memoizedProps;if(i=i.compare,i=i!==null?i:Tl,i(m,l)&&t.ref===e.ref)return Dn(t,e,o)}return e.flags|=1,t=Tn(c,l),t.ref=e.ref,t.return=e,e.child=t}function Py(t,e,i,l,o){if(t!==null){var c=t.memoizedProps;if(Tl(c,l)&&t.ref===e.ref)if(ee=!1,e.pendingProps=l=c,Jc(t,o))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Dn(t,e,o)}return Pc(t,e,i,l,o)}function Xy(t,e,i,l){var o=l.children,c=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(c=c!==null?c.baseLanes|i:i,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,e.child=null;return Ky(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ws(e,c!==null?c.cachePool:null),c!==null?Q0(e,c):Sc(),Z0(e);else return l=e.lanes=536870912,Ky(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(Ws(e,c.cachePool),Q0(e,c),ti(),e.memoizedState=null):(t!==null&&Ws(e,null),Sc(),ti());return he(t,e,o,i),e.child}function Ul(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ky(t,e,i,l,o){var c=mc();return c=c===null?null:{parent:$t._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&Ws(e,null),Sc(),Z0(e),t!==null&&ba(t,e,l,!0),e.childLanes=o,null}function mr(t,e){return e=yr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Fy(t,e,i){return Vi(e,t.child,null,i),t=mr(e,e.pendingProps),t.flags|=2,Ve(e),e.memoizedState=null,t}function qA(t,e,i){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(At){if(l.mode==="hidden")return t=mr(e,l),e.lanes=536870912,Ul(null,t);if(Tc(e),(t=_t)?(t=lv(t,Ie),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Kn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},i=j0(t),i.return=e,e.child=i,fe=e,_t=null)):t=null,t===null)throw Qn(e);return e.lanes=536870912,null}return mr(e,l)}var c=t.memoizedState;if(c!==null){var m=c.dehydrated;if(Tc(e),o)if(e.flags&256)e.flags&=-257,e=Fy(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(ee||ba(t,e,i,!1),o=(i&t.childLanes)!==0,ee||o){if(l=Vt,l!==null&&(m=Up(l,i),m!==0&&m!==c.retryLane))throw c.retryLane=m,wi(t,m),we(l,t,m),qc;Ar(),e=Fy(t,e,i)}else t=c.treeContext,_t=We(m.nextSibling),fe=e,At=!0,Fn=null,Ie=!1,t!==null&&O0(e,t),e=mr(e,l),e.flags|=4096;return e}return t=Tn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function pr(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(u(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function Pc(t,e,i,l,o){return zi(e),i=Mc(t,e,i,l,void 0,o),l=Ac(),t!==null&&!ee?(Cc(t,e,o),Dn(t,e,o)):(At&&l&&lc(e),e.flags|=1,he(t,e,i,o),e.child)}function Qy(t,e,i,l,o,c){return zi(e),e.updateQueue=null,i=J0(e,l,i,o),I0(t),l=Ac(),t!==null&&!ee?(Cc(t,e,c),Dn(t,e,c)):(At&&l&&lc(e),e.flags|=1,he(t,e,i,c),e.child)}function Zy(t,e,i,l,o){if(zi(e),e.stateNode===null){var c=pa,m=i.contextType;typeof m=="object"&&m!==null&&(c=de(m)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Gc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},yc(e),m=i.contextType,c.context=typeof m=="object"&&m!==null?de(m):pa,c.state=e.memoizedState,m=i.getDerivedStateFromProps,typeof m=="function"&&(kc(e,i,m,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Gc.enqueueReplaceState(c,c.state,null),Bl(e,l,c,o),zl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,E=Ui(i,x);c.props=E;var B=c.context,q=i.contextType;m=pa,typeof q=="object"&&q!==null&&(m=de(q));var X=i.getDerivedStateFromProps;q=typeof X=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||B!==m)&&Vy(e,c,l,m),In=!1;var O=e.memoizedState;c.state=O,Bl(e,l,c,o),zl(),B=e.memoizedState,x||O!==B||In?(typeof X=="function"&&(kc(e,i,X,l),B=e.memoizedState),(E=In||Ly(e,i,E,l,O,B,m))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=B),c.props=l,c.state=B,c.context=m,l=E):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,gc(t,e),m=e.memoizedProps,q=Ui(i,m),c.props=q,X=e.pendingProps,O=c.context,B=i.contextType,E=pa,typeof B=="object"&&B!==null&&(E=de(B)),x=i.getDerivedStateFromProps,(B=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==X||O!==E)&&Vy(e,c,l,E),In=!1,O=e.memoizedState,c.state=O,Bl(e,l,c,o),zl();var _=e.memoizedState;m!==X||O!==_||In||t!==null&&t.dependencies!==null&&Is(t.dependencies)?(typeof x=="function"&&(kc(e,i,x,l),_=e.memoizedState),(q=In||Ly(e,i,q,l,O,_,E)||t!==null&&t.dependencies!==null&&Is(t.dependencies))?(B||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,_,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,_,E)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=_),c.props=l,c.state=_,c.context=E,l=q):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,pr(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Vi(e,t.child,null,o),e.child=Vi(e,null,i,o)):he(t,e,i,o),e.memoizedState=c.state,t=e.child):t=Dn(t,e,o),t}function Iy(t,e,i,l){return Ri(),e.flags|=256,he(t,e,i,l),e.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(t){return{baseLanes:t,cachePool:_0()}}function Fc(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Ue),t}function Jy(t,e,i){var l=e.pendingProps,o=!1,c=(e.flags&128)!==0,m;if((m=c)||(m=t!==null&&t.memoizedState===null?!1:(It.current&2)!==0),m&&(o=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(At){if(o?$n(e):ti(),(t=_t)?(t=lv(t,Ie),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Kn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},i=j0(t),i.return=e,e.child=i,fe=e,_t=null)):t=null,t===null)throw Qn(e);return jf(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,o?(ti(),o=e.mode,x=yr({mode:"hidden",children:x},o),l=Di(l,o,i,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=Kc(i),l.childLanes=Fc(t,m,i),e.memoizedState=Xc,Ul(null,l)):($n(e),Qc(e,x))}var E=t.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(c)e.flags&256?($n(e),e.flags&=-257,e=Zc(t,e,i)):e.memoizedState!==null?(ti(),e.child=t.child,e.flags|=128,e=null):(ti(),x=l.fallback,o=e.mode,l=yr({mode:"visible",children:l.children},o),x=Di(x,o,i,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,Vi(e,t.child,null,i),l=e.child,l.memoizedState=Kc(i),l.childLanes=Fc(t,m,i),e.memoizedState=Xc,e=Ul(null,l));else if($n(e),jf(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var B=m.dgst;m=B,l=Error(u(419)),l.stack="",l.digest=m,Al({value:l,source:null,stack:null}),e=Zc(t,e,i)}else if(ee||ba(t,e,i,!1),m=(i&t.childLanes)!==0,ee||m){if(m=Vt,m!==null&&(l=Up(m,i),l!==0&&l!==E.retryLane))throw E.retryLane=l,wi(t,l),we(m,t,l),qc;Rf(x)||Ar(),e=Zc(t,e,i)}else Rf(x)?(e.flags|=192,e.child=t.child,e=null):(t=E.treeContext,_t=We(x.nextSibling),fe=e,At=!0,Fn=null,Ie=!1,t!==null&&O0(e,t),e=Qc(e,l.children),e.flags|=4096);return e}return o?(ti(),x=l.fallback,o=e.mode,E=t.child,B=E.sibling,l=Tn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,B!==null?x=Tn(B,x):(x=Di(x,o,i,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Ul(null,l),l=e.child,x=t.child.memoizedState,x===null?x=Kc(i):(o=x.cachePool,o!==null?(E=$t._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=_0(),x={baseLanes:x.baseLanes|i,cachePool:o}),l.memoizedState=x,l.childLanes=Fc(t,m,i),e.memoizedState=Xc,Ul(t.child,l)):($n(e),i=t.child,t=i.sibling,i=Tn(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=i,e.memoizedState=null,i)}function Qc(t,e){return e=yr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function yr(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function Zc(t,e,i){return Vi(e,t.child,null,i),t=Qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Wy(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),cc(t.return,e,i)}function Ic(t,e,i,l,o,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:o,treeForkCount:c}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=i,m.tailMode=o,m.treeForkCount=c)}function $y(t,e,i){var l=e.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var m=It.current,x=(m&2)!==0;if(x?(m=m&1|2,e.flags|=128):m&=1,I(It,m),he(t,e,l,i),l=At?Ml:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wy(t,i,e);else if(t.tag===19)Wy(t,i,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(o){case"forwards":for(i=e.child,o=null;i!==null;)t=i.alternate,t!==null&&ar(t)===null&&(o=i),i=i.sibling;i=o,i===null?(o=e.child,e.child=null):(o=i.sibling,i.sibling=null),Ic(e,!1,o,i,c,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&ar(t)===null){e.child=o;break}t=o.sibling,o.sibling=i,i=o,o=t}Ic(e,!0,i,null,c,l);break;case"together":Ic(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Dn(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),ii|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(ba(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,i=Tn(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=Tn(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function Jc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Is(t)))}function PA(t,e,i){switch(e.tag){case 3:Ut(e,e.stateNode.containerInfo),Zn(e,$t,t.memoizedState.cache),Ri();break;case 27:case 5:ue(e);break;case 4:Ut(e,e.stateNode.containerInfo);break;case 10:Zn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Tc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?($n(e),e.flags|=128,null):(i&e.child.childLanes)!==0?Jy(t,e,i):($n(e),t=Dn(t,e,i),t!==null?t.sibling:null);$n(e);break;case 19:var o=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(ba(t,e,i,!1),l=(i&e.childLanes)!==0),o){if(l)return $y(t,e,i);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(It,It.current),l)break;return null;case 22:return e.lanes=0,Xy(t,e,i,e.pendingProps);case 24:Zn(e,$t,t.memoizedState.cache)}return Dn(t,e,i)}function tg(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!Jc(t,i)&&(e.flags&128)===0)return ee=!1,PA(t,e,i);ee=(t.flags&131072)!==0}else ee=!1,At&&(e.flags&1048576)!==0&&B0(e,Ml,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Oi(e.elementType),e.type=t,typeof t=="function")nc(t)?(l=Ui(t,l),e.tag=1,e=Zy(null,e,t,l,i)):(e.tag=0,e=Pc(null,e,t,l,i));else{if(t!=null){var o=t.$$typeof;if(o===Q){e.tag=11,e=Yy(null,e,t,l,i);break t}else if(o===k){e.tag=14,e=qy(null,e,t,l,i);break t}}throw e=lt(t)||t,Error(u(306,e,""))}}return e;case 0:return Pc(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,o=Ui(l,e.pendingProps),Zy(t,e,l,o,i);case 3:t:{if(Ut(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var c=e.memoizedState;o=c.element,gc(t,e),Bl(e,l,null,i);var m=e.memoizedState;if(l=m.cache,Zn(e,$t,l),l!==c.cache&&fc(e,[$t],i,!0),zl(),l=m.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Iy(t,e,l,i);break t}else if(l!==o){o=Fe(Error(u(424)),e),Al(o),e=Iy(t,e,l,i);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(_t=We(t.firstChild),fe=e,At=!0,Fn=null,Ie=!0,i=X0(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Ri(),l===o){e=Dn(t,e,i);break t}he(t,e,l,i)}e=e.child}return e;case 26:return pr(t,e),t===null?(i=fv(e.type,null,e.pendingProps,null))?e.memoizedState=i:At||(i=e.type,t=e.pendingProps,l=Br(W.current).createElement(i),l[ce]=e,l[xe]=t,me(l,i,t),se(l),e.stateNode=l):e.memoizedState=fv(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ue(e),t===null&&At&&(l=e.stateNode=ov(e.type,e.pendingProps,W.current),fe=e,Ie=!0,o=_t,oi(e.type)?(zf=o,_t=We(l.firstChild)):_t=o),he(t,e,e.pendingProps.children,i),pr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&At&&((o=l=_t)&&(l=S5(l,e.type,e.pendingProps,Ie),l!==null?(e.stateNode=l,fe=e,_t=We(l.firstChild),Ie=!1,o=!0):o=!1),o||Qn(e)),ue(e),o=e.type,c=e.pendingProps,m=t!==null?t.memoizedProps:null,l=c.children,Cf(o,c)?l=null:m!==null&&Cf(o,m)&&(e.flags|=32),e.memoizedState!==null&&(o=Mc(t,e,VA,null,null,i),Wl._currentValue=o),pr(t,e),he(t,e,l,i),e.child;case 6:return t===null&&At&&((t=i=_t)&&(i=x5(i,e.pendingProps,Ie),i!==null?(e.stateNode=i,fe=e,_t=null,t=!0):t=!1),t||Qn(e)),null;case 13:return Jy(t,e,i);case 4:return Ut(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Vi(e,null,l,i):he(t,e,l,i),e.child;case 11:return Yy(t,e,e.type,e.pendingProps,i);case 7:return he(t,e,e.pendingProps,i),e.child;case 8:return he(t,e,e.pendingProps.children,i),e.child;case 12:return he(t,e,e.pendingProps.children,i),e.child;case 10:return l=e.pendingProps,Zn(e,e.type,l.value),he(t,e,l.children,i),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,zi(e),o=de(o),l=l(o),e.flags|=1,he(t,e,l,i),e.child;case 14:return qy(t,e,e.type,e.pendingProps,i);case 15:return Py(t,e,e.type,e.pendingProps,i);case 19:return $y(t,e,i);case 31:return qA(t,e,i);case 22:return Xy(t,e,i,e.pendingProps);case 24:return zi(e),l=de($t),t===null?(o=mc(),o===null&&(o=Vt,c=dc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=i),o=c),e.memoizedState={parent:l,cache:o},yc(e),Zn(e,$t,o)):((t.lanes&i)!==0&&(gc(t,e),Bl(e,null,null,i),zl()),o=t.memoizedState,c=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Zn(e,$t,l)):(l=c.cache,Zn(e,$t,l),l!==o.cache&&fc(e,[$t],i,!0))),he(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Rn(t){t.flags|=4}function Wc(t,e,i,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(wg())t.flags|=8192;else throw Li=tr,pc}else t.flags&=-16777217}function eg(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!yv(e))if(wg())t.flags|=8192;else throw Li=tr,pc}function gr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Lp():536870912,t.lanes|=e,za|=e)}function Hl(t,e){if(!At)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function kt(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(e)for(var o=t.child;o!==null;)i|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)i|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=i,e}function XA(t,e,i){var l=e.pendingProps;switch(sc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(e),null;case 1:return kt(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),An($t),Rt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(va(e)?Rn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,oc())),kt(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(Rn(e),c!==null?(kt(e),eg(e,c)):(kt(e),Wc(e,o,null,l,i))):c?c!==t.memoizedState?(Rn(e),kt(e),eg(e,c)):(kt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Rn(e),kt(e),Wc(e,o,t,l,i)),null;case 27:if(cn(e),i=W.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Rn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return kt(e),null}t=tt.current,va(e)?L0(e):(t=ov(o,l,i),e.stateNode=t,Rn(e))}return kt(e),null;case 5:if(cn(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Rn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return kt(e),null}if(c=tt.current,va(e))L0(e);else{var m=Br(W.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?m.createElement(o,{is:l.is}):m.createElement(o)}}c[ce]=e,c[xe]=l;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)c.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=c;t:switch(me(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Rn(e)}}return kt(e),Wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Rn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=W.current,va(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,o=fe,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[ce]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Jg(t.nodeValue,i)),t||Qn(e,!0)}else t=Br(t).createTextNode(l),t[ce]=e,e.stateNode=t}return kt(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=va(e),i!==null){if(t===null){if(!l)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[ce]=e}else Ri(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;kt(e),t=!1}else i=oc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Ve(e),e):(Ve(e),null);if((e.flags&128)!==0)throw Error(u(558))}return kt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=va(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(u(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ce]=e}else Ri(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;kt(e),o=!1}else o=oc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Ve(e),e):(Ve(e),null)}return Ve(e),(e.flags&128)!==0?(e.lanes=i,e):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),gr(e,e.updateQueue),kt(e),null);case 4:return Rt(),t===null&&xf(e.stateNode.containerInfo),kt(e),null;case 10:return An(e.type),kt(e),null;case 19:if(N(It),l=e.memoizedState,l===null)return kt(e),null;if(o=(e.flags&128)!==0,c=l.rendering,c===null)if(o)Hl(l,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=ar(t),c!==null){for(e.flags|=128,Hl(l,!1),t=c.updateQueue,e.updateQueue=t,gr(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)R0(i,t),i=i.sibling;return I(It,It.current&1|2),At&&En(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ve()>Tr&&(e.flags|=128,o=!0,Hl(l,!1),e.lanes=4194304)}else{if(!o)if(t=ar(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,gr(e,t),Hl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!At)return kt(e),null}else 2*ve()-l.renderingStartTime>Tr&&i!==536870912&&(e.flags|=128,o=!0,Hl(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ve(),t.sibling=null,i=It.current,I(It,o?i&1|2:i&1),At&&En(e,l.treeForkCount),t):(kt(e),null);case 22:case 23:return Ve(e),xc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(i&536870912)!==0&&(e.flags&128)===0&&(kt(e),e.subtreeFlags&6&&(e.flags|=8192)):kt(e),i=e.updateQueue,i!==null&&gr(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==i&&(e.flags|=2048),t!==null&&N(Bi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),An($t),kt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function KA(t,e){switch(sc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return An($t),Rt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return cn(e),null;case 31:if(e.memoizedState!==null){if(Ve(e),e.alternate===null)throw Error(u(340));Ri()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ve(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Ri()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(It),null;case 4:return Rt(),null;case 10:return An(e.type),null;case 22:case 23:return Ve(e),xc(),t!==null&&N(Bi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return An($t),null;case 25:return null;default:return null}}function ng(t,e){switch(sc(e),e.tag){case 3:An($t),Rt();break;case 26:case 27:case 5:cn(e);break;case 4:Rt();break;case 31:e.memoizedState!==null&&Ve(e);break;case 13:Ve(e);break;case 19:N(It);break;case 10:An(e.type);break;case 22:case 23:Ve(e),xc(),t!==null&&N(Bi);break;case 24:An($t)}}function _l(t,e){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var o=l.next;i=o;do{if((i.tag&t)===t){l=void 0;var c=i.create,m=i.inst;l=c(),m.destroy=l}i=i.next}while(i!==o)}}catch(x){zt(e,e.return,x)}}function ei(t,e,i){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&t)===t){var m=l.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,o=e;var E=i,B=x;try{B()}catch(q){zt(o,E,q)}}}l=l.next}while(l!==c)}}catch(q){zt(e,e.return,q)}}function ig(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{F0(e,i)}catch(l){zt(t,t.return,l)}}}function ag(t,e,i){i.props=Ui(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){zt(t,e,l)}}function kl(t,e){try{var i=t.ref;if(i!==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 i=="function"?t.refCleanup=i(l):i.current=l}}catch(o){zt(t,e,o)}}function mn(t,e){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(o){zt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(o){zt(t,e,o)}else i.current=null}function lg(t){var e=t.type,i=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break t;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(o){zt(t,t.return,o)}}function $c(t,e,i){try{var l=t.stateNode;m5(l,t.type,i,e),l[xe]=e}catch(o){zt(t,t.return,o)}}function sg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oi(t.type)||t.tag===4}function tf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||sg(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&&oi(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 ef(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=Sn));else if(l!==4&&(l===27&&oi(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(ef(t,e,i),t=t.sibling;t!==null;)ef(t,e,i),t=t.sibling}function vr(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(l!==4&&(l===27&&oi(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(vr(t,e,i),t=t.sibling;t!==null;)vr(t,e,i),t=t.sibling}function rg(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);me(e,l,i),e[ce]=t,e[xe]=i}catch(c){zt(t,t.return,c)}}var jn=!1,ne=!1,nf=!1,og=typeof WeakSet=="function"?WeakSet:Set,re=null;function FA(t,e){if(t=t.containerInfo,Mf=_r,t=S0(t),Zu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break t}var m=0,x=-1,E=-1,B=0,q=0,X=t,O=null;e:for(;;){for(var _;X!==i||o!==0&&X.nodeType!==3||(x=m+o),X!==c||l!==0&&X.nodeType!==3||(E=m+l),X.nodeType===3&&(m+=X.nodeValue.length),(_=X.firstChild)!==null;)O=X,X=_;for(;;){if(X===t)break e;if(O===i&&++B===o&&(x=m),O===c&&++q===l&&(E=m),(_=X.nextSibling)!==null)break;X=O,O=X.parentNode}X=_}i=x===-1||E===-1?null:{start:x,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(Af={focusedElem:t,selectionRange:i},_r=!1,re=e;re!==null;)if(e=re,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,re=t;else for(;re!==null;){switch(e=re,c=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(i=0;i<t.length;i++)o=t[i],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,i=e,o=c.memoizedProps,c=c.memoizedState,l=i.stateNode;try{var it=Ui(i.type,o);t=l.getSnapshotBeforeUpdate(it,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(ct){zt(i,i.return,ct)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)Df(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Df(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(u(163))}if(t=e.sibling,t!==null){t.return=e.return,re=t;break}re=e.return}}function ug(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Bn(t,i),l&4&&_l(5,i);break;case 1:if(Bn(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(m){zt(i,i.return,m)}else{var o=Ui(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){zt(i,i.return,m)}}l&64&&ig(i),l&512&&kl(i,i.return);break;case 3:if(Bn(t,i),l&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{F0(t,e)}catch(m){zt(i,i.return,m)}}break;case 27:e===null&&l&4&&rg(i);case 26:case 5:Bn(t,i),e===null&&l&4&&lg(i),l&512&&kl(i,i.return);break;case 12:Bn(t,i);break;case 31:Bn(t,i),l&4&&dg(t,i);break;case 13:Bn(t,i),l&4&&hg(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=n5.bind(null,i),T5(t,i))));break;case 22:if(l=i.memoizedState!==null||jn,!l){e=e!==null&&e.memoizedState!==null||ne,o=jn;var c=ne;jn=l,(ne=e)&&!c?On(t,i,(i.subtreeFlags&8772)!==0):Bn(t,i),jn=o,ne=c}break;case 30:break;default:Bn(t,i)}}function cg(t){var e=t.alternate;e!==null&&(t.alternate=null,cg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Bu(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 qt=null,Ee=!1;function zn(t,e,i){for(i=i.child;i!==null;)fg(t,e,i),i=i.sibling}function fg(t,e,i){if(je&&typeof je.onCommitFiberUnmount=="function")try{je.onCommitFiberUnmount(cl,i)}catch{}switch(i.tag){case 26:ne||mn(i,e),zn(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ne||mn(i,e);var l=qt,o=Ee;oi(i.type)&&(qt=i.stateNode,Ee=!1),zn(t,e,i),Zl(i.stateNode),qt=l,Ee=o;break;case 5:ne||mn(i,e);case 6:if(l=qt,o=Ee,qt=null,zn(t,e,i),qt=l,Ee=o,qt!==null)if(Ee)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(i.stateNode)}catch(c){zt(i,e,c)}else try{qt.removeChild(i.stateNode)}catch(c){zt(i,e,c)}break;case 18:qt!==null&&(Ee?(t=qt,iv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),_a(t)):iv(qt,i.stateNode));break;case 4:l=qt,o=Ee,qt=i.stateNode.containerInfo,Ee=!0,zn(t,e,i),qt=l,Ee=o;break;case 0:case 11:case 14:case 15:ei(2,i,e),ne||ei(4,i,e),zn(t,e,i);break;case 1:ne||(mn(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&ag(i,e,l)),zn(t,e,i);break;case 21:zn(t,e,i);break;case 22:ne=(l=ne)||i.memoizedState!==null,zn(t,e,i),ne=l;break;default:zn(t,e,i)}}function dg(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{_a(t)}catch(i){zt(e,e.return,i)}}}function hg(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_a(t)}catch(i){zt(e,e.return,i)}}function QA(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new og),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new og),e;default:throw Error(u(435,t.tag))}}function br(t,e){var i=QA(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var o=i5.bind(null,t,l);l.then(o,o)}})}function Me(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var o=i[l],c=t,m=e,x=m;t:for(;x!==null;){switch(x.tag){case 27:if(oi(x.type)){qt=x.stateNode,Ee=!1;break t}break;case 5:qt=x.stateNode,Ee=!1;break t;case 3:case 4:qt=x.stateNode.containerInfo,Ee=!0;break t}x=x.return}if(qt===null)throw Error(u(160));fg(c,m,o),qt=null,Ee=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)mg(e,t),e=e.sibling}var ln=null;function mg(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Me(e,t),Ae(t),l&4&&(ei(3,t,t.return),_l(3,t),ei(5,t,t.return));break;case 1:Me(e,t),Ae(t),l&512&&(ne||i===null||mn(i,i.return)),l&64&&jn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var o=ln;if(Me(e,t),Ae(t),l&512&&(ne||i===null||mn(i,i.return)),l&4){var c=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){t:{l=t.type,i=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[hl]||c[ce]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),me(c,l,i),c[ce]=t,se(c),l=c;break t;case"link":var m=mv("link","href",o).get(l+(i.href||""));if(m){for(var x=0;x<m.length;x++)if(c=m[x],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){m.splice(x,1);break e}}c=o.createElement(l),me(c,l,i),o.head.appendChild(c);break;case"meta":if(m=mv("meta","content",o).get(l+(i.content||""))){for(x=0;x<m.length;x++)if(c=m[x],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){m.splice(x,1);break e}}c=o.createElement(l),me(c,l,i),o.head.appendChild(c);break;default:throw Error(u(468,l))}c[ce]=t,se(c),l=c}t.stateNode=l}else pv(o,t.type,t.stateNode);else t.stateNode=hv(o,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?pv(o,t.type,t.stateNode):hv(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&$c(t,t.memoizedProps,i.memoizedProps)}break;case 27:Me(e,t),Ae(t),l&512&&(ne||i===null||mn(i,i.return)),i!==null&&l&4&&$c(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Me(e,t),Ae(t),l&512&&(ne||i===null||mn(i,i.return)),t.flags&32){o=t.stateNode;try{oa(o,"")}catch(it){zt(t,t.return,it)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,$c(t,o,i!==null?i.memoizedProps:o)),l&1024&&(nf=!0);break;case 6:if(Me(e,t),Ae(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(it){zt(t,t.return,it)}}break;case 3:if(Vr=null,o=ln,ln=Or(e.containerInfo),Me(e,t),ln=o,Ae(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{_a(e.containerInfo)}catch(it){zt(t,t.return,it)}nf&&(nf=!1,pg(t));break;case 4:l=ln,ln=Or(t.stateNode.containerInfo),Me(e,t),Ae(t),ln=l;break;case 12:Me(e,t),Ae(t);break;case 31:Me(e,t),Ae(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,br(t,l)));break;case 13:Me(e,t),Ae(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(xr=ve()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,br(t,l)));break;case 22:o=t.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,B=jn,q=ne;if(jn=B||o,ne=q||E,Me(e,t),ne=q,jn=B,Ae(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(i===null||E||jn||ne||Hi(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){E=i=e;try{if(c=E.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var X=E.memoizedProps.style,O=X!=null&&X.hasOwnProperty("display")?X.display:null;x.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(it){zt(E,E.return,it)}}}else if(e.tag===6){if(i===null){E=e;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(it){zt(E,E.return,it)}}}else if(e.tag===18){if(i===null){E=e;try{var _=E.stateNode;o?av(_,!0):av(E.stateNode,!1)}catch(it){zt(E,E.return,it)}}}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;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,br(t,i))));break;case 19:Me(e,t),Ae(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,br(t,l)));break;case 30:break;case 21:break;default:Me(e,t),Ae(t)}}function Ae(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(sg(l)){i=l;break}l=l.return}if(i==null)throw Error(u(160));switch(i.tag){case 27:var o=i.stateNode,c=tf(t);vr(t,c,o);break;case 5:var m=i.stateNode;i.flags&32&&(oa(m,""),i.flags&=-33);var x=tf(t);vr(t,x,m);break;case 3:case 4:var E=i.stateNode.containerInfo,B=tf(t);ef(t,B,E);break;default:throw Error(u(161))}}catch(q){zt(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function pg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;pg(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;)ug(t,e.alternate,e),e=e.sibling}function Hi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ei(4,e,e.return),Hi(e);break;case 1:mn(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&ag(e,e.return,i),Hi(e);break;case 27:Zl(e.stateNode);case 26:case 5:mn(e,e.return),Hi(e);break;case 22:e.memoizedState===null&&Hi(e);break;case 30:Hi(e);break;default:Hi(e)}t=t.sibling}}function On(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,c=e,m=c.flags;switch(c.tag){case 0:case 11:case 15:On(o,c,i),_l(4,c);break;case 1:if(On(o,c,i),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){zt(l,l.return,B)}if(l=c,o=l.updateQueue,o!==null){var x=l.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)K0(E[o],x)}catch(B){zt(l,l.return,B)}}i&&m&64&&ig(c),kl(c,c.return);break;case 27:rg(c);case 26:case 5:On(o,c,i),i&&l===null&&m&4&&lg(c),kl(c,c.return);break;case 12:On(o,c,i);break;case 31:On(o,c,i),i&&m&4&&dg(o,c);break;case 13:On(o,c,i),i&&m&4&&hg(o,c);break;case 22:c.memoizedState===null&&On(o,c,i),kl(c,c.return);break;case 30:break;default:On(o,c,i)}e=e.sibling}}function af(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Cl(i))}function lf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cl(t))}function sn(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yg(t,e,i,l),e=e.sibling}function yg(t,e,i,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:sn(t,e,i,l),o&2048&&_l(9,e);break;case 1:sn(t,e,i,l);break;case 3:sn(t,e,i,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cl(t)));break;case 12:if(o&2048){sn(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,m=c.id,x=c.onPostCommit;typeof x=="function"&&x(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(E){zt(e,e.return,E)}}else sn(t,e,i,l);break;case 31:sn(t,e,i,l);break;case 13:sn(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,m=e.alternate,e.memoizedState!==null?c._visibility&2?sn(t,e,i,l):Gl(t,e):c._visibility&2?sn(t,e,i,l):(c._visibility|=2,Da(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&af(m,e);break;case 24:sn(t,e,i,l),o&2048&&lf(e.alternate,e);break;default:sn(t,e,i,l)}}function Da(t,e,i,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,m=e,x=i,E=l,B=m.flags;switch(m.tag){case 0:case 11:case 15:Da(c,m,x,E,o),_l(8,m);break;case 23:break;case 22:var q=m.stateNode;m.memoizedState!==null?q._visibility&2?Da(c,m,x,E,o):Gl(c,m):(q._visibility|=2,Da(c,m,x,E,o)),o&&B&2048&&af(m.alternate,m);break;case 24:Da(c,m,x,E,o),o&&B&2048&&lf(m.alternate,m);break;default:Da(c,m,x,E,o)}e=e.sibling}}function Gl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,l=e,o=l.flags;switch(l.tag){case 22:Gl(i,l),o&2048&&af(l.alternate,l);break;case 24:Gl(i,l),o&2048&&lf(l.alternate,l);break;default:Gl(i,l)}e=e.sibling}}var Yl=8192;function Ra(t,e,i){if(t.subtreeFlags&Yl)for(t=t.child;t!==null;)gg(t,e,i),t=t.sibling}function gg(t,e,i){switch(t.tag){case 26:Ra(t,e,i),t.flags&Yl&&t.memoizedState!==null&&L5(i,ln,t.memoizedState,t.memoizedProps);break;case 5:Ra(t,e,i);break;case 3:case 4:var l=ln;ln=Or(t.stateNode.containerInfo),Ra(t,e,i),ln=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Yl,Yl=16777216,Ra(t,e,i),Yl=l):Ra(t,e,i));break;default:Ra(t,e,i)}}function vg(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 ql(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];re=l,Sg(l,t)}vg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bg(t),t=t.sibling}function bg(t){switch(t.tag){case 0:case 11:case 15:ql(t),t.flags&2048&&ei(9,t,t.return);break;case 3:ql(t);break;case 12:ql(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Sr(t)):ql(t);break;default:ql(t)}}function Sr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];re=l,Sg(l,t)}vg(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ei(8,e,e.return),Sr(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,Sr(e));break;default:Sr(e)}t=t.sibling}}function Sg(t,e){for(;re!==null;){var i=re;switch(i.tag){case 0:case 11:case 15:ei(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Cl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,re=l;else t:for(i=t;re!==null;){l=re;var o=l.sibling,c=l.return;if(cg(l),l===i){re=null;break t}if(o!==null){o.return=c,re=o;break t}re=c}}}var ZA={getCacheForType:function(t){var e=de($t),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return de($t).controller.signal}},IA=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Vt=null,xt=null,Et=0,jt=0,Ne=null,ni=!1,ja=!1,sf=!1,Ln=0,Zt=0,ii=0,_i=0,rf=0,Ue=0,za=0,Pl=null,Ce=null,of=!1,xr=0,xg=0,Tr=1/0,Er=null,ai=null,le=0,li=null,Ba=null,Vn=0,uf=0,cf=null,Tg=null,Xl=0,ff=null;function He(){return(Dt&2)!==0&&Et!==0?Et&-Et:D.T!==null?gf():Hp()}function Eg(){if(Ue===0)if((Et&536870912)===0||At){var t=zs;zs<<=1,(zs&3932160)===0&&(zs=262144),Ue=t}else Ue=536870912;return t=Le.current,t!==null&&(t.flags|=32),Ue}function we(t,e,i){(t===Vt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(Oa(t,0),si(t,Et,Ue,!1)),dl(t,i),((Dt&2)===0||t!==Vt)&&(t===Vt&&((Dt&2)===0&&(_i|=i),Zt===4&&si(t,Et,Ue,!1)),pn(t))}function Mg(t,e,i){if((Dt&6)!==0)throw Error(u(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||fl(t,e),o=l?$A(t,e):hf(t,e,!0),c=l;do{if(o===0){ja&&!l&&si(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!JA(i)){o=hf(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var x=t;o=Pl;var E=x.current.memoizedState.isDehydrated;if(E&&(Oa(x,m).flags|=256),m=hf(x,m,!1),m!==2){if(sf&&!E){x.errorRecoveryDisabledLanes|=c,_i|=c,o=4;break t}c=Ce,Ce=o,c!==null&&(Ce===null?Ce=c:Ce.push.apply(Ce,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Oa(t,0),si(t,e,0,!0);break}t:{switch(l=t,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:si(l,e,Ue,!ni);break t;case 2:Ce=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(o=xr+300-ve(),10<o)){if(si(l,e,Ue,!ni),Os(l,0,!0)!==0)break t;Vn=e,l.timeoutHandle=ev(Ag.bind(null,l,i,Ce,Er,of,e,Ue,_i,za,ni,c,"Throttled",-0,0),o);break t}Ag(l,i,Ce,Er,of,e,Ue,_i,za,ni,c,null,-0,0)}}break}while(!0);pn(t)}function Ag(t,e,i,l,o,c,m,x,E,B,q,X,O,_){if(t.timeoutHandle=-1,X=e.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},gg(e,c,X);var it=(c&62914560)===c?xr-ve():(c&4194048)===c?xg-ve():0;if(it=V5(X,it),it!==null){Vn=c,t.cancelPendingCommit=it(Og.bind(null,t,e,c,i,l,o,m,x,E,q,X,null,O,_)),si(t,c,m,!B);return}}Og(t,e,c,i,l,o,m,x,E)}function JA(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var o=i[l],c=o.getSnapshot;o=o.value;try{if(!Be(c(),o))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;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 si(t,e,i,l){e&=~rf,e&=~_i,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var c=31-ze(o),m=1<<c;l[c]=-1,o&=~m}i!==0&&Vp(t,i,e)}function Mr(){return(Dt&6)===0?(Kl(0),!1):!0}function df(){if(xt!==null){if(jt===0)var t=xt.return;else t=xt,Mn=ji=null,wc(t),Ea=null,Dl=0,t=xt;for(;t!==null;)ng(t.alternate,t),t=t.return;xt=null}}function Oa(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,g5(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Vn=0,df(),Vt=t,xt=i=Tn(t.current,null),Et=e,jt=0,Ne=null,ni=!1,ja=fl(t,e),sf=!1,za=Ue=rf=_i=ii=Zt=0,Ce=Pl=null,of=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-ze(l),c=1<<o;e|=t[o],l&=~c}return Ln=e,Xs(),i}function Cg(t,e){vt=null,D.H=Nl,e===Ta||e===$s?(e=Y0(),jt=3):e===pc?(e=Y0(),jt=4):jt=e===qc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ne=e,xt===null&&(Zt=1,hr(t,Fe(e,t.current)))}function wg(){var t=Le.current;return t===null?!0:(Et&4194048)===Et?Je===null:(Et&62914560)===Et||(Et&536870912)!==0?t===Je:!1}function Dg(){var t=D.H;return D.H=Nl,t===null?Nl:t}function Rg(){var t=D.A;return D.A=ZA,t}function Ar(){Zt=4,ni||(Et&4194048)!==Et&&Le.current!==null||(ja=!0),(ii&134217727)===0&&(_i&134217727)===0||Vt===null||si(Vt,Et,Ue,!1)}function hf(t,e,i){var l=Dt;Dt|=2;var o=Dg(),c=Rg();(Vt!==t||Et!==e)&&(Er=null,Oa(t,e)),e=!1;var m=Zt;t:do try{if(jt!==0&&xt!==null){var x=xt,E=Ne;switch(jt){case 8:df(),m=6;break t;case 3:case 2:case 9:case 6:Le.current===null&&(e=!0);var B=jt;if(jt=0,Ne=null,La(t,x,E,B),i&&ja){m=0;break t}break;default:B=jt,jt=0,Ne=null,La(t,x,E,B)}}WA(),m=Zt;break}catch(q){Cg(t,q)}while(!0);return e&&t.shellSuspendCounter++,Mn=ji=null,Dt=l,D.H=o,D.A=c,xt===null&&(Vt=null,Et=0,Xs()),m}function WA(){for(;xt!==null;)jg(xt)}function $A(t,e){var i=Dt;Dt|=2;var l=Dg(),o=Rg();Vt!==t||Et!==e?(Er=null,Tr=ve()+500,Oa(t,e)):ja=fl(t,e);t:do try{if(jt!==0&&xt!==null){e=xt;var c=Ne;e:switch(jt){case 1:jt=0,Ne=null,La(t,e,c,1);break;case 2:case 9:if(k0(c)){jt=0,Ne=null,zg(e);break}e=function(){jt!==2&&jt!==9||Vt!==t||(jt=7),pn(t)},c.then(e,e);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:k0(c)?(jt=0,Ne=null,zg(e)):(jt=0,Ne=null,La(t,e,c,7));break;case 5:var m=null;switch(xt.tag){case 26:m=xt.memoizedState;case 5:case 27:var x=xt;if(m?yv(m):x.stateNode.complete){jt=0,Ne=null;var E=x.sibling;if(E!==null)xt=E;else{var B=x.return;B!==null?(xt=B,Cr(B)):xt=null}break e}}jt=0,Ne=null,La(t,e,c,5);break;case 6:jt=0,Ne=null,La(t,e,c,6);break;case 8:df(),Zt=6;break t;default:throw Error(u(462))}}t5();break}catch(q){Cg(t,q)}while(!0);return Mn=ji=null,D.H=l,D.A=o,Dt=i,xt!==null?0:(Vt=null,Et=0,Xs(),Zt)}function t5(){for(;xt!==null&&!Cs();)jg(xt)}function jg(t){var e=tg(t.alternate,t,Ln);t.memoizedProps=t.pendingProps,e===null?Cr(t):xt=e}function zg(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=Qy(i,e,e.pendingProps,e.type,void 0,Et);break;case 11:e=Qy(i,e,e.pendingProps,e.type.render,e.ref,Et);break;case 5:wc(e);default:ng(i,e),e=xt=R0(e,Ln),e=tg(i,e,Ln)}t.memoizedProps=t.pendingProps,e===null?Cr(t):xt=e}function La(t,e,i,l){Mn=ji=null,wc(e),Ea=null,Dl=0;var o=e.return;try{if(YA(t,o,e,i,Et)){Zt=1,hr(t,Fe(i,t.current)),xt=null;return}}catch(c){if(o!==null)throw xt=o,c;Zt=1,hr(t,Fe(i,t.current)),xt=null;return}e.flags&32768?(At||l===1?t=!0:ja||(Et&536870912)!==0?t=!1:(ni=t=!0,(l===2||l===9||l===3||l===6)&&(l=Le.current,l!==null&&l.tag===13&&(l.flags|=16384))),Bg(e,t)):Cr(e)}function Cr(t){var e=t;do{if((e.flags&32768)!==0){Bg(e,ni);return}t=e.return;var i=XA(e.alternate,e,Ln);if(i!==null){xt=i;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Zt===0&&(Zt=5)}function Bg(t,e){do{var i=KA(t.alternate,t);if(i!==null){i.flags&=32767,xt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=i}while(t!==null);Zt=6,xt=null}function Og(t,e,i,l,o,c,m,x,E){t.cancelPendingCommit=null;do wr();while(le!==0);if((Dt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(c=e.lanes|e.childLanes,c|=tc,OM(t,i,c,m,x,E),t===Vt&&(xt=Vt=null,Et=0),Ba=e,li=t,Vn=i,uf=c,cf=o,Tg=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,a5(Rs,function(){return Hg(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,o=G.p,G.p=2,m=Dt,Dt|=4;try{FA(t,e,i)}finally{Dt=m,G.p=o,D.T=l}}le=1,Lg(),Vg(),Ng()}}function Lg(){if(le===1){le=0;var t=li,e=Ba,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var l=G.p;G.p=2;var o=Dt;Dt|=4;try{mg(e,t);var c=Af,m=S0(t.containerInfo),x=c.focusedElem,E=c.selectionRange;if(m!==x&&x&&x.ownerDocument&&b0(x.ownerDocument.documentElement,x)){if(E!==null&&Zu(x)){var B=E.start,q=E.end;if(q===void 0&&(q=B),"selectionStart"in x)x.selectionStart=B,x.selectionEnd=Math.min(q,x.value.length);else{var X=x.ownerDocument||document,O=X&&X.defaultView||window;if(O.getSelection){var _=O.getSelection(),it=x.textContent.length,ct=Math.min(E.start,it),Lt=E.end===void 0?ct:Math.min(E.end,it);!_.extend&&ct>Lt&&(m=Lt,Lt=ct,ct=m);var R=v0(x,ct),w=v0(x,Lt);if(R&&w&&(_.rangeCount!==1||_.anchorNode!==R.node||_.anchorOffset!==R.offset||_.focusNode!==w.node||_.focusOffset!==w.offset)){var z=X.createRange();z.setStart(R.node,R.offset),_.removeAllRanges(),ct>Lt?(_.addRange(z),_.extend(w.node,w.offset)):(z.setEnd(w.node,w.offset),_.addRange(z))}}}}for(X=[],_=x;_=_.parentNode;)_.nodeType===1&&X.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<X.length;x++){var P=X[x];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}_r=!!Mf,Af=Mf=null}finally{Dt=o,G.p=l,D.T=i}}t.current=e,le=2}}function Vg(){if(le===2){le=0;var t=li,e=Ba,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var l=G.p;G.p=2;var o=Dt;Dt|=4;try{ug(t,e.alternate,e)}finally{Dt=o,G.p=l,D.T=i}}le=3}}function Ng(){if(le===4||le===3){le=0,ws();var t=li,e=Ba,i=Vn,l=Tg;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?le=5:(le=0,Ba=li=null,Ug(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(ai=null),ju(i),e=e.stateNode,je&&typeof je.onCommitFiberRoot=="function")try{je.onCommitFiberRoot(cl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=D.T,o=G.p,G.p=2,D.T=null;try{for(var c=t.onRecoverableError,m=0;m<l.length;m++){var x=l[m];c(x.value,{componentStack:x.stack})}}finally{D.T=e,G.p=o}}(Vn&3)!==0&&wr(),pn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===ff?Xl++:(Xl=0,ff=t):Xl=0,Kl(0)}}function Ug(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Cl(e)))}function wr(){return Lg(),Vg(),Ng(),Hg()}function Hg(){if(le!==5)return!1;var t=li,e=uf;uf=0;var i=ju(Vn),l=D.T,o=G.p;try{G.p=32>i?32:i,D.T=null,i=cf,cf=null;var c=li,m=Vn;if(le=0,Ba=li=null,Vn=0,(Dt&6)!==0)throw Error(u(331));var x=Dt;if(Dt|=4,bg(c.current),yg(c,c.current,m,i),Dt=x,Kl(0,!1),je&&typeof je.onPostCommitFiberRoot=="function")try{je.onPostCommitFiberRoot(cl,c)}catch{}return!0}finally{G.p=o,D.T=l,Ug(t,e)}}function _g(t,e,i){e=Fe(i,e),e=Yc(t.stateNode,e,2),t=Wn(t,e,2),t!==null&&(dl(t,2),pn(t))}function zt(t,e,i){if(t.tag===3)_g(t,t,i);else for(;e!==null;){if(e.tag===3){_g(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ai===null||!ai.has(l))){t=Fe(i,t),i=ky(2),l=Wn(e,i,2),l!==null&&(Gy(i,l,e,t),dl(l,2),pn(l));break}}e=e.return}}function mf(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new IA;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(i)||(sf=!0,o.add(i),t=e5.bind(null,t,e,i),e.then(t,t))}function e5(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Vt===t&&(Et&i)===i&&(Zt===4||Zt===3&&(Et&62914560)===Et&&300>ve()-xr?(Dt&2)===0&&Oa(t,0):rf|=i,za===Et&&(za=0)),pn(t)}function kg(t,e){e===0&&(e=Lp()),t=wi(t,e),t!==null&&(dl(t,e),pn(t))}function n5(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),kg(t,i)}function i5(t,e){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(i=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(e),kg(t,i)}function a5(t,e){return ea(t,e)}var Dr=null,Va=null,pf=!1,Rr=!1,yf=!1,ri=0;function pn(t){t!==Va&&t.next===null&&(Va===null?Dr=Va=t:Va=Va.next=t),Rr=!0,pf||(pf=!0,s5())}function Kl(t,e){if(!yf&&Rr){yf=!0;do for(var i=!1,l=Dr;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var m=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-ze(42|t)+1)-1,c&=o&~(m&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,Pg(l,c))}else c=Et,c=Os(l,l===Vt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||fl(l,c)||(i=!0,Pg(l,c));l=l.next}while(i);yf=!1}}function l5(){Gg()}function Gg(){Rr=pf=!1;var t=0;ri!==0&&y5()&&(t=ri);for(var e=ve(),i=null,l=Dr;l!==null;){var o=l.next,c=Yg(l,e);c===0?(l.next=null,i===null?Dr=o:i.next=o,o===null&&(Va=i)):(i=l,(t!==0||(c&3)!==0)&&(Rr=!0)),l=o}le!==0&&le!==5||Kl(t),ri!==0&&(ri=0)}function Yg(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var m=31-ze(c),x=1<<m,E=o[m];E===-1?((x&i)===0||(x&l)!==0)&&(o[m]=BM(x,e)):E<=e&&(t.expiredLanes|=x),c&=~x}if(e=Vt,i=Et,i=Os(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&xi(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||fl(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&xi(l),ju(i)){case 2:case 8:i=Bp;break;case 32:i=Rs;break;case 268435456:i=Op;break;default:i=Rs}return l=qg.bind(null,t),i=ea(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&xi(l),t.callbackPriority=2,t.callbackNode=null,2}function qg(t,e){if(le!==0&&le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(wr()&&t.callbackNode!==i)return null;var l=Et;return l=Os(t,t===Vt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Mg(t,l,e),Yg(t,ve()),t.callbackNode!=null&&t.callbackNode===i?qg.bind(null,t):null)}function Pg(t,e){if(wr())return null;Mg(t,e,!0)}function s5(){v5(function(){(Dt&6)!==0?ea(Ds,l5):Gg()})}function gf(){if(ri===0){var t=Sa;t===0&&(t=js,js<<=1,(js&261888)===0&&(js=256)),ri=t}return ri}function Xg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Us(""+t)}function Kg(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function r5(t,e,i,l,o){if(e==="submit"&&i&&i.stateNode===o){var c=Xg((o[xe]||null).action),m=l.submitter;m&&(e=(e=m[xe]||null)?Xg(e.formAction):m.getAttribute("formAction"),e!==null&&(c=e,m=null));var x=new Gs("action","action",null,l,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ri!==0){var E=m?Kg(o,m):new FormData(o);Nc(i,{pending:!0,data:E,method:o.method,action:c},null,E)}}else typeof c=="function"&&(x.preventDefault(),E=m?Kg(o,m):new FormData(o),Nc(i,{pending:!0,data:E,method:o.method,action:c},c,E))},currentTarget:o}]})}}for(var vf=0;vf<$u.length;vf++){var bf=$u[vf],o5=bf.toLowerCase(),u5=bf[0].toUpperCase()+bf.slice(1);an(o5,"on"+u5)}an(E0,"onAnimationEnd"),an(M0,"onAnimationIteration"),an(A0,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(AA,"onTransitionRun"),an(CA,"onTransitionStart"),an(wA,"onTransitionCancel"),an(C0,"onTransitionEnd"),sa("onMouseEnter",["mouseout","mouseover"]),sa("onMouseLeave",["mouseout","mouseover"]),sa("onPointerEnter",["pointerout","pointerover"]),sa("onPointerLeave",["pointerout","pointerover"]),Ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fl="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(" "),c5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fl));function Fg(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],o=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var m=l.length-1;0<=m;m--){var x=l[m],E=x.instance,B=x.currentTarget;if(x=x.listener,E!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=B;try{c(o)}catch(q){Ps(q)}o.currentTarget=null,c=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,B=x.currentTarget,x=x.listener,E!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=B;try{c(o)}catch(q){Ps(q)}o.currentTarget=null,c=E}}}}function Tt(t,e){var i=e[zu];i===void 0&&(i=e[zu]=new Set);var l=t+"__bubble";i.has(l)||(Qg(e,t,2,!1),i.add(l))}function Sf(t,e,i){var l=0;e&&(l|=4),Qg(i,t,l,e)}var jr="_reactListening"+Math.random().toString(36).slice(2);function xf(t){if(!t[jr]){t[jr]=!0,Gp.forEach(function(i){i!=="selectionchange"&&(c5.has(i)||Sf(i,!1,t),Sf(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[jr]||(e[jr]=!0,Sf("selectionchange",!1,e))}}function Qg(t,e,i,l){switch(Ev(e)){case 2:var o=H5;break;case 8:o=_5;break;default:o=Nf}i=o.bind(null,e,i,t),o=void 0,!ku||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,i,{capture:!0,passive:o}):t.addEventListener(e,i,!0):o!==void 0?t.addEventListener(e,i,{passive:o}):t.addEventListener(e,i,!1)}function Tf(t,e,i,l,o){var c=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 x=l.stateNode.containerInfo;if(x===o)break;if(m===4)for(m=l.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;x!==null;){if(m=ia(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=c=m;continue t}x=x.parentNode}}l=l.return}$p(function(){var B=c,q=Hu(i),X=[];t:{var O=w0.get(t);if(O!==void 0){var _=Gs,it=t;switch(t){case"keypress":if(_s(i)===0)break t;case"keydown":case"keyup":_=iA;break;case"focusin":it="focus",_=Pu;break;case"focusout":it="blur",_=Pu;break;case"beforeblur":case"afterblur":_=Pu;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=n0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=XM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=sA;break;case E0:case M0:case A0:_=QM;break;case C0:_=oA;break;case"scroll":case"scrollend":_=qM;break;case"wheel":_=cA;break;case"copy":case"cut":case"paste":_=IM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=a0;break;case"toggle":case"beforetoggle":_=dA}var ct=(e&4)!==0,Lt=!ct&&(t==="scroll"||t==="scrollend"),R=ct?O!==null?O+"Capture":null:O;ct=[];for(var w=B,z;w!==null;){var P=w;if(z=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||z===null||R===null||(P=pl(w,R),P!=null&&ct.push(Ql(w,P,z))),Lt)break;w=w.return}0<ct.length&&(O=new _(O,it,null,i,q),X.push({event:O,listeners:ct}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",O&&i!==Uu&&(it=i.relatedTarget||i.fromElement)&&(ia(it)||it[na]))break t;if((_||O)&&(O=q.window===q?q:(O=q.ownerDocument)?O.defaultView||O.parentWindow:window,_?(it=i.relatedTarget||i.toElement,_=B,it=it?ia(it):null,it!==null&&(Lt=d(it),ct=it.tag,it!==Lt||ct!==5&&ct!==27&&ct!==6)&&(it=null)):(_=null,it=B),_!==it)){if(ct=n0,P="onMouseLeave",R="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(ct=a0,P="onPointerLeave",R="onPointerEnter",w="pointer"),Lt=_==null?O:ml(_),z=it==null?O:ml(it),O=new ct(P,w+"leave",_,i,q),O.target=Lt,O.relatedTarget=z,P=null,ia(q)===B&&(ct=new ct(R,w+"enter",it,i,q),ct.target=z,ct.relatedTarget=Lt,P=ct),Lt=P,_&&it)e:{for(ct=f5,R=_,w=it,z=0,P=R;P;P=ct(P))z++;P=0;for(var ot=w;ot;ot=ct(ot))P++;for(;0<z-P;)R=ct(R),z--;for(;0<P-z;)w=ct(w),P--;for(;z--;){if(R===w||w!==null&&R===w.alternate){ct=R;break e}R=ct(R),w=ct(w)}ct=null}else ct=null;_!==null&&Zg(X,O,_,ct,!1),it!==null&&Lt!==null&&Zg(X,Lt,it,ct,!0)}}t:{if(O=B?ml(B):window,_=O.nodeName&&O.nodeName.toLowerCase(),_==="select"||_==="input"&&O.type==="file")var Ct=d0;else if(c0(O))if(h0)Ct=TA;else{Ct=SA;var rt=bA}else _=O.nodeName,!_||_.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?B&&Nu(B.elementType)&&(Ct=d0):Ct=xA;if(Ct&&(Ct=Ct(t,B))){f0(X,Ct,i,q);break t}rt&&rt(t,O,B),t==="focusout"&&B&&O.type==="number"&&B.memoizedProps.value!=null&&Vu(O,"number",O.value)}switch(rt=B?ml(B):window,t){case"focusin":(c0(rt)||rt.contentEditable==="true")&&(da=rt,Iu=B,El=null);break;case"focusout":El=Iu=da=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,x0(X,i,q);break;case"selectionchange":if(MA)break;case"keydown":case"keyup":x0(X,i,q)}var St;if(Ku)t:{switch(t){case"compositionstart":var Mt="onCompositionStart";break t;case"compositionend":Mt="onCompositionEnd";break t;case"compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0}else fa?o0(t,i)&&(Mt="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Mt="onCompositionStart");Mt&&(l0&&i.locale!=="ko"&&(fa||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&fa&&(St=t0()):(Xn=q,Gu="value"in Xn?Xn.value:Xn.textContent,fa=!0)),rt=zr(B,Mt),0<rt.length&&(Mt=new i0(Mt,t,null,i,q),X.push({event:Mt,listeners:rt}),St?Mt.data=St:(St=u0(i),St!==null&&(Mt.data=St)))),(St=mA?pA(t,i):yA(t,i))&&(Mt=zr(B,"onBeforeInput"),0<Mt.length&&(rt=new i0("onBeforeInput","beforeinput",null,i,q),X.push({event:rt,listeners:Mt}),rt.data=St)),r5(X,t,B,i,q)}Fg(X,e)})}function Ql(t,e,i){return{instance:t,listener:e,currentTarget:i}}function zr(t,e){for(var i=e+"Capture",l=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=pl(t,i),o!=null&&l.unshift(Ql(t,o,c)),o=pl(t,e),o!=null&&l.push(Ql(t,o,c))),t.tag===3)return l;t=t.return}return[]}function f5(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Zg(t,e,i,l,o){for(var c=e._reactName,m=[];i!==null&&i!==l;){var x=i,E=x.alternate,B=x.stateNode;if(x=x.tag,E!==null&&E===l)break;x!==5&&x!==26&&x!==27||B===null||(E=B,o?(B=pl(i,c),B!=null&&m.unshift(Ql(i,B,E))):o||(B=pl(i,c),B!=null&&m.push(Ql(i,B,E)))),i=i.return}m.length!==0&&t.push({event:e,listeners:m})}var d5=/\r\n?/g,h5=/\u0000|\uFFFD/g;function Ig(t){return(typeof t=="string"?t:""+t).replace(d5,`
9
- `).replace(h5,"")}function Jg(t,e){return e=Ig(e),Ig(t)===e}function Ot(t,e,i,l,o,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||oa(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&oa(t,""+l);break;case"className":Vs(t,"class",l);break;case"tabIndex":Vs(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Vs(t,i,l);break;case"style":Jp(t,l,c);break;case"data":if(e!=="object"){Vs(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Us(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"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 c=="function"&&(i==="formAction"?(e!=="input"&&Ot(t,e,"name",o.name,o,null),Ot(t,e,"formEncType",o.formEncType,o,null),Ot(t,e,"formMethod",o.formMethod,o,null),Ot(t,e,"formTarget",o.formTarget,o,null)):(Ot(t,e,"encType",o.encType,o,null),Ot(t,e,"method",o.method,o,null),Ot(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Us(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=Sn);break;case"onScroll":l!=null&&Tt("scroll",t);break;case"onScrollEnd":l!=null&&Tt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(o.children!=null)throw Error(u(60));t.innerHTML=i}}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}i=Us(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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(i,""+l):t.removeAttribute(i);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(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":Tt("beforetoggle",t),Tt("toggle",t),Ls(t,"popover",l);break;case"xlinkActuate":bn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":bn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":bn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":bn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":bn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":bn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":bn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":bn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":bn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ls(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=GM.get(i)||i,Ls(t,i,l))}}function Ef(t,e,i,l,o,c){switch(i){case"style":Jp(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(o.children!=null)throw Error(u(60));t.innerHTML=i}}break;case"children":typeof l=="string"?oa(t,l):(typeof l=="number"||typeof l=="bigint")&&oa(t,""+l);break;case"onScroll":l!=null&&Tt("scroll",t);break;case"onScrollEnd":l!=null&&Tt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yp.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(o=i.endsWith("Capture"),e=i.slice(2,o?i.length-7:void 0),c=t[xe]||null,c=c!=null?c[i]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,l,o);break t}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Ls(t,i,l)}}}function me(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",t),Tt("load",t);var l=!1,o=!1,c;for(c in i)if(i.hasOwnProperty(c)){var m=i[c];if(m!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,c,m,i,null)}}o&&Ot(t,e,"srcSet",i.srcSet,i,null),l&&Ot(t,e,"src",i.src,i,null);return;case"input":Tt("invalid",t);var x=c=m=o=null,E=null,B=null;for(l in i)if(i.hasOwnProperty(l)){var q=i[l];if(q!=null)switch(l){case"name":o=q;break;case"type":m=q;break;case"checked":E=q;break;case"defaultChecked":B=q;break;case"value":c=q;break;case"defaultValue":x=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,e));break;default:Ot(t,e,l,q,i,null)}}Fp(t,c,x,E,B,m,o,!1);return;case"select":Tt("invalid",t),l=m=c=null;for(o in i)if(i.hasOwnProperty(o)&&(x=i[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:Ot(t,e,o,x,i,null)}e=c,i=m,t.multiple=!!l,e!=null?ra(t,!!l,e,!1):i!=null&&ra(t,!!l,i,!0);return;case"textarea":Tt("invalid",t),c=o=l=null;for(m in i)if(i.hasOwnProperty(m)&&(x=i[m],x!=null))switch(m){case"value":l=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:Ot(t,e,m,x,i,null)}Zp(t,l,o,c);return;case"option":for(E in i)if(i.hasOwnProperty(E)&&(l=i[E],l!=null))switch(E){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,E,l,i,null)}return;case"dialog":Tt("beforetoggle",t),Tt("toggle",t),Tt("cancel",t),Tt("close",t);break;case"iframe":case"object":Tt("load",t);break;case"video":case"audio":for(l=0;l<Fl.length;l++)Tt(Fl[l],t);break;case"image":Tt("error",t),Tt("load",t);break;case"details":Tt("toggle",t);break;case"embed":case"source":case"link":Tt("error",t),Tt("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(B in i)if(i.hasOwnProperty(B)&&(l=i[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,B,l,i,null)}return;default:if(Nu(e)){for(q in i)i.hasOwnProperty(q)&&(l=i[q],l!==void 0&&Ef(t,e,q,l,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(l=i[x],l!=null&&Ot(t,e,x,l,i,null))}function m5(t,e,i,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,x=null,E=null,B=null,q=null;for(_ in i){var X=i[_];if(i.hasOwnProperty(_)&&X!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":E=X;default:l.hasOwnProperty(_)||Ot(t,e,_,null,l,X)}}for(var O in l){var _=l[O];if(X=i[O],l.hasOwnProperty(O)&&(_!=null||X!=null))switch(O){case"type":c=_;break;case"name":o=_;break;case"checked":B=_;break;case"defaultChecked":q=_;break;case"value":m=_;break;case"defaultValue":x=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:_!==X&&Ot(t,e,O,_,l,X)}}Lu(t,m,x,E,B,q,c,o);return;case"select":_=m=x=O=null;for(c in i)if(E=i[c],i.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":_=E;default:l.hasOwnProperty(c)||Ot(t,e,c,null,l,E)}for(o in l)if(c=l[o],E=i[o],l.hasOwnProperty(o)&&(c!=null||E!=null))switch(o){case"value":O=c;break;case"defaultValue":x=c;break;case"multiple":m=c;default:c!==E&&Ot(t,e,o,c,l,E)}e=x,i=m,l=_,O!=null?ra(t,!!i,O,!1):!!l!=!!i&&(e!=null?ra(t,!!i,e,!0):ra(t,!!i,i?[]:"",!1));return;case"textarea":_=O=null;for(x in i)if(o=i[x],i.hasOwnProperty(x)&&o!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ot(t,e,x,null,l,o)}for(m in l)if(o=l[m],c=i[m],l.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":O=o;break;case"defaultValue":_=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&Ot(t,e,m,o,l,c)}Qp(t,O,_);return;case"option":for(var it in i)if(O=i[it],i.hasOwnProperty(it)&&O!=null&&!l.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:Ot(t,e,it,null,l,O)}for(E in l)if(O=l[E],_=i[E],l.hasOwnProperty(E)&&O!==_&&(O!=null||_!=null))switch(E){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ot(t,e,E,O,l,_)}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 ct in i)O=i[ct],i.hasOwnProperty(ct)&&O!=null&&!l.hasOwnProperty(ct)&&Ot(t,e,ct,null,l,O);for(B in l)if(O=l[B],_=i[B],l.hasOwnProperty(B)&&O!==_&&(O!=null||_!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,e));break;default:Ot(t,e,B,O,l,_)}return;default:if(Nu(e)){for(var Lt in i)O=i[Lt],i.hasOwnProperty(Lt)&&O!==void 0&&!l.hasOwnProperty(Lt)&&Ef(t,e,Lt,void 0,l,O);for(q in l)O=l[q],_=i[q],!l.hasOwnProperty(q)||O===_||O===void 0&&_===void 0||Ef(t,e,q,O,l,_);return}}for(var R in i)O=i[R],i.hasOwnProperty(R)&&O!=null&&!l.hasOwnProperty(R)&&Ot(t,e,R,null,l,O);for(X in l)O=l[X],_=i[X],!l.hasOwnProperty(X)||O===_||O==null&&_==null||Ot(t,e,X,O,l,_)}function Wg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function p5(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var o=i[l],c=o.transferSize,m=o.initiatorType,x=o.duration;if(c&&x&&Wg(m)){for(m=0,x=o.responseEnd,l+=1;l<i.length;l++){var E=i[l],B=E.startTime;if(B>x)break;var q=E.transferSize,X=E.initiatorType;q&&Wg(X)&&(E=E.responseEnd,m+=q*(E<x?1:(x-B)/(E-B)))}if(--l,e+=8*(c+m)/(o.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 Mf=null,Af=null;function Br(t){return t.nodeType===9?t:t.ownerDocument}function $g(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 tv(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 Cf(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 wf=null;function y5(){var t=window.event;return t&&t.type==="popstate"?t===wf?!1:(wf=t,!0):(wf=null,!1)}var ev=typeof setTimeout=="function"?setTimeout:void 0,g5=typeof clearTimeout=="function"?clearTimeout:void 0,nv=typeof Promise=="function"?Promise:void 0,v5=typeof queueMicrotask=="function"?queueMicrotask:typeof nv<"u"?function(t){return nv.resolve(null).then(t).catch(b5)}:ev;function b5(t){setTimeout(function(){throw t})}function oi(t){return t==="head"}function iv(t,e){var i=e,l=0;do{var o=i.nextSibling;if(t.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"||i==="/&"){if(l===0){t.removeChild(o),_a(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Zl(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Zl(i);for(var c=i.firstChild;c;){var m=c.nextSibling,x=c.nodeName;c[hl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=m}}else i==="body"&&Zl(t.ownerDocument.body);i=o}while(i);_a(e)}function av(t,e){var i=t;t=0;do{var l=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=l}while(i)}function Df(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Df(i),Bu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function S5(t,e,i,l){for(;t.nodeType===1;){var o=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[hl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=We(t.nextSibling),t===null)break}return null}function x5(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=We(t.nextSibling),t===null))return null;return t}function lv(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=We(t.nextSibling),t===null))return null;return t}function Rf(t){return t.data==="$?"||t.data==="$~"}function jf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function T5(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var l=function(){e(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function We(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 zf=null;function sv(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return We(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function rv(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function ov(t,e,i){switch(e=Br(i),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function Zl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Bu(t)}var $e=new Map,uv=new Set;function Or(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Nn=G.d;G.d={f:E5,r:M5,D:A5,C:C5,L:w5,m:D5,X:j5,S:R5,M:z5};function E5(){var t=Nn.f(),e=Mr();return t||e}function M5(t){var e=aa(t);e!==null&&e.tag===5&&e.type==="form"?Cy(e):Nn.r(t)}var Na=typeof document>"u"?null:document;function cv(t,e,i){var l=Na;if(l&&typeof e=="string"&&e){var o=Xe(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),uv.has(o)||(uv.add(o),t={rel:t,crossOrigin:i,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),me(e,"link",t),se(e),l.head.appendChild(e)))}}function A5(t){Nn.D(t),cv("dns-prefetch",t,null)}function C5(t,e){Nn.C(t,e),cv("preconnect",t,e)}function w5(t,e,i){Nn.L(t,e,i);var l=Na;if(l&&t&&e){var o='link[rel="preload"][as="'+Xe(e)+'"]';e==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+Xe(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+Xe(i.imageSizes)+'"]')):o+='[href="'+Xe(t)+'"]';var c=o;switch(e){case"style":c=Ua(t);break;case"script":c=Ha(t)}$e.has(c)||(t=v({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),$e.set(c,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(Il(c))||e==="script"&&l.querySelector(Jl(c))||(e=l.createElement("link"),me(e,"link",t),se(e),l.head.appendChild(e)))}}function D5(t,e){Nn.m(t,e);var i=Na;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Xe(l)+'"][href="'+Xe(t)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ha(t)}if(!$e.has(c)&&(t=v({rel:"modulepreload",href:t},e),$e.set(c,t),i.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Jl(c)))return}l=i.createElement("link"),me(l,"link",t),se(l),i.head.appendChild(l)}}}function R5(t,e,i){Nn.S(t,e,i);var l=Na;if(l&&t){var o=la(l).hoistableStyles,c=Ua(t);e=e||"default";var m=o.get(c);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(Il(c)))x.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},i),(i=$e.get(c))&&Bf(t,i);var E=m=l.createElement("link");se(E),me(E,"link",t),E._p=new Promise(function(B,q){E.onload=B,E.onerror=q}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Lr(m,e,l)}m={type:"stylesheet",instance:m,count:1,state:x},o.set(c,m)}}}function j5(t,e){Nn.X(t,e);var i=Na;if(i&&t){var l=la(i).hoistableScripts,o=Ha(t),c=l.get(o);c||(c=i.querySelector(Jl(o)),c||(t=v({src:t,async:!0},e),(e=$e.get(o))&&Of(t,e),c=i.createElement("script"),se(c),me(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function z5(t,e){Nn.M(t,e);var i=Na;if(i&&t){var l=la(i).hoistableScripts,o=Ha(t),c=l.get(o);c||(c=i.querySelector(Jl(o)),c||(t=v({src:t,async:!0,type:"module"},e),(e=$e.get(o))&&Of(t,e),c=i.createElement("script"),se(c),me(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function fv(t,e,i,l){var o=(o=W.current)?Or(o):null;if(!o)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Ua(i.href),i=la(o).hoistableStyles,l=i.get(e),l||(l={type:"style",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ua(i.href);var c=la(o).hoistableStyles,m=c.get(t);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,m),(c=o.querySelector(Il(t)))&&!c._p&&(m.instance=c,m.state.loading=5),$e.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},$e.set(t,i),c||B5(o,t,i,m.state))),e&&l===null)throw Error(u(528,""));return m}if(e&&l!==null)throw Error(u(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ha(i),i=la(o).hoistableScripts,l=i.get(e),l||(l={type:"script",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function Ua(t){return'href="'+Xe(t)+'"'}function Il(t){return'link[rel="stylesheet"]['+t+"]"}function dv(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function B5(t,e,i,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}),me(e,"link",i),se(e),t.head.appendChild(e))}function Ha(t){return'[src="'+Xe(t)+'"]'}function Jl(t){return"script[async]"+t}function hv(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Xe(i.href)+'"]');if(l)return e.instance=l,se(l),l;var o=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),se(l),me(l,"style",o),Lr(l,i.precedence,t),e.instance=l;case"stylesheet":o=Ua(i.href);var c=t.querySelector(Il(o));if(c)return e.state.loading|=4,e.instance=c,se(c),c;l=dv(i),(o=$e.get(o))&&Bf(l,o),c=(t.ownerDocument||t).createElement("link"),se(c);var m=c;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),me(c,"link",l),e.state.loading|=4,Lr(c,i.precedence,t),e.instance=c;case"script":return c=Ha(i.src),(o=t.querySelector(Jl(c)))?(e.instance=o,se(o),o):(l=i,(o=$e.get(c))&&(l=v({},i),Of(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),se(o),me(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Lr(l,i.precedence,t));return e.instance}function Lr(t,e,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===e)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Bf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Of(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Vr=null;function mv(t,e,i){if(Vr===null){var l=new Map,o=Vr=new Map;o.set(i,l)}else o=Vr,l=o.get(i),l||(l=new Map,o.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),o=0;o<i.length;o++){var c=i[o];if(!(c[hl]||c[ce]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(e)||"";m=t+m;var x=l.get(m);x?x.push(c):l.set(m,[c])}}return l}function pv(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function O5(t,e,i){if(i===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 yv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function L5(t,e,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var o=Ua(l.href),c=e.querySelector(Il(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Nr.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,se(c);return}c=e.ownerDocument||e,l=dv(l),(o=$e.get(o))&&Bf(l,o),c=c.createElement("link"),se(c);var m=c;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),me(c,"link",l),i.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Nr.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Lf=0;function V5(t,e){return t.stylesheets&&t.count===0&&Hr(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Hr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Lf===0&&(Lf=62500*p5());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Hr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Lf?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Nr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ur=null;function Hr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ur=new Map,e.forEach(N5,t),Ur=null,Nr.call(t))}function N5(t,e){if(!(e.state.loading&4)){var i=Ur.get(t);if(i)var l=i.get(null);else{i=new Map,Ur.set(t,i);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(i.set(m.dataset.precedence,m),l=m)}l&&i.set(null,l)}o=e.instance,m=o.getAttribute("data-precedence"),c=i.get(m)||l,c===l&&i.set(null,o),i.set(m,o),this.count++,l=Nr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var Wl={$$typeof:K,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function U5(t,e,i,l,o,c,m,x,E){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Du(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.hiddenUpdates=Du(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function gv(t,e,i,l,o,c,m,x,E,B,q,X){return t=new U5(t,e,i,m,E,B,q,X,x),e=1,c===!0&&(e|=24),c=Oe(3,null,null,e),t.current=c,c.stateNode=t,e=dc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},yc(c),t}function vv(t){return t?(t=pa,t):pa}function bv(t,e,i,l,o,c){o=vv(o),l.context===null?l.context=o:l.pendingContext=o,l=Jn(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=Wn(t,l,e),i!==null&&(we(i,t,e),jl(i,t,e))}function Sv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function Vf(t,e){Sv(t,e),(t=t.alternate)&&Sv(t,e)}function xv(t){if(t.tag===13||t.tag===31){var e=wi(t,67108864);e!==null&&we(e,t,67108864),Vf(t,67108864)}}function Tv(t){if(t.tag===13||t.tag===31){var e=He();e=Ru(e);var i=wi(t,e);i!==null&&we(i,t,e),Vf(t,e)}}var _r=!0;function H5(t,e,i,l){var o=D.T;D.T=null;var c=G.p;try{G.p=2,Nf(t,e,i,l)}finally{G.p=c,D.T=o}}function _5(t,e,i,l){var o=D.T;D.T=null;var c=G.p;try{G.p=8,Nf(t,e,i,l)}finally{G.p=c,D.T=o}}function Nf(t,e,i,l){if(_r){var o=Uf(l);if(o===null)Tf(t,e,l,kr,i),Mv(t,l);else if(G5(o,t,e,i,l))l.stopPropagation();else if(Mv(t,l),e&4&&-1<k5.indexOf(t)){for(;o!==null;){var c=aa(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Ti(c.pendingLanes);if(m!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-ze(m);x.entanglements[1]|=E,m&=~E}pn(c),(Dt&6)===0&&(Tr=ve()+500,Kl(0))}}break;case 31:case 13:x=wi(c,2),x!==null&&we(x,c,2),Mr(),Vf(c,2)}if(c=Uf(l),c===null&&Tf(t,e,l,kr,i),c===o)break;o=c}o!==null&&l.stopPropagation()}else Tf(t,e,l,null,i)}}function Uf(t){return t=Hu(t),Hf(t)}var kr=null;function Hf(t){if(kr=null,t=ia(t),t!==null){var e=d(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=h(e),t!==null)return t;t=null}else if(i===31){if(t=y(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return kr=t,null}function Ev(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(ul()){case Ds:return 2;case Bp:return 8;case Rs:case CM:return 32;case Op:return 268435456;default:return 32}default:return 32}}var _f=!1,ui=null,ci=null,fi=null,$l=new Map,ts=new Map,di=[],k5="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 Mv(t,e){switch(t){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":fi=null;break;case"pointerover":case"pointerout":$l.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ts.delete(e.pointerId)}}function es(t,e,i,l,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:i,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},e!==null&&(e=aa(e),e!==null&&xv(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function G5(t,e,i,l,o){switch(e){case"focusin":return ui=es(ui,t,e,i,l,o),!0;case"dragenter":return ci=es(ci,t,e,i,l,o),!0;case"mouseover":return fi=es(fi,t,e,i,l,o),!0;case"pointerover":var c=o.pointerId;return $l.set(c,es($l.get(c)||null,t,e,i,l,o)),!0;case"gotpointercapture":return c=o.pointerId,ts.set(c,es(ts.get(c)||null,t,e,i,l,o)),!0}return!1}function Av(t){var e=ia(t.target);if(e!==null){var i=d(e);if(i!==null){if(e=i.tag,e===13){if(e=h(i),e!==null){t.blockedOn=e,_p(t.priority,function(){Tv(i)});return}}else if(e===31){if(e=y(i),e!==null){t.blockedOn=e,_p(t.priority,function(){Tv(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Gr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=Uf(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Uu=l,i.target.dispatchEvent(l),Uu=null}else return e=aa(i),e!==null&&xv(e),t.blockedOn=i,!1;e.shift()}return!0}function Cv(t,e,i){Gr(t)&&i.delete(e)}function Y5(){_f=!1,ui!==null&&Gr(ui)&&(ui=null),ci!==null&&Gr(ci)&&(ci=null),fi!==null&&Gr(fi)&&(fi=null),$l.forEach(Cv),ts.forEach(Cv)}function Yr(t,e){t.blockedOn===e&&(t.blockedOn=null,_f||(_f=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Y5)))}var qr=null;function wv(t){qr!==t&&(qr=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){qr===t&&(qr=null);for(var e=0;e<t.length;e+=3){var i=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(Hf(l||i)===null)continue;break}var c=aa(i);c!==null&&(t.splice(e,3),e-=3,Nc(c,{pending:!0,data:o,method:i.method,action:l},l,o))}}))}function _a(t){function e(E){return Yr(E,t)}ui!==null&&Yr(ui,t),ci!==null&&Yr(ci,t),fi!==null&&Yr(fi,t),$l.forEach(e),ts.forEach(e);for(var i=0;i<di.length;i++){var l=di[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<di.length&&(i=di[0],i.blockedOn===null);)Av(i),i.blockedOn===null&&di.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var o=i[l],c=i[l+1],m=o[xe]||null;if(typeof c=="function")m||wv(i);else if(m){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[xe]||null)x=m.formAction;else if(Hf(o)!==null)continue}else x=m.action;typeof x=="function"?i[l+1]=x:(i.splice(l,3),l-=3),wv(i)}}}function Dv(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function kf(t){this._internalRoot=t}Pr.prototype.render=kf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var i=e.current,l=He();bv(i,l,t,e,null,null)},Pr.prototype.unmount=kf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bv(t.current,2,null,t,null,null),Mr(),e[na]=null}};function Pr(t){this._internalRoot=t}Pr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Hp();t={blockedOn:null,target:t,priority:e};for(var i=0;i<di.length&&e!==0&&e<di[i].priority;i++);di.splice(i,0,t),i===0&&Av(t)}};var Rv=s.version;if(Rv!=="19.2.1")throw Error(u(527,Rv,"19.2.1"));G.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=p(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var q5={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xr.isDisabled&&Xr.supportsFiber)try{cl=Xr.inject(q5),je=Xr}catch{}}return Ga.createRoot=function(t,e){if(!f(t))throw Error(u(299));var i=!1,l="",o=Ny,c=Uy,m=Hy;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=gv(t,1,!1,null,null,i,l,null,o,c,m,Dv),t[na]=e.current,xf(t),new kf(e)},Ga.hydrateRoot=function(t,e,i){if(!f(t))throw Error(u(299));var l=!1,o="",c=Ny,m=Uy,x=Hy,E=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(E=i.formState)),e=gv(t,1,!0,e,i??null,l,o,E,c,m,x,Dv),e.context=vv(null),i=e.current,l=He(),l=Ru(l),o=Jn(l),o.callback=null,Wn(i,o,l),i=l,e.current.lanes=i,dl(e,i),pn(e),t[na]=e.current,xf(t),new Pr(e)},Ga.version="19.2.1",Ga}var If;function Hv(){if(If)return Zr.exports;If=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Zr.exports=Uv(),Zr.exports}var _v=Hv();const kv=ki(_v),Jf={en:{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"}},ko:{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:"예정"}},ja:{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:"予定"}}},Gv=()=>typeof navigator<"u"&&typeof navigator.language<"u";function Yv(n){const a=n.split("-")[0];return a in Jf?a:"en"}function $r(n){let a="en";n?a=n:Gv()&&(a=navigator.language);const s=Yv(a);return Jf[s]}$r();const qv={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"},Pv={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 De={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Un={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const Xv=new Date().getTime(),Wf=()=>{const n=new Date,a=f=>String(f).padStart(2,"0"),s=`${n.getFullYear()}-${a(n.getMonth()+1)}-${a(n.getDate())} ${a(n.getHours())}:${a(n.getMinutes())}:${a(n.getSeconds())}`,r=Math.floor(n.getTime()/1e3),u=new Date().getTime()-Xv;return{logDate:s,logDateUnix:r,thisSec:u}};function Kv(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Fv(n,a){Object.entries(a).forEach(([s,r])=>{Kv(r)?(n[s]||(n[s]={}),Object.entries(r).forEach(([u,f])=>{f!=null&&(n[s][u]=f)})):r!=null&&(n[s]=r)})}function Qv(n){const a=[];return n?.r1&&a.push(n.r1),n?.r2&&a.push(n.r2),n?.r3&&a.push(n.r3),a.join(" ")}function Zv(n){try{const a=Un.syncResult?.geoLocation;a&&(n.address=Qv(a),n.isp=a.net||"",n.ip=Un.syncResult?.ip||"",n.nation=a.country||"")}catch{}}const Iv=async n=>{if(!n)return;const{platform:a,stage:s}=Un,r=Pv[a][s].log;try{const f=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:n})})).json();Un.sync=f.result?.sync||!1,Un.syncResult=f.result||{};const{logDate:d,logDateUnix:h}=Wf();return De.extra.logDate=d,De.extra.logDateUnix=h,Un.syncResult?.geoLocation&&Zv(De.extra),f}catch(u){return console.error("MA config initialization failed:",u),null}};async function Jv(n,a,s,r,u){Un.platform=n,Un.stage=a,Fv(De,s),r&&(De.extra.vpePackageId=r),u&&(De.extra.vpeKey=u),De.extra.nation?De.browser.country=qv[De.extra.nation]||"Korea, Republic of":De.browser.country="Korea, Republic of";const{logDate:f,logDateUnix:d}=Wf();De.extra.logDate=f,De.extra.logDateUnix=d,De.extra.created_at=d}const Wv=(n={})=>{const a={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!0,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,seekingPreview:!0,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,iosFullscreenNativeMode:!0,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,...n};return n.controlBtn&&(s.controlBtn={...a.controlBtn,...n.controlBtn}),n.watermarkConfig&&(s.watermarkConfig={...a.watermarkConfig,...n.watermarkConfig}),n.captionStyle&&(s.captionStyle={...a.captionStyle,...n.captionStyle}),s.controlBtn?.progressBar===void 0&&(s.controlBtn.progressBar=!0),s},$v={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let $f=[];const t1=n=>{try{return atob(n)}catch(a){return console.error("Base64 decoding failed:",a),""}};class e1{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator=$r();errorState;constructor({accessKey:a,appId:s,platform:r,stage:u,isDev:f=!1,language:d}){this.accessKey=a,this.appId=s||location.origin,this.platform=r,this.stage=u,this.isDev=f,this.updateTranslator(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(f=>!f))return console.warn(s),{error:this.setErrorRun(a[2])};const u=f=>(this.serverConfig=f,this.playerInfo=this.createPlayerInfo(f),this.playerInfo);try{const f=await this.performKeyCheck();if(f.code!==200)return{error:this.setErrorRun(a[3])};const d=u(f);return await Jv(this.platform,this.stage,d,this.appId,this.accessKey),await Iv(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:d}}catch(f){return console.error("VPE SDK Initialization failed:",f),{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]:"",r=t1($v[this.platform][this.stage][a[1]])+s,u=JSON.stringify([a[4],a[5]].reduce((d,h,y)=>(d[h]=[this.accessKey,this.appId][y],d),{})),f=await fetch(r,{method:a[6],headers:{[a[2]]:a[3]},body:u});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,r]=a.result.name.split("|"),u=navigator.connection||navigator.mozConnection||navigator.webkitConnection,f=this.getBrowserInfo(),d=navigator.userAgentData;return{cid:a.result.cid,player_name:s,player_version:r,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:u?.effectiveType??"unknown",downlink:u?.downlink??null,rtt:u?.rtt??null,save_data:u?.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: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),r=this.translator.error[s]||this.translator.error["01"],u={errorCode:a,errorMessage:r};return this.errorState=u,console.error("ncplayer : ",u),u}updateTranslator(a){this.translator=$r(a)}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(a){const s=Wv(this.serverConfig.result?.options),r={...s,...a??{}};return r?.lang&&(r?.lang=="auto"||this.updateTranslator(r.lang)),a?.controlBtn&&(r.controlBtn={...s.controlBtn,...a.controlBtn}),a?.watermarkConfig&&(r.watermarkConfig={...s.watermarkConfig,...a.watermarkConfig}),r.playlist&&!Array.isArray(r.playlist)&&(r.playlist=[{file:r.playlist}]),$f=r.playlist||[],r}getPlaylist(){return $f||[]}async playerStateReport(a){a.type}$t(a){const s=a.split(".");let r=this.translator;for(const u of s)if(r&&typeof r=="object"&&u in r)r=r[u];else return a;return typeof r=="string"?r:a}async hlsPaser(a){const s=[];if(!a||a.indexOf(".m3u8")===-1)return s;const r=(d,h)=>{try{return new URL(h,d).toString()}catch{return h}},u=d=>{const h=d.match(/RESOLUTION=(\d+)x(\d+)/);if(h)return`${h[2]}p`;const y=d.match(/BANDWIDTH=(\d+)/);return y?`${Math.round(Number(y[1])/1e3)}kbps`:"auto"},f=d=>{const h=d.split(/\r?\n/).map(y=>y.trim()).filter(y=>y.length>0);for(let y=0;y<h.length;y+=1){const g=h[y];if(g.startsWith("#EXT-X-STREAM-INF")){const p=h[y+1];p&&!p.startsWith("#")&&(s.push({quality:u(g),url:r(a,p),levelIndex:s.length}),y+=1)}}};try{const d=await fetch(a);if(!d.ok)return s;const h=await d.text();return h&&f(h),s}catch(d){return console.error("HLS 파싱 실패:",d),s}}}const to=new Map,td=T.createContext(null);let ed=0;function n1(n,a){if(to.has(n))return to.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return to.set(n,r),r}function i1({scopeId:n,children:a}){const s=T.useRef(null);s.current||(ed+=1,s.current=`sdk-${ed}`);const r=n??s.current;return T.createElement(td.Provider,{value:r},a)}function a1(){return T.useContext(td)}function nd(n,a){const s=a1(),r=s?`${s}:${n}`:n,u=n1(r,a),f=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),d=()=>u.value,h=()=>u.value,y=T.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(S=>S())},[u]);return[T.useSyncExternalStore(f,d,h),y]}const eo=new Map,id=T.createContext(null);let ad=0;function l1(n,a){if(eo.has(n))return eo.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return eo.set(n,r),r}function s1({scopeId:n,children:a}){const s=T.useRef(null);s.current||(ad+=1,s.current=`vpe-${ad}`);const r=n??s.current;return T.createElement(id.Provider,{value:r},a)}function r1(){return T.useContext(id)}function ld(n,a){const s=r1(),r=s?`${s}:${n}`:n,u=l1(r,a),f=p=>(u.listeners.add(p),()=>u.listeners.delete(p)),d=()=>u.value,h=()=>u.value,y=T.useCallback(p=>{u.value=typeof p=="function"?p(u.value):p,u.listeners.forEach(S=>S())},[u]);return[T.useSyncExternalStore(f,d,h),y]}const o1="playerState",u1={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,isSeekOverlayVisible:!1,videoWidth:0,videoHeight:0,subTitleIdx:0,currentTime:0,duration:0,buffered:0,bufferedStart:0,bufferedEnd:0,pidx:0,playlistCnt:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function Gt(){const[n,a]=ld(o1,u1),s=T.useCallback(r=>{a(u=>{const f=typeof r=="function"?r(u):r,d={...u,...f},h=Object.keys(f);for(const y of h)if(!Object.is(u[y],d[y]))return d;return u})},[a]);return[n,s]}const c1="playerController",f1={videoEl:null,hls:null,dash:null};function ie(){const[n,a]=ld(c1,f1),[s,r]=Gt(),u=T.useRef(0),f=T.useRef(""),d=T.useCallback(Z=>{a(et=>({...et,videoEl:Z}))},[a]),h=T.useCallback(Z=>{a(et=>({...et,hls:Z}))},[a]),y=T.useCallback(Z=>{a(et=>({...et,dash:Z}))},[a]),g=T.useCallback(()=>{r({isUserTouch:!0})},[r]),p=T.useCallback(()=>{const Z=n.videoEl;Z&&Z.paused&&Z.play()},[n.videoEl]),S=T.useCallback(()=>{const Z=n.videoEl;Z&&(Z.paused||Z.pause())},[n.videoEl]),v=T.useCallback(Z=>{const et=n.videoEl;if(!et||Number.isNaN(Z))return;const lt=Math.max(0,Math.min(Z,et.duration||Z));et.currentTime=lt,r({currentTime:lt,isEnded:!1})},[r,n.videoEl]),A=T.useCallback(Z=>{const et=n.videoEl;if(!et||Number.isNaN(Z))return;const lt=Math.max(0,Math.min(100,Z));et.volume=lt/100,et.muted=lt===0},[n.videoEl]),j=T.useCallback(Z=>{const et=n.videoEl;et&&(et.muted=Z)},[n.videoEl]),L=T.useCallback(Z=>{const et=n.videoEl;if(!et)return;const lt=et.textTracks;if(!lt||lt.length===0)return;const F=Math.max(0,Math.min(s.subTitleIdx??0,lt.length-1));for(let D=0;D<lt.length;D+=1)lt[D].mode=Z&&D===F?"showing":"disabled";r({isSubtitle:Z})},[s.subTitleIdx,r,n.videoEl]),H=T.useCallback(()=>{const Z=n.videoEl;if(!Z)return;const et=Z.textTracks;if(!et||et.length===0){r({isSubtitle:!1});return}let lt=!1;for(let F=0;F<et.length;F+=1)if(et[F].mode==="showing"){lt=!0;break}lt?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),L(!lt)},[r,L,n.videoEl]),C=T.useCallback(Z=>{const et=n.videoEl;if(!et)return;const lt=Array.from(et.querySelectorAll("track")),F=et.textTracks;if((!F||F.length===0)&&lt.length===0){r({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const D=lt.length>0?lt.length-1:F.length-1,G=Math.max(0,Math.min(Z,D));if(lt.length>0)lt.forEach(($,nt)=>{$.track&&($.track.mode=nt===G?"showing":"disabled")});else for(let $=0;$<F.length;$+=1)F[$].mode=$===G?"showing":"disabled";r({isSubtitle:!0,subTitleIdx:G}),localStorage.setItem("vpeSubtitleEnabled","Y")},[r,n.videoEl]),U=T.useCallback(()=>{const Z=n.videoEl;Z&&(Z.muted=!Z.muted)},[n.videoEl]),V=T.useCallback(()=>{const Z=n.videoEl;Z&&(Z.paused?p():S())},[S,p,n.videoEl]),K=T.useCallback(Z=>{const et=n.hls,lt=n.dash;if(!et&&!lt)return;if(et){if(Z==="auto"){et.currentLevel=-1,r({currentLevel:-1,isAutoLevel:!0});return}et.currentLevel=Z,r({currentLevel:Z,isAutoLevel:!1});return}const F=Z==="auto"||Z===-1;lt?.setAutoSwitchQualityFor&&lt.setAutoSwitchQualityFor("video",F),!F&&lt?.setQualityFor&&lt.setQualityFor("video",Z),r({currentLevel:F?-1:Z,isAutoLevel:F})},[r,n.dash,n.hls]),Q=T.useCallback(Z=>{const et=n.videoEl;et&&(et.playbackRate=Z)},[n.videoEl]),J=T.useCallback(async()=>{const Z=n.videoEl;if(!Z||typeof document>"u")return;const et=document;if(et.pictureInPictureElement){typeof et.exitPictureInPicture=="function"&&await et.exitPictureInPicture();return}const lt=Z.requestPictureInPicture;typeof lt=="function"&&await lt.call(Z)},[n.videoEl]),Y=T.useCallback(()=>{if(typeof document>"u")return null;const Z=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return Z instanceof HTMLElement?Z:null},[]),k=T.useCallback((Z,et)=>{if(!Z||typeof document>"u")return;if(!(et??!Z.classList.contains("vpe-ios-fullscreen"))){r({isFullscreen:!1}),Z.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=f.current;const D=document.getElementById("vpeIosFullscreenTmpDiv");D&&D.remove(),window.scrollY=u.current;return}r({isFullscreen:!0}),Z.classList.add("vpe-ios-fullscreen"),u.current=window.scrollY,f.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const F=document.createElement("div");F.id="vpeIosFullscreenTmpDiv",F.style.height="120dvh",document.body.appendChild(F),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[r]),st=T.useCallback(()=>{const Z=n.videoEl;if(!Z)return!1;const et=Z.webkitEnterFullscreen;return typeof et!="function"?!1:(et.call(Z),!0)},[n.videoEl]),bt=T.useCallback(Z=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(Z?.iosFullscreenNativeMode){if(st())return}else{const F=document.querySelector(".vpe-root-wrap");k(F,!0);return}if(typeof document>"u"||document.fullscreenElement)return;const lt=Y();lt&&lt.requestFullscreen?.()},[st,Y,k]),pt=T.useCallback(Z=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent)&&!Z?.iosFullscreenNativeMode){const lt=document.querySelector(".vpe-root-wrap");k(lt,!1);return}typeof document>"u"||document.fullscreenElement&&document.exitFullscreen?.()},[k]),dt=T.useCallback(Z=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(Z?.iosFullscreenNativeMode){if(st())return}else{const F=document.querySelector(".vpe-root-wrap");k(F);return}if(typeof document>"u")return;if(document.fullscreenElement){document.exitFullscreen?.();return}const lt=Y();lt&&lt.requestFullscreen?.()},[st,Y,k]);return{videoEl:n.videoEl,hls:n.hls,dash:n.dash,setVideoElement:d,setHlsInstance:h,setDashInstance:y,play:p,pause:S,seekTo:v,setVolume:A,setMuted:j,setSubtitleEnabled:L,toggleSubtitle:H,toggleMute:U,togglePlay:V,useTouch:g,playBackRate:Q,selectSubTitle:C,selectQualityLevel:K,togglePictureInPicture:J,toggleFullscreen:dt,fullscreenOn:bt,fullscreenOff:pt}}const d1=()=>{};function no(n,a,s=!1,r=!0,u=d1){T.useEffect(()=>{const f=n.current;if(!f)return;const d=typeof document>"u"?null:document,h=()=>{a({isPlaying:!0,initPlay:!0,isEnded:!1})},y=()=>{a({isPlaying:!1})},g=()=>{s||Math.round(f.currentTime)%1==0&&(a({currentTime:f.currentTime,duration:f.duration}),u("timeupdate",{currentTime:f.currentTime,duration:f.duration}))},p=()=>{if(f.buffered.length>0){const Y=f.buffered.start(0),k=f.buffered.end(f.buffered.length-1);a({buffered:k,bufferedStart:Y,bufferedEnd:k})}},S=()=>{const Y=f.videoWidth||0,k=f.videoHeight||0;a({isHd:Y>=1280,is4k:k>=2160,videoWidth:Y,videoHeight:k})},v=()=>{a({isEnded:!0}),u("ended")},A=()=>{a({isSeeked:!0}),u("seeking",{currentTime:f.currentTime})},j=()=>{setTimeout(()=>{a({isSeeked:!1}),u("seeked",{currentTime:f.currentTime})},200)},L=()=>{a({isMuted:f.muted,isVolume:Math.round(f.volume*100)}),u("volumechange",{isMuted:f.muted,isVolume:Math.round(f.volume*100)})},H=()=>{a({isLoading:!0,isWaiting:!0})},C=()=>{a({isLoading:!1}),S()},U=()=>{a({isLoading:!1}),S()},V=()=>{a({isWaiting:!0})},K=()=>{a({isWaiting:!1,isLoading:!1})},Q=()=>{a({isWaiting:!0})},J=()=>{!d||!r||d.hidden&&!f.paused&&f.pause()};return f.addEventListener("play",h),f.addEventListener("pause",y),f.addEventListener("timeupdate",g),f.addEventListener("ended",v),f.addEventListener("progress",p),f.addEventListener("seeking",A),f.addEventListener("seeked",j),f.addEventListener("volumechange",L),f.addEventListener("loadstart",H),f.addEventListener("loadedmetadata",C),f.addEventListener("loadeddata",U),f.addEventListener("resize",S),f.addEventListener("waiting",V),f.addEventListener("playing",K),f.addEventListener("stalled",Q),d?.addEventListener("visibilitychange",J),L(),()=>{f.removeEventListener("play",h),f.removeEventListener("pause",y),f.removeEventListener("timeupdate",g),f.removeEventListener("ended",v),f.removeEventListener("progress",p),f.removeEventListener("seeking",A),f.removeEventListener("seeked",j),f.removeEventListener("volumechange",L),f.removeEventListener("loadstart",H),f.removeEventListener("loadedmetadata",C),f.removeEventListener("loadeddata",U),f.removeEventListener("resize",S),f.removeEventListener("waiting",V),f.removeEventListener("playing",K),f.removeEventListener("stalled",Q),d?.removeEventListener("visibilitychange",J)}},[r,s,a,n])}const h1=3,m1=3e3;function p1(n){const a=T.useRef(null),s=T.useRef(0),r=T.useRef(null),[u,f]=Gt(),{setVideoElement:d,setHlsInstance:h}=ie(),y=n.hlsLib,g=n.options;return T.useEffect(()=>{const p=a.current,S=n?.src?.file;if(!(!p||!S)){if(y?.isSupported?.()){const v=new y({lowLatencyMode:g.lowLatencyMode,liveSyncDuration:g.lowLatencyMode?3:5,backBufferLength:g.lowLatencyMode?30:90,startPosition:-1});h(v),v.attachMedia(p),v.on(y.Events.MEDIA_ATTACHED,()=>{v.loadSource(S)});const A=typeof g?.retry?.maxRetry=="number"?g.retry.maxRetry:h1,j=typeof g?.retry?.interval=="number"?g.retry.interval:m1,L=H=>{if(typeof H?.details?.live=="boolean"){const C=H.details.live,U=H.details.totalduration,V=C&&typeof U=="number"&&Number.isFinite(U)&&U>0;f({isLive:C,isDvr:V})}};return v.on(y.Events.MANIFEST_PARSED,(H,C)=>{s.current=0,L(C);const U=(v.levels??[]).map((V,K)=>({index:K,width:V.width,height:V.height,bitrate:V.bitrate,name:V.name}));f({levels:U,currentLevel:v.currentLevel,isAutoLevel:v.autoLevelEnabled})}),v.on(y.Events.LEVEL_LOADED,(H,C)=>{s.current=0,L(C)}),v.on(y.Events.LEVEL_SWITCHED,(H,C)=>{f({currentLevel:C.level,isAutoLevel:v.autoLevelEnabled})}),v.on(y.Events.ERROR,(H,C)=>{if(C?.fatal){if(s.current<A){s.current+=1,console.log(`HLS 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,C?.type===y.ErrorTypes.MEDIA_ERROR){v.recoverMediaError();return}v.stopLoad(),v.loadSource(S),v.startLoad()},j);return}console.log("HLS 재시도 횟수 초과"),n.onError&&n.onError({evt:H,data:C}),v.destroy()}}),()=>{r.current&&(clearTimeout(r.current),r.current=null),h(null),v.destroy()}}p.src=S}},[y,n?.src?.file,n.onError,h,f]),T.useEffect(()=>{const p=a.current;if(!p||y?.isSupported?.())return;const S=()=>{const v=p.duration,A=!Number.isFinite(v)||v===1/0,j=A?Number.isFinite(v)&&v>0:!1;f({isLive:A,isDvr:j})};return p.addEventListener("loadedmetadata",S),p.addEventListener("durationchange",S),S(),()=>{p.removeEventListener("loadedmetadata",S),p.removeEventListener("durationchange",S)}},[y,f]),T.useEffect(()=>(d(a.current),()=>d(null)),[d]),T.useEffect(()=>{const p=a.current;if(!p)return;const S=g?.playbackRate;typeof S=="number"&&(p.playbackRate=S,f({playbackRate:S}))},[g]),T.useEffect(()=>{const p=a.current;if(!p||!n.src?.vtt?.length)return;const S=50,v=16,A=1.2,j=40,H=-Math.max(1,Math.round(S/(v*A))),C=Y=>{if(Y.cues)for(let k=0;k<Y.cues.length;k+=1){const st=Y.cues[k];st.line=H,st.lineAlign="center"}},U=Y=>{if(!Y.cues)return;const k=p.getBoundingClientRect(),st=k.width>0?j*2*100/k.width:0,bt=Math.max(10,Math.min(100,100-st));for(let pt=0;pt<Y.cues.length;pt+=1){const dt=Y.cues[pt];dt.size=bt,dt.position=50,dt.align="center",dt.line=-3}},V=Y=>{C(Y),U(Y)},K=Array.from(p.querySelectorAll("track")),Q=Y=>{const k=Y.currentTarget;k?.track&&V(k.track)};K.forEach(Y=>{Y.addEventListener("load",Q),Y.track&&V(Y.track)});const J=new ResizeObserver(()=>{K.forEach(Y=>{Y.track&&U(Y.track)})});return J.observe(p),()=>{K.forEach(Y=>{Y.removeEventListener("load",Q)}),J.disconnect()}},[g,n.src?.vtt]),no(a,f,u.isSeeked,g?.autoPause,n.emitEvent),T.useEffect(()=>{const p=n.src?.vtt??[],S=p.length>0,v=p.findIndex(j=>j.default),A=v>=0?v:0;f({hasSubtitle:S,isSubtitle:!1,subTitleIdx:A})},[n.src?.vtt,f]),T.useEffect(()=>{if(!u.isSubtitle)return;const p=a.current;if(!p||!n.src?.vtt?.length)return;const S=new Map,v=[],A=async(L,H)=>{try{const C=await fetch(H,{mode:"cors"});if(!C.ok)return;const U=await C.blob(),V=URL.createObjectURL(U);v.push(V),S.set(L,L.src),L.src=V}catch{}},j=Array.from(p.querySelectorAll("track"));return j.forEach(L=>{L.src&&A(L,L.src)}),()=>{j.forEach(L=>{const H=S.get(L);H&&(L.src=H)}),v.forEach(L=>URL.revokeObjectURL(L))}},[n.src?.vtt,u.subTitleIdx,u.isSubtitle]),T.useEffect(()=>{const p=a.current;if(!p)return;const S=Array.from(p.querySelectorAll("track")),v=p.textTracks;if((!v||v.length===0)&&S.length===0)return;const A=u.subTitleIdx,j=u.isSubtitle,L=()=>{if(S.length>0){S.forEach(C=>{C.track&&(C.default=!1,C.track.mode="disabled")}),S.forEach((C,U)=>{C.track&&j&&U===A&&(C.default=!0,C.track.mode="showing")});return}for(let C=0;C<v.length;C+=1)v[C].mode="disabled";j&&v[A]&&(v[A].mode="showing")};L();const H=()=>{L()};return S.forEach(C=>{C.addEventListener("load",H)}),()=>{S.forEach(C=>{C.removeEventListener("load",H)})}},[u.isSubtitle,u.subTitleIdx,n.src?.vtt]),T.useEffect(()=>{const p=a.current;p&&g.autostart&&p.play().catch(S=>{console.log(S),p.muted=!0,p.play()})},[g.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&u.hasSubtitle&&f({isSubtitle:!!S})},1e3)},[u.hasSubtitle,f]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,className:"vpe-video-dom",controls:!1,autoPlay:g?.autostart,muted:g?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?u.initPlay?"transparent":`url(${n.src.poster}) center / ${g?.objectFit??"contain"} no-repeat`:void 0,objectFit:g?.objectFit??"contain"},children:n.src.vtt?.map(p=>b.jsx("track",{kind:"subtitles",srcLang:p.id,label:p.label,src:p.src,default:p.default},`${p.id}-${p.src}`))})})}const y1=3,g1=3e3,v1=n=>{if(!n)return null;if(typeof n.MediaPlayer=="function"){const a=n.MediaPlayer();if(a?.create)return a.create()}if(n.MediaPlayer?.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const a=n.MediaPlayerFactory();if(a?.create)return a.create()}return null};function b1(n){const a=T.useRef(null),s=T.useRef(0),r=T.useRef(null),[u,f]=Gt(),{setVideoElement:d,setDashInstance:h}=ie(),y=n.dashLib,g=n.options;return T.useEffect(()=>{const p=a.current,S=n?.src?.file;if(!p||!S)return;const v=v1(y);if(!v){p.src=S;return}h(v),typeof v.initialize=="function"?v.initialize(p,S,!!g?.autostart):typeof v.attachView=="function"&&typeof v.attachSource=="function"?(v.attachView(p),v.attachSource(S)):p.src=S;const A=typeof g?.retry?.maxRetry=="number"?g.retry.maxRetry:y1,j=typeof g?.retry?.interval=="number"?g.retry.interval:g1,L=()=>{const k=(typeof v.getBitrateInfoListFor=="function"?v.getBitrateInfoListFor("video"):[]).map((pt,dt)=>({index:typeof pt?.qualityIndex=="number"?pt.qualityIndex:dt,width:pt?.width,height:pt?.height,bitrate:pt?.bitrate??pt?.bandwidth,name:pt?.name})),st=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,bt=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;f({levels:k,currentLevel:st,isAutoLevel:bt})},H=()=>{const Y=typeof v.isDynamic=="function"?v.isDynamic():!1,k=typeof v.getDuration=="function"?v.getDuration():void 0,st=Y&&typeof k=="number"&&Number.isFinite(k)&&k>0;f({isLive:Y,isDvr:st})},C=()=>{s.current=0,L(),H()},U=()=>{const Y=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,k=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;f({currentLevel:Y,isAutoLevel:k})},V=(Y,k)=>{if(k?.error?.fatal??k?.fatal??!0){if(s.current<A){s.current+=1,console.log(`DASH 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,typeof v.attachSource=="function"){v.attachSource(S);return}typeof v.reset=="function"&&(v.reset(),typeof v.initialize=="function"&&v.initialize(p,S,!!g?.autostart))},j);return}console.log("DASH 재시도 횟수 초과"),n.onError&&n.onError({evt:Y,data:k}),typeof v.reset=="function"&&v.reset()}},K=y?.MediaPlayer?.events??y?.MediaPlayer?.Events??y?.events??y?.Events??void 0,Q=[],J=(Y,k)=>{!Y||typeof v.on!="function"||(v.on(Y,k),Q.push(()=>{typeof v.off=="function"&&v.off(Y,k)}))};return J(K?.STREAM_INITIALIZED??K?.MANIFEST_LOADED,C),J(K?.QUALITY_CHANGE_RENDERED??K?.QUALITY_CHANGE_REQUESTED,U),J(K?.ERROR,V),()=>{r.current&&(clearTimeout(r.current),r.current=null),Q.forEach(Y=>Y()),h(null),typeof v.reset=="function"&&v.reset()}},[y,n?.src?.file,n.onError,h,f]),T.useEffect(()=>{const p=a.current;if(!p||!!y&&(typeof y.MediaPlayer=="function"||typeof y.MediaPlayer?.create=="function"||typeof y.MediaPlayerFactory=="function"))return;const v=()=>{const A=p.duration,j=!Number.isFinite(A)||A===1/0,L=j?Number.isFinite(A)&&A>0:!1;f({isLive:j,isDvr:L})};return p.addEventListener("loadedmetadata",v),p.addEventListener("durationchange",v),v(),()=>{p.removeEventListener("loadedmetadata",v),p.removeEventListener("durationchange",v)}},[y,f]),T.useEffect(()=>(d(a.current),()=>d(null)),[d]),T.useEffect(()=>{const p=a.current;if(!p)return;const S=g?.playbackRate;typeof S=="number"&&(p.playbackRate=S,f({playbackRate:S}))},[g]),T.useEffect(()=>{const p=a.current;if(!p||!n.src?.vtt?.length)return;const S=50,v=16,A=1.2,j=40,H=-Math.max(1,Math.round(S/(v*A))),C=Y=>{if(Y.cues)for(let k=0;k<Y.cues.length;k+=1){const st=Y.cues[k];st.line=H,st.lineAlign="center"}},U=Y=>{if(!Y.cues)return;const k=p.getBoundingClientRect(),st=k.width>0?j*2*100/k.width:0,bt=Math.max(10,Math.min(100,100-st));for(let pt=0;pt<Y.cues.length;pt+=1){const dt=Y.cues[pt];dt.size=bt,dt.position=50,dt.align="center"}},V=Y=>{C(Y),U(Y)},K=Array.from(p.querySelectorAll("track")),Q=Y=>{const k=Y.currentTarget;k?.track&&V(k.track)};K.forEach(Y=>{Y.addEventListener("load",Q),Y.track&&V(Y.track)});const J=new ResizeObserver(()=>{K.forEach(Y=>{Y.track&&U(Y.track)})});return J.observe(p),()=>{K.forEach(Y=>{Y.removeEventListener("load",Q)}),J.disconnect()}},[g,n.src?.vtt]),no(a,f,u.isSeeked,g?.autoPause,n.emitEvent),T.useEffect(()=>{const p=n.src?.vtt??[],S=p.length>0,v=p.findIndex(j=>j.default),A=v>=0?v:0;f({hasSubtitle:S,isSubtitle:!1,subTitleIdx:A})},[n.src?.vtt,f]),T.useEffect(()=>{if(!u.isSubtitle)return;const p=a.current;if(!p||!n.src?.vtt?.length)return;const S=new Map,v=[],A=async(L,H)=>{try{const C=await fetch(H,{mode:"cors"});if(!C.ok)return;const U=await C.blob(),V=URL.createObjectURL(U);v.push(V),S.set(L,L.src),L.src=V}catch{}},j=Array.from(p.querySelectorAll("track"));return j.forEach(L=>{L.src&&A(L,L.src)}),()=>{j.forEach(L=>{const H=S.get(L);H&&(L.src=H)}),v.forEach(L=>URL.revokeObjectURL(L))}},[n.src?.vtt,u.subTitleIdx,u.isSubtitle]),T.useEffect(()=>{const p=a.current;if(!p)return;const S=Array.from(p.querySelectorAll("track")),v=p.textTracks;if((!v||v.length===0)&&S.length===0)return;const A=u.subTitleIdx,j=u.isSubtitle,L=()=>{if(S.length>0){S.forEach(C=>{C.track&&(C.default=!1,C.track.mode="disabled")}),S.forEach((C,U)=>{C.track&&j&&U===A&&(C.default=!0,C.track.mode="showing")});return}for(let C=0;C<v.length;C+=1)v[C].mode="disabled";j&&v[A]&&(v[A].mode="showing")};L();const H=()=>{L()};return S.forEach(C=>{C.addEventListener("load",H)}),()=>{S.forEach(C=>{C.removeEventListener("load",H)})}},[u.isSubtitle,u.subTitleIdx,n.src?.vtt]),T.useEffect(()=>{const p=a.current;p&&g.autostart&&p.play().catch(S=>{console.log(S),p.muted=!0,p.play()})},[g.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&u.hasSubtitle&&f({isSubtitle:!!S})},1e3)},[u.hasSubtitle,f]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{className:"vpe-video-dom",playsInline:!0,ref:a,controls:!1,autoPlay:g?.autostart,muted:g?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?u.initPlay?"transparent":`url(${n.src.poster}) center / ${g?.objectFit??"contain"} no-repeat`:void 0,objectFit:g?.objectFit??"contain"},children:n.src.vtt?.map(p=>b.jsx("track",{kind:"subtitles",srcLang:p.id,label:p.label,src:p.src,default:p.default},`${p.id}-${p.src}`))})})}function S1(n){const a=T.useRef(null),[s,r]=Gt(),{setVideoElement:u}=ie(),f=n.options;return T.useEffect(()=>{const d=a.current,h=n?.src?.file;!d||!h||(d.src=h)},[n?.src?.file]),T.useEffect(()=>{const d=a.current;if(!d)return;const h=y=>{n.onError&&n.onError(y)};return d.addEventListener("error",h),()=>{d.removeEventListener("error",h)}},[n.onError]),T.useEffect(()=>{const d=a.current;if(!d)return;const h=()=>{const y=d.duration,g=!Number.isFinite(y)||y===1/0,p=g?Number.isFinite(y)&&y>0:!1;r({isLive:g,isDvr:p})};return d.addEventListener("loadedmetadata",h),d.addEventListener("durationchange",h),h(),()=>{d.removeEventListener("loadedmetadata",h),d.removeEventListener("durationchange",h)}},[r]),T.useEffect(()=>(u(a.current),()=>u(null)),[u]),T.useEffect(()=>{const d=a.current;if(!d)return;const h=f?.playbackRate;typeof h=="number"&&(d.playbackRate=h,r({playbackRate:h}))},[f,r]),T.useEffect(()=>{const d=a.current;if(!d||!n.src?.vtt?.length)return;const h=50,y=16,g=1.2,p=40,v=-Math.max(1,Math.round(h/(y*g))),A=V=>{if(V.cues)for(let K=0;K<V.cues.length;K+=1){const Q=V.cues[K];Q.line=v,Q.lineAlign="center"}},j=V=>{if(!V.cues)return;const K=d.getBoundingClientRect(),Q=K.width>0?p*2*100/K.width:0,J=Math.max(10,Math.min(100,100-Q));for(let Y=0;Y<V.cues.length;Y+=1){const k=V.cues[Y];k.size=J,k.position=50,k.align="center"}},L=V=>{A(V),j(V)},H=Array.from(d.querySelectorAll("track")),C=V=>{const K=V.currentTarget;K?.track&&L(K.track)};H.forEach(V=>{V.addEventListener("load",C),V.track&&L(V.track)});const U=new ResizeObserver(()=>{H.forEach(V=>{V.track&&j(V.track)})});return U.observe(d),()=>{H.forEach(V=>{V.removeEventListener("load",C)}),U.disconnect()}},[f,n.src?.vtt]),no(a,r,s.isSeeked,f?.autoPause,n.emitEvent),T.useEffect(()=>{const d=n.src?.vtt??[],h=d.length>0,y=d.findIndex(p=>p.default),g=y>=0?y:0;r({hasSubtitle:h,isSubtitle:!1,subTitleIdx:g})},[n.src?.vtt,r]),T.useEffect(()=>{if(!s.isSubtitle)return;const d=a.current;if(!d||!n.src?.vtt?.length)return;const h=new Map,y=[],g=async(S,v)=>{try{const A=await fetch(v,{mode:"cors"});if(!A.ok)return;const j=await A.blob(),L=URL.createObjectURL(j);y.push(L),h.set(S,S.src),S.src=L}catch{}},p=Array.from(d.querySelectorAll("track"));return p.forEach(S=>{S.src&&g(S,S.src)}),()=>{p.forEach(S=>{const v=h.get(S);v&&(S.src=v)}),y.forEach(S=>URL.revokeObjectURL(S))}},[n.src?.vtt,s.subTitleIdx,s.isSubtitle]),T.useEffect(()=>{const d=a.current;if(!d)return;const h=Array.from(d.querySelectorAll("track")),y=d.textTracks;if((!y||y.length===0)&&h.length===0)return;const g=s.subTitleIdx,p=s.isSubtitle,S=()=>{if(h.length>0){h.forEach(A=>{A.track&&(A.default=!1,A.track.mode="disabled")}),h.forEach((A,j)=>{A.track&&p&&j===g&&(A.default=!0,A.track.mode="showing")});return}for(let A=0;A<y.length;A+=1)y[A].mode="disabled";p&&y[g]&&(y[g].mode="showing")};S();const v=()=>{S()};return h.forEach(A=>{A.addEventListener("load",v)}),()=>{h.forEach(A=>{A.removeEventListener("load",v)})}},[s.isSubtitle,s.subTitleIdx,n.src?.vtt]),T.useEffect(()=>{const d=a.current;d&&f.autostart&&d.play().catch(h=>{console.log(h),d.muted=!0,d.play()})},[f.autostart]),T.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const h=localStorage.getItem("vpeSubtitleEnabled");h!==null&&s.hasSubtitle&&r({isSubtitle:!!h})},1e3)},[s.hasSubtitle,r]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,className:"vpe-video-dom",ref:a,controls:!1,autoPlay:f?.autostart,muted:f?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?s.initPlay?"transparent":`url(${n.src.poster}) center / ${f?.objectFit??"contain"} no-repeat`:void 0,objectFit:f?.objectFit??"contain"},children:n.src.vtt?.map(d=>b.jsx("track",{kind:"subtitles",srcLang:d.id,label:d.label,src:d.src,default:d.default},`${d.id}-${d.src}`))})})}function x1(n){return b.jsx(p1,{...n})}function T1(n){return b.jsx(b1,{...n})}function E1(n){return b.jsx(S1,{...n})}function M1(n){const a=T.useRef(null),s=T.useRef(null),r=n.hlsLib;return T.useEffect(()=>{const u=a.current,f=n?.src?.file;if(!(!u||!f)){if(r?.isSupported?.()){const d=new r({startLevel:0,autoLevelCapping:0});return d.attachMedia(u),d.on(r.Events.MEDIA_ATTACHED,()=>{d.loadSource(f)}),d.on(r.Events.MANIFEST_PARSED,()=>{d.currentLevel=0,d.autoLevelEnabled=!1}),d.on(r.Events.ERROR,(h,y)=>{n.onError&&n.onError({evt:h,data:y})}),()=>{d.destroy()}}u.src=f}},[r,n?.src?.file,n.onError]),T.useEffect(()=>{const u=a.current;if(!u||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const f=()=>{const h=s.current;if(typeof h!="number"||Number.isNaN(h))return;const y=u.duration,g=Math.max(0,Math.min(h,Number.isFinite(y)?y:h));Math.abs(u.currentTime-g)>.25&&(u.currentTime=g),u.pause()};if(u.readyState>=1){f();return}const d=()=>f();return u.addEventListener("loadedmetadata",d,{once:!0}),()=>{u.removeEventListener("loadedmetadata",d)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}const A1=n=>{if(!n)return null;if(typeof n.MediaPlayer=="function"){const a=n.MediaPlayer();if(a?.create)return a.create()}if(n.MediaPlayer?.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const a=n.MediaPlayerFactory();if(a?.create)return a.create()}return null},C1=n=>{if(!n.length)return 0;let a=n[0];for(let s=1;s<n.length;s+=1){const r=n[s],u=r?.bitrate??r?.bandwidth??Number.MAX_SAFE_INTEGER,f=a?.bitrate??a?.bandwidth??Number.MAX_SAFE_INTEGER;u<f&&(a=r)}return typeof a?.qualityIndex=="number"?a.qualityIndex:0};function w1(n){const a=T.useRef(null),s=T.useRef(null),r=n.dashLib;return T.useEffect(()=>{const u=a.current,f=n?.src?.file;if(!u||!f)return;const d=A1(r);if(!d){u.src=f;return}typeof d.initialize=="function"?d.initialize(u,f,!1):typeof d.attachView=="function"&&typeof d.attachSource=="function"?(d.attachView(u),d.attachSource(f)):u.src=f;const h=()=>{const v=typeof d.getBitrateInfoListFor=="function"?d.getBitrateInfoListFor("video"):[],A=C1(v);typeof d.setAutoSwitchQualityFor=="function"&&d.setAutoSwitchQualityFor("video",!1),typeof d.setQualityFor=="function"&&d.setQualityFor("video",A)},y=(v,A)=>{n.onError&&n.onError({evt:v,data:A})},g=r?.MediaPlayer?.events??r?.MediaPlayer?.Events??r?.events??r?.Events??void 0,p=[],S=(v,A)=>{!v||typeof d.on!="function"||(d.on(v,A),p.push(()=>{typeof d.off=="function"&&d.off(v,A)}))};return S(g?.STREAM_INITIALIZED??g?.MANIFEST_LOADED,h),S(g?.ERROR,y),()=>{p.forEach(v=>v()),typeof d.reset=="function"&&d.reset()}},[r,n?.src?.file,n.onError]),T.useEffect(()=>{const u=a.current;if(!u||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const f=()=>{const h=s.current;if(typeof h!="number"||Number.isNaN(h))return;const y=u.duration,g=Math.max(0,Math.min(h,Number.isFinite(y)?y:h));Math.abs(u.currentTime-g)>.25&&(u.currentTime=g),u.pause()};if(u.readyState>=1){f();return}const d=()=>f();return u.addEventListener("loadedmetadata",d,{once:!0}),()=>{u.removeEventListener("loadedmetadata",d)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function D1(n){const a=T.useRef(null),s=T.useRef(null);return T.useEffect(()=>{const r=a.current,u=n?.src?.file;!r||!u||(r.src=u)},[n?.src?.file]),T.useEffect(()=>{const r=a.current;if(!r)return;const u=f=>{n.onError&&n.onError(f)};return r.addEventListener("error",u),()=>{r.removeEventListener("error",u)}},[n.onError]),T.useEffect(()=>{const r=a.current;if(!r||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const u=()=>{const d=s.current;if(typeof d!="number"||Number.isNaN(d))return;const h=r.duration,y=Math.max(0,Math.min(d,Number.isFinite(h)?h:d));Math.abs(r.currentTime-y)>.25&&(r.currentTime=y),r.pause()};if(r.readyState>=1){u();return}const f=()=>u();return r.addEventListener("loadedmetadata",f,{once:!0}),()=>{r.removeEventListener("loadedmetadata",f)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function sd(n="(max-width: 768px)"){const[a,s]=T.useState({isMobile:!1,isPortrait:!1});return T.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(n),u=window.matchMedia("(orientation: portrait)"),f=()=>s({isMobile:r.matches,isPortrait:u.matches});return f(),r.addEventListener("change",f),u.addEventListener("change",f),()=>{r.removeEventListener("change",f),u.removeEventListener("change",f)}},[n]),a}class R1{formatTime(a){if(!a)return"00:00";const s=Math.floor(a),r=String(Math.floor(s/3600)).padStart(2,"0"),u=String(Math.floor(s%3600/60)).padStart(2,"0"),f=String(s%60).padStart(2,"0");return r!=="00"?`${r}:${u}:${f}`:`${u}:${f}`}}const Ya=new R1,Gi=n=>Math.max(0,Math.min(100,n));function rd({color:n="#31ec2a",src:a,hlsLib:s,dashLib:r,options:u,onError:f,seekingPreview:d=!0}){const{isMobile:h}=sd(),[y,g]=Gt(),{seekTo:p}=ie(),S=r,v=typeof a?.file=="string"?a.file.split("?")[0].toLowerCase():"",A=v.endsWith(".mpd"),j=v.endsWith(".mp4"),[L,H]=T.useState(!1),[C,U]=T.useState(0),[V,K]=T.useState(0),[Q,J]=T.useState(null),[Y,k]=T.useState(null),[st,bt]=T.useState(null),pt=T.useRef(null),dt=T.useRef(null),Z=T.useRef(null),et=n||"#31ec2a",lt="5px",F=y.duration??0,D=F>0?F:0,G=D>0?(y.currentTime??0)/D*100:0,$=D>0?(y.buffered??0)/D*100:0,nt=!!y.isLive,M=(nt&&F>0?Math.abs(F-(y.currentTime??0))<30:!1)?100:Gi(C),N=Q??G,I=Y??N,tt=st??N,ut=D>0?D*(N/100):0,W=Q!==null,ht=y.videoWidth??0,Ut=y.videoHeight??0,Rt=ht>0&&Ut>0,ue=Rt?`${ht}/${Ut}`:"16/9",cn=Rt&&ht>Ut?"160px":"55px",fn=T.useCallback(at=>{const gt=pt.current;if(!gt)return null;const Ht=gt.getBoundingClientRect();if(Ht.width<=0)return null;const Kt="clientX"in at?at.clientX:0;return Math.min(Math.max(Kt-Ht.left,0),Ht.width)/Ht.width*100},[]),ta=T.useCallback(at=>{const gt=pt.current;if(!gt)return;const Ht=gt.getBoundingClientRect();if(Ht.width<=0)return;const Kt=ws=>{const ve=ws>0?ws/2/Ht.width*100:0,ul=Math.max(0,Math.min(50,ve)),Ds=Math.max(ul,100-ul);return{minPercent:ul,maxPercent:Ds}},qe=dt.current?.offsetWidth??0,ea=Kt(qe),xi=fn(at);if(xi===null)return;J(Gi(xi));const Cs=Math.max(ea.minPercent,Math.min(ea.maxPercent,xi));bt(Cs),k(Cs)},[fn]),nn=T.useCallback(()=>{J(null),k(null),bt(null)},[]);return T.useEffect(()=>{L||(U(G),K($))},[L,G,$]),T.useEffect(()=>{},[u]),y.isSeekOverlayVisible?null:b.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:ta,onMouseLeave:nn,children:b.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":et,"--seekSliderThumbColor":et,"--rlMargin":lt},children:[b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:pt,children:b.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(51,51,51,0.38)",width:"100%"},children:[W&&!y.isLive&&!h&&d&&b.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:ue,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Gi(tt)}%`,transform:"translateX(-50%)",maxWidth:cn},ref:dt,children:b.jsx(b.Fragment,{children:A&&S?b.jsx(w1,{src:a,dashLib:S,options:u,onError:f,previewTime:ut,isHovering:W}):j?b.jsx(D1,{src:a,options:u,onError:f,previewTime:ut,isHovering:W}):s?b.jsx(M1,{src:a,hlsLib:s,options:u,onError:f,previewTime:ut,isHovering:W}):null})}),W&&!y.isLive&&b.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Gi(I)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:Z,children:Ya.formatTime(ut)})]})}),b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:b.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${V<1?1:V>98?100:V}%`}})}),b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:b.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${M<1?1:M}%`},children:b.jsx("div",{style:{position:"relative"},children:b.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),b.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:b.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:M,onPointerDown:at=>{if(nt)return;g({isSeeked:!0}),H(!0);const gt=fn(at);gt!==null&&U(Gi(gt))},onPointerUp:()=>{if(nt)return;H(!1);const at=D*(M/100);p(at)},onChange:at=>{if(nt)return;const gt=Number(at.currentTarget.value),Ht=Number.isNaN(gt)?0:gt;U(Gi(Ht))},disabled:nt||D===0})})]})})}var od={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ud=mi.createContext&&mi.createContext(od),j1=["attr","size","title"];function z1(n,a){if(n==null)return{};var s=B1(n,a),r,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(n);for(u=0;u<f.length;u++)r=f[u],!(a.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(s[r]=n[r])}return s}function B1(n,a){if(n==null)return{};var s={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(a.indexOf(r)>=0)continue;s[r]=n[r]}return s}function ns(){return ns=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])}return n},ns.apply(this,arguments)}function cd(n,a){var s=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);a&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),s.push.apply(s,r)}return s}function is(n){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?cd(Object(s),!0).forEach(function(r){O1(n,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):cd(Object(s)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(s,r))})}return n}function O1(n,a,s){return a=L1(a),a in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s,n}function L1(n){var a=V1(n,"string");return typeof a=="symbol"?a:a+""}function V1(n,a){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var r=s.call(n,a);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}function fd(n){return n&&n.map((a,s)=>mi.createElement(a.tag,is({key:s},a.attr),fd(a.child)))}function Nt(n){return a=>mi.createElement(N1,ns({attr:is({},n.attr)},a),fd(n.child))}function N1(n){var a=s=>{var{attr:r,size:u,title:f}=n,d=z1(n,j1),h=u||s.size||"1em",y;return s.className&&(y=s.className),n.className&&(y=(y?y+" ":"")+n.className),mi.createElement("svg",ns({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,r,d,{className:y,style:is(is({color:n.color||s.color},s.style),n.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),f&&mi.createElement("title",null,f),n.children)};return ud!==void 0?mi.createElement(ud.Consumer,null,s=>a(s)):a(od)}function U1(n){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:[]}]})(n)}function H1(n){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:[]}]})(n)}function _1(n){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:[]}]})(n)}function k1(n){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:[]}]})(n)}function G1(n){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:[]}]})(n)}function dd(n){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:[]}]})(n)}function hd(n){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:[]}]})(n)}function Y1(n){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:[]}]})(n)}function md(n){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m6 18 8.5-6L6 6v12zM16 6v12h2V6h-2z"},child:[]}]})(n)}function pd(n){return Nt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6h2v12H6zm3.5 6 8.5 6V6z"},child:[]}]})(n)}function q1(n){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:[]}]})(n)}function yd(n){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:[]}]})(n)}function gd(n){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:[]}]})(n)}function vd(n){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:[]}]})(n)}function bd(n){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:[]}]})(n)}function Sd(n){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:[]}]})(n)}function xd(n){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:[]}]})(n)}function as(n){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:[]}]})(n)}function qa(n){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:[]}]})(n)}function P1(n){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:[]}]})(n)}function X1(n){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:[]}]})(n)}function K1(n){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:[]}]})(n)}function Td(n){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:[]}]})(n)}function Re(n){const a=n.noBg??!1;return b.jsxs(b.Fragment,{children:[b.jsx("style",{children:`
10
-
11
- .obtn {
12
- aspect-ratio: 1/1;
13
- height: 100%;
14
- border-radius: 500px;
15
- display: flex;
16
- justify-content: center;
17
- align-items: center;
18
- padding:0.5em;
19
- }
20
-
21
- .obtnNoBg {
22
- aspect-ratio: 1/1;
23
- height: 100%;
24
- border-radius: 500px;
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- padding:0.5em;
29
- }
30
- .obtnNoBg:hover {
31
- background-color: rgba(37, 37, 37, 0.45);
32
- }
33
-
34
- `}),b.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:a?"obtnNoBg":"obtn",children:n.children})]})}function F1(n){const a=n.noPadding??!1,s=n.cap??0,r={display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:a?0:"0.5rem",paddingRight:a?0:"0.5rem",gap:s||0,position:"relative"};return b.jsxs(b.Fragment,{children:[b.jsx("style",{children:`
35
-
36
-
37
- .obtn-group {
38
- background-color: rgba(37, 37, 37, 0.45);
39
- height: 100%;
40
- border-radius: 500px;
41
- display: flex;
42
- justify-content: center;
43
- align-items: center;
44
- backdrop-filter: blur(5px);
45
- padding-left: 0.5rem;
46
- padding-right: 0.5rem;
47
- }
48
-
49
- .obtn-group-nobg:hover {
50
- background-color: rgba(37, 37, 37, 0.45);
51
- }
52
-
53
- .obtn-group-nobg {
54
- height: 100%;
55
- border-radius: 500px;
56
- display: flex;
57
- justify-content: center;
58
- align-items: center;
59
- padding-left: 0.5rem;
60
- padding-right: 0.5rem;
61
- }
62
-
63
- .obtn-group:hover {
64
- background-color: rgba(37, 37, 37, 0.65);
65
- }
66
-
67
- .tra200 {
68
- transition: all 0.2s ease;
69
- }
70
-
71
- `}),b.jsx("div",{style:{...r,...n.style??{}},className:n.noBg?"obtn-group-nobg":"obtn-group",children:n.children})]})}function Pa(n){return b.jsx(F1,{...n})}const _e={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},Q1={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},Ed={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer",zoom:.5},Md={border:0,background:"transparent"},Z1={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"},I1={flex:1},J1={display:"flex",alignItems:"center",gap:6},W1={padding:0,display:"flex",alignItems:"center",gap:6},ls={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},rn={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},Hn={flex:1,justifyContent:"start",display:"flex"},io={display:"flex",alignItems:"center",gap:5},ss={fontSize:"0.9rem",opacity:.6};function Ad({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Gt(),{play:d,pause:h}=ie();return f.isSeekOverlayVisible?null:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isPlaying?r?.pause??"일시정지":r?.play??"재생"})}),b.jsx("button",{type:"button",onClick:f.isPlaying?h:d,style:_e,children:f.isEnded?b.jsx(Td,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(b.Fragment,{children:f.isPlaying?b.jsx(dd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(hd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})]})})}function $1({size:n=80,weight:a="fill",color:s="#ffffff",isPortrait:r=!1,isMobile:u=!1,next:f=()=>{},prev:d=()=>{},pidx:h=0,playlistCnt:y=0}){const[g]=Gt(),[p,S]=T.useState(0),{play:v,pause:A}=ie();return T.useEffect(()=>{S(j=>j+1)},[g.isPlaying]),g.isSeekOverlayVisible?null:b.jsxs("div",{className:`vpe-big-play-btn ${g.isEnded?"":"center-play-btn-anim"}`,children:[u&&y>1&&b.jsx(Pa,{noPadding:!0,children:b.jsx(Re,{children:b.jsx("button",{disabled:h===0,type:"button",style:Ed,onClick:()=>{d()},children:b.jsx(pd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})}),b.jsx(Pa,{noPadding:!0,children:b.jsx(Re,{children:b.jsx("button",{type:"button",style:Q1,onClick:()=>{(u||r)&&(g.isPlaying?A():v())},children:g.isEnded?b.jsx(Td,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(b.Fragment,{children:g.isPlaying?b.jsx(dd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(hd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}),u&&y>1&&b.jsx(Pa,{noPadding:!0,children:b.jsx(Re,{children:b.jsx("button",{type:"button",disabled:h===y-1,style:Ed,onClick:()=>{f()},children:b.jsx(md,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})]},p)}function tb({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,next:d=()=>{}}){return b.jsx(b.Fragment,{children:f>1&&b.jsx(Re,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",style:_e,disabled:u===f-1,onClick:()=>{d()},children:b.jsx(md,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})}function eb({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,prev:d=()=>{}}){return b.jsx(b.Fragment,{children:f>1&&b.jsx(Re,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",disabled:u===0,onClick:()=>{d()},style:_e,children:b.jsx(pd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})}function nb({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=Gt(),{seekTo:d}=ie(),h=typeof u?.skipSeconds=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const y=()=>{if(f.isLive&&!f.isDvr)return;const p=(f.currentTime??0)-h;d(Math.max(0,p))};return b.jsx(Re,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",onClick:y,style:_e,children:b.jsx(Y1,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function ib({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=Gt(),{seekTo:d}=ie(),h=typeof u?.skipSeconds=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const y=()=>{if(f.isLive&&!f.isDvr)return;const g=f.currentTime??0,p=f.duration??0,S=g+h,v=Number.isFinite(p)&&p>0?Math.min(S,p):Math.max(0,S);d(v)};return b.jsx(Re,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",onClick:y,style:_e,children:b.jsx(G1,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function ab({color:n="#ffffff"}){const[a]=Gt();return a.isSeekOverlayVisible?null:b.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",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:n},children:Ya.formatTime(a.currentTime??0)||0})}function lb({color:n="#ffffff"}){const[a]=Gt();return a.isSeekOverlayVisible?null:b.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",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:n},children:Ya.formatTime(a.duration??0)||0})}function sb({color:n="#ffffff"}){const[a]=Gt(),{seekTo:s}=ie();if(a.isSeekOverlayVisible)return null;const u=(a.bufferedEnd??a.buffered??0)||a.duration||0,f=!!a.isLive,h=f&&u>0?Math.abs((a.currentTime??0)-u)<10:f,y=()=>{f&&(!u||Number.isNaN(u)||s(Math.max(0,u-.1)))};return b.jsx(b.Fragment,{children:a.isLive?b.jsxs("button",{type:"button",onClick:y,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[b.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:h?"#ff0000":n,display:"inline-block"}}),b.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"})]}):b.jsxs(b.Fragment,{children:[b.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:Ya.formatTime(a.currentTime??0)||0}),b.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),b.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:Ya.formatTime(a.duration??0)||0})]})})}function rb({text:n={},color:a="#ffffff"}){const[s]=Gt(),{selectQualityLevel:r}=ie(),u=T.useRef(!1),f=s.currentLevel??-1,d=s.levels?.find(y=>y.index===f),h=s.isAutoLevel?n.auto:d?.name??(d?.height?`${d.height}p`:`${f}`);return s.isSeekOverlayVisible?null:b.jsxs("div",{style:{position:"relative"},children:[u.current&&b.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:b.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[b.jsx("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{r(-1)},children:b.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:n?.auto??"Auto"})}),[...s.levels??[]].sort((y,g)=>(g.height??0)-(y.height??0)).map(y=>{const g=y.name??(y.height?`${y.height}p`:`${y.index}`);return b.jsx("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{r(y.index),u.current=!1},children:b.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:g})},y.index)})]})}),b.jsx("button",{type:"button",onClick:()=>{u.current=!u.current},style:{..._e,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${a}`},children:b.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:h})})]})}function ob({color:n="#ffffff",title:a="",profileImage:s="",profileName:r="",createdAt:u=""}){return b.jsxs("div",{style:{display:"flex",alignItems:"center",color:`${n}`,gap:10,padding:"0.4rem"},children:[s&&b.jsx("div",{children:b.jsx("img",{src:s,alt:r,style:{borderRadius:"100%",width:50,height:50,objectFit:"cover",border:"1px solid transparent"}})}),b.jsxs("div",{style:{flex:1},children:[b.jsx("div",{style:{marginBottom:"0.2rem"},children:a}),b.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.8rem",opacity:.5},children:[b.jsx("div",{children:r}),b.jsx("div",{children:u})]})]})]})}function Cd(n){const s={flex:1,display:"flex",justifyContent:n.align?n.align=="left"?"start":n.align=="right"?"end":"center":"start",alignItems:"center"};return b.jsx("div",{style:{...s,...n.style??{}},children:n.children})}function ub(n){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:[]}]})(n)}function cb(n){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:[]}]})(n)}function fb({size:n=25,weight:a="fill",color:s="#ffffff",options:r={},text:u={},pos:f="left"}){const[d,h]=Gt(),{toggleFullscreen:y}=ie(),g=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent);return T.useEffect(()=>{const p=()=>{g&&!r.iosFullscreenNativeMode||h({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",p),p(),()=>{document.removeEventListener("fullscreenchange",p)}},[h]),d.isSeekOverlayVisible?null:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${f}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:d.isFullscreen?u?.fullOff??"전체화면 해제":u?.fullOn??"전체화면"})}),b.jsx("button",{type:"button",onClick:()=>y(r),style:_e,children:d.isFullscreen?b.jsx(X1,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(K1,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})}function db({size:n=25,color:a="#ffffff",text:s={},pos:r="left"}){const[u]=Gt(),{toggleSubtitle:f}=ie();return u.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:u.hasSubtitle&&b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:u.isSubtitle?s?.captionOff??"자막끄기":s?.captionOn??"자막켜기"})}),b.jsx("button",{type:"button",onClick:f,style:_e,children:u.isSubtitle?b.jsx(yd,{style:{fontSize:n,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(k1,{style:{fontSize:n,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function hb({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Gt(),{toggleMute:d}=ie(),h=f.isVolume??0;return f.isSeekOverlayVisible?null:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isMuted?r?.muteOff??"음소거 해제":r?.muteOn??"음소거"})}),b.jsx("button",{type:"button",onClick:d,style:_e,children:b.jsxs(b.Fragment,{children:[(h===0||f.isMuted)&&b.jsx(bd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=5&&h<=10&&!f.isMuted&&b.jsx(vd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=11&&h<=50&&!f.isMuted&&b.jsx(gd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=51&&!f.isMuted&&b.jsx(Sd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]})})}function mb({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Gt(),{setVolume:d,toggleMute:h}=ie(),y=f.isVolume??0,g=f.isMuted?0:y;return f.isSeekOverlayVisible?null:b.jsxs("div",{className:"VolumeBtnWrap",children:[b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isMuted?r?.muteOff??"음소거 해제":r?.muteOn??"음소거"})}),b.jsx("button",{type:"button",onClick:h,style:_e,children:b.jsxs(b.Fragment,{children:[(y===0||f.isMuted)&&b.jsx(bd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),y>=5&&y<=10&&!f.isMuted&&b.jsx(vd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),y>=11&&y<=50&&!f.isMuted&&b.jsx(gd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),y>=51&&!f.isMuted&&b.jsx(Sd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]}),b.jsx("div",{className:"vslideWrap",children:b.jsx("input",{type:"range",min:0,max:100,value:g,onChange:p=>{const S=Number(p.currentTarget.value);d(Number.isNaN(S)?0:S)},className:"VolumSlide"})})]})}function pb({color:n="#ffffff",size:a=25,text:s={},pos:r="left"}){const[u,f]=Gt(),d=u.isHd,h=u.is4k;return u.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:s?.setting??"설정"})}),b.jsxs("button",{type:"button",onClick:()=>{f({isSettingModal:!u.isSettingModal})},style:_e,children:[(d||h)&&b.jsx("div",{style:{position:"absolute",right:"-4px",top:"-4px",backgroundColor:"#ffffff",width:"16px",height:"13px",borderRadius:"2px"},children:d&&!h&&b.jsx(cb,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-2px",marginTop:"-4px"}})||h&&b.jsx(ub,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-4px",marginTop:"-4px"}})}),b.jsx(_1,{style:{fontSize:a,color:n,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})]})})})}function yb({color:n="#ffffff",size:a=25,text:s={},pos:r="left"}){const{togglePictureInPicture:u}=ie(),[f]=Gt();return f.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:b.jsx(Re,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:s?.miniPlayer??"미니플레이어"})}),b.jsx("button",{type:"button",onClick:()=>{u()},style:_e,children:b.jsx(H1,{style:{fontSize:a,color:n,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function gb(n){const{useTouch:a}=ie();return b.jsx("div",{style:{position:"absolute",zIndex:2,width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.2)",display:"flex",alignItems:"center",justifyContent:"center",background:`url(${n.poster}) center / ${n.options?.objectFit||"contain"} no-repeat`},onClick:()=>{a()},onTouchStart:()=>{a()},children:b.jsx("div",{children:b.jsx(Pa,{noPadding:!0,children:b.jsx(Ad,{size:80})})})})}function ao(n){const[a]=Gt(),{poster:s,options:r}=n,u={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${s}) center / ${r?.objectFit||"contain"} no-repeat`};return b.jsx(b.Fragment,{children:a.isLoading&&b.jsx("div",{style:u,children:b.jsx("div",{className:"ncplayer-spinner"})})})}const wd=()=>({lastTapTime:0,count:0,timer:null});function vb({seekSeconds:n=10,doubleTapWindowMs:a=300,executeDelayMs:s=300,onSingleTap:r}){const{seekTo:u,videoEl:f}=ie(),[,d]=Gt(),[h,y]=T.useState(null),[g,p]=T.useState(null),S=T.useRef({left:null,right:null}),v=T.useRef({left:wd(),right:wd()});T.useEffect(()=>()=>{d({isSeekOverlayVisible:!1});const{left:C,right:U}=v.current;C.timer&&window.clearTimeout(C.timer),U.timer&&window.clearTimeout(U.timer);const{left:V,right:K}=S.current;V&&window.clearTimeout(V),K&&window.clearTimeout(K)},[d]),T.useEffect(()=>{d({isSeekOverlayVisible:h!==null||g!==null})},[h,g,d]);const A=(C,U)=>{const V=Math.floor(U/2);if(V<=0){C=="left"?y(null):p(null);return}const K=V*n*(C=="left"?-1:1);C=="left"?y(K):p(K);const Q=S.current;Q[C]&&window.clearTimeout(Q[C]),Q[C]=window.setTimeout(()=>{C=="left"?y(null):p(null),Q[C]=null},s+200)},j=(C,U)=>{if(!f||U<=0)return;const V=f.currentTime||0,K=U*n*(C=="left"?-1:1);u(V+K)},L=C=>{const U=v.current[C],V=Date.now(),K=V-U.lastTapTime<=a;U.count=K?U.count+1:1,U.lastTapTime=V,A(C,U.count),U.timer&&window.clearTimeout(U.timer),U.timer=window.setTimeout(()=>{const Q=Math.floor(U.count/2);if(U.count=0,U.timer=null,Q<=0){r?.(C);return}j(C,Q)},s)},H=C=>U=>{U.preventDefault(),U.stopPropagation(),L(C)};return b.jsxs("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none",backgroundColor:"rgba(255,0,0,0)",top:"20%",height:"calc(100% - 44%)"},children:[b.jsx("style",{children:`
8
+ `+l.stack}}var mn=Object.prototype.hasOwnProperty,Tn=a.unstable_scheduleCallback,Mn=a.unstable_cancelCallback,sa=a.unstable_shouldYield,ct=a.unstable_requestPaint,vt=a.unstable_now,ae=a.unstable_getCurrentPriorityLevel,Qt=a.unstable_ImmediatePriority,Zn=a.unstable_UserBlockingPriority,Ns=a.unstable_NormalPriority,aA=a.unstable_LowPriority,Fp=a.unstable_IdlePriority,lA=a.log,sA=a.unstable_setDisableYieldValue,pl=null,Oe=null;function In(t){if(typeof lA=="function"&&sA(t),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(pl,t)}catch{}}var Ve=Math.clz32?Math.clz32:uA,rA=Math.log,oA=Math.LN2;function uA(t){return t>>>=0,t===0?32:31-(rA(t)/oA|0)|0}var Us=256,_s=262144,Hs=4194304;function Ri(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 ks(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var o=0,c=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?o=Ri(l):(g&=x,g!==0?o=Ri(g):i||(i=x&~t,i!==0&&(o=Ri(i))))):(x=l&~c,x!==0?o=Ri(x):g!==0?o=Ri(g):i||(i=l&~t,i!==0&&(o=Ri(i)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,i=e&-e,c>=i||c===32&&(i&4194048)!==0)?e:o}function yl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function cA(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 Kp(){var t=Hs;return Hs<<=1,(Hs&62914560)===0&&(Hs=4194304),t}function Uu(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function gl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function fA(t,e,i,l,o,c){var g=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var x=t.entanglements,A=t.expirationTimes,U=t.hiddenUpdates;for(i=g&~i;0<i;){var P=31-Ve(i),F=1<<P;x[P]=0,A[P]=-1;var _=U[P];if(_!==null)for(U[P]=null,P=0;P<_.length;P++){var G=_[P];G!==null&&(G.lane&=-536870913)}i&=~F}l!==0&&Qp(t,l,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(g&~e))}function Qp(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ve(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function Zp(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-Ve(i),o=1<<l;o&e|t[l]&e&&(t[l]|=e),i&=~o}}function Ip(t,e){var i=e&-e;return i=(i&42)!==0?1:_u(i),(i&(t.suspendedLanes|e))!==0?0:i}function _u(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 Hu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Jp(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Nv(t.type))}function Wp(t,e){var i=Y.p;try{return Y.p=t,e()}finally{Y.p=i}}var Jn=Math.random().toString(36).slice(2),fe="__reactFiber$"+Jn,Ee="__reactProps$"+Jn,ra="__reactContainer$"+Jn,ku="__reactEvents$"+Jn,dA="__reactListeners$"+Jn,hA="__reactHandles$"+Jn,$p="__reactResources$"+Jn,vl="__reactMarker$"+Jn;function Gu(t){delete t[fe],delete t[Ee],delete t[ku],delete t[dA],delete t[hA]}function oa(t){var e=t[fe];if(e)return e;for(var i=t.parentNode;i;){if(e=i[ra]||i[fe]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=Sv(t);t!==null;){if(i=t[fe])return i;t=Sv(t)}return e}t=i,i=t.parentNode}return null}function ua(t){if(t=t[fe]||t[ra]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function bl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function ca(t){var e=t[$p];return e||(e=t[$p]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function re(t){t[vl]=!0}var ty=new Set,ey={};function Di(t,e){fa(t,e),fa(t+"Capture",e)}function fa(t,e){for(ey[t]=e,t=0;t<e.length;t++)ty.add(e[t])}var mA=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]*$"),ny={},iy={};function pA(t){return mn.call(iy,t)?!0:mn.call(ny,t)?!1:mA.test(t)?iy[t]=!0:(ny[t]=!0,!1)}function Gs(t,e,i){if(pA(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){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,""+i)}}function Ys(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function An(t,e,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+l)}}function Qe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ay(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function yA(t,e,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(g){i=""+g,c.call(this,g)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Yu(t){if(!t._valueTracker){var e=ay(t)?"checked":"value";t._valueTracker=yA(t,e,""+t[e])}}function ly(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=ay(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function Ps(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 gA=/[\n"\\]/g;function Ze(t){return t.replace(gA,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Pu(t,e,i,l,o,c,g,x){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Qe(e)):t.value!==""+Qe(e)&&(t.value=""+Qe(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?qu(t,g,Qe(e)):i!=null?qu(t,g,Qe(i)):l!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Qe(x):t.removeAttribute("name")}function sy(t,e,i,l,o,c,g,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Yu(t);return}i=i!=null?""+Qe(i):"",e=e!=null?""+Qe(e):i,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),Yu(t)}function qu(t,e,i){e==="number"&&Ps(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function da(t,e,i,l){if(t=t.options,e){e={};for(var o=0;o<i.length;o++)e["$"+i[o]]=!0;for(i=0;i<t.length;i++)o=e.hasOwnProperty("$"+t[i].value),t[i].selected!==o&&(t[i].selected=o),o&&l&&(t[i].defaultSelected=!0)}else{for(i=""+Qe(i),e=null,o=0;o<t.length;o++){if(t[o].value===i){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function ry(t,e,i){if(e!=null&&(e=""+Qe(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Qe(i):""}function oy(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(u(92));if(K(l)){if(1<l.length)throw Error(u(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=Qe(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Yu(t)}function ha(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var vA=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 uy(t,e,i){var l=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,i):typeof i!="number"||i===0||vA.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function cy(t,e,i){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&i[o]!==l&&uy(t,o,l)}else for(var c in e)e.hasOwnProperty(c)&&uy(t,c,e[c])}function Xu(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 bA=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"]]),SA=/^[\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 qs(t){return SA.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Cn(){}var Fu=null;function Ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ma=null,pa=null;function fy(t){var e=ua(t);if(e&&(t=e.stateNode)){var i=t[Ee]||null;t:switch(t=e.stateNode,e.type){case"input":if(Pu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Ze(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var o=l[Ee]||null;if(!o)throw Error(u(90));Pu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<i.length;e++)l=i[e],l.form===t.form&&ly(l)}break t;case"textarea":ry(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&da(t,!!i.multiple,e,!1)}}}var Qu=!1;function dy(t,e,i){if(Qu)return t(e,i);Qu=!0;try{var l=t(e);return l}finally{if(Qu=!1,(ma!==null||pa!==null)&&(zr(),ma&&(e=ma,t=pa,pa=ma=null,fy(e),t)))for(e=0;e<t.length;e++)fy(t[e])}}function Sl(t,e){var i=t.stateNode;if(i===null)return null;var l=i[Ee]||null;if(l===null)return null;i=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(i&&typeof i!="function")throw Error(u(231,e,typeof i));return i}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zu=!1;if(wn)try{var xl={};Object.defineProperty(xl,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{Zu=!1}var Wn=null,Iu=null,Xs=null;function hy(){if(Xs)return Xs;var t,e=Iu,i=e.length,l,o="value"in Wn?Wn.value:Wn.textContent,c=o.length;for(t=0;t<i&&e[t]===o[t];t++);var g=i-t;for(l=1;l<=g&&e[i-l]===o[c-l];l++);return Xs=o.slice(t,1<l?1-l:void 0)}function Fs(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 Ks(){return!0}function my(){return!1}function Te(t){function e(i,l,o,c,g){this._reactName=i,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(i=t[x],this[x]=i?i(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ks:my,this.isPropagationStopped=my,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ks)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),e}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=Te(ji),El=v({},ji,{view:0,detail:0}),xA=Te(El),Ju,Wu,Tl,Zs=v({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tc,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!==Tl&&(Tl&&t.type==="mousemove"?(Ju=t.screenX-Tl.screenX,Wu=t.screenY-Tl.screenY):Wu=Ju=0,Tl=t),Ju)},movementY:function(t){return"movementY"in t?t.movementY:Wu}}),py=Te(Zs),EA=v({},Zs,{dataTransfer:0}),TA=Te(EA),MA=v({},El,{relatedTarget:0}),$u=Te(MA),AA=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),CA=Te(AA),wA=v({},ji,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),RA=Te(wA),DA=v({},ji,{data:0}),yy=Te(DA),jA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zA={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"},BA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LA(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=BA[t])?!!e[t]:!1}function tc(){return LA}var OA=v({},El,{key:function(t){if(t.key){var e=jA[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Fs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?zA[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tc,charCode:function(t){return t.type==="keypress"?Fs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),VA=Te(OA),NA=v({},Zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gy=Te(NA),UA=v({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tc}),_A=Te(UA),HA=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),kA=Te(HA),GA=v({},Zs,{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}),YA=Te(GA),PA=v({},ji,{newState:0,oldState:0}),qA=Te(PA),XA=[9,13,27,32],ec=wn&&"CompositionEvent"in window,Ml=null;wn&&"documentMode"in document&&(Ml=document.documentMode);var FA=wn&&"TextEvent"in window&&!Ml,vy=wn&&(!ec||Ml&&8<Ml&&11>=Ml),by=" ",Sy=!1;function xy(t,e){switch(t){case"keyup":return XA.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ey(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ya=!1;function KA(t,e){switch(t){case"compositionend":return Ey(e);case"keypress":return e.which!==32?null:(Sy=!0,by);case"textInput":return t=e.data,t===by&&Sy?null:t;default:return null}}function QA(t,e){if(ya)return t==="compositionend"||!ec&&xy(t,e)?(t=hy(),Xs=Iu=Wn=null,ya=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vy&&e.locale!=="ko"?null:e.data;default:return null}}var ZA={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 Ty(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ZA[t.type]:e==="textarea"}function My(t,e,i,l){ma?pa?pa.push(l):pa=[l]:ma=l,e=_r(e,"onChange"),0<e.length&&(i=new Qs("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var Al=null,Cl=null;function IA(t){sv(t,0)}function Is(t){var e=bl(t);if(ly(e))return t}function Ay(t,e){if(t==="change")return e}var Cy=!1;if(wn){var nc;if(wn){var ic="oninput"in document;if(!ic){var wy=document.createElement("div");wy.setAttribute("oninput","return;"),ic=typeof wy.oninput=="function"}nc=ic}else nc=!1;Cy=nc&&(!document.documentMode||9<document.documentMode)}function Ry(){Al&&(Al.detachEvent("onpropertychange",Dy),Cl=Al=null)}function Dy(t){if(t.propertyName==="value"&&Is(Cl)){var e=[];My(e,Cl,t,Ku(t)),dy(IA,e)}}function JA(t,e,i){t==="focusin"?(Ry(),Al=e,Cl=i,Al.attachEvent("onpropertychange",Dy)):t==="focusout"&&Ry()}function WA(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Is(Cl)}function $A(t,e){if(t==="click")return Is(e)}function t5(t,e){if(t==="input"||t==="change")return Is(e)}function e5(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ne=typeof Object.is=="function"?Object.is:e5;function wl(t,e){if(Ne(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),l=Object.keys(e);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var o=i[l];if(!mn.call(e,o)||!Ne(t[o],e[o]))return!1}return!0}function jy(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zy(t,e){var i=jy(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=e&&l>=e)return{node:i,offset:e-t};t=l}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=jy(i)}}function By(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?By(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ly(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ps(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=Ps(t.document)}return e}function ac(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 n5=wn&&"documentMode"in document&&11>=document.documentMode,ga=null,lc=null,Rl=null,sc=!1;function Oy(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;sc||ga==null||ga!==Ps(l)||(l=ga,"selectionStart"in l&&ac(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}),Rl&&wl(Rl,l)||(Rl=l,l=_r(lc,"onSelect"),0<l.length&&(e=new Qs("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=ga)))}function zi(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var va={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},rc={},Vy={};wn&&(Vy=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function Bi(t){if(rc[t])return rc[t];if(!va[t])return t;var e=va[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in Vy)return rc[t]=e[i];return t}var Ny=Bi("animationend"),Uy=Bi("animationiteration"),_y=Bi("animationstart"),i5=Bi("transitionrun"),a5=Bi("transitionstart"),l5=Bi("transitioncancel"),Hy=Bi("transitionend"),ky=new Map,oc="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(" ");oc.push("scrollEnd");function on(t,e){ky.set(t,e),Di(e,[t])}var Js=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 n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",t);return}console.error(t)},Ie=[],ba=0,uc=0;function Ws(){for(var t=ba,e=uc=ba=0;e<t;){var i=Ie[e];Ie[e++]=null;var l=Ie[e];Ie[e++]=null;var o=Ie[e];Ie[e++]=null;var c=Ie[e];if(Ie[e++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}c!==0&&Gy(i,o,c)}}function $s(t,e,i,l){Ie[ba++]=t,Ie[ba++]=e,Ie[ba++]=i,Ie[ba++]=l,uc|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function cc(t,e,i,l){return $s(t,e,i,l),tr(t)}function Li(t,e){return $s(t,null,null,e),tr(t)}function Gy(t,e,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var o=!1,c=t.return;c!==null;)c.childLanes|=i,l=c.alternate,l!==null&&(l.childLanes|=i),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-Ve(i),t=c.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=i|536870912),c):null}function tr(t){if(50<Il)throw Il=0,Sf=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Sa={};function s5(t,e,i,l){this.tag=t,this.key=i,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 Ue(t,e,i,l){return new s5(t,e,i,l)}function fc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Rn(t,e){var i=t.alternate;return i===null?(i=Ue(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Yy(t,e){t.flags&=65011714;var i=t.alternate;return i===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=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function er(t,e,i,l,o,c){var g=0;if(l=t,typeof t=="function")fc(t)&&(g=1);else if(typeof t=="string")g=f3(t,i,et.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case nt:return t=Ue(31,i,e,o),t.elementType=nt,t.lanes=c,t;case L:return Oi(i.children,o,c,e);case M:g=8,o|=24;break;case O:return t=Ue(12,i,e,o|2),t.elementType=O,t.lanes=c,t;case J:return t=Ue(13,i,e,o),t.elementType=J,t.lanes=c,t;case k:return t=Ue(19,i,e,o),t.elementType=k,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case q:g=10;break t;case z:g=9;break t;case Z:g=11;break t;case N:g=14;break t;case I:g=16,l=null;break t}g=29,i=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=Ue(g,i,e,o),e.elementType=t,e.type=l,e.lanes=c,e}function Oi(t,e,i,l){return t=Ue(7,t,l,e),t.lanes=i,t}function dc(t,e,i){return t=Ue(6,t,null,e),t.lanes=i,t}function Py(t){var e=Ue(18,null,null,0);return e.stateNode=t,e}function hc(t,e,i){return e=Ue(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var qy=new WeakMap;function Je(t,e){if(typeof t=="object"&&t!==null){var i=qy.get(t);return i!==void 0?i:(e={value:t,source:e,stack:Le(e)},qy.set(t,e),e)}return{value:t,source:e,stack:Le(e)}}var xa=[],Ea=0,nr=null,Dl=0,We=[],$e=0,$n=null,pn=1,yn="";function Dn(t,e){xa[Ea++]=Dl,xa[Ea++]=nr,nr=t,Dl=e}function Xy(t,e,i){We[$e++]=pn,We[$e++]=yn,We[$e++]=$n,$n=t;var l=pn;t=yn;var o=32-Ve(l)-1;l&=~(1<<o),i+=1;var c=32-Ve(e)+o;if(30<c){var g=o-o%5;c=(l&(1<<g)-1).toString(32),l>>=g,o-=g,pn=1<<32-Ve(e)+o|i<<o|l,yn=c+t}else pn=1<<c|i<<o|l,yn=t}function mc(t){t.return!==null&&(Dn(t,1),Xy(t,1,0))}function pc(t){for(;t===nr;)nr=xa[--Ea],xa[Ea]=null,Dl=xa[--Ea],xa[Ea]=null;for(;t===$n;)$n=We[--$e],We[$e]=null,yn=We[--$e],We[$e]=null,pn=We[--$e],We[$e]=null}function Fy(t,e){We[$e++]=pn,We[$e++]=yn,We[$e++]=$n,pn=e.id,yn=e.overflow,$n=t}var de=null,_t=null,At=!1,ti=null,tn=!1,yc=Error(u(519));function ei(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jl(Je(e,t)),yc}function Ky(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[fe]=t,e[Ee]=l,i){case"dialog":Et("cancel",e),Et("close",e);break;case"iframe":case"object":case"embed":Et("load",e);break;case"video":case"audio":for(i=0;i<Wl.length;i++)Et(Wl[i],e);break;case"source":Et("error",e);break;case"img":case"image":case"link":Et("error",e),Et("load",e);break;case"details":Et("toggle",e);break;case"input":Et("invalid",e),sy(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Et("invalid",e);break;case"textarea":Et("invalid",e),oy(e,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||l.suppressHydrationWarning===!0||cv(e.textContent,i)?(l.popover!=null&&(Et("beforetoggle",e),Et("toggle",e)),l.onScroll!=null&&Et("scroll",e),l.onScrollEnd!=null&&Et("scrollend",e),l.onClick!=null&&(e.onclick=Cn),e=!0):e=!1,e||ei(t,!0)}function Qy(t){for(de=t.return;de;)switch(de.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:de=de.return}}function Ta(t){if(t!==de)return!1;if(!At)return Qy(t),At=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Vf(t.type,t.memoizedProps)),i=!i),i&&_t&&ei(t),Qy(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=bv(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=bv(t)}else e===27?(e=_t,pi(t.type)?(t=kf,kf=null,_t=t):_t=e):_t=de?nn(t.stateNode.nextSibling):null;return!0}function Vi(){_t=de=null,At=!1}function gc(){var t=ti;return t!==null&&(we===null?we=t:we.push.apply(we,t),ti=null),t}function jl(t){ti===null?ti=[t]:ti.push(t)}var vc=C(null),Ni=null,jn=null;function ni(t,e,i){W(vc,e._currentValue),e._currentValue=i}function zn(t){t._currentValue=vc.current,H(vc)}function bc(t,e,i){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===i)break;t=t.return}}function Sc(t,e,i,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=o;for(var A=0;A<e.length;A++)if(x.context===e[A]){c.lanes|=i,x=c.alternate,x!==null&&(x.lanes|=i),bc(c.return,i,t),l||(g=null);break t}c=x.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(u(341));g.lanes|=i,c=g.alternate,c!==null&&(c.lanes|=i),bc(g,i,t),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===t){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Ma(t,e,i,l){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var x=o.type;Ne(o.pendingProps.value,g.value)||(t!==null?t.push(x):t=[x])}}else if(o===yt.current){if(g=o.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(is):t=[is])}o=o.return}t!==null&&Sc(e,t,i,l),e.flags|=262144}function ir(t){for(t=t.firstContext;t!==null;){if(!Ne(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ui(t){Ni=t,jn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function he(t){return Zy(Ni,t)}function ar(t,e){return Ni===null&&Ui(t),Zy(t,e)}function Zy(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},jn===null){if(t===null)throw Error(u(308));jn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else jn=jn.next=e;return i}var r5=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},o5=a.unstable_scheduleCallback,u5=a.unstable_NormalPriority,$t={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xc(){return{controller:new r5,data:new Map,refCount:0}}function zl(t){t.refCount--,t.refCount===0&&o5(u5,function(){t.controller.abort()})}var Bl=null,Ec=0,Aa=0,Ca=null;function c5(t,e){if(Bl===null){var i=Bl=[];Ec=0,Aa=Cf(),Ca={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Ec++,e.then(Iy,Iy),e}function Iy(){if(--Ec===0&&Bl!==null){Ca!==null&&(Ca.status="fulfilled");var t=Bl;Bl=null,Aa=0,Ca=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function f5(t,e){var i=[],l={status:"pending",value:null,reason:null,then:function(o){i.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<i.length;o++)(0,i[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<i.length;o++)(0,i[o])(void 0)}),l}var Jy=R.S;R.S=function(t,e){Og=vt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&c5(t,e),Jy!==null&&Jy(t,e)};var _i=C(null);function Tc(){var t=_i.current;return t!==null?t:Vt.pooledCache}function lr(t,e){e===null?W(_i,_i.current):W(_i,e.pool)}function Wy(){var t=Tc();return t===null?null:{parent:$t._currentValue,pool:t}}var wa=Error(u(460)),Mc=Error(u(474)),sr=Error(u(542)),rr={then:function(){}};function $y(t){return t=t.status,t==="fulfilled"||t==="rejected"}function t0(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(Cn,Cn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,n0(t),t;default:if(typeof e.status=="string")e.then(Cn,Cn);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,n0(t),t}throw ki=e,wa}}function Hi(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ki=i,wa):i}}var ki=null;function e0(){if(ki===null)throw Error(u(459));var t=ki;return ki=null,t}function n0(t){if(t===wa||t===sr)throw Error(u(483))}var Ra=null,Ll=0;function or(t){var e=Ll;return Ll+=1,Ra===null&&(Ra=[]),t0(Ra,t,e)}function Ol(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ur(t,e){throw e.$$typeof===T?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function i0(t){function e(j,w){if(t){var V=j.deletions;V===null?(j.deletions=[w],j.flags|=16):V.push(w)}}function i(j,w){if(!t)return null;for(;w!==null;)e(j,w),w=w.sibling;return null}function l(j){for(var w=new Map;j!==null;)j.key!==null?w.set(j.key,j):w.set(j.index,j),j=j.sibling;return w}function o(j,w){return j=Rn(j,w),j.index=0,j.sibling=null,j}function c(j,w,V){return j.index=V,t?(V=j.alternate,V!==null?(V=V.index,V<w?(j.flags|=67108866,w):V):(j.flags|=67108866,w)):(j.flags|=1048576,w)}function g(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function x(j,w,V,X){return w===null||w.tag!==6?(w=dc(V,j.mode,X),w.return=j,w):(w=o(w,V),w.return=j,w)}function A(j,w,V,X){var ft=V.type;return ft===L?P(j,w,V.props.children,X,V.key):w!==null&&(w.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===I&&Hi(ft)===w.type)?(w=o(w,V.props),Ol(w,V),w.return=j,w):(w=er(V.type,V.key,V.props,null,j.mode,X),Ol(w,V),w.return=j,w)}function U(j,w,V,X){return w===null||w.tag!==4||w.stateNode.containerInfo!==V.containerInfo||w.stateNode.implementation!==V.implementation?(w=hc(V,j.mode,X),w.return=j,w):(w=o(w,V.children||[]),w.return=j,w)}function P(j,w,V,X,ft){return w===null||w.tag!==7?(w=Oi(V,j.mode,X,ft),w.return=j,w):(w=o(w,V),w.return=j,w)}function F(j,w,V){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=dc(""+w,j.mode,V),w.return=j,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case D:return V=er(w.type,w.key,w.props,null,j.mode,V),Ol(V,w),V.return=j,V;case B:return w=hc(w,j.mode,V),w.return=j,w;case I:return w=Hi(w),F(j,w,V)}if(K(w)||Q(w))return w=Oi(w,j.mode,V,null),w.return=j,w;if(typeof w.then=="function")return F(j,or(w),V);if(w.$$typeof===q)return F(j,ar(j,w),V);ur(j,w)}return null}function _(j,w,V,X){var ft=w!==null?w.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return ft!==null?null:x(j,w,""+V,X);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case D:return V.key===ft?A(j,w,V,X):null;case B:return V.key===ft?U(j,w,V,X):null;case I:return V=Hi(V),_(j,w,V,X)}if(K(V)||Q(V))return ft!==null?null:P(j,w,V,X,null);if(typeof V.then=="function")return _(j,w,or(V),X);if(V.$$typeof===q)return _(j,w,ar(j,V),X);ur(j,V)}return null}function G(j,w,V,X,ft){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return j=j.get(V)||null,x(w,j,""+X,ft);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case D:return j=j.get(X.key===null?V:X.key)||null,A(w,j,X,ft);case B:return j=j.get(X.key===null?V:X.key)||null,U(w,j,X,ft);case I:return X=Hi(X),G(j,w,V,X,ft)}if(K(X)||Q(X))return j=j.get(V)||null,P(w,j,X,ft,null);if(typeof X.then=="function")return G(j,w,V,or(X),ft);if(X.$$typeof===q)return G(j,w,V,ar(w,X),ft);ur(w,X)}return null}function rt(j,w,V,X){for(var ft=null,Ct=null,ot=w,St=w=0,Mt=null;ot!==null&&St<V.length;St++){ot.index>St?(Mt=ot,ot=null):Mt=ot.sibling;var wt=_(j,ot,V[St],X);if(wt===null){ot===null&&(ot=Mt);break}t&&ot&&wt.alternate===null&&e(j,ot),w=c(wt,w,St),Ct===null?ft=wt:Ct.sibling=wt,Ct=wt,ot=Mt}if(St===V.length)return i(j,ot),At&&Dn(j,St),ft;if(ot===null){for(;St<V.length;St++)ot=F(j,V[St],X),ot!==null&&(w=c(ot,w,St),Ct===null?ft=ot:Ct.sibling=ot,Ct=ot);return At&&Dn(j,St),ft}for(ot=l(ot);St<V.length;St++)Mt=G(ot,j,St,V[St],X),Mt!==null&&(t&&Mt.alternate!==null&&ot.delete(Mt.key===null?St:Mt.key),w=c(Mt,w,St),Ct===null?ft=Mt:Ct.sibling=Mt,Ct=Mt);return t&&ot.forEach(function(Si){return e(j,Si)}),At&&Dn(j,St),ft}function ht(j,w,V,X){if(V==null)throw Error(u(151));for(var ft=null,Ct=null,ot=w,St=w=0,Mt=null,wt=V.next();ot!==null&&!wt.done;St++,wt=V.next()){ot.index>St?(Mt=ot,ot=null):Mt=ot.sibling;var Si=_(j,ot,wt.value,X);if(Si===null){ot===null&&(ot=Mt);break}t&&ot&&Si.alternate===null&&e(j,ot),w=c(Si,w,St),Ct===null?ft=Si:Ct.sibling=Si,Ct=Si,ot=Mt}if(wt.done)return i(j,ot),At&&Dn(j,St),ft;if(ot===null){for(;!wt.done;St++,wt=V.next())wt=F(j,wt.value,X),wt!==null&&(w=c(wt,w,St),Ct===null?ft=wt:Ct.sibling=wt,Ct=wt);return At&&Dn(j,St),ft}for(ot=l(ot);!wt.done;St++,wt=V.next())wt=G(ot,j,St,wt.value,X),wt!==null&&(t&&wt.alternate!==null&&ot.delete(wt.key===null?St:wt.key),w=c(wt,w,St),Ct===null?ft=wt:Ct.sibling=wt,Ct=wt);return t&&ot.forEach(function(E3){return e(j,E3)}),At&&Dn(j,St),ft}function Ot(j,w,V,X){if(typeof V=="object"&&V!==null&&V.type===L&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case D:t:{for(var ft=V.key;w!==null;){if(w.key===ft){if(ft=V.type,ft===L){if(w.tag===7){i(j,w.sibling),X=o(w,V.props.children),X.return=j,j=X;break t}}else if(w.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===I&&Hi(ft)===w.type){i(j,w.sibling),X=o(w,V.props),Ol(X,V),X.return=j,j=X;break t}i(j,w);break}else e(j,w);w=w.sibling}V.type===L?(X=Oi(V.props.children,j.mode,X,V.key),X.return=j,j=X):(X=er(V.type,V.key,V.props,null,j.mode,X),Ol(X,V),X.return=j,j=X)}return g(j);case B:t:{for(ft=V.key;w!==null;){if(w.key===ft)if(w.tag===4&&w.stateNode.containerInfo===V.containerInfo&&w.stateNode.implementation===V.implementation){i(j,w.sibling),X=o(w,V.children||[]),X.return=j,j=X;break t}else{i(j,w);break}else e(j,w);w=w.sibling}X=hc(V,j.mode,X),X.return=j,j=X}return g(j);case I:return V=Hi(V),Ot(j,w,V,X)}if(K(V))return rt(j,w,V,X);if(Q(V)){if(ft=Q(V),typeof ft!="function")throw Error(u(150));return V=ft.call(V),ht(j,w,V,X)}if(typeof V.then=="function")return Ot(j,w,or(V),X);if(V.$$typeof===q)return Ot(j,w,ar(j,V),X);ur(j,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,w!==null&&w.tag===6?(i(j,w.sibling),X=o(w,V),X.return=j,j=X):(i(j,w),X=dc(V,j.mode,X),X.return=j,j=X),g(j)):i(j,w)}return function(j,w,V,X){try{Ll=0;var ft=Ot(j,w,V,X);return Ra=null,ft}catch(ot){if(ot===wa||ot===sr)throw ot;var Ct=Ue(29,ot,null,j.mode);return Ct.lanes=X,Ct.return=j,Ct}finally{}}}var Gi=i0(!0),a0=i0(!1),ii=!1;function Ac(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cc(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 ai(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function li(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=tr(t),Gy(t,null,i),e}return $s(t,l,e,i),tr(t)}function Vl(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Zp(t,i)}}function wc(t,e){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,i=i.next}while(i!==null);c===null?o=c=e:c=c.next=e}else o=c=e;i={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var Rc=!1;function Nl(){if(Rc){var t=Ca;if(t!==null)throw t}}function Ul(t,e,i,l){Rc=!1;var o=t.updateQueue;ii=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var A=x,U=A.next;A.next=null,g===null?c=U:g.next=U,g=A;var P=t.alternate;P!==null&&(P=P.updateQueue,x=P.lastBaseUpdate,x!==g&&(x===null?P.firstBaseUpdate=U:x.next=U,P.lastBaseUpdate=A))}if(c!==null){var F=o.baseState;g=0,P=U=A=null,x=c;do{var _=x.lane&-536870913,G=_!==x.lane;if(G?(Tt&_)===_:(l&_)===_){_!==0&&_===Aa&&(Rc=!0),P!==null&&(P=P.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var rt=t,ht=x;_=e;var Ot=i;switch(ht.tag){case 1:if(rt=ht.payload,typeof rt=="function"){F=rt.call(Ot,F,_);break t}F=rt;break t;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=ht.payload,_=typeof rt=="function"?rt.call(Ot,F,_):rt,_==null)break t;F=v({},F,_);break t;case 2:ii=!0}}_=x.callback,_!==null&&(t.flags|=64,G&&(t.flags|=8192),G=o.callbacks,G===null?o.callbacks=[_]:G.push(_))}else G={lane:_,tag:x.tag,payload:x.payload,callback:x.callback,next:null},P===null?(U=P=G,A=F):P=P.next=G,g|=_;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;G=x,x=G.next,G.next=null,o.lastBaseUpdate=G,o.shared.pending=null}}while(!0);P===null&&(A=F),o.baseState=A,o.firstBaseUpdate=U,o.lastBaseUpdate=P,c===null&&(o.shared.lanes=0),ci|=g,t.lanes=g,t.memoizedState=F}}function l0(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function s0(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)l0(i[t],e)}var Da=C(null),cr=C(0);function r0(t,e){t=kn,W(cr,t),W(Da,e),kn=t|e.baseLanes}function Dc(){W(cr,kn),W(Da,Da.current)}function jc(){kn=cr.current,H(Da),H(cr)}var _e=C(null),en=null;function si(t){var e=t.alternate;W(Zt,Zt.current&1),W(_e,t),en===null&&(e===null||Da.current!==null||e.memoizedState!==null)&&(en=t)}function zc(t){W(Zt,Zt.current),W(_e,t),en===null&&(en=t)}function o0(t){t.tag===22?(W(Zt,Zt.current),W(_e,t),en===null&&(en=t)):ri()}function ri(){W(Zt,Zt.current),W(_e,_e.current)}function He(t){H(_e),en===t&&(en=null),H(Zt)}var Zt=C(0);function fr(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||_f(i)||Hf(i)))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,bt=null,Bt=null,te=null,dr=!1,ja=!1,Yi=!1,hr=0,_l=0,za=null,d5=0;function Ft(){throw Error(u(321))}function Bc(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Ne(t[i],e[i]))return!1;return!0}function Lc(t,e,i,l,o,c){return Bn=c,bt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?X0:Qc,Yi=!1,c=i(l,o),Yi=!1,ja&&(c=c0(e,i,l,o)),u0(t),c}function u0(t){R.H=Gl;var e=Bt!==null&&Bt.next!==null;if(Bn=0,te=Bt=bt=null,dr=!1,_l=0,za=null,e)throw Error(u(300));t===null||ee||(t=t.dependencies,t!==null&&ir(t)&&(ee=!0))}function c0(t,e,i,l){bt=t;var o=0;do{if(ja&&(za=null),_l=0,ja=!1,25<=o)throw Error(u(301));if(o+=1,te=Bt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}R.H=F0,c=e(i,l)}while(ja);return c}function h5(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?Hl(e):e,t=t.useState()[0],(Bt!==null?Bt.memoizedState:null)!==t&&(bt.flags|=1024),e}function Oc(){var t=hr!==0;return hr=0,t}function Vc(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function Nc(t){if(dr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}dr=!1}Bn=0,te=Bt=bt=null,ja=!1,_l=hr=0,za=null}function Se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?bt.memoizedState=te=t:te=te.next=t,te}function It(){if(Bt===null){var t=bt.alternate;t=t!==null?t.memoizedState:null}else t=Bt.next;var e=te===null?bt.memoizedState:te.next;if(e!==null)te=e,Bt=t;else{if(t===null)throw bt.alternate===null?Error(u(467)):Error(u(310));Bt=t,t={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},te===null?bt.memoizedState=te=t:te=te.next=t}return te}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hl(t){var e=_l;return _l+=1,za===null&&(za=[]),t=t0(za,t,e),e=bt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?X0:Qc),t}function pr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Hl(t);if(t.$$typeof===q)return he(t)}throw Error(u(438,String(t)))}function Uc(t){var e=null,i=bt.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=bt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=mr(),bt.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),l=0;l<t;l++)i[l]=st;return e.index++,i}function Ln(t,e){return typeof e=="function"?e(t):e}function yr(t){var e=It();return _c(e,Bt,t)}function _c(t,e,i){var l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=i;var o=t.baseQueue,c=l.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}e.baseQueue=o=c,l.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var x=g=null,A=null,U=e,P=!1;do{var F=U.lane&-536870913;if(F!==U.lane?(Tt&F)===F:(Bn&F)===F){var _=U.revertLane;if(_===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),F===Aa&&(P=!0);else if((Bn&_)===_){U=U.next,_===Aa&&(P=!0);continue}else F={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(x=A=F,g=c):A=A.next=F,bt.lanes|=_,ci|=_;F=U.action,Yi&&i(c,F),c=U.hasEagerState?U.eagerState:i(c,F)}else _={lane:F,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(x=A=_,g=c):A=A.next=_,bt.lanes|=F,ci|=F;U=U.next}while(U!==null&&U!==e);if(A===null?g=c:A.next=x,!Ne(c,t.memoizedState)&&(ee=!0,P&&(i=Ca,i!==null)))throw i;t.memoizedState=c,t.baseState=g,t.baseQueue=A,l.lastRenderedState=c}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Hc(t){var e=It(),i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=t;var l=i.dispatch,o=i.pending,c=e.memoizedState;if(o!==null){i.pending=null;var g=o=o.next;do c=t(c,g.action),g=g.next;while(g!==o);Ne(c,e.memoizedState)||(ee=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function f0(t,e,i){var l=bt,o=It(),c=At;if(c){if(i===void 0)throw Error(u(407));i=i()}else i=e();var g=!Ne((Bt||o).memoizedState,i);if(g&&(o.memoizedState=i,ee=!0),o=o.queue,Yc(m0.bind(null,l,o,t),[t]),o.getSnapshot!==e||g||te!==null&&te.memoizedState.tag&1){if(l.flags|=2048,Ba(9,{destroy:void 0},h0.bind(null,l,o,i,e),null),Vt===null)throw Error(u(349));c||(Bn&127)!==0||d0(l,e,i)}return i}function d0(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=bt.updateQueue,e===null?(e=mr(),bt.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function h0(t,e,i,l){e.value=i,e.getSnapshot=l,p0(e)&&y0(t)}function m0(t,e,i){return i(function(){p0(e)&&y0(t)})}function p0(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Ne(t,i)}catch{return!0}}function y0(t){var e=Li(t,2);e!==null&&Re(e,t,2)}function kc(t){var e=Se();if(typeof t=="function"){var i=t;if(t=i(),Yi){In(!0);try{i()}finally{In(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:t},e}function g0(t,e,i,l){return t.baseState=i,_c(t,Bt,typeof l=="function"?l:Ln)}function m5(t,e,i,l,o){if(br(t))throw Error(u(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};R.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,v0(e,c)):(c.next=i.next,e.pending=i.next=c)}}function v0(t,e){var i=e.action,l=e.payload,o=t.state;if(e.isTransition){var c=R.T,g={};R.T=g;try{var x=i(o,l),A=R.S;A!==null&&A(g,x),b0(t,e,x)}catch(U){Gc(t,e,U)}finally{c!==null&&g.types!==null&&(c.types=g.types),R.T=c}}else try{c=i(o,l),b0(t,e,c)}catch(U){Gc(t,e,U)}}function b0(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){S0(t,e,l)},function(l){return Gc(t,e,l)}):S0(t,e,i)}function S0(t,e,i){e.status="fulfilled",e.value=i,x0(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,v0(t,i)))}function Gc(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,x0(e),e=e.next;while(e!==l)}t.action=null}function x0(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function E0(t,e){return e}function T0(t,e){if(At){var i=Vt.formState;if(i!==null){t:{var l=bt;if(At){if(_t){e:{for(var o=_t,c=tn;o.nodeType!==8;){if(!c){o=null;break e}if(o=nn(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){_t=nn(o.nextSibling),l=o.data==="F!";break t}}ei(l)}l=!1}l&&(e=i[0])}}return i=Se(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:E0,lastRenderedState:e},i.queue=l,i=Y0.bind(null,bt,l),l.dispatch=i,l=kc(!1),c=Kc.bind(null,bt,!1,l.queue),l=Se(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,i=m5.bind(null,bt,o,c,i),o.dispatch=i,l.memoizedState=t,[e,i,!1]}function M0(t){var e=It();return A0(e,Bt,t)}function A0(t,e,i){if(e=_c(t,e,E0)[0],t=yr(Ln)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Hl(e)}catch(g){throw g===wa?sr:g}else l=e;e=It();var o=e.queue,c=o.dispatch;return i!==e.memoizedState&&(bt.flags|=2048,Ba(9,{destroy:void 0},p5.bind(null,o,i),null)),[l,c,t]}function p5(t,e){t.action=e}function C0(t){var e=It(),i=Bt;if(i!==null)return A0(e,i,t);It(),e=e.memoizedState,i=It();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function Ba(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=bt.updateQueue,e===null&&(e=mr(),bt.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,e.lastEffect=t),t}function w0(){return It().memoizedState}function gr(t,e,i,l){var o=Se();bt.flags|=t,o.memoizedState=Ba(1|e,{destroy:void 0},i,l===void 0?null:l)}function vr(t,e,i,l){var o=It();l=l===void 0?null:l;var c=o.memoizedState.inst;Bt!==null&&l!==null&&Bc(l,Bt.memoizedState.deps)?o.memoizedState=Ba(e,c,i,l):(bt.flags|=t,o.memoizedState=Ba(1|e,c,i,l))}function R0(t,e){gr(8390656,8,t,e)}function Yc(t,e){vr(2048,8,t,e)}function y5(t){bt.flags|=4;var e=bt.updateQueue;if(e===null)e=mr(),bt.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function D0(t){var e=It().memoizedState;return y5({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function j0(t,e){return vr(4,2,t,e)}function z0(t,e){return vr(4,4,t,e)}function B0(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function L0(t,e,i){i=i!=null?i.concat([t]):null,vr(4,4,B0.bind(null,e,t),i)}function Pc(){}function O0(t,e){var i=It();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&Bc(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function V0(t,e){var i=It();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&Bc(e,l[1]))return l[0];if(l=t(),Yi){In(!0);try{t()}finally{In(!1)}}return i.memoizedState=[l,e],l}function qc(t,e,i){return i===void 0||(Bn&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Ng(),bt.lanes|=t,ci|=t,i)}function N0(t,e,i,l){return Ne(i,e)?i:Da.current!==null?(t=qc(t,i,l),Ne(t,e)||(ee=!0),t):(Bn&42)===0||(Bn&1073741824)!==0&&(Tt&261930)===0?(ee=!0,t.memoizedState=i):(t=Ng(),bt.lanes|=t,ci|=t,e)}function U0(t,e,i,l,o){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=R.T,x={};R.T=x,Kc(t,!1,e,i);try{var A=o(),U=R.S;if(U!==null&&U(x,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var P=f5(A,l);kl(t,e,P,Ye(t))}else kl(t,e,l,Ye(t))}catch(F){kl(t,e,{then:function(){},status:"rejected",reason:F},Ye())}finally{Y.p=c,g!==null&&x.types!==null&&(g.types=x.types),R.T=g}}function g5(){}function Xc(t,e,i,l){if(t.tag!==5)throw Error(u(476));var o=_0(t).queue;U0(t,o,e,it,i===null?g5:function(){return H0(t),i(l)})}function _0(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:it},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function H0(t){var e=_0(t);e.next===null&&(e=t.alternate.memoizedState),kl(t,e.next.queue,{},Ye())}function Fc(){return he(is)}function k0(){return It().memoizedState}function G0(){return It().memoizedState}function v5(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=Ye();t=ai(i);var l=li(e,t,i);l!==null&&(Re(l,e,i),Vl(l,e,i)),e={cache:xc()},t.payload=e;return}e=e.return}}function b5(t,e,i){var l=Ye();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},br(t)?P0(e,i):(i=cc(t,e,i,l),i!==null&&(Re(i,t,l),q0(i,e,l)))}function Y0(t,e,i){var l=Ye();kl(t,e,i,l)}function kl(t,e,i,l){var o={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(br(t))P0(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var g=e.lastRenderedState,x=c(g,i);if(o.hasEagerState=!0,o.eagerState=x,Ne(x,g))return $s(t,e,o,0),Vt===null&&Ws(),!1}catch{}finally{}if(i=cc(t,e,o,l),i!==null)return Re(i,t,l),q0(i,e,l),!0}return!1}function Kc(t,e,i,l){if(l={lane:2,revertLane:Cf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},br(t)){if(e)throw Error(u(479))}else e=cc(t,i,l,2),e!==null&&Re(e,t,2)}function br(t){var e=t.alternate;return t===bt||e!==null&&e===bt}function P0(t,e){ja=dr=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function q0(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Zp(t,i)}}var Gl={readContext:he,use:pr,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useLayoutEffect:Ft,useInsertionEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useSyncExternalStore:Ft,useId:Ft,useHostTransitionStatus:Ft,useFormState:Ft,useActionState:Ft,useOptimistic:Ft,useMemoCache:Ft,useCacheRefresh:Ft};Gl.useEffectEvent=Ft;var X0={readContext:he,use:pr,useCallback:function(t,e){return Se().memoizedState=[t,e===void 0?null:e],t},useContext:he,useEffect:R0,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,gr(4194308,4,B0.bind(null,e,t),i)},useLayoutEffect:function(t,e){return gr(4194308,4,t,e)},useInsertionEffect:function(t,e){gr(4,2,t,e)},useMemo:function(t,e){var i=Se();e=e===void 0?null:e;var l=t();if(Yi){In(!0);try{t()}finally{In(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=Se();if(i!==void 0){var o=i(e);if(Yi){In(!0);try{i(e)}finally{In(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=b5.bind(null,bt,t),[l.memoizedState,t]},useRef:function(t){var e=Se();return t={current:t},e.memoizedState=t},useState:function(t){t=kc(t);var e=t.queue,i=Y0.bind(null,bt,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:Pc,useDeferredValue:function(t,e){var i=Se();return qc(i,t,e)},useTransition:function(){var t=kc(!1);return t=U0.bind(null,bt,t.queue,!0,!1),Se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=bt,o=Se();if(At){if(i===void 0)throw Error(u(407));i=i()}else{if(i=e(),Vt===null)throw Error(u(349));(Tt&127)!==0||d0(l,e,i)}o.memoizedState=i;var c={value:i,getSnapshot:e};return o.queue=c,R0(m0.bind(null,l,c,t),[t]),l.flags|=2048,Ba(9,{destroy:void 0},h0.bind(null,l,c,i,e),null),i},useId:function(){var t=Se(),e=Vt.identifierPrefix;if(At){var i=yn,l=pn;i=(l&~(1<<32-Ve(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=hr++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=d5++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Fc,useFormState:T0,useActionState:T0,useOptimistic:function(t){var e=Se();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Kc.bind(null,bt,!0,i),i.dispatch=e,[t,e]},useMemoCache:Uc,useCacheRefresh:function(){return Se().memoizedState=v5.bind(null,bt)},useEffectEvent:function(t){var e=Se(),i={impl:t};return e.memoizedState=i,function(){if((Dt&2)!==0)throw Error(u(440));return i.impl.apply(void 0,arguments)}}},Qc={readContext:he,use:pr,useCallback:O0,useContext:he,useEffect:Yc,useImperativeHandle:L0,useInsertionEffect:j0,useLayoutEffect:z0,useMemo:V0,useReducer:yr,useRef:w0,useState:function(){return yr(Ln)},useDebugValue:Pc,useDeferredValue:function(t,e){var i=It();return N0(i,Bt.memoizedState,t,e)},useTransition:function(){var t=yr(Ln)[0],e=It().memoizedState;return[typeof t=="boolean"?t:Hl(t),e]},useSyncExternalStore:f0,useId:k0,useHostTransitionStatus:Fc,useFormState:M0,useActionState:M0,useOptimistic:function(t,e){var i=It();return g0(i,Bt,t,e)},useMemoCache:Uc,useCacheRefresh:G0};Qc.useEffectEvent=D0;var F0={readContext:he,use:pr,useCallback:O0,useContext:he,useEffect:Yc,useImperativeHandle:L0,useInsertionEffect:j0,useLayoutEffect:z0,useMemo:V0,useReducer:Hc,useRef:w0,useState:function(){return Hc(Ln)},useDebugValue:Pc,useDeferredValue:function(t,e){var i=It();return Bt===null?qc(i,t,e):N0(i,Bt.memoizedState,t,e)},useTransition:function(){var t=Hc(Ln)[0],e=It().memoizedState;return[typeof t=="boolean"?t:Hl(t),e]},useSyncExternalStore:f0,useId:k0,useHostTransitionStatus:Fc,useFormState:C0,useActionState:C0,useOptimistic:function(t,e){var i=It();return Bt!==null?g0(i,Bt,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Uc,useCacheRefresh:G0};F0.useEffectEvent=D0;function Zc(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:v({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Ic={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=Ye(),o=ai(l);o.payload=e,i!=null&&(o.callback=i),e=li(t,o,l),e!==null&&(Re(e,t,l),Vl(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=Ye(),o=ai(l);o.tag=1,o.payload=e,i!=null&&(o.callback=i),e=li(t,o,l),e!==null&&(Re(e,t,l),Vl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=Ye(),l=ai(i);l.tag=2,e!=null&&(l.callback=e),e=li(t,l,i),e!==null&&(Re(e,t,i),Vl(e,t,i))}};function K0(t,e,i,l,o,c,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,g):e.prototype&&e.prototype.isPureReactComponent?!wl(i,l)||!wl(o,c):!0}function Q0(t,e,i,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,l),e.state!==t&&Ic.enqueueReplaceState(e,e.state,null)}function Pi(t,e){var i=e;if("ref"in e){i={};for(var l in e)l!=="ref"&&(i[l]=e[l])}if(t=t.defaultProps){i===e&&(i=v({},i));for(var o in t)i[o]===void 0&&(i[o]=t[o])}return i}function Z0(t){Js(t)}function I0(t){console.error(t)}function J0(t){Js(t)}function Sr(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function W0(t,e,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Jc(t,e,i){return i=ai(i),i.tag=3,i.payload={element:null},i.callback=function(){Sr(t,e)},i}function $0(t){return t=ai(t),t.tag=3,t}function tg(t,e,i,l){var o=i.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;t.payload=function(){return o(c)},t.callback=function(){W0(e,i,l)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){W0(e,i,l),typeof o!="function"&&(fi===null?fi=new Set([this]):fi.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function S5(t,e,i,l,o){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&Ma(e,i,o,!0),i=_e.current,i!==null){switch(i.tag){case 31:case 13:return en===null?Br():i.alternate===null&&Kt===0&&(Kt=3),i.flags&=-257,i.flags|=65536,i.lanes=o,l===rr?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),Tf(t,l,o)),!1;case 22:return i.flags|=65536,l===rr?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([l]):i.add(l)),Tf(t,l,o)),!1}throw Error(u(435,i.tag))}return Tf(t,l,o),Br(),!1}if(At)return e=_e.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==yc&&(t=Error(u(422),{cause:l}),jl(Je(t,i)))):(l!==yc&&(e=Error(u(423),{cause:l}),jl(Je(e,i))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=Je(l,i),o=Jc(t.stateNode,l,o),wc(t,o),Kt!==4&&(Kt=2)),!1;var c=Error(u(520),{cause:l});if(c=Je(c,i),Zl===null?Zl=[c]:Zl.push(c),Kt!==4&&(Kt=2),e===null)return!0;l=Je(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=o&-o,i.lanes|=t,t=Jc(i.stateNode,l,t),wc(i,t),!1;case 1:if(e=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(fi===null||!fi.has(c))))return i.flags|=65536,o&=-o,i.lanes|=o,o=$0(o),tg(o,t,i,l),wc(i,o),!1}i=i.return}while(i!==null);return!1}var Wc=Error(u(461)),ee=!1;function me(t,e,i,l){e.child=t===null?a0(e,null,i,l):Gi(e,t.child,i,l)}function eg(t,e,i,l,o){i=i.render;var c=e.ref;if("ref"in l){var g={};for(var x in l)x!=="ref"&&(g[x]=l[x])}else g=l;return Ui(e),l=Lc(t,e,i,g,c,o),x=Oc(),t!==null&&!ee?(Vc(t,e,o),On(t,e,o)):(At&&x&&mc(e),e.flags|=1,me(t,e,l,o),e.child)}function ng(t,e,i,l,o){if(t===null){var c=i.type;return typeof c=="function"&&!fc(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,ig(t,e,c,l,o)):(t=er(i.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!rf(t,o)){var g=c.memoizedProps;if(i=i.compare,i=i!==null?i:wl,i(g,l)&&t.ref===e.ref)return On(t,e,o)}return e.flags|=1,t=Rn(c,l),t.ref=e.ref,t.return=e,e.child=t}function ig(t,e,i,l,o){if(t!==null){var c=t.memoizedProps;if(wl(c,l)&&t.ref===e.ref)if(ee=!1,e.pendingProps=l=c,rf(t,o))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,On(t,e,o)}return $c(t,e,i,l,o)}function ag(t,e,i,l){var o=l.children,c=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(c=c!==null?c.baseLanes|i:i,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,e.child=null;return lg(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&lr(e,c!==null?c.cachePool:null),c!==null?r0(e,c):Dc(),o0(e);else return l=e.lanes=536870912,lg(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(lr(e,c.cachePool),r0(e,c),ri(),e.memoizedState=null):(t!==null&&lr(e,null),Dc(),ri());return me(t,e,o,i),e.child}function Yl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function lg(t,e,i,l,o){var c=Tc();return c=c===null?null:{parent:$t._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&lr(e,null),Dc(),o0(e),t!==null&&Ma(t,e,l,!0),e.childLanes=o,null}function xr(t,e){return e=Tr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function sg(t,e,i){return Gi(e,t.child,null,i),t=xr(e,e.pendingProps),t.flags|=2,He(e),e.memoizedState=null,t}function x5(t,e,i){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(At){if(l.mode==="hidden")return t=xr(e,l),e.lanes=536870912,Yl(null,t);if(zc(e),(t=_t)?(t=vv(t,tn),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:$n!==null?{id:pn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},i=Py(t),i.return=e,e.child=i,de=e,_t=null)):t=null,t===null)throw ei(e);return e.lanes=536870912,null}return xr(e,l)}var c=t.memoizedState;if(c!==null){var g=c.dehydrated;if(zc(e),o)if(e.flags&256)e.flags&=-257,e=sg(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(ee||Ma(t,e,i,!1),o=(i&t.childLanes)!==0,ee||o){if(l=Vt,l!==null&&(g=Ip(l,i),g!==0&&g!==c.retryLane))throw c.retryLane=g,Li(t,g),Re(l,t,g),Wc;Br(),e=sg(t,e,i)}else t=c.treeContext,_t=nn(g.nextSibling),de=e,At=!0,ti=null,tn=!1,t!==null&&Fy(e,t),e=xr(e,l),e.flags|=4096;return e}return t=Rn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Er(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(u(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function $c(t,e,i,l,o){return Ui(e),i=Lc(t,e,i,l,void 0,o),l=Oc(),t!==null&&!ee?(Vc(t,e,o),On(t,e,o)):(At&&l&&mc(e),e.flags|=1,me(t,e,i,o),e.child)}function rg(t,e,i,l,o,c){return Ui(e),e.updateQueue=null,i=c0(e,l,i,o),u0(t),l=Oc(),t!==null&&!ee?(Vc(t,e,c),On(t,e,c)):(At&&l&&mc(e),e.flags|=1,me(t,e,i,c),e.child)}function og(t,e,i,l,o){if(Ui(e),e.stateNode===null){var c=Sa,g=i.contextType;typeof g=="object"&&g!==null&&(c=he(g)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ic,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},Ac(e),g=i.contextType,c.context=typeof g=="object"&&g!==null?he(g):Sa,c.state=e.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Zc(e,i,g,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Ic.enqueueReplaceState(c,c.state,null),Ul(e,l,c,o),Nl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,A=Pi(i,x);c.props=A;var U=c.context,P=i.contextType;g=Sa,typeof P=="object"&&P!==null&&(g=he(P));var F=i.getDerivedStateFromProps;P=typeof F=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,P||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||U!==g)&&Q0(e,c,l,g),ii=!1;var _=e.memoizedState;c.state=_,Ul(e,l,c,o),Nl(),U=e.memoizedState,x||_!==U||ii?(typeof F=="function"&&(Zc(e,i,F,l),U=e.memoizedState),(A=ii||K0(e,i,A,l,_,U,g))?(P||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=U),c.props=l,c.state=U,c.context=g,l=A):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,Cc(t,e),g=e.memoizedProps,P=Pi(i,g),c.props=P,F=e.pendingProps,_=c.context,U=i.contextType,A=Sa,typeof U=="object"&&U!==null&&(A=he(U)),x=i.getDerivedStateFromProps,(U=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==F||_!==A)&&Q0(e,c,l,A),ii=!1,_=e.memoizedState,c.state=_,Ul(e,l,c,o),Nl();var G=e.memoizedState;g!==F||_!==G||ii||t!==null&&t.dependencies!==null&&ir(t.dependencies)?(typeof x=="function"&&(Zc(e,i,x,l),G=e.memoizedState),(P=ii||K0(e,i,P,l,_,G,A)||t!==null&&t.dependencies!==null&&ir(t.dependencies))?(U||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,G,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,G,A)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=G),c.props=l,c.state=G,c.context=A,l=P):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,Er(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Gi(e,t.child,null,o),e.child=Gi(e,null,i,o)):me(t,e,i,o),e.memoizedState=c.state,t=e.child):t=On(t,e,o),t}function ug(t,e,i,l){return Vi(),e.flags|=256,me(t,e,i,l),e.child}var tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ef(t){return{baseLanes:t,cachePool:Wy()}}function nf(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Ge),t}function cg(t,e,i){var l=e.pendingProps,o=!1,c=(e.flags&128)!==0,g;if((g=c)||(g=t!==null&&t.memoizedState===null?!1:(Zt.current&2)!==0),g&&(o=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(At){if(o?si(e):ri(),(t=_t)?(t=vv(t,tn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:$n!==null?{id:pn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},i=Py(t),i.return=e,e.child=i,de=e,_t=null)):t=null,t===null)throw ei(e);return Hf(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,o?(ri(),o=e.mode,x=Tr({mode:"hidden",children:x},o),l=Oi(l,o,i,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=ef(i),l.childLanes=nf(t,g,i),e.memoizedState=tf,Yl(null,l)):(si(e),af(e,x))}var A=t.memoizedState;if(A!==null&&(x=A.dehydrated,x!==null)){if(c)e.flags&256?(si(e),e.flags&=-257,e=lf(t,e,i)):e.memoizedState!==null?(ri(),e.child=t.child,e.flags|=128,e=null):(ri(),x=l.fallback,o=e.mode,l=Tr({mode:"visible",children:l.children},o),x=Oi(x,o,i,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,Gi(e,t.child,null,i),l=e.child,l.memoizedState=ef(i),l.childLanes=nf(t,g,i),e.memoizedState=tf,e=Yl(null,l));else if(si(e),Hf(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var U=g.dgst;g=U,l=Error(u(419)),l.stack="",l.digest=g,jl({value:l,source:null,stack:null}),e=lf(t,e,i)}else if(ee||Ma(t,e,i,!1),g=(i&t.childLanes)!==0,ee||g){if(g=Vt,g!==null&&(l=Ip(g,i),l!==0&&l!==A.retryLane))throw A.retryLane=l,Li(t,l),Re(g,t,l),Wc;_f(x)||Br(),e=lf(t,e,i)}else _f(x)?(e.flags|=192,e.child=t.child,e=null):(t=A.treeContext,_t=nn(x.nextSibling),de=e,At=!0,ti=null,tn=!1,t!==null&&Fy(e,t),e=af(e,l.children),e.flags|=4096);return e}return o?(ri(),x=l.fallback,o=e.mode,A=t.child,U=A.sibling,l=Rn(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,U!==null?x=Rn(U,x):(x=Oi(x,o,i,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Yl(null,l),l=e.child,x=t.child.memoizedState,x===null?x=ef(i):(o=x.cachePool,o!==null?(A=$t._currentValue,o=o.parent!==A?{parent:A,pool:A}:o):o=Wy(),x={baseLanes:x.baseLanes|i,cachePool:o}),l.memoizedState=x,l.childLanes=nf(t,g,i),e.memoizedState=tf,Yl(t.child,l)):(si(e),i=t.child,t=i.sibling,i=Rn(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=i,e.memoizedState=null,i)}function af(t,e){return e=Tr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Tr(t,e){return t=Ue(22,t,null,e),t.lanes=0,t}function lf(t,e,i){return Gi(e,t.child,null,i),t=af(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function fg(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),bc(t.return,e,i)}function sf(t,e,i,l,o,c){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:o,treeForkCount:c}:(g.isBackwards=e,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=i,g.tailMode=o,g.treeForkCount=c)}function dg(t,e,i){var l=e.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var g=Zt.current,x=(g&2)!==0;if(x?(g=g&1|2,e.flags|=128):g&=1,W(Zt,g),me(t,e,l,i),l=At?Dl:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&fg(t,i,e);else if(t.tag===19)fg(t,i,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(o){case"forwards":for(i=e.child,o=null;i!==null;)t=i.alternate,t!==null&&fr(t)===null&&(o=i),i=i.sibling;i=o,i===null?(o=e.child,e.child=null):(o=i.sibling,i.sibling=null),sf(e,!1,o,i,c,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&fr(t)===null){e.child=o;break}t=o.sibling,o.sibling=i,i=o,o=t}sf(e,!0,i,null,c,l);break;case"together":sf(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function On(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),ci|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(Ma(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,i=Rn(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=Rn(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function rf(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ir(t)))}function E5(t,e,i){switch(e.tag){case 3:Gt(e,e.stateNode.containerInfo),ni(e,$t,t.memoizedState.cache),Vi();break;case 27:case 5:be(e);break;case 4:Gt(e,e.stateNode.containerInfo);break;case 10:ni(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,zc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(si(e),e.flags|=128,null):(i&e.child.childLanes)!==0?cg(t,e,i):(si(e),t=On(t,e,i),t!==null?t.sibling:null);si(e);break;case 19:var o=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(Ma(t,e,i,!1),l=(i&e.childLanes)!==0),o){if(l)return dg(t,e,i);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),W(Zt,Zt.current),l)break;return null;case 22:return e.lanes=0,ag(t,e,i,e.pendingProps);case 24:ni(e,$t,t.memoizedState.cache)}return On(t,e,i)}function hg(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!rf(t,i)&&(e.flags&128)===0)return ee=!1,E5(t,e,i);ee=(t.flags&131072)!==0}else ee=!1,At&&(e.flags&1048576)!==0&&Xy(e,Dl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Hi(e.elementType),e.type=t,typeof t=="function")fc(t)?(l=Pi(t,l),e.tag=1,e=og(null,e,t,l,i)):(e.tag=0,e=$c(null,e,t,l,i));else{if(t!=null){var o=t.$$typeof;if(o===Z){e.tag=11,e=eg(null,e,t,l,i);break t}else if(o===N){e.tag=14,e=ng(null,e,t,l,i);break t}}throw e=at(t)||t,Error(u(306,e,""))}}return e;case 0:return $c(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,o=Pi(l,e.pendingProps),og(t,e,l,o,i);case 3:t:{if(Gt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var c=e.memoizedState;o=c.element,Cc(t,e),Ul(e,l,null,i);var g=e.memoizedState;if(l=g.cache,ni(e,$t,l),l!==c.cache&&Sc(e,[$t],i,!0),Nl(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=ug(t,e,l,i);break t}else if(l!==o){o=Je(Error(u(424)),e),jl(o),e=ug(t,e,l,i);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(_t=nn(t.firstChild),de=e,At=!0,ti=null,tn=!0,i=a0(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Vi(),l===o){e=On(t,e,i);break t}me(t,e,l,i)}e=e.child}return e;case 26:return Er(t,e),t===null?(i=Mv(e.type,null,e.pendingProps,null))?e.memoizedState=i:At||(i=e.type,t=e.pendingProps,l=Hr(tt.current).createElement(i),l[fe]=e,l[Ee]=t,pe(l,i,t),re(l),e.stateNode=l):e.memoizedState=Mv(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return be(e),t===null&&At&&(l=e.stateNode=xv(e.type,e.pendingProps,tt.current),de=e,tn=!0,o=_t,pi(e.type)?(kf=o,_t=nn(l.firstChild)):_t=o),me(t,e,e.pendingProps.children,i),Er(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&At&&((o=l=_t)&&(l=W5(l,e.type,e.pendingProps,tn),l!==null?(e.stateNode=l,de=e,_t=nn(l.firstChild),tn=!1,o=!0):o=!1),o||ei(e)),be(e),o=e.type,c=e.pendingProps,g=t!==null?t.memoizedProps:null,l=c.children,Vf(o,c)?l=null:g!==null&&Vf(o,g)&&(e.flags|=32),e.memoizedState!==null&&(o=Lc(t,e,h5,null,null,i),is._currentValue=o),Er(t,e),me(t,e,l,i),e.child;case 6:return t===null&&At&&((t=i=_t)&&(i=$5(i,e.pendingProps,tn),i!==null?(e.stateNode=i,de=e,_t=null,t=!0):t=!1),t||ei(e)),null;case 13:return cg(t,e,i);case 4:return Gt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Gi(e,null,l,i):me(t,e,l,i),e.child;case 11:return eg(t,e,e.type,e.pendingProps,i);case 7:return me(t,e,e.pendingProps,i),e.child;case 8:return me(t,e,e.pendingProps.children,i),e.child;case 12:return me(t,e,e.pendingProps.children,i),e.child;case 10:return l=e.pendingProps,ni(e,e.type,l.value),me(t,e,l.children,i),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,Ui(e),o=he(o),l=l(o),e.flags|=1,me(t,e,l,i),e.child;case 14:return ng(t,e,e.type,e.pendingProps,i);case 15:return ig(t,e,e.type,e.pendingProps,i);case 19:return dg(t,e,i);case 31:return x5(t,e,i);case 22:return ag(t,e,i,e.pendingProps);case 24:return Ui(e),l=he($t),t===null?(o=Tc(),o===null&&(o=Vt,c=xc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=i),o=c),e.memoizedState={parent:l,cache:o},Ac(e),ni(e,$t,o)):((t.lanes&i)!==0&&(Cc(t,e),Ul(e,null,null,i),Nl()),o=t.memoizedState,c=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),ni(e,$t,l)):(l=c.cache,ni(e,$t,l),l!==o.cache&&Sc(e,[$t],i,!0))),me(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Vn(t){t.flags|=4}function of(t,e,i,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(kg())t.flags|=8192;else throw ki=rr,Mc}else t.flags&=-16777217}function mg(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Dv(e))if(kg())t.flags|=8192;else throw ki=rr,Mc}function Mr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Kp():536870912,t.lanes|=e,Na|=e)}function Pl(t,e){if(!At)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ht(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(e)for(var o=t.child;o!==null;)i|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)i|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=i,e}function T5(t,e,i){var l=e.pendingProps;switch(pc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(e),null;case 1:return Ht(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),zn($t),Rt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Ta(e)?Vn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,gc())),Ht(e),null;case 26:var o=e.type,c=e.memoizedState;return t===null?(Vn(e),c!==null?(Ht(e),mg(e,c)):(Ht(e),of(e,o,null,l,i))):c?c!==t.memoizedState?(Vn(e),Ht(e),mg(e,c)):(Ht(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Vn(e),Ht(e),of(e,o,t,l,i)),null;case 27:if(ze(e),i=tt.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Vn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Ht(e),null}t=et.current,Ta(e)?Ky(e):(t=xv(o,l,i),e.stateNode=t,Vn(e))}return Ht(e),null;case 5:if(ze(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Vn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Ht(e),null}if(c=et.current,Ta(e))Ky(e);else{var g=Hr(tt.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}c[fe]=e,c[Ee]=l;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=c;t:switch(pe(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Vn(e)}}return Ht(e),of(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Vn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=tt.current,Ta(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,o=de,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[fe]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||cv(t.nodeValue,i)),t||ei(e,!0)}else t=Hr(t).createTextNode(l),t[fe]=e,e.stateNode=t}return Ht(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ta(e),i!==null){if(t===null){if(!l)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[fe]=e}else Vi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ht(e),t=!1}else i=gc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(He(e),e):(He(e),null);if((e.flags&128)!==0)throw Error(u(558))}return Ht(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Ta(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(u(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[fe]=e}else Vi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ht(e),o=!1}else o=gc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(He(e),e):(He(e),null)}return He(e),(e.flags&128)!==0?(e.lanes=i,e):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),Mr(e,e.updateQueue),Ht(e),null);case 4:return Rt(),t===null&&jf(e.stateNode.containerInfo),Ht(e),null;case 10:return zn(e.type),Ht(e),null;case 19:if(H(Zt),l=e.memoizedState,l===null)return Ht(e),null;if(o=(e.flags&128)!==0,c=l.rendering,c===null)if(o)Pl(l,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=fr(t),c!==null){for(e.flags|=128,Pl(l,!1),t=c.updateQueue,e.updateQueue=t,Mr(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)Yy(i,t),i=i.sibling;return W(Zt,Zt.current&1|2),At&&Dn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&vt()>Dr&&(e.flags|=128,o=!0,Pl(l,!1),e.lanes=4194304)}else{if(!o)if(t=fr(c),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Mr(e,t),Pl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!At)return Ht(e),null}else 2*vt()-l.renderingStartTime>Dr&&i!==536870912&&(e.flags|=128,o=!0,Pl(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=vt(),t.sibling=null,i=Zt.current,W(Zt,o?i&1|2:i&1),At&&Dn(e,l.treeForkCount),t):(Ht(e),null);case 22:case 23:return He(e),jc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(i&536870912)!==0&&(e.flags&128)===0&&(Ht(e),e.subtreeFlags&6&&(e.flags|=8192)):Ht(e),i=e.updateQueue,i!==null&&Mr(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==i&&(e.flags|=2048),t!==null&&H(_i),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),zn($t),Ht(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function M5(t,e){switch(pc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return zn($t),Rt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ze(e),null;case 31:if(e.memoizedState!==null){if(He(e),e.alternate===null)throw Error(u(340));Vi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(He(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Vi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(Zt),null;case 4:return Rt(),null;case 10:return zn(e.type),null;case 22:case 23:return He(e),jc(),t!==null&&H(_i),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return zn($t),null;case 25:return null;default:return null}}function pg(t,e){switch(pc(e),e.tag){case 3:zn($t),Rt();break;case 26:case 27:case 5:ze(e);break;case 4:Rt();break;case 31:e.memoizedState!==null&&He(e);break;case 13:He(e);break;case 19:H(Zt);break;case 10:zn(e.type);break;case 22:case 23:He(e),jc(),t!==null&&H(_i);break;case 24:zn($t)}}function ql(t,e){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var o=l.next;i=o;do{if((i.tag&t)===t){l=void 0;var c=i.create,g=i.inst;l=c(),g.destroy=l}i=i.next}while(i!==o)}}catch(x){zt(e,e.return,x)}}function oi(t,e,i){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&t)===t){var g=l.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,o=e;var A=i,U=x;try{U()}catch(P){zt(o,A,P)}}}l=l.next}while(l!==c)}}catch(P){zt(e,e.return,P)}}function yg(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{s0(e,i)}catch(l){zt(t,t.return,l)}}}function gg(t,e,i){i.props=Pi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){zt(t,e,l)}}function Xl(t,e){try{var i=t.ref;if(i!==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 i=="function"?t.refCleanup=i(l):i.current=l}}catch(o){zt(t,e,o)}}function gn(t,e){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(o){zt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(o){zt(t,e,o)}else i.current=null}function vg(t){var e=t.type,i=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break t;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(o){zt(t,t.return,o)}}function uf(t,e,i){try{var l=t.stateNode;F5(l,t.type,i,e),l[Ee]=e}catch(o){zt(t,t.return,o)}}function bg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&pi(t.type)||t.tag===4}function cf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||bg(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&&pi(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 ff(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=Cn));else if(l!==4&&(l===27&&pi(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(ff(t,e,i),t=t.sibling;t!==null;)ff(t,e,i),t=t.sibling}function Ar(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(l!==4&&(l===27&&pi(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Ar(t,e,i),t=t.sibling;t!==null;)Ar(t,e,i),t=t.sibling}function Sg(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);pe(e,l,i),e[fe]=t,e[Ee]=i}catch(c){zt(t,t.return,c)}}var Nn=!1,ne=!1,df=!1,xg=typeof WeakSet=="function"?WeakSet:Set,oe=null;function A5(t,e){if(t=t.containerInfo,Lf=Fr,t=Ly(t),ac(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break t}var g=0,x=-1,A=-1,U=0,P=0,F=t,_=null;e:for(;;){for(var G;F!==i||o!==0&&F.nodeType!==3||(x=g+o),F!==c||l!==0&&F.nodeType!==3||(A=g+l),F.nodeType===3&&(g+=F.nodeValue.length),(G=F.firstChild)!==null;)_=F,F=G;for(;;){if(F===t)break e;if(_===i&&++U===o&&(x=g),_===c&&++P===l&&(A=g),(G=F.nextSibling)!==null)break;F=_,_=F.parentNode}F=G}i=x===-1||A===-1?null:{start:x,end:A}}else i=null}i=i||{start:0,end:0}}else i=null;for(Of={focusedElem:t,selectionRange:i},Fr=!1,oe=e;oe!==null;)if(e=oe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,oe=t;else for(;oe!==null;){switch(e=oe,c=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(i=0;i<t.length;i++)o=t[i],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,i=e,o=c.memoizedProps,c=c.memoizedState,l=i.stateNode;try{var rt=Pi(i.type,o);t=l.getSnapshotBeforeUpdate(rt,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(ht){zt(i,i.return,ht)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)Uf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Uf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(u(163))}if(t=e.sibling,t!==null){t.return=e.return,oe=t;break}oe=e.return}}function Eg(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:_n(t,i),l&4&&ql(5,i);break;case 1:if(_n(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(g){zt(i,i.return,g)}else{var o=Pi(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){zt(i,i.return,g)}}l&64&&yg(i),l&512&&Xl(i,i.return);break;case 3:if(_n(t,i),l&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{s0(t,e)}catch(g){zt(i,i.return,g)}}break;case 27:e===null&&l&4&&Sg(i);case 26:case 5:_n(t,i),e===null&&l&4&&vg(i),l&512&&Xl(i,i.return);break;case 12:_n(t,i);break;case 31:_n(t,i),l&4&&Ag(t,i);break;case 13:_n(t,i),l&4&&Cg(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=O5.bind(null,i),t3(t,i))));break;case 22:if(l=i.memoizedState!==null||Nn,!l){e=e!==null&&e.memoizedState!==null||ne,o=Nn;var c=ne;Nn=l,(ne=e)&&!c?Hn(t,i,(i.subtreeFlags&8772)!==0):_n(t,i),Nn=o,ne=c}break;case 30:break;default:_n(t,i)}}function Tg(t){var e=t.alternate;e!==null&&(t.alternate=null,Tg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Gu(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 Yt=null,Me=!1;function Un(t,e,i){for(i=i.child;i!==null;)Mg(t,e,i),i=i.sibling}function Mg(t,e,i){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(pl,i)}catch{}switch(i.tag){case 26:ne||gn(i,e),Un(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ne||gn(i,e);var l=Yt,o=Me;pi(i.type)&&(Yt=i.stateNode,Me=!1),Un(t,e,i),ts(i.stateNode),Yt=l,Me=o;break;case 5:ne||gn(i,e);case 6:if(l=Yt,o=Me,Yt=null,Un(t,e,i),Yt=l,Me=o,Yt!==null)if(Me)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(i.stateNode)}catch(c){zt(i,e,c)}else try{Yt.removeChild(i.stateNode)}catch(c){zt(i,e,c)}break;case 18:Yt!==null&&(Me?(t=Yt,yv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),qa(t)):yv(Yt,i.stateNode));break;case 4:l=Yt,o=Me,Yt=i.stateNode.containerInfo,Me=!0,Un(t,e,i),Yt=l,Me=o;break;case 0:case 11:case 14:case 15:oi(2,i,e),ne||oi(4,i,e),Un(t,e,i);break;case 1:ne||(gn(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&gg(i,e,l)),Un(t,e,i);break;case 21:Un(t,e,i);break;case 22:ne=(l=ne)||i.memoizedState!==null,Un(t,e,i),ne=l;break;default:Un(t,e,i)}}function Ag(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{qa(t)}catch(i){zt(e,e.return,i)}}}function Cg(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{qa(t)}catch(i){zt(e,e.return,i)}}function C5(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new xg),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new xg),e;default:throw Error(u(435,t.tag))}}function Cr(t,e){var i=C5(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var o=V5.bind(null,t,l);l.then(o,o)}})}function Ae(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var o=i[l],c=t,g=e,x=g;t:for(;x!==null;){switch(x.tag){case 27:if(pi(x.type)){Yt=x.stateNode,Me=!1;break t}break;case 5:Yt=x.stateNode,Me=!1;break t;case 3:case 4:Yt=x.stateNode.containerInfo,Me=!0;break t}x=x.return}if(Yt===null)throw Error(u(160));Mg(c,g,o),Yt=null,Me=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)wg(e,t),e=e.sibling}var un=null;function wg(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ae(e,t),Ce(t),l&4&&(oi(3,t,t.return),ql(3,t),oi(5,t,t.return));break;case 1:Ae(e,t),Ce(t),l&512&&(ne||i===null||gn(i,i.return)),l&64&&Nn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var o=un;if(Ae(e,t),Ce(t),l&512&&(ne||i===null||gn(i,i.return)),l&4){var c=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){t:{l=t.type,i=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[vl]||c[fe]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),pe(c,l,i),c[fe]=t,re(c),l=c;break t;case"link":var g=wv("link","href",o).get(l+(i.href||""));if(g){for(var x=0;x<g.length;x++)if(c=g[x],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){g.splice(x,1);break e}}c=o.createElement(l),pe(c,l,i),o.head.appendChild(c);break;case"meta":if(g=wv("meta","content",o).get(l+(i.content||""))){for(x=0;x<g.length;x++)if(c=g[x],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){g.splice(x,1);break e}}c=o.createElement(l),pe(c,l,i),o.head.appendChild(c);break;default:throw Error(u(468,l))}c[fe]=t,re(c),l=c}t.stateNode=l}else Rv(o,t.type,t.stateNode);else t.stateNode=Cv(o,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?Rv(o,t.type,t.stateNode):Cv(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&uf(t,t.memoizedProps,i.memoizedProps)}break;case 27:Ae(e,t),Ce(t),l&512&&(ne||i===null||gn(i,i.return)),i!==null&&l&4&&uf(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Ae(e,t),Ce(t),l&512&&(ne||i===null||gn(i,i.return)),t.flags&32){o=t.stateNode;try{ha(o,"")}catch(rt){zt(t,t.return,rt)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,uf(t,o,i!==null?i.memoizedProps:o)),l&1024&&(df=!0);break;case 6:if(Ae(e,t),Ce(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(rt){zt(t,t.return,rt)}}break;case 3:if(Yr=null,o=un,un=kr(e.containerInfo),Ae(e,t),un=o,Ce(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{qa(e.containerInfo)}catch(rt){zt(t,t.return,rt)}df&&(df=!1,Rg(t));break;case 4:l=un,un=kr(t.stateNode.containerInfo),Ae(e,t),Ce(t),un=l;break;case 12:Ae(e,t),Ce(t);break;case 31:Ae(e,t),Ce(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cr(t,l)));break;case 13:Ae(e,t),Ce(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Rr=vt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cr(t,l)));break;case 22:o=t.memoizedState!==null;var A=i!==null&&i.memoizedState!==null,U=Nn,P=ne;if(Nn=U||o,ne=P||A,Ae(e,t),ne=P,Nn=U,Ce(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(i===null||A||Nn||ne||qi(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){A=i=e;try{if(c=A.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=A.stateNode;var F=A.memoizedProps.style,_=F!=null&&F.hasOwnProperty("display")?F.display:null;x.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(rt){zt(A,A.return,rt)}}}else if(e.tag===6){if(i===null){A=e;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(rt){zt(A,A.return,rt)}}}else if(e.tag===18){if(i===null){A=e;try{var G=A.stateNode;o?gv(G,!0):gv(A.stateNode,!1)}catch(rt){zt(A,A.return,rt)}}}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;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Cr(t,i))));break;case 19:Ae(e,t),Ce(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cr(t,l)));break;case 30:break;case 21:break;default:Ae(e,t),Ce(t)}}function Ce(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(bg(l)){i=l;break}l=l.return}if(i==null)throw Error(u(160));switch(i.tag){case 27:var o=i.stateNode,c=cf(t);Ar(t,c,o);break;case 5:var g=i.stateNode;i.flags&32&&(ha(g,""),i.flags&=-33);var x=cf(t);Ar(t,x,g);break;case 3:case 4:var A=i.stateNode.containerInfo,U=cf(t);ff(t,U,A);break;default:throw Error(u(161))}}catch(P){zt(t,t.return,P)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Rg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Rg(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function _n(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Eg(t,e.alternate,e),e=e.sibling}function qi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:oi(4,e,e.return),qi(e);break;case 1:gn(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&gg(e,e.return,i),qi(e);break;case 27:ts(e.stateNode);case 26:case 5:gn(e,e.return),qi(e);break;case 22:e.memoizedState===null&&qi(e);break;case 30:qi(e);break;default:qi(e)}t=t.sibling}}function Hn(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,c=e,g=c.flags;switch(c.tag){case 0:case 11:case 15:Hn(o,c,i),ql(4,c);break;case 1:if(Hn(o,c,i),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(U){zt(l,l.return,U)}if(l=c,o=l.updateQueue,o!==null){var x=l.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)l0(A[o],x)}catch(U){zt(l,l.return,U)}}i&&g&64&&yg(c),Xl(c,c.return);break;case 27:Sg(c);case 26:case 5:Hn(o,c,i),i&&l===null&&g&4&&vg(c),Xl(c,c.return);break;case 12:Hn(o,c,i);break;case 31:Hn(o,c,i),i&&g&4&&Ag(o,c);break;case 13:Hn(o,c,i),i&&g&4&&Cg(o,c);break;case 22:c.memoizedState===null&&Hn(o,c,i),Xl(c,c.return);break;case 30:break;default:Hn(o,c,i)}e=e.sibling}}function hf(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&zl(i))}function mf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zl(t))}function cn(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dg(t,e,i,l),e=e.sibling}function Dg(t,e,i,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:cn(t,e,i,l),o&2048&&ql(9,e);break;case 1:cn(t,e,i,l);break;case 3:cn(t,e,i,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zl(t)));break;case 12:if(o&2048){cn(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,g=c.id,x=c.onPostCommit;typeof x=="function"&&x(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(A){zt(e,e.return,A)}}else cn(t,e,i,l);break;case 31:cn(t,e,i,l);break;case 13:cn(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,g=e.alternate,e.memoizedState!==null?c._visibility&2?cn(t,e,i,l):Fl(t,e):c._visibility&2?cn(t,e,i,l):(c._visibility|=2,La(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&hf(g,e);break;case 24:cn(t,e,i,l),o&2048&&mf(e.alternate,e);break;default:cn(t,e,i,l)}}function La(t,e,i,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,g=e,x=i,A=l,U=g.flags;switch(g.tag){case 0:case 11:case 15:La(c,g,x,A,o),ql(8,g);break;case 23:break;case 22:var P=g.stateNode;g.memoizedState!==null?P._visibility&2?La(c,g,x,A,o):Fl(c,g):(P._visibility|=2,La(c,g,x,A,o)),o&&U&2048&&hf(g.alternate,g);break;case 24:La(c,g,x,A,o),o&&U&2048&&mf(g.alternate,g);break;default:La(c,g,x,A,o)}e=e.sibling}}function Fl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,l=e,o=l.flags;switch(l.tag){case 22:Fl(i,l),o&2048&&hf(l.alternate,l);break;case 24:Fl(i,l),o&2048&&mf(l.alternate,l);break;default:Fl(i,l)}e=e.sibling}}var Kl=8192;function Oa(t,e,i){if(t.subtreeFlags&Kl)for(t=t.child;t!==null;)jg(t,e,i),t=t.sibling}function jg(t,e,i){switch(t.tag){case 26:Oa(t,e,i),t.flags&Kl&&t.memoizedState!==null&&d3(i,un,t.memoizedState,t.memoizedProps);break;case 5:Oa(t,e,i);break;case 3:case 4:var l=un;un=kr(t.stateNode.containerInfo),Oa(t,e,i),un=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Kl,Kl=16777216,Oa(t,e,i),Kl=l):Oa(t,e,i));break;default:Oa(t,e,i)}}function zg(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 Ql(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];oe=l,Lg(l,t)}zg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bg(t),t=t.sibling}function Bg(t){switch(t.tag){case 0:case 11:case 15:Ql(t),t.flags&2048&&oi(9,t,t.return);break;case 3:Ql(t);break;case 12:Ql(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,wr(t)):Ql(t);break;default:Ql(t)}}function wr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];oe=l,Lg(l,t)}zg(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:oi(8,e,e.return),wr(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,wr(e));break;default:wr(e)}t=t.sibling}}function Lg(t,e){for(;oe!==null;){var i=oe;switch(i.tag){case 0:case 11:case 15:oi(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:zl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,oe=l;else t:for(i=t;oe!==null;){l=oe;var o=l.sibling,c=l.return;if(Tg(l),l===i){oe=null;break t}if(o!==null){o.return=c,oe=o;break t}oe=c}}}var w5={getCacheForType:function(t){var e=he($t),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return he($t).controller.signal}},R5=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Vt=null,xt=null,Tt=0,jt=0,ke=null,ui=!1,Va=!1,pf=!1,kn=0,Kt=0,ci=0,Xi=0,yf=0,Ge=0,Na=0,Zl=null,we=null,gf=!1,Rr=0,Og=0,Dr=1/0,jr=null,fi=null,le=0,di=null,Ua=null,Gn=0,vf=0,bf=null,Vg=null,Il=0,Sf=null;function Ye(){return(Dt&2)!==0&&Tt!==0?Tt&-Tt:R.T!==null?Cf():Jp()}function Ng(){if(Ge===0)if((Tt&536870912)===0||At){var t=_s;_s<<=1,(_s&3932160)===0&&(_s=262144),Ge=t}else Ge=536870912;return t=_e.current,t!==null&&(t.flags|=32),Ge}function Re(t,e,i){(t===Vt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(_a(t,0),hi(t,Tt,Ge,!1)),gl(t,i),((Dt&2)===0||t!==Vt)&&(t===Vt&&((Dt&2)===0&&(Xi|=i),Kt===4&&hi(t,Tt,Ge,!1)),vn(t))}function Ug(t,e,i){if((Dt&6)!==0)throw Error(u(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||yl(t,e),o=l?z5(t,e):Ef(t,e,!0),c=l;do{if(o===0){Va&&!l&&hi(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!D5(i)){o=Ef(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var x=t;o=Zl;var A=x.current.memoizedState.isDehydrated;if(A&&(_a(x,g).flags|=256),g=Ef(x,g,!1),g!==2){if(pf&&!A){x.errorRecoveryDisabledLanes|=c,Xi|=c,o=4;break t}c=we,we=o,c!==null&&(we===null?we=c:we.push.apply(we,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){_a(t,0),hi(t,e,0,!0);break}t:{switch(l=t,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:hi(l,e,Ge,!ui);break t;case 2:we=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(o=Rr+300-vt(),10<o)){if(hi(l,e,Ge,!ui),ks(l,0,!0)!==0)break t;Gn=e,l.timeoutHandle=mv(_g.bind(null,l,i,we,jr,gf,e,Ge,Xi,Na,ui,c,"Throttled",-0,0),o);break t}_g(l,i,we,jr,gf,e,Ge,Xi,Na,ui,c,null,-0,0)}}break}while(!0);vn(t)}function _g(t,e,i,l,o,c,g,x,A,U,P,F,_,G){if(t.timeoutHandle=-1,F=e.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},jg(e,c,F);var rt=(c&62914560)===c?Rr-vt():(c&4194048)===c?Og-vt():0;if(rt=h3(F,rt),rt!==null){Gn=c,t.cancelPendingCommit=rt(Fg.bind(null,t,e,c,i,l,o,g,x,A,P,F,null,_,G)),hi(t,c,g,!U);return}}Fg(t,e,c,i,l,o,g,x,A)}function D5(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var o=i[l],c=o.getSnapshot;o=o.value;try{if(!Ne(c(),o))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;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 hi(t,e,i,l){e&=~yf,e&=~Xi,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var c=31-Ve(o),g=1<<c;l[c]=-1,o&=~g}i!==0&&Qp(t,i,e)}function zr(){return(Dt&6)===0?(Jl(0),!1):!0}function xf(){if(xt!==null){if(jt===0)var t=xt.return;else t=xt,jn=Ni=null,Nc(t),Ra=null,Ll=0,t=xt;for(;t!==null;)pg(t.alternate,t),t=t.return;xt=null}}function _a(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,Z5(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Gn=0,xf(),Vt=t,xt=i=Rn(t.current,null),Tt=e,jt=0,ke=null,ui=!1,Va=yl(t,e),pf=!1,Na=Ge=yf=Xi=ci=Kt=0,we=Zl=null,gf=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-Ve(l),c=1<<o;e|=t[o],l&=~c}return kn=e,Ws(),i}function Hg(t,e){bt=null,R.H=Gl,e===wa||e===sr?(e=e0(),jt=3):e===Mc?(e=e0(),jt=4):jt=e===Wc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ke=e,xt===null&&(Kt=1,Sr(t,Je(e,t.current)))}function kg(){var t=_e.current;return t===null?!0:(Tt&4194048)===Tt?en===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===en:!1}function Gg(){var t=R.H;return R.H=Gl,t===null?Gl:t}function Yg(){var t=R.A;return R.A=w5,t}function Br(){Kt=4,ui||(Tt&4194048)!==Tt&&_e.current!==null||(Va=!0),(ci&134217727)===0&&(Xi&134217727)===0||Vt===null||hi(Vt,Tt,Ge,!1)}function Ef(t,e,i){var l=Dt;Dt|=2;var o=Gg(),c=Yg();(Vt!==t||Tt!==e)&&(jr=null,_a(t,e)),e=!1;var g=Kt;t:do try{if(jt!==0&&xt!==null){var x=xt,A=ke;switch(jt){case 8:xf(),g=6;break t;case 3:case 2:case 9:case 6:_e.current===null&&(e=!0);var U=jt;if(jt=0,ke=null,Ha(t,x,A,U),i&&Va){g=0;break t}break;default:U=jt,jt=0,ke=null,Ha(t,x,A,U)}}j5(),g=Kt;break}catch(P){Hg(t,P)}while(!0);return e&&t.shellSuspendCounter++,jn=Ni=null,Dt=l,R.H=o,R.A=c,xt===null&&(Vt=null,Tt=0,Ws()),g}function j5(){for(;xt!==null;)Pg(xt)}function z5(t,e){var i=Dt;Dt|=2;var l=Gg(),o=Yg();Vt!==t||Tt!==e?(jr=null,Dr=vt()+500,_a(t,e)):Va=yl(t,e);t:do try{if(jt!==0&&xt!==null){e=xt;var c=ke;e:switch(jt){case 1:jt=0,ke=null,Ha(t,e,c,1);break;case 2:case 9:if($y(c)){jt=0,ke=null,qg(e);break}e=function(){jt!==2&&jt!==9||Vt!==t||(jt=7),vn(t)},c.then(e,e);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:$y(c)?(jt=0,ke=null,qg(e)):(jt=0,ke=null,Ha(t,e,c,7));break;case 5:var g=null;switch(xt.tag){case 26:g=xt.memoizedState;case 5:case 27:var x=xt;if(g?Dv(g):x.stateNode.complete){jt=0,ke=null;var A=x.sibling;if(A!==null)xt=A;else{var U=x.return;U!==null?(xt=U,Lr(U)):xt=null}break e}}jt=0,ke=null,Ha(t,e,c,5);break;case 6:jt=0,ke=null,Ha(t,e,c,6);break;case 8:xf(),Kt=6;break t;default:throw Error(u(462))}}B5();break}catch(P){Hg(t,P)}while(!0);return jn=Ni=null,R.H=l,R.A=o,Dt=i,xt!==null?0:(Vt=null,Tt=0,Ws(),Kt)}function B5(){for(;xt!==null&&!sa();)Pg(xt)}function Pg(t){var e=hg(t.alternate,t,kn);t.memoizedProps=t.pendingProps,e===null?Lr(t):xt=e}function qg(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=rg(i,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=rg(i,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:Nc(e);default:pg(i,e),e=xt=Yy(e,kn),e=hg(i,e,kn)}t.memoizedProps=t.pendingProps,e===null?Lr(t):xt=e}function Ha(t,e,i,l){jn=Ni=null,Nc(e),Ra=null,Ll=0;var o=e.return;try{if(S5(t,o,e,i,Tt)){Kt=1,Sr(t,Je(i,t.current)),xt=null;return}}catch(c){if(o!==null)throw xt=o,c;Kt=1,Sr(t,Je(i,t.current)),xt=null;return}e.flags&32768?(At||l===1?t=!0:Va||(Tt&536870912)!==0?t=!1:(ui=t=!0,(l===2||l===9||l===3||l===6)&&(l=_e.current,l!==null&&l.tag===13&&(l.flags|=16384))),Xg(e,t)):Lr(e)}function Lr(t){var e=t;do{if((e.flags&32768)!==0){Xg(e,ui);return}t=e.return;var i=T5(e.alternate,e,kn);if(i!==null){xt=i;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Kt===0&&(Kt=5)}function Xg(t,e){do{var i=M5(t.alternate,t);if(i!==null){i.flags&=32767,xt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=i}while(t!==null);Kt=6,xt=null}function Fg(t,e,i,l,o,c,g,x,A){t.cancelPendingCommit=null;do Or();while(le!==0);if((Dt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(c=e.lanes|e.childLanes,c|=uc,fA(t,i,c,g,x,A),t===Vt&&(xt=Vt=null,Tt=0),Ua=e,di=t,Gn=i,vf=c,bf=o,Vg=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,N5(Ns,function(){return Jg(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,o=Y.p,Y.p=2,g=Dt,Dt|=4;try{A5(t,e,i)}finally{Dt=g,Y.p=o,R.T=l}}le=1,Kg(),Qg(),Zg()}}function Kg(){if(le===1){le=0;var t=di,e=Ua,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=R.T,R.T=null;var l=Y.p;Y.p=2;var o=Dt;Dt|=4;try{wg(e,t);var c=Of,g=Ly(t.containerInfo),x=c.focusedElem,A=c.selectionRange;if(g!==x&&x&&x.ownerDocument&&By(x.ownerDocument.documentElement,x)){if(A!==null&&ac(x)){var U=A.start,P=A.end;if(P===void 0&&(P=U),"selectionStart"in x)x.selectionStart=U,x.selectionEnd=Math.min(P,x.value.length);else{var F=x.ownerDocument||document,_=F&&F.defaultView||window;if(_.getSelection){var G=_.getSelection(),rt=x.textContent.length,ht=Math.min(A.start,rt),Ot=A.end===void 0?ht:Math.min(A.end,rt);!G.extend&&ht>Ot&&(g=Ot,Ot=ht,ht=g);var j=zy(x,ht),w=zy(x,Ot);if(j&&w&&(G.rangeCount!==1||G.anchorNode!==j.node||G.anchorOffset!==j.offset||G.focusNode!==w.node||G.focusOffset!==w.offset)){var V=F.createRange();V.setStart(j.node,j.offset),G.removeAllRanges(),ht>Ot?(G.addRange(V),G.extend(w.node,w.offset)):(V.setEnd(w.node,w.offset),G.addRange(V))}}}}for(F=[],G=x;G=G.parentNode;)G.nodeType===1&&F.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<F.length;x++){var X=F[x];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Fr=!!Lf,Of=Lf=null}finally{Dt=o,Y.p=l,R.T=i}}t.current=e,le=2}}function Qg(){if(le===2){le=0;var t=di,e=Ua,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=R.T,R.T=null;var l=Y.p;Y.p=2;var o=Dt;Dt|=4;try{Eg(t,e.alternate,e)}finally{Dt=o,Y.p=l,R.T=i}}le=3}}function Zg(){if(le===4||le===3){le=0,ct();var t=di,e=Ua,i=Gn,l=Vg;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?le=5:(le=0,Ua=di=null,Ig(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(fi=null),Hu(i),e=e.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(pl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=R.T,o=Y.p,Y.p=2,R.T=null;try{for(var c=t.onRecoverableError,g=0;g<l.length;g++){var x=l[g];c(x.value,{componentStack:x.stack})}}finally{R.T=e,Y.p=o}}(Gn&3)!==0&&Or(),vn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===Sf?Il++:(Il=0,Sf=t):Il=0,Jl(0)}}function Ig(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,zl(e)))}function Or(){return Kg(),Qg(),Zg(),Jg()}function Jg(){if(le!==5)return!1;var t=di,e=vf;vf=0;var i=Hu(Gn),l=R.T,o=Y.p;try{Y.p=32>i?32:i,R.T=null,i=bf,bf=null;var c=di,g=Gn;if(le=0,Ua=di=null,Gn=0,(Dt&6)!==0)throw Error(u(331));var x=Dt;if(Dt|=4,Bg(c.current),Dg(c,c.current,g,i),Dt=x,Jl(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(pl,c)}catch{}return!0}finally{Y.p=o,R.T=l,Ig(t,e)}}function Wg(t,e,i){e=Je(i,e),e=Jc(t.stateNode,e,2),t=li(t,e,2),t!==null&&(gl(t,2),vn(t))}function zt(t,e,i){if(t.tag===3)Wg(t,t,i);else for(;e!==null;){if(e.tag===3){Wg(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(fi===null||!fi.has(l))){t=Je(i,t),i=$0(2),l=li(e,i,2),l!==null&&(tg(i,l,e,t),gl(l,2),vn(l));break}}e=e.return}}function Tf(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new R5;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(i)||(pf=!0,o.add(i),t=L5.bind(null,t,e,i),e.then(t,t))}function L5(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Vt===t&&(Tt&i)===i&&(Kt===4||Kt===3&&(Tt&62914560)===Tt&&300>vt()-Rr?(Dt&2)===0&&_a(t,0):yf|=i,Na===Tt&&(Na=0)),vn(t)}function $g(t,e){e===0&&(e=Kp()),t=Li(t,e),t!==null&&(gl(t,e),vn(t))}function O5(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),$g(t,i)}function V5(t,e){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(i=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(e),$g(t,i)}function N5(t,e){return Tn(t,e)}var Vr=null,ka=null,Mf=!1,Nr=!1,Af=!1,mi=0;function vn(t){t!==ka&&t.next===null&&(ka===null?Vr=ka=t:ka=ka.next=t),Nr=!0,Mf||(Mf=!0,_5())}function Jl(t,e){if(!Af&&Nr){Af=!0;do for(var i=!1,l=Vr;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var g=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-Ve(42|t)+1)-1,c&=o&~(g&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,iv(l,c))}else c=Tt,c=ks(l,l===Vt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||yl(l,c)||(i=!0,iv(l,c));l=l.next}while(i);Af=!1}}function U5(){tv()}function tv(){Nr=Mf=!1;var t=0;mi!==0&&Q5()&&(t=mi);for(var e=vt(),i=null,l=Vr;l!==null;){var o=l.next,c=ev(l,e);c===0?(l.next=null,i===null?Vr=o:i.next=o,o===null&&(ka=i)):(i=l,(t!==0||(c&3)!==0)&&(Nr=!0)),l=o}le!==0&&le!==5||Jl(t),mi!==0&&(mi=0)}function ev(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var g=31-Ve(c),x=1<<g,A=o[g];A===-1?((x&i)===0||(x&l)!==0)&&(o[g]=cA(x,e)):A<=e&&(t.expiredLanes|=x),c&=~x}if(e=Vt,i=Tt,i=ks(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Mn(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||yl(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&Mn(l),Hu(i)){case 2:case 8:i=Zn;break;case 32:i=Ns;break;case 268435456:i=Fp;break;default:i=Ns}return l=nv.bind(null,t),i=Tn(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&Mn(l),t.callbackPriority=2,t.callbackNode=null,2}function nv(t,e){if(le!==0&&le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Or()&&t.callbackNode!==i)return null;var l=Tt;return l=ks(t,t===Vt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Ug(t,l,e),ev(t,vt()),t.callbackNode!=null&&t.callbackNode===i?nv.bind(null,t):null)}function iv(t,e){if(Or())return null;Ug(t,e,!0)}function _5(){I5(function(){(Dt&6)!==0?Tn(Qt,U5):tv()})}function Cf(){if(mi===0){var t=Aa;t===0&&(t=Us,Us<<=1,(Us&261888)===0&&(Us=256)),mi=t}return mi}function av(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:qs(""+t)}function lv(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function H5(t,e,i,l,o){if(e==="submit"&&i&&i.stateNode===o){var c=av((o[Ee]||null).action),g=l.submitter;g&&(e=(e=g[Ee]||null)?av(e.formAction):g.getAttribute("formAction"),e!==null&&(c=e,g=null));var x=new Qs("action","action",null,l,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(mi!==0){var A=g?lv(o,g):new FormData(o);Xc(i,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(x.preventDefault(),A=g?lv(o,g):new FormData(o),Xc(i,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var wf=0;wf<oc.length;wf++){var Rf=oc[wf],k5=Rf.toLowerCase(),G5=Rf[0].toUpperCase()+Rf.slice(1);on(k5,"on"+G5)}on(Ny,"onAnimationEnd"),on(Uy,"onAnimationIteration"),on(_y,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(i5,"onTransitionRun"),on(a5,"onTransitionStart"),on(l5,"onTransitionCancel"),on(Hy,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Di("onBeforeInput",["compositionend","keypress","textInput","paste"]),Di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Di("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(" "),Y5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wl));function sv(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],o=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var g=l.length-1;0<=g;g--){var x=l[g],A=x.instance,U=x.currentTarget;if(x=x.listener,A!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=U;try{c(o)}catch(P){Js(P)}o.currentTarget=null,c=A}else for(g=0;g<l.length;g++){if(x=l[g],A=x.instance,U=x.currentTarget,x=x.listener,A!==c&&o.isPropagationStopped())break t;c=x,o.currentTarget=U;try{c(o)}catch(P){Js(P)}o.currentTarget=null,c=A}}}}function Et(t,e){var i=e[ku];i===void 0&&(i=e[ku]=new Set);var l=t+"__bubble";i.has(l)||(rv(e,t,2,!1),i.add(l))}function Df(t,e,i){var l=0;e&&(l|=4),rv(i,t,l,e)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function jf(t){if(!t[Ur]){t[Ur]=!0,ty.forEach(function(i){i!=="selectionchange"&&(Y5.has(i)||Df(i,!1,t),Df(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ur]||(e[Ur]=!0,Df("selectionchange",!1,e))}}function rv(t,e,i,l){switch(Nv(e)){case 2:var o=y3;break;case 8:o=g3;break;default:o=Xf}i=o.bind(null,e,i,t),o=void 0,!Zu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,i,{capture:!0,passive:o}):t.addEventListener(e,i,!0):o!==void 0?t.addEventListener(e,i,{passive:o}):t.addEventListener(e,i,!1)}function zf(t,e,i,l,o){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var x=l.stateNode.containerInfo;if(x===o)break;if(g===4)for(g=l.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;x!==null;){if(g=oa(x),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){l=c=g;continue t}x=x.parentNode}}l=l.return}dy(function(){var U=c,P=Ku(i),F=[];t:{var _=ky.get(t);if(_!==void 0){var G=Qs,rt=t;switch(t){case"keypress":if(Fs(i)===0)break t;case"keydown":case"keyup":G=VA;break;case"focusin":rt="focus",G=$u;break;case"focusout":rt="blur",G=$u;break;case"beforeblur":case"afterblur":G=$u;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=py;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=TA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=_A;break;case Ny:case Uy:case _y:G=CA;break;case Hy:G=kA;break;case"scroll":case"scrollend":G=xA;break;case"wheel":G=YA;break;case"copy":case"cut":case"paste":G=RA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=gy;break;case"toggle":case"beforetoggle":G=qA}var ht=(e&4)!==0,Ot=!ht&&(t==="scroll"||t==="scrollend"),j=ht?_!==null?_+"Capture":null:_;ht=[];for(var w=U,V;w!==null;){var X=w;if(V=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||V===null||j===null||(X=Sl(w,j),X!=null&&ht.push($l(w,X,V))),Ot)break;w=w.return}0<ht.length&&(_=new G(_,rt,null,i,P),F.push({event:_,listeners:ht}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",G=t==="mouseout"||t==="pointerout",_&&i!==Fu&&(rt=i.relatedTarget||i.fromElement)&&(oa(rt)||rt[ra]))break t;if((G||_)&&(_=P.window===P?P:(_=P.ownerDocument)?_.defaultView||_.parentWindow:window,G?(rt=i.relatedTarget||i.toElement,G=U,rt=rt?oa(rt):null,rt!==null&&(Ot=d(rt),ht=rt.tag,rt!==Ot||ht!==5&&ht!==27&&ht!==6)&&(rt=null)):(G=null,rt=U),G!==rt)){if(ht=py,X="onMouseLeave",j="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(ht=gy,X="onPointerLeave",j="onPointerEnter",w="pointer"),Ot=G==null?_:bl(G),V=rt==null?_:bl(rt),_=new ht(X,w+"leave",G,i,P),_.target=Ot,_.relatedTarget=V,X=null,oa(P)===U&&(ht=new ht(j,w+"enter",rt,i,P),ht.target=V,ht.relatedTarget=Ot,X=ht),Ot=X,G&&rt)e:{for(ht=P5,j=G,w=rt,V=0,X=j;X;X=ht(X))V++;X=0;for(var ft=w;ft;ft=ht(ft))X++;for(;0<V-X;)j=ht(j),V--;for(;0<X-V;)w=ht(w),X--;for(;V--;){if(j===w||w!==null&&j===w.alternate){ht=j;break e}j=ht(j),w=ht(w)}ht=null}else ht=null;G!==null&&ov(F,_,G,ht,!1),rt!==null&&Ot!==null&&ov(F,Ot,rt,ht,!0)}}t:{if(_=U?bl(U):window,G=_.nodeName&&_.nodeName.toLowerCase(),G==="select"||G==="input"&&_.type==="file")var Ct=Ay;else if(Ty(_))if(Cy)Ct=t5;else{Ct=WA;var ot=JA}else G=_.nodeName,!G||G.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?U&&Xu(U.elementType)&&(Ct=Ay):Ct=$A;if(Ct&&(Ct=Ct(t,U))){My(F,Ct,i,P);break t}ot&&ot(t,_,U),t==="focusout"&&U&&_.type==="number"&&U.memoizedProps.value!=null&&qu(_,"number",_.value)}switch(ot=U?bl(U):window,t){case"focusin":(Ty(ot)||ot.contentEditable==="true")&&(ga=ot,lc=U,Rl=null);break;case"focusout":Rl=lc=ga=null;break;case"mousedown":sc=!0;break;case"contextmenu":case"mouseup":case"dragend":sc=!1,Oy(F,i,P);break;case"selectionchange":if(n5)break;case"keydown":case"keyup":Oy(F,i,P)}var St;if(ec)t:{switch(t){case"compositionstart":var Mt="onCompositionStart";break t;case"compositionend":Mt="onCompositionEnd";break t;case"compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0}else ya?xy(t,i)&&(Mt="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Mt="onCompositionStart");Mt&&(vy&&i.locale!=="ko"&&(ya||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&ya&&(St=hy()):(Wn=P,Iu="value"in Wn?Wn.value:Wn.textContent,ya=!0)),ot=_r(U,Mt),0<ot.length&&(Mt=new yy(Mt,t,null,i,P),F.push({event:Mt,listeners:ot}),St?Mt.data=St:(St=Ey(i),St!==null&&(Mt.data=St)))),(St=FA?KA(t,i):QA(t,i))&&(Mt=_r(U,"onBeforeInput"),0<Mt.length&&(ot=new yy("onBeforeInput","beforeinput",null,i,P),F.push({event:ot,listeners:Mt}),ot.data=St)),H5(F,t,U,i,P)}sv(F,e)})}function $l(t,e,i){return{instance:t,listener:e,currentTarget:i}}function _r(t,e){for(var i=e+"Capture",l=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Sl(t,i),o!=null&&l.unshift($l(t,o,c)),o=Sl(t,e),o!=null&&l.push($l(t,o,c))),t.tag===3)return l;t=t.return}return[]}function P5(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ov(t,e,i,l,o){for(var c=e._reactName,g=[];i!==null&&i!==l;){var x=i,A=x.alternate,U=x.stateNode;if(x=x.tag,A!==null&&A===l)break;x!==5&&x!==26&&x!==27||U===null||(A=U,o?(U=Sl(i,c),U!=null&&g.unshift($l(i,U,A))):o||(U=Sl(i,c),U!=null&&g.push($l(i,U,A)))),i=i.return}g.length!==0&&t.push({event:e,listeners:g})}var q5=/\r\n?/g,X5=/\u0000|\uFFFD/g;function uv(t){return(typeof t=="string"?t:""+t).replace(q5,`
9
+ `).replace(X5,"")}function cv(t,e){return e=uv(e),uv(t)===e}function Lt(t,e,i,l,o,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ha(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ha(t,""+l);break;case"className":Ys(t,"class",l);break;case"tabIndex":Ys(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ys(t,i,l);break;case"style":cy(t,l,c);break;case"data":if(e!=="object"){Ys(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=qs(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"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 c=="function"&&(i==="formAction"?(e!=="input"&&Lt(t,e,"name",o.name,o,null),Lt(t,e,"formEncType",o.formEncType,o,null),Lt(t,e,"formMethod",o.formMethod,o,null),Lt(t,e,"formTarget",o.formTarget,o,null)):(Lt(t,e,"encType",o.encType,o,null),Lt(t,e,"method",o.method,o,null),Lt(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=qs(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=Cn);break;case"onScroll":l!=null&&Et("scroll",t);break;case"onScrollEnd":l!=null&&Et("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(o.children!=null)throw Error(u(60));t.innerHTML=i}}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}i=qs(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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(i,""+l):t.removeAttribute(i);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(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":Et("beforetoggle",t),Et("toggle",t),Gs(t,"popover",l);break;case"xlinkActuate":An(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":An(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":An(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":An(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":An(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":An(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":An(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":An(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":An(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Gs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=bA.get(i)||i,Gs(t,i,l))}}function Bf(t,e,i,l,o,c){switch(i){case"style":cy(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(o.children!=null)throw Error(u(60));t.innerHTML=i}}break;case"children":typeof l=="string"?ha(t,l):(typeof l=="number"||typeof l=="bigint")&&ha(t,""+l);break;case"onScroll":l!=null&&Et("scroll",t);break;case"onScrollEnd":l!=null&&Et("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ey.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(o=i.endsWith("Capture"),e=i.slice(2,o?i.length-7:void 0),c=t[Ee]||null,c=c!=null?c[i]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,l,o);break t}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Gs(t,i,l)}}}function pe(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",t),Et("load",t);var l=!1,o=!1,c;for(c in i)if(i.hasOwnProperty(c)){var g=i[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Lt(t,e,c,g,i,null)}}o&&Lt(t,e,"srcSet",i.srcSet,i,null),l&&Lt(t,e,"src",i.src,i,null);return;case"input":Et("invalid",t);var x=c=g=o=null,A=null,U=null;for(l in i)if(i.hasOwnProperty(l)){var P=i[l];if(P!=null)switch(l){case"name":o=P;break;case"type":g=P;break;case"checked":A=P;break;case"defaultChecked":U=P;break;case"value":c=P;break;case"defaultValue":x=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(u(137,e));break;default:Lt(t,e,l,P,i,null)}}sy(t,c,x,A,U,g,o,!1);return;case"select":Et("invalid",t),l=g=c=null;for(o in i)if(i.hasOwnProperty(o)&&(x=i[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":g=x;break;case"multiple":l=x;default:Lt(t,e,o,x,i,null)}e=c,i=g,t.multiple=!!l,e!=null?da(t,!!l,e,!1):i!=null&&da(t,!!l,i,!0);return;case"textarea":Et("invalid",t),c=o=l=null;for(g in i)if(i.hasOwnProperty(g)&&(x=i[g],x!=null))switch(g){case"value":l=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:Lt(t,e,g,x,i,null)}oy(t,l,o,c);return;case"option":for(A in i)if(i.hasOwnProperty(A)&&(l=i[A],l!=null))switch(A){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Lt(t,e,A,l,i,null)}return;case"dialog":Et("beforetoggle",t),Et("toggle",t),Et("cancel",t),Et("close",t);break;case"iframe":case"object":Et("load",t);break;case"video":case"audio":for(l=0;l<Wl.length;l++)Et(Wl[l],t);break;case"image":Et("error",t),Et("load",t);break;case"details":Et("toggle",t);break;case"embed":case"source":case"link":Et("error",t),Et("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(U in i)if(i.hasOwnProperty(U)&&(l=i[U],l!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Lt(t,e,U,l,i,null)}return;default:if(Xu(e)){for(P in i)i.hasOwnProperty(P)&&(l=i[P],l!==void 0&&Bf(t,e,P,l,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(l=i[x],l!=null&&Lt(t,e,x,l,i,null))}function F5(t,e,i,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,g=null,x=null,A=null,U=null,P=null;for(G in i){var F=i[G];if(i.hasOwnProperty(G)&&F!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":A=F;default:l.hasOwnProperty(G)||Lt(t,e,G,null,l,F)}}for(var _ in l){var G=l[_];if(F=i[_],l.hasOwnProperty(_)&&(G!=null||F!=null))switch(_){case"type":c=G;break;case"name":o=G;break;case"checked":U=G;break;case"defaultChecked":P=G;break;case"value":g=G;break;case"defaultValue":x=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,e));break;default:G!==F&&Lt(t,e,_,G,l,F)}}Pu(t,g,x,A,U,P,c,o);return;case"select":G=g=x=_=null;for(c in i)if(A=i[c],i.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":G=A;default:l.hasOwnProperty(c)||Lt(t,e,c,null,l,A)}for(o in l)if(c=l[o],A=i[o],l.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":_=c;break;case"defaultValue":x=c;break;case"multiple":g=c;default:c!==A&&Lt(t,e,o,c,l,A)}e=x,i=g,l=G,_!=null?da(t,!!i,_,!1):!!l!=!!i&&(e!=null?da(t,!!i,e,!0):da(t,!!i,i?[]:"",!1));return;case"textarea":G=_=null;for(x in i)if(o=i[x],i.hasOwnProperty(x)&&o!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Lt(t,e,x,null,l,o)}for(g in l)if(o=l[g],c=i[g],l.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":_=o;break;case"defaultValue":G=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&Lt(t,e,g,o,l,c)}ry(t,_,G);return;case"option":for(var rt in i)if(_=i[rt],i.hasOwnProperty(rt)&&_!=null&&!l.hasOwnProperty(rt))switch(rt){case"selected":t.selected=!1;break;default:Lt(t,e,rt,null,l,_)}for(A in l)if(_=l[A],G=i[A],l.hasOwnProperty(A)&&_!==G&&(_!=null||G!=null))switch(A){case"selected":t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Lt(t,e,A,_,l,G)}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 ht in i)_=i[ht],i.hasOwnProperty(ht)&&_!=null&&!l.hasOwnProperty(ht)&&Lt(t,e,ht,null,l,_);for(U in l)if(_=l[U],G=i[U],l.hasOwnProperty(U)&&_!==G&&(_!=null||G!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:Lt(t,e,U,_,l,G)}return;default:if(Xu(e)){for(var Ot in i)_=i[Ot],i.hasOwnProperty(Ot)&&_!==void 0&&!l.hasOwnProperty(Ot)&&Bf(t,e,Ot,void 0,l,_);for(P in l)_=l[P],G=i[P],!l.hasOwnProperty(P)||_===G||_===void 0&&G===void 0||Bf(t,e,P,_,l,G);return}}for(var j in i)_=i[j],i.hasOwnProperty(j)&&_!=null&&!l.hasOwnProperty(j)&&Lt(t,e,j,null,l,_);for(F in l)_=l[F],G=i[F],!l.hasOwnProperty(F)||_===G||_==null&&G==null||Lt(t,e,F,_,l,G)}function fv(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function K5(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var o=i[l],c=o.transferSize,g=o.initiatorType,x=o.duration;if(c&&x&&fv(g)){for(g=0,x=o.responseEnd,l+=1;l<i.length;l++){var A=i[l],U=A.startTime;if(U>x)break;var P=A.transferSize,F=A.initiatorType;P&&fv(F)&&(A=A.responseEnd,g+=P*(A<x?1:(x-U)/(A-U)))}if(--l,e+=8*(c+g)/(o.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 Lf=null,Of=null;function Hr(t){return t.nodeType===9?t:t.ownerDocument}function dv(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 hv(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 Vf(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 Nf=null;function Q5(){var t=window.event;return t&&t.type==="popstate"?t===Nf?!1:(Nf=t,!0):(Nf=null,!1)}var mv=typeof setTimeout=="function"?setTimeout:void 0,Z5=typeof clearTimeout=="function"?clearTimeout:void 0,pv=typeof Promise=="function"?Promise:void 0,I5=typeof queueMicrotask=="function"?queueMicrotask:typeof pv<"u"?function(t){return pv.resolve(null).then(t).catch(J5)}:mv;function J5(t){setTimeout(function(){throw t})}function pi(t){return t==="head"}function yv(t,e){var i=e,l=0;do{var o=i.nextSibling;if(t.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"||i==="/&"){if(l===0){t.removeChild(o),qa(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")ts(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,ts(i);for(var c=i.firstChild;c;){var g=c.nextSibling,x=c.nodeName;c[vl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=g}}else i==="body"&&ts(t.ownerDocument.body);i=o}while(i);qa(e)}function gv(t,e){var i=t;t=0;do{var l=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=l}while(i)}function Uf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Uf(i),Gu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function W5(t,e,i,l){for(;t.nodeType===1;){var o=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[vl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=nn(t.nextSibling),t===null)break}return null}function $5(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=nn(t.nextSibling),t===null))return null;return t}function vv(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=nn(t.nextSibling),t===null))return null;return t}function _f(t){return t.data==="$?"||t.data==="$~"}function Hf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function t3(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var l=function(){e(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function nn(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 kf=null;function bv(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return nn(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function Sv(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function xv(t,e,i){switch(e=Hr(i),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function ts(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Gu(t)}var an=new Map,Ev=new Set;function kr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Yn=Y.d;Y.d={f:e3,r:n3,D:i3,C:a3,L:l3,m:s3,X:o3,S:r3,M:u3};function e3(){var t=Yn.f(),e=zr();return t||e}function n3(t){var e=ua(t);e!==null&&e.tag===5&&e.type==="form"?H0(e):Yn.r(t)}var Ga=typeof document>"u"?null:document;function Tv(t,e,i){var l=Ga;if(l&&typeof e=="string"&&e){var o=Ze(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),Ev.has(o)||(Ev.add(o),t={rel:t,crossOrigin:i,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),pe(e,"link",t),re(e),l.head.appendChild(e)))}}function i3(t){Yn.D(t),Tv("dns-prefetch",t,null)}function a3(t,e){Yn.C(t,e),Tv("preconnect",t,e)}function l3(t,e,i){Yn.L(t,e,i);var l=Ga;if(l&&t&&e){var o='link[rel="preload"][as="'+Ze(e)+'"]';e==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+Ze(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+Ze(i.imageSizes)+'"]')):o+='[href="'+Ze(t)+'"]';var c=o;switch(e){case"style":c=Ya(t);break;case"script":c=Pa(t)}an.has(c)||(t=v({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),an.set(c,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(es(c))||e==="script"&&l.querySelector(ns(c))||(e=l.createElement("link"),pe(e,"link",t),re(e),l.head.appendChild(e)))}}function s3(t,e){Yn.m(t,e);var i=Ga;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Ze(l)+'"][href="'+Ze(t)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Pa(t)}if(!an.has(c)&&(t=v({rel:"modulepreload",href:t},e),an.set(c,t),i.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ns(c)))return}l=i.createElement("link"),pe(l,"link",t),re(l),i.head.appendChild(l)}}}function r3(t,e,i){Yn.S(t,e,i);var l=Ga;if(l&&t){var o=ca(l).hoistableStyles,c=Ya(t);e=e||"default";var g=o.get(c);if(!g){var x={loading:0,preload:null};if(g=l.querySelector(es(c)))x.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},i),(i=an.get(c))&&Gf(t,i);var A=g=l.createElement("link");re(A),pe(A,"link",t),A._p=new Promise(function(U,P){A.onload=U,A.onerror=P}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Gr(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:x},o.set(c,g)}}}function o3(t,e){Yn.X(t,e);var i=Ga;if(i&&t){var l=ca(i).hoistableScripts,o=Pa(t),c=l.get(o);c||(c=i.querySelector(ns(o)),c||(t=v({src:t,async:!0},e),(e=an.get(o))&&Yf(t,e),c=i.createElement("script"),re(c),pe(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function u3(t,e){Yn.M(t,e);var i=Ga;if(i&&t){var l=ca(i).hoistableScripts,o=Pa(t),c=l.get(o);c||(c=i.querySelector(ns(o)),c||(t=v({src:t,async:!0,type:"module"},e),(e=an.get(o))&&Yf(t,e),c=i.createElement("script"),re(c),pe(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Mv(t,e,i,l){var o=(o=tt.current)?kr(o):null;if(!o)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Ya(i.href),i=ca(o).hoistableStyles,l=i.get(e),l||(l={type:"style",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ya(i.href);var c=ca(o).hoistableStyles,g=c.get(t);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,g),(c=o.querySelector(es(t)))&&!c._p&&(g.instance=c,g.state.loading=5),an.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},an.set(t,i),c||c3(o,t,i,g.state))),e&&l===null)throw Error(u(528,""));return g}if(e&&l!==null)throw Error(u(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Pa(i),i=ca(o).hoistableScripts,l=i.get(e),l||(l={type:"script",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function Ya(t){return'href="'+Ze(t)+'"'}function es(t){return'link[rel="stylesheet"]['+t+"]"}function Av(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function c3(t,e,i,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}),pe(e,"link",i),re(e),t.head.appendChild(e))}function Pa(t){return'[src="'+Ze(t)+'"]'}function ns(t){return"script[async]"+t}function Cv(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ze(i.href)+'"]');if(l)return e.instance=l,re(l),l;var o=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),re(l),pe(l,"style",o),Gr(l,i.precedence,t),e.instance=l;case"stylesheet":o=Ya(i.href);var c=t.querySelector(es(o));if(c)return e.state.loading|=4,e.instance=c,re(c),c;l=Av(i),(o=an.get(o))&&Gf(l,o),c=(t.ownerDocument||t).createElement("link"),re(c);var g=c;return g._p=new Promise(function(x,A){g.onload=x,g.onerror=A}),pe(c,"link",l),e.state.loading|=4,Gr(c,i.precedence,t),e.instance=c;case"script":return c=Pa(i.src),(o=t.querySelector(ns(c)))?(e.instance=o,re(o),o):(l=i,(o=an.get(c))&&(l=v({},i),Yf(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),re(o),pe(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Gr(l,i.precedence,t));return e.instance}function Gr(t,e,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,g=0;g<l.length;g++){var x=l[g];if(x.dataset.precedence===e)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Gf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Yf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Yr=null;function wv(t,e,i){if(Yr===null){var l=new Map,o=Yr=new Map;o.set(i,l)}else o=Yr,l=o.get(i),l||(l=new Map,o.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),o=0;o<i.length;o++){var c=i[o];if(!(c[vl]||c[fe]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(e)||"";g=t+g;var x=l.get(g);x?x.push(c):l.set(g,[c])}}return l}function Rv(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function f3(t,e,i){if(i===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 Dv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function d3(t,e,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var o=Ya(l.href),c=e.querySelector(es(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Pr.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,re(c);return}c=e.ownerDocument||e,l=Av(l),(o=an.get(o))&&Gf(l,o),c=c.createElement("link"),re(c);var g=c;g._p=new Promise(function(x,A){g.onload=x,g.onerror=A}),pe(c,"link",l),i.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Pr.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Pf=0;function h3(t,e){return t.stylesheets&&t.count===0&&Xr(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Xr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Pf===0&&(Pf=62500*K5());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Xr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Pf?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Pr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var qr=null;function Xr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,qr=new Map,e.forEach(m3,t),qr=null,Pr.call(t))}function m3(t,e){if(!(e.state.loading&4)){var i=qr.get(t);if(i)var l=i.get(null);else{i=new Map,qr.set(t,i);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),l=g)}l&&i.set(null,l)}o=e.instance,g=o.getAttribute("data-precedence"),c=i.get(g)||l,c===l&&i.set(null,o),i.set(g,o),this.count++,l=Pr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var is={$$typeof:q,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function p3(t,e,i,l,o,c,g,x,A){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=Uu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.hiddenUpdates=Uu(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function jv(t,e,i,l,o,c,g,x,A,U,P,F){return t=new p3(t,e,i,g,A,U,P,F,x),e=1,c===!0&&(e|=24),c=Ue(3,null,null,e),t.current=c,c.stateNode=t,e=xc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},Ac(c),t}function zv(t){return t?(t=Sa,t):Sa}function Bv(t,e,i,l,o,c){o=zv(o),l.context===null?l.context=o:l.pendingContext=o,l=ai(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=li(t,l,e),i!==null&&(Re(i,t,e),Vl(i,t,e))}function Lv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function qf(t,e){Lv(t,e),(t=t.alternate)&&Lv(t,e)}function Ov(t){if(t.tag===13||t.tag===31){var e=Li(t,67108864);e!==null&&Re(e,t,67108864),qf(t,67108864)}}function Vv(t){if(t.tag===13||t.tag===31){var e=Ye();e=_u(e);var i=Li(t,e);i!==null&&Re(i,t,e),qf(t,e)}}var Fr=!0;function y3(t,e,i,l){var o=R.T;R.T=null;var c=Y.p;try{Y.p=2,Xf(t,e,i,l)}finally{Y.p=c,R.T=o}}function g3(t,e,i,l){var o=R.T;R.T=null;var c=Y.p;try{Y.p=8,Xf(t,e,i,l)}finally{Y.p=c,R.T=o}}function Xf(t,e,i,l){if(Fr){var o=Ff(l);if(o===null)zf(t,e,l,Kr,i),Uv(t,l);else if(b3(o,t,e,i,l))l.stopPropagation();else if(Uv(t,l),e&4&&-1<v3.indexOf(t)){for(;o!==null;){var c=ua(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Ri(c.pendingLanes);if(g!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var A=1<<31-Ve(g);x.entanglements[1]|=A,g&=~A}vn(c),(Dt&6)===0&&(Dr=vt()+500,Jl(0))}}break;case 31:case 13:x=Li(c,2),x!==null&&Re(x,c,2),zr(),qf(c,2)}if(c=Ff(l),c===null&&zf(t,e,l,Kr,i),c===o)break;o=c}o!==null&&l.stopPropagation()}else zf(t,e,l,null,i)}}function Ff(t){return t=Ku(t),Kf(t)}var Kr=null;function Kf(t){if(Kr=null,t=oa(t),t!==null){var e=d(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=p(e),t!==null)return t;t=null}else if(i===31){if(t=h(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Kr=t,null}function Nv(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(ae()){case Qt:return 2;case Zn:return 8;case Ns:case aA:return 32;case Fp:return 268435456;default:return 32}default:return 32}}var Qf=!1,yi=null,gi=null,vi=null,as=new Map,ls=new Map,bi=[],v3="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 Uv(t,e){switch(t){case"focusin":case"focusout":yi=null;break;case"dragenter":case"dragleave":gi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":as.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ls.delete(e.pointerId)}}function ss(t,e,i,l,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:i,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},e!==null&&(e=ua(e),e!==null&&Ov(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function b3(t,e,i,l,o){switch(e){case"focusin":return yi=ss(yi,t,e,i,l,o),!0;case"dragenter":return gi=ss(gi,t,e,i,l,o),!0;case"mouseover":return vi=ss(vi,t,e,i,l,o),!0;case"pointerover":var c=o.pointerId;return as.set(c,ss(as.get(c)||null,t,e,i,l,o)),!0;case"gotpointercapture":return c=o.pointerId,ls.set(c,ss(ls.get(c)||null,t,e,i,l,o)),!0}return!1}function _v(t){var e=oa(t.target);if(e!==null){var i=d(e);if(i!==null){if(e=i.tag,e===13){if(e=p(i),e!==null){t.blockedOn=e,Wp(t.priority,function(){Vv(i)});return}}else if(e===31){if(e=h(i),e!==null){t.blockedOn=e,Wp(t.priority,function(){Vv(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Qr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=Ff(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Fu=l,i.target.dispatchEvent(l),Fu=null}else return e=ua(i),e!==null&&Ov(e),t.blockedOn=i,!1;e.shift()}return!0}function Hv(t,e,i){Qr(t)&&i.delete(e)}function S3(){Qf=!1,yi!==null&&Qr(yi)&&(yi=null),gi!==null&&Qr(gi)&&(gi=null),vi!==null&&Qr(vi)&&(vi=null),as.forEach(Hv),ls.forEach(Hv)}function Zr(t,e){t.blockedOn===e&&(t.blockedOn=null,Qf||(Qf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,S3)))}var Ir=null;function kv(t){Ir!==t&&(Ir=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ir===t&&(Ir=null);for(var e=0;e<t.length;e+=3){var i=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(Kf(l||i)===null)continue;break}var c=ua(i);c!==null&&(t.splice(e,3),e-=3,Xc(c,{pending:!0,data:o,method:i.method,action:l},l,o))}}))}function qa(t){function e(A){return Zr(A,t)}yi!==null&&Zr(yi,t),gi!==null&&Zr(gi,t),vi!==null&&Zr(vi,t),as.forEach(e),ls.forEach(e);for(var i=0;i<bi.length;i++){var l=bi[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<bi.length&&(i=bi[0],i.blockedOn===null);)_v(i),i.blockedOn===null&&bi.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var o=i[l],c=i[l+1],g=o[Ee]||null;if(typeof c=="function")g||kv(i);else if(g){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[Ee]||null)x=g.formAction;else if(Kf(o)!==null)continue}else x=g.action;typeof x=="function"?i[l+1]=x:(i.splice(l,3),l-=3),kv(i)}}}function Gv(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Zf(t){this._internalRoot=t}Jr.prototype.render=Zf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var i=e.current,l=Ye();Bv(i,l,t,e,null,null)},Jr.prototype.unmount=Zf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Bv(t.current,2,null,t,null,null),zr(),e[ra]=null}};function Jr(t){this._internalRoot=t}Jr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Jp();t={blockedOn:null,target:t,priority:e};for(var i=0;i<bi.length&&e!==0&&e<bi[i].priority;i++);bi.splice(i,0,t),i===0&&_v(t)}};var Yv=s.version;if(Yv!=="19.2.1")throw Error(u(527,Yv,"19.2.1"));Y.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=m(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var x3={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wr.isDisabled&&Wr.supportsFiber)try{pl=Wr.inject(x3),Oe=Wr}catch{}}return Fa.createRoot=function(t,e){if(!f(t))throw Error(u(299));var i=!1,l="",o=Z0,c=I0,g=J0;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError)),e=jv(t,1,!1,null,null,i,l,null,o,c,g,Gv),t[ra]=e.current,jf(t),new Zf(e)},Fa.hydrateRoot=function(t,e,i){if(!f(t))throw Error(u(299));var l=!1,o="",c=Z0,g=I0,x=J0,A=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(A=i.formState)),e=jv(t,1,!0,e,i??null,l,o,A,c,g,x,Gv),e.context=zv(null),i=e.current,l=Ye(),l=_u(l),o=ai(l),o.callback=null,li(i,o,l),i=l,e.current.lanes=i,gl(e,i),vn(e),t[ra]=e.current,jf(t),new Jr(e)},Fa.version="19.2.1",Fa}var ld;function Jv(){if(ld)return no.exports;ld=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),no.exports=Iv(),no.exports}var Wv=Jv();const $v=Fi(Wv),sd={en:{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"}},ko:{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:"예정"}},ja:{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:"予定"}}},t1=()=>typeof navigator<"u"&&typeof navigator.language<"u";function e1(n){const a=n.split("-")[0];return a in sd?a:"en"}function so(n){let a="en";n?a=n:t1()&&(a=navigator.language);const s=e1(a);return sd[s]}so();const n1={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"},i1={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 De={video:{},browser:{},device:{},connection:{},screen:{},player_version:"latest",extra:{sessionId:null,playerType:"VPE React Native"},log_type:"vpe",privacy:{cookie_enabled:!0}},Pn={platform:"pub",stage:"prod",sync:!1,syncResult:{}};const a1=new Date().getTime(),rd=()=>{const n=new Date,a=f=>String(f).padStart(2,"0"),s=`${n.getFullYear()}-${a(n.getMonth()+1)}-${a(n.getDate())} ${a(n.getHours())}:${a(n.getMinutes())}:${a(n.getSeconds())}`,r=Math.floor(n.getTime()/1e3),u=new Date().getTime()-a1;return{logDate:s,logDateUnix:r,thisSec:u}};function l1(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function s1(n,a){Object.entries(a).forEach(([s,r])=>{l1(r)?(n[s]||(n[s]={}),Object.entries(r).forEach(([u,f])=>{f!=null&&(n[s][u]=f)})):r!=null&&(n[s]=r)})}function r1(n){const a=[];return n?.r1&&a.push(n.r1),n?.r2&&a.push(n.r2),n?.r3&&a.push(n.r3),a.join(" ")}function o1(n){try{const a=Pn.syncResult?.geoLocation;a&&(n.address=r1(a),n.isp=a.net||"",n.ip=Pn.syncResult?.ip||"",n.nation=a.country||"")}catch{}}const u1=async n=>{if(!n)return;const{platform:a,stage:s}=Pn,r=i1[a][s].log;try{const f=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_key:n})})).json();Pn.sync=f.result?.sync||!1,Pn.syncResult=f.result||{};const{logDate:d,logDateUnix:p}=rd();return De.extra.logDate=d,De.extra.logDateUnix=p,Pn.syncResult?.geoLocation&&o1(De.extra),f}catch(u){return console.error("MA config initialization failed:",u),null}};async function c1(n,a,s,r,u){Pn.platform=n,Pn.stage=a,s1(De,s),r&&(De.extra.vpePackageId=r),u&&(De.extra.vpeKey=u),De.extra.nation?De.browser.country=n1[De.extra.nation]||"Korea, Republic of":De.browser.country="Korea, Republic of";const{logDate:f,logDateUnix:d}=rd();De.extra.logDate=f,De.extra.logDateUnix=d,De.extra.created_at=d}const f1=(n={})=>{const a={autostart:!0,muted:!1,aspectRatio:"16/9",objectFit:"contain",controls:!0,keyboardShortcut:!0,startMutedInfoNotVisible:!1,allowsPictureInPicture:!1,staysActiveInBackground:!1,screenRecordingPrevention:!1,modalFullscreen:!1,seekingPreview:!0,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,iosFullscreenNativeMode:!0,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,...n};return n.controlBtn&&(s.controlBtn={...a.controlBtn,...n.controlBtn}),n.watermarkConfig&&(s.watermarkConfig={...a.watermarkConfig,...n.watermarkConfig}),n.captionStyle&&(s.captionStyle={...a.captionStyle,...n.captionStyle}),s.controlBtn?.progressBar===void 0&&(s.controlBtn.progressBar=!0),s},d1={gov:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5nb3YtbnRydXNzLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cudnBlLmdvdi1udHJ1c3MuY29tL3N0YXRz"},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLmdvdi1udHJ1c3MuY29tL3BsYXllci9jb25maWc=",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUuZ292LW50cnVzcy5jb20vc3RhdHM="}},pub:{prod:{config:"aHR0cHM6Ly9wYXBpLnZwZS5uYXZlcm5jcC5jb20vcGxheWVyL2NvbmZpZw==",report:"aHR0cHM6Ly9sb2cudnBlLm5hdmVybmNwLmNvbS9zdGF0cw=="},beta:{config:"aHR0cHM6Ly9wYXBpLmJldGEtdnBlLm5hdmVybmNwLmNvbS9wbGF5ZXIvY29uZmln",report:"aHR0cHM6Ly9sb2cuYmV0YS12cGUubmF2ZXJuY3AuY29tL3N0YXRz"}}};let od=[];const h1=n=>{try{return atob(n)}catch(a){return console.error("Base64 decoding failed:",a),""}};class m1{serverConfig={};playerInfo=null;accessKey;appId;platform;stage;isDev;translator=so();errorState;constructor({accessKey:a,appId:s,platform:r,stage:u,isDev:f=!1,language:d}){this.accessKey=a,this.appId=s||location.origin,this.platform=r,this.stage=u,this.isDev=f,this.updateTranslator(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(f=>!f))return console.warn(s),{error:this.setErrorRun(a[2])};const u=f=>(this.serverConfig=f,this.playerInfo=this.createPlayerInfo(f),this.playerInfo);try{const f=await this.performKeyCheck();if(f.code!==200)return{error:this.setErrorRun(a[3])};const d=u(f);return await c1(this.platform,this.stage,d,this.appId,this.accessKey),await u1(this.accessKey),{options:this.serverConfig.result?.options,playerInfo:d}}catch(f){return console.error("VPE SDK Initialization failed:",f),{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]:"",r=h1(d1[this.platform][this.stage][a[1]])+s,u=JSON.stringify([a[4],a[5]].reduce((d,p,h)=>(d[p]=[this.accessKey,this.appId][h],d),{})),f=await fetch(r,{method:a[6],headers:{[a[2]]:a[3]},body:u});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,r]=a.result.name.split("|"),u=navigator.connection||navigator.mozConnection||navigator.webkitConnection,f=this.getBrowserInfo(),d=navigator.userAgentData;return{cid:a.result.cid,player_name:s,player_version:r,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:u?.effectiveType??"unknown",downlink:u?.downlink??null,rtt:u?.rtt??null,save_data:u?.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: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),r=this.translator.error[s]||this.translator.error["01"],u={errorCode:a,errorMessage:r};return this.errorState=u,console.error("ncplayer : ",u),u}updateTranslator(a){this.translator=so(a)}getErrorState(){return this.errorState}isPaidTier(){return this.serverConfig.result?.pricing==="pay"}isInitialized(){return!!this.serverConfig.result}getValidatedOptions(a){const s=f1(this.serverConfig.result?.options),r={...s,...a??{}};return r?.lang&&(r?.lang=="auto"||this.updateTranslator(r.lang)),a?.controlBtn&&(r.controlBtn={...s.controlBtn,...a.controlBtn}),a?.watermarkConfig&&(r.watermarkConfig={...s.watermarkConfig,...a.watermarkConfig}),r.playlist&&!Array.isArray(r.playlist)&&(r.playlist=[{file:r.playlist}]),od=r.playlist||[],r}getPlaylist(){return od||[]}async playerStateReport(a){a.type}$t(a){const s=a.split(".");let r=this.translator;for(const u of s)if(r&&typeof r=="object"&&u in r)r=r[u];else return a;return typeof r=="string"?r:a}async hlsPaser(a){const s=[];if(!a||a.indexOf(".m3u8")===-1)return s;const r=(d,p)=>{try{return new URL(p,d).toString()}catch{return p}},u=d=>{const p=d.match(/RESOLUTION=(\d+)x(\d+)/);if(p)return`${p[2]}p`;const h=d.match(/BANDWIDTH=(\d+)/);return h?`${Math.round(Number(h[1])/1e3)}kbps`:"auto"},f=d=>{const p=d.split(/\r?\n/).map(h=>h.trim()).filter(h=>h.length>0);for(let h=0;h<p.length;h+=1){const y=p[h];if(y.startsWith("#EXT-X-STREAM-INF")){const m=p[h+1];m&&!m.startsWith("#")&&(s.push({quality:u(y),url:r(a,m),levelIndex:s.length}),h+=1)}}};try{const d=await fetch(a);if(!d.ok)return s;const p=await d.text();return p&&f(p),s}catch(d){return console.error("HLS 파싱 실패:",d),s}}}const ro=new Map,ud=E.createContext(null);let cd=0;function fd(n,a){if(ro.has(n))return ro.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return ro.set(n,r),r}function p1({scopeId:n,children:a}){const s=E.useRef(null);s.current||(cd+=1,s.current=`sdk-${cd}`);const r=n??s.current;return E.createElement(ud.Provider,{value:r},a)}function y1(){return E.useContext(ud)}function dd(n,a){const s=y1(),r=s?`${s}:${n}`:n,u=fd(r,a),f=m=>(u.listeners.add(m),()=>u.listeners.delete(m)),d=()=>u.value,p=()=>u.value,h=E.useCallback(m=>{u.value=typeof m=="function"?m(u.value):m,u.listeners.forEach(S=>S())},[u]);return[E.useSyncExternalStore(f,d,p),h]}function hd(n,a,s){const r=n?`${n}:${a}`:a,u=fd(r);u.value=typeof s=="function"?s(u.value):s,u.listeners.forEach(f=>f())}const oo=new Map,md=E.createContext(null);let pd=0;function g1(n,a){if(oo.has(n))return oo.get(n);const r={value:typeof a=="function"?a():a,listeners:new Set};return oo.set(n,r),r}function v1({scopeId:n,children:a}){const s=E.useRef(null);s.current||(pd+=1,s.current=`vpe-${pd}`);const r=n??s.current;return E.createElement(md.Provider,{value:r},a)}function b1(){return E.useContext(md)}function yd(n,a){const s=b1(),r=s?`${s}:${n}`:n,u=g1(r,a),f=m=>(u.listeners.add(m),()=>u.listeners.delete(m)),d=()=>u.value,p=()=>u.value,h=E.useCallback(m=>{u.value=typeof m=="function"?m(u.value):m,u.listeners.forEach(S=>S())},[u]);return[E.useSyncExternalStore(f,d,p),h]}const S1="playerState",x1={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,isSeekOverlayVisible:!1,videoWidth:0,videoHeight:0,subTitleIdx:0,currentTime:0,duration:0,buffered:0,bufferedStart:0,bufferedEnd:0,pidx:0,playlistCnt:0,playbackRate:1,isVolume:100,levels:[],currentLevel:-1,isAutoLevel:!0};function Nt(){const[n,a]=yd(S1,x1),s=E.useCallback(r=>{a(u=>{const f=typeof r=="function"?r(u):r,d={...u,...f},p=Object.keys(f);for(const h of p)if(!Object.is(u[h],d[h]))return d;return u})},[a]);return[n,s]}const E1="playerController",T1={videoEl:null,hls:null,dash:null};function Jt(){const[n,a]=yd(E1,T1),[s,r]=Nt(),u=E.useRef(0),f=E.useRef(""),d=E.useCallback(Q=>{a($=>({...$,videoEl:Q}))},[a]),p=E.useCallback(Q=>{a($=>({...$,hls:Q}))},[a]),h=E.useCallback(Q=>{a($=>({...$,dash:Q}))},[a]),y=E.useCallback(()=>{r({isUserTouch:!0})},[r]),m=E.useCallback(()=>{const Q=n.videoEl;Q&&Q.paused&&Q.play()},[n.videoEl]),S=E.useCallback(()=>{const Q=n.videoEl;Q&&(Q.paused||Q.pause())},[n.videoEl]),v=E.useCallback(Q=>{const $=n.videoEl;if(!$||Number.isNaN(Q))return;const at=Math.max(0,Math.min(Q,$.duration||Q));$.currentTime=at,r({currentTime:at,isEnded:!1})},[r,n.videoEl]),T=E.useCallback(Q=>{const $=n.videoEl;if(!$||Number.isNaN(Q))return;const at=Math.max(0,Math.min(100,Q));$.volume=at/100,$.muted=at===0},[n.videoEl]),D=E.useCallback(Q=>{const $=n.videoEl;$&&($.muted=Q)},[n.videoEl]),B=E.useCallback(Q=>{const $=n.videoEl;if(!$)return;const at=$.textTracks;if(!at||at.length===0)return;const K=Math.max(0,Math.min(s.subTitleIdx??0,at.length-1));for(let R=0;R<at.length;R+=1)at[R].mode=Q&&R===K?"showing":"disabled";r({isSubtitle:Q})},[s.subTitleIdx,r,n.videoEl]),L=E.useCallback(()=>{const Q=n.videoEl;if(!Q)return;const $=Q.textTracks;if(!$||$.length===0){r({isSubtitle:!1});return}let at=!1;for(let K=0;K<$.length;K+=1)if($[K].mode==="showing"){at=!0;break}at?localStorage.removeItem("vpeSubtitleEnabled"):localStorage.setItem("vpeSubtitleEnabled","Y"),B(!at)},[r,B,n.videoEl]),M=E.useCallback(Q=>{const $=n.videoEl;if(!$)return;const at=Array.from($.querySelectorAll("track")),K=$.textTracks;if((!K||K.length===0)&&at.length===0){r({isSubtitle:!1}),localStorage.removeItem("vpeSubtitleEnabled");return}const R=at.length>0?at.length-1:K.length-1,Y=Math.max(0,Math.min(Q,R));if(at.length>0)at.forEach((it,lt)=>{it.track&&(it.track.mode=lt===Y?"showing":"disabled")});else for(let it=0;it<K.length;it+=1)K[it].mode=it===Y?"showing":"disabled";r({isSubtitle:!0,subTitleIdx:Y}),localStorage.setItem("vpeSubtitleEnabled","Y")},[r,n.videoEl]),O=E.useCallback(()=>{const Q=n.videoEl;Q&&(Q.muted=!Q.muted)},[n.videoEl]),z=E.useCallback(()=>{const Q=n.videoEl;Q&&(Q.paused?m():S())},[S,m,n.videoEl]),q=E.useCallback(Q=>{const $=n.hls,at=n.dash;if(!$&&!at)return;if($){if(Q==="auto"){$.currentLevel=-1,r({currentLevel:-1,isAutoLevel:!0});return}$.currentLevel=Q,r({currentLevel:Q,isAutoLevel:!1});return}const K=Q==="auto"||Q===-1;at?.setAutoSwitchQualityFor&&at.setAutoSwitchQualityFor("video",K),!K&&at?.setQualityFor&&at.setQualityFor("video",Q),r({currentLevel:K?-1:Q,isAutoLevel:K})},[r,n.dash,n.hls]),Z=E.useCallback(Q=>{const $=n.videoEl;$&&($.playbackRate=Q)},[n.videoEl]),J=E.useCallback(async()=>{const Q=n.videoEl;if(!Q||typeof document>"u")return;const $=document;if($.pictureInPictureElement){typeof $.exitPictureInPicture=="function"&&await $.exitPictureInPicture();return}const at=Q.requestPictureInPicture;typeof at=="function"&&await at.call(Q)},[n.videoEl]),k=E.useCallback(()=>{if(typeof document>"u")return null;const Q=document.querySelector(".vpe-fullscreen-target")||document.querySelector(".vpe-root-wrap");return Q instanceof HTMLElement?Q:null},[]),N=E.useCallback((Q,$)=>{if(!Q||typeof document>"u")return;if(!($??!Q.classList.contains("vpe-ios-fullscreen"))){r({isFullscreen:!1}),Q.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=f.current;const R=document.getElementById("vpeIosFullscreenTmpDiv");R&&R.remove(),window.scrollY=u.current;return}r({isFullscreen:!0}),Q.classList.add("vpe-ios-fullscreen"),u.current=window.scrollY,f.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const K=document.createElement("div");K.id="vpeIosFullscreenTmpDiv",K.style.height="120dvh",document.body.appendChild(K),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},[r]),I=E.useCallback(()=>{const Q=n.videoEl;if(!Q)return!1;const $=Q.webkitEnterFullscreen;return typeof $!="function"?!1:($.call(Q),!0)},[n.videoEl]),nt=E.useCallback(Q=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(Q?.iosFullscreenNativeMode){if(I())return}else{const K=document.querySelector(".vpe-root-wrap");N(K,!0);return}if(typeof document>"u"||document.fullscreenElement)return;const at=k();at&&at.requestFullscreen?.()},[I,k,N]),st=E.useCallback(Q=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent)&&!Q?.iosFullscreenNativeMode){const at=document.querySelector(".vpe-root-wrap");N(at,!1);return}typeof document>"u"||document.fullscreenElement&&document.exitFullscreen?.()},[N]),ut=E.useCallback(Q=>{if(typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent))if(Q?.iosFullscreenNativeMode){if(I())return}else{const K=document.querySelector(".vpe-root-wrap");N(K);return}if(typeof document>"u")return;if(document.fullscreenElement){document.exitFullscreen?.();return}const at=k();at&&at.requestFullscreen?.()},[I,k,N]);return{videoEl:n.videoEl,hls:n.hls,dash:n.dash,setVideoElement:d,setHlsInstance:p,setDashInstance:h,play:m,pause:S,seekTo:v,setVolume:T,setMuted:D,setSubtitleEnabled:B,toggleSubtitle:L,toggleMute:O,togglePlay:z,useTouch:y,playBackRate:Z,selectSubTitle:M,selectQualityLevel:q,togglePictureInPicture:J,toggleFullscreen:ut,fullscreenOn:nt,fullscreenOff:st}}const M1=()=>{};function rs(n,a,s=!1,r=!0,u=M1){E.useEffect(()=>{const f=n.current;if(!f)return;const d=typeof document>"u"?null:document,p=()=>{a({isPlaying:!0,initPlay:!0,isEnded:!1})},h=()=>{a({isPlaying:!1})},y=()=>{s||Math.round(f.currentTime)%1==0&&(a({currentTime:f.currentTime,duration:f.duration}),u("timeupdate",{currentTime:f.currentTime,duration:f.duration}))},m=()=>{if(f.buffered.length>0){const k=f.buffered.start(0),N=f.buffered.end(f.buffered.length-1);a({buffered:N,bufferedStart:k,bufferedEnd:N})}},S=()=>{const k=f.videoWidth||0,N=f.videoHeight||0;a({isHd:k>=1280,is4k:N>=2160,videoWidth:k,videoHeight:N})},v=()=>{a({isEnded:!0}),u("ended")},T=()=>{a({isSeeked:!0}),u("seeking",{currentTime:f.currentTime})},D=()=>{setTimeout(()=>{a({isSeeked:!1}),u("seeked",{currentTime:f.currentTime})},200)},B=()=>{a({isMuted:f.muted,isVolume:Math.round(f.volume*100)}),u("volumechange",{isMuted:f.muted,isVolume:Math.round(f.volume*100)})},L=()=>{a({isLoading:!0,isWaiting:!0})},M=()=>{a({isLoading:!1}),S()},O=()=>{a({isLoading:!1}),S()},z=()=>{a({isWaiting:!0})},q=()=>{a({isWaiting:!1,isLoading:!1})},Z=()=>{a({isWaiting:!0})},J=()=>{!d||!r||d.hidden&&!f.paused&&f.pause()};return f.addEventListener("play",p),f.addEventListener("pause",h),f.addEventListener("timeupdate",y),f.addEventListener("ended",v),f.addEventListener("progress",m),f.addEventListener("seeking",T),f.addEventListener("seeked",D),f.addEventListener("volumechange",B),f.addEventListener("loadstart",L),f.addEventListener("loadedmetadata",M),f.addEventListener("loadeddata",O),f.addEventListener("resize",S),f.addEventListener("waiting",z),f.addEventListener("playing",q),f.addEventListener("stalled",Z),d?.addEventListener("visibilitychange",J),B(),()=>{f.removeEventListener("play",p),f.removeEventListener("pause",h),f.removeEventListener("timeupdate",y),f.removeEventListener("ended",v),f.removeEventListener("progress",m),f.removeEventListener("seeking",T),f.removeEventListener("seeked",D),f.removeEventListener("volumechange",B),f.removeEventListener("loadstart",L),f.removeEventListener("loadedmetadata",M),f.removeEventListener("loadeddata",O),f.removeEventListener("resize",S),f.removeEventListener("waiting",z),f.removeEventListener("playing",q),f.removeEventListener("stalled",Z),d?.removeEventListener("visibilitychange",J)}},[r,s,a,n])}const A1=3,C1=3e3;function w1(n){const a=E.useRef(null),s=E.useRef(0),r=E.useRef(null),[u,f]=Nt(),{setVideoElement:d,setHlsInstance:p}=Jt(),h=n.hlsLib,y=n.options;return E.useEffect(()=>{const m=a.current,S=n?.src?.file;if(!(!m||!S)){if(h?.isSupported?.()){const v=new h({lowLatencyMode:y.lowLatencyMode,liveSyncDuration:y.lowLatencyMode?3:5,backBufferLength:y.lowLatencyMode?30:90,startPosition:-1,debug:!1});p(v),v.attachMedia(m),v.on(h.Events.MEDIA_ATTACHED,()=>{v.loadSource(S)});const T=typeof y?.retry?.maxRetry=="number"?y.retry.maxRetry:A1,D=typeof y?.retry?.interval=="number"?y.retry.interval:C1,B=L=>{if(typeof L?.details?.live=="boolean"){const M=L.details.live,O=L.details.totalduration,z=M&&typeof O=="number"&&Number.isFinite(O)&&O>0;f({isLive:M,isDvr:z})}};return v.on(h.Events.MANIFEST_PARSED,(L,M)=>{s.current=0,B(M);const O=(v.levels??[]).map((z,q)=>({index:q,width:z.width,height:z.height,bitrate:z.bitrate,name:z.name}));f({levels:O,currentLevel:v.currentLevel,isAutoLevel:v.autoLevelEnabled})}),v.on(h.Events.LEVEL_LOADED,(L,M)=>{s.current=0,B(M)}),v.on(h.Events.LEVEL_SWITCHED,(L,M)=>{f({currentLevel:M.level,isAutoLevel:v.autoLevelEnabled})}),v.on(h.Events.ERROR,(L,M)=>{if(M?.fatal){if(s.current<T){s.current+=1,console.log(`HLS 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,M?.type===h.ErrorTypes.MEDIA_ERROR){v.recoverMediaError();return}v.stopLoad(),v.loadSource(S),v.startLoad()},D);return}console.log("HLS 재시도 횟수 초과"),n.onError&&n.onError({evt:L,data:M}),v.destroy()}}),()=>{r.current&&(clearTimeout(r.current),r.current=null),p(null),v.destroy()}}m.src=S,m.load()}},[h,n?.src?.file,n.onError,p,f]),E.useEffect(()=>{const m=a.current;if(!m)return;const S=v=>{n.onError&&n.onError(v)};return m.addEventListener("error",S),()=>{m.removeEventListener("error",S)}},[n.onError]),E.useEffect(()=>{const m=a.current;if(!m||h?.isSupported?.())return;const S=()=>{const v=m.duration,T=!Number.isFinite(v)||v===1/0,D=T?Number.isFinite(v)&&v>0:!1;f({isLive:T,isDvr:D})};return m.addEventListener("loadedmetadata",S),m.addEventListener("durationchange",S),S(),()=>{m.removeEventListener("loadedmetadata",S),m.removeEventListener("durationchange",S)}},[h,f]),E.useEffect(()=>(d(a.current),()=>d(null)),[d]),E.useEffect(()=>{const m=a.current;if(!m)return;const S=y?.playbackRate;typeof S=="number"&&(m.playbackRate=S,f({playbackRate:S}))},[y]),E.useEffect(()=>{const m=a.current;if(!m||!n.src?.vtt?.length)return;const S=50,v=16,T=1.2,D=40,L=-Math.max(1,Math.round(S/(v*T))),M=k=>{if(k.cues)for(let N=0;N<k.cues.length;N+=1){const I=k.cues[N];I.line=L,I.lineAlign="center"}},O=k=>{if(!k.cues)return;const N=m.getBoundingClientRect(),I=N.width>0?D*2*100/N.width:0,nt=Math.max(10,Math.min(100,100-I));for(let st=0;st<k.cues.length;st+=1){const ut=k.cues[st];ut.size=nt,ut.position=50,ut.align="center",ut.line=-3}},z=k=>{M(k),O(k)},q=Array.from(m.querySelectorAll("track")),Z=k=>{const N=k.currentTarget;N?.track&&z(N.track)};q.forEach(k=>{k.addEventListener("load",Z),k.track&&z(k.track)});const J=new ResizeObserver(()=>{q.forEach(k=>{k.track&&O(k.track)})});return J.observe(m),()=>{q.forEach(k=>{k.removeEventListener("load",Z)}),J.disconnect()}},[y,n.src?.vtt]),rs(a,f,u.isSeeked,y?.autoPause,n.emitEvent),E.useEffect(()=>{const m=n.src?.vtt??[],S=m.length>0,v=m.findIndex(D=>D.default),T=v>=0?v:0;f({hasSubtitle:S,isSubtitle:!1,subTitleIdx:T})},[n.src?.vtt,f]),E.useEffect(()=>{if(!u.isSubtitle)return;const m=a.current;if(!m||!n.src?.vtt?.length)return;const S=new Map,v=[],T=async(B,L)=>{try{const M=await fetch(L,{mode:"cors"});if(!M.ok)return;const O=await M.blob(),z=URL.createObjectURL(O);v.push(z),S.set(B,B.src),B.src=z}catch{}},D=Array.from(m.querySelectorAll("track"));return D.forEach(B=>{B.src&&T(B,B.src)}),()=>{D.forEach(B=>{const L=S.get(B);L&&(B.src=L)}),v.forEach(B=>URL.revokeObjectURL(B))}},[n.src?.vtt,u.subTitleIdx,u.isSubtitle]),E.useEffect(()=>{const m=a.current;if(!m)return;const S=Array.from(m.querySelectorAll("track")),v=m.textTracks;if((!v||v.length===0)&&S.length===0)return;const T=u.subTitleIdx,D=u.isSubtitle,B=()=>{if(S.length>0){S.forEach(M=>{M.track&&(M.default=!1,M.track.mode="disabled")}),S.forEach((M,O)=>{M.track&&D&&O===T&&(M.default=!0,M.track.mode="showing")});return}for(let M=0;M<v.length;M+=1)v[M].mode="disabled";D&&v[T]&&(v[T].mode="showing")};B();const L=()=>{B()};return S.forEach(M=>{M.addEventListener("load",L)}),()=>{S.forEach(M=>{M.removeEventListener("load",L)})}},[u.isSubtitle,u.subTitleIdx,n.src?.vtt]),E.useEffect(()=>{const m=a.current;m&&y.autostart&&m.play().catch(S=>{console.log(S),m.muted=!0,m.play()})},[y.autostart]),E.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&u.hasSubtitle&&f({isSubtitle:!!S})},1e3)},[u.hasSubtitle,f]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,className:"vpe-video-dom",controls:!1,autoPlay:y?.autostart,muted:y?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?u.initPlay?"transparent":`url(${n.src.poster}) center / ${y?.objectFit??"contain"} no-repeat`:void 0,objectFit:y?.objectFit??"contain"},children:n.src.vtt?.map(m=>b.jsx("track",{kind:"subtitles",srcLang:m.id,label:m.label,src:m.src,default:m.default},`${m.id}-${m.src}`))})})}const R1=3,D1=3e3,j1=n=>{if(!n)return null;if(typeof n.MediaPlayer=="function"){const a=n.MediaPlayer();if(a?.create)return a.create()}if(n.MediaPlayer?.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const a=n.MediaPlayerFactory();if(a?.create)return a.create()}return null};function z1(n){const a=E.useRef(null),s=E.useRef(0),r=E.useRef(null),[u,f]=Nt(),{setVideoElement:d,setDashInstance:p}=Jt(),h=n.dashLib,y=n.options;return E.useEffect(()=>{const m=a.current,S=n?.src?.file;if(!m||!S)return;const v=j1(h);if(!v){m.src=S;return}p(v),typeof v.initialize=="function"?v.initialize(m,S,!!y?.autostart):typeof v.attachView=="function"&&typeof v.attachSource=="function"?(v.attachView(m),v.attachSource(S)):m.src=S;const T=typeof y?.retry?.maxRetry=="number"?y.retry.maxRetry:R1,D=typeof y?.retry?.interval=="number"?y.retry.interval:D1,B=()=>{const N=(typeof v.getBitrateInfoListFor=="function"?v.getBitrateInfoListFor("video"):[]).map((st,ut)=>({index:typeof st?.qualityIndex=="number"?st.qualityIndex:ut,width:st?.width,height:st?.height,bitrate:st?.bitrate??st?.bandwidth,name:st?.name})),I=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,nt=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;f({levels:N,currentLevel:I,isAutoLevel:nt})},L=()=>{const k=typeof v.isDynamic=="function"?v.isDynamic():!1,N=typeof v.getDuration=="function"?v.getDuration():void 0,I=k&&typeof N=="number"&&Number.isFinite(N)&&N>0;f({isLive:k,isDvr:I})},M=()=>{s.current=0,B(),L()},O=()=>{const k=typeof v.getQualityFor=="function"?v.getQualityFor("video"):-1,N=typeof v.getAutoSwitchQualityFor=="function"?v.getAutoSwitchQualityFor("video"):!0;f({currentLevel:k,isAutoLevel:N})},z=(k,N)=>{if(N?.error?.fatal??N?.fatal??!0){if(s.current<T){s.current+=1,console.log(`DASH 에러 발생, ${s.current}회 재시도`),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{if(r.current=null,typeof v.attachSource=="function"){v.attachSource(S);return}typeof v.reset=="function"&&(v.reset(),typeof v.initialize=="function"&&v.initialize(m,S,!!y?.autostart))},D);return}console.log("DASH 재시도 횟수 초과"),n.onError&&n.onError({evt:k,data:N}),typeof v.reset=="function"&&v.reset()}},q=h?.MediaPlayer?.events??h?.MediaPlayer?.Events??h?.events??h?.Events??void 0,Z=[],J=(k,N)=>{!k||typeof v.on!="function"||(v.on(k,N),Z.push(()=>{typeof v.off=="function"&&v.off(k,N)}))};return J(q?.STREAM_INITIALIZED??q?.MANIFEST_LOADED,M),J(q?.QUALITY_CHANGE_RENDERED??q?.QUALITY_CHANGE_REQUESTED,O),J(q?.ERROR,z),()=>{r.current&&(clearTimeout(r.current),r.current=null),Z.forEach(k=>k()),p(null),typeof v.reset=="function"&&v.reset()}},[h,n?.src?.file,n.onError,p,f]),E.useEffect(()=>{const m=a.current;if(!m||!!h&&(typeof h.MediaPlayer=="function"||typeof h.MediaPlayer?.create=="function"||typeof h.MediaPlayerFactory=="function"))return;const v=()=>{const T=m.duration,D=!Number.isFinite(T)||T===1/0,B=D?Number.isFinite(T)&&T>0:!1;f({isLive:D,isDvr:B})};return m.addEventListener("loadedmetadata",v),m.addEventListener("durationchange",v),v(),()=>{m.removeEventListener("loadedmetadata",v),m.removeEventListener("durationchange",v)}},[h,f]),E.useEffect(()=>(d(a.current),()=>d(null)),[d]),E.useEffect(()=>{const m=a.current;if(!m)return;const S=y?.playbackRate;typeof S=="number"&&(m.playbackRate=S,f({playbackRate:S}))},[y]),E.useEffect(()=>{const m=a.current;if(!m||!n.src?.vtt?.length)return;const S=50,v=16,T=1.2,D=40,L=-Math.max(1,Math.round(S/(v*T))),M=k=>{if(k.cues)for(let N=0;N<k.cues.length;N+=1){const I=k.cues[N];I.line=L,I.lineAlign="center"}},O=k=>{if(!k.cues)return;const N=m.getBoundingClientRect(),I=N.width>0?D*2*100/N.width:0,nt=Math.max(10,Math.min(100,100-I));for(let st=0;st<k.cues.length;st+=1){const ut=k.cues[st];ut.size=nt,ut.position=50,ut.align="center"}},z=k=>{M(k),O(k)},q=Array.from(m.querySelectorAll("track")),Z=k=>{const N=k.currentTarget;N?.track&&z(N.track)};q.forEach(k=>{k.addEventListener("load",Z),k.track&&z(k.track)});const J=new ResizeObserver(()=>{q.forEach(k=>{k.track&&O(k.track)})});return J.observe(m),()=>{q.forEach(k=>{k.removeEventListener("load",Z)}),J.disconnect()}},[y,n.src?.vtt]),rs(a,f,u.isSeeked,y?.autoPause,n.emitEvent),E.useEffect(()=>{const m=n.src?.vtt??[],S=m.length>0,v=m.findIndex(D=>D.default),T=v>=0?v:0;f({hasSubtitle:S,isSubtitle:!1,subTitleIdx:T})},[n.src?.vtt,f]),E.useEffect(()=>{if(!u.isSubtitle)return;const m=a.current;if(!m||!n.src?.vtt?.length)return;const S=new Map,v=[],T=async(B,L)=>{try{const M=await fetch(L,{mode:"cors"});if(!M.ok)return;const O=await M.blob(),z=URL.createObjectURL(O);v.push(z),S.set(B,B.src),B.src=z}catch{}},D=Array.from(m.querySelectorAll("track"));return D.forEach(B=>{B.src&&T(B,B.src)}),()=>{D.forEach(B=>{const L=S.get(B);L&&(B.src=L)}),v.forEach(B=>URL.revokeObjectURL(B))}},[n.src?.vtt,u.subTitleIdx,u.isSubtitle]),E.useEffect(()=>{const m=a.current;if(!m)return;const S=Array.from(m.querySelectorAll("track")),v=m.textTracks;if((!v||v.length===0)&&S.length===0)return;const T=u.subTitleIdx,D=u.isSubtitle,B=()=>{if(S.length>0){S.forEach(M=>{M.track&&(M.default=!1,M.track.mode="disabled")}),S.forEach((M,O)=>{M.track&&D&&O===T&&(M.default=!0,M.track.mode="showing")});return}for(let M=0;M<v.length;M+=1)v[M].mode="disabled";D&&v[T]&&(v[T].mode="showing")};B();const L=()=>{B()};return S.forEach(M=>{M.addEventListener("load",L)}),()=>{S.forEach(M=>{M.removeEventListener("load",L)})}},[u.isSubtitle,u.subTitleIdx,n.src?.vtt]),E.useEffect(()=>{const m=a.current;m&&y.autostart&&m.play().catch(S=>{console.log(S),m.muted=!0,m.play()})},[y.autostart]),E.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const S=localStorage.getItem("vpeSubtitleEnabled");S!==null&&u.hasSubtitle&&f({isSubtitle:!!S})},1e3)},[u.hasSubtitle,f]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{className:"vpe-video-dom",playsInline:!0,ref:a,controls:!1,autoPlay:y?.autostart,muted:y?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?u.initPlay?"transparent":`url(${n.src.poster}) center / ${y?.objectFit??"contain"} no-repeat`:void 0,objectFit:y?.objectFit??"contain"},children:n.src.vtt?.map(m=>b.jsx("track",{kind:"subtitles",srcLang:m.id,label:m.label,src:m.src,default:m.default},`${m.id}-${m.src}`))})})}function B1(n){const a=E.useRef(null),[s,r]=Nt(),{setVideoElement:u}=Jt(),f=n.options;return E.useEffect(()=>{const d=a.current,p=n?.src?.file;!d||!p||(d.src=p)},[n?.src?.file]),E.useEffect(()=>{const d=a.current;if(!d)return;const p=h=>{n.onError&&n.onError(h)};return d.addEventListener("error",p),()=>{d.removeEventListener("error",p)}},[n.onError]),E.useEffect(()=>{const d=a.current;if(!d)return;const p=()=>{const h=d.duration,y=!Number.isFinite(h)||h===1/0,m=y?Number.isFinite(h)&&h>0:!1;r({isLive:y,isDvr:m})};return d.addEventListener("loadedmetadata",p),d.addEventListener("durationchange",p),p(),()=>{d.removeEventListener("loadedmetadata",p),d.removeEventListener("durationchange",p)}},[r]),E.useEffect(()=>(u(a.current),()=>u(null)),[u]),E.useEffect(()=>{const d=a.current;if(!d)return;const p=f?.playbackRate;typeof p=="number"&&(d.playbackRate=p,r({playbackRate:p}))},[f,r]),E.useEffect(()=>{const d=a.current;if(!d||!n.src?.vtt?.length)return;const p=50,h=16,y=1.2,m=40,v=-Math.max(1,Math.round(p/(h*y))),T=z=>{if(z.cues)for(let q=0;q<z.cues.length;q+=1){const Z=z.cues[q];Z.line=v,Z.lineAlign="center"}},D=z=>{if(!z.cues)return;const q=d.getBoundingClientRect(),Z=q.width>0?m*2*100/q.width:0,J=Math.max(10,Math.min(100,100-Z));for(let k=0;k<z.cues.length;k+=1){const N=z.cues[k];N.size=J,N.position=50,N.align="center"}},B=z=>{T(z),D(z)},L=Array.from(d.querySelectorAll("track")),M=z=>{const q=z.currentTarget;q?.track&&B(q.track)};L.forEach(z=>{z.addEventListener("load",M),z.track&&B(z.track)});const O=new ResizeObserver(()=>{L.forEach(z=>{z.track&&D(z.track)})});return O.observe(d),()=>{L.forEach(z=>{z.removeEventListener("load",M)}),O.disconnect()}},[f,n.src?.vtt]),rs(a,r,s.isSeeked,f?.autoPause,n.emitEvent),E.useEffect(()=>{const d=n.src?.vtt??[],p=d.length>0,h=d.findIndex(m=>m.default),y=h>=0?h:0;r({hasSubtitle:p,isSubtitle:!1,subTitleIdx:y})},[n.src?.vtt,r]),E.useEffect(()=>{if(!s.isSubtitle)return;const d=a.current;if(!d||!n.src?.vtt?.length)return;const p=new Map,h=[],y=async(S,v)=>{try{const T=await fetch(v,{mode:"cors"});if(!T.ok)return;const D=await T.blob(),B=URL.createObjectURL(D);h.push(B),p.set(S,S.src),S.src=B}catch{}},m=Array.from(d.querySelectorAll("track"));return m.forEach(S=>{S.src&&y(S,S.src)}),()=>{m.forEach(S=>{const v=p.get(S);v&&(S.src=v)}),h.forEach(S=>URL.revokeObjectURL(S))}},[n.src?.vtt,s.subTitleIdx,s.isSubtitle]),E.useEffect(()=>{const d=a.current;if(!d)return;const p=Array.from(d.querySelectorAll("track")),h=d.textTracks;if((!h||h.length===0)&&p.length===0)return;const y=s.subTitleIdx,m=s.isSubtitle,S=()=>{if(p.length>0){p.forEach(T=>{T.track&&(T.default=!1,T.track.mode="disabled")}),p.forEach((T,D)=>{T.track&&m&&D===y&&(T.default=!0,T.track.mode="showing")});return}for(let T=0;T<h.length;T+=1)h[T].mode="disabled";m&&h[y]&&(h[y].mode="showing")};S();const v=()=>{S()};return p.forEach(T=>{T.addEventListener("load",v)}),()=>{p.forEach(T=>{T.removeEventListener("load",v)})}},[s.isSubtitle,s.subTitleIdx,n.src?.vtt]),E.useEffect(()=>{const d=a.current;d&&f.autostart&&d.play().catch(p=>{console.log(p),d.muted=!0,d.play()})},[f.autostart]),E.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const p=localStorage.getItem("vpeSubtitleEnabled");p!==null&&s.hasSubtitle&&r({isSubtitle:!!p})},1e3)},[s.hasSubtitle,r]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,className:"vpe-video-dom",ref:a,controls:!1,autoPlay:f?.autostart,muted:f?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?s.initPlay?"transparent":`url(${n.src.poster}) center / ${f?.objectFit??"contain"} no-repeat`:void 0,objectFit:f?.objectFit??"contain"},children:n.src.vtt?.map(d=>b.jsx("track",{kind:"subtitles",srcLang:d.id,label:d.label,src:d.src,default:d.default},`${d.id}-${d.src}`))})})}const L1="com.apple.fps",O1="com.apple.fps.1_0",V1=n=>["application/vnd.apple.mpegurl","application/x-mpegURL"].some(s=>{const r=n.canPlayType(s);return r==="probably"||r==="maybe"}),gd=n=>{if(!n)return;const a={};return Object.entries(n).forEach(([s,r])=>{a[s]=String(r)}),a},N1=n=>{const a=new Uint16Array(n.length);for(let s=0;s<n.length;s+=1)a[s]=n.charCodeAt(s);return a},U1=n=>{if(n instanceof Uint8Array)return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(typeof TextEncoder<"u")return new TextEncoder().encode(n);const a=new Uint8Array(n.length);for(let s=0;s<n.length;s+=1)a[s]=n.charCodeAt(s);return a},_1=n=>{if(typeof TextDecoder<"u")return new TextDecoder("utf-8").decode(n);let a="";for(let s=0;s<n.length;s+=1)a+=String.fromCharCode(n[s]);return a},H1=n=>{let a="";if(typeof TextDecoder<"u")try{a=new TextDecoder("utf-16le").decode(n)}catch{a=""}return(!a||!a.includes("skd://"))&&(a=_1(n)),a.replace(/\u0000/g,"").trim()},k1=n=>n?n.replace(/^<+|>+$/g,"").match(/skd:\/\/([^>"\s?#]+)/)?.[1]??"":"",G1=n=>{try{return new URL(n).hostname}catch{const a=document.createElement("a");return a.href=n,a.hostname}},Y1=(n,a,s)=>{const r=N1(a),u=new ArrayBuffer(n.byteLength+4+r.byteLength+4+s.byteLength),f=new DataView(u);let d=0;new Uint8Array(u,d,n.byteLength).set(n),d+=n.byteLength,f.setUint32(d,r.byteLength,!0),d+=4;const h=new Uint16Array(u,d,r.length);return h.set(r),d+=h.byteLength,f.setUint32(d,s.byteLength,!0),d+=4,new Uint8Array(u,d,s.byteLength).set(s),new Uint8Array(u)},uo=n=>{const a=n.replace(/[\r\n\s]/g,""),s=typeof atob=="function"?atob(a):"",r=new Uint8Array(s.length);for(let u=0;u<s.length;u+=1)r[u]=s.charCodeAt(u);return r},P1=n=>{const a=n instanceof Uint8Array?n:new Uint8Array(n);let s="";for(let r=0;r<a.length;r+=1)s+=String.fromCharCode(a[r]);return typeof btoa=="function"?btoa(s):""};function q1(n){const a=E.useRef(null),s=E.useRef(null),r=E.useRef(!1),u=E.useRef(null),f=E.useRef(null),d=E.useRef([]),p=E.useRef(0),[h,y]=Nt(),{setVideoElement:m}=Jt(),S=n.options;return E.useEffect(()=>{const v=a.current,T=n?.src?.drm?.[L1],D=n?.src?.file;if(!v||!D||!T?.licenseUri||!T?.certificateUri)return;const B=v;if(typeof B.webkitSetMediaKeys!="function")return;let L=!1;const M=J=>{n.onError&&n.onError(J)},O=async()=>{const J=gd(T.certificateRequestHeader),k=await fetch(T.certificateUri,{method:"GET",headers:J});if(!k.ok)throw new Error(`FairPlay certificate request failed (${k.status})`);const N=k.headers.get("content-type")??"";if(N.includes("application/json")||N.includes("text")){const nt=await k.text();try{const st=JSON.parse(nt),ut=st?.certificate??st?.data??st?.body??"";if(ut)return uo(ut)}catch{}if(nt)return uo(nt)}const I=await k.arrayBuffer();return new Uint8Array(I)},z=async(J,k)=>{const N=gd(T.licenseRequestHeader),I=P1(J),nt=new URLSearchParams({spc:I,assetId:k,contentId:k}).toString(),st=await fetch(T.licenseUri,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...N},body:nt});if(!st.ok)throw new Error(`FairPlay license request failed (${st.status})`);const ut=st.headers.get("content-type")??"";if(ut.includes("application/json")||ut.includes("text")){const Q=await st.text();let $=Q.trim();try{const at=JSON.parse(Q);$=at?.ckc??at?.license??at?.data??at?.body??""}catch{}if($)return uo($).buffer}return st.arrayBuffer()},q=J=>{if(!f.current||!u.current)throw new Error("FairPlay initData/certificate missing");const k=Y1(f.current,J,u.current),N=B.webkitKeys.createSession("video/mp4",k);N.contentId=J,s.current=N,N.addEventListener("webkitkeymessage",async I=>{try{const nt=I?.message;if(!nt)throw new Error("FairPlay key message missing");const st=await z(nt instanceof Uint8Array?nt:nt.buffer??nt,J);N.update(new Uint8Array(st))}catch(nt){M(nt)}}),N.addEventListener("webkitkeyadded",()=>{r.current=!1}),N.addEventListener("webkitkeyerror",()=>{const I=p.current+1,nt=d.current[I];if(nt){p.current=I;try{N?.close&&N.close()}catch{}q(nt);return}M(new Error("FairPlay key session error"))})},Z=async J=>{if(L||r.current||s.current)return;const k=J?.initData;if(k){r.current=!0;try{B.webkitKeys||B.webkitSetMediaKeys(new window.WebKitMediaKeys(O1));const N=await O();u.current=N;const I=U1(k);if(f.current=I,!I.length)throw new Error("FairPlay initData is empty");const nt=H1(I),st=k1(nt),ut=[S?.fairplayContentId,st?`skd://${st}`:"",st,G1(nt),nt].filter(at=>!!at),Q=Array.from(new Set(ut));d.current=Q,p.current=0;const $=Q[0]??"";q($)}catch(N){M(N)}finally{r.current=!1}}};return v.addEventListener("webkitneedkey",Z),()=>{if(L=!0,r.current=!1,v.removeEventListener("webkitneedkey",Z),s.current?.close)try{s.current.close()}catch{}s.current=null}},[n?.src?.drm,n?.src?.file,n.onError]),E.useEffect(()=>{const v=a.current,T=n?.src?.file;!v||!T||(V1(v)||n.onError&&n.onError(new Error("Native HLS not supported")),v.src=T,v.load())},[n?.src?.file,n.onError]),E.useEffect(()=>{const v=a.current;if(!v)return;const T=D=>{n.onError&&n.onError(D)};return v.addEventListener("error",T),()=>{v.removeEventListener("error",T)}},[n.onError]),E.useEffect(()=>{const v=a.current;if(!v)return;const T=()=>{const D=v.duration,B=!Number.isFinite(D)||D===1/0,L=B?Number.isFinite(D)&&D>0:!1;y({isLive:B,isDvr:L})};return v.addEventListener("loadedmetadata",T),v.addEventListener("durationchange",T),T(),()=>{v.removeEventListener("loadedmetadata",T),v.removeEventListener("durationchange",T)}},[y]),E.useEffect(()=>(m(a.current),()=>m(null)),[m]),E.useEffect(()=>{const v=a.current;v&&v.setAttribute("webkit-playsinline","true")},[]),E.useEffect(()=>{const v=a.current;if(!v)return;const T=S?.playbackRate;typeof T=="number"&&(v.playbackRate=T,y({playbackRate:T}))},[S,y]),E.useEffect(()=>{const v=a.current;if(!v||!n.src?.vtt?.length)return;const T=50,D=16,B=1.2,L=40,O=-Math.max(1,Math.round(T/(D*B))),z=I=>{if(I.cues)for(let nt=0;nt<I.cues.length;nt+=1){const st=I.cues[nt];st.line=O,st.lineAlign="center"}},q=I=>{if(!I.cues)return;const nt=v.getBoundingClientRect(),st=nt.width>0?L*2*100/nt.width:0,ut=Math.max(10,Math.min(100,100-st));for(let Q=0;Q<I.cues.length;Q+=1){const $=I.cues[Q];$.size=ut,$.position=50,$.align="center",$.line=-3}},Z=I=>{z(I),q(I)},J=Array.from(v.querySelectorAll("track")),k=I=>{const nt=I.currentTarget;nt?.track&&Z(nt.track)};J.forEach(I=>{I.addEventListener("load",k),I.track&&Z(I.track)});const N=new ResizeObserver(()=>{J.forEach(I=>{I.track&&q(I.track)})});return N.observe(v),()=>{J.forEach(I=>{I.removeEventListener("load",k)}),N.disconnect()}},[S,n.src?.vtt]),rs(a,y,h.isSeeked,S?.autoPause,n.emitEvent),E.useEffect(()=>{const v=n.src?.vtt??[],T=v.length>0,D=v.findIndex(L=>L.default),B=D>=0?D:0;y({hasSubtitle:T,isSubtitle:!1,subTitleIdx:B})},[n.src?.vtt,y]),E.useEffect(()=>{if(!h.isSubtitle)return;const v=a.current;if(!v||!n.src?.vtt?.length)return;const T=new Map,D=[],B=async(M,O)=>{try{const z=await fetch(O,{mode:"cors"});if(!z.ok)return;const q=await z.blob(),Z=URL.createObjectURL(q);D.push(Z),T.set(M,M.src),M.src=Z}catch{}},L=Array.from(v.querySelectorAll("track"));return L.forEach(M=>{M.src&&B(M,M.src)}),()=>{L.forEach(M=>{const O=T.get(M);O&&(M.src=O)}),D.forEach(M=>URL.revokeObjectURL(M))}},[n.src?.vtt,h.subTitleIdx,h.isSubtitle]),E.useEffect(()=>{const v=a.current;if(!v)return;const T=Array.from(v.querySelectorAll("track")),D=v.textTracks;if((!D||D.length===0)&&T.length===0)return;const B=h.subTitleIdx,L=h.isSubtitle,M=()=>{if(T.length>0){T.forEach(z=>{z.track&&(z.default=!1,z.track.mode="disabled")}),T.forEach((z,q)=>{z.track&&L&&q===B&&(z.default=!0,z.track.mode="showing")});return}for(let z=0;z<D.length;z+=1)D[z].mode="disabled";L&&D[B]&&(D[B].mode="showing")};M();const O=()=>{M()};return T.forEach(z=>{z.addEventListener("load",O)}),()=>{T.forEach(z=>{z.removeEventListener("load",O)})}},[h.isSubtitle,h.subTitleIdx,n.src?.vtt]),E.useEffect(()=>{const v=a.current;v&&S.autostart&&v.play().catch(T=>{console.log(T),v.muted=!0,v.play()})},[S.autostart]),E.useEffect(()=>{setTimeout(()=>{if(!a.current)return;const T=localStorage.getItem("vpeSubtitleEnabled");T!==null&&h.hasSubtitle&&y({isSubtitle:!!T})},1e3)},[h.hasSubtitle,y]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,className:"vpe-video-dom vpe-safari-video",ref:a,controls:!1,autoPlay:S?.autostart,muted:S?.muted,poster:"https://player.vpe.naverncp.com/b.png",style:{width:"100%",height:"100%",maxHeight:"100%",background:n.src.poster?h.initPlay?"transparent":`url(${n.src.poster}) center / ${S?.objectFit??"contain"} no-repeat`:void 0,objectFit:S?.objectFit??"contain"},children:n.src.vtt?.map(v=>b.jsx("track",{kind:"subtitles",srcLang:v.id,label:v.label,src:v.src,default:v.default},`${v.id}-${v.src}`))})})}function X1(n){return b.jsx(w1,{...n})}function F1(n){return b.jsx(z1,{...n})}function K1(n){return b.jsx(B1,{...n})}function Q1(n){return b.jsx(q1,{...n})}function Z1(n){const a=E.useRef(null),s=E.useRef(null),r=n.hlsLib;return E.useEffect(()=>{const u=a.current,f=n?.src?.file;if(!(!u||!f)){if(r?.isSupported?.()){const d=new r({startLevel:0,autoLevelCapping:0});return d.attachMedia(u),d.on(r.Events.MEDIA_ATTACHED,()=>{d.loadSource(f)}),d.on(r.Events.MANIFEST_PARSED,()=>{d.currentLevel=0,d.autoLevelEnabled=!1}),d.on(r.Events.ERROR,(p,h)=>{n.onError&&n.onError({evt:p,data:h})}),()=>{d.destroy()}}u.src=f}},[r,n?.src?.file,n.onError]),E.useEffect(()=>{const u=a.current;if(!u||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const f=()=>{const p=s.current;if(typeof p!="number"||Number.isNaN(p))return;const h=u.duration,y=Math.max(0,Math.min(p,Number.isFinite(h)?h:p));Math.abs(u.currentTime-y)>.25&&(u.currentTime=y),u.pause()};if(u.readyState>=1){f();return}const d=()=>f();return u.addEventListener("loadedmetadata",d,{once:!0}),()=>{u.removeEventListener("loadedmetadata",d)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}const I1=n=>{if(!n)return null;if(typeof n.MediaPlayer=="function"){const a=n.MediaPlayer();if(a?.create)return a.create()}if(n.MediaPlayer?.create)return n.MediaPlayer.create();if(typeof n.MediaPlayerFactory=="function"){const a=n.MediaPlayerFactory();if(a?.create)return a.create()}return null},J1=n=>{if(!n.length)return 0;let a=n[0];for(let s=1;s<n.length;s+=1){const r=n[s],u=r?.bitrate??r?.bandwidth??Number.MAX_SAFE_INTEGER,f=a?.bitrate??a?.bandwidth??Number.MAX_SAFE_INTEGER;u<f&&(a=r)}return typeof a?.qualityIndex=="number"?a.qualityIndex:0};function W1(n){const a=E.useRef(null),s=E.useRef(null),r=n.dashLib;return E.useEffect(()=>{const u=a.current,f=n?.src?.file;if(!u||!f)return;const d=I1(r);if(!d){u.src=f;return}typeof d.initialize=="function"?d.initialize(u,f,!1):typeof d.attachView=="function"&&typeof d.attachSource=="function"?(d.attachView(u),d.attachSource(f)):u.src=f;const p=()=>{const v=typeof d.getBitrateInfoListFor=="function"?d.getBitrateInfoListFor("video"):[],T=J1(v);typeof d.setAutoSwitchQualityFor=="function"&&d.setAutoSwitchQualityFor("video",!1),typeof d.setQualityFor=="function"&&d.setQualityFor("video",T)},h=(v,T)=>{n.onError&&n.onError({evt:v,data:T})},y=r?.MediaPlayer?.events??r?.MediaPlayer?.Events??r?.events??r?.Events??void 0,m=[],S=(v,T)=>{!v||typeof d.on!="function"||(d.on(v,T),m.push(()=>{typeof d.off=="function"&&d.off(v,T)}))};return S(y?.STREAM_INITIALIZED??y?.MANIFEST_LOADED,p),S(y?.ERROR,h),()=>{m.forEach(v=>v()),typeof d.reset=="function"&&d.reset()}},[r,n?.src?.file,n.onError]),E.useEffect(()=>{const u=a.current;if(!u||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const f=()=>{const p=s.current;if(typeof p!="number"||Number.isNaN(p))return;const h=u.duration,y=Math.max(0,Math.min(p,Number.isFinite(h)?h:p));Math.abs(u.currentTime-y)>.25&&(u.currentTime=y),u.pause()};if(u.readyState>=1){f();return}const d=()=>f();return u.addEventListener("loadedmetadata",d,{once:!0}),()=>{u.removeEventListener("loadedmetadata",d)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function $1(n){const a=E.useRef(null),s=E.useRef(null);return E.useEffect(()=>{const r=a.current,u=n?.src?.file;!r||!u||(r.src=u)},[n?.src?.file]),E.useEffect(()=>{const r=a.current;if(!r)return;const u=f=>{n.onError&&n.onError(f)};return r.addEventListener("error",u),()=>{r.removeEventListener("error",u)}},[n.onError]),E.useEffect(()=>{const r=a.current;if(!r||!n.isHovering||typeof n.previewTime!="number")return;s.current=n.previewTime;const u=()=>{const d=s.current;if(typeof d!="number"||Number.isNaN(d))return;const p=r.duration,h=Math.max(0,Math.min(d,Number.isFinite(p)?p:d));Math.abs(r.currentTime-h)>.25&&(r.currentTime=h),r.pause()};if(r.readyState>=1){u();return}const f=()=>u();return r.addEventListener("loadedmetadata",f,{once:!0}),()=>{r.removeEventListener("loadedmetadata",f)}},[n.isHovering,n.previewTime]),b.jsx(b.Fragment,{children:n?.src?.file&&b.jsx("video",{playsInline:!0,ref:a,controls:!1,autoPlay:!1,muted:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:"cover"}})})}function vd(n="(max-width: 768px)"){const[a,s]=E.useState({isMobile:!1,isPortrait:!1});return E.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(n),u=window.matchMedia("(orientation: portrait)"),f=()=>s({isMobile:r.matches,isPortrait:u.matches});return f(),r.addEventListener("change",f),u.addEventListener("change",f),()=>{r.removeEventListener("change",f),u.removeEventListener("change",f)}},[n]),a}class tb{formatTime(a){if(!a)return"00:00";const s=Math.floor(a),r=String(Math.floor(s/3600)).padStart(2,"0"),u=String(Math.floor(s%3600/60)).padStart(2,"0"),f=String(s%60).padStart(2,"0");return r!=="00"?`${r}:${u}:${f}`:`${u}:${f}`}}const Ka=new tb,Ki=n=>Math.max(0,Math.min(100,n));function bd({color:n="#31ec2a",src:a,hlsLib:s,dashLib:r,options:u,onError:f,seekingPreview:d=!0}){const{isMobile:p}=vd(),[h,y]=Nt(),{seekTo:m}=Jt(),S=r,v=typeof a?.file=="string"?a.file.split("?")[0].toLowerCase():"",T=v.endsWith(".mpd"),D=v.endsWith(".mp4"),[B,L]=E.useState(!1),[M,O]=E.useState(0),[z,q]=E.useState(0),[Z,J]=E.useState(null),[k,N]=E.useState(null),[I,nt]=E.useState(null),st=E.useRef(null),ut=E.useRef(null),Q=E.useRef(null),$=n||"#31ec2a",at="5px",K=h.duration??0,R=K>0?K:0,Y=R>0?(h.currentTime??0)/R*100:0,it=R>0?(h.buffered??0)/R*100:0,lt=!!h.isLive,C=(lt&&K>0?Math.abs(K-(h.currentTime??0))<30:!1)?100:Ki(M),H=Z??Y,W=k??H,et=I??H,dt=R>0?R*(H/100):0,tt=Z!==null,yt=h.videoWidth??0,Gt=h.videoHeight??0,Rt=yt>0&&Gt>0,be=Rt?`${yt}/${Gt}`:"16/9",ze=Rt&&yt>Gt?"160px":"55px",Ke=E.useCallback(ce=>{const se=st.current;if(!se)return null;const Be=se.getBoundingClientRect();if(Be.width<=0)return null;const Le="clientX"in ce?ce.clientX:0;return Math.min(Math.max(Le-Be.left,0),Be.width)/Be.width*100},[]),En=E.useCallback(ce=>{const se=st.current;if(!se)return;const Be=se.getBoundingClientRect();if(Be.width<=0)return;const Le=ct=>{const vt=ct>0?ct/2/Be.width*100:0,ae=Math.max(0,Math.min(50,vt)),Qt=Math.max(ae,100-ae);return{minPercent:ae,maxPercent:Qt}},mn=ut.current?.offsetWidth??0,Tn=Le(mn),Mn=Ke(ce);if(Mn===null)return;J(Ki(Mn));const sa=Math.max(Tn.minPercent,Math.min(Tn.maxPercent,Mn));nt(sa),N(sa)},[Ke]),rn=E.useCallback(()=>{J(null),N(null),nt(null)},[]);return E.useEffect(()=>{B||(O(Y),q(it))},[B,Y,it]),E.useEffect(()=>{},[u]),h.isSeekOverlayVisible?null:b.jsx("div",{className:"seekSliderWrapper",style:{paddingBottom:"5px",paddingTop:"5px",width:"100%",display:"flex",alignItems:"center"},onMouseMove:En,onMouseLeave:rn,children:b.jsxs("div",{style:{flex:1,margin:"0px 0px",position:"relative","--seekSliderColor":$,"--seekSliderThumbColor":$,"--rlMargin":at},children:[b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center"},ref:st,children:b.jsxs("div",{className:"seekSliderBg",style:{position:"relative",borderRadius:"5px",backgroundColor:"rgba(51,51,51,0.38)",width:"100%"},children:[tt&&!h.isLive&&!p&&d&&b.jsx("div",{className:"seekSliderThumbVideo",style:{position:"absolute",aspectRatio:be,backgroundColor:"#000",border:"1px solid rgba(205,205,205,0.25)",left:`${Ki(et)}%`,transform:"translateX(-50%)",maxWidth:ze},ref:ut,children:b.jsx(b.Fragment,{children:T&&S?b.jsx(W1,{src:a,dashLib:S,options:u,onError:f,previewTime:dt,isHovering:tt}):D?b.jsx($1,{src:a,options:u,onError:f,previewTime:dt,isHovering:tt}):s?b.jsx(Z1,{src:a,hlsLib:s,options:u,onError:f,previewTime:dt,isHovering:tt}):null})}),tt&&!h.isLive&&b.jsx("div",{className:"seekSliderThumbTime",style:{position:"absolute",top:"-40px",left:`${Ki(W)}%`,transform:"translateX(-50%)",backgroundColor:"rgba(5,5,5,0.36)",color:"#fff",fontSize:"0.7em",padding:"5px 13px",borderRadius:100},ref:Q,children:Ka.formatTime(dt)})]})}),b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:0},children:b.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"rgba(255,255,255,0.32)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${z<1?1:z>98?100:z}%`}})}),b.jsx("div",{style:{position:"absolute",top:0,left:"var(--rlMargin)",right:"var(--rlMargin)",bottom:0,display:"flex",alignItems:"center",zIndex:1},children:b.jsx("div",{className:"seekSliderBg ",style:{borderRadius:"5px",backgroundColor:"var(--seekSliderColor)",display:"flex",justifyContent:"flex-end",alignItems:"center",width:`${C<1?1:C}%`},children:b.jsx("div",{style:{position:"relative"},children:b.jsx("div",{className:"seekSliderThumb",style:{backgroundColor:"var(--seekSliderColor)"}})})})}),b.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",display:"flex",alignItems:"center",zIndex:2},className:"tra200",children:b.jsx("input",{type:"range",style:{width:"calc(100%)"},className:"seekSlider",min:0,max:100,value:C,onPointerDown:ce=>{if(lt)return;y({isSeeked:!0}),L(!0);const se=Ke(ce);se!==null&&O(Ki(se))},onPointerUp:()=>{if(lt)return;L(!1);const ce=R*(C/100);m(ce)},onChange:ce=>{if(lt)return;const se=Number(ce.currentTarget.value),Be=Number.isNaN(se)?0:se;O(Ki(Be))},disabled:lt||R===0})})]})})}var Sd={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xd=xi.createContext&&xi.createContext(Sd),eb=["attr","size","title"];function nb(n,a){if(n==null)return{};var s=ib(n,a),r,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(n);for(u=0;u<f.length;u++)r=f[u],!(a.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(s[r]=n[r])}return s}function ib(n,a){if(n==null)return{};var s={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(a.indexOf(r)>=0)continue;s[r]=n[r]}return s}function os(){return os=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])}return n},os.apply(this,arguments)}function Ed(n,a){var s=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);a&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),s.push.apply(s,r)}return s}function us(n){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?Ed(Object(s),!0).forEach(function(r){ab(n,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):Ed(Object(s)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(s,r))})}return n}function ab(n,a,s){return a=lb(a),a in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s,n}function lb(n){var a=sb(n,"string");return typeof a=="symbol"?a:a+""}function sb(n,a){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var r=s.call(n,a);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}function Td(n){return n&&n.map((a,s)=>xi.createElement(a.tag,us({key:s},a.attr),Td(a.child)))}function Ut(n){return a=>xi.createElement(rb,os({attr:us({},n.attr)},a),Td(n.child))}function rb(n){var a=s=>{var{attr:r,size:u,title:f}=n,d=nb(n,eb),p=u||s.size||"1em",h;return s.className&&(h=s.className),n.className&&(h=(h?h+" ":"")+n.className),xi.createElement("svg",os({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,r,d,{className:h,style:us(us({color:n.color||s.color},s.style),n.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),f&&xi.createElement("title",null,f),n.children)};return xd!==void 0?xi.createElement(xd.Consumer,null,s=>a(s)):a(Sd)}function ob(n){return Ut({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:[]}]})(n)}function ub(n){return Ut({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:[]}]})(n)}function cb(n){return Ut({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:[]}]})(n)}function fb(n){return Ut({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:[]}]})(n)}function db(n){return Ut({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:[]}]})(n)}function Md(n){return Ut({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:[]}]})(n)}function Ad(n){return Ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(n)}function hb(n){return Ut({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:[]}]})(n)}function Cd(n){return Ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m6 18 8.5-6L6 6v12zM16 6v12h2V6h-2z"},child:[]}]})(n)}function wd(n){return Ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6h2v12H6zm3.5 6 8.5 6V6z"},child:[]}]})(n)}function mb(n){return Ut({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:[]}]})(n)}function Rd(n){return Ut({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:[]}]})(n)}function Dd(n){return Ut({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:[]}]})(n)}function jd(n){return Ut({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:[]}]})(n)}function zd(n){return Ut({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:[]}]})(n)}function Bd(n){return Ut({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:[]}]})(n)}function Ld(n){return Ut({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:[]}]})(n)}function cs(n){return Ut({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:[]}]})(n)}function Qa(n){return Ut({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:[]}]})(n)}function pb(n){return Ut({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:[]}]})(n)}function yb(n){return Ut({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:[]}]})(n)}function gb(n){return Ut({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:[]}]})(n)}function Od(n){return Ut({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:[]}]})(n)}function je(n){const a=n.noBg??!1;return b.jsx(b.Fragment,{children:b.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:a?"obtnNoBg":"obtn",children:n.children})})}function vb(n){const a=n.noPadding??!1,s=n.cap??0,r={display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:a?0:"0.5rem",paddingRight:a?0:"0.5rem",gap:s||0,position:"relative",marginLeft:"0.2rem",marginRight:"0.2rem"};return b.jsx(b.Fragment,{children:b.jsx("div",{style:{...r,...n.style??{}},className:n.noBg?"obtn-group-nobg":"obtn-group",children:n.children})})}function Za(n){return b.jsx(vb,{...n})}const Pe={background:"transparent",border:0,padding:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff"},bb={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer"},Vd={background:"transparent",border:0,lineHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#ffffff",padding:"1rem",cursor:"pointer",zoom:.5},Nd={border:0,background:"transparent"},Sb={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"},xb={flex:1},Eb={display:"flex",alignItems:"center",gap:6},Tb={padding:0,display:"flex",alignItems:"center",gap:6},fs={padding:"1.5rem 0em",display:"flex",flexDirection:"column",gap:"20px"},fn={display:"flex",width:"100%",alignItems:"center",border:0,background:"transparent",gap:10,cursor:"pointer",paddingLeft:"0.5rem",paddingRight:"0.5rem"},qn={flex:1,justifyContent:"start",display:"flex"},co={display:"flex",alignItems:"center",gap:5},ds={fontSize:"0.9rem",opacity:.6};function Ud({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Nt(),{play:d,pause:p}=Jt();return f.isSeekOverlayVisible?null:b.jsx(je,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isPlaying?r?.pause??"일시정지":r?.play??"재생"})}),b.jsx("button",{type:"button",onClick:f.isPlaying?p:d,style:Pe,children:f.isEnded?b.jsx(Od,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(b.Fragment,{children:f.isPlaying?b.jsx(Md,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(Ad,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})]})})}function Mb({size:n=80,weight:a="fill",color:s="#ffffff",isPortrait:r=!1,isMobile:u=!1,next:f=()=>{},prev:d=()=>{},pidx:p=0,playlistCnt:h=0}){const[y]=Nt(),[m,S]=E.useState(0),{play:v,pause:T}=Jt();return E.useEffect(()=>{S(D=>D+1)},[y.isPlaying]),y.isSeekOverlayVisible?null:b.jsxs("div",{className:`vpe-big-play-btn ${y.isEnded?"":"center-play-btn-anim"}`,children:[u&&h>1&&b.jsx(Za,{noPadding:!0,children:b.jsx(je,{children:b.jsx("button",{disabled:p===0,type:"button",style:Vd,onClick:()=>{d()},children:b.jsx(wd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})}),b.jsx(Za,{noPadding:!0,children:b.jsx(je,{children:b.jsx("button",{type:"button",style:bb,onClick:()=>{(u||r)&&(y.isPlaying?T():v())},children:y.isEnded?b.jsx(Od,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(b.Fragment,{children:y.isPlaying?b.jsx(Md,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(Ad,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}),u&&h>1&&b.jsx(Za,{noPadding:!0,children:b.jsx(je,{children:b.jsx("button",{type:"button",disabled:p===h-1,style:Vd,onClick:()=>{f()},children:b.jsx(Cd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})]},m)}function _d({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,next:d=()=>{}}){return b.jsx(b.Fragment,{children:f>1&&b.jsx(je,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",style:Pe,disabled:u===f-1,onClick:()=>{d()},children:b.jsx(Cd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})}function Hd({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,prev:d=()=>{}}){return b.jsx(b.Fragment,{children:f>1&&b.jsx(je,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",disabled:u===0,onClick:()=>{d()},style:Pe,children:b.jsx(wd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})})}function Ab({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",pidx:u=0,playlistCnt:f=0,prev:d=()=>{},next:p=()=>{}}){return b.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[b.jsx(Hd,{size:n,weight:a,color:s,pos:r,pidx:u,playlistCnt:f,prev:d}),b.jsx(_d,{size:n,weight:a,color:s,pos:r,pidx:u,playlistCnt:f,next:p})]})}function Cb({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=Nt(),{seekTo:d}=Jt(),p=typeof u?.skipSeconds=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const h=()=>{if(f.isLive&&!f.isDvr)return;const m=(f.currentTime??0)-p;d(Math.max(0,m))};return b.jsx(je,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",onClick:h,style:Pe,children:b.jsx(hb,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function wb({size:n=25,weight:a="fill",color:s="#ffffff",pos:r="left",options:u={}}){const[f]=Nt(),{seekTo:d}=Jt(),p=typeof u?.skipSeconds=="number"?u.skipSeconds:10;if(f.isSeekOverlayVisible)return null;const h=()=>{if(f.isLive&&!f.isDvr)return;const y=f.currentTime??0,m=f.duration??0,S=y+p,v=Number.isFinite(m)&&m>0?Math.min(S,m):Math.max(0,S);d(v)};return b.jsx(je,{noBg:!0,children:b.jsx("div",{className:`vpe-popover-wrap vp-${r}`,children:b.jsx("button",{type:"button",onClick:h,style:Pe,children:b.jsx(db,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})})})}function Rb({color:n="#ffffff"}){const[a]=Nt();return a.isSeekOverlayVisible?null:b.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",display:"flex",justifyContent:"center",lineHeight:"0.4rem",alignItems:"center",fontSize:"0.8rem",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)",color:n},children:Ka.formatTime(a.currentTime??0)||0})}function Db({color:n="#ffffff"}){const[a]=Nt();return a.isSeekOverlayVisible?null:b.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",minWidth:"45px",display:"flex",lineHeight:"0.4rem",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:n},children:Ka.formatTime(a.duration??0)||0})}function jb({color:n="#ffffff"}){const[a]=Nt(),{seekTo:s}=Jt();if(a.isSeekOverlayVisible)return null;const u=(a.bufferedEnd??a.buffered??0)||a.duration||0,f=!!a.isLive,p=f&&u>0?Math.abs((a.currentTime??0)-u)<10:f,h=()=>{f&&(!u||Number.isNaN(u)||s(Math.max(0,u-.1)))};return b.jsx(b.Fragment,{children:a.isLive?b.jsxs("button",{type:"button",onClick:h,style:{display:"flex",alignItems:"center",gap:5,paddingLeft:"1rem",paddingRight:"1rem",lineHeight:"0.4rem",border:0,background:"transparent",color:"#ffffff",cursor:"pointer"},children:[b.jsx("span",{style:{width:"10px",height:"10px",borderRadius:"30px",backgroundColor:p?"#ff0000":n,display:"inline-block"}}),b.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"})]}):b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"defObj",style:{margin:"0.5rem 0",padding:"0 0.5rem",paddingLeft:"1rem",lineHeight:"0.4rem",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:Ka.formatTime(a.currentTime??0)||0}),b.jsx("div",{className:"defObj",style:{fontSize:"1em",lineHeight:"1em",opacity:.3,paddingLeft:"0.2rem"},children:"/"}),b.jsx("div",{className:"defObj",style:{padding:"0 0.5rem",paddingRight:"1rem",minWidth:"70px",display:"flex",lineHeight:"0.4rem",justifyContent:"center",alignItems:"center",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"},children:Ka.formatTime(a.duration??0)||0})]})})}function zb({text:n={},color:a="#ffffff"}){const[s]=Nt(),{selectQualityLevel:r}=Jt(),u=E.useRef(!1),f=s.currentLevel??-1,d=s.levels?.find(h=>h.index===f),p=s.isAutoLevel?n.auto:d?.name??(d?.height?`${d.height}p`:`${f}`);return s.isSeekOverlayVisible?null:b.jsxs("div",{style:{position:"relative"},children:[u.current&&b.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:b.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:15},children:[b.jsx("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{r(-1)},children:b.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:n?.auto??"Auto"})}),[...s.levels??[]].sort((h,y)=>(y.height??0)-(h.height??0)).map(h=>{const y=h.name??(h.height?`${h.height}p`:`${h.index}`);return b.jsx("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{r(h.index),u.current=!1},children:b.jsx("div",{style:{color:"#ffffff",fontSize:"0.8rem"},children:y})},h.index)})]})}),b.jsx("button",{type:"button",onClick:()=>{u.current=!u.current},style:{...Pe,paddingLeft:"0.6rem",paddingRight:"0.6rem",color:`${a}`},children:b.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,letterSpacing:"-0.5px"},children:p})})]})}function Bb({color:n="#ffffff",title:a="",profileImage:s="",profileName:r="",createdAt:u=""}){return b.jsxs("div",{style:{display:"flex",alignItems:"center",color:`${n}`,gap:10,padding:"0.4rem"},children:[s&&b.jsx("div",{children:b.jsx("img",{src:s,alt:r,style:{borderRadius:"100%",width:50,height:50,objectFit:"cover",border:"1px solid transparent"}})}),b.jsxs("div",{style:{flex:1},children:[b.jsx("div",{style:{marginBottom:"0.2rem"},children:a}),b.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.8rem",opacity:.5},children:[b.jsx("div",{children:r}),b.jsx("div",{children:u})]})]})]})}function kd(n){const s={flex:1,display:"flex",justifyContent:n.align?n.align=="left"?"start":n.align=="right"?"end":"center":"start",alignItems:"center"};return b.jsx("div",{style:{...s,...n.style??{}},children:n.children})}function Lb(n){return Ut({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:[]}]})(n)}function Ob(n){return Ut({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:[]}]})(n)}function Vb({size:n=25,weight:a="fill",color:s="#ffffff",options:r={},text:u={},pos:f="left"}){const[d,p]=Nt(),{toggleFullscreen:h}=Jt(),y=typeof navigator<"u"&&/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent);return E.useEffect(()=>{const m=()=>{y&&!r.iosFullscreenNativeMode||p({isFullscreen:!!document.fullscreenElement})};return document.addEventListener("fullscreenchange",m),m(),()=>{document.removeEventListener("fullscreenchange",m)}},[p]),d.isSeekOverlayVisible?null:b.jsx(je,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${f}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:d.isFullscreen?u?.fullOff??"전체화면 해제":u?.fullOn??"전체화면"})}),b.jsx("button",{type:"button",onClick:()=>h(r),style:Pe,children:d.isFullscreen?b.jsx(yb,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(gb,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})}function Nb({size:n=25,color:a="#ffffff",text:s={},pos:r="left"}){const[u]=Nt(),{toggleSubtitle:f}=Jt();return u.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:u.hasSubtitle&&b.jsx(je,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:u.isSubtitle?s?.captionOff??"자막끄기":s?.captionOn??"자막켜기"})}),b.jsx("button",{type:"button",onClick:f,style:Pe,children:u.isSubtitle?b.jsx(Rd,{style:{fontSize:n,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}):b.jsx(fb,{style:{fontSize:n,color:a,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function Ub({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Nt(),{toggleMute:d}=Jt(),p=f.isVolume??0;return f.isSeekOverlayVisible?null:b.jsx(je,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isMuted?r?.muteOff??"음소거 해제":r?.muteOn??"음소거"})}),b.jsx("button",{type:"button",onClick:d,style:Pe,children:b.jsxs(b.Fragment,{children:[(p===0||f.isMuted)&&b.jsx(zd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),p>=5&&p<=10&&!f.isMuted&&b.jsx(jd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),p>=11&&p<=50&&!f.isMuted&&b.jsx(Dd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),p>=51&&!f.isMuted&&b.jsx(Bd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]})})}function _b({size:n=25,weight:a="fill",color:s="#ffffff",text:r={},pos:u="left"}){const[f]=Nt(),{setVolume:d,toggleMute:p}=Jt(),h=f.isVolume??0,y=f.isMuted?0:h;return f.isSeekOverlayVisible?null:b.jsxs("div",{className:"VolumeBtnWrap",children:[b.jsxs("div",{className:`vpe-popover-wrap vp-${u}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:f.isMuted?r?.muteOff??"음소거 해제":r?.muteOn??"음소거"})}),b.jsx("button",{type:"button",onClick:p,style:Pe,children:b.jsxs(b.Fragment,{children:[(h===0||f.isMuted)&&b.jsx(zd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=5&&h<=10&&!f.isMuted&&b.jsx(jd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=11&&h<=50&&!f.isMuted&&b.jsx(Dd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}}),h>=51&&!f.isMuted&&b.jsx(Bd,{style:{fontSize:n,fontWeight:a,color:s,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})})]}),b.jsx("div",{className:"vslideWrap",children:b.jsx("input",{type:"range",min:0,max:100,value:y,onChange:m=>{const S=Number(m.currentTarget.value);d(Number.isNaN(S)?0:S)},className:"VolumSlide"})})]})}function Hb({color:n="#ffffff",size:a=25,text:s={},pos:r="left"}){const[u,f]=Nt(),d=u.isHd,p=u.is4k;return u.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:b.jsx(je,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:s?.setting??"설정"})}),b.jsxs("button",{type:"button",onClick:()=>{f({isSettingModal:!u.isSettingModal})},style:Pe,children:[(d||p)&&b.jsx("div",{style:{position:"absolute",right:"-8px",top:"-5px",backgroundColor:"#ffffff",padding:0,height:"13px",borderRadius:"5px"},children:d&&!p&&b.jsx(Ob,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-1px",marginTop:"-4px"}})||p&&b.jsx(Lb,{style:{fontSize:"20px",color:"#ff0000",marginLeft:"-1px",marginTop:"-4px"}})}),b.jsx(cb,{style:{fontSize:a,color:n,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})]})]})})})}function kb({color:n="#ffffff",size:a=25,text:s={},pos:r="left"}){const{togglePictureInPicture:u}=Jt(),[f]=Nt();return f.isSeekOverlayVisible?null:b.jsx(b.Fragment,{children:b.jsx(je,{noBg:!0,children:b.jsxs("div",{className:`vpe-popover-wrap vp-${r}`,children:[b.jsx("div",{className:"vpe-popver",children:b.jsx("div",{className:"vpe-popver-text",children:s?.miniPlayer??"미니플레이어"})}),b.jsx("button",{type:"button",onClick:()=>{u()},style:Pe,children:b.jsx(ub,{style:{fontSize:a,color:n,cursor:"pointer",textShadow:"0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.55)"}})})]})})})}function Gb(n){const{useTouch:a}=Jt();return b.jsx("div",{style:{position:"absolute",zIndex:2,width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.2)",display:"flex",alignItems:"center",justifyContent:"center",background:`url(${n.poster}) center / ${n.options?.objectFit||"contain"} no-repeat`,cursor:"default"},onClick:()=>{a()},onTouchStart:()=>{a()},children:b.jsx("div",{children:b.jsx(Za,{noPadding:!0,children:b.jsx(Ud,{size:80})})})})}function fo(n){const[a]=Nt(),{poster:s,options:r}=n,u={display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",position:"absolute",zIndex:9999,background:`url(${s}) center / ${r?.objectFit||"contain"} no-repeat`};return b.jsx(b.Fragment,{children:a.isLoading&&b.jsx("div",{style:u,children:b.jsx("div",{className:"ncplayer-spinner"})})})}const Gd=()=>({lastTapTime:0,count:0,timer:null});function Yb({seekSeconds:n=10,doubleTapWindowMs:a=300,executeDelayMs:s=300,onSingleTap:r}){const{seekTo:u,videoEl:f}=Jt(),[,d]=Nt(),[p,h]=E.useState(null),[y,m]=E.useState(null),S=E.useRef({left:null,right:null}),v=E.useRef({left:Gd(),right:Gd()});E.useEffect(()=>()=>{d({isSeekOverlayVisible:!1});const{left:M,right:O}=v.current;M.timer&&window.clearTimeout(M.timer),O.timer&&window.clearTimeout(O.timer);const{left:z,right:q}=S.current;z&&window.clearTimeout(z),q&&window.clearTimeout(q)},[d]),E.useEffect(()=>{d({isSeekOverlayVisible:p!==null||y!==null})},[p,y,d]);const T=(M,O)=>{const z=Math.floor(O/2);if(z<=0){M=="left"?h(null):m(null);return}const q=z*n*(M=="left"?-1:1);M=="left"?h(q):m(q);const Z=S.current;Z[M]&&window.clearTimeout(Z[M]),Z[M]=window.setTimeout(()=>{M=="left"?h(null):m(null),Z[M]=null},s+200)},D=(M,O)=>{if(!f||O<=0)return;const z=f.currentTime||0,q=O*n*(M=="left"?-1:1);u(z+q)},B=M=>{const O=v.current[M],z=Date.now(),q=z-O.lastTapTime<=a;O.count=q?O.count+1:1,O.lastTapTime=z,T(M,O.count),O.timer&&window.clearTimeout(O.timer),O.timer=window.setTimeout(()=>{const Z=Math.floor(O.count/2);if(O.count=0,O.timer=null,Z<=0){r?.(M);return}D(M,Z)},s)},L=M=>O=>{O.preventDefault(),O.stopPropagation(),B(M)};return b.jsxs("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none",backgroundColor:"rgba(255,0,0,0)",top:"20%",height:"calc(100% - 48%)"},children:[b.jsx("style",{children:`
72
10
  @keyframes vpe-fade-in-left {
73
11
  from { opacity: 0; transform: translateX(-6px); }
74
12
  to { opacity: 1; transform: translateX(0); }
@@ -77,7 +15,7 @@ Error generating stack: `+l.message+`
77
15
  from { opacity: 0; transform: translateX(6px); }
78
16
  to { opacity: 1; transform: translateX(0); }
79
17
  }
80
- `}),h!==null&&b.jsxs("div",{style:{position:"absolute",left:"5%",top:"50%",transform:"translateY(-50%)",color:"#ffffff",padding:"0.35rem 0.6rem",fontSize:"0.95rem",fontWeight:600,pointerEvents:"none",display:"flex",gap:3,alignItems:"center"},children:[b.jsx("div",{style:{animation:"vpe-fade-in-right 180ms ease-out",opacity:1},children:b.jsx(xd,{style:{fontSize:"0.95rem"}})}),b.jsx("div",{children:h>0?`+${h}s`:`${h}s`})]}),g!==null&&b.jsxs("div",{style:{position:"absolute",right:"5%",top:"50%",transform:"translateY(-50%)",color:"#ffffff",padding:"0.35rem 0.6rem",fontSize:"0.95rem",fontWeight:600,pointerEvents:"none",display:"flex",gap:3,alignItems:"center"},children:[b.jsx("div",{children:g>0?`+${g}s`:`${g}s`}),b.jsx("div",{style:{animation:"vpe-fade-in-left 180ms ease-out",opacity:1},children:b.jsx(as,{style:{fontSize:"0.95rem"}})})]}),b.jsx("div",{style:{position:"absolute",left:0,top:0,bottom:0,width:"30%",pointerEvents:"auto"},onTouchEnd:H("left")}),b.jsx("div",{style:{position:"absolute",right:0,top:0,bottom:0,width:"30%",pointerEvents:"auto"},onTouchEnd:H("right")})]})}function bb(n){const[a,s]=Gt(),{playBackRate:r,selectQualityLevel:u}=ie(),{text:f}=n,d=n.vtt??n.src?.vtt??[],h=a.currentLevel??-1,y=a.levels?.find(C=>C.index===h),g=a.isAutoLevel?y?.height?f.auto+` (${y?.height}p)`:"":y?.name??(y?.height?`${y.height}p`:`${h}`),[p,S]=T.useState(0),[v,A]=T.useState("forward"),[j,L]=T.useState(!1),H=T.useCallback(C=>{A(C>p?"forward":"back"),S(C),L(!0)},[p]);return T.useEffect(()=>{if(!j)return;const C=window.setTimeout(()=>{L(!1)},200);return()=>window.clearTimeout(C)},[j]),b.jsxs(b.Fragment,{children:[b.jsx("style",{children:`
18
+ `}),p!==null&&b.jsxs("div",{style:{position:"absolute",left:"5%",top:"50%",transform:"translateY(-50%)",color:"#ffffff",padding:"0.35rem 0.6rem",fontSize:"0.95rem",fontWeight:600,pointerEvents:"none",display:"flex",gap:3,alignItems:"center"},children:[b.jsx("div",{style:{animation:"vpe-fade-in-right 180ms ease-out",opacity:1},children:b.jsx(Ld,{style:{fontSize:"0.95rem"}})}),b.jsx("div",{children:p>0?`+${p}s`:`${p}s`})]}),y!==null&&b.jsxs("div",{style:{position:"absolute",right:"5%",top:"50%",transform:"translateY(-50%)",color:"#ffffff",padding:"0.35rem 0.6rem",fontSize:"0.95rem",fontWeight:600,pointerEvents:"none",display:"flex",gap:3,alignItems:"center"},children:[b.jsx("div",{children:y>0?`+${y}s`:`${y}s`}),b.jsx("div",{style:{animation:"vpe-fade-in-left 180ms ease-out",opacity:1},children:b.jsx(cs,{style:{fontSize:"0.95rem"}})})]}),b.jsx("div",{style:{position:"absolute",left:0,top:0,bottom:0,width:"30%",pointerEvents:"auto"},onTouchEnd:L("left")}),b.jsx("div",{style:{position:"absolute",right:0,top:0,bottom:0,width:"30%",pointerEvents:"auto"},onTouchEnd:L("right")})]})}function Pb(n){const[a,s]=Nt(),{playBackRate:r,selectQualityLevel:u}=Jt(),{text:f}=n,d=n.vtt??n.src?.vtt??[],p=a.currentLevel??-1,h=a.levels?.find(M=>M.index===p),y=a.isAutoLevel?h?.height?f.auto+` (${h?.height}p)`:"":h?.name??(h?.height?`${h.height}p`:`${p}`),[m,S]=E.useState(0),[v,T]=E.useState("forward"),[D,B]=E.useState(!1),L=E.useCallback(M=>{T(M>m?"forward":"back"),S(M),B(!0)},[m]);return E.useEffect(()=>{if(!D)return;const M=window.setTimeout(()=>{B(!1)},200);return()=>window.clearTimeout(M)},[D]),b.jsxs(b.Fragment,{children:[b.jsx("style",{children:`
81
19
 
82
20
  .tra200 {
83
21
  transition: all 0.2s ease;
@@ -158,7 +96,7 @@ Error generating stack: `+l.message+`
158
96
  --vpe-menu-slide-from: -24px;
159
97
  }
160
98
 
161
- `}),b.jsx("div",{className:"vpe-setting-modal",children:b.jsxs("div",{className:"vpe-setting-content",children:[b.jsxs("div",{style:Z1,children:[b.jsxs("div",{style:I1,children:[p===0&&b.jsx("div",{children:f.setting}),p>0&&b.jsx("div",{style:J1,children:b.jsx("div",{children:b.jsxs("button",{onClick:()=>{H(0)},type:"button",style:{...Md,...W1},children:[b.jsx(xd,{style:{fontSize:"12px"},color:"#ffffff"}),b.jsxs("div",{children:[p==1&&f.quality,p==2&&f.playbackRate,p==3&&f.captions]})]})})})]}),b.jsx("div",{children:b.jsx("button",{type:"button",style:Md,onClick:()=>{s({isSettingModal:!1})},children:b.jsx(P1,{size:25,color:"#ffffff"})})})]}),b.jsxs("div",{className:"vpe-modal-menu",children:[p===0&&b.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ls,children:[g&&b.jsxs("button",{type:"button",style:rn,className:"vpe-menu-item",onClick:()=>{H(1)},children:[b.jsx("div",{children:b.jsx(U1,{size:25,color:"#ffffff"})}),b.jsx("div",{style:Hn,children:f.quality}),b.jsxs("div",{style:io,children:[b.jsx("span",{style:ss,children:g}),b.jsx(as,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{H(2)},children:[b.jsx("div",{children:b.jsx(q1,{size:25,color:"#ffffff"})}),b.jsx("div",{style:Hn,children:f.playbackRate}),b.jsxs("div",{style:io,children:[b.jsxs("span",{style:ss,children:[a.playbackRate,"x"]}),b.jsx(as,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{H(3)},children:[b.jsx("div",{children:b.jsx(yd,{size:25,color:"#ffffff"})}),b.jsx("div",{style:Hn,children:f.captions}),b.jsxs("div",{style:io,children:[b.jsx(b.Fragment,{children:a.isSubtitle?b.jsx(b.Fragment,{children:d.map((C,U)=>b.jsx("span",{children:a.subTitleIdx===U&&b.jsx("span",{style:ss,children:C.label})},`${C.id}-${C.src}`))}):b.jsx("span",{style:ss,children:f.notUse})}),b.jsx(as,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},p),p===1&&b.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ls,children:[b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{u("auto")},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:a.isAutoLevel?"#ffffff":"transparent"})}),b.jsx("div",{style:Hn,children:f.auto})]}),[...a.levels??[]].sort((C,U)=>(U.height??0)-(C.height??0)).map(C=>{const U=C.name??(C.height?`${C.height}p`:`${C.index}`);return b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{u(C.index)},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:!a.isAutoLevel&&a.currentLevel===C.index?"#ffffff":"transparent"})}),b.jsx("div",{style:Hn,children:U})]},C.index)})]},p),p===2&&b.jsx("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ls,children:(n.options?.playRateSetting??[]).map(C=>b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{r(C),s({playbackRate:C}),H(0)},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:a.playbackRate===C?"#ffffff":"transparent"})}),b.jsxs("div",{style:Hn,children:[C,"x"]})]},C))},p),p===3&&b.jsxs("div",{className:`vpe-modal-menu-panel ${j?`vpe-modal-menu-${v}`:""}`,style:ls,children:[b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{s({isSubtitle:!1})},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:a.isSubtitle?"transparent":"#ffffff"})}),b.jsx("div",{style:Hn,children:f.notUse})]}),d.map((C,U)=>b.jsxs("button",{type:"button",className:"vpe-menu-item",style:rn,onClick:()=>{s({isSubtitle:!0,subTitleIdx:U})},children:[b.jsx("div",{children:b.jsx(qa,{size:15,color:a.isSubtitle&&a.subTitleIdx===U?"#ffffff":"transparent"})}),b.jsx("div",{style:Hn,children:C.label})]},`${C.id}-${C.src}`))]},p)]})]})})]})}function Sb(){return b.jsx(b.Fragment,{children:b.jsx("style",{children:`
99
+ `}),b.jsx("div",{className:"vpe-setting-modal",children:b.jsxs("div",{className:"vpe-setting-content",children:[b.jsxs("div",{style:Sb,children:[b.jsxs("div",{style:xb,children:[m===0&&b.jsx("div",{children:f.setting}),m>0&&b.jsx("div",{style:Eb,children:b.jsx("div",{children:b.jsxs("button",{onClick:()=>{L(0)},type:"button",style:{...Nd,...Tb},children:[b.jsx(Ld,{style:{fontSize:"12px"},color:"#ffffff"}),b.jsxs("div",{children:[m==1&&f.quality,m==2&&f.playbackRate,m==3&&f.captions]})]})})})]}),b.jsx("div",{children:b.jsx("button",{type:"button",style:Nd,onClick:()=>{s({isSettingModal:!1})},children:b.jsx(pb,{size:25,color:"#ffffff"})})})]}),b.jsxs("div",{className:"vpe-modal-menu",children:[m===0&&b.jsxs("div",{className:`vpe-modal-menu-panel ${D?`vpe-modal-menu-${v}`:""}`,style:fs,children:[y&&b.jsxs("button",{type:"button",style:fn,className:"vpe-menu-item",onClick:()=>{L(1)},children:[b.jsx("div",{children:b.jsx(ob,{size:25,color:"#ffffff"})}),b.jsx("div",{style:qn,children:f.quality}),b.jsxs("div",{style:co,children:[b.jsx("span",{style:ds,children:y}),b.jsx(cs,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),b.jsxs("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{L(2)},children:[b.jsx("div",{children:b.jsx(mb,{size:25,color:"#ffffff"})}),b.jsx("div",{style:qn,children:f.playbackRate}),b.jsxs("div",{style:co,children:[b.jsxs("span",{style:ds,children:[a.playbackRate,"x"]}),b.jsx(cs,{style:{fontSize:"12px"},color:"#ffffff"})]})]}),b.jsxs("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{L(3)},children:[b.jsx("div",{children:b.jsx(Rd,{size:25,color:"#ffffff"})}),b.jsx("div",{style:qn,children:f.captions}),b.jsxs("div",{style:co,children:[b.jsx(b.Fragment,{children:a.isSubtitle?b.jsx(b.Fragment,{children:d.map((M,O)=>b.jsx("span",{children:a.subTitleIdx===O&&b.jsx("span",{style:ds,children:M.label})},`${M.id}-${M.src}`))}):b.jsx("span",{style:ds,children:f.notUse})}),b.jsx(cs,{style:{fontSize:"12px"},color:"#ffffff"})]})]})]},m),m===1&&b.jsxs("div",{className:`vpe-modal-menu-panel ${D?`vpe-modal-menu-${v}`:""}`,style:fs,children:[b.jsxs("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{u("auto")},children:[b.jsx("div",{children:b.jsx(Qa,{size:15,color:a.isAutoLevel?"#ffffff":"transparent"})}),b.jsx("div",{style:qn,children:f.auto})]}),[...a.levels??[]].sort((M,O)=>(O.height??0)-(M.height??0)).map(M=>{const O=M.name??(M.height?`${M.height}p`:`${M.index}`);return b.jsxs("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{u(M.index)},children:[b.jsx("div",{children:b.jsx(Qa,{size:15,color:!a.isAutoLevel&&a.currentLevel===M.index?"#ffffff":"transparent"})}),b.jsx("div",{style:qn,children:O})]},M.index)})]},m),m===2&&b.jsx("div",{className:`vpe-modal-menu-panel ${D?`vpe-modal-menu-${v}`:""}`,style:fs,children:(n.options?.playRateSetting??[]).map(M=>b.jsxs("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{r(M),s({playbackRate:M}),L(0)},children:[b.jsx("div",{children:b.jsx(Qa,{size:15,color:a.playbackRate===M?"#ffffff":"transparent"})}),b.jsxs("div",{style:qn,children:[M,"x"]})]},M))},m),m===3&&b.jsxs("div",{className:`vpe-modal-menu-panel ${D?`vpe-modal-menu-${v}`:""}`,style:fs,children:[b.jsxs("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{s({isSubtitle:!1})},children:[b.jsx("div",{children:b.jsx(Qa,{size:15,color:a.isSubtitle?"transparent":"#ffffff"})}),b.jsx("div",{style:qn,children:f.notUse})]}),d.map((M,O)=>b.jsxs("button",{type:"button",className:"vpe-menu-item",style:fn,onClick:()=>{s({isSubtitle:!0,subTitleIdx:O})},children:[b.jsx("div",{children:b.jsx(Qa,{size:15,color:a.isSubtitle&&a.subTitleIdx===O?"#ffffff":"transparent"})}),b.jsx("div",{style:qn,children:M.label})]},`${M.id}-${M.src}`))]},m)]})]})})]})}function qb(){return b.jsx(b.Fragment,{children:b.jsx("style",{children:`
162
100
 
163
101
  *,
164
102
  *::before,
@@ -166,6 +104,14 @@ Error generating stack: `+l.message+`
166
104
  box-sizing: border-box;
167
105
  }
168
106
 
107
+ @import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");
108
+
109
+ .vpe-root-wrap > *{
110
+ font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
111
+ font-size:16px
112
+ }
113
+
114
+
169
115
  .vpe-ios-fullscreen{
170
116
  position: fixed;
171
117
  top: 0;
@@ -181,11 +127,67 @@ Error generating stack: `+l.message+`
181
127
  }
182
128
 
183
129
 
130
+ .obtn {
131
+ aspect-ratio: 1/1;
132
+ height: 100%;
133
+ border-radius: 500px;
134
+ display: flex;
135
+ justify-content: center;
136
+ align-items: center;
137
+ padding:0.5em;
138
+ }
139
+
140
+ .obtnNoBg {
141
+ aspect-ratio: 1/1;
142
+ height: 100%;
143
+ border-radius: 500px;
144
+ display: flex;
145
+ justify-content: center;
146
+ align-items: center;
147
+ padding:0.5em;
148
+ }
149
+ .obtnNoBg:hover {
150
+ background-color: rgba(37, 37, 37, 0.45);
151
+ }
152
+
153
+ .obtn-group {
154
+ background-color: rgba(37, 37, 37, 0.45);
155
+ height: 100%;
156
+ border-radius: 500px;
157
+ display: flex;
158
+ justify-content: center;
159
+ align-items: center;
160
+ backdrop-filter: blur(5px);
161
+ padding-left: 0.5rem;
162
+ padding-right: 0.5rem;
163
+ }
164
+
165
+ .obtn-group-nobg:hover {
166
+ background-color: rgba(37, 37, 37, 0.45);
167
+ }
168
+
169
+ .obtn-group-nobg {
170
+ height: 100%;
171
+ border-radius: 500px;
172
+ display: flex;
173
+ justify-content: center;
174
+ align-items: center;
175
+ padding-left: 0.5rem;
176
+ padding-right: 0.5rem;
177
+ }
178
+
179
+ .obtn-group:hover {
180
+ background-color: rgba(37, 37, 37, 0.65);
181
+ }
182
+
183
+ .tra200 {
184
+ transition: all 0.2s ease;
185
+ }
186
+
184
187
  @media (max-width: 768px) {
185
188
 
186
189
  video::cue {
187
190
  font-size: 1rem;
188
- line-height: 1;
189
191
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
190
192
  background: rgba(0,0,0,0.6);
191
193
  }
@@ -239,13 +241,23 @@ Error generating stack: `+l.message+`
239
241
  top: -7em
240
242
  }
241
243
  }
244
+
245
+ @media (max-width: 980px) {
246
+ .obtn, .obtn-group, .obtn-group-nobg, .obtn-group-nobg {
247
+ zoom:0.8
248
+ }
249
+ }
250
+
251
+
252
+
253
+
242
254
  @media (min-width: 768px) {
243
255
 
244
256
  video::cue {
245
- font-size: 1.5rem;
257
+ font-size: 1.2rem;
246
258
  color: #fff;
247
259
  background: rgba(0,0,0,0.65);
248
- line-height: 0.5;
260
+
249
261
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
250
262
  }
251
263
 
@@ -587,12 +599,12 @@ Error generating stack: `+l.message+`
587
599
  cursor: not-allowed;
588
600
  }
589
601
 
590
- `})})}const Dd=10,xb=n=>!n||!(n instanceof HTMLElement)?!1:n.isContentEditable?!0:n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement,Tb=()=>typeof navigator>"u"?!1:/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),Rd=n=>{if(!n||!(n instanceof HTMLElement))return null;const a=n.closest(".vpe-root-wrap");return a instanceof HTMLElement?a:null},Eb=(n,a,s)=>{if(n)if(n.classList.contains("vpe-ios-fullscreen")){n.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=s.current;const r=document.getElementById("vpeIosFullscreenTmpDiv");r&&r.remove(),window.scrollY=a.current}else{n.classList.add("vpe-ios-fullscreen"),a.current=window.scrollY,s.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const r=document.createElement("div");r.id="vpeIosFullscreenTmpDiv",r.style.height="120dvh",document.body.appendChild(r),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},Mb=(n={})=>{const a=T.useRef(null),s=T.useRef(0),r=T.useRef("");T.useEffect(()=>{const u=f=>{a.current=Rd(f.target)??a.current};return a.current=document.querySelector(".vpe-root-wrap")??a.current,window.addEventListener("pointerdown",u,!0),window.addEventListener("mousedown",u,!0),window.addEventListener("touchstart",u,!0),()=>{window.removeEventListener("pointerdown",u,!0),window.removeEventListener("mousedown",u,!0),window.removeEventListener("touchstart",u,!0)}},[n.keyboardShortcut]),T.useEffect(()=>{const u=f=>{if(f.defaultPrevented||f.metaKey||f.ctrlKey||f.altKey||xb(f.target))return;const d=Rd(f.target)??a.current??document.querySelector(".vpe-root-wrap");if(!d)return;const h=d.querySelector("video");if(h instanceof HTMLVideoElement&&n.keyboardShortcut)switch(f.key){case" ":case"Spacebar":case"Space":{f.preventDefault(),h.paused?h.play():h.pause();break}case"ArrowRight":{const y=Math.max(0,Math.min(h.currentTime+Dd,h.duration||h.currentTime));h.currentTime=y;break}case"ArrowLeft":{const y=Math.max(0,Math.min(h.currentTime-Dd,h.duration||h.currentTime));h.currentTime=y;break}case"ㄹ":case"f":case"F":{if(Tb()){const g=h.webkitEnterFullscreen;if(typeof g=="function"){g.call(h);break}Eb(d,s,r);break}if(document.fullscreenElement){document.exitFullscreen?.();break}const y=d.querySelector(".vpe-fullscreen-target")||d;y instanceof HTMLElement&&y.requestFullscreen?.();break}case"ㅡ":case"m":case"M":{h.muted=!h.muted;break}}};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[n.keyboardShortcut])},lo=T.createContext({});function so(n){const a=T.useRef(null);return a.current===null&&(a.current=n()),a.current}const ro=typeof window<"u",jd=ro?T.useLayoutEffect:T.useEffect,rs=T.createContext(null);function oo(n,a){n.indexOf(a)===-1&&n.push(a)}function uo(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const gn=(n,a,s)=>s>a?a:s<n?n:s;let co=()=>{};const vn={},zd=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Bd(n){return typeof n=="object"&&n!==null}const Od=n=>/^0[^.\s]+$/u.test(n);function fo(n){let a;return()=>(a===void 0&&(a=n()),a)}const ke=n=>n,Ab=(n,a)=>s=>a(n(s)),Xa=(...n)=>n.reduce(Ab),Ka=(n,a,s)=>{const r=a-n;return r===0?1:(s-n)/r};class ho{constructor(){this.subscriptions=[]}add(a){return oo(this.subscriptions,a),()=>uo(this.subscriptions,a)}notify(a,s,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](a,s,r);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(a,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const on=n=>n*1e3,Ge=n=>n/1e3;function Ld(n,a){return a?n*(1e3/a):0}const Vd=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,Cb=1e-7,wb=12;function Db(n,a,s,r,u){let f,d,h=0;do d=a+(s-a)/2,f=Vd(d,r,u)-n,f>0?s=d:a=d;while(Math.abs(f)>Cb&&++h<wb);return d}function Fa(n,a,s,r){if(n===a&&s===r)return ke;const u=f=>Db(f,0,1,n,s);return f=>f===0||f===1?f:Vd(u(f),a,r)}const Nd=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,Ud=n=>a=>1-n(1-a),Hd=Fa(.33,1.53,.69,.99),mo=Ud(Hd),_d=Nd(mo),kd=n=>(n*=2)<1?.5*mo(n):.5*(2-Math.pow(2,-10*(n-1))),po=n=>1-Math.sin(Math.acos(n)),Gd=Ud(po),Yd=Nd(po),Rb=Fa(.42,0,1,1),jb=Fa(0,0,.58,1),qd=Fa(.42,0,.58,1),zb=n=>Array.isArray(n)&&typeof n[0]!="number",Pd=n=>Array.isArray(n)&&typeof n[0]=="number",Bb={linear:ke,easeIn:Rb,easeInOut:qd,easeOut:jb,circIn:po,circInOut:Yd,circOut:Gd,backIn:mo,backInOut:_d,backOut:Hd,anticipate:kd},Ob=n=>typeof n=="string",Xd=n=>{if(Pd(n)){co(n.length===4);const[a,s,r,u]=n;return Fa(a,s,r,u)}else if(Ob(n))return Bb[n];return n},os=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Lb(n,a){let s=new Set,r=new Set,u=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function y(p){d.has(p)&&(g.schedule(p),n()),p(h)}const g={schedule:(p,S=!1,v=!1)=>{const j=v&&u?s:r;return S&&d.add(p),j.has(p)||j.add(p),p},cancel:p=>{r.delete(p),d.delete(p)},process:p=>{if(h=p,u){f=!0;return}u=!0,[s,r]=[r,s],s.forEach(y),s.clear(),u=!1,f&&(f=!1,g.process(p))}};return g}const Vb=40;function Kd(n,a){let s=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=os.reduce((V,K)=>(V[K]=Lb(f),V),{}),{setup:h,read:y,resolveKeyframes:g,preUpdate:p,update:S,preRender:v,render:A,postRender:j}=d,L=()=>{const V=vn.useManualTiming?u.timestamp:performance.now();s=!1,vn.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(V-u.timestamp,Vb),1)),u.timestamp=V,u.isProcessing=!0,h.process(u),y.process(u),g.process(u),p.process(u),S.process(u),v.process(u),A.process(u),j.process(u),u.isProcessing=!1,s&&a&&(r=!1,n(L))},H=()=>{s=!0,r=!0,u.isProcessing||n(L)};return{schedule:os.reduce((V,K)=>{const Q=d[K];return V[K]=(J,Y=!1,k=!1)=>(s||H(),Q.schedule(J,Y,k)),V},{}),cancel:V=>{for(let K=0;K<os.length;K++)d[os[K]].cancel(V)},state:u,steps:d}}const{schedule:Yt,cancel:_n,state:oe,steps:yo}=Kd(typeof requestAnimationFrame<"u"?requestAnimationFrame:ke,!0);let us;function Nb(){us=void 0}const Se={now:()=>(us===void 0&&Se.set(oe.isProcessing||vn.useManualTiming?oe.timestamp:performance.now()),us),set:n=>{us=n,queueMicrotask(Nb)}},Fd=n=>a=>typeof a=="string"&&a.startsWith(n),Qd=Fd("--"),Ub=Fd("var(--"),go=n=>Ub(n)?Hb.test(n.split("/*")[0].trim()):!1,Hb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Yi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Qa={...Yi,transform:n=>gn(0,1,n)},cs={...Yi,default:1},Za=n=>Math.round(n*1e5)/1e5,vo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _b(n){return n==null}const kb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bo=(n,a)=>s=>!!(typeof s=="string"&&kb.test(s)&&s.startsWith(n)||a&&!_b(s)&&Object.prototype.hasOwnProperty.call(s,a)),Zd=(n,a,s)=>r=>{if(typeof r!="string")return r;const[u,f,d,h]=r.match(vo);return{[n]:parseFloat(u),[a]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},Gb=n=>gn(0,255,n),So={...Yi,transform:n=>Math.round(Gb(n))},pi={test:bo("rgb","red"),parse:Zd("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:r=1})=>"rgba("+So.transform(n)+", "+So.transform(a)+", "+So.transform(s)+", "+Za(Qa.transform(r))+")"};function Yb(n){let a="",s="",r="",u="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),r=n.substring(5,7),u=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),r=n.substring(3,4),u=n.substring(4,5),a+=a,s+=s,r+=r,u+=u),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const xo={test:bo("#"),parse:Yb,transform:pi.transform},Ia=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),kn=Ia("deg"),un=Ia("%"),ft=Ia("px"),qb=Ia("vh"),Pb=Ia("vw"),Id={...un,parse:n=>un.parse(n)/100,transform:n=>un.transform(n*100)},qi={test:bo("hsl","hue"),parse:Zd("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+un.transform(Za(a))+", "+un.transform(Za(s))+", "+Za(Qa.transform(r))+")"},Wt={test:n=>pi.test(n)||xo.test(n)||qi.test(n),parse:n=>pi.test(n)?pi.parse(n):qi.test(n)?qi.parse(n):xo.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?pi.transform(n):qi.transform(n),getAnimatableNone:n=>{const a=Wt.parse(n);return a.alpha=0,Wt.transform(a)}},Xb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kb(n){return isNaN(n)&&typeof n=="string"&&(n.match(vo)?.length||0)+(n.match(Xb)?.length||0)>0}const Jd="number",Wd="color",Fb="var",Qb="var(",$d="${}",Zb=/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 Ja(n){const a=n.toString(),s=[],r={color:[],number:[],var:[]},u=[];let f=0;const h=a.replace(Zb,y=>(Wt.test(y)?(r.color.push(f),u.push(Wd),s.push(Wt.parse(y))):y.startsWith(Qb)?(r.var.push(f),u.push(Fb),s.push(y)):(r.number.push(f),u.push(Jd),s.push(parseFloat(y))),++f,$d)).split($d);return{values:s,split:h,indexes:r,types:u}}function th(n){return Ja(n).values}function eh(n){const{split:a,types:s}=Ja(n),r=a.length;return u=>{let f="";for(let d=0;d<r;d++)if(f+=a[d],u[d]!==void 0){const h=s[d];h===Jd?f+=Za(u[d]):h===Wd?f+=Wt.transform(u[d]):f+=u[d]}return f}}const Ib=n=>typeof n=="number"?0:Wt.test(n)?Wt.getAnimatableNone(n):n;function Jb(n){const a=th(n);return eh(n)(a.map(Ib))}const Gn={test:Kb,parse:th,createTransformer:eh,getAnimatableNone:Jb};function To(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function Wb({hue:n,saturation:a,lightness:s,alpha:r}){n/=360,a/=100,s/=100;let u=0,f=0,d=0;if(!a)u=f=d=s;else{const h=s<.5?s*(1+a):s+a-s*a,y=2*s-h;u=To(y,h,n+1/3),f=To(y,h,n),d=To(y,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function fs(n,a){return s=>s>0?a:n}const Pt=(n,a,s)=>n+(a-n)*s,Eo=(n,a,s)=>{const r=n*n,u=s*(a*a-r)+r;return u<0?0:Math.sqrt(u)},$b=[xo,pi,qi],tS=n=>$b.find(a=>a.test(n));function nh(n){const a=tS(n);if(!a)return!1;let s=a.parse(n);return a===qi&&(s=Wb(s)),s}const ih=(n,a)=>{const s=nh(n),r=nh(a);if(!s||!r)return fs(n,a);const u={...s};return f=>(u.red=Eo(s.red,r.red,f),u.green=Eo(s.green,r.green,f),u.blue=Eo(s.blue,r.blue,f),u.alpha=Pt(s.alpha,r.alpha,f),pi.transform(u))},Mo=new Set(["none","hidden"]);function eS(n,a){return Mo.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function nS(n,a){return s=>Pt(n,a,s)}function Ao(n){return typeof n=="number"?nS:typeof n=="string"?go(n)?fs:Wt.test(n)?ih:lS:Array.isArray(n)?ah:typeof n=="object"?Wt.test(n)?ih:iS:fs}function ah(n,a){const s=[...n],r=s.length,u=n.map((f,d)=>Ao(f)(f,a[d]));return f=>{for(let d=0;d<r;d++)s[d]=u[d](f);return s}}function iS(n,a){const s={...n,...a},r={};for(const u in s)n[u]!==void 0&&a[u]!==void 0&&(r[u]=Ao(n[u])(n[u],a[u]));return u=>{for(const f in r)s[f]=r[f](u);return s}}function aS(n,a){const s=[],r={color:0,var:0,number:0};for(let u=0;u<a.values.length;u++){const f=a.types[u],d=n.indexes[f][r[f]],h=n.values[d]??0;s[u]=h,r[f]++}return s}const lS=(n,a)=>{const s=Gn.createTransformer(a),r=Ja(n),u=Ja(a);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Mo.has(n)&&!u.values.length||Mo.has(a)&&!r.values.length?eS(n,a):Xa(ah(aS(r,u),u.values),s):fs(n,a)};function lh(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?Pt(n,a,s):Ao(n)(n,a)}const sS=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>Yt.update(a,s),stop:()=>_n(a),now:()=>oe.isProcessing?oe.timestamp:Se.now()}},sh=(n,a,s=10)=>{let r="";const u=Math.max(Math.round(a/s),2);for(let f=0;f<u;f++)r+=Math.round(n(f/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ds=2e4;function Co(n){let a=0;const s=50;let r=n.next(a);for(;!r.done&&a<ds;)a+=s,r=n.next(a);return a>=ds?1/0:a}function rS(n,a=100,s){const r=s({...n,keyframes:[0,a]}),u=Math.min(Co(r),ds);return{type:"keyframes",ease:f=>r.next(u*f).value/a,duration:Ge(u)}}const oS=5;function rh(n,a,s){const r=Math.max(a-oS,0);return Ld(s-n(r),a-r)}const Ft={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},wo=.001;function uS({duration:n=Ft.duration,bounce:a=Ft.bounce,velocity:s=Ft.velocity,mass:r=Ft.mass}){let u,f,d=1-a;d=gn(Ft.minDamping,Ft.maxDamping,d),n=gn(Ft.minDuration,Ft.maxDuration,Ge(n)),d<1?(u=g=>{const p=g*d,S=p*n,v=p-s,A=Do(g,d),j=Math.exp(-S);return wo-v/A*j},f=g=>{const S=g*d*n,v=S*s+s,A=Math.pow(d,2)*Math.pow(g,2)*n,j=Math.exp(-S),L=Do(Math.pow(g,2),d);return(-u(g)+wo>0?-1:1)*((v-A)*j)/L}):(u=g=>{const p=Math.exp(-g*n),S=(g-s)*n+1;return-wo+p*S},f=g=>{const p=Math.exp(-g*n),S=(s-g)*(n*n);return p*S});const h=5/n,y=fS(u,f,h);if(n=on(n),isNaN(y))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:n};{const g=Math.pow(y,2)*r;return{stiffness:g,damping:d*2*Math.sqrt(r*g),duration:n}}}const cS=12;function fS(n,a,s){let r=s;for(let u=1;u<cS;u++)r=r-n(r)/a(r);return r}function Do(n,a){return n*Math.sqrt(1-a*a)}const dS=["duration","bounce"],hS=["stiffness","damping","mass"];function oh(n,a){return a.some(s=>n[s]!==void 0)}function mS(n){let a={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...n};if(!oh(n,hS)&&oh(n,dS))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),u=r*r,f=2*gn(.05,1,1-(n.bounce||0))*Math.sqrt(u);a={...a,mass:Ft.mass,stiffness:u,damping:f}}else{const s=uS(n);a={...a,...s,mass:Ft.mass},a.isResolvedFromDuration=!0}return a}function hs(n=Ft.visualDuration,a=Ft.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:r,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:y,damping:g,mass:p,duration:S,velocity:v,isResolvedFromDuration:A}=mS({...s,velocity:-Ge(s.velocity||0)}),j=v||0,L=g/(2*Math.sqrt(y*p)),H=d-f,C=Ge(Math.sqrt(y/p)),U=Math.abs(H)<5;r||(r=U?Ft.restSpeed.granular:Ft.restSpeed.default),u||(u=U?Ft.restDelta.granular:Ft.restDelta.default);let V;if(L<1){const Q=Do(C,L);V=J=>{const Y=Math.exp(-L*C*J);return d-Y*((j+L*C*H)/Q*Math.sin(Q*J)+H*Math.cos(Q*J))}}else if(L===1)V=Q=>d-Math.exp(-C*Q)*(H+(j+C*H)*Q);else{const Q=C*Math.sqrt(L*L-1);V=J=>{const Y=Math.exp(-L*C*J),k=Math.min(Q*J,300);return d-Y*((j+L*C*H)*Math.sinh(k)+Q*H*Math.cosh(k))/Q}}const K={calculatedDuration:A&&S||null,next:Q=>{const J=V(Q);if(A)h.done=Q>=S;else{let Y=Q===0?j:0;L<1&&(Y=Q===0?on(j):rh(V,Q,J));const k=Math.abs(Y)<=r,st=Math.abs(d-J)<=u;h.done=k&&st}return h.value=h.done?d:J,h},toString:()=>{const Q=Math.min(Co(K),ds),J=sh(Y=>K.next(Q*Y).value,Q,30);return Q+"ms "+J},toTransition:()=>{}};return K}hs.applyToOptions=n=>{const a=rS(n,100,hs);return n.ease=a.ease,n.duration=on(a.duration),n.type="keyframes",n};function Ro({keyframes:n,velocity:a=0,power:s=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:y,restDelta:g=.5,restSpeed:p}){const S=n[0],v={done:!1,value:S},A=k=>h!==void 0&&k<h||y!==void 0&&k>y,j=k=>h===void 0?y:y===void 0||Math.abs(h-k)<Math.abs(y-k)?h:y;let L=s*a;const H=S+L,C=d===void 0?H:d(H);C!==H&&(L=C-S);const U=k=>-L*Math.exp(-k/r),V=k=>C+U(k),K=k=>{const st=U(k),bt=V(k);v.done=Math.abs(st)<=g,v.value=v.done?C:bt};let Q,J;const Y=k=>{A(v.value)&&(Q=k,J=hs({keyframes:[v.value,j(v.value)],velocity:rh(V,k,v.value),damping:u,stiffness:f,restDelta:g,restSpeed:p}))};return Y(0),{calculatedDuration:null,next:k=>{let st=!1;return!J&&Q===void 0&&(st=!0,K(k),Y(k)),Q!==void 0&&k>=Q?J.next(k-Q):(!st&&K(k),v)}}}function pS(n,a,s){const r=[],u=s||vn.mix||lh,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(a){const y=Array.isArray(a)?a[d]||ke:a;h=Xa(y,h)}r.push(h)}return r}function yS(n,a,{clamp:s=!0,ease:r,mixer:u}={}){const f=n.length;if(co(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),a=[...a].reverse());const h=pS(a,r,u),y=h.length,g=p=>{if(d&&p<n[0])return a[0];let S=0;if(y>1)for(;S<n.length-2&&!(p<n[S+1]);S++);const v=Ka(n[S],n[S+1],p);return h[S](v)};return s?p=>g(gn(n[0],n[f-1],p)):g}function gS(n,a){const s=n[n.length-1];for(let r=1;r<=a;r++){const u=Ka(0,a,r);n.push(Pt(s,1,u))}}function vS(n){const a=[0];return gS(a,n.length-1),a}function bS(n,a){return n.map(s=>s*a)}function SS(n,a){return n.map(()=>a||qd).splice(0,n.length-1)}function Wa({duration:n=300,keyframes:a,times:s,ease:r="easeInOut"}){const u=zb(r)?r.map(Xd):Xd(r),f={done:!1,value:a[0]},d=bS(s&&s.length===a.length?s:vS(a),n),h=yS(d,a,{ease:Array.isArray(u)?u:SS(a,u)});return{calculatedDuration:n,next:y=>(f.value=h(y),f.done=y>=n,f)}}const xS=n=>n!==null;function jo(n,{repeat:a,repeatType:s="loop"},r,u=1){const f=n.filter(xS),h=u<0||a&&s!=="loop"&&a%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const TS={decay:Ro,inertia:Ro,tween:Wa,keyframes:Wa,spring:hs};function uh(n){typeof n.type=="string"&&(n.type=TS[n.type])}class zo{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 ES=n=>n/100;class Bo extends zo{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!==Se.now()&&this.tick(Se.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;uh(a);const{type:s=Wa,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=a;let{keyframes:h}=a;const y=s||Wa;y!==Wa&&typeof h[0]!="number"&&(this.mixKeyframes=Xa(ES,lh(h[0],h[1])),h=[0,100]);const g=y({...a,keyframes:h});f==="mirror"&&(this.mirroredGenerator=y({...a,keyframes:[...h].reverse(),velocity:-d})),g.calculatedDuration===null&&(g.calculatedDuration=Co(g));const{calculatedDuration:p}=g;this.calculatedDuration=p,this.resolvedDuration=p+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=g}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:r,totalDuration:u,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:p,repeat:S,repeatType:v,repeatDelay:A,type:j,onUpdate:L,finalKeyframe:H}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-u/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const C=this.currentTime-g*(this.playbackSpeed>=0?1:-1),U=this.playbackSpeed>=0?C<0:C>u;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let V=this.currentTime,K=r;if(S){const k=Math.min(this.currentTime,u)/h;let st=Math.floor(k),bt=k%1;!bt&&k>=1&&(bt=1),bt===1&&st--,st=Math.min(st,S+1),!!(st%2)&&(v==="reverse"?(bt=1-bt,A&&(bt-=A/h)):v==="mirror"&&(K=d)),V=gn(0,1,bt)*h}const Q=U?{done:!1,value:p[0]}:K.next(V);f&&(Q.value=f(Q.value));let{done:J}=Q;!U&&y!==null&&(J=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&J);return Y&&j!==Ro&&(Q.value=jo(p,this.options,H,this.speed)),L&&L(Q.value),Y&&this.finish(),Q}then(a,s){return this.finished.then(a,s)}get duration(){return Ge(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ge(a)}get time(){return Ge(this.currentTime)}set time(a){a=on(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(Se.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Ge(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=sS,startTime:s}=this.options;this.driver||(this.driver=a(u=>this.tick(u))),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=s??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(Se.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 MS(n){for(let a=1;a<n.length;a++)n[a]??(n[a]=n[a-1])}const yi=n=>n*180/Math.PI,Oo=n=>{const a=yi(Math.atan2(n[1],n[0]));return Lo(a)},AS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Oo,rotateZ:Oo,skewX:n=>yi(Math.atan(n[1])),skewY:n=>yi(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Lo=n=>(n=n%360,n<0&&(n+=360),n),ch=Oo,fh=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),dh=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),CS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fh,scaleY:dh,scale:n=>(fh(n)+dh(n))/2,rotateX:n=>Lo(yi(Math.atan2(n[6],n[5]))),rotateY:n=>Lo(yi(Math.atan2(-n[2],n[0]))),rotateZ:ch,rotate:ch,skewX:n=>yi(Math.atan(n[4])),skewY:n=>yi(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Vo(n){return n.includes("scale")?1:0}function No(n,a){if(!n||n==="none")return Vo(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(s)r=CS,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=AS,u=h}if(!u)return Vo(a);const f=r[a],d=u[1].split(",").map(DS);return typeof f=="function"?f(d):d[f]}const wS=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return No(s,a)};function DS(n){return parseFloat(n.trim())}const Pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xi=new Set(Pi),hh=n=>n===Yi||n===ft,RS=new Set(["x","y","z"]),jS=Pi.filter(n=>!RS.has(n));function zS(n){const a=[];return jS.forEach(s=>{const r=n.getValue(s);r!==void 0&&(a.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),a}const gi={width:({x:n},{paddingLeft:a="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),height:({y:n},{paddingTop:a="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>No(a,"x"),y:(n,{transform:a})=>No(a,"y")};gi.translateX=gi.x,gi.translateY=gi.y;const vi=new Set;let Uo=!1,Ho=!1,_o=!1;function mh(){if(Ho){const n=Array.from(vi).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),s=new Map;a.forEach(r=>{const u=zS(r);u.length&&(s.set(r,u),r.render())}),n.forEach(r=>r.measureInitialState()),a.forEach(r=>{r.render();const u=s.get(r);u&&u.forEach(([f,d])=>{r.getValue(f)?.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ho=!1,Uo=!1,vi.forEach(n=>n.complete(_o)),vi.clear()}function ph(){vi.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Ho=!0)})}function BS(){_o=!0,ph(),mh(),_o=!1}class ko{constructor(a,s,r,u,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=r,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(vi.add(this),Uo||(Uo=!0,Yt.read(ph),Yt.resolveKeyframes(mh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:r,motionValue:u}=this;if(a[0]===null){const f=u?.get(),d=a[a.length-1];if(f!==void 0)a[0]=f;else if(r&&s){const h=r.readValue(s,d);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=d),u&&f===void 0&&u.set(a[0])}MS(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),vi.delete(this)}cancel(){this.state==="scheduled"&&(vi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const OS=n=>n.startsWith("--");function LS(n,a,s){OS(a)?n.style.setProperty(a,s):n.style[a]=s}const VS=fo(()=>window.ScrollTimeline!==void 0),NS={};function US(n,a){const s=fo(n);return()=>NS[a]??s()}const yh=US(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$a=([n,a,s,r])=>`cubic-bezier(${n}, ${a}, ${s}, ${r})`,gh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$a([0,.65,.55,1]),circOut:$a([.55,0,1,.45]),backIn:$a([.31,.01,.66,-.59]),backOut:$a([.33,1.53,.69,.99])};function vh(n,a){if(n)return typeof n=="function"?yh()?sh(n,a):"ease-out":Pd(n)?$a(n):Array.isArray(n)?n.map(s=>vh(s,a)||gh.easeOut):gh[n]}function HS(n,a,s,{delay:r=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:y}={},g=void 0){const p={[a]:s};y&&(p.offset=y);const S=vh(h,u);Array.isArray(S)&&(p.easing=S);const v={delay:r,duration:u,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return g&&(v.pseudoElement=g),n.animate(p,v)}function bh(n){return typeof n=="function"&&"applyToOptions"in n}function _S({type:n,...a}){return bh(n)&&yh()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class kS extends zo{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:s,name:r,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:y}=a;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=a,co(typeof a.type!="string");const g=_S(a);this.animation=HS(s,r,u,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const p=jo(u,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(p):LS(s,r,p),this.animation.cancel()}y?.(),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 Ge(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ge(a)}get time(){return Ge(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=on(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&&VS()?(this.animation.timeline=a,ke):s(this)}}const Sh={anticipate:kd,backInOut:_d,circInOut:Yd};function GS(n){return n in Sh}function YS(n){typeof n.ease=="string"&&GS(n.ease)&&(n.ease=Sh[n.ease])}const xh=10;class qS extends kS{constructor(a){YS(a),uh(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:r,onComplete:u,element:f,...d}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const h=new Bo({...d,autoplay:!1}),y=on(this.finishedTime??this.time);s.setWithVelocity(h.sample(y-xh).value,h.sample(y).value,xh),h.stop()}}const Th=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Gn.test(n)||n==="0")&&!n.startsWith("url("));function PS(n){const a=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==a)return!0}function XS(n,a,s,r){const u=n[0];if(u===null)return!1;if(a==="display"||a==="visibility")return!0;const f=n[n.length-1],d=Th(u,a),h=Th(f,a);return!d||!h?!1:PS(n)||(s==="spring"||bh(s))&&r}function Go(n){n.duration=0,n.type="keyframes"}const KS=new Set(["opacity","clipPath","filter","transform"]),FS=fo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function QS(n){const{motionValue:a,name:s,repeatDelay:r,repeatType:u,damping:f,type:d}=n;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:g}=a.owner.getProps();return FS()&&s&&KS.has(s)&&(s!=="transform"||!g)&&!y&&!r&&u!=="mirror"&&f!==0&&d!=="inertia"}const ZS=40;class IS extends zo{constructor({autoplay:a=!0,delay:s=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:y,motionValue:g,element:p,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Se.now();const v={autoplay:a,delay:s,type:r,repeat:u,repeatDelay:f,repeatType:d,name:y,motionValue:g,element:p,...S},A=p?.KeyframeResolver||ko;this.keyframeResolver=new A(h,(j,L,H)=>this.onKeyframesResolved(j,L,v,!H),y,g,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,s,r,u){this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:y,isHandoff:g,onUpdate:p}=r;this.resolvedAt=Se.now(),XS(a,f,d,h)||((vn.instantAnimations||!y)&&p?.(jo(a,r,s)),a[0]=a[a.length-1],Go(r),r.repeat=0);const v={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>ZS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:a},A=!g&&QS(v)?new qS({...v,element:v.motionValue.owner.current}):new Bo(v);A.finished.then(()=>this.notifyFinished()).catch(ke),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}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(),BS()),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 JS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WS(n){const a=JS.exec(n);if(!a)return[,];const[,s,r,u]=a;return[`--${s??r}`,u]}function Eh(n,a,s=1){const[r,u]=WS(n);if(!r)return;const f=window.getComputedStyle(a).getPropertyValue(r);if(f){const d=f.trim();return zd(d)?parseFloat(d):d}return go(u)?Eh(u,a,s+1):u}function Yo(n,a){return n?.[a]??n?.default??n}const Mh=new Set(["width","height","top","left","right","bottom",...Pi]),$S={test:n=>n==="auto",parse:n=>n},Ah=n=>a=>a.test(n),Ch=[Yi,ft,un,kn,Pb,qb,$S],wh=n=>Ch.find(Ah(n));function tx(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Od(n):!0}const ex=new Set(["brightness","contrast","saturate","opacity"]);function nx(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=s.match(vo)||[];if(!r)return n;const u=s.replace(r,"");let f=ex.has(a)?1:0;return r!==s&&(f*=100),a+"("+f+u+")"}const ix=/\b([a-z-]*)\(.*?\)/gu,qo={...Gn,getAnimatableNone:n=>{const a=n.match(ix);return a?a.map(nx).join(" "):n}},Dh={...Yi,transform:Math.round},Po={borderWidth:ft,borderTopWidth:ft,borderRightWidth:ft,borderBottomWidth:ft,borderLeftWidth:ft,borderRadius:ft,radius:ft,borderTopLeftRadius:ft,borderTopRightRadius:ft,borderBottomRightRadius:ft,borderBottomLeftRadius:ft,width:ft,maxWidth:ft,height:ft,maxHeight:ft,top:ft,right:ft,bottom:ft,left:ft,padding:ft,paddingTop:ft,paddingRight:ft,paddingBottom:ft,paddingLeft:ft,margin:ft,marginTop:ft,marginRight:ft,marginBottom:ft,marginLeft:ft,backgroundPositionX:ft,backgroundPositionY:ft,...{rotate:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:cs,scaleX:cs,scaleY:cs,scaleZ:cs,skew:kn,skewX:kn,skewY:kn,distance:ft,translateX:ft,translateY:ft,translateZ:ft,x:ft,y:ft,z:ft,perspective:ft,transformPerspective:ft,opacity:Qa,originX:Id,originY:Id,originZ:ft},zIndex:Dh,fillOpacity:Qa,strokeOpacity:Qa,numOctaves:Dh},ax={...Po,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:qo,WebkitFilter:qo},Rh=n=>ax[n];function jh(n,a){let s=Rh(n);return s!==qo&&(s=Gn),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const lx=new Set(["auto","none","0"]);function sx(n,a,s){let r=0,u;for(;r<n.length&&!u;){const f=n[r];typeof f=="string"&&!lx.has(f)&&Ja(f).values.length&&(u=n[r]),r++}if(u&&s)for(const f of a)n[f]=jh(s,u)}class rx extends ko{constructor(a,s,r,u,f){super(a,s,r,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let g=a[y];if(typeof g=="string"&&(g=g.trim(),go(g))){const p=Eh(g,s.current);p!==void 0&&(a[y]=p),y===a.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!Mh.has(r)||a.length!==2)return;const[u,f]=a,d=wh(u),h=wh(f);if(d!==h)if(hh(d)&&hh(h))for(let y=0;y<a.length;y++){const g=a[y];typeof g=="string"&&(a[y]=parseFloat(g))}else gi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,r=[];for(let u=0;u<a.length;u++)(a[u]===null||tx(a[u]))&&r.push(u);r.length&&sx(a,r,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:r}=this;if(!a||!a.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gi[r](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&a.getValue(r,u).jump(u,!1)}measureEndState(){const{element:a,name:s,unresolvedKeyframes:r}=this;if(!a||!a.current)return;const u=a.getValue(s);u&&u.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=gi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,y])=>{a.getValue(h).set(y)}),this.resolveNoneKeyframes()}}function ox(n,a,s){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const u=s?.[n]??r.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n)}const zh=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function Bh(n){return Bd(n)&&"offsetHeight"in n}const Oh=30,ux=n=>!isNaN(parseFloat(n));class cx{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const u=Se.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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=Se.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=ux(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 ho);const r=this.events[a].add(s);return a==="change"?()=>{r(),Yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-r}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=Se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Oh)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Oh);return Ld(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 Ki(n,a){return new cx(n,a)}const{schedule:Xo}=Kd(queueMicrotask,!1),tn={x:!1,y:!1};function Lh(){return tn.x||tn.y}function fx(n){return n==="x"||n==="y"?tn[n]?null:(tn[n]=!0,()=>{tn[n]=!1}):tn.x||tn.y?null:(tn.x=tn.y=!0,()=>{tn.x=tn.y=!1})}function Vh(n,a){const s=ox(n),r=new AbortController,u={passive:!0,...a,signal:r.signal};return[s,u,()=>r.abort()]}function Nh(n){return!(n.pointerType==="touch"||Lh())}function dx(n,a,s={}){const[r,u,f]=Vh(n,s),d=h=>{if(!Nh(h))return;const{target:y}=h,g=a(y,h);if(typeof g!="function"||!y)return;const p=S=>{Nh(S)&&(g(S),y.removeEventListener("pointerleave",p))};y.addEventListener("pointerleave",p,u)};return r.forEach(h=>{h.addEventListener("pointerenter",d,u)}),f}const Uh=(n,a)=>a?n===a?!0:Uh(n,a.parentElement):!1,Ko=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,hx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mx(n){return hx.has(n.tagName)||n.tabIndex!==-1}const ms=new WeakSet;function Hh(n){return a=>{a.key==="Enter"&&n(a)}}function Fo(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const px=(n,a)=>{const s=n.currentTarget;if(!s)return;const r=Hh(()=>{if(ms.has(s))return;Fo(s,"down");const u=Hh(()=>{Fo(s,"up")}),f=()=>Fo(s,"cancel");s.addEventListener("keyup",u,a),s.addEventListener("blur",f,a)});s.addEventListener("keydown",r,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),a)};function _h(n){return Ko(n)&&!Lh()}function yx(n,a,s={}){const[r,u,f]=Vh(n,s),d=h=>{const y=h.currentTarget;if(!_h(h))return;ms.add(y);const g=a(y,h),p=(A,j)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",v),ms.has(y)&&ms.delete(y),_h(A)&&typeof g=="function"&&g(A,{success:j})},S=A=>{p(A,y===window||y===document||s.useGlobalTarget||Uh(y,A.target))},v=A=>{p(A,!1)};window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",v,u)};return r.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),Bh(h)&&(h.addEventListener("focus",g=>px(g,u)),!mx(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function kh(n){return Bd(n)&&"ownerSVGElement"in n}function gx(n){return kh(n)&&n.tagName==="svg"}const ye=n=>!!(n&&n.getVelocity),vx=[...Ch,Wt,Gn],bx=n=>vx.find(Ah(n)),Qo=T.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Gh(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Sx(...n){return a=>{let s=!1;const r=n.map(u=>{const f=Gh(u,a);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<r.length;u++){const f=r[u];typeof f=="function"?f():Gh(n[u],null)}}}}function xx(...n){return T.useCallback(Sx(...n),n)}class Tx extends T.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=s.offsetParent,u=Bh(r)&&r.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=u-f.width-f.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Ex({children:n,isPresent:a,anchorX:s,root:r}){const u=T.useId(),f=T.useRef(null),d=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=T.useContext(Qo),y=xx(f,n?.ref);return T.useInsertionEffect(()=>{const{width:g,height:p,top:S,left:v,right:A}=d.current;if(a||!f.current||!g||!p)return;const j=s==="left"?`left: ${v}`:`right: ${A}`;f.current.dataset.motionPopId=u;const L=document.createElement("style");h&&(L.nonce=h);const H=r??document.head;return H.appendChild(L),L.sheet&&L.sheet.insertRule(`
602
+ `})})}const Yd=10,Xb=n=>!n||!(n instanceof HTMLElement)?!1:n.isContentEditable?!0:n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement,Fb=()=>typeof navigator>"u"?!1:/iPhone/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(navigator.userAgent),Pd=n=>{if(!n||!(n instanceof HTMLElement))return null;const a=n.closest(".vpe-root-wrap");return a instanceof HTMLElement?a:null},Kb=(n,a,s)=>{if(n)if(n.classList.contains("vpe-ios-fullscreen")){n.classList.remove("vpe-ios-fullscreen"),document.body.style.backgroundColor=s.current;const r=document.getElementById("vpeIosFullscreenTmpDiv");r&&r.remove(),window.scrollY=a.current}else{n.classList.add("vpe-ios-fullscreen"),a.current=window.scrollY,s.current=document.body.style.backgroundColor,document.body.style.backgroundColor="#000000";const r=document.createElement("div");r.id="vpeIosFullscreenTmpDiv",r.style.height="120dvh",document.body.appendChild(r),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}},Qb=(n={})=>{const a=E.useRef(null),s=E.useRef(0),r=E.useRef("");E.useEffect(()=>{const u=f=>{a.current=Pd(f.target)??a.current};return a.current=document.querySelector(".vpe-root-wrap")??a.current,window.addEventListener("pointerdown",u,!0),window.addEventListener("mousedown",u,!0),window.addEventListener("touchstart",u,!0),()=>{window.removeEventListener("pointerdown",u,!0),window.removeEventListener("mousedown",u,!0),window.removeEventListener("touchstart",u,!0)}},[n.keyboardShortcut]),E.useEffect(()=>{const u=f=>{if(f.defaultPrevented||f.metaKey||f.ctrlKey||f.altKey||Xb(f.target))return;const d=Pd(f.target)??a.current??document.querySelector(".vpe-root-wrap");if(!d)return;const p=d.querySelector("video");if(p instanceof HTMLVideoElement&&n.keyboardShortcut)switch(f.key){case" ":case"Spacebar":case"Space":{f.preventDefault(),p.paused?p.play():p.pause();break}case"ArrowRight":{const h=Math.max(0,Math.min(p.currentTime+Yd,p.duration||p.currentTime));p.currentTime=h;break}case"ArrowLeft":{const h=Math.max(0,Math.min(p.currentTime-Yd,p.duration||p.currentTime));p.currentTime=h;break}case"ㄹ":case"f":case"F":{if(Fb()){const y=p.webkitEnterFullscreen;if(typeof y=="function"){y.call(p);break}Kb(d,s,r);break}if(document.fullscreenElement){document.exitFullscreen?.();break}const h=d.querySelector(".vpe-fullscreen-target")||d;h instanceof HTMLElement&&h.requestFullscreen?.();break}case"ㅡ":case"m":case"M":{p.muted=!p.muted;break}}};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[n.keyboardShortcut])},ho=E.createContext({});function mo(n){const a=E.useRef(null);return a.current===null&&(a.current=n()),a.current}const po=typeof window<"u",qd=po?E.useLayoutEffect:E.useEffect,hs=E.createContext(null);function yo(n,a){n.indexOf(a)===-1&&n.push(a)}function go(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const Sn=(n,a,s)=>s>a?a:s<n?n:s;let vo=()=>{};const xn={},Xd=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Fd(n){return typeof n=="object"&&n!==null}const Kd=n=>/^0[^.\s]+$/u.test(n);function bo(n){let a;return()=>(a===void 0&&(a=n()),a)}const qe=n=>n,Zb=(n,a)=>s=>a(n(s)),Ia=(...n)=>n.reduce(Zb),Ja=(n,a,s)=>{const r=a-n;return r===0?1:(s-n)/r};class So{constructor(){this.subscriptions=[]}add(a){return yo(this.subscriptions,a),()=>go(this.subscriptions,a)}notify(a,s,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](a,s,r);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(a,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const dn=n=>n*1e3,Xe=n=>n/1e3;function Qd(n,a){return a?n*(1e3/a):0}const Zd=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,Ib=1e-7,Jb=12;function Wb(n,a,s,r,u){let f,d,p=0;do d=a+(s-a)/2,f=Zd(d,r,u)-n,f>0?s=d:a=d;while(Math.abs(f)>Ib&&++p<Jb);return d}function Wa(n,a,s,r){if(n===a&&s===r)return qe;const u=f=>Wb(f,0,1,n,s);return f=>f===0||f===1?f:Zd(u(f),a,r)}const Id=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,Jd=n=>a=>1-n(1-a),Wd=Wa(.33,1.53,.69,.99),xo=Jd(Wd),$d=Id(xo),th=n=>(n*=2)<1?.5*xo(n):.5*(2-Math.pow(2,-10*(n-1))),Eo=n=>1-Math.sin(Math.acos(n)),eh=Jd(Eo),nh=Id(Eo),$b=Wa(.42,0,1,1),tS=Wa(0,0,.58,1),ih=Wa(.42,0,.58,1),eS=n=>Array.isArray(n)&&typeof n[0]!="number",ah=n=>Array.isArray(n)&&typeof n[0]=="number",nS={linear:qe,easeIn:$b,easeInOut:ih,easeOut:tS,circIn:Eo,circInOut:nh,circOut:eh,backIn:xo,backInOut:$d,backOut:Wd,anticipate:th},iS=n=>typeof n=="string",lh=n=>{if(ah(n)){vo(n.length===4);const[a,s,r,u]=n;return Wa(a,s,r,u)}else if(iS(n))return nS[n];return n},ms=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aS(n,a){let s=new Set,r=new Set,u=!1,f=!1;const d=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function h(m){d.has(m)&&(y.schedule(m),n()),m(p)}const y={schedule:(m,S=!1,v=!1)=>{const D=v&&u?s:r;return S&&d.add(m),D.has(m)||D.add(m),m},cancel:m=>{r.delete(m),d.delete(m)},process:m=>{if(p=m,u){f=!0;return}u=!0,[s,r]=[r,s],s.forEach(h),s.clear(),u=!1,f&&(f=!1,y.process(m))}};return y}const lS=40;function sh(n,a){let s=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=ms.reduce((z,q)=>(z[q]=aS(f),z),{}),{setup:p,read:h,resolveKeyframes:y,preUpdate:m,update:S,preRender:v,render:T,postRender:D}=d,B=()=>{const z=xn.useManualTiming?u.timestamp:performance.now();s=!1,xn.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(z-u.timestamp,lS),1)),u.timestamp=z,u.isProcessing=!0,p.process(u),h.process(u),y.process(u),m.process(u),S.process(u),v.process(u),T.process(u),D.process(u),u.isProcessing=!1,s&&a&&(r=!1,n(B))},L=()=>{s=!0,r=!0,u.isProcessing||n(B)};return{schedule:ms.reduce((z,q)=>{const Z=d[q];return z[q]=(J,k=!1,N=!1)=>(s||L(),Z.schedule(J,k,N)),z},{}),cancel:z=>{for(let q=0;q<ms.length;q++)d[ms[q]].cancel(z)},state:u,steps:d}}const{schedule:kt,cancel:Xn,state:ue,steps:To}=sh(typeof requestAnimationFrame<"u"?requestAnimationFrame:qe,!0);let ps;function sS(){ps=void 0}const xe={now:()=>(ps===void 0&&xe.set(ue.isProcessing||xn.useManualTiming?ue.timestamp:performance.now()),ps),set:n=>{ps=n,queueMicrotask(sS)}},rh=n=>a=>typeof a=="string"&&a.startsWith(n),oh=rh("--"),rS=rh("var(--"),Mo=n=>rS(n)?oS.test(n.split("/*")[0].trim()):!1,oS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},$a={...Qi,transform:n=>Sn(0,1,n)},ys={...Qi,default:1},tl=n=>Math.round(n*1e5)/1e5,Ao=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uS(n){return n==null}const cS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Co=(n,a)=>s=>!!(typeof s=="string"&&cS.test(s)&&s.startsWith(n)||a&&!uS(s)&&Object.prototype.hasOwnProperty.call(s,a)),uh=(n,a,s)=>r=>{if(typeof r!="string")return r;const[u,f,d,p]=r.match(Ao);return{[n]:parseFloat(u),[a]:parseFloat(f),[s]:parseFloat(d),alpha:p!==void 0?parseFloat(p):1}},fS=n=>Sn(0,255,n),wo={...Qi,transform:n=>Math.round(fS(n))},Ei={test:Co("rgb","red"),parse:uh("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:r=1})=>"rgba("+wo.transform(n)+", "+wo.transform(a)+", "+wo.transform(s)+", "+tl($a.transform(r))+")"};function dS(n){let a="",s="",r="",u="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),r=n.substring(5,7),u=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),r=n.substring(3,4),u=n.substring(4,5),a+=a,s+=s,r+=r,u+=u),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const Ro={test:Co("#"),parse:dS,transform:Ei.transform},el=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),Fn=el("deg"),hn=el("%"),mt=el("px"),hS=el("vh"),mS=el("vw"),ch={...hn,parse:n=>hn.parse(n)/100,transform:n=>hn.transform(n*100)},Zi={test:Co("hsl","hue"),parse:uh("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+hn.transform(tl(a))+", "+hn.transform(tl(s))+", "+tl($a.transform(r))+")"},Wt={test:n=>Ei.test(n)||Ro.test(n)||Zi.test(n),parse:n=>Ei.test(n)?Ei.parse(n):Zi.test(n)?Zi.parse(n):Ro.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Ei.transform(n):Zi.transform(n),getAnimatableNone:n=>{const a=Wt.parse(n);return a.alpha=0,Wt.transform(a)}},pS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yS(n){return isNaN(n)&&typeof n=="string"&&(n.match(Ao)?.length||0)+(n.match(pS)?.length||0)>0}const fh="number",dh="color",gS="var",vS="var(",hh="${}",bS=/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 nl(n){const a=n.toString(),s=[],r={color:[],number:[],var:[]},u=[];let f=0;const p=a.replace(bS,h=>(Wt.test(h)?(r.color.push(f),u.push(dh),s.push(Wt.parse(h))):h.startsWith(vS)?(r.var.push(f),u.push(gS),s.push(h)):(r.number.push(f),u.push(fh),s.push(parseFloat(h))),++f,hh)).split(hh);return{values:s,split:p,indexes:r,types:u}}function mh(n){return nl(n).values}function ph(n){const{split:a,types:s}=nl(n),r=a.length;return u=>{let f="";for(let d=0;d<r;d++)if(f+=a[d],u[d]!==void 0){const p=s[d];p===fh?f+=tl(u[d]):p===dh?f+=Wt.transform(u[d]):f+=u[d]}return f}}const SS=n=>typeof n=="number"?0:Wt.test(n)?Wt.getAnimatableNone(n):n;function xS(n){const a=mh(n);return ph(n)(a.map(SS))}const Kn={test:yS,parse:mh,createTransformer:ph,getAnimatableNone:xS};function Do(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function ES({hue:n,saturation:a,lightness:s,alpha:r}){n/=360,a/=100,s/=100;let u=0,f=0,d=0;if(!a)u=f=d=s;else{const p=s<.5?s*(1+a):s+a-s*a,h=2*s-p;u=Do(h,p,n+1/3),f=Do(h,p,n),d=Do(h,p,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function gs(n,a){return s=>s>0?a:n}const Pt=(n,a,s)=>n+(a-n)*s,jo=(n,a,s)=>{const r=n*n,u=s*(a*a-r)+r;return u<0?0:Math.sqrt(u)},TS=[Ro,Ei,Zi],MS=n=>TS.find(a=>a.test(n));function yh(n){const a=MS(n);if(!a)return!1;let s=a.parse(n);return a===Zi&&(s=ES(s)),s}const gh=(n,a)=>{const s=yh(n),r=yh(a);if(!s||!r)return gs(n,a);const u={...s};return f=>(u.red=jo(s.red,r.red,f),u.green=jo(s.green,r.green,f),u.blue=jo(s.blue,r.blue,f),u.alpha=Pt(s.alpha,r.alpha,f),Ei.transform(u))},zo=new Set(["none","hidden"]);function AS(n,a){return zo.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function CS(n,a){return s=>Pt(n,a,s)}function Bo(n){return typeof n=="number"?CS:typeof n=="string"?Mo(n)?gs:Wt.test(n)?gh:DS:Array.isArray(n)?vh:typeof n=="object"?Wt.test(n)?gh:wS:gs}function vh(n,a){const s=[...n],r=s.length,u=n.map((f,d)=>Bo(f)(f,a[d]));return f=>{for(let d=0;d<r;d++)s[d]=u[d](f);return s}}function wS(n,a){const s={...n,...a},r={};for(const u in s)n[u]!==void 0&&a[u]!==void 0&&(r[u]=Bo(n[u])(n[u],a[u]));return u=>{for(const f in r)s[f]=r[f](u);return s}}function RS(n,a){const s=[],r={color:0,var:0,number:0};for(let u=0;u<a.values.length;u++){const f=a.types[u],d=n.indexes[f][r[f]],p=n.values[d]??0;s[u]=p,r[f]++}return s}const DS=(n,a)=>{const s=Kn.createTransformer(a),r=nl(n),u=nl(a);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?zo.has(n)&&!u.values.length||zo.has(a)&&!r.values.length?AS(n,a):Ia(vh(RS(r,u),u.values),s):gs(n,a)};function bh(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?Pt(n,a,s):Bo(n)(n,a)}const jS=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>kt.update(a,s),stop:()=>Xn(a),now:()=>ue.isProcessing?ue.timestamp:xe.now()}},Sh=(n,a,s=10)=>{let r="";const u=Math.max(Math.round(a/s),2);for(let f=0;f<u;f++)r+=Math.round(n(f/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},vs=2e4;function Lo(n){let a=0;const s=50;let r=n.next(a);for(;!r.done&&a<vs;)a+=s,r=n.next(a);return a>=vs?1/0:a}function zS(n,a=100,s){const r=s({...n,keyframes:[0,a]}),u=Math.min(Lo(r),vs);return{type:"keyframes",ease:f=>r.next(u*f).value/a,duration:Xe(u)}}const BS=5;function xh(n,a,s){const r=Math.max(a-BS,0);return Qd(s-n(r),a-r)}const Xt={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},Oo=.001;function LS({duration:n=Xt.duration,bounce:a=Xt.bounce,velocity:s=Xt.velocity,mass:r=Xt.mass}){let u,f,d=1-a;d=Sn(Xt.minDamping,Xt.maxDamping,d),n=Sn(Xt.minDuration,Xt.maxDuration,Xe(n)),d<1?(u=y=>{const m=y*d,S=m*n,v=m-s,T=Vo(y,d),D=Math.exp(-S);return Oo-v/T*D},f=y=>{const S=y*d*n,v=S*s+s,T=Math.pow(d,2)*Math.pow(y,2)*n,D=Math.exp(-S),B=Vo(Math.pow(y,2),d);return(-u(y)+Oo>0?-1:1)*((v-T)*D)/B}):(u=y=>{const m=Math.exp(-y*n),S=(y-s)*n+1;return-Oo+m*S},f=y=>{const m=Math.exp(-y*n),S=(s-y)*(n*n);return m*S});const p=5/n,h=VS(u,f,p);if(n=dn(n),isNaN(h))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:n};{const y=Math.pow(h,2)*r;return{stiffness:y,damping:d*2*Math.sqrt(r*y),duration:n}}}const OS=12;function VS(n,a,s){let r=s;for(let u=1;u<OS;u++)r=r-n(r)/a(r);return r}function Vo(n,a){return n*Math.sqrt(1-a*a)}const NS=["duration","bounce"],US=["stiffness","damping","mass"];function Eh(n,a){return a.some(s=>n[s]!==void 0)}function _S(n){let a={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...n};if(!Eh(n,US)&&Eh(n,NS))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),u=r*r,f=2*Sn(.05,1,1-(n.bounce||0))*Math.sqrt(u);a={...a,mass:Xt.mass,stiffness:u,damping:f}}else{const s=LS(n);a={...a,...s,mass:Xt.mass},a.isResolvedFromDuration=!0}return a}function bs(n=Xt.visualDuration,a=Xt.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:r,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],p={done:!1,value:f},{stiffness:h,damping:y,mass:m,duration:S,velocity:v,isResolvedFromDuration:T}=_S({...s,velocity:-Xe(s.velocity||0)}),D=v||0,B=y/(2*Math.sqrt(h*m)),L=d-f,M=Xe(Math.sqrt(h/m)),O=Math.abs(L)<5;r||(r=O?Xt.restSpeed.granular:Xt.restSpeed.default),u||(u=O?Xt.restDelta.granular:Xt.restDelta.default);let z;if(B<1){const Z=Vo(M,B);z=J=>{const k=Math.exp(-B*M*J);return d-k*((D+B*M*L)/Z*Math.sin(Z*J)+L*Math.cos(Z*J))}}else if(B===1)z=Z=>d-Math.exp(-M*Z)*(L+(D+M*L)*Z);else{const Z=M*Math.sqrt(B*B-1);z=J=>{const k=Math.exp(-B*M*J),N=Math.min(Z*J,300);return d-k*((D+B*M*L)*Math.sinh(N)+Z*L*Math.cosh(N))/Z}}const q={calculatedDuration:T&&S||null,next:Z=>{const J=z(Z);if(T)p.done=Z>=S;else{let k=Z===0?D:0;B<1&&(k=Z===0?dn(D):xh(z,Z,J));const N=Math.abs(k)<=r,I=Math.abs(d-J)<=u;p.done=N&&I}return p.value=p.done?d:J,p},toString:()=>{const Z=Math.min(Lo(q),vs),J=Sh(k=>q.next(Z*k).value,Z,30);return Z+"ms "+J},toTransition:()=>{}};return q}bs.applyToOptions=n=>{const a=zS(n,100,bs);return n.ease=a.ease,n.duration=dn(a.duration),n.type="keyframes",n};function No({keyframes:n,velocity:a=0,power:s=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:p,max:h,restDelta:y=.5,restSpeed:m}){const S=n[0],v={done:!1,value:S},T=N=>p!==void 0&&N<p||h!==void 0&&N>h,D=N=>p===void 0?h:h===void 0||Math.abs(p-N)<Math.abs(h-N)?p:h;let B=s*a;const L=S+B,M=d===void 0?L:d(L);M!==L&&(B=M-S);const O=N=>-B*Math.exp(-N/r),z=N=>M+O(N),q=N=>{const I=O(N),nt=z(N);v.done=Math.abs(I)<=y,v.value=v.done?M:nt};let Z,J;const k=N=>{T(v.value)&&(Z=N,J=bs({keyframes:[v.value,D(v.value)],velocity:xh(z,N,v.value),damping:u,stiffness:f,restDelta:y,restSpeed:m}))};return k(0),{calculatedDuration:null,next:N=>{let I=!1;return!J&&Z===void 0&&(I=!0,q(N),k(N)),Z!==void 0&&N>=Z?J.next(N-Z):(!I&&q(N),v)}}}function HS(n,a,s){const r=[],u=s||xn.mix||bh,f=n.length-1;for(let d=0;d<f;d++){let p=u(n[d],n[d+1]);if(a){const h=Array.isArray(a)?a[d]||qe:a;p=Ia(h,p)}r.push(p)}return r}function kS(n,a,{clamp:s=!0,ease:r,mixer:u}={}){const f=n.length;if(vo(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),a=[...a].reverse());const p=HS(a,r,u),h=p.length,y=m=>{if(d&&m<n[0])return a[0];let S=0;if(h>1)for(;S<n.length-2&&!(m<n[S+1]);S++);const v=Ja(n[S],n[S+1],m);return p[S](v)};return s?m=>y(Sn(n[0],n[f-1],m)):y}function GS(n,a){const s=n[n.length-1];for(let r=1;r<=a;r++){const u=Ja(0,a,r);n.push(Pt(s,1,u))}}function YS(n){const a=[0];return GS(a,n.length-1),a}function PS(n,a){return n.map(s=>s*a)}function qS(n,a){return n.map(()=>a||ih).splice(0,n.length-1)}function il({duration:n=300,keyframes:a,times:s,ease:r="easeInOut"}){const u=eS(r)?r.map(lh):lh(r),f={done:!1,value:a[0]},d=PS(s&&s.length===a.length?s:YS(a),n),p=kS(d,a,{ease:Array.isArray(u)?u:qS(a,u)});return{calculatedDuration:n,next:h=>(f.value=p(h),f.done=h>=n,f)}}const XS=n=>n!==null;function Uo(n,{repeat:a,repeatType:s="loop"},r,u=1){const f=n.filter(XS),p=u<0||a&&s!=="loop"&&a%2===1?0:f.length-1;return!p||r===void 0?f[p]:r}const FS={decay:No,inertia:No,tween:il,keyframes:il,spring:bs};function Th(n){typeof n.type=="string"&&(n.type=FS[n.type])}class _o{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 KS=n=>n/100;class Ho extends _o{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!==xe.now()&&this.tick(xe.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;Th(a);const{type:s=il,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=a;let{keyframes:p}=a;const h=s||il;h!==il&&typeof p[0]!="number"&&(this.mixKeyframes=Ia(KS,bh(p[0],p[1])),p=[0,100]);const y=h({...a,keyframes:p});f==="mirror"&&(this.mirroredGenerator=h({...a,keyframes:[...p].reverse(),velocity:-d})),y.calculatedDuration===null&&(y.calculatedDuration=Lo(y));const{calculatedDuration:m}=y;this.calculatedDuration=m,this.resolvedDuration=m+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=y}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:r,totalDuration:u,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:p,calculatedDuration:h}=this;if(this.startTime===null)return r.next(0);const{delay:y=0,keyframes:m,repeat:S,repeatType:v,repeatDelay:T,type:D,onUpdate:B,finalKeyframe:L}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-u/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const M=this.currentTime-y*(this.playbackSpeed>=0?1:-1),O=this.playbackSpeed>=0?M<0:M>u;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let z=this.currentTime,q=r;if(S){const N=Math.min(this.currentTime,u)/p;let I=Math.floor(N),nt=N%1;!nt&&N>=1&&(nt=1),nt===1&&I--,I=Math.min(I,S+1),!!(I%2)&&(v==="reverse"?(nt=1-nt,T&&(nt-=T/p)):v==="mirror"&&(q=d)),z=Sn(0,1,nt)*p}const Z=O?{done:!1,value:m[0]}:q.next(z);f&&(Z.value=f(Z.value));let{done:J}=Z;!O&&h!==null&&(J=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&J);return k&&D!==No&&(Z.value=Uo(m,this.options,L,this.speed)),B&&B(Z.value),k&&this.finish(),Z}then(a,s){return this.finished.then(a,s)}get duration(){return Xe(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Xe(a)}get time(){return Xe(this.currentTime)}set time(a){a=dn(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(xe.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=Xe(this.currentTime))}play(){if(this.isStopped)return;const{driver:a=jS,startTime:s}=this.options;this.driver||(this.driver=a(u=>this.tick(u))),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=s??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(xe.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 QS(n){for(let a=1;a<n.length;a++)n[a]??(n[a]=n[a-1])}const Ti=n=>n*180/Math.PI,ko=n=>{const a=Ti(Math.atan2(n[1],n[0]));return Go(a)},ZS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:ko,rotateZ:ko,skewX:n=>Ti(Math.atan(n[1])),skewY:n=>Ti(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Go=n=>(n=n%360,n<0&&(n+=360),n),Mh=ko,Ah=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Ch=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),IS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ah,scaleY:Ch,scale:n=>(Ah(n)+Ch(n))/2,rotateX:n=>Go(Ti(Math.atan2(n[6],n[5]))),rotateY:n=>Go(Ti(Math.atan2(-n[2],n[0]))),rotateZ:Mh,rotate:Mh,skewX:n=>Ti(Math.atan(n[4])),skewY:n=>Ti(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Yo(n){return n.includes("scale")?1:0}function Po(n,a){if(!n||n==="none")return Yo(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(s)r=IS,u=s;else{const p=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ZS,u=p}if(!u)return Yo(a);const f=r[a],d=u[1].split(",").map(WS);return typeof f=="function"?f(d):d[f]}const JS=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return Po(s,a)};function WS(n){return parseFloat(n.trim())}const Ii=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ji=new Set(Ii),wh=n=>n===Qi||n===mt,$S=new Set(["x","y","z"]),tx=Ii.filter(n=>!$S.has(n));function ex(n){const a=[];return tx.forEach(s=>{const r=n.getValue(s);r!==void 0&&(a.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),a}const Mi={width:({x:n},{paddingLeft:a="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),height:({y:n},{paddingTop:a="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>Po(a,"x"),y:(n,{transform:a})=>Po(a,"y")};Mi.translateX=Mi.x,Mi.translateY=Mi.y;const Ai=new Set;let qo=!1,Xo=!1,Fo=!1;function Rh(){if(Xo){const n=Array.from(Ai).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),s=new Map;a.forEach(r=>{const u=ex(r);u.length&&(s.set(r,u),r.render())}),n.forEach(r=>r.measureInitialState()),a.forEach(r=>{r.render();const u=s.get(r);u&&u.forEach(([f,d])=>{r.getValue(f)?.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Xo=!1,qo=!1,Ai.forEach(n=>n.complete(Fo)),Ai.clear()}function Dh(){Ai.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Xo=!0)})}function nx(){Fo=!0,Dh(),Rh(),Fo=!1}class Ko{constructor(a,s,r,u,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=r,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ai.add(this),qo||(qo=!0,kt.read(Dh),kt.resolveKeyframes(Rh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:r,motionValue:u}=this;if(a[0]===null){const f=u?.get(),d=a[a.length-1];if(f!==void 0)a[0]=f;else if(r&&s){const p=r.readValue(s,d);p!=null&&(a[0]=p)}a[0]===void 0&&(a[0]=d),u&&f===void 0&&u.set(a[0])}QS(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Ai.delete(this)}cancel(){this.state==="scheduled"&&(Ai.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ix=n=>n.startsWith("--");function ax(n,a,s){ix(a)?n.style.setProperty(a,s):n.style[a]=s}const lx=bo(()=>window.ScrollTimeline!==void 0),sx={};function rx(n,a){const s=bo(n);return()=>sx[a]??s()}const jh=rx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),al=([n,a,s,r])=>`cubic-bezier(${n}, ${a}, ${s}, ${r})`,zh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:al([0,.65,.55,1]),circOut:al([.55,0,1,.45]),backIn:al([.31,.01,.66,-.59]),backOut:al([.33,1.53,.69,.99])};function Bh(n,a){if(n)return typeof n=="function"?jh()?Sh(n,a):"ease-out":ah(n)?al(n):Array.isArray(n)?n.map(s=>Bh(s,a)||zh.easeOut):zh[n]}function ox(n,a,s,{delay:r=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:p="easeOut",times:h}={},y=void 0){const m={[a]:s};h&&(m.offset=h);const S=Bh(p,u);Array.isArray(S)&&(m.easing=S);const v={delay:r,duration:u,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return y&&(v.pseudoElement=y),n.animate(m,v)}function Lh(n){return typeof n=="function"&&"applyToOptions"in n}function ux({type:n,...a}){return Lh(n)&&jh()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class cx extends _o{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:s,name:r,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:p,onComplete:h}=a;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=a,vo(typeof a.type!="string");const y=ux(a);this.animation=ox(s,r,u,y,f),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const m=Uo(u,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(m):ax(s,r,m),this.animation.cancel()}h?.(),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 Xe(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Xe(a)}get time(){return Xe(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=dn(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&&lx()?(this.animation.timeline=a,qe):s(this)}}const Oh={anticipate:th,backInOut:$d,circInOut:nh};function fx(n){return n in Oh}function dx(n){typeof n.ease=="string"&&fx(n.ease)&&(n.ease=Oh[n.ease])}const Vh=10;class hx extends cx{constructor(a){dx(a),Th(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:r,onComplete:u,element:f,...d}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const p=new Ho({...d,autoplay:!1}),h=dn(this.finishedTime??this.time);s.setWithVelocity(p.sample(h-Vh).value,p.sample(h).value,Vh),p.stop()}}const Nh=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Kn.test(n)||n==="0")&&!n.startsWith("url("));function mx(n){const a=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==a)return!0}function px(n,a,s,r){const u=n[0];if(u===null)return!1;if(a==="display"||a==="visibility")return!0;const f=n[n.length-1],d=Nh(u,a),p=Nh(f,a);return!d||!p?!1:mx(n)||(s==="spring"||Lh(s))&&r}function Qo(n){n.duration=0,n.type="keyframes"}const yx=new Set(["opacity","clipPath","filter","transform"]),gx=bo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vx(n){const{motionValue:a,name:s,repeatDelay:r,repeatType:u,damping:f,type:d}=n;if(!(a?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:y}=a.owner.getProps();return gx()&&s&&yx.has(s)&&(s!=="transform"||!y)&&!h&&!r&&u!=="mirror"&&f!==0&&d!=="inertia"}const bx=40;class Sx extends _o{constructor({autoplay:a=!0,delay:s=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:p,name:h,motionValue:y,element:m,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=xe.now();const v={autoplay:a,delay:s,type:r,repeat:u,repeatDelay:f,repeatType:d,name:h,motionValue:y,element:m,...S},T=m?.KeyframeResolver||Ko;this.keyframeResolver=new T(p,(D,B,L)=>this.onKeyframesResolved(D,B,v,!L),h,y,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,s,r,u){this.keyframeResolver=void 0;const{name:f,type:d,velocity:p,delay:h,isHandoff:y,onUpdate:m}=r;this.resolvedAt=xe.now(),px(a,f,d,p)||((xn.instantAnimations||!h)&&m?.(Uo(a,r,s)),a[0]=a[a.length-1],Qo(r),r.repeat=0);const v={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>bx?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:a},T=!y&&vx(v)?new hx({...v,element:v.motionValue.owner.current}):new Ho(v);T.finished.then(()=>this.notifyFinished()).catch(qe),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}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(),nx()),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 xx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ex(n){const a=xx.exec(n);if(!a)return[,];const[,s,r,u]=a;return[`--${s??r}`,u]}function Uh(n,a,s=1){const[r,u]=Ex(n);if(!r)return;const f=window.getComputedStyle(a).getPropertyValue(r);if(f){const d=f.trim();return Xd(d)?parseFloat(d):d}return Mo(u)?Uh(u,a,s+1):u}function Zo(n,a){return n?.[a]??n?.default??n}const _h=new Set(["width","height","top","left","right","bottom",...Ii]),Tx={test:n=>n==="auto",parse:n=>n},Hh=n=>a=>a.test(n),kh=[Qi,mt,hn,Fn,mS,hS,Tx],Gh=n=>kh.find(Hh(n));function Mx(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Kd(n):!0}const Ax=new Set(["brightness","contrast","saturate","opacity"]);function Cx(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=s.match(Ao)||[];if(!r)return n;const u=s.replace(r,"");let f=Ax.has(a)?1:0;return r!==s&&(f*=100),a+"("+f+u+")"}const wx=/\b([a-z-]*)\(.*?\)/gu,Io={...Kn,getAnimatableNone:n=>{const a=n.match(wx);return a?a.map(Cx).join(" "):n}},Yh={...Qi,transform:Math.round},Jo={borderWidth:mt,borderTopWidth:mt,borderRightWidth:mt,borderBottomWidth:mt,borderLeftWidth:mt,borderRadius:mt,radius:mt,borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomRightRadius:mt,borderBottomLeftRadius:mt,width:mt,maxWidth:mt,height:mt,maxHeight:mt,top:mt,right:mt,bottom:mt,left:mt,padding:mt,paddingTop:mt,paddingRight:mt,paddingBottom:mt,paddingLeft:mt,margin:mt,marginTop:mt,marginRight:mt,marginBottom:mt,marginLeft:mt,backgroundPositionX:mt,backgroundPositionY:mt,...{rotate:Fn,rotateX:Fn,rotateY:Fn,rotateZ:Fn,scale:ys,scaleX:ys,scaleY:ys,scaleZ:ys,skew:Fn,skewX:Fn,skewY:Fn,distance:mt,translateX:mt,translateY:mt,translateZ:mt,x:mt,y:mt,z:mt,perspective:mt,transformPerspective:mt,opacity:$a,originX:ch,originY:ch,originZ:mt},zIndex:Yh,fillOpacity:$a,strokeOpacity:$a,numOctaves:Yh},Rx={...Jo,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:Io,WebkitFilter:Io},Ph=n=>Rx[n];function qh(n,a){let s=Ph(n);return s!==Io&&(s=Kn),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const Dx=new Set(["auto","none","0"]);function jx(n,a,s){let r=0,u;for(;r<n.length&&!u;){const f=n[r];typeof f=="string"&&!Dx.has(f)&&nl(f).values.length&&(u=n[r]),r++}if(u&&s)for(const f of a)n[f]=qh(s,u)}class zx extends Ko{constructor(a,s,r,u,f){super(a,s,r,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let h=0;h<a.length;h++){let y=a[h];if(typeof y=="string"&&(y=y.trim(),Mo(y))){const m=Uh(y,s.current);m!==void 0&&(a[h]=m),h===a.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!_h.has(r)||a.length!==2)return;const[u,f]=a,d=Gh(u),p=Gh(f);if(d!==p)if(wh(d)&&wh(p))for(let h=0;h<a.length;h++){const y=a[h];typeof y=="string"&&(a[h]=parseFloat(y))}else Mi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,r=[];for(let u=0;u<a.length;u++)(a[u]===null||Mx(a[u]))&&r.push(u);r.length&&jx(a,r,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:r}=this;if(!a||!a.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mi[r](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&a.getValue(r,u).jump(u,!1)}measureEndState(){const{element:a,name:s,unresolvedKeyframes:r}=this;if(!a||!a.current)return;const u=a.getValue(s);u&&u.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=Mi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,h])=>{a.getValue(p).set(h)}),this.resolveNoneKeyframes()}}function Bx(n,a,s){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const u=s?.[n]??r.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n)}const Xh=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function Fh(n){return Fd(n)&&"offsetHeight"in n}const Kh=30,Lx=n=>!isNaN(parseFloat(n));class Ox{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const u=xe.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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=xe.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=Lx(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 So);const r=this.events[a].add(s);return a==="change"?()=>{r(),kt.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-r}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=xe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Kh)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Kh);return Qd(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 Wi(n,a){return new Ox(n,a)}const{schedule:Wo}=sh(queueMicrotask,!1),ln={x:!1,y:!1};function Qh(){return ln.x||ln.y}function Vx(n){return n==="x"||n==="y"?ln[n]?null:(ln[n]=!0,()=>{ln[n]=!1}):ln.x||ln.y?null:(ln.x=ln.y=!0,()=>{ln.x=ln.y=!1})}function Zh(n,a){const s=Bx(n),r=new AbortController,u={passive:!0,...a,signal:r.signal};return[s,u,()=>r.abort()]}function Ih(n){return!(n.pointerType==="touch"||Qh())}function Nx(n,a,s={}){const[r,u,f]=Zh(n,s),d=p=>{if(!Ih(p))return;const{target:h}=p,y=a(h,p);if(typeof y!="function"||!h)return;const m=S=>{Ih(S)&&(y(S),h.removeEventListener("pointerleave",m))};h.addEventListener("pointerleave",m,u)};return r.forEach(p=>{p.addEventListener("pointerenter",d,u)}),f}const Jh=(n,a)=>a?n===a?!0:Jh(n,a.parentElement):!1,$o=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Ux=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _x(n){return Ux.has(n.tagName)||n.tabIndex!==-1}const Ss=new WeakSet;function Wh(n){return a=>{a.key==="Enter"&&n(a)}}function tu(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const Hx=(n,a)=>{const s=n.currentTarget;if(!s)return;const r=Wh(()=>{if(Ss.has(s))return;tu(s,"down");const u=Wh(()=>{tu(s,"up")}),f=()=>tu(s,"cancel");s.addEventListener("keyup",u,a),s.addEventListener("blur",f,a)});s.addEventListener("keydown",r,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),a)};function $h(n){return $o(n)&&!Qh()}function kx(n,a,s={}){const[r,u,f]=Zh(n,s),d=p=>{const h=p.currentTarget;if(!$h(p))return;Ss.add(h);const y=a(h,p),m=(T,D)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",v),Ss.has(h)&&Ss.delete(h),$h(T)&&typeof y=="function"&&y(T,{success:D})},S=T=>{m(T,h===window||h===document||s.useGlobalTarget||Jh(h,T.target))},v=T=>{m(T,!1)};window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",v,u)};return r.forEach(p=>{(s.useGlobalTarget?window:p).addEventListener("pointerdown",d,u),Fh(p)&&(p.addEventListener("focus",y=>Hx(y,u)),!_x(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),f}function tm(n){return Fd(n)&&"ownerSVGElement"in n}function Gx(n){return tm(n)&&n.tagName==="svg"}const ge=n=>!!(n&&n.getVelocity),Yx=[...kh,Wt,Kn],Px=n=>Yx.find(Hh(n)),eu=E.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function em(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function qx(...n){return a=>{let s=!1;const r=n.map(u=>{const f=em(u,a);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<r.length;u++){const f=r[u];typeof f=="function"?f():em(n[u],null)}}}}function Xx(...n){return E.useCallback(qx(...n),n)}class Fx extends E.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=s.offsetParent,u=Fh(r)&&r.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=u-f.width-f.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Kx({children:n,isPresent:a,anchorX:s,root:r}){const u=E.useId(),f=E.useRef(null),d=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=E.useContext(eu),h=Xx(f,n?.ref);return E.useInsertionEffect(()=>{const{width:y,height:m,top:S,left:v,right:T}=d.current;if(a||!f.current||!y||!m)return;const D=s==="left"?`left: ${v}`:`right: ${T}`;f.current.dataset.motionPopId=u;const B=document.createElement("style");p&&(B.nonce=p);const L=r??document.head;return L.appendChild(B),B.sheet&&B.sheet.insertRule(`
591
603
  [data-motion-pop-id="${u}"] {
592
604
  position: absolute !important;
593
- width: ${g}px !important;
594
- height: ${p}px !important;
595
- ${j}px !important;
605
+ width: ${y}px !important;
606
+ height: ${m}px !important;
607
+ ${D}px !important;
596
608
  top: ${S}px !important;
597
609
  }
598
- `),()=>{H.contains(L)&&H.removeChild(L)}},[a]),b.jsx(Tx,{isPresent:a,childRef:f,sizeRef:d,children:T.cloneElement(n,{ref:y})})}const Mx=({children:n,initial:a,isPresent:s,onExitComplete:r,custom:u,presenceAffectsLayout:f,mode:d,anchorX:h,root:y})=>{const g=so(Ax),p=T.useId();let S=!0,v=T.useMemo(()=>(S=!1,{id:p,initial:a,isPresent:s,custom:u,onExitComplete:A=>{g.set(A,!0);for(const j of g.values())if(!j)return;r&&r()},register:A=>(g.set(A,!1),()=>g.delete(A))}),[s,g,r]);return f&&S&&(v={...v}),T.useMemo(()=>{g.forEach((A,j)=>g.set(j,!1))},[s]),T.useEffect(()=>{!s&&!g.size&&r&&r()},[s]),d==="popLayout"&&(n=b.jsx(Ex,{isPresent:s,anchorX:h,root:y,children:n})),b.jsx(rs.Provider,{value:v,children:n})};function Ax(){return new Map}function Yh(n=!0){const a=T.useContext(rs);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:u}=a,f=T.useId();T.useEffect(()=>{if(n)return u(f)},[n]);const d=T.useCallback(()=>n&&r&&r(f),[f,r,n]);return!s&&r?[!1,d]:[!0]}const ps=n=>n.key||"";function qh(n){const a=[];return T.Children.forEach(n,s=>{T.isValidElement(s)&&a.push(s)}),a}const Cx=({children:n,custom:a,initial:s=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",root:y})=>{const[g,p]=Yh(d),S=T.useMemo(()=>qh(n),[n]),v=d&&!g?[]:S.map(ps),A=T.useRef(!0),j=T.useRef(S),L=so(()=>new Map),[H,C]=T.useState(S),[U,V]=T.useState(S);jd(()=>{A.current=!1,j.current=S;for(let J=0;J<U.length;J++){const Y=ps(U[J]);v.includes(Y)?L.delete(Y):L.get(Y)!==!0&&L.set(Y,!1)}},[U,v.length,v.join("-")]);const K=[];if(S!==H){let J=[...S];for(let Y=0;Y<U.length;Y++){const k=U[Y],st=ps(k);v.includes(st)||(J.splice(Y,0,k),K.push(k))}return f==="wait"&&K.length&&(J=K),V(qh(J)),C(S),null}const{forceRender:Q}=T.useContext(lo);return b.jsx(b.Fragment,{children:U.map(J=>{const Y=ps(J),k=d&&!g?!1:S===U||v.includes(Y),st=()=>{if(L.has(Y))L.set(Y,!0);else return;let bt=!0;L.forEach(pt=>{pt||(bt=!1)}),bt&&(Q?.(),V(j.current),d&&p?.(),r&&r())};return b.jsx(Mx,{isPresent:k,initial:!A.current||s?void 0:!1,custom:a,presenceAffectsLayout:u,mode:f,root:y,onExitComplete:k?void 0:st,anchorX:h,children:J},Y)})})},Ph=T.createContext({strict:!1}),Xh={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"]},Fi={};for(const n in Xh)Fi[n]={isEnabled:a=>Xh[n].some(s=>!!a[s])};function wx(n){for(const a in n)Fi[a]={...Fi[a],...n[a]}}const Dx=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 ys(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Dx.has(n)}let Kh=n=>!ys(n);function Rx(n){typeof n=="function"&&(Kh=a=>a.startsWith("on")?!ys(a):n(a))}try{Rx(require("@emotion/is-prop-valid").default)}catch{}function jx(n,a,s){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||(Kh(u)||s===!0&&ys(u)||!a&&!ys(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const gs=T.createContext({});function vs(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function tl(n){return typeof n=="string"||Array.isArray(n)}const Zo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Io=["initial",...Zo];function bs(n){return vs(n.animate)||Io.some(a=>tl(n[a]))}function Fh(n){return!!(bs(n)||n.variants)}function zx(n,a){if(bs(n)){const{initial:s,animate:r}=n;return{initial:s===!1||tl(s)?s:void 0,animate:tl(r)?r:void 0}}return n.inherit!==!1?a:{}}function Bx(n){const{initial:a,animate:s}=zx(n,T.useContext(gs));return T.useMemo(()=>({initial:a,animate:s}),[Qh(a),Qh(s)])}function Qh(n){return Array.isArray(n)?n.join(" "):n}function Zh(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const el={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(ft.test(n))n=parseFloat(n);else return n;const s=Zh(n,a.target.x),r=Zh(n,a.target.y);return`${s}% ${r}%`}},Ox={correct:(n,{treeScale:a,projectionDelta:s})=>{const r=n,u=Gn.parse(n);if(u.length>5)return r;const f=Gn.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*a.x,y=s.y.scale*a.y;u[0+d]/=h,u[1+d]/=y;const g=Pt(h,y,.5);return typeof u[2+d]=="number"&&(u[2+d]/=g),typeof u[3+d]=="number"&&(u[3+d]/=g),f(u)}},Jo={borderRadius:{...el,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:el,borderTopRightRadius:el,borderBottomLeftRadius:el,borderBottomRightRadius:el,boxShadow:Ox};function Ih(n,{layout:a,layoutId:s}){return Xi.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!Jo[n]||n==="opacity")}const Lx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vx=Pi.length;function Nx(n,a,s){let r="",u=!0;for(let f=0;f<Vx;f++){const d=Pi[f],h=n[d];if(h===void 0)continue;let y=!0;if(typeof h=="number"?y=h===(d.startsWith("scale")?1:0):y=parseFloat(h)===0,!y||s){const g=zh(h,Po[d]);if(!y){u=!1;const p=Lx[d]||d;r+=`${p}(${g}) `}s&&(a[d]=g)}}return r=r.trim(),s?r=s(a,u?"":r):u&&(r="none"),r}function Wo(n,a,s){const{style:r,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const y in a){const g=a[y];if(Xi.has(y)){d=!0;continue}else if(Qd(y)){u[y]=g;continue}else{const p=zh(g,Po[y]);y.startsWith("origin")?(h=!0,f[y]=p):r[y]=p}}if(a.transform||(d||s?r.transform=Nx(a,n.transform,s):r.transform&&(r.transform="none")),h){const{originX:y="50%",originY:g="50%",originZ:p=0}=f;r.transformOrigin=`${y} ${g} ${p}`}}const $o=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Jh(n,a,s){for(const r in a)!ye(a[r])&&!Ih(r,s)&&(n[r]=a[r])}function Ux({transformTemplate:n},a){return T.useMemo(()=>{const s=$o();return Wo(s,a,n),Object.assign({},s.vars,s.style)},[a])}function Hx(n,a){const s=n.style||{},r={};return Jh(r,s,n),Object.assign(r,Ux(n,a)),r}function _x(n,a){const s={},r=Hx(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=r,s}const kx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gx={offset:"strokeDashoffset",array:"strokeDasharray"};function Yx(n,a,s=1,r=0,u=!0){n.pathLength=1;const f=u?kx:Gx;n[f.offset]=ft.transform(-r);const d=ft.transform(a),h=ft.transform(s);n[f.array]=`${d} ${h}`}function Wh(n,{attrX:a,attrY:s,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},y,g,p){if(Wo(n,h,g),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:S,style:v}=n;S.transform&&(v.transform=S.transform,delete S.transform),(v.transform||S.transformOrigin)&&(v.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete S.transformBox),a!==void 0&&(S.x=a),s!==void 0&&(S.y=s),r!==void 0&&(S.scale=r),u!==void 0&&Yx(S,u,f,d,!1)}const $h=()=>({...$o(),attrs:{}}),tm=n=>typeof n=="string"&&n.toLowerCase()==="svg";function qx(n,a,s,r){const u=T.useMemo(()=>{const f=$h();return Wh(f,a,tm(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[a]);if(n.style){const f={};Jh(f,n.style,n),u.style={...f,...u.style}}return u}const Px=["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 tu(n){return typeof n!="string"||n.includes("-")?!1:!!(Px.indexOf(n)>-1||/[A-Z]/u.test(n))}function Xx(n,a,s,{latestValues:r},u,f=!1){const h=(tu(n)?qx:_x)(a,r,u,n),y=jx(a,typeof n=="string",f),g=n!==T.Fragment?{...y,...h,ref:s}:{},{children:p}=a,S=T.useMemo(()=>ye(p)?p.get():p,[p]);return T.createElement(n,{...g,children:S})}function em(n){const a=[{},{}];return n?.values.forEach((s,r)=>{a[0][r]=s.get(),a[1][r]=s.getVelocity()}),a}function eu(n,a,s,r){if(typeof a=="function"){const[u,f]=em(r);a=a(s!==void 0?s:n.custom,u,f)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[u,f]=em(r);a=a(s!==void 0?s:n.custom,u,f)}return a}function Ss(n){return ye(n)?n.get():n}function Kx({scrapeMotionValuesFromProps:n,createRenderState:a},s,r,u){return{latestValues:Fx(s,r,u,n),renderState:a()}}function Fx(n,a,s,r){const u={},f=r(n,{});for(const v in f)u[v]=Ss(f[v]);let{initial:d,animate:h}=n;const y=bs(n),g=Fh(n);a&&g&&!y&&n.inherit!==!1&&(d===void 0&&(d=a.initial),h===void 0&&(h=a.animate));let p=s?s.initial===!1:!1;p=p||d===!1;const S=p?h:d;if(S&&typeof S!="boolean"&&!vs(S)){const v=Array.isArray(S)?S:[S];for(let A=0;A<v.length;A++){const j=eu(n,v[A]);if(j){const{transitionEnd:L,transition:H,...C}=j;for(const U in C){let V=C[U];if(Array.isArray(V)){const K=p?V.length-1:0;V=V[K]}V!==null&&(u[U]=V)}for(const U in L)u[U]=L[U]}}}return u}const nm=n=>(a,s)=>{const r=T.useContext(gs),u=T.useContext(rs),f=()=>Kx(n,a,r,u);return s?f():so(f)};function nu(n,a,s){const{style:r}=n,u={};for(const f in r)(ye(r[f])||a.style&&ye(a.style[f])||Ih(f,n)||s?.getValue(f)?.liveStyle!==void 0)&&(u[f]=r[f]);return u}const Qx=nm({scrapeMotionValuesFromProps:nu,createRenderState:$o});function im(n,a,s){const r=nu(n,a,s);for(const u in n)if(ye(n[u])||ye(a[u])){const f=Pi.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=n[u]}return r}const Zx=nm({scrapeMotionValuesFromProps:im,createRenderState:$h}),Ix=Symbol.for("motionComponentSymbol");function Qi(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function Jx(n,a,s){return T.useCallback(r=>{r&&n.onMount&&n.onMount(r),a&&(r?a.mount(r):a.unmount()),s&&(typeof s=="function"?s(r):Qi(s)&&(s.current=r))},[a])}const iu=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),am="data-"+iu("framerAppearId"),lm=T.createContext({});function Wx(n,a,s,r,u){const{visualElement:f}=T.useContext(gs),d=T.useContext(Ph),h=T.useContext(rs),y=T.useContext(Qo).reducedMotion,g=T.useRef(null);r=r||d.renderer,!g.current&&r&&(g.current=r(n,{visualState:a,parent:f,props:s,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:y}));const p=g.current,S=T.useContext(lm);p&&!p.projection&&u&&(p.type==="html"||p.type==="svg")&&$x(g.current,s,u,S);const v=T.useRef(!1);T.useInsertionEffect(()=>{p&&v.current&&p.update(s,h)});const A=s[am],j=T.useRef(!!A&&!window.MotionHandoffIsComplete?.(A)&&window.MotionHasOptimisedAnimation?.(A));return jd(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),j.current&&p.animationState&&p.animationState.animateChanges())}),T.useEffect(()=>{p&&(!j.current&&p.animationState&&p.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(A)}),j.current=!1),p.enteringChildren=void 0)}),p}function $x(n,a,s,r){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:y,layoutRoot:g,layoutCrossfade:p}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:sm(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&Qi(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:y,layoutRoot:g})}function sm(n){if(n)return n.options.allowProjection!==!1?n.projection:sm(n.parent)}function au(n,{forwardMotionProps:a=!1}={},s,r){s&&wx(s);const u=tu(n)?Zx:Qx;function f(h,y){let g;const p={...T.useContext(Qo),...h,layoutId:tT(h)},{isStatic:S}=p,v=Bx(h),A=u(h,S);if(!S&&ro){eT();const j=nT(p);g=j.MeasureLayout,v.visualElement=Wx(n,A,p,r,j.ProjectionNode)}return b.jsxs(gs.Provider,{value:v,children:[g&&v.visualElement?b.jsx(g,{visualElement:v.visualElement,...p}):null,Xx(n,h,Jx(A,v.visualElement,y),A,S,a)]})}f.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const d=T.forwardRef(f);return d[Ix]=n,d}function tT({layoutId:n}){const a=T.useContext(lo).id;return a&&n!==void 0?a+"-"+n:n}function eT(n,a){T.useContext(Ph).strict}function nT(n){const{drag:a,layout:s}=Fi;if(!a&&!s)return{};const r={...a,...s};return{MeasureLayout:a?.isEnabled(n)||s?.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function iT(n,a){if(typeof Proxy>"u")return au;const s=new Map,r=(f,d)=>au(f,d,n,a),u=(f,d)=>r(f,d);return new Proxy(u,{get:(f,d)=>d==="create"?r:(s.has(d)||s.set(d,au(d,void 0,n,a)),s.get(d))})}function rm({top:n,left:a,right:s,bottom:r}){return{x:{min:a,max:s},y:{min:n,max:r}}}function aT({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function lT(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),r=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function lu(n){return n===void 0||n===1}function su({scale:n,scaleX:a,scaleY:s}){return!lu(n)||!lu(a)||!lu(s)}function bi(n){return su(n)||om(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function om(n){return um(n.x)||um(n.y)}function um(n){return n&&n!=="0%"}function xs(n,a,s){const r=n-s,u=a*r;return s+u}function cm(n,a,s,r,u){return u!==void 0&&(n=xs(n,u,r)),xs(n,s,r)+a}function ru(n,a=0,s=1,r,u){n.min=cm(n.min,a,s,r,u),n.max=cm(n.max,a,s,r,u)}function fm(n,{x:a,y:s}){ru(n.x,a.translate,a.scale,a.originPoint),ru(n.y,s.translate,s.scale,s.originPoint)}const dm=.999999999999,hm=1.0000000000001;function sT(n,a,s,r=!1){const u=s.length;if(!u)return;a.x=a.y=1;let f,d;for(let h=0;h<u;h++){f=s[h],d=f.projectionDelta;const{visualElement:y}=f.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Ii(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,fm(n,d)),r&&bi(f.latestValues)&&Ii(n,f.latestValues))}a.x<hm&&a.x>dm&&(a.x=1),a.y<hm&&a.y>dm&&(a.y=1)}function Zi(n,a){n.min=n.min+a,n.max=n.max+a}function mm(n,a,s,r,u=.5){const f=Pt(n.min,n.max,u);ru(n,a,s,f,r)}function Ii(n,a){mm(n.x,a.x,a.scaleX,a.scale,a.originX),mm(n.y,a.y,a.scaleY,a.scale,a.originY)}function pm(n,a){return rm(lT(n.getBoundingClientRect(),a))}function rT(n,a,s){const r=pm(n,s),{scroll:u}=a;return u&&(Zi(r.x,u.offset.x),Zi(r.y,u.offset.y)),r}const ym=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ji=()=>({x:ym(),y:ym()}),gm=()=>({min:0,max:0}),ae=()=>({x:gm(),y:gm()}),ou={current:null},vm={current:!1};function oT(){if(vm.current=!0,!!ro)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>ou.current=n.matches;n.addEventListener("change",a),a()}else ou.current=!1}const uT=new WeakMap;function cT(n,a,s){for(const r in a){const u=a[r],f=s[r];if(ye(u))n.addValue(r,u);else if(ye(f))n.addValue(r,Ki(u,{owner:n}));else if(f!==u)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(r);n.addValue(r,Ki(d!==void 0?d:u,{owner:n}))}}for(const r in s)a[r]===void 0&&n.removeValue(r);return a}const bm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fT{scrapeMotionValuesFromProps(a,s,r){return{}}constructor({parent:a,props:s,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:f,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ko,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 v=Se.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Yt.render(this.render,!1,!0))};const{latestValues:y,renderState:g}=d;this.latestValues=y,this.baseTarget={...y},this.initialValues=s.initial?{...y}:{},this.renderState=g,this.parent=a,this.props=s,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=u,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=bs(s),this.isVariantNode=Fh(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:p,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const v in S){const A=S[v];y[v]!==void 0&&ye(A)&&A.set(y[v])}}mount(a){this.current=a,uT.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,r)=>this.bindToMotionValue(r,s)),vm.current||oT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ou.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),_n(this.notifyUpdate),_n(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 r=Xi.has(a);r&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&Yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{u(),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 Fi){const s=Fi[a];if(!s)continue;const{isEnabled:r,Feature:u}=s;if(!this.features[a]&&u&&r(this.props)&&(this.features[a]=new u(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):ae()}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 r=0;r<bm.length;r++){const u=bm[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=a[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=cT(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 r=this.values.get(a);s!==r&&(r&&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 r=this.values.get(a);return r===void 0&&s!==void 0&&(r=Ki(s===null?void 0:s,{owner:this}),this.addValue(a,r)),r}readValue(a,s){let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(zd(r)||Od(r))?r=parseFloat(r):!bx(r)&&Gn.test(s)&&(r=jh(a,s)),this.setBaseTarget(a,ye(r)?r.get():r)),ye(r)?r.get():r}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const f=eu(this.props,s,this.presenceContext?.custom);f&&(r=f[a])}if(s&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,a);return u!==void 0&&!ye(u)?u:this.initialValues[a]!==void 0&&r===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new ho),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){Xo.render(this.render)}}class Sm extends fT{constructor(){super(...arguments),this.KeyframeResolver=rx}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:r}){delete s[a],delete r[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ye(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function xm(n,{style:a,vars:s},r,u){const f=n.style;let d;for(d in a)f[d]=a[d];u?.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function dT(n){return window.getComputedStyle(n)}class hT extends Sm{constructor(){super(...arguments),this.type="html",this.renderInstance=xm}readValueFromInstance(a,s){if(Xi.has(s))return this.projection?.isProjecting?Vo(s):wS(a,s);{const r=dT(a),u=(Qd(s)?r.getPropertyValue(s):r[s])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(a,{transformPagePoint:s}){return pm(a,s)}build(a,s,r){Wo(a,s,r.transformTemplate)}scrapeMotionValuesFromProps(a,s,r){return nu(a,s,r)}}const Tm=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 mT(n,a,s,r){xm(n,a,void 0,r);for(const u in a.attrs)n.setAttribute(Tm.has(u)?u:iu(u),a.attrs[u])}class pT extends Sm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Xi.has(s)){const r=Rh(s);return r&&r.default||0}return s=Tm.has(s)?s:iu(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,r){return im(a,s,r)}build(a,s,r){Wh(a,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,s,r,u){mT(a,s,r,u)}mount(a){this.isSVGTag=tm(a.tagName),super.mount(a)}}const yT=(n,a)=>tu(n)?new pT(a):new hT(a,{allowProjection:n!==T.Fragment});function Wi(n,a,s){const r=n.getProps();return eu(r,a,s!==void 0?s:r.custom,n)}const uu=n=>Array.isArray(n);function gT(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Ki(s))}function vT(n){return uu(n)?n[n.length-1]||0:n}function bT(n,a){const s=Wi(n,a);let{transitionEnd:r={},transition:u={},...f}=s||{};f={...f,...r};for(const d in f){const h=vT(f[d]);gT(n,d,h)}}function ST(n){return!!(ye(n)&&n.add)}function cu(n,a){const s=n.getValue("willChange");if(ST(s))return s.add(a);if(!s&&vn.WillChange){const r=new vn.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function Em(n){return n.props[am]}const xT=n=>n!==null;function TT(n,{repeat:a,repeatType:s="loop"},r){const u=n.filter(xT),f=a&&s!=="loop"&&a%2===1?0:u.length-1;return u[f]}const ET={type:"spring",stiffness:500,damping:25,restSpeed:10},MT=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),AT={type:"keyframes",duration:.8},CT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wT=(n,{keyframes:a})=>a.length>2?AT:Xi.has(n)?n.startsWith("scale")?MT(a[1]):ET:CT;function DT({when:n,delay:a,delayChildren:s,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:y,elapsed:g,...p}){return!!Object.keys(p).length}const fu=(n,a,s,r={},u,f)=>d=>{const h=Yo(r,n)||{},y=h.delay||r.delay||0;let{elapsed:g=0}=r;g=g-on(y);const p={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-g,onUpdate:v=>{a.set(v),h.onUpdate&&h.onUpdate(v)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:f?void 0:u};DT(h)||Object.assign(p,wT(n,p)),p.duration&&(p.duration=on(p.duration)),p.repeatDelay&&(p.repeatDelay=on(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let S=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Go(p),p.delay===0&&(S=!0)),(vn.instantAnimations||vn.skipAnimations)&&(S=!0,Go(p),p.delay=0),p.allowFlatten=!h.type&&!h.ease,S&&!f&&a.get()!==void 0){const v=TT(p.keyframes,h);if(v!==void 0){Yt.update(()=>{p.onUpdate(v),p.onComplete()});return}}return h.isSync?new Bo(p):new IS(p)};function RT({protectedKeys:n,needsAnimating:a},s){const r=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,r}function Mm(n,a,{delay:s=0,transitionOverride:r,type:u}={}){let{transition:f=n.getDefaultTransition(),transitionEnd:d,...h}=a;r&&(f=r);const y=[],g=u&&n.animationState&&n.animationState.getState()[u];for(const p in h){const S=n.getValue(p,n.latestValues[p]??null),v=h[p];if(v===void 0||g&&RT(g,p))continue;const A={delay:s,...Yo(f||{},p)},j=S.get();if(j!==void 0&&!S.isAnimating&&!Array.isArray(v)&&v===j&&!A.velocity)continue;let L=!1;if(window.MotionHandoffAnimation){const C=Em(n);if(C){const U=window.MotionHandoffAnimation(C,p,Yt);U!==null&&(A.startTime=U,L=!0)}}cu(n,p),S.start(fu(p,S,v,n.shouldReduceMotion&&Mh.has(p)?{type:!1}:A,n,L));const H=S.animation;H&&y.push(H)}return d&&Promise.all(y).then(()=>{Yt.update(()=>{d&&bT(n,d)})}),y}function Am(n,a,s,r=0,u=1){const f=Array.from(n).sort((g,p)=>g.sortNodePosition(p)).indexOf(a),d=n.size,h=(d-1)*r;return typeof s=="function"?s(f,d):u===1?f*r:h-f*r}function du(n,a,s={}){const r=Wi(n,a,s.type==="exit"?n.presenceContext?.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(u=s.transitionOverride);const f=r?()=>Promise.all(Mm(n,r,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:g=0,staggerChildren:p,staggerDirection:S}=u;return jT(n,a,y,g,p,S,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[y,g]=h==="beforeChildren"?[f,d]:[d,f];return y().then(()=>g())}else return Promise.all([f(),d(s.delay)])}function jT(n,a,s=0,r=0,u=0,f=1,d){const h=[];for(const y of n.variantChildren)y.notify("AnimationStart",a),h.push(du(y,a,{...d,delay:s+(typeof r=="function"?0:r)+Am(n.variantChildren,y,r,u,f)}).then(()=>y.notify("AnimationComplete",a)));return Promise.all(h)}function zT(n,a,s={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const u=a.map(f=>du(n,f,s));r=Promise.all(u)}else if(typeof a=="string")r=du(n,a,s);else{const u=typeof a=="function"?Wi(n,a,s.custom):a;r=Promise.all(Mm(n,u,s))}return r.then(()=>{n.notify("AnimationComplete",a)})}function Cm(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let r=0;r<s;r++)if(a[r]!==n[r])return!1;return!0}const BT=Io.length;function wm(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?wm(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<BT;s++){const r=Io[s],u=n.props[r];(tl(u)||u===!1)&&(a[r]=u)}return a}const OT=[...Zo].reverse(),LT=Zo.length;function VT(n){return a=>Promise.all(a.map(({animation:s,options:r})=>zT(n,s,r)))}function NT(n){let a=VT(n),s=Dm(),r=!0;const u=y=>(g,p)=>{const S=Wi(n,p,y==="exit"?n.presenceContext?.custom:void 0);if(S){const{transition:v,transitionEnd:A,...j}=S;g={...g,...j,...A}}return g};function f(y){a=y(n)}function d(y){const{props:g}=n,p=wm(n.parent)||{},S=[],v=new Set;let A={},j=1/0;for(let H=0;H<LT;H++){const C=OT[H],U=s[C],V=g[C]!==void 0?g[C]:p[C],K=tl(V),Q=C===y?U.isActive:null;Q===!1&&(j=H);let J=V===p[C]&&V!==g[C]&&K;if(J&&r&&n.manuallyAnimateOnMount&&(J=!1),U.protectedKeys={...A},!U.isActive&&Q===null||!V&&!U.prevProp||vs(V)||typeof V=="boolean")continue;const Y=UT(U.prevProp,V);let k=Y||C===y&&U.isActive&&!J&&K||H>j&&K,st=!1;const bt=Array.isArray(V)?V:[V];let pt=bt.reduce(u(C),{});Q===!1&&(pt={});const{prevResolvedValues:dt={}}=U,Z={...dt,...pt},et=D=>{k=!0,v.has(D)&&(st=!0,v.delete(D)),U.needsAnimating[D]=!0;const G=n.getValue(D);G&&(G.liveStyle=!1)};for(const D in Z){const G=pt[D],$=dt[D];if(A.hasOwnProperty(D))continue;let nt=!1;uu(G)&&uu($)?nt=!Cm(G,$):nt=G!==$,nt?G!=null?et(D):v.add(D):G!==void 0&&v.has(D)?et(D):U.protectedKeys[D]=!0}U.prevProp=V,U.prevResolvedValues=pt,U.isActive&&(A={...A,...pt}),r&&n.blockInitialAnimation&&(k=!1);const lt=J&&Y;k&&(!lt||st)&&S.push(...bt.map(D=>{const G={type:C};if(typeof D=="string"&&r&&!lt&&n.manuallyAnimateOnMount&&n.parent){const{parent:$}=n,nt=Wi($,D);if($.enteringChildren&&nt){const{delayChildren:yt}=nt.transition||{};G.delay=Am($.enteringChildren,n,yt)}}return{animation:D,options:G}}))}if(v.size){const H={};if(typeof g.initial!="boolean"){const C=Wi(n,Array.isArray(g.initial)?g.initial[0]:g.initial);C&&C.transition&&(H.transition=C.transition)}v.forEach(C=>{const U=n.getBaseTarget(C),V=n.getValue(C);V&&(V.liveStyle=!0),H[C]=U??null}),S.push({animation:H})}let L=!!S.length;return r&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(L=!1),r=!1,L?a(S):Promise.resolve()}function h(y,g){if(s[y].isActive===g)return Promise.resolve();n.variantChildren?.forEach(S=>S.animationState?.setActive(y,g)),s[y].isActive=g;const p=d(y);for(const S in s)s[S].protectedKeys={};return p}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Dm()}}}function UT(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!Cm(a,n):!1}function Si(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dm(){return{animate:Si(!0),whileInView:Si(),whileHover:Si(),whileTap:Si(),whileDrag:Si(),whileFocus:Si(),exit:Si()}}class Yn{constructor(a){this.isMounted=!1,this.node=a}update(){}}class HT extends Yn{constructor(a){super(a),a.animationState||(a.animationState=NT(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();vs(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 _T=0;class kT extends Yn{constructor(){super(...arguments),this.id=_T++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===r)return;const u=this.node.animationState.setActive("exit",!a);s&&!a&&u.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 GT={animation:{Feature:HT},exit:{Feature:kT}};function nl(n,a,s,r={passive:!0}){return n.addEventListener(a,s,r),()=>n.removeEventListener(a,s)}function il(n){return{point:{x:n.pageX,y:n.pageY}}}const YT=n=>a=>Ko(a)&&n(a,il(a));function al(n,a,s,r){return nl(n,a,YT(s),r)}const Rm=1e-4,qT=1-Rm,PT=1+Rm,jm=.01,XT=0-jm,KT=0+jm;function ge(n){return n.max-n.min}function FT(n,a,s){return Math.abs(n-a)<=s}function zm(n,a,s,r=.5){n.origin=r,n.originPoint=Pt(a.min,a.max,n.origin),n.scale=ge(s)/ge(a),n.translate=Pt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=qT&&n.scale<=PT||isNaN(n.scale))&&(n.scale=1),(n.translate>=XT&&n.translate<=KT||isNaN(n.translate))&&(n.translate=0)}function ll(n,a,s,r){zm(n.x,a.x,s.x,r?r.originX:void 0),zm(n.y,a.y,s.y,r?r.originY:void 0)}function Bm(n,a,s){n.min=s.min+a.min,n.max=n.min+ge(a)}function QT(n,a,s){Bm(n.x,a.x,s.x),Bm(n.y,a.y,s.y)}function Om(n,a,s){n.min=a.min-s.min,n.max=n.min+ge(a)}function Ts(n,a,s){Om(n.x,a.x,s.x),Om(n.y,a.y,s.y)}function Ye(n){return[n("x"),n("y")]}const Lm=({current:n})=>n?n.ownerDocument.defaultView:null,Vm=(n,a)=>Math.abs(n-a);function ZT(n,a){const s=Vm(n.x,a.x),r=Vm(n.y,a.y);return Math.sqrt(s**2+r**2)}class Nm{constructor(a,s,{transformPagePoint:r,contextWindow:u=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 v=mu(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,j=ZT(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!j)return;const{point:L}=v,{timestamp:H}=oe;this.history.push({...L,timestamp:H});const{onStart:C,onMove:U}=this.handlers;A||(C&&C(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,v)},this.handlePointerMove=(v,A)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=hu(A,this.transformPagePoint),Yt.update(this.updatePoint,!0)},this.handlePointerUp=(v,A)=>{this.end();const{onEnd:j,onSessionEnd:L,resumeAnimation:H}=this.handlers;if(this.dragSnapToOrigin&&H&&H(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=mu(v.type==="pointercancel"?this.lastMoveEventInfo:hu(A,this.transformPagePoint),this.history);this.startEvent&&j&&j(v,C),L&&L(v,C)},!Ko(a))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const h=il(a),y=hu(h,this.transformPagePoint),{point:g}=y,{timestamp:p}=oe;this.history=[{...g,timestamp:p}];const{onSessionStart:S}=s;S&&S(a,mu(y,this.history)),this.removeListeners=Xa(al(this.contextWindow,"pointermove",this.handlePointerMove),al(this.contextWindow,"pointerup",this.handlePointerUp),al(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),_n(this.updatePoint)}}function hu(n,a){return a?{point:a(n.point)}:n}function Um(n,a){return{x:n.x-a.x,y:n.y-a.y}}function mu({point:n},a){return{point:n,delta:Um(n,Hm(a)),offset:Um(n,IT(a)),velocity:JT(a,.1)}}function IT(n){return n[0]}function Hm(n){return n[n.length-1]}function JT(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const u=Hm(n);for(;s>=0&&(r=n[s],!(u.timestamp-r.timestamp>on(a)));)s--;if(!r)return{x:0,y:0};const f=Ge(u.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-r.x)/f,y:(u.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function WT(n,{min:a,max:s},r){return a!==void 0&&n<a?n=r?Pt(a,n,r.min):Math.max(n,a):s!==void 0&&n>s&&(n=r?Pt(s,n,r.max):Math.min(n,s)),n}function _m(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function $T(n,{top:a,left:s,bottom:r,right:u}){return{x:_m(n.x,s,u),y:_m(n.y,a,r)}}function km(n,a){let s=a.min-n.min,r=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,r]=[r,s]),{min:s,max:r}}function tE(n,a){return{x:km(n.x,a.x),y:km(n.y,a.y)}}function eE(n,a){let s=.5;const r=ge(n),u=ge(a);return u>r?s=Ka(a.min,a.max-r,n.min):r>u&&(s=Ka(n.min,n.max-u,a.min)),gn(0,1,s)}function nE(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const pu=.35;function iE(n=pu){return n===!1?n=0:n===!0&&(n=pu),{x:Gm(n,"left","right"),y:Gm(n,"top","bottom")}}function Gm(n,a,s){return{min:Ym(n,a),max:Ym(n,s)}}function Ym(n,a){return typeof n=="number"?n:n[a]||0}const aE=new WeakMap;class lE{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=ae(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=S=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(il(S).point)},d=(S,v)=>{const{drag:A,dragPropagation:j,onDragStart:L}=this.getProps();if(A&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fx(A),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ye(C=>{let U=this.getAxisMotionValue(C).get()||0;if(un.test(U)){const{projection:V}=this.visualElement;if(V&&V.layout){const K=V.layout.layoutBox[C];K&&(U=ge(K)*(parseFloat(U)/100))}}this.originPoint[C]=U}),L&&Yt.postRender(()=>L(S,v)),cu(this.visualElement,"transform");const{animationState:H}=this.visualElement;H&&H.setActive("whileDrag",!0)},h=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v;const{dragPropagation:A,dragDirectionLock:j,onDirectionLock:L,onDrag:H}=this.getProps();if(!A&&!this.openDragLock)return;const{offset:C}=v;if(j&&this.currentDirection===null){this.currentDirection=sE(C),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",v.point,C),this.updateAxis("y",v.point,C),this.visualElement.render(),H&&H(S,v)},y=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v,this.stop(S,v),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>Ye(S=>this.getAnimationState(S)==="paused"&&this.getAxisMotionValue(S).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new Nm(a,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:y,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:Lm(this.visualElement)})}stop(a,s){const r=a||this.latestPointerEvent,u=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!r)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Yt.postRender(()=>h(r,u))}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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,r){const{drag:u}=this.getProps();if(!r||!Es(a,u,this.currentDirection))return;const f=this.getAxisMotionValue(a);let d=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(d=WT(d,this.constraints[a],this.elastic[a])),f.set(d)}resolveConstraints(){const{dragConstraints:a,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,u=this.constraints;a&&Qi(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=$T(r.layoutBox,a):this.constraints=!1,this.elastic=iE(s),u!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ye(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=nE(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!Qi(a))return!1;const r=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=rT(r,u.root,this.visualElement.getTransformPagePoint());let d=tE(u.layout.layoutBox,f);if(s){const h=s(aT(d));this.hasMutatedConstraints=!!h,h&&(d=rm(h))}return d}startAnimation(a){const{drag:s,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),y=this.constraints||{},g=Ye(p=>{if(!Es(p,s,this.currentDirection))return;let S=y&&y[p]||{};d&&(S={min:0,max:0});const v=u?200:1e6,A=u?40:1e7,j={type:"inertia",velocity:r?a[p]:0,bounceStiffness:v,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...f,...S};return this.startAxisValueAnimation(p,j)});return Promise.all(g).then(h)}startAxisValueAnimation(a,s){const r=this.getAxisMotionValue(a);return cu(this.visualElement,a),r.start(fu(a,r,0,s,this.visualElement,!1))}stopAnimation(){Ye(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Ye(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,r=this.visualElement.getProps(),u=r[s];return u||this.visualElement.getValue(a,(r.initial?r.initial[a]:void 0)||0)}snapToCursor(a){Ye(s=>{const{drag:r}=this.getProps();if(!Es(s,r,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[s];f.set(a[s]-Pt(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!Qi(s)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Ye(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const y=h.get();u[d]=eE({min:y,max:y},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ye(d=>{if(!Es(d,a,null))return;const h=this.getAxisMotionValue(d),{min:y,max:g}=this.constraints[d];h.set(Pt(y,g,u[d]))})}addListeners(){if(!this.visualElement.current)return;aE.set(this.visualElement,this);const a=this.visualElement.current,s=al(a,"pointerdown",y=>{const{drag:g,dragListener:p=!0}=this.getProps();g&&p&&this.start(y)}),r=()=>{const{dragConstraints:y}=this.getProps();Qi(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Yt.read(r);const d=nl(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:g})=>{this.isDragging&&g&&(Ye(p=>{const S=this.getAxisMotionValue(p);S&&(this.originPoint[p]+=y[p].translate,S.set(S.get()+y[p].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),h&&h()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=pu,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Es(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function sE(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class rE extends Yn{constructor(a){super(a),this.removeGroupControls=ke,this.removeListeners=ke,this.controls=new lE(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ke}unmount(){this.removeGroupControls(),this.removeListeners()}}const qm=n=>(a,s)=>{n&&Yt.postRender(()=>n(a,s))};class oE extends Yn{constructor(){super(...arguments),this.removePointerDownListener=ke}onPointerDown(a){this.session=new Nm(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lm(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:qm(a),onStart:qm(s),onMove:r,onEnd:(f,d)=>{delete this.session,u&&Yt.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=al(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 Ms={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let yu=!1;class uE extends T.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r,layoutId:u}=this.props,{projection:f}=a;f&&(s.group&&s.group.add(f),r&&r.register&&u&&r.register(f),yu&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),Ms.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:r,drag:u,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,yu=!0,u||a.layoutDependency!==s||s===void 0||a.isPresent!==f?d.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?d.promote():d.relegate()||Yt.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Xo.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:u}=a;yu=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function Pm(n){const[a,s]=Yh(),r=T.useContext(lo);return b.jsx(uE,{...n,layoutGroup:r,switchLayoutGroup:T.useContext(lm),isPresent:a,safeToRemove:s})}function cE(n,a,s){const r=ye(n)?n:Ki(n);return r.start(fu("",r,a,s)),r.animation}const fE=(n,a)=>n.depth-a.depth;class dE{constructor(){this.children=[],this.isDirty=!1}add(a){oo(this.children,a),this.isDirty=!0}remove(a){uo(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(fE),this.isDirty=!1,this.children.forEach(a)}}function hE(n,a){const s=Se.now(),r=({timestamp:u})=>{const f=u-s;f>=a&&(_n(r),n(f-a))};return Yt.setup(r,!0),()=>_n(r)}const Xm=["TopLeft","TopRight","BottomLeft","BottomRight"],mE=Xm.length,Km=n=>typeof n=="string"?parseFloat(n):n,Fm=n=>typeof n=="number"||ft.test(n);function pE(n,a,s,r,u,f){u?(n.opacity=Pt(0,s.opacity??1,yE(r)),n.opacityExit=Pt(a.opacity??1,0,gE(r))):f&&(n.opacity=Pt(a.opacity??1,s.opacity??1,r));for(let d=0;d<mE;d++){const h=`border${Xm[d]}Radius`;let y=Qm(a,h),g=Qm(s,h);if(y===void 0&&g===void 0)continue;y||(y=0),g||(g=0),y===0||g===0||Fm(y)===Fm(g)?(n[h]=Math.max(Pt(Km(y),Km(g),r),0),(un.test(g)||un.test(y))&&(n[h]+="%")):n[h]=g}(a.rotate||s.rotate)&&(n.rotate=Pt(a.rotate||0,s.rotate||0,r))}function Qm(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const yE=Zm(0,.5,Gd),gE=Zm(.5,.95,ke);function Zm(n,a,s){return r=>r<n?0:r>a?1:s(Ka(n,a,r))}function Im(n,a){n.min=a.min,n.max=a.max}function en(n,a){Im(n.x,a.x),Im(n.y,a.y)}function Jm(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function Wm(n,a,s,r,u){return n-=a,n=xs(n,1/s,r),u!==void 0&&(n=xs(n,1/u,r)),n}function vE(n,a=0,s=1,r=.5,u,f=n,d=n){if(un.test(a)&&(a=parseFloat(a),a=Pt(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=Pt(f.min,f.max,r);n===f&&(h-=a),n.min=Wm(n.min,a,s,h,u),n.max=Wm(n.max,a,s,h,u)}function $m(n,a,[s,r,u],f,d){vE(n,a[s],a[r],a[u],a.scale,f,d)}const bE=["x","scaleX","originX"],SE=["y","scaleY","originY"];function tp(n,a,s,r){$m(n.x,a,bE,s?s.x:void 0,r?r.x:void 0),$m(n.y,a,SE,s?s.y:void 0,r?r.y:void 0)}function ep(n){return n.translate===0&&n.scale===1}function np(n){return ep(n.x)&&ep(n.y)}function ip(n,a){return n.min===a.min&&n.max===a.max}function xE(n,a){return ip(n.x,a.x)&&ip(n.y,a.y)}function ap(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function lp(n,a){return ap(n.x,a.x)&&ap(n.y,a.y)}function sp(n){return ge(n.x)/ge(n.y)}function rp(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class TE{constructor(){this.members=[]}add(a){oo(this.members,a),a.scheduleRender()}remove(a){if(uo(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(u=>a===u);if(s===0)return!1;let r;for(let u=s;u>=0;u--){const f=this.members[u];if(f.isPresent!==!1){r=f;break}}return r?(this.promote(r),!0):!1}promote(a,s){const r=this.lead;if(a!==r&&(this.prevLead=r,this.lead=a,a.show(),r)){r.instance&&r.scheduleRender(),a.scheduleRender(),a.resumeFrom=r,s&&(a.resumeFrom.preserveOpacity=!0),r.snapshot&&(a.snapshot=r.snapshot,a.snapshot.latestValues=r.animationValues||r.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:u}=a.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:r}=a;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function EE(n,a,s){let r="";const u=n.x.translate/a.x,f=n.y.translate/a.y,d=s?.z||0;if((u||f||d)&&(r=`translate3d(${u}px, ${f}px, ${d}px) `),(a.x!==1||a.y!==1)&&(r+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:g,rotate:p,rotateX:S,rotateY:v,skewX:A,skewY:j}=s;g&&(r=`perspective(${g}px) ${r}`),p&&(r+=`rotate(${p}deg) `),S&&(r+=`rotateX(${S}deg) `),v&&(r+=`rotateY(${v}deg) `),A&&(r+=`skewX(${A}deg) `),j&&(r+=`skewY(${j}deg) `)}const h=n.x.scale*a.x,y=n.y.scale*a.y;return(h!==1||y!==1)&&(r+=`scale(${h}, ${y})`),r||"none"}const gu=["","X","Y","Z"],ME=1e3;let AE=0;function vu(n,a,s,r){const{latestValues:u}=a;u[n]&&(s[n]=u[n],a.setStaticValue(n,0),r&&(r[n]=0))}function op(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=Em(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Yt,!(u||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&op(r)}function up({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},h=a?.()){this.id=AE++,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(DE),this.nodes.forEach(BE),this.nodes.forEach(OE),this.nodes.forEach(RE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new dE)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new ho),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const y=this.eventHandlers.get(d);y&&y.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=kh(d)&&!gx(d),this.instance=d;const{layoutId:h,layout:y,visualElement:g}=this.options;if(g&&!g.current&&g.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||h)&&(this.isLayoutDirty=!0),n){let p,S=0;const v=()=>this.root.updateBlockedByResize=!1;Yt.read(()=>{S=window.innerWidth}),n(d,()=>{const A=window.innerWidth;A!==S&&(S=A,this.root.updateBlockedByResize=!0,p&&p(),p=hE(v,250),Ms.hasAnimatedSinceResize&&(Ms.hasAnimatedSinceResize=!1,this.nodes.forEach(dp)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||y)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeLayoutChanged:v,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||g.getDefaultTransition()||HE,{onLayoutAnimationStart:L,onLayoutAnimationComplete:H}=g.getProps(),C=!this.targetLayout||!lp(this.targetLayout,A),U=!S&&v;if(this.options.layoutRoot||this.resumeFrom||U||S&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const V={...Yo(j,"layout"),onPlay:L,onComplete:H};(g.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V),this.setAnimationOrigin(p,U)}else S||dp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}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(),_n(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(LE),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&&op(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const S=this.path[p];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:h,layout:y}=this.options;if(h===void 0&&!y)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zE),this.nodes.forEach(CE),this.nodes.forEach(wE)):this.nodes.forEach(fp),this.clearAllSnapshots();const h=Se.now();oe.delta=gn(0,1e3/60,h-oe.timestamp),oe.timestamp=h,oe.isProcessing=!0,yo.update.process(oe),yo.preRender.process(oe),yo.render.process(oe),oe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jE),this.sharedNodes.forEach(VE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ge(this.snapshot.measuredBox.x)&&!ge(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let y=0;y<this.path.length;y++)this.path[y].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:y,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!np(this.projectionDelta),y=this.getTransformTemplate(),g=y?y(this.latestValues,""):void 0,p=g!==this.prevTransformTemplateValue;d&&this.instance&&(h||bi(this.latestValues)||p)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let y=this.removeElementScroll(h);return d&&(y=this.removeTransform(y)),_E(y),{animationId:this.root.animationId,measuredBox:h,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return ae();const h=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(kE))){const{scroll:g}=this.root;g&&(Zi(h.x,g.offset.x),Zi(h.y,g.offset.y))}return h}removeElementScroll(d){const h=ae();if(en(h,d),this.scroll?.wasRoot)return h;for(let y=0;y<this.path.length;y++){const g=this.path[y],{scroll:p,options:S}=g;g!==this.root&&p&&S.layoutScroll&&(p.wasRoot&&en(h,d),Zi(h.x,p.offset.x),Zi(h.y,p.offset.y))}return h}applyTransform(d,h=!1){const y=ae();en(y,d);for(let g=0;g<this.path.length;g++){const p=this.path[g];!h&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Ii(y,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),bi(p.latestValues)&&Ii(y,p.latestValues)}return bi(this.latestValues)&&Ii(y,this.latestValues),y}removeTransform(d){const h=ae();en(h,d);for(let y=0;y<this.path.length;y++){const g=this.path[y];if(!g.instance||!bi(g.latestValues))continue;su(g.latestValues)&&g.updateSnapshot();const p=ae(),S=g.measurePageBox();en(p,S),tp(h,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,p)}return bi(this.latestValues)&&tp(h,this.latestValues),h}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!==oe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==h;if(!(d||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:S}=this.options;if(!this.layout||!(p||S))return;this.resolvedRelativeTargetAt=oe.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):en(this.target,this.layout.layoutBox),fm(this.target,this.targetDelta)):en(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||su(this.parent.latestValues)||om(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,h,y){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),Ts(this.relativeTargetOrigin,h,y),en(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),h=!!this.resumingFrom||this!==d;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===oe.timestamp&&(y=!1),y)return;const{layout:g,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||p))return;en(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,v=this.treeScale.y;sT(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=ae());const{target:A}=d;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jm(this.prevProjectionDelta.x,this.projectionDelta.x),Jm(this.prevProjectionDelta.y,this.projectionDelta.y)),ll(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==v||!rp(this.projectionDelta.x,this.prevProjectionDelta.x)||!rp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ji(),this.projectionDelta=Ji(),this.projectionDeltaWithTransform=Ji()}setAnimationOrigin(d,h=!1){const y=this.snapshot,g=y?y.latestValues:{},p={...this.latestValues},S=Ji();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const v=ae(),A=y?y.source:void 0,j=this.layout?this.layout.source:void 0,L=A!==j,H=this.getStack(),C=!H||H.members.length<=1,U=!!(L&&!C&&this.options.crossfade===!0&&!this.path.some(UE));this.animationProgress=0;let V;this.mixTargetDelta=K=>{const Q=K/1e3;hp(S.x,d.x,Q),hp(S.y,d.y,Q),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ts(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),NE(this.relativeTarget,this.relativeTargetOrigin,v,Q),V&&xE(this.relativeTarget,V)&&(this.isProjectionDirty=!1),V||(V=ae()),en(V,this.relativeTarget)),L&&(this.animationValues=p,pE(p,g,this.latestValues,Q,U,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(_n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Yt.update(()=>{Ms.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ki(0)),this.currentAnimation=cE(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},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(ME),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:y,layout:g,latestValues:p}=d;if(!(!h||!y||!g)){if(this!==d&&this.layout&&g&&vp(this.options.animationType,this.layout.layoutBox,g.layoutBox)){y=this.target||ae();const S=ge(this.layout.layoutBox.x);y.x.min=d.target.x.min,y.x.max=y.x.min+S;const v=ge(this.layout.layoutBox.y);y.y.min=d.target.y.min,y.y.max=y.y.min+v}en(h,y),Ii(h,p),ll(this.projectionDeltaWithTransform,this.layoutCorrected,h,p)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new TE),this.sharedNodes.get(d).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const 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:h,preserveFollowOpacity:y}={}){const g=this.getStack();g&&g.promote(this,y),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:y}=d;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(h=!0),!h)return;const g={};y.z&&vu("z",d,g,this.animationValues);for(let p=0;p<gu.length;p++)vu(`rotate${gu[p]}`,d,g,this.animationValues),vu(`skew${gu[p]}`,d,g,this.animationValues);d.render();for(const p in g)d.setStaticValue(p,g[p]),this.animationValues&&(this.animationValues[p]=g[p]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Ss(h?.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Ss(h?.pointerEvents)||""),this.hasProjected&&!bi(this.latestValues)&&(d.transform=y?y({},""):"none",this.hasProjected=!1);return}d.visibility="";const p=g.animationValues||g.latestValues;this.applyTransformsToTarget();let S=EE(this.projectionDeltaWithTransform,this.treeScale,p);y&&(S=y(p,S)),d.transform=S;const{x:v,y:A}=this.projectionDelta;d.transformOrigin=`${v.origin*100}% ${A.origin*100}% 0`,g.animationValues?d.opacity=g===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=g===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const j in Jo){if(p[j]===void 0)continue;const{correct:L,applyTo:H,isCSSVariable:C}=Jo[j],U=S==="none"?p[j]:L(p[j],g);if(H){const V=H.length;for(let K=0;K<V;K++)d[H[K]]=U}else C?this.options.visualElement.renderState.vars[j]=U:d[j]=U}this.options.layoutId&&(d.pointerEvents=g===this?Ss(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(cp),this.root.sharedNodes.clear()}}}function CE(n){n.updateLayout()}function wE(n){const a=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=n.layout,{animationType:u}=n.options,f=a.source!==n.layout.source;u==="size"?Ye(p=>{const S=f?a.measuredBox[p]:a.layoutBox[p],v=ge(S);S.min=s[p].min,S.max=S.min+v}):vp(u,a.layoutBox,s)&&Ye(p=>{const S=f?a.measuredBox[p]:a.layoutBox[p],v=ge(s[p]);S.max=S.min+v,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[p].max=n.relativeTarget[p].min+v)});const d=Ji();ll(d,s,a.layoutBox);const h=Ji();f?ll(h,n.applyTransform(r,!0),a.measuredBox):ll(h,s,a.layoutBox);const y=!np(d);let g=!1;if(!n.resumeFrom){const p=n.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:S,layout:v}=p;if(S&&v){const A=ae();Ts(A,a.layoutBox,S.layoutBox);const j=ae();Ts(j,s,v.layoutBox),lp(A,j)||(g=!0),p.options.layoutRoot&&(n.relativeTarget=j,n.relativeTargetOrigin=A,n.relativeParent=p)}}}n.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:h,layoutDelta:d,hasLayoutChanged:y,hasRelativeLayoutChanged:g})}else if(n.isLead()){const{onExitComplete:s}=n.options;s&&s()}n.options.transition=void 0}function DE(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function RE(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function jE(n){n.clearSnapshot()}function cp(n){n.clearMeasurements()}function fp(n){n.isLayoutDirty=!1}function zE(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function dp(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function BE(n){n.resolveTargetDelta()}function OE(n){n.calcProjection()}function LE(n){n.resetSkewAndRotation()}function VE(n){n.removeLeadSnapshot()}function hp(n,a,s){n.translate=Pt(a.translate,0,s),n.scale=Pt(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function mp(n,a,s,r){n.min=Pt(a.min,s.min,r),n.max=Pt(a.max,s.max,r)}function NE(n,a,s,r){mp(n.x,a.x,s.x,r),mp(n.y,a.y,s.y,r)}function UE(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const HE={duration:.45,ease:[.4,0,.1,1]},pp=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),yp=pp("applewebkit/")&&!pp("chrome/")?Math.round:ke;function gp(n){n.min=yp(n.min),n.max=yp(n.max)}function _E(n){gp(n.x),gp(n.y)}function vp(n,a,s){return n==="position"||n==="preserve-aspect"&&!FT(sp(a),sp(s),.2)}function kE(n){return n!==n.root&&n.scroll?.wasRoot}const GE=up({attachResizeListener:(n,a)=>nl(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bu={current:void 0},bp=up({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!bu.current){const n=new GE({});n.mount(window),n.setOptions({layoutScroll:!0}),bu.current=n}return bu.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),YE={pan:{Feature:oE},drag:{Feature:rE,ProjectionNode:bp,MeasureLayout:Pm}};function Sp(n,a,s){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=r[u];f&&Yt.postRender(()=>f(a,il(a)))}class qE extends Yn{mount(){const{current:a}=this.node;a&&(this.unmount=dx(a,(s,r)=>(Sp(this.node,r,"Start"),u=>Sp(this.node,u,"End"))))}unmount(){}}class PE extends Yn{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=Xa(nl(this.node.current,"focus",()=>this.onFocus()),nl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xp(n,a,s){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=r[u];f&&Yt.postRender(()=>f(a,il(a)))}class XE extends Yn{mount(){const{current:a}=this.node;a&&(this.unmount=yx(a,(s,r)=>(xp(this.node,r,"Start"),(u,{success:f})=>xp(this.node,u,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Su=new WeakMap,xu=new WeakMap,KE=n=>{const a=Su.get(n.target);a&&a(n)},FE=n=>{n.forEach(KE)};function QE({root:n,...a}){const s=n||document;xu.has(s)||xu.set(s,{});const r=xu.get(s),u=JSON.stringify(a);return r[u]||(r[u]=new IntersectionObserver(FE,{root:n,...a})),r[u]}function ZE(n,a,s){const r=QE(a);return Su.set(n,s),r.observe(n),()=>{Su.delete(n),r.unobserve(n)}}const IE={some:0,all:1};class JE extends Yn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:r,amount:u="some",once:f}=a,d={root:s?s.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:IE[u]},h=y=>{const{isIntersecting:g}=y;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:p,onViewportLeave:S}=this.node.getProps(),v=g?p:S;v&&v(y)};return ZE(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(WE(a,s))&&this.startObserver()}unmount(){}}function WE({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const $E={...GT,...{inView:{Feature:JE},tap:{Feature:XE},focus:{Feature:PE},hover:{Feature:qE}},...YE,...{layout:{ProjectionNode:bp,MeasureLayout:Pm}}},tM=iT($E,yT);function eM(n="(max-width: 768px)"){const[a,s]=T.useState({isMobile:!1,isPortrait:!1});return T.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=navigator?.userAgent??"",u=/iPhone|Android/i.test(r),f=window.matchMedia(n),d=window.matchMedia("(orientation: portrait)"),h=()=>s({isMobile:f.matches||u,isPortrait:d.matches});return h(),f.addEventListener("change",h),d.addEventListener("change",h),()=>{f.removeEventListener("change",h),d.removeEventListener("change",h)}},[n]),a}const Tp={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[{items:["MetaDesc"]}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn","PrevBtn","NextBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn","PrevBtn","NextBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Ep={vod:{order:["top","upper","center","lower","bottom","seekbar"],top:[{items:["MuteBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]},live:{order:["top","upper","center","lower","bottom","seekbar"],top:[{wrapper:"Blank",items:[]},{items:["MuteBtn","PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]}},Mp={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn","PrevBtn","NextBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn","PrevBtn","NextBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Tu=new Map,Eu=new Map,Mu=new Map,Au=new Map,sl=new Map;function nM(n,a){Tu.set(n,a)}function iM(n){Tu.delete(n)}function Xt(n){return Tu.get(n)}function aM(n,a){Eu.set(n,a)}function lM(n){Eu.delete(n)}function Ap(n){return Eu.get(n)}function sM(n,a){Mu.set(n,a)}function rM(n){Mu.delete(n)}function Cp(n){return Mu.get(n)}function oM(n,a){Au.set(n,a)}function uM(n){Au.delete(n)}function As(n){return Au.get(n)}function cM(n,a,s){const r=sl.get(n)??new Map,u=r.get(a)??new Set;u.add(s),r.set(a,u),sl.set(n,r)}function fM(n,a,s){const r=sl.get(n);if(!r)return;const u=r.get(a);u&&(u.delete(s),u.size===0&&r.delete(a),r.size===0&&sl.delete(n))}function wp(n,a){const s=sl.get(n);if(!s)return;new Set([...s.get(a.type)??[],...s.get("*")??[]]).forEach(u=>u(a))}const dM=768,rl={pc:{live:Tp.live,vod:Tp.vod},mobile:{live:Ep.live,vod:Ep.vod},fullscreen:{live:Mp.live,vod:Mp.vod}},hM={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 mM(n){const[a,s]=nd("isActive",!1),r=T.useRef(null),u=T.useRef(!1),f=T.useRef(!1),d=T.useRef(0),h=T.useRef(null),y=n.options?.controlActiveTime||3e3,[g]=Gt(),{isMobile:p,isPortrait:S}=eM(),v=ie(),{togglePlay:A,useTouch:j}=v,[L,H]=T.useState(!1),C=(()=>{const D=n.layout??rl,G=W=>!W||typeof W!="object"?!1:"top"in W||"upper"in W||"center"in W||"lower"in W||"bottom"in W||"order"in W,$=W=>!W||typeof W!="object"?!1:"live"in W||"vod"in W,nt=(W,ht)=>{const Ut=$(W)?W:W?{live:W,vod:W}:void 0,Rt=Ut?.live??ht?.live,ue=Ut?.vod??ht?.vod;if(!(!Rt&&!ue))return{live:Rt,vod:ue}},yt=(W,ht)=>{if(W)return(ht?W.live:W.vod)??W.vod??W.live};if(G(D))return D;const M=D,N={pc:nt(rl.pc),mobile:nt(rl.mobile),fullscreen:nt(rl.fullscreen)},I={pc:nt(M.pc,N.pc),mobile:nt(M.mobile,N.mobile),fullscreen:nt(M.fullscreen,N.fullscreen),breakpoint:M.breakpoint},tt=g.isFullscreen&&I.fullscreen?"fullscreen":null,ut=(tt?I[tt]:void 0)??(L?I.mobile:I.pc)??I.pc??I.mobile??I.fullscreen;return yt(ut,!!g.isLive)??hM})(),U=f.current||g.isEnded,V=T.useCallback(()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},[]),K=T.useCallback(()=>{V(),r.current=window.setTimeout(()=>{s(!1),u.current=!0,r.current=null},y)},[V,s,y]),Q=T.useCallback(()=>{u.current=!1,d.current=Date.now(),s(!0),K()},[s,K]),J=T.useCallback(()=>{V(),u.current=!0,s(!1)},[V,s]),Y=T.useMemo(()=>({...v,next:n.next,prev:n.prev}),[v,n.next,n.prev]);T.useEffect(()=>{const D=n.scopeId;if(D)return nM(D,Y),()=>iM(D)},[n.scopeId,Y]),T.useEffect(()=>{const D=n.scopeId;if(D)return aM(D,Q),()=>lM(D)},[n.scopeId,Q]),T.useEffect(()=>{const D=n.scopeId;if(D)return sM(D,J),()=>rM(D)},[n.scopeId,J]);const k=()=>{u.current=!1,d.current=Date.now(),a||s(!0),K()},st=()=>{u.current||k()};T.useEffect(()=>{if(typeof window>"u")return;const D=n.layout??rl;if((N=>!N||typeof N!="object"?!1:"top"in N||"upper"in N||"center"in N||"lower"in N||"bottom"in N||"order"in N)(D)){H(!1);return}const nt=D.breakpoint??dM,yt=window.matchMedia(`(max-width: ${nt}px)`),M=()=>H(yt.matches||p);return M(),typeof yt.addEventListener=="function"?(yt.addEventListener("change",M),()=>yt.removeEventListener("change",M)):(yt.addListener(M),()=>yt.removeListener(M))},[n.layout,p]);const bt=D=>[D.top,D.upper,D.center,D.lower,D.bottom].some($=>$?.some(nt=>(nt.items?.length?nt.items:["Blank"]).includes("SeekBar"))??!1),pt=(D,G)=>{if(typeof D!="string")return T.isValidElement(D)?T.cloneElement(D,{pos:G}):D;switch(D){case"PlayBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&b.jsx(Ad,{isMobile:p,isPortrait:S,pos:G,text:{play:n.t?.("common.play")??"재생",pause:n.t?.("common.pause")??"일시정지"},options:n.options})});case"VolumeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.volume&&b.jsx(mb,{isMobile:p,isPortrait:S,pos:G,text:{muteOn:n.t?.("common.muteOn")??"음소거",muteOff:n.t?.("common.muteOff")??"음소거 해제"}})});case"MuteBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.volume&&b.jsx(hb,{isMobile:p,isPortrait:S,pos:G,text:{muteOn:n.t?.("common.muteOn")??"음소거",muteOff:n.t?.("common.muteOff")??"음소거 해제"}})});case"CurrentTimeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(ab,{isMobile:p,isPortrait:S,pos:G})});case"DurationBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(lb,{isMobile:p,isPortrait:S,pos:G})});case"TimeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(sb,{isMobile:p,isPortrait:S,pos:G})});case"SubtitleBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.subtitle||g.hasSubtitle&&b.jsx(db,{isMobile:p,isPortrait:S,pos:G,text:{captionOn:n.t?.("common.captionOn")??"자막켜기",captionOff:n.t?.("common.captionOff")??"자막 끄기"}})});case"FullscreenBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.fullscreen&&b.jsx(fb,{isMobile:p,isPortrait:S,pos:G,options:n.options,text:{fullOn:n.t?.("common.fullOn")??"전체화면",fullOff:n.t?.("common.fullOff")??"전체화면 해제"}})});case"PipBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.pictureInPicture&&b.jsx(yb,{isMobile:p,isPortrait:S,pos:G,options:n.options,text:{miniPlayer:n.t?.("common.miniPlayer")??"미니플레이어"}})});case"PrevBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&b.jsx(eb,{isMobile:p,isPortrait:S,pos:G,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,prev:n.prev})});case"NextBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&b.jsx(tb,{isMobile:p,isPortrait:S,pos:G,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,next:n.next})});case"SkipBackBtn":return b.jsx("span",{style:{display:"contents"},onClickCapture:()=>{n.onAction?.("skipBack")},children:b.jsx(nb,{isMobile:p,isPortrait:S,pos:G,options:n.options})});case"SkipForwardBtn":return b.jsx("span",{style:{display:"contents"},onClickCapture:()=>{n.onAction?.("skipForward")},children:b.jsx(ib,{isMobile:p,isPortrait:S,pos:G,options:n.options})});case"MetaDesc":return b.jsx(b.Fragment,{children:!n.options?.descriptionNotVisible&&b.jsx(ob,{title:n.metaTitle??"",profileImage:n.profileImage??"",profileName:n.profileName??"",createdAt:n.createdAt??"",isMobile:p,isPortrait:S,pos:G})});case"BigPlayBtn":return U?b.jsx($1,{isMobile:p,isPortrait:S,next:n.next,prev:n.prev,pidx:n.pidx,playlistCnt:n.playlistCnt}):null;case"SeekBar":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.progressBar&&b.jsx(rd,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,pos:G,color:n.options?.progressBarColor,seekingPreview:n.options?.seekingPreview})});case"LevelSelectBtn":return b.jsx(rb,{options:n.options,text:{auto:n.t?.("common.auto")??"자동"}});case"SettingBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.setting&&b.jsx(pb,{isMobile:p,isPortrait:S,pos:G,text:{setting:n.t?.("common.setting")??"설정"}})});case"Blank":return b.jsx(Cd,{});default:return null}},dt=(D,G,$,nt)=>{const yt=D.key??`${G}-${nt??0}`,N=(D.items?.length?D.items:["Blank"]).map((ut,W)=>{const ht=pt(ut,$);return ht?b.jsx(T.Fragment,{children:ht},`${G}-${yt}-${ut}-${W}`):null}).filter(ut=>ut!==null);if(!N.length)return null;if(D.wrapper==="Blank")return b.jsx(Cd,{align:D?.align,style:D?.style,children:N},`${G}-${yt}`);if(D.wrapper==="Group")return b.jsx(Pa,{noPadding:!(N.length>1),cap:D.cap,style:D?.style,children:N},`${G}-${yt}`);const tt={display:"flex",alignItems:"center",justifyContent:D?.align?D?.align=="left"?"start":D?.align=="right"?"end":"center":"start",width:"100%",flex:1};return b.jsx("div",{style:{...tt,...D?.style},children:N},`${G}-${yt}`)},Z=(D,G)=>{if(!D?.length)return null;if(G!=="bottom")return D.map((nt,yt)=>dt(nt,G,void 0,yt));let $="left";return D.map((nt,yt)=>{const M=nt.items?.length?nt.items:["Blank"],N=nt.wrapper==="Blank"||M.includes("Blank"),I=dt(nt,G,$,yt);return N&&($="right"),I})},et=!bt(C),lt=C.order??["top","upper","center","seekbar","lower","bottom"],F=()=>et?b.jsx("div",{children:b.jsx(b.Fragment,{children:n.options?.controlBtn?.progressBar&&b.jsx(rd,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,color:n.options?.progressBarColor,seekingPreview:n.options?.seekingPreview})})}):null;return T.useEffect(()=>{p&&(f.current=!0)},[p]),T.useEffect(()=>{if(h.current===null){h.current=a;return}h.current!==a&&(h.current=a,n.onControlBarActiveChange?.(a))},[a,n.onControlBarActiveChange]),b.jsxs(b.Fragment,{children:[g.isLoading&&b.jsx(ao,{poster:n.poster,options:n.options}),g.isWaiting&&b.jsx(ao,{}),g.isSettingModal&&b.jsx(bb,{text:{setting:n.t?.("common.setting")??"세팅",auto:n.t?.("common.auto")??"자동",notUse:n.t?.("common.notUse")??"사용안함",quality:n.t?.("settings.quality")??"해상도",autoplay:n.t?.("settings.autoplay")??"자동재생",playbackRate:n.t?.("settings.playbackRate")??"재생 속도",captions:n.t?.("settings.captions")??"자막"},vtt:n.src?.vtt,options:n.options}),!g.isLoading&&b.jsx(b.Fragment,{children:g.initPlay?b.jsxs("div",{style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},onClick:()=>{j(),V(),K()},onMouseEnter:()=>{st()},onMouseMove:()=>{k()},onTouchStart:()=>{j(),V(),K()},onMouseLeave:()=>{V(),K(),u.current=!1},children:[p&&b.jsx(vb,{onSingleTap:()=>{s(!0),V(),K()}}),b.jsx(Cx,{children:(a||g.isEnded)&&b.jsx(tM.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",background:"linear-gradient(to bottom,rgba(0,0,0,0.24) 0%,rgba(0,0,0,0.24) 3%,rgba(0,0,0,0) 70%,rgba(0,0,0,0.3) 90%,rgba(0,0,0,0.7) 100%)"},children:lt.map(D=>D==="top"?b.jsx("div",{style:{display:"flex",alignItems:"center"},children:Z(C.top,"top")},"layout-top"):D==="upper"?b.jsx("div",{style:{display:"flex",alignItems:"center"},children:Z(C.upper,"upper")},"layout-upper"):D==="center"?b.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!p&&!S&&A(),f.current=!0},onMouseLeave:()=>{f.current=!1},children:Z(C.center,"center")},"layout-center"):D==="seekbar"?b.jsx("div",{children:b.jsx(T.Fragment,{children:F()})},"layout-seekbar"):D==="lower"?b.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:Z(C.lower,"lower")},"layout-lower"):D==="bottom"?b.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:Z(C.bottom,"bottom")},"layout-bottom"):null)})})]}):b.jsx(gb,{poster:n.poster,options:n.options})})]})}const pM=["stateChange","ready","play","pause","ended","fullscreen","fullscreenExit","loadingStart","loadingEnd","bufferingStart","bufferingEnd","seeking","seeked","waiting","volumechange","timeupdate","controlbarActive","controlbarDeactive","next","prev","skipForward","skipBack","playlistChange","error"],yM=n=>pM.includes(n);let Dp=0;function gM({onEvent:n,isInitialized:a,playlist:s,pidx:r,onStateSnapshot:u,vpe:f,scopeId:d}){const[h]=Gt(),y=T.useRef(null),g=T.useRef(null),p=T.useRef(!1),S=T.useCallback((v,A,j)=>{const L=h??{};f?.playerStateReport&&f.playerStateReport({type:v,state:L,prevState:j,data:A});const H={type:v,state:L,prevState:j,data:A};n&&n(H),d&&wp(d,H)},[n,h,f,d]);return T.useEffect(()=>{u&&u(h??{})},[h,u]),T.useEffect(()=>{const v=h??{},A=y.current;y.current=v,A&&A!==v&&(S("stateChange",void 0,A),A.isPlaying!==v.isPlaying&&typeof v.isPlaying=="boolean"&&S(v.isPlaying?"play":"pause",void 0,A),A.isFullscreen!==v.isFullscreen&&typeof v.isFullscreen=="boolean"&&S(v.isFullscreen?"fullscreen":"fullscreenExit",void 0,A),A.isLoading!==v.isLoading&&typeof v.isLoading=="boolean"&&S(v.isLoading?"loadingStart":"loadingEnd",void 0,A),A.isWaiting!==v.isWaiting&&typeof v.isWaiting=="boolean"&&S(v.isWaiting?"bufferingStart":"bufferingEnd",void 0,A))},[h,S]),T.useEffect(()=>{!a||p.current||(p.current=!0,S("ready",{playlist:s}))},[a,s.length,S]),T.useEffect(()=>{const v=g.current;if(g.current=r,v===null||v===r)return;const A={from:v,to:r,total:s.length,item:s[r]};S("playlistChange",A),S(r>v?"next":"prev",A)},[r,s,S]),null}function vM(n){const{accessKey:a,platform:s="pub",stage:r="prod",isDev:u=!1,hls:f,dashjs:d,options:h,layout:y,scopeId:g}=n,[p,S]=T.useState(null),[v,A]=T.useState([]),[j,L]=T.useState(!1),[H,C]=nd("playerOptions",h??{}),[U,V]=T.useState(""),[K,Q]=T.useState({errorCode:null,errorMessage:null,errorTitle:null}),[J,Y]=T.useState(!1),[k,st]=T.useState(!1),[bt,pt]=T.useState(0),[dt,Z]=T.useState(0),et=T.useRef(null),lt=T.useRef(null),F=T.useRef(null),D=T.useRef(null),G=typeof window<"u"&&window.location.host||"local";T.useEffect(()=>{if(!a)return;const at=new e1({accessKey:a,appId:G,platform:s,stage:r,isDev:u});S(at)},[a,G,s,r,u]);const $=T.useCallback((at,gt,Ht)=>{const Kt=D.current??{};p?.playerStateReport&&p.playerStateReport({type:at,state:Kt,prevState:Ht,data:gt});const qe={type:at,state:Kt,prevState:Ht,data:gt};n.onEvent&&n.onEvent(qe),g&&wp(g,qe)},[n.onEvent,p,g]),nt=T.useCallback((at,gt)=>{if(yM(at)){if(at==="ended"){if(v.length>1)dt<v.length-1?(st(!0),fn(5)):H.loop&&Z(0);else if(H.loop&&g){const Ht=Xt(g),Kt=Ht?.seekTo,qe=Ht?.play;Kt&&Kt(0),qe&&qe()}}$(at,gt)}},[$,dt,H.loop,v.length,g,st,k]),yt=T.useCallback((at,gt)=>{Y(!0),Q(at),$("error",{...gt,...at})},[$]);T.useEffect(()=>{if(!p||j||J)return;(async()=>{if(await p.initialize(),p.isInitialized()){const gt=p.getValidatedOptions(h);C(gt),A(gt?.playlist||[]),L(!0)}else{const gt=p.setErrorRun("E0001");yt({errorCode:gt?.errorCode,errorMessage:gt?.errorMessage?.desc,errorTitle:gt?.errorMessage?.title});return}})()},[p,j,h,C,yt,J]),T.useEffect(()=>{const at=globalThis;f&&(at.Hls=f),d&&(at.dashjs=d)},[f,d]),T.useEffect(()=>{const at=v?.[dt]?.file;if(!at){V("");return}const gt=at.toLowerCase();gt.endsWith(".m3u8")?V("hls"):gt.endsWith(".mpd")?V("dash"):gt.endsWith(".mp4")?V("mp4"):V("")},[v,dt]),T.useEffect(()=>{if(!p||!U)return;const at=globalThis,gt=f??at.Hls,Ht=d??at.dashjs;if(U==="hls"&&!gt){const Kt=p.setErrorRun("E0015");yt({errorCode:Kt?.errorCode,errorMessage:Kt?.errorMessage?.desc,errorTitle:Kt?.errorMessage?.title})}if(U==="dash"&&!Ht){const Kt=p.setErrorRun("E0016");yt({errorCode:Kt?.errorCode,errorMessage:Kt?.errorMessage?.desc,errorTitle:Kt?.errorMessage?.title})}},[U,p,f,d,yt]);const M=T.useCallback(at=>{if(!at||typeof at!="object"||!p)return;const gt=at;if(gt?.evt=="hlsError"&&gt?.data?.type=="networkError"){const Ht=p.setErrorRun("E0004");yt({errorCode:Ht?.errorCode,errorMessage:Ht?.errorMessage?.desc,errorTitle:Ht?.errorMessage?.title})}},[p,yt]),N=v?.[dt],I=v?.length>1?v[(dt+1)%v.length]:v?.[dt],tt=f??globalThis.Hls,ut=d??globalThis.dashjs,W=()=>{if(!N)return null;switch(U){case"hls":return b.jsx(x1,{src:N,hlsLib:tt,options:H,onError:M,emitEvent:nt});case"dash":return b.jsx(T1,{src:N,dashLib:ut,options:H,onError:M,emitEvent:nt});case"mp4":return b.jsx(E1,{src:N,options:H,onError:M,emitEvent:nt});default:return null}};Mb(H);const ht=T.useCallback(()=>{const at=lt.current;at&&(at.style.display="")},[]),Ut=T.useCallback(()=>{const at=lt.current;at&&(at.style.display="none")},[]);T.useEffect(()=>{if(g)return oM(g,{show:ht,hide:Ut}),()=>uM(g)},[g,ht,Ut]);const Rt=T.useCallback(at=>{D.current=at},[]);T.useEffect(()=>{v.length!==0&&dt>v.length-1&&Z(v.length-1)},[dt,v.length]);const ue=T.useCallback(()=>{et.current&&(clearInterval(et.current),et.current=null)},[]),cn=T.useCallback(()=>{Z(at=>(st(!1),v.length===0?at:Math.min(at+1,v.length-1)))},[v.length]);T.useEffect(()=>ue,[ue]);const fn=T.useCallback((at=1)=>{if(at>1){const gt=Math.max(1,Math.floor(at));pt(gt),ue(),et.current=setInterval(()=>{pt(Ht=>{const Kt=Math.max(0,Ht-1);return Kt===0&&(ue(),cn()),Kt})},1e3)}else pt(0),ue(),cn()},[cn,ue]),ta=T.useCallback(()=>{Z(at=>Math.max(0,at-1))},[v.length]),nn=T.useCallback(at=>{at==="skipForward"?$("skipForward"):at==="skipBack"&&$("skipBack")},[$]);return b.jsxs("div",{ref:F,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:[b.jsx(gM,{onEvent:n.onEvent,isInitialized:j,playlist:v,pidx:dt,onStateSnapshot:Rt,vpe:p,scopeId:g}),J?b.jsxs("div",{style:{width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",aspectRatio:H?.aspectRatio||"16/9",position:"relative",overflow:"hidden"},children:[b.jsx("div",{style:{background:`url(${N?.poster}) center / cover no-repeat`,filter:"blur(8px)",width:"100%",height:"100%",maxHeight:"100dvh",position:"absolute",zIndex:3}}),b.jsx("div",{style:{position:"absolute",zIndex:4,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"rgba(0,0,0,0.69)"},children:b.jsxs("div",{style:{textAlign:"center"},children:[b.jsx("div",{children:b.jsx("img",{src:"https://player.vpe.naverncp.com/images/error0.svg",style:{height:"8rem"}})}),b.jsx("div",{style:{padding:"0.5rem 0",fontSize:"1rem"},children:b.jsx("strong",{children:K?.errorMessage})}),K?.errorCode&&b.jsxs("div",{style:{fontSize:"0.9rem"},children:["(Error Code : ",K.errorCode,")"]})]})})]}):j?b.jsxs(b.Fragment,{children:[H.controls&&b.jsx("div",{ref:lt,children:b.jsx(mM,{src:N,hlsLib:tt,dashLib:ut,options:H,poster:N?.poster,layout:y,scopeId:g,next:fn,prev:ta,onAction:nn,onControlBarActiveChange:at=>{$(at?"controlbarActive":"controlbarDeactive")},pidx:dt,playlistCnt:v?.length||0,metaTitle:N?.description?.title,profileImage:N?.description?.profile_image,profileName:N?.description?.profile_name,createdAt:N?.description?.created_at,t:at=>p?.$t(at)??at})}),k&&b.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:30,backgroundColor:"rgba(0,0,0,0.69)"},children:b.jsxs("div",{children:[b.jsx("div",{style:{background:`url(${I?.poster}) center / cover no-repeat`,width:"11em",aspectRatio:H?.aspectRatio||"16/9",backgroundColor:"#000000",borderRadius:"5px",border:"2px solid rgba(255,255,255,0.5)"}}),b.jsx("div",{style:{textAlign:"center",fontSize:"0.8rem",letterSpacing:"-1",fontWeight:"bold",paddingTop:"1rem"},children:p.$t("alternative.nextPlay").replace("{timeTxt}",bt)})]})}),b.jsx("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:H?.aspectRatio||"16/9"},children:W()})]}):b.jsx(ao,{poster:N?.poster,options:H})]})}const Cu=T.forwardRef((n,a)=>{const s=T.useRef("");s.current||(Dp+=1,s.current=`vpe-${Dp}`);const r=n.scopeId??s.current;return T.useImperativeHandle(a,()=>({play:()=>{Xt(r)?.play?.()},pause:()=>{Xt(r)?.pause?.()},mute:()=>{const f=Xt(r)?.toggleMute;typeof f=="function"&&f(!0)},prev:()=>{const f=Xt(r)?.prev;typeof f=="function"&&f()},next:()=>{const f=Xt(r)?.next;typeof f=="function"&&f()},fullscreen:()=>{const f=Xt(r)?.toggleFullscreen;typeof f=="function"&&f()},fullscreenOn:()=>{const f=Xt(r)?.fullscreenOn;typeof f=="function"&&f()},fullScreenOff:()=>{const f=Xt(r)?.fullscreenOff;typeof f=="function"&&f()},pip:()=>{const f=Xt(r)?.togglePictureInPicture;typeof f=="function"&&f()},volume:(u=1)=>{const d=Xt(r)?.setVolume;typeof d=="function"&&d(u*100)},uiHidden:()=>{const u=As(r);u&&u.hide()},uiVisible:()=>{const u=As(r);u&&u.show()},currentTime:(u=0)=>{const d=Xt(r)?.seekTo;typeof d=="function"&&d(u)},controlBarActive:()=>{const u=Ap(r);u&&u()},controlBarDeactive:()=>{const u=Cp(r);u&&u()}}),[r]),b.jsx(i1,{scopeId:r,children:b.jsxs(s1,{scopeId:r,children:[b.jsx(Sb,{}),b.jsx(vM,{...n,scopeId:r})]})})});Cu.displayName="ncplayer";const Rp=globalThis;Rp.process||(Rp.process={env:{}});let jp,ol,bM=0;function SM(n){switch(n){case"player.vpe.naverncp.com":return{platform:"pub",stage:"prod"};case"player.beta-vpe.naverncp.com":return{platform:"pub",stage:"beta"};case"player.vpe.gov-ntruss.com":return{platform:"gov",stage:"prod"};case"player.beta-vpe.gov-ntruss.com":return{platform:"gov",stage:"beta"};default:return{platform:"pub",stage:"prod"}}}const xM=(()=>{if(typeof document>"u")return"";const n=[];document.currentScript instanceof HTMLScriptElement&&n.push(document.currentScript),n.push(...Array.from(document.getElementsByTagName("script")));for(const a of n)if(a.src)try{const s=new URL(a.src,window.location.href);if(!ol){const u=SM(s.hostname);u&&(ol=u)}const r=s.searchParams.get("access_key");if(r)return r}catch{continue}return""})();function TM(n){return n||xM}const EM=n=>!n||typeof n!="object"?!1:"options"in n||"layout"in n||"platform"in n||"stage"in n||"hls"in n||"dashjs"in n||"accessKey"in n;function MM(n){if(!n)return;const a=globalThis,s=typeof n=="object"&&n!==null&&("MediaPlayer"in n||"MediaPlayerFactory"in n),r=typeof n=="function"||typeof n=="object"&&n!==null&&("isSupported"in n||"Events"in n);if(s&&!r){a.dashjs=n;return}if(r&&!s){a.Hls=n;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function AM(n){return typeof n!="string"||n.startsWith("#")||n.startsWith(".")||n.startsWith("[")||n.includes(" ")||n.includes(">")||n.includes(":")?n:typeof document<"u"&&document.getElementById(n)?`#${n}`:n}const zp=T.forwardRef((n,a)=>b.jsx(Cu,{...n,ref:a}));zp.displayName="VpePlayer";function wu(n,a,s={}){const r=typeof a=="string"?a:a?.accessKey,u=typeof a=="string"?s:a??{},f=EM(u)?u:{options:u},d=TM(r);if(!d)throw new Error("accessKey를 찾을 수 없습니다.");const h=typeof n=="string"?document.querySelector(n):n;if(!h)throw new Error("지정한 타겟을 찾을 수 없습니다.");const y=document.createElement("div");h.appendChild(y);const g=kv.createRoot(y),p=f.scopeId??`vpe-${bM+=1}`,S={...f,scopeId:p,layout:f.layout??jp,platform:f.platform??ol?.platform,stage:f.stage??ol?.stage},v=(j={})=>{g.render(b.jsx(Cu,{...S,...j,accessKey:d}))};return v(),{destroy:()=>{g.unmount(),y.parentNode&&y.parentNode.removeChild(y)},container:y,render:v,scopeId:p}}class $i{destroy;container;render;scopeId;static use(a){return MM(a),$i}static layout(a){return jp=a,$i}static config(a){return ol=a,$i}constructor(a,s,r={}){const u=wu(AM(a),s,r);this.destroy=u.destroy,this.container=u.container,this.render=u.render,this.scopeId=u.scopeId}play(){const a=Xt(this.scopeId);if(a?.play){a.play();return}}pause(){const a=Xt(this.scopeId);if(a?.pause){a.pause();return}}mute(){const s=Xt(this.scopeId)?.toggleMute;if(typeof s=="function"){s(!0);return}}prev(){const s=Xt(this.scopeId)?.prev;if(typeof s=="function"){s();return}}next(){const s=Xt(this.scopeId)?.next;if(typeof s=="function"){s();return}}fullscreen(){const s=Xt(this.scopeId)?.toggleFullscreen;if(typeof s=="function"){s();return}}fullscreenOn(){const s=Xt(this.scopeId)?.fullscreenOn;if(typeof s=="function"){s();return}}fullScreenOff(){const s=Xt(this.scopeId)?.fullscreenOff;if(typeof s=="function"){s();return}}pip(){const s=Xt(this.scopeId)?.togglePictureInPicture;if(typeof s=="function"){s();return}}volume(a=1){const r=Xt(this.scopeId)?.setVolume;if(typeof r=="function"){r(a*100);return}}uiHidden(){const a=As(this.scopeId);a&&a.hide()}uiVisible(){const a=As(this.scopeId);a&&a.show()}currentTime(a=0){const r=Xt(this.scopeId)?.seekTo;if(typeof r=="function"){r(a);return}}controlBarActive(){const a=Ap(this.scopeId);a&&a()}controlBarDeactive(){const a=Cp(this.scopeId);a&&a()}on(a,s){if(!(!a||typeof s!="function"))return cM(this.scopeId,a,s),()=>fM(this.scopeId,a,s)}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:wu},window.ncplayer=$i),yn.Ncplayer=$i,yn.VpePlayer=zp,yn.setup=wu,yn.useDeviceState=sd,Object.defineProperty(yn,Symbol.toStringTag,{value:"Module"})}));
610
+ `),()=>{L.contains(B)&&L.removeChild(B)}},[a]),b.jsx(Fx,{isPresent:a,childRef:f,sizeRef:d,children:E.cloneElement(n,{ref:h})})}const Qx=({children:n,initial:a,isPresent:s,onExitComplete:r,custom:u,presenceAffectsLayout:f,mode:d,anchorX:p,root:h})=>{const y=mo(Zx),m=E.useId();let S=!0,v=E.useMemo(()=>(S=!1,{id:m,initial:a,isPresent:s,custom:u,onExitComplete:T=>{y.set(T,!0);for(const D of y.values())if(!D)return;r&&r()},register:T=>(y.set(T,!1),()=>y.delete(T))}),[s,y,r]);return f&&S&&(v={...v}),E.useMemo(()=>{y.forEach((T,D)=>y.set(D,!1))},[s]),E.useEffect(()=>{!s&&!y.size&&r&&r()},[s]),d==="popLayout"&&(n=b.jsx(Kx,{isPresent:s,anchorX:p,root:h,children:n})),b.jsx(hs.Provider,{value:v,children:n})};function Zx(){return new Map}function nm(n=!0){const a=E.useContext(hs);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:u}=a,f=E.useId();E.useEffect(()=>{if(n)return u(f)},[n]);const d=E.useCallback(()=>n&&r&&r(f),[f,r,n]);return!s&&r?[!1,d]:[!0]}const xs=n=>n.key||"";function im(n){const a=[];return E.Children.forEach(n,s=>{E.isValidElement(s)&&a.push(s)}),a}const Ix=({children:n,custom:a,initial:s=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:p="left",root:h})=>{const[y,m]=nm(d),S=E.useMemo(()=>im(n),[n]),v=d&&!y?[]:S.map(xs),T=E.useRef(!0),D=E.useRef(S),B=mo(()=>new Map),[L,M]=E.useState(S),[O,z]=E.useState(S);qd(()=>{T.current=!1,D.current=S;for(let J=0;J<O.length;J++){const k=xs(O[J]);v.includes(k)?B.delete(k):B.get(k)!==!0&&B.set(k,!1)}},[O,v.length,v.join("-")]);const q=[];if(S!==L){let J=[...S];for(let k=0;k<O.length;k++){const N=O[k],I=xs(N);v.includes(I)||(J.splice(k,0,N),q.push(N))}return f==="wait"&&q.length&&(J=q),z(im(J)),M(S),null}const{forceRender:Z}=E.useContext(ho);return b.jsx(b.Fragment,{children:O.map(J=>{const k=xs(J),N=d&&!y?!1:S===O||v.includes(k),I=()=>{if(B.has(k))B.set(k,!0);else return;let nt=!0;B.forEach(st=>{st||(nt=!1)}),nt&&(Z?.(),z(D.current),d&&m?.(),r&&r())};return b.jsx(Qx,{isPresent:N,initial:!T.current||s?void 0:!1,custom:a,presenceAffectsLayout:u,mode:f,root:h,onExitComplete:N?void 0:I,anchorX:p,children:J},k)})})},am=E.createContext({strict:!1}),lm={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"]},$i={};for(const n in lm)$i[n]={isEnabled:a=>lm[n].some(s=>!!a[s])};function Jx(n){for(const a in n)$i[a]={...$i[a],...n[a]}}const Wx=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 Es(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Wx.has(n)}let sm=n=>!Es(n);function $x(n){typeof n=="function"&&(sm=a=>a.startsWith("on")?!Es(a):n(a))}try{$x(require("@emotion/is-prop-valid").default)}catch{}function tE(n,a,s){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||(sm(u)||s===!0&&Es(u)||!a&&!Es(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const Ts=E.createContext({});function Ms(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function ll(n){return typeof n=="string"||Array.isArray(n)}const nu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iu=["initial",...nu];function As(n){return Ms(n.animate)||iu.some(a=>ll(n[a]))}function rm(n){return!!(As(n)||n.variants)}function eE(n,a){if(As(n)){const{initial:s,animate:r}=n;return{initial:s===!1||ll(s)?s:void 0,animate:ll(r)?r:void 0}}return n.inherit!==!1?a:{}}function nE(n){const{initial:a,animate:s}=eE(n,E.useContext(Ts));return E.useMemo(()=>({initial:a,animate:s}),[om(a),om(s)])}function om(n){return Array.isArray(n)?n.join(" "):n}function um(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const sl={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(mt.test(n))n=parseFloat(n);else return n;const s=um(n,a.target.x),r=um(n,a.target.y);return`${s}% ${r}%`}},iE={correct:(n,{treeScale:a,projectionDelta:s})=>{const r=n,u=Kn.parse(n);if(u.length>5)return r;const f=Kn.createTransformer(n),d=typeof u[0]!="number"?1:0,p=s.x.scale*a.x,h=s.y.scale*a.y;u[0+d]/=p,u[1+d]/=h;const y=Pt(p,h,.5);return typeof u[2+d]=="number"&&(u[2+d]/=y),typeof u[3+d]=="number"&&(u[3+d]/=y),f(u)}},au={borderRadius:{...sl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sl,borderTopRightRadius:sl,borderBottomLeftRadius:sl,borderBottomRightRadius:sl,boxShadow:iE};function cm(n,{layout:a,layoutId:s}){return Ji.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!au[n]||n==="opacity")}const aE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lE=Ii.length;function sE(n,a,s){let r="",u=!0;for(let f=0;f<lE;f++){const d=Ii[f],p=n[d];if(p===void 0)continue;let h=!0;if(typeof p=="number"?h=p===(d.startsWith("scale")?1:0):h=parseFloat(p)===0,!h||s){const y=Xh(p,Jo[d]);if(!h){u=!1;const m=aE[d]||d;r+=`${m}(${y}) `}s&&(a[d]=y)}}return r=r.trim(),s?r=s(a,u?"":r):u&&(r="none"),r}function lu(n,a,s){const{style:r,vars:u,transformOrigin:f}=n;let d=!1,p=!1;for(const h in a){const y=a[h];if(Ji.has(h)){d=!0;continue}else if(oh(h)){u[h]=y;continue}else{const m=Xh(y,Jo[h]);h.startsWith("origin")?(p=!0,f[h]=m):r[h]=m}}if(a.transform||(d||s?r.transform=sE(a,n.transform,s):r.transform&&(r.transform="none")),p){const{originX:h="50%",originY:y="50%",originZ:m=0}=f;r.transformOrigin=`${h} ${y} ${m}`}}const su=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fm(n,a,s){for(const r in a)!ge(a[r])&&!cm(r,s)&&(n[r]=a[r])}function rE({transformTemplate:n},a){return E.useMemo(()=>{const s=su();return lu(s,a,n),Object.assign({},s.vars,s.style)},[a])}function oE(n,a){const s=n.style||{},r={};return fm(r,s,n),Object.assign(r,rE(n,a)),r}function uE(n,a){const s={},r=oE(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=r,s}const cE={offset:"stroke-dashoffset",array:"stroke-dasharray"},fE={offset:"strokeDashoffset",array:"strokeDasharray"};function dE(n,a,s=1,r=0,u=!0){n.pathLength=1;const f=u?cE:fE;n[f.offset]=mt.transform(-r);const d=mt.transform(a),p=mt.transform(s);n[f.array]=`${d} ${p}`}function dm(n,{attrX:a,attrY:s,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...p},h,y,m){if(lu(n,p,y),h){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:S,style:v}=n;S.transform&&(v.transform=S.transform,delete S.transform),(v.transform||S.transformOrigin)&&(v.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),v.transform&&(v.transformBox=m?.transformBox??"fill-box",delete S.transformBox),a!==void 0&&(S.x=a),s!==void 0&&(S.y=s),r!==void 0&&(S.scale=r),u!==void 0&&dE(S,u,f,d,!1)}const hm=()=>({...su(),attrs:{}}),mm=n=>typeof n=="string"&&n.toLowerCase()==="svg";function hE(n,a,s,r){const u=E.useMemo(()=>{const f=hm();return dm(f,a,mm(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[a]);if(n.style){const f={};fm(f,n.style,n),u.style={...f,...u.style}}return u}const mE=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ru(n){return typeof n!="string"||n.includes("-")?!1:!!(mE.indexOf(n)>-1||/[A-Z]/u.test(n))}function pE(n,a,s,{latestValues:r},u,f=!1){const p=(ru(n)?hE:uE)(a,r,u,n),h=tE(a,typeof n=="string",f),y=n!==E.Fragment?{...h,...p,ref:s}:{},{children:m}=a,S=E.useMemo(()=>ge(m)?m.get():m,[m]);return E.createElement(n,{...y,children:S})}function pm(n){const a=[{},{}];return n?.values.forEach((s,r)=>{a[0][r]=s.get(),a[1][r]=s.getVelocity()}),a}function ou(n,a,s,r){if(typeof a=="function"){const[u,f]=pm(r);a=a(s!==void 0?s:n.custom,u,f)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[u,f]=pm(r);a=a(s!==void 0?s:n.custom,u,f)}return a}function Cs(n){return ge(n)?n.get():n}function yE({scrapeMotionValuesFromProps:n,createRenderState:a},s,r,u){return{latestValues:gE(s,r,u,n),renderState:a()}}function gE(n,a,s,r){const u={},f=r(n,{});for(const v in f)u[v]=Cs(f[v]);let{initial:d,animate:p}=n;const h=As(n),y=rm(n);a&&y&&!h&&n.inherit!==!1&&(d===void 0&&(d=a.initial),p===void 0&&(p=a.animate));let m=s?s.initial===!1:!1;m=m||d===!1;const S=m?p:d;if(S&&typeof S!="boolean"&&!Ms(S)){const v=Array.isArray(S)?S:[S];for(let T=0;T<v.length;T++){const D=ou(n,v[T]);if(D){const{transitionEnd:B,transition:L,...M}=D;for(const O in M){let z=M[O];if(Array.isArray(z)){const q=m?z.length-1:0;z=z[q]}z!==null&&(u[O]=z)}for(const O in B)u[O]=B[O]}}}return u}const ym=n=>(a,s)=>{const r=E.useContext(Ts),u=E.useContext(hs),f=()=>yE(n,a,r,u);return s?f():mo(f)};function uu(n,a,s){const{style:r}=n,u={};for(const f in r)(ge(r[f])||a.style&&ge(a.style[f])||cm(f,n)||s?.getValue(f)?.liveStyle!==void 0)&&(u[f]=r[f]);return u}const vE=ym({scrapeMotionValuesFromProps:uu,createRenderState:su});function gm(n,a,s){const r=uu(n,a,s);for(const u in n)if(ge(n[u])||ge(a[u])){const f=Ii.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=n[u]}return r}const bE=ym({scrapeMotionValuesFromProps:gm,createRenderState:hm}),SE=Symbol.for("motionComponentSymbol");function ta(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function xE(n,a,s){return E.useCallback(r=>{r&&n.onMount&&n.onMount(r),a&&(r?a.mount(r):a.unmount()),s&&(typeof s=="function"?s(r):ta(s)&&(s.current=r))},[a])}const cu=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vm="data-"+cu("framerAppearId"),bm=E.createContext({});function EE(n,a,s,r,u){const{visualElement:f}=E.useContext(Ts),d=E.useContext(am),p=E.useContext(hs),h=E.useContext(eu).reducedMotion,y=E.useRef(null);r=r||d.renderer,!y.current&&r&&(y.current=r(n,{visualState:a,parent:f,props:s,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:h}));const m=y.current,S=E.useContext(bm);m&&!m.projection&&u&&(m.type==="html"||m.type==="svg")&&TE(y.current,s,u,S);const v=E.useRef(!1);E.useInsertionEffect(()=>{m&&v.current&&m.update(s,p)});const T=s[vm],D=E.useRef(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return qd(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),D.current&&m.animationState&&m.animationState.animateChanges())}),E.useEffect(()=>{m&&(!D.current&&m.animationState&&m.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),D.current=!1),m.enteringChildren=void 0)}),m}function TE(n,a,s,r){const{layoutId:u,layout:f,drag:d,dragConstraints:p,layoutScroll:h,layoutRoot:y,layoutCrossfade:m}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:Sm(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||p&&ta(p),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:h,layoutRoot:y})}function Sm(n){if(n)return n.options.allowProjection!==!1?n.projection:Sm(n.parent)}function fu(n,{forwardMotionProps:a=!1}={},s,r){s&&Jx(s);const u=ru(n)?bE:vE;function f(p,h){let y;const m={...E.useContext(eu),...p,layoutId:ME(p)},{isStatic:S}=m,v=nE(p),T=u(p,S);if(!S&&po){AE();const D=CE(m);y=D.MeasureLayout,v.visualElement=EE(n,T,m,r,D.ProjectionNode)}return b.jsxs(Ts.Provider,{value:v,children:[y&&v.visualElement?b.jsx(y,{visualElement:v.visualElement,...m}):null,pE(n,p,xE(T,v.visualElement,h),T,S,a)]})}f.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const d=E.forwardRef(f);return d[SE]=n,d}function ME({layoutId:n}){const a=E.useContext(ho).id;return a&&n!==void 0?a+"-"+n:n}function AE(n,a){E.useContext(am).strict}function CE(n){const{drag:a,layout:s}=$i;if(!a&&!s)return{};const r={...a,...s};return{MeasureLayout:a?.isEnabled(n)||s?.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function wE(n,a){if(typeof Proxy>"u")return fu;const s=new Map,r=(f,d)=>fu(f,d,n,a),u=(f,d)=>r(f,d);return new Proxy(u,{get:(f,d)=>d==="create"?r:(s.has(d)||s.set(d,fu(d,void 0,n,a)),s.get(d))})}function xm({top:n,left:a,right:s,bottom:r}){return{x:{min:a,max:s},y:{min:n,max:r}}}function RE({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function DE(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),r=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function du(n){return n===void 0||n===1}function hu({scale:n,scaleX:a,scaleY:s}){return!du(n)||!du(a)||!du(s)}function Ci(n){return hu(n)||Em(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Em(n){return Tm(n.x)||Tm(n.y)}function Tm(n){return n&&n!=="0%"}function ws(n,a,s){const r=n-s,u=a*r;return s+u}function Mm(n,a,s,r,u){return u!==void 0&&(n=ws(n,u,r)),ws(n,s,r)+a}function mu(n,a=0,s=1,r,u){n.min=Mm(n.min,a,s,r,u),n.max=Mm(n.max,a,s,r,u)}function Am(n,{x:a,y:s}){mu(n.x,a.translate,a.scale,a.originPoint),mu(n.y,s.translate,s.scale,s.originPoint)}const Cm=.999999999999,wm=1.0000000000001;function jE(n,a,s,r=!1){const u=s.length;if(!u)return;a.x=a.y=1;let f,d;for(let p=0;p<u;p++){f=s[p],d=f.projectionDelta;const{visualElement:h}=f.options;h&&h.props.style&&h.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&na(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,Am(n,d)),r&&Ci(f.latestValues)&&na(n,f.latestValues))}a.x<wm&&a.x>Cm&&(a.x=1),a.y<wm&&a.y>Cm&&(a.y=1)}function ea(n,a){n.min=n.min+a,n.max=n.max+a}function Rm(n,a,s,r,u=.5){const f=Pt(n.min,n.max,u);mu(n,a,s,f,r)}function na(n,a){Rm(n.x,a.x,a.scaleX,a.scale,a.originX),Rm(n.y,a.y,a.scaleY,a.scale,a.originY)}function Dm(n,a){return xm(DE(n.getBoundingClientRect(),a))}function zE(n,a,s){const r=Dm(n,s),{scroll:u}=a;return u&&(ea(r.x,u.offset.x),ea(r.y,u.offset.y)),r}const jm=()=>({translate:0,scale:1,origin:0,originPoint:0}),ia=()=>({x:jm(),y:jm()}),zm=()=>({min:0,max:0}),ie=()=>({x:zm(),y:zm()}),pu={current:null},Bm={current:!1};function BE(){if(Bm.current=!0,!!po)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>pu.current=n.matches;n.addEventListener("change",a),a()}else pu.current=!1}const LE=new WeakMap;function OE(n,a,s){for(const r in a){const u=a[r],f=s[r];if(ge(u))n.addValue(r,u);else if(ge(f))n.addValue(r,Wi(u,{owner:n}));else if(f!==u)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(r);n.addValue(r,Wi(d!==void 0?d:u,{owner:n}))}}for(const r in s)a[r]===void 0&&n.removeValue(r);return a}const Lm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VE{scrapeMotionValuesFromProps(a,s,r){return{}}constructor({parent:a,props:s,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:f,visualState:d},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ko,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 v=xe.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,kt.render(this.render,!1,!0))};const{latestValues:h,renderState:y}=d;this.latestValues=h,this.baseTarget={...h},this.initialValues=s.initial?{...h}:{},this.renderState=y,this.parent=a,this.props=s,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=u,this.options=p,this.blockInitialAnimation=!!f,this.isControllingVariants=As(s),this.isVariantNode=rm(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:m,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const v in S){const T=S[v];h[v]!==void 0&&ge(T)&&T.set(h[v])}}mount(a){this.current=a,LE.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,r)=>this.bindToMotionValue(r,s)),Bm.current||BE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pu.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Xn(this.notifyUpdate),Xn(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 r=Ji.has(a);r&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&kt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{u(),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 $i){const s=$i[a];if(!s)continue;const{isEnabled:r,Feature:u}=s;if(!this.features[a]&&u&&r(this.props)&&(this.features[a]=new u(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):ie()}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 r=0;r<Lm.length;r++){const u=Lm[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=a[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=OE(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 r=this.values.get(a);s!==r&&(r&&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 r=this.values.get(a);return r===void 0&&s!==void 0&&(r=Wi(s===null?void 0:s,{owner:this}),this.addValue(a,r)),r}readValue(a,s){let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(Xd(r)||Kd(r))?r=parseFloat(r):!Px(r)&&Kn.test(s)&&(r=qh(a,s)),this.setBaseTarget(a,ge(r)?r.get():r)),ge(r)?r.get():r}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const f=ou(this.props,s,this.presenceContext?.custom);f&&(r=f[a])}if(s&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,a);return u!==void 0&&!ge(u)?u:this.initialValues[a]!==void 0&&r===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new So),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){Wo.render(this.render)}}class Om extends VE{constructor(){super(...arguments),this.KeyframeResolver=zx}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:r}){delete s[a],delete r[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ge(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function Vm(n,{style:a,vars:s},r,u){const f=n.style;let d;for(d in a)f[d]=a[d];u?.applyProjectionStyles(f,r);for(d in s)f.setProperty(d,s[d])}function NE(n){return window.getComputedStyle(n)}class UE extends Om{constructor(){super(...arguments),this.type="html",this.renderInstance=Vm}readValueFromInstance(a,s){if(Ji.has(s))return this.projection?.isProjecting?Yo(s):JS(a,s);{const r=NE(a),u=(oh(s)?r.getPropertyValue(s):r[s])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(a,{transformPagePoint:s}){return Dm(a,s)}build(a,s,r){lu(a,s,r.transformTemplate)}scrapeMotionValuesFromProps(a,s,r){return uu(a,s,r)}}const Nm=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 _E(n,a,s,r){Vm(n,a,void 0,r);for(const u in a.attrs)n.setAttribute(Nm.has(u)?u:cu(u),a.attrs[u])}class HE extends Om{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Ji.has(s)){const r=Ph(s);return r&&r.default||0}return s=Nm.has(s)?s:cu(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,r){return gm(a,s,r)}build(a,s,r){dm(a,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,s,r,u){_E(a,s,r,u)}mount(a){this.isSVGTag=mm(a.tagName),super.mount(a)}}const kE=(n,a)=>ru(n)?new HE(a):new UE(a,{allowProjection:n!==E.Fragment});function aa(n,a,s){const r=n.getProps();return ou(r,a,s!==void 0?s:r.custom,n)}const yu=n=>Array.isArray(n);function GE(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Wi(s))}function YE(n){return yu(n)?n[n.length-1]||0:n}function PE(n,a){const s=aa(n,a);let{transitionEnd:r={},transition:u={},...f}=s||{};f={...f,...r};for(const d in f){const p=YE(f[d]);GE(n,d,p)}}function qE(n){return!!(ge(n)&&n.add)}function gu(n,a){const s=n.getValue("willChange");if(qE(s))return s.add(a);if(!s&&xn.WillChange){const r=new xn.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function Um(n){return n.props[vm]}const XE=n=>n!==null;function FE(n,{repeat:a,repeatType:s="loop"},r){const u=n.filter(XE),f=a&&s!=="loop"&&a%2===1?0:u.length-1;return u[f]}const KE={type:"spring",stiffness:500,damping:25,restSpeed:10},QE=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),ZE={type:"keyframes",duration:.8},IE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},JE=(n,{keyframes:a})=>a.length>2?ZE:Ji.has(n)?n.startsWith("scale")?QE(a[1]):KE:IE;function WE({when:n,delay:a,delayChildren:s,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:p,from:h,elapsed:y,...m}){return!!Object.keys(m).length}const vu=(n,a,s,r={},u,f)=>d=>{const p=Zo(r,n)||{},h=p.delay||r.delay||0;let{elapsed:y=0}=r;y=y-dn(h);const m={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...p,delay:-y,onUpdate:v=>{a.set(v),p.onUpdate&&p.onUpdate(v)},onComplete:()=>{d(),p.onComplete&&p.onComplete()},name:n,motionValue:a,element:f?void 0:u};WE(p)||Object.assign(m,JE(n,m)),m.duration&&(m.duration=dn(m.duration)),m.repeatDelay&&(m.repeatDelay=dn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let S=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Qo(m),m.delay===0&&(S=!0)),(xn.instantAnimations||xn.skipAnimations)&&(S=!0,Qo(m),m.delay=0),m.allowFlatten=!p.type&&!p.ease,S&&!f&&a.get()!==void 0){const v=FE(m.keyframes,p);if(v!==void 0){kt.update(()=>{m.onUpdate(v),m.onComplete()});return}}return p.isSync?new Ho(m):new Sx(m)};function $E({protectedKeys:n,needsAnimating:a},s){const r=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,r}function _m(n,a,{delay:s=0,transitionOverride:r,type:u}={}){let{transition:f=n.getDefaultTransition(),transitionEnd:d,...p}=a;r&&(f=r);const h=[],y=u&&n.animationState&&n.animationState.getState()[u];for(const m in p){const S=n.getValue(m,n.latestValues[m]??null),v=p[m];if(v===void 0||y&&$E(y,m))continue;const T={delay:s,...Zo(f||{},m)},D=S.get();if(D!==void 0&&!S.isAnimating&&!Array.isArray(v)&&v===D&&!T.velocity)continue;let B=!1;if(window.MotionHandoffAnimation){const M=Um(n);if(M){const O=window.MotionHandoffAnimation(M,m,kt);O!==null&&(T.startTime=O,B=!0)}}gu(n,m),S.start(vu(m,S,v,n.shouldReduceMotion&&_h.has(m)?{type:!1}:T,n,B));const L=S.animation;L&&h.push(L)}return d&&Promise.all(h).then(()=>{kt.update(()=>{d&&PE(n,d)})}),h}function Hm(n,a,s,r=0,u=1){const f=Array.from(n).sort((y,m)=>y.sortNodePosition(m)).indexOf(a),d=n.size,p=(d-1)*r;return typeof s=="function"?s(f,d):u===1?f*r:p-f*r}function bu(n,a,s={}){const r=aa(n,a,s.type==="exit"?n.presenceContext?.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(u=s.transitionOverride);const f=r?()=>Promise.all(_m(n,r,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(h=0)=>{const{delayChildren:y=0,staggerChildren:m,staggerDirection:S}=u;return tT(n,a,h,y,m,S,s)}:()=>Promise.resolve(),{when:p}=u;if(p){const[h,y]=p==="beforeChildren"?[f,d]:[d,f];return h().then(()=>y())}else return Promise.all([f(),d(s.delay)])}function tT(n,a,s=0,r=0,u=0,f=1,d){const p=[];for(const h of n.variantChildren)h.notify("AnimationStart",a),p.push(bu(h,a,{...d,delay:s+(typeof r=="function"?0:r)+Hm(n.variantChildren,h,r,u,f)}).then(()=>h.notify("AnimationComplete",a)));return Promise.all(p)}function eT(n,a,s={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const u=a.map(f=>bu(n,f,s));r=Promise.all(u)}else if(typeof a=="string")r=bu(n,a,s);else{const u=typeof a=="function"?aa(n,a,s.custom):a;r=Promise.all(_m(n,u,s))}return r.then(()=>{n.notify("AnimationComplete",a)})}function km(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let r=0;r<s;r++)if(a[r]!==n[r])return!1;return!0}const nT=iu.length;function Gm(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?Gm(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<nT;s++){const r=iu[s],u=n.props[r];(ll(u)||u===!1)&&(a[r]=u)}return a}const iT=[...nu].reverse(),aT=nu.length;function lT(n){return a=>Promise.all(a.map(({animation:s,options:r})=>eT(n,s,r)))}function sT(n){let a=lT(n),s=Ym(),r=!0;const u=h=>(y,m)=>{const S=aa(n,m,h==="exit"?n.presenceContext?.custom:void 0);if(S){const{transition:v,transitionEnd:T,...D}=S;y={...y,...D,...T}}return y};function f(h){a=h(n)}function d(h){const{props:y}=n,m=Gm(n.parent)||{},S=[],v=new Set;let T={},D=1/0;for(let L=0;L<aT;L++){const M=iT[L],O=s[M],z=y[M]!==void 0?y[M]:m[M],q=ll(z),Z=M===h?O.isActive:null;Z===!1&&(D=L);let J=z===m[M]&&z!==y[M]&&q;if(J&&r&&n.manuallyAnimateOnMount&&(J=!1),O.protectedKeys={...T},!O.isActive&&Z===null||!z&&!O.prevProp||Ms(z)||typeof z=="boolean")continue;const k=rT(O.prevProp,z);let N=k||M===h&&O.isActive&&!J&&q||L>D&&q,I=!1;const nt=Array.isArray(z)?z:[z];let st=nt.reduce(u(M),{});Z===!1&&(st={});const{prevResolvedValues:ut={}}=O,Q={...ut,...st},$=R=>{N=!0,v.has(R)&&(I=!0,v.delete(R)),O.needsAnimating[R]=!0;const Y=n.getValue(R);Y&&(Y.liveStyle=!1)};for(const R in Q){const Y=st[R],it=ut[R];if(T.hasOwnProperty(R))continue;let lt=!1;yu(Y)&&yu(it)?lt=!km(Y,it):lt=Y!==it,lt?Y!=null?$(R):v.add(R):Y!==void 0&&v.has(R)?$(R):O.protectedKeys[R]=!0}O.prevProp=z,O.prevResolvedValues=st,O.isActive&&(T={...T,...st}),r&&n.blockInitialAnimation&&(N=!1);const at=J&&k;N&&(!at||I)&&S.push(...nt.map(R=>{const Y={type:M};if(typeof R=="string"&&r&&!at&&n.manuallyAnimateOnMount&&n.parent){const{parent:it}=n,lt=aa(it,R);if(it.enteringChildren&&lt){const{delayChildren:gt}=lt.transition||{};Y.delay=Hm(it.enteringChildren,n,gt)}}return{animation:R,options:Y}}))}if(v.size){const L={};if(typeof y.initial!="boolean"){const M=aa(n,Array.isArray(y.initial)?y.initial[0]:y.initial);M&&M.transition&&(L.transition=M.transition)}v.forEach(M=>{const O=n.getBaseTarget(M),z=n.getValue(M);z&&(z.liveStyle=!0),L[M]=O??null}),S.push({animation:L})}let B=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(B=!1),r=!1,B?a(S):Promise.resolve()}function p(h,y){if(s[h].isActive===y)return Promise.resolve();n.variantChildren?.forEach(S=>S.animationState?.setActive(h,y)),s[h].isActive=y;const m=d(h);for(const S in s)s[S].protectedKeys={};return m}return{animateChanges:d,setActive:p,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Ym()}}}function rT(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!km(a,n):!1}function wi(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ym(){return{animate:wi(!0),whileInView:wi(),whileHover:wi(),whileTap:wi(),whileDrag:wi(),whileFocus:wi(),exit:wi()}}class Qn{constructor(a){this.isMounted=!1,this.node=a}update(){}}class oT extends Qn{constructor(a){super(a),a.animationState||(a.animationState=sT(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Ms(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 uT=0;class cT extends Qn{constructor(){super(...arguments),this.id=uT++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===r)return;const u=this.node.animationState.setActive("exit",!a);s&&!a&&u.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 fT={animation:{Feature:oT},exit:{Feature:cT}};function rl(n,a,s,r={passive:!0}){return n.addEventListener(a,s,r),()=>n.removeEventListener(a,s)}function ol(n){return{point:{x:n.pageX,y:n.pageY}}}const dT=n=>a=>$o(a)&&n(a,ol(a));function ul(n,a,s,r){return rl(n,a,dT(s),r)}const Pm=1e-4,hT=1-Pm,mT=1+Pm,qm=.01,pT=0-qm,yT=0+qm;function ve(n){return n.max-n.min}function gT(n,a,s){return Math.abs(n-a)<=s}function Xm(n,a,s,r=.5){n.origin=r,n.originPoint=Pt(a.min,a.max,n.origin),n.scale=ve(s)/ve(a),n.translate=Pt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=hT&&n.scale<=mT||isNaN(n.scale))&&(n.scale=1),(n.translate>=pT&&n.translate<=yT||isNaN(n.translate))&&(n.translate=0)}function cl(n,a,s,r){Xm(n.x,a.x,s.x,r?r.originX:void 0),Xm(n.y,a.y,s.y,r?r.originY:void 0)}function Fm(n,a,s){n.min=s.min+a.min,n.max=n.min+ve(a)}function vT(n,a,s){Fm(n.x,a.x,s.x),Fm(n.y,a.y,s.y)}function Km(n,a,s){n.min=a.min-s.min,n.max=n.min+ve(a)}function Rs(n,a,s){Km(n.x,a.x,s.x),Km(n.y,a.y,s.y)}function Fe(n){return[n("x"),n("y")]}const Qm=({current:n})=>n?n.ownerDocument.defaultView:null,Zm=(n,a)=>Math.abs(n-a);function bT(n,a){const s=Zm(n.x,a.x),r=Zm(n.y,a.y);return Math.sqrt(s**2+r**2)}class Im{constructor(a,s,{transformPagePoint:r,contextWindow:u=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 v=xu(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,D=bT(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!D)return;const{point:B}=v,{timestamp:L}=ue;this.history.push({...B,timestamp:L});const{onStart:M,onMove:O}=this.handlers;T||(M&&M(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,v)},this.handlePointerMove=(v,T)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Su(T,this.transformPagePoint),kt.update(this.updatePoint,!0)},this.handlePointerUp=(v,T)=>{this.end();const{onEnd:D,onSessionEnd:B,resumeAnimation:L}=this.handlers;if(this.dragSnapToOrigin&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=xu(v.type==="pointercancel"?this.lastMoveEventInfo:Su(T,this.transformPagePoint),this.history);this.startEvent&&D&&D(v,M),B&&B(v,M)},!$o(a))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const p=ol(a),h=Su(p,this.transformPagePoint),{point:y}=h,{timestamp:m}=ue;this.history=[{...y,timestamp:m}];const{onSessionStart:S}=s;S&&S(a,xu(h,this.history)),this.removeListeners=Ia(ul(this.contextWindow,"pointermove",this.handlePointerMove),ul(this.contextWindow,"pointerup",this.handlePointerUp),ul(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),Xn(this.updatePoint)}}function Su(n,a){return a?{point:a(n.point)}:n}function Jm(n,a){return{x:n.x-a.x,y:n.y-a.y}}function xu({point:n},a){return{point:n,delta:Jm(n,Wm(a)),offset:Jm(n,ST(a)),velocity:xT(a,.1)}}function ST(n){return n[0]}function Wm(n){return n[n.length-1]}function xT(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const u=Wm(n);for(;s>=0&&(r=n[s],!(u.timestamp-r.timestamp>dn(a)));)s--;if(!r)return{x:0,y:0};const f=Xe(u.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-r.x)/f,y:(u.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function ET(n,{min:a,max:s},r){return a!==void 0&&n<a?n=r?Pt(a,n,r.min):Math.max(n,a):s!==void 0&&n>s&&(n=r?Pt(s,n,r.max):Math.min(n,s)),n}function $m(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function TT(n,{top:a,left:s,bottom:r,right:u}){return{x:$m(n.x,s,u),y:$m(n.y,a,r)}}function tp(n,a){let s=a.min-n.min,r=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,r]=[r,s]),{min:s,max:r}}function MT(n,a){return{x:tp(n.x,a.x),y:tp(n.y,a.y)}}function AT(n,a){let s=.5;const r=ve(n),u=ve(a);return u>r?s=Ja(a.min,a.max-r,n.min):r>u&&(s=Ja(n.min,n.max-u,a.min)),Sn(0,1,s)}function CT(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const Eu=.35;function wT(n=Eu){return n===!1?n=0:n===!0&&(n=Eu),{x:ep(n,"left","right"),y:ep(n,"top","bottom")}}function ep(n,a,s){return{min:np(n,a),max:np(n,s)}}function np(n,a){return typeof n=="number"?n:n[a]||0}const RT=new WeakMap;class DT{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=ie(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=S=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(ol(S).point)},d=(S,v)=>{const{drag:T,dragPropagation:D,onDragStart:B}=this.getProps();if(T&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vx(T),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(M=>{let O=this.getAxisMotionValue(M).get()||0;if(hn.test(O)){const{projection:z}=this.visualElement;if(z&&z.layout){const q=z.layout.layoutBox[M];q&&(O=ve(q)*(parseFloat(O)/100))}}this.originPoint[M]=O}),B&&kt.postRender(()=>B(S,v)),gu(this.visualElement,"transform");const{animationState:L}=this.visualElement;L&&L.setActive("whileDrag",!0)},p=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v;const{dragPropagation:T,dragDirectionLock:D,onDirectionLock:B,onDrag:L}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:M}=v;if(D&&this.currentDirection===null){this.currentDirection=jT(M),this.currentDirection!==null&&B&&B(this.currentDirection);return}this.updateAxis("x",v.point,M),this.updateAxis("y",v.point,M),this.visualElement.render(),L&&L(S,v)},h=(S,v)=>{this.latestPointerEvent=S,this.latestPanInfo=v,this.stop(S,v),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>Fe(S=>this.getAnimationState(S)==="paused"&&this.getAxisMotionValue(S).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new Im(a,{onSessionStart:f,onStart:d,onMove:p,onSessionEnd:h,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:Qm(this.visualElement)})}stop(a,s){const r=a||this.latestPointerEvent,u=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!r)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p&&kt.postRender(()=>p(r,u))}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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,r){const{drag:u}=this.getProps();if(!r||!Ds(a,u,this.currentDirection))return;const f=this.getAxisMotionValue(a);let d=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(d=ET(d,this.constraints[a],this.elastic[a])),f.set(d)}resolveConstraints(){const{dragConstraints:a,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,u=this.constraints;a&&ta(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=TT(r.layoutBox,a):this.constraints=!1,this.elastic=wT(s),u!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=CT(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!ta(a))return!1;const r=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=zE(r,u.root,this.visualElement.getTransformPagePoint());let d=MT(u.layout.layoutBox,f);if(s){const p=s(RE(d));this.hasMutatedConstraints=!!p,p&&(d=xm(p))}return d}startAnimation(a){const{drag:s,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:p}=this.getProps(),h=this.constraints||{},y=Fe(m=>{if(!Ds(m,s,this.currentDirection))return;let S=h&&h[m]||{};d&&(S={min:0,max:0});const v=u?200:1e6,T=u?40:1e7,D={type:"inertia",velocity:r?a[m]:0,bounceStiffness:v,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...f,...S};return this.startAxisValueAnimation(m,D)});return Promise.all(y).then(p)}startAxisValueAnimation(a,s){const r=this.getAxisMotionValue(a);return gu(this.visualElement,a),r.start(vu(a,r,0,s,this.visualElement,!1))}stopAnimation(){Fe(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Fe(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,r=this.visualElement.getProps(),u=r[s];return u||this.visualElement.getValue(a,(r.initial?r.initial[a]:void 0)||0)}snapToCursor(a){Fe(s=>{const{drag:r}=this.getProps();if(!Ds(s,r,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:p}=u.layout.layoutBox[s];f.set(a[s]-Pt(d,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!ta(s)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Fe(d=>{const p=this.getAxisMotionValue(d);if(p&&this.constraints!==!1){const h=p.get();u[d]=AT({min:h,max:h},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(d=>{if(!Ds(d,a,null))return;const p=this.getAxisMotionValue(d),{min:h,max:y}=this.constraints[d];p.set(Pt(h,y,u[d]))})}addListeners(){if(!this.visualElement.current)return;RT.set(this.visualElement,this);const a=this.visualElement.current,s=ul(a,"pointerdown",h=>{const{drag:y,dragListener:m=!0}=this.getProps();y&&m&&this.start(h)}),r=()=>{const{dragConstraints:h}=this.getProps();ta(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),kt.read(r);const d=rl(window,"resize",()=>this.scalePositionWithinConstraints()),p=u.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:y})=>{this.isDragging&&y&&(Fe(m=>{const S=this.getAxisMotionValue(m);S&&(this.originPoint[m]+=h[m].translate,S.set(S.get()+h[m].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),p&&p()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=Eu,dragMomentum:p=!0}=a;return{...a,drag:s,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:p}}}function Ds(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function jT(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class zT extends Qn{constructor(a){super(a),this.removeGroupControls=qe,this.removeListeners=qe,this.controls=new DT(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qe}unmount(){this.removeGroupControls(),this.removeListeners()}}const ip=n=>(a,s)=>{n&&kt.postRender(()=>n(a,s))};class BT extends Qn{constructor(){super(...arguments),this.removePointerDownListener=qe}onPointerDown(a){this.session=new Im(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qm(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:ip(a),onStart:ip(s),onMove:r,onEnd:(f,d)=>{delete this.session,u&&kt.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=ul(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 js={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Tu=!1;class LT extends E.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r,layoutId:u}=this.props,{projection:f}=a;f&&(s.group&&s.group.add(f),r&&r.register&&u&&r.register(f),Tu&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),js.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:r,drag:u,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,Tu=!0,u||a.layoutDependency!==s||s===void 0||a.isPresent!==f?d.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?d.promote():d.relegate()||kt.postRender(()=>{const p=d.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Wo.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:u}=a;Tu=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function ap(n){const[a,s]=nm(),r=E.useContext(ho);return b.jsx(LT,{...n,layoutGroup:r,switchLayoutGroup:E.useContext(bm),isPresent:a,safeToRemove:s})}function OT(n,a,s){const r=ge(n)?n:Wi(n);return r.start(vu("",r,a,s)),r.animation}const VT=(n,a)=>n.depth-a.depth;class NT{constructor(){this.children=[],this.isDirty=!1}add(a){yo(this.children,a),this.isDirty=!0}remove(a){go(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(VT),this.isDirty=!1,this.children.forEach(a)}}function UT(n,a){const s=xe.now(),r=({timestamp:u})=>{const f=u-s;f>=a&&(Xn(r),n(f-a))};return kt.setup(r,!0),()=>Xn(r)}const lp=["TopLeft","TopRight","BottomLeft","BottomRight"],_T=lp.length,sp=n=>typeof n=="string"?parseFloat(n):n,rp=n=>typeof n=="number"||mt.test(n);function HT(n,a,s,r,u,f){u?(n.opacity=Pt(0,s.opacity??1,kT(r)),n.opacityExit=Pt(a.opacity??1,0,GT(r))):f&&(n.opacity=Pt(a.opacity??1,s.opacity??1,r));for(let d=0;d<_T;d++){const p=`border${lp[d]}Radius`;let h=op(a,p),y=op(s,p);if(h===void 0&&y===void 0)continue;h||(h=0),y||(y=0),h===0||y===0||rp(h)===rp(y)?(n[p]=Math.max(Pt(sp(h),sp(y),r),0),(hn.test(y)||hn.test(h))&&(n[p]+="%")):n[p]=y}(a.rotate||s.rotate)&&(n.rotate=Pt(a.rotate||0,s.rotate||0,r))}function op(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const kT=up(0,.5,eh),GT=up(.5,.95,qe);function up(n,a,s){return r=>r<n?0:r>a?1:s(Ja(n,a,r))}function cp(n,a){n.min=a.min,n.max=a.max}function sn(n,a){cp(n.x,a.x),cp(n.y,a.y)}function fp(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function dp(n,a,s,r,u){return n-=a,n=ws(n,1/s,r),u!==void 0&&(n=ws(n,1/u,r)),n}function YT(n,a=0,s=1,r=.5,u,f=n,d=n){if(hn.test(a)&&(a=parseFloat(a),a=Pt(d.min,d.max,a/100)-d.min),typeof a!="number")return;let p=Pt(f.min,f.max,r);n===f&&(p-=a),n.min=dp(n.min,a,s,p,u),n.max=dp(n.max,a,s,p,u)}function hp(n,a,[s,r,u],f,d){YT(n,a[s],a[r],a[u],a.scale,f,d)}const PT=["x","scaleX","originX"],qT=["y","scaleY","originY"];function mp(n,a,s,r){hp(n.x,a,PT,s?s.x:void 0,r?r.x:void 0),hp(n.y,a,qT,s?s.y:void 0,r?r.y:void 0)}function pp(n){return n.translate===0&&n.scale===1}function yp(n){return pp(n.x)&&pp(n.y)}function gp(n,a){return n.min===a.min&&n.max===a.max}function XT(n,a){return gp(n.x,a.x)&&gp(n.y,a.y)}function vp(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function bp(n,a){return vp(n.x,a.x)&&vp(n.y,a.y)}function Sp(n){return ve(n.x)/ve(n.y)}function xp(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class FT{constructor(){this.members=[]}add(a){yo(this.members,a),a.scheduleRender()}remove(a){if(go(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(u=>a===u);if(s===0)return!1;let r;for(let u=s;u>=0;u--){const f=this.members[u];if(f.isPresent!==!1){r=f;break}}return r?(this.promote(r),!0):!1}promote(a,s){const r=this.lead;if(a!==r&&(this.prevLead=r,this.lead=a,a.show(),r)){r.instance&&r.scheduleRender(),a.scheduleRender(),a.resumeFrom=r,s&&(a.resumeFrom.preserveOpacity=!0),r.snapshot&&(a.snapshot=r.snapshot,a.snapshot.latestValues=r.animationValues||r.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:u}=a.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:r}=a;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function KT(n,a,s){let r="";const u=n.x.translate/a.x,f=n.y.translate/a.y,d=s?.z||0;if((u||f||d)&&(r=`translate3d(${u}px, ${f}px, ${d}px) `),(a.x!==1||a.y!==1)&&(r+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:y,rotate:m,rotateX:S,rotateY:v,skewX:T,skewY:D}=s;y&&(r=`perspective(${y}px) ${r}`),m&&(r+=`rotate(${m}deg) `),S&&(r+=`rotateX(${S}deg) `),v&&(r+=`rotateY(${v}deg) `),T&&(r+=`skewX(${T}deg) `),D&&(r+=`skewY(${D}deg) `)}const p=n.x.scale*a.x,h=n.y.scale*a.y;return(p!==1||h!==1)&&(r+=`scale(${p}, ${h})`),r||"none"}const Mu=["","X","Y","Z"],QT=1e3;let ZT=0;function Au(n,a,s,r){const{latestValues:u}=a;u[n]&&(s[n]=u[n],a.setStaticValue(n,0),r&&(r[n]=0))}function Ep(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=Um(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",kt,!(u||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&Ep(r)}function Tp({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},p=a?.()){this.id=ZT++,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(WT),this.nodes.forEach(nM),this.nodes.forEach(iM),this.nodes.forEach($T)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new NT)}addEventListener(d,p){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new So),this.eventHandlers.get(d).add(p)}notifyListeners(d,...p){const h=this.eventHandlers.get(d);h&&h.notify(...p)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=tm(d)&&!Gx(d),this.instance=d;const{layoutId:p,layout:h,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&&(h||p)&&(this.isLayoutDirty=!0),n){let m,S=0;const v=()=>this.root.updateBlockedByResize=!1;kt.read(()=>{S=window.innerWidth}),n(d,()=>{const T=window.innerWidth;T!==S&&(S=T,this.root.updateBlockedByResize=!0,m&&m(),m=UT(v,250),js.hasAnimatedSinceResize&&(js.hasAnimatedSinceResize=!1,this.nodes.forEach(Cp)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&y&&(p||h)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:S,hasRelativeLayoutChanged:v,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||y.getDefaultTransition()||oM,{onLayoutAnimationStart:B,onLayoutAnimationComplete:L}=y.getProps(),M=!this.targetLayout||!bp(this.targetLayout,T),O=!S&&v;if(this.options.layoutRoot||this.resumeFrom||O||S&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const z={...Zo(D,"layout"),onPlay:B,onComplete:L};(y.shouldReduceMotion||this.options.layoutRoot)&&(z.delay=0,z.type=!1),this.startAnimation(z),this.setAnimationOrigin(m,O)}else S||Cp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}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(),Xn(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(aM),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&&Ep(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const S=this.path[m];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)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(Mp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ap);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eM),this.nodes.forEach(IT),this.nodes.forEach(JT)):this.nodes.forEach(Ap),this.clearAllSnapshots();const p=xe.now();ue.delta=Sn(0,1e3/60,p-ue.timestamp),ue.timestamp=p,ue.isProcessing=!0,To.update.process(ue),To.preRender.process(ue),To.render.process(ue),ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tM),this.sharedNodes.forEach(lM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ve(this.snapshot.measuredBox.x)&&!ve(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 h=0;h<this.path.length;h++)this.path[h].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(p=!1),p&&this.instance){const h=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:h,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!yp(this.projectionDelta),h=this.getTransformTemplate(),y=h?h(this.latestValues,""):void 0,m=y!==this.prevTransformTemplateValue;d&&this.instance&&(p||Ci(this.latestValues)||m)&&(u(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const p=this.measurePageBox();let h=this.removeElementScroll(p);return d&&(h=this.removeTransform(h)),uM(h),{animationId:this.root.animationId,measuredBox:p,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return ie();const p=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(cM))){const{scroll:y}=this.root;y&&(ea(p.x,y.offset.x),ea(p.y,y.offset.y))}return p}removeElementScroll(d){const p=ie();if(sn(p,d),this.scroll?.wasRoot)return p;for(let h=0;h<this.path.length;h++){const y=this.path[h],{scroll:m,options:S}=y;y!==this.root&&m&&S.layoutScroll&&(m.wasRoot&&sn(p,d),ea(p.x,m.offset.x),ea(p.y,m.offset.y))}return p}applyTransform(d,p=!1){const h=ie();sn(h,d);for(let y=0;y<this.path.length;y++){const m=this.path[y];!p&&m.options.layoutScroll&&m.scroll&&m!==m.root&&na(h,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ci(m.latestValues)&&na(h,m.latestValues)}return Ci(this.latestValues)&&na(h,this.latestValues),h}removeTransform(d){const p=ie();sn(p,d);for(let h=0;h<this.path.length;h++){const y=this.path[h];if(!y.instance||!Ci(y.latestValues))continue;hu(y.latestValues)&&y.updateSnapshot();const m=ie(),S=y.measurePageBox();sn(m,S),mp(p,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,m)}return Ci(this.latestValues)&&mp(p,this.latestValues),p}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!==ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==p;if(!(d||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:S}=this.options;if(!this.layout||!(m||S))return;this.resolvedRelativeTargetAt=ue.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),Am(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||hu(this.parent.latestValues)||Em(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,p,h){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),Rs(this.relativeTargetOrigin,p,h),sn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),p=!!this.resumingFrom||this!==d;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===ue.timestamp&&(h=!1),h)return;const{layout:y,layoutId:m}=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||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,v=this.treeScale.y;jE(this.layoutCorrected,this.treeScale,this.path,p),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=ie());const{target:T}=d;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fp(this.prevProjectionDelta.x,this.projectionDelta.x),fp(this.prevProjectionDelta.y,this.projectionDelta.y)),cl(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==v||!xp(this.projectionDelta.x,this.prevProjectionDelta.x)||!xp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ia(),this.projectionDelta=ia(),this.projectionDeltaWithTransform=ia()}setAnimationOrigin(d,p=!1){const h=this.snapshot,y=h?h.latestValues:{},m={...this.latestValues},S=ia();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const v=ie(),T=h?h.source:void 0,D=this.layout?this.layout.source:void 0,B=T!==D,L=this.getStack(),M=!L||L.members.length<=1,O=!!(B&&!M&&this.options.crossfade===!0&&!this.path.some(rM));this.animationProgress=0;let z;this.mixTargetDelta=q=>{const Z=q/1e3;wp(S.x,d.x,Z),wp(S.y,d.y,Z),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rs(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sM(this.relativeTarget,this.relativeTargetOrigin,v,Z),z&&XT(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=ie()),sn(z,this.relativeTarget)),B&&(this.animationValues=m,HT(m,y,this.latestValues,Z,O,M)),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&&(Xn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kt.update(()=>{js.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Wi(0)),this.currentAnimation=OT(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),d.onUpdate&&d.onUpdate(p)},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(QT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:p,target:h,layout:y,latestValues:m}=d;if(!(!p||!h||!y)){if(this!==d&&this.layout&&y&&Bp(this.options.animationType,this.layout.layoutBox,y.layoutBox)){h=this.target||ie();const S=ve(this.layout.layoutBox.x);h.x.min=d.target.x.min,h.x.max=h.x.min+S;const v=ve(this.layout.layoutBox.y);h.y.min=d.target.y.min,h.y.max=h.y.min+v}sn(p,h),na(p,m),cl(this.projectionDeltaWithTransform,this.layoutCorrected,p,m)}}registerSharedNode(d,p){this.sharedNodes.has(d)||this.sharedNodes.set(d,new FT),this.sharedNodes.get(d).add(p);const y=p.options.initialPromotionConfig;p.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(p):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:p,preserveFollowOpacity:h}={}){const y=this.getStack();y&&y.promote(this,h),d&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let p=!1;const{latestValues:h}=d;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(p=!0),!p)return;const y={};h.z&&Au("z",d,y,this.animationValues);for(let m=0;m<Mu.length;m++)Au(`rotate${Mu[m]}`,d,y,this.animationValues),Au(`skew${Mu[m]}`,d,y,this.animationValues);d.render();for(const m in y)d.setStaticValue(m,y[m]),this.animationValues&&(this.animationValues[m]=y[m]);d.scheduleRender()}applyProjectionStyles(d,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Cs(p?.pointerEvents)||"",d.transform=h?h(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=Cs(p?.pointerEvents)||""),this.hasProjected&&!Ci(this.latestValues)&&(d.transform=h?h({},""):"none",this.hasProjected=!1);return}d.visibility="";const m=y.animationValues||y.latestValues;this.applyTransformsToTarget();let S=KT(this.projectionDeltaWithTransform,this.treeScale,m);h&&(S=h(m,S)),d.transform=S;const{x:v,y:T}=this.projectionDelta;d.transformOrigin=`${v.origin*100}% ${T.origin*100}% 0`,y.animationValues?d.opacity=y===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=y===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const D in au){if(m[D]===void 0)continue;const{correct:B,applyTo:L,isCSSVariable:M}=au[D],O=S==="none"?m[D]:B(m[D],y);if(L){const z=L.length;for(let q=0;q<z;q++)d[L[q]]=O}else M?this.options.visualElement.renderState.vars[D]=O:d[D]=O}this.options.layoutId&&(d.pointerEvents=y===this?Cs(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Mp),this.root.sharedNodes.clear()}}}function IT(n){n.updateLayout()}function JT(n){const a=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=n.layout,{animationType:u}=n.options,f=a.source!==n.layout.source;u==="size"?Fe(m=>{const S=f?a.measuredBox[m]:a.layoutBox[m],v=ve(S);S.min=s[m].min,S.max=S.min+v}):Bp(u,a.layoutBox,s)&&Fe(m=>{const S=f?a.measuredBox[m]:a.layoutBox[m],v=ve(s[m]);S.max=S.min+v,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[m].max=n.relativeTarget[m].min+v)});const d=ia();cl(d,s,a.layoutBox);const p=ia();f?cl(p,n.applyTransform(r,!0),a.measuredBox):cl(p,s,a.layoutBox);const h=!yp(d);let y=!1;if(!n.resumeFrom){const m=n.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:S,layout:v}=m;if(S&&v){const T=ie();Rs(T,a.layoutBox,S.layoutBox);const D=ie();Rs(D,s,v.layoutBox),bp(T,D)||(y=!0),m.options.layoutRoot&&(n.relativeTarget=D,n.relativeTargetOrigin=T,n.relativeParent=m)}}}n.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:p,layoutDelta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:s}=n.options;s&&s()}n.options.transition=void 0}function WT(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function $T(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function tM(n){n.clearSnapshot()}function Mp(n){n.clearMeasurements()}function Ap(n){n.isLayoutDirty=!1}function eM(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function Cp(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function nM(n){n.resolveTargetDelta()}function iM(n){n.calcProjection()}function aM(n){n.resetSkewAndRotation()}function lM(n){n.removeLeadSnapshot()}function wp(n,a,s){n.translate=Pt(a.translate,0,s),n.scale=Pt(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function Rp(n,a,s,r){n.min=Pt(a.min,s.min,r),n.max=Pt(a.max,s.max,r)}function sM(n,a,s,r){Rp(n.x,a.x,s.x,r),Rp(n.y,a.y,s.y,r)}function rM(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const oM={duration:.45,ease:[.4,0,.1,1]},Dp=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),jp=Dp("applewebkit/")&&!Dp("chrome/")?Math.round:qe;function zp(n){n.min=jp(n.min),n.max=jp(n.max)}function uM(n){zp(n.x),zp(n.y)}function Bp(n,a,s){return n==="position"||n==="preserve-aspect"&&!gT(Sp(a),Sp(s),.2)}function cM(n){return n!==n.root&&n.scroll?.wasRoot}const fM=Tp({attachResizeListener:(n,a)=>rl(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cu={current:void 0},Lp=Tp({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Cu.current){const n=new fM({});n.mount(window),n.setOptions({layoutScroll:!0}),Cu.current=n}return Cu.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),dM={pan:{Feature:BT},drag:{Feature:zT,ProjectionNode:Lp,MeasureLayout:ap}};function Op(n,a,s){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=r[u];f&&kt.postRender(()=>f(a,ol(a)))}class hM extends Qn{mount(){const{current:a}=this.node;a&&(this.unmount=Nx(a,(s,r)=>(Op(this.node,r,"Start"),u=>Op(this.node,u,"End"))))}unmount(){}}class mM extends Qn{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=Ia(rl(this.node.current,"focus",()=>this.onFocus()),rl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vp(n,a,s){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=r[u];f&&kt.postRender(()=>f(a,ol(a)))}class pM extends Qn{mount(){const{current:a}=this.node;a&&(this.unmount=kx(a,(s,r)=>(Vp(this.node,r,"Start"),(u,{success:f})=>Vp(this.node,u,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const wu=new WeakMap,Ru=new WeakMap,yM=n=>{const a=wu.get(n.target);a&&a(n)},gM=n=>{n.forEach(yM)};function vM({root:n,...a}){const s=n||document;Ru.has(s)||Ru.set(s,{});const r=Ru.get(s),u=JSON.stringify(a);return r[u]||(r[u]=new IntersectionObserver(gM,{root:n,...a})),r[u]}function bM(n,a,s){const r=vM(a);return wu.set(n,s),r.observe(n),()=>{wu.delete(n),r.unobserve(n)}}const SM={some:0,all:1};class xM extends Qn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:r,amount:u="some",once:f}=a,d={root:s?s.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:SM[u]},p=h=>{const{isIntersecting:y}=h;if(this.isInView===y||(this.isInView=y,f&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:m,onViewportLeave:S}=this.node.getProps(),v=y?m:S;v&&v(h)};return bM(this.node.current,d,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(EM(a,s))&&this.startObserver()}unmount(){}}function EM({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const TM={...fT,...{inView:{Feature:xM},tap:{Feature:pM},focus:{Feature:mM},hover:{Feature:hM}},...dM,...{layout:{ProjectionNode:Lp,MeasureLayout:ap}}},MM=wE(TM,kE);function AM(n="(max-width: 768px)"){const[a,s]=E.useState({isMobile:!1,isPortrait:!1});return E.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=navigator?.userAgent??"",u=/iPhone|Android/i.test(r),f=window.matchMedia(n),d=window.matchMedia("(orientation: portrait)"),p=()=>s({isMobile:f.matches||u,isPortrait:d.matches});return p(),f.addEventListener("change",p),d.addEventListener("change",p),()=>{f.removeEventListener("change",p),d.removeEventListener("change",p)}},[n]),a}const Np={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[{items:["MetaDesc"]}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["NextPrevBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["NextPrevBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","PipBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Up={vod:{order:["top","upper","center","lower","bottom","seekbar"],top:[{items:["MuteBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{key:"right",items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]},live:{order:["top","upper","center","lower","bottom","seekbar"],top:[{wrapper:"Blank",items:[]},{items:["MuteBtn","PipBtn","SettingBtn"],cap:2,wrapper:"Group"}],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","FullscreenBtn"],wrapper:"Group"}]}},_p={vod:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["NextPrevBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]},live:{order:["top","upper","center","seekbar","lower","bottom"],top:[],center:[{items:["BigPlayBtn"],align:"center"}],bottom:[{items:["PlayBtn"],wrapper:"Group"},{items:["NextPrevBtn"],wrapper:"Group"},{items:["VolumeBtn"],wrapper:"Group"},{items:["TimeBtn"],wrapper:"Group"},{wrapper:"Blank",items:[]},{items:["SubtitleBtn","SettingBtn","FullscreenBtn"],cap:2,wrapper:"Group"}]}},Du=new Map,ju=new Map,zu=new Map,Bu=new Map,fl=new Map;function CM(n,a){Du.set(n,a)}function wM(n){Du.delete(n)}function qt(n){return Du.get(n)}function RM(n,a){ju.set(n,a)}function DM(n){ju.delete(n)}function Hp(n){return ju.get(n)}function jM(n,a){zu.set(n,a)}function zM(n){zu.delete(n)}function kp(n){return zu.get(n)}function BM(n,a){Bu.set(n,a)}function LM(n){Bu.delete(n)}function zs(n){return Bu.get(n)}function OM(n,a,s){const r=fl.get(n)??new Map,u=r.get(a)??new Set;u.add(s),r.set(a,u),fl.set(n,r)}function VM(n,a,s){const r=fl.get(n);if(!r)return;const u=r.get(a);u&&(u.delete(s),u.size===0&&r.delete(a),r.size===0&&fl.delete(n))}function Gp(n,a){const s=fl.get(n);if(!s)return;new Set([...s.get(a.type)??[],...s.get("*")??[]]).forEach(u=>u(a))}const NM=768,dl={pc:{live:Np.live,vod:Np.vod},mobile:{live:Up.live,vod:Up.vod},fullscreen:{live:_p.live,vod:_p.vod}},UM={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 _M(n){const[a,s]=dd("isActive",!1),r=E.useRef(null),u=E.useRef(!1),f=E.useRef(!1),d=E.useRef(0),p=E.useRef(null),h=n.options?.controlActiveTime||3e3,[y]=Nt(),{isMobile:m,isPortrait:S}=AM(),v=Jt(),{togglePlay:T,useTouch:D}=v,[B,L]=E.useState(!1),M=(()=>{const R=n.layout??dl,Y=tt=>!tt||typeof tt!="object"?!1:"top"in tt||"upper"in tt||"center"in tt||"lower"in tt||"bottom"in tt||"order"in tt,it=tt=>!tt||typeof tt!="object"?!1:"live"in tt||"vod"in tt,lt=(tt,yt)=>{const Gt=it(tt)?tt:tt?{live:tt,vod:tt}:void 0,Rt=Gt?.live??yt?.live,be=Gt?.vod??yt?.vod;if(!(!Rt&&!be))return{live:Rt,vod:be}},gt=(tt,yt)=>{if(tt)return(yt?tt.live:tt.vod)??tt.vod??tt.live};if(Y(R))return R;const C=R,H={pc:lt(dl.pc),mobile:lt(dl.mobile),fullscreen:lt(dl.fullscreen)},W={pc:lt(C.pc,H.pc),mobile:lt(C.mobile,H.mobile),fullscreen:lt(C.fullscreen,H.fullscreen),breakpoint:C.breakpoint},et=y.isFullscreen&&W.fullscreen?"fullscreen":null,dt=(et?W[et]:void 0)??(B?W.mobile:W.pc)??W.pc??W.mobile??W.fullscreen;return gt(dt,!!y.isLive)??UM})(),O=f.current||y.isEnded,z=E.useCallback(()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},[]),q=E.useCallback(()=>{z(),r.current=window.setTimeout(()=>{s(!1),u.current=!0,r.current=null},h)},[z,s,h]),Z=E.useCallback(()=>{u.current=!1,d.current=Date.now(),s(!0),q()},[s,q]),J=E.useCallback(()=>{z(),u.current=!0,s(!1)},[z,s]),k=E.useMemo(()=>({...v,next:n.next,prev:n.prev}),[v,n.next,n.prev]);E.useEffect(()=>{const R=n.scopeId;if(R)return CM(R,k),()=>wM(R)},[n.scopeId,k]),E.useEffect(()=>{const R=n.scopeId;if(R)return RM(R,Z),()=>DM(R)},[n.scopeId,Z]),E.useEffect(()=>{const R=n.scopeId;if(R)return jM(R,J),()=>zM(R)},[n.scopeId,J]);const N=()=>{u.current=!1,d.current=Date.now(),a||s(!0),q()},I=()=>{u.current||N()};E.useEffect(()=>{if(typeof window>"u")return;const R=n.layout??dl;if((H=>!H||typeof H!="object"?!1:"top"in H||"upper"in H||"center"in H||"lower"in H||"bottom"in H||"order"in H)(R)){L(!1);return}const lt=R.breakpoint??NM,gt=window.matchMedia(`(max-width: ${lt}px)`),C=()=>L(gt.matches||m);return C(),typeof gt.addEventListener=="function"?(gt.addEventListener("change",C),()=>gt.removeEventListener("change",C)):(gt.addListener(C),()=>gt.removeListener(C))},[n.layout,m]);const nt=R=>[R.top,R.upper,R.center,R.lower,R.bottom].some(it=>it?.some(lt=>(lt.items?.length?lt.items:["Blank"]).includes("SeekBar"))??!1),st=(R,Y)=>{if(typeof R!="string")return E.isValidElement(R)?E.cloneElement(R,{pos:Y}):R;if(!(n.options?.controlBtn?.play&&(n.playlistCnt??0)>1)){if(R==="NextPrevBtn"||R==="NextBtn"||R==="PrevBtn")return}switch(R){case"PlayBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&b.jsx(Ud,{isMobile:m,isPortrait:S,pos:Y,text:{play:n.t?.("common.play")??"재생",pause:n.t?.("common.pause")??"일시정지"},options:n.options})});case"VolumeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.volume&&b.jsx(_b,{isMobile:m,isPortrait:S,pos:Y,text:{muteOn:n.t?.("common.muteOn")??"음소거",muteOff:n.t?.("common.muteOff")??"음소거 해제"}})});case"MuteBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.volume&&b.jsx(Ub,{isMobile:m,isPortrait:S,pos:Y,text:{muteOn:n.t?.("common.muteOn")??"음소거",muteOff:n.t?.("common.muteOff")??"음소거 해제"}})});case"CurrentTimeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(Rb,{isMobile:m,isPortrait:S,pos:Y})});case"DurationBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(Db,{isMobile:m,isPortrait:S,pos:Y})});case"TimeBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.times&&b.jsx(jb,{isMobile:m,isPortrait:S,pos:Y})});case"SubtitleBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.subtitle||y.hasSubtitle&&b.jsx(Nb,{isMobile:m,isPortrait:S,pos:Y,text:{captionOn:n.t?.("common.captionOn")??"자막켜기",captionOff:n.t?.("common.captionOff")??"자막 끄기"}})});case"FullscreenBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.fullscreen&&b.jsx(Vb,{isMobile:m,isPortrait:S,pos:Y,options:n.options,text:{fullOn:n.t?.("common.fullOn")??"전체화면",fullOff:n.t?.("common.fullOff")??"전체화면 해제"}})});case"PipBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.pictureInPicture&&b.jsx(kb,{isMobile:m,isPortrait:S,pos:Y,options:n.options,text:{miniPlayer:n.t?.("common.miniPlayer")??"미니플레이어"}})});case"NextPrevBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&(n.playlistCnt??0)>1&&b.jsx(Ab,{isMobile:m,isPortrait:S,pos:Y,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,prev:n.prev,next:n.next})});case"PrevBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&(n.playlistCnt??0)>1&&b.jsx(Hd,{isMobile:m,isPortrait:S,pos:Y,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,prev:n.prev})});case"NextBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.play&&(n.playlistCnt??0)>1&&b.jsx(_d,{isMobile:m,isPortrait:S,pos:Y,options:n.options,pidx:n.pidx,playlistCnt:n.playlistCnt,next:n.next})});case"SkipBackBtn":return b.jsx("span",{style:{display:"contents"},onClickCapture:()=>{n.onAction?.("skipBack")},children:b.jsx(Cb,{isMobile:m,isPortrait:S,pos:Y,options:n.options})});case"SkipForwardBtn":return b.jsx("span",{style:{display:"contents"},onClickCapture:()=>{n.onAction?.("skipForward")},children:b.jsx(wb,{isMobile:m,isPortrait:S,pos:Y,options:n.options})});case"MetaDesc":return b.jsx(b.Fragment,{children:!n.options?.descriptionNotVisible&&b.jsx(Bb,{title:n.metaTitle??"",profileImage:n.profileImage??"",profileName:n.profileName??"",createdAt:n.createdAt??"",isMobile:m,isPortrait:S,pos:Y})});case"BigPlayBtn":return O?b.jsx(Mb,{isMobile:m,isPortrait:S,next:n.next,prev:n.prev,pidx:n.pidx,playlistCnt:n.playlistCnt}):null;case"SeekBar":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.progressBar&&b.jsx(bd,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,pos:Y,color:n.options?.progressBarColor,seekingPreview:n.options?.seekingPreview&&!n.isDrmPlayback})});case"LevelSelectBtn":return b.jsx(zb,{options:n.options,text:{auto:n.t?.("common.auto")??"자동"}});case"SettingBtn":return b.jsx(b.Fragment,{children:n.options?.controlBtn?.setting&&b.jsx(Hb,{isMobile:m,isPortrait:S,pos:Y,text:{setting:n.t?.("common.setting")??"설정"}})});case"Blank":return b.jsx(kd,{});default:return null}},ut=(R,Y,it,lt)=>{const gt=R.key??`${Y}-${lt??0}`,H=(R.items?.length?R.items:["Blank"]).map((dt,tt)=>{const yt=st(dt,it);return yt?b.jsx(E.Fragment,{children:yt},`${Y}-${gt}-${dt}-${tt}`):null}).filter(dt=>dt!==null);if(!H.length)return null;if(R.wrapper==="Blank")return b.jsx(kd,{align:R?.align,style:R?.style,children:H},`${Y}-${gt}`);if(R.wrapper==="Group")return b.jsx(Za,{noPadding:!(H.length>1),cap:R.cap,style:R?.style,children:H},`${Y}-${gt}`);const et={display:"flex",alignItems:"center",justifyContent:R?.align?R?.align=="left"?"start":R?.align=="right"?"end":"center":"start",width:"100%",flex:1};return b.jsx("div",{style:{...et,...R?.style},children:H},`${Y}-${gt}`)},Q=(R,Y)=>{if(!R?.length)return null;if(Y!=="bottom")return R.map((lt,gt)=>ut(lt,Y,void 0,gt));let it="left";return R.map((lt,gt)=>{const C=lt.items?.length?lt.items:["Blank"],H=lt.wrapper==="Blank"||C.includes("Blank"),W=ut(lt,Y,it,gt);return H&&(it="right"),W})},$=!nt(M),at=M.order??["top","upper","center","seekbar","lower","bottom"],K=()=>$?b.jsx("div",{children:b.jsx(b.Fragment,{children:n.options?.controlBtn?.progressBar&&b.jsx(bd,{src:n.src,hlsLib:n.hlsLib,dashLib:n.dashLib,options:n.options,color:n.options?.progressBarColor,seekingPreview:n.options?.seekingPreview&&!n.isDrmPlayback})})}):null;return E.useEffect(()=>{m&&(f.current=!0)},[m]),E.useEffect(()=>{if(p.current===null){p.current=a;return}p.current!==a&&(p.current=a,n.onControlBarActiveChange?.(a))},[a,n.onControlBarActiveChange]),b.jsxs(b.Fragment,{children:[y.isLoading&&b.jsx(fo,{poster:n.poster,options:n.options}),y.isWaiting&&b.jsx(fo,{}),y.isSettingModal&&b.jsx(Pb,{text:{setting:n.t?.("common.setting")??"세팅",auto:n.t?.("common.auto")??"자동",notUse:n.t?.("common.notUse")??"사용안함",quality:n.t?.("settings.quality")??"해상도",autoplay:n.t?.("settings.autoplay")??"자동재생",playbackRate:n.t?.("settings.playbackRate")??"재생 속도",captions:n.t?.("settings.captions")??"자막"},vtt:n.src?.vtt,options:n.options}),!y.isLoading&&b.jsx(b.Fragment,{children:y.initPlay?b.jsxs("div",{style:{height:"100%"},onClick:()=>{D(),z(),q()},onMouseEnter:()=>{I()},onMouseMove:()=>{N()},onTouchStart:()=>{D(),z(),q()},onMouseLeave:()=>{z(),q(),u.current=!1},children:[m&&b.jsx(Yb,{onSingleTap:()=>{s(!0),z(),q()}}),b.jsx(Ix,{children:(a||y.isEnded)&&b.jsx(MM.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.45rem",cursor:"default",background:"linear-gradient(to bottom,rgba(0,0,0,0.24) 0%,rgba(0,0,0,0.24) 3%,rgba(0,0,0,0) 70%,rgba(0,0,0,0.3) 90%,rgba(0,0,0,0.7) 100%)"},children:at.map(R=>R==="top"?b.jsx("div",{style:{display:"flex",alignItems:"center"},children:Q(M.top,"top")},"layout-top"):R==="upper"?b.jsx("div",{style:{display:"flex",alignItems:"center"},children:Q(M.upper,"upper")},"layout-upper"):R==="center"?b.jsx("div",{style:{flex:"1 1 0%",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{!m&&!S&&T(),f.current=!0},onMouseLeave:()=>{f.current=!1},children:Q(M.center,"center")},"layout-center"):R==="seekbar"?b.jsx("div",{children:b.jsx(E.Fragment,{children:K()})},"layout-seekbar"):R==="lower"?b.jsx("div",{style:{display:"flex",alignItems:"center"},children:Q(M.lower,"lower")},"layout-lower"):R==="bottom"?b.jsx("div",{style:{display:"flex",alignItems:"center"},children:Q(M.bottom,"bottom")},"layout-bottom"):null)})})]}):b.jsx(Gb,{poster:n.poster,options:n.options})})]})}const HM=["stateChange","ready","play","pause","ended","fullscreen","fullscreenExit","loadingStart","loadingEnd","bufferingStart","bufferingEnd","seeking","seeked","waiting","volumechange","timeupdate","controlbarActive","controlbarDeactive","next","prev","skipForward","skipBack","playlistChange","error"],kM=n=>HM.includes(n),Bs="com.widevine.alpha",Ls="com.microsoft.playready",hl="com.apple.fps",Lu=n=>n.split("#")[0]?.split("?")[0]??"",Ou=n=>n?n.trim().replace(/^[?&]+/,""):"",Os=(n,a)=>{const s=Ou(a);if(!s||n.includes(s))return n;const[r,u]=n.split("#"),f=r.includes("?"),d=r.endsWith("?")||r.endsWith("&")?"":f?"&":"?",p=`${r}${d}${s}`;return u?`${p}#${u}`:p},GM=(n,a)=>{if(!n?.file)return n;const s=Os(n.file,a);return s===n.file?n:{...n,file:s}},Vs=n=>{if(!n)return;const a={};return Object.entries(n).forEach(([s,r])=>{a[s]=String(r)}),a},YM=n=>{if(!(!n?.drm||typeof n.drm!="object"))return n.drm},PM=n=>{const a=n?.[hl];if(a?.licenseUri)return{keySystem:hl,licenseUrl:a.licenseUri,licenseHeaders:Vs(a.licenseRequestHeader),certificateUrl:a.certificateUri,certificateHeaders:Vs(a.certificateRequestHeader)}},qM=n=>{if(!n)return;const a={},s=n[Bs];s?.licenseUri&&(a[Bs]={serverURL:s.licenseUri,httpRequestHeaders:Vs(s.licenseRequestHeader)});const r=n[Ls];return r?.licenseUri&&(a[Ls]={serverURL:r.licenseUri,httpRequestHeaders:Vs(r.licenseRequestHeader)}),Object.keys(a).length>0?a:void 0},XM=n=>{if(!n?.drm)return;const a=n.drm;return typeof globalThis.WebKitMediaKeys<"u"&&a[hl]?.src?a[hl]?.src:a[Bs]?.src?a[Bs]?.src:a[Ls]?.src?a[Ls]?.src:Object.values(a).map(u=>u?.src).find(Boolean)},FM=n=>{if(!n||n.file)return n;const a=XM(n);return a?{...n,file:a}:n},KM=(n,a,s)=>{if(!n)return;const r=Ou(a);n.__vpeTokenValue=r,n.__vpeDrmConfig=s;const u=n.DefaultConfig??n.defaultConfig??(n.DefaultConfig={});if(s?.licenseUrl?(u.emeEnabled=!0,u.drmSystems={[s.keySystem]:{licenseUrl:s.licenseUrl,serverCertificateUrl:s.certificateUrl}}):(u.emeEnabled=!1,u.drmSystems={}),n.__vpeTokenPatched)return;n.__vpeTokenPatched=!0;const f=u.xhrSetup,d=u.fetchSetup,p=u.licenseXhrSetup;u.xhrSetup=(h,y)=>{const m=n.__vpeDrmConfig,S=Os(y,n.__vpeTokenValue);S!==y&&h.open("GET",S,!0);const v=m?.certificateUrl;if(v&&Lu(S)===Lu(v)&&m.certificateHeaders&&Object.entries(m.certificateHeaders).forEach(([T,D])=>{h.setRequestHeader(T,D)}),f)return f(h,S)},u.fetchSetup=(h,y)=>{const m=Os(h.url,n.__vpeTokenValue),S=m===h.url?h:{...h,url:m};return d?d(S,y):typeof Request<"u"?new Request(S.url,y):S.url},u.licenseXhrSetup=(h,y,m,S)=>{const v=n.__vpeDrmConfig;return v?.licenseHeaders&&Object.entries(v.licenseHeaders).forEach(([T,D])=>{h.setRequestHeader(T,D)}),p?p(h,y,m,S):S}},QM=(n,a,s)=>{if(!n?.MediaPlayer)return;const r=Ou(a);if(n.__vpeTokenValue=r,n.__vpeDrmConfig=s,n.__vpeTokenPatched)return;n.__vpeTokenPatched=!0;const u=n.MediaPlayer.bind(n);n.MediaPlayer=(...f)=>{const d=u(...f);if(!d?.create||d.__vpeTokenPatched)return d;d.__vpeTokenPatched=!0;const p=d.create.bind(d);return d.create=(...h)=>{const y=p(...h),m=n.__vpeTokenValue,S=n.__vpeDrmConfig;return m&&typeof y?.extend=="function"&&y.extend("RequestModifier",{modifyRequestURL:v=>Os(v,m),modifyRequestHeader:v=>v},!0),S&&typeof y?.setProtectionData=="function"&&y.setProtectionData(S),y},d}};let Yp=0;function ZM({onEvent:n,isInitialized:a,playlist:s,pidx:r,onStateSnapshot:u,vpe:f,scopeId:d}){const[p]=Nt(),h=E.useRef(null),y=E.useRef(null),m=E.useRef(!1),S=E.useCallback((v,T,D)=>{const B=p??{};f?.playerStateReport&&f.playerStateReport({type:v,state:B,prevState:D,data:T});const L={type:v,state:B,prevState:D,data:T};n&&n(L),d&&Gp(d,L)},[n,p,f,d]);return E.useEffect(()=>{u&&u(p??{})},[p,u]),E.useEffect(()=>{const v=p??{},T=h.current;h.current=v,T&&T!==v&&(S("stateChange",void 0,T),T.isPlaying!==v.isPlaying&&typeof v.isPlaying=="boolean"&&S(v.isPlaying?"play":"pause",void 0,T),T.isFullscreen!==v.isFullscreen&&typeof v.isFullscreen=="boolean"&&S(v.isFullscreen?"fullscreen":"fullscreenExit",void 0,T),T.isLoading!==v.isLoading&&typeof v.isLoading=="boolean"&&S(v.isLoading?"loadingStart":"loadingEnd",void 0,T),T.isWaiting!==v.isWaiting&&typeof v.isWaiting=="boolean"&&S(v.isWaiting?"bufferingStart":"bufferingEnd",void 0,T))},[p,S]),E.useEffect(()=>{!a||m.current||(m.current=!0,S("ready",{playlist:s}))},[a,s.length,S]),E.useEffect(()=>{const v=y.current;if(y.current=r,v===null||v===r)return;const T={from:v,to:r,total:s.length,item:s[r]};S("playlistChange",T),S(r>v?"next":"prev",T)},[r,s,S]),null}function IM(n){const{accessKey:a,platform:s="pub",stage:r="prod",isDev:u=!1,hls:f,dashjs:d,options:p,layout:h,scopeId:y}=n,[m,S]=E.useState(null),[v,T]=E.useState([]),[D,B]=E.useState(!1),[L,M]=dd("playerOptions",p??{}),[O,z]=E.useState(""),[q,Z]=E.useState({errorCode:null,errorMessage:null,errorTitle:null}),[J,k]=E.useState(!1),[N,I]=E.useState(!1),[nt,st]=E.useState(0),[ut,Q]=E.useState(0),$=E.useRef(null),at=E.useRef(null),K=E.useRef(null),R=E.useRef(null),Y=typeof window<"u"&&window.location.host||"local";E.useEffect(()=>{if(!a)return;const ct=new m1({accessKey:a,appId:Y,platform:s,stage:r,isDev:u});S(ct)},[a,Y,s,r,u]);const it=E.useCallback((ct,vt,ae)=>{const Qt=R.current??{};m?.playerStateReport&&m.playerStateReport({type:ct,state:Qt,prevState:ae,data:vt});const Zn={type:ct,state:Qt,prevState:ae,data:vt};n.onEvent&&n.onEvent(Zn),y&&Gp(y,Zn)},[n.onEvent,m,y]),lt=E.useCallback((ct,vt)=>{if(kM(ct)){if(ct==="ended"){if(v.length>1)ut<v.length-1?(I(!0),Tn(5)):L.loop&&Q(0);else if(L.loop&&y){const ae=qt(y),Qt=ae?.seekTo,Zn=ae?.play;Qt&&Qt(0),Zn&&Zn()}}it(ct,vt)}},[it,ut,L.loop,v.length,y,I,N]),gt=E.useCallback((ct,vt)=>{k(!0),Z(ct),it("error",{...vt,...ct})},[it]);E.useEffect(()=>{if(!m||D||J)return;(async()=>{if(await m.initialize(),m.isInitialized()){const vt=m.getValidatedOptions(p);M(vt),T(vt?.playlist||[]),B(!0)}else{const vt=m.setErrorRun("E0001");gt({errorCode:vt?.errorCode,errorMessage:vt?.errorMessage?.desc,errorTitle:vt?.errorMessage?.title});return}})()},[m,D,p,M,gt,J]),E.useEffect(()=>{const ct=globalThis;f&&(ct.Hls=f),d&&(ct.dashjs=d)},[f,d]);const C=E.useMemo(()=>FM(v?.[ut]),[v,ut]);E.useEffect(()=>{const ct=C?.file;if(!ct){z("");return}const vt=Lu(ct.toLowerCase());vt.endsWith(".m3u8")?z("hls"):vt.endsWith(".mpd")?z("dash"):vt.endsWith(".mp4")?z("mp4"):z("")},[C]);const H=C,W=v?.length>1?v[(ut+1)%v.length]:v?.[ut],et=E.useMemo(()=>YM(H),[H]),dt=E.useMemo(()=>PM(et),[et]),tt=E.useMemo(()=>qM(et),[et]),yt=typeof globalThis.WebKitMediaKeys<"u",Gt=E.useMemo(()=>typeof document>"u"?!1:!!document.createElement("video")?.canPlayType?.("application/vnd.apple.mpegurl"),[]),Rt=!!(yt&&Gt&&et?.[hl]?.licenseUri&&O==="hls");E.useEffect(()=>{if(!m||!O)return;const ct=globalThis,vt=f??ct.Hls,ae=d??ct.dashjs;if(O==="hls"&&!vt&&!Rt){const Qt=m.setErrorRun("E0015");gt({errorCode:Qt?.errorCode,errorMessage:Qt?.errorMessage?.desc,errorTitle:Qt?.errorMessage?.title})}if(O==="dash"&&!ae){const Qt=m.setErrorRun("E0016");gt({errorCode:Qt?.errorCode,errorMessage:Qt?.errorMessage?.desc,errorTitle:Qt?.errorMessage?.title})}},[O,m,f,d,gt,Rt]);const be=E.useCallback(ct=>{if(!ct||typeof ct!="object"||!m)return;const vt=ct;if(vt?.evt=="hlsError"&&vt?.data?.type=="networkError"){const ae=m.setErrorRun("E0004");gt({errorCode:ae?.errorCode,errorMessage:ae?.errorMessage?.desc,errorTitle:ae?.errorMessage?.title})}},[m,gt]),ze=E.useMemo(()=>GM(H,L?.token),[H,L?.token]),Ke=f??globalThis.Hls,En=d??globalThis.dashjs;E.useEffect(()=>{KM(Ke,L?.token,dt),QM(En,L?.token,tt)},[Ke,En,L?.token,dt,tt]);const rn=()=>{if(!ze)return null;switch(O){case"hls":return Rt?b.jsx(Q1,{src:ze,options:L,onError:be,emitEvent:lt}):b.jsx(X1,{src:ze,hlsLib:Ke,options:L,onError:be,emitEvent:lt});case"dash":return b.jsx(F1,{src:ze,dashLib:En,options:L,onError:be,emitEvent:lt});case"mp4":return b.jsx(K1,{src:ze,options:L,onError:be,emitEvent:lt});default:return null}};Qb(L);const ce=E.useCallback(()=>{const ct=at.current;ct&&(ct.style.display="")},[]),se=E.useCallback(()=>{const ct=at.current;ct&&(ct.style.display="none")},[]);E.useEffect(()=>{if(y)return BM(y,{show:ce,hide:se}),()=>LM(y)},[y,ce,se]);const Be=E.useCallback(ct=>{R.current=ct},[]);E.useEffect(()=>{v.length!==0&&ut>v.length-1&&Q(v.length-1)},[ut,v.length]);const Le=E.useCallback(()=>{$.current&&(clearInterval($.current),$.current=null)},[]),mn=E.useCallback(()=>{Q(ct=>(I(!1),v.length===0?ct:Math.min(ct+1,v.length-1)))},[v.length]);E.useEffect(()=>Le,[Le]);const Tn=E.useCallback((ct=1)=>{if(ct>1){const vt=Math.max(1,Math.floor(ct));st(vt),Le(),$.current=setInterval(()=>{st(ae=>{const Qt=Math.max(0,ae-1);return Qt===0&&(Le(),mn()),Qt})},1e3)}else st(0),Le(),mn()},[mn,Le]),Mn=E.useCallback(()=>{Q(ct=>Math.max(0,ct-1))},[v.length]),sa=E.useCallback(ct=>{ct==="skipForward"?it("skipForward"):ct==="skipBack"&&it("skipBack")},[it]);return b.jsxs("div",{ref:K,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",aspectRatio:L?.aspectRatio||"16/9"},className:"vpe-root-wrap",children:[b.jsx(ZM,{onEvent:n.onEvent,isInitialized:D,playlist:v,pidx:ut,onStateSnapshot:Be,vpe:m,scopeId:y}),J?b.jsxs("div",{style:{width:"100%",height:"100%",maxHeight:"100dvh",backgroundColor:"#000000",color:"#ffffff",lineHeight:"1rem",fontSize:"1rem",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",aspectRatio:L?.aspectRatio||"16/9",position:"relative",overflow:"hidden"},children:[b.jsx("div",{style:{background:`url(${H?.poster}) center / cover no-repeat`,filter:"blur(8px)",width:"100%",height:"100%",maxHeight:"100dvh",position:"absolute",zIndex:3}}),b.jsx("div",{style:{position:"absolute",zIndex:4,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",top:0,left:0,backgroundColor:"rgba(0,0,0,0.69)"},children:n.errorOverride?typeof n.errorOverride=="function"?b.jsx(n.errorOverride,{...q}):n.errorOverride:b.jsxs("div",{style:{textAlign:"center"},children:[b.jsx("div",{children:b.jsx("img",{src:"https://player.vpe.naverncp.com/images/error0.svg",style:{height:"8rem"}})}),b.jsx("div",{style:{padding:"0.5rem 0",fontSize:"1rem"},children:b.jsx("strong",{children:q?.errorMessage})}),q?.errorCode&&b.jsxs("div",{style:{fontSize:"0.9rem"},children:["(Error Code : ",q.errorCode,")"]})]})})]}):D?b.jsxs(b.Fragment,{children:[L.controls&&b.jsx("div",{ref:at,style:{position:"absolute",zIndex:2,height:"100%",width:"100%",maxHeight:"100dvh",maxWidth:"100dvw",overflow:"hidden",cursor:"none",fontSize:"16px"},children:b.jsx(_M,{src:ze,hlsLib:Ke,dashLib:En,options:L,poster:H?.poster,layout:h,scopeId:y,isDrmPlayback:!!et,next:Tn,prev:Mn,onAction:sa,onControlBarActiveChange:ct=>{it(ct?"controlbarActive":"controlbarDeactive")},pidx:ut,playlistCnt:v?.length||0,metaTitle:H?.description?.title,profileImage:H?.description?.profile_image,profileName:H?.description?.profile_name,createdAt:H?.description?.created_at,t:ct=>m?.$t(ct)??ct})}),N&&b.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:30,backgroundColor:"rgba(0,0,0,0.69)"},children:b.jsxs("div",{children:[b.jsx("div",{style:{background:`url(${W?.poster}) center / cover no-repeat`,width:"11em",aspectRatio:L?.aspectRatio||"16/9",backgroundColor:"#000000",borderRadius:"5px",border:"2px solid rgba(255,255,255,0.5)"}}),b.jsx("div",{style:{textAlign:"center",fontSize:"0.8rem",letterSpacing:"-1",fontWeight:"bold",paddingTop:"1rem"},children:m.$t("alternative.nextPlay").replace("{timeTxt}",nt)})]})}),b.jsx("div",{style:{position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",maxHeight:"100dvh",aspectRatio:L?.aspectRatio||"16/9"},children:rn()})]}):b.jsx(fo,{poster:H?.poster,options:L})]})}const Vu=E.forwardRef((n,a)=>{const s=E.useRef("");s.current||(Yp+=1,s.current=`vpe-${Yp}`);const r=n.scopeId??s.current;return E.useImperativeHandle(a,()=>({play:()=>{qt(r)?.play?.()},pause:()=>{qt(r)?.pause?.()},mute:()=>{const f=qt(r)?.toggleMute;typeof f=="function"&&f(!0)},prev:()=>{const f=qt(r)?.prev;typeof f=="function"&&f()},next:()=>{const f=qt(r)?.next;typeof f=="function"&&f()},fullscreen:()=>{const f=qt(r)?.toggleFullscreen;typeof f=="function"&&f()},fullscreenOn:()=>{const f=qt(r)?.fullscreenOn;typeof f=="function"&&f()},fullScreenOff:()=>{const f=qt(r)?.fullscreenOff;typeof f=="function"&&f()},pip:()=>{const f=qt(r)?.togglePictureInPicture;typeof f=="function"&&f()},volume:(u=1)=>{const d=qt(r)?.setVolume;typeof d=="function"&&d(u*100)},uiHidden:()=>{const u=zs(r);u&&u.hide()},uiVisible:()=>{const u=zs(r);u&&u.show()},currentTime:(u=0)=>{const d=qt(r)?.seekTo;typeof d=="function"&&d(u)},controlBarActive:()=>{const u=Hp(r);u&&u()},controlBarDeactive:()=>{const u=kp(r);u&&u()},tokenChange:u=>{hd(r,"playerOptions",f=>({...f??{},token:u}))}}),[r]),b.jsx(p1,{scopeId:r,children:b.jsxs(v1,{scopeId:r,children:[b.jsx(qb,{}),b.jsx(IM,{...n,scopeId:r})]})})});Vu.displayName="ncplayer";const Pp=globalThis;Pp.process||(Pp.process={env:{}});let qp,ml,JM=0;function WM(n){switch(n){case"player.vpe.naverncp.com":return{platform:"pub",stage:"prod"};case"player.beta-vpe.naverncp.com":return{platform:"pub",stage:"beta"};case"player.vpe.gov-ntruss.com":return{platform:"gov",stage:"prod"};case"player.beta-vpe.gov-ntruss.com":return{platform:"gov",stage:"beta"};default:return{platform:"pub",stage:"prod"}}}const $M=(()=>{if(typeof document>"u")return"";const n=[];document.currentScript instanceof HTMLScriptElement&&n.push(document.currentScript),n.push(...Array.from(document.getElementsByTagName("script")));for(const a of n)if(a.src)try{const s=new URL(a.src,window.location.href);if(!ml){const u=WM(s.hostname);u&&(ml=u)}const r=s.searchParams.get("access_key");if(r)return r}catch{continue}return""})();function tA(n){return n||$M}const eA=n=>!n||typeof n!="object"?!1:"options"in n||"layout"in n||"platform"in n||"stage"in n||"hls"in n||"dashjs"in n||"accessKey"in n;function nA(n){if(!n)return;const a=globalThis,s=typeof n=="object"&&n!==null&&("MediaPlayer"in n||"MediaPlayerFactory"in n),r=typeof n=="function"||typeof n=="object"&&n!==null&&("isSupported"in n||"Events"in n);if(s&&!r){a.dashjs=n;return}if(r&&!s){a.Hls=n;return}console.error("지원하지 않는 라이브러리입니다. hls.js 또는 dash.js를 전달하세요.")}function iA(n){return typeof n!="string"||n.startsWith("#")||n.startsWith(".")||n.startsWith("[")||n.includes(" ")||n.includes(">")||n.includes(":")?n:typeof document<"u"&&document.getElementById(n)?`#${n}`:n}const Xp=E.forwardRef((n,a)=>b.jsx(Vu,{...n,ref:a}));Xp.displayName="VpePlayer";function Nu(n,a,s={}){const r=typeof a=="string"?a:a?.accessKey,u=typeof a=="string"?s:a??{},f=eA(u)?u:{options:u},d=tA(r);if(!d)throw new Error("accessKey를 찾을 수 없습니다.");const p=typeof n=="string"?document.querySelector(n):n;if(!p)throw new Error("지정한 타겟을 찾을 수 없습니다.");const h=document.createElement("div");p.appendChild(h);const y=$v.createRoot(h),m=f.scopeId??`vpe-${JM+=1}`,S={...f,scopeId:m,layout:f.layout??qp,platform:f.platform??ml?.platform,stage:f.stage??ml?.stage};let v={...S.options??{}},T=S.onEvent;const D=M=>{if(M?.type==="error"){const O=v?.override?.error;typeof O=="function"&&O(M.data??M)}T&&T(M)},B=(M={})=>{M.options&&(v={...v,...M.options}),M.onEvent&&(T=M.onEvent);const{options:O,onEvent:z,...q}=M;y.render(b.jsx(Vu,{...S,...q,options:v,onEvent:D,accessKey:d}))};return B(),{destroy:()=>{y.unmount(),h.parentNode&&h.parentNode.removeChild(h)},container:h,render:B,scopeId:m}}class la{destroy;container;render;scopeId;static use(a){return nA(a),la}static layout(a){return qp=a,la}static config(a){return ml=a,la}constructor(a,s,r={}){const u=Nu(iA(a),s,r);this.destroy=u.destroy,this.container=u.container,this.render=u.render,this.scopeId=u.scopeId}play(){const a=qt(this.scopeId);if(a?.play){a.play();return}}pause(){const a=qt(this.scopeId);if(a?.pause){a.pause();return}}mute(){const s=qt(this.scopeId)?.toggleMute;if(typeof s=="function"){s(!0);return}}prev(){const s=qt(this.scopeId)?.prev;if(typeof s=="function"){s();return}}next(){const s=qt(this.scopeId)?.next;if(typeof s=="function"){s();return}}fullscreen(){const s=qt(this.scopeId)?.toggleFullscreen;if(typeof s=="function"){s();return}}fullscreenOn(){const s=qt(this.scopeId)?.fullscreenOn;if(typeof s=="function"){s();return}}fullScreenOff(){const s=qt(this.scopeId)?.fullscreenOff;if(typeof s=="function"){s();return}}pip(){const s=qt(this.scopeId)?.togglePictureInPicture;if(typeof s=="function"){s();return}}volume(a=1){const r=qt(this.scopeId)?.setVolume;if(typeof r=="function"){r(a*100);return}}uiHidden(){const a=zs(this.scopeId);a&&a.hide()}uiVisible(){const a=zs(this.scopeId);a&&a.show()}currentTime(a=0){const r=qt(this.scopeId)?.seekTo;if(typeof r=="function"){r(a);return}}controlBarActive(){const a=Hp(this.scopeId);a&&a()}controlBarDeactive(){const a=kp(this.scopeId);a&&a()}tokenChange(a){this.render({options:{token:a}}),hd(this.scopeId,"playerOptions",s=>({...s??{},token:a}))}on(a,s){if(!(!a||typeof s!="function"))return OM(this.scopeId,a,s),()=>VM(this.scopeId,a,s)}}typeof window<"u"&&(window.vpe={...window.vpe??{},setup:Nu},window.ncplayer=la),bn.Ncplayer=la,bn.VpePlayer=Xp,bn.setup=Nu,bn.useDeviceState=vd,Object.defineProperty(bn,Symbol.toStringTag,{value:"Module"})}));