vulnerability-scanner-api / static /assets /index-C2LOnuvG.js
AdityaDevx's picture
Update UI - remove TRY buttons
7a5975c
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Np={exports:{}},Is={},_p={exports:{}},W={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Yi=Symbol.for("react.element"),dv=Symbol.for("react.portal"),hv=Symbol.for("react.fragment"),pv=Symbol.for("react.strict_mode"),mv=Symbol.for("react.profiler"),gv=Symbol.for("react.provider"),yv=Symbol.for("react.context"),vv=Symbol.for("react.forward_ref"),xv=Symbol.for("react.suspense"),wv=Symbol.for("react.memo"),kv=Symbol.for("react.lazy"),mf=Symbol.iterator;function Sv(e){return e===null||typeof e!="object"?null:(e=mf&&e[mf]||e["@@iterator"],typeof e=="function"?e:null)}var zp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Op=Object.assign,Vp={};function zr(e,t,n){this.props=e,this.context=t,this.refs=Vp,this.updater=n||zp}zr.prototype.isReactComponent={};zr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fp(){}Fp.prototype=zr.prototype;function vu(e,t,n){this.props=e,this.context=t,this.refs=Vp,this.updater=n||zp}var xu=vu.prototype=new Fp;xu.constructor=vu;Op(xu,zr.prototype);xu.isPureReactComponent=!0;var gf=Array.isArray,jp=Object.prototype.hasOwnProperty,wu={current:null},Bp={key:!0,ref:!0,__self:!0,__source:!0};function Up(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)jp.call(t,r)&&!Bp.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Yi,type:e,key:o,ref:s,props:i,_owner:wu.current}}function Cv(e,t){return{$$typeof:Yi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ku(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yi}function Ev(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yf=/\/+/g;function tl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ev(""+e.key):t.toString(36)}function bo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Yi:case dv:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+tl(s,0):r,gf(i)?(n="",e!=null&&(n=e.replace(yf,"$&/")+"/"),bo(i,t,n,"",function(u){return u})):i!=null&&(ku(i)&&(i=Cv(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(yf,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",gf(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+tl(o,l);s+=bo(o,t,n,a,i)}else if(a=Sv(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+tl(o,l++),s+=bo(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function so(e,t,n){if(e==null)return e;var r=[],i=0;return bo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Tv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Be={current:null},Mo={transition:null},Pv={ReactCurrentDispatcher:Be,ReactCurrentBatchConfig:Mo,ReactCurrentOwner:wu};function Hp(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:so,forEach:function(e,t,n){so(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return so(e,function(){t++}),t},toArray:function(e){return so(e,function(t){return t})||[]},only:function(e){if(!ku(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=zr;W.Fragment=hv;W.Profiler=mv;W.PureComponent=vu;W.StrictMode=pv;W.Suspense=xv;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pv;W.act=Hp;W.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Op({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=wu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)jp.call(t,a)&&!Bp.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Yi,type:e.type,key:i,ref:o,props:r,_owner:s}};W.createContext=function(e){return e={$$typeof:yv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:gv,_context:e},e.Consumer=e};W.createElement=Up;W.createFactory=function(e){var t=Up.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:vv,render:e}};W.isValidElement=ku;W.lazy=function(e){return{$$typeof:kv,_payload:{_status:-1,_result:e},_init:Tv}};W.memo=function(e,t){return{$$typeof:wv,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=Mo.transition;Mo.transition={};try{e()}finally{Mo.transition=t}};W.unstable_act=Hp;W.useCallback=function(e,t){return Be.current.useCallback(e,t)};W.useContext=function(e){return Be.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return Be.current.useDeferredValue(e)};W.useEffect=function(e,t){return Be.current.useEffect(e,t)};W.useId=function(){return Be.current.useId()};W.useImperativeHandle=function(e,t,n){return Be.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Be.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Be.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Be.current.useMemo(e,t)};W.useReducer=function(e,t,n){return Be.current.useReducer(e,t,n)};W.useRef=function(e){return Be.current.useRef(e)};W.useState=function(e){return Be.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return Be.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Be.current.useTransition()};W.version="18.3.1";_p.exports=W;var M=_p.exports;/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Av=M,Lv=Symbol.for("react.element"),Iv=Symbol.for("react.fragment"),Dv=Object.prototype.hasOwnProperty,bv=Av.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mv={key:!0,ref:!0,__self:!0,__source:!0};function $p(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Dv.call(t,r)&&!Mv.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Lv,type:e,key:o,ref:s,props:i,_owner:bv.current}}Is.Fragment=Iv;Is.jsx=$p;Is.jsxs=$p;Np.exports=Is;var T=Np.exports,Zl={},Wp={exports:{}},st={},Kp={exports:{}},Gp={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(b,F){var v=b.length;b.push(F);e:for(;0<v;){var Y=v-1>>>1,J=b[Y];if(0<i(J,F))b[Y]=F,b[v]=J,v=Y;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var F=b[0],v=b.pop();if(v!==F){b[0]=v;e:for(var Y=0,J=b.length,w=J>>>1;Y<w;){var ke=2*(Y+1)-1,yt=b[ke],oe=ke+1,At=b[oe];if(0>i(yt,v))oe<J&&0>i(At,yt)?(b[Y]=At,b[oe]=v,Y=oe):(b[Y]=yt,b[ke]=v,Y=ke);else if(oe<J&&0>i(At,v))b[Y]=At,b[oe]=v,Y=oe;else break e}}return F}function i(b,F){var v=b.sortIndex-F.sortIndex;return v!==0?v:b.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,h=!1,y=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(b){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=b)r(u),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(u)}}function S(b){if(x=!1,m(b),!y)if(n(a)!==null)y=!0,ge(C);else{var F=n(u);F!==null&&$(S,F.startTime-b)}}function C(b,F){y=!1,x&&(x=!1,p(P),P=-1),h=!0;var v=d;try{for(m(F),f=n(a);f!==null&&(!(f.expirationTime>F)||b&&!_());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var J=Y(f.expirationTime<=F);F=e.unstable_now(),typeof J=="function"?f.callback=J:f===n(a)&&r(a),m(F)}else r(a);f=n(a)}if(f!==null)var w=!0;else{var ke=n(u);ke!==null&&$(S,ke.startTime-F),w=!1}return w}finally{f=null,d=v,h=!1}}var k=!1,L=null,P=-1,z=5,N=-1;function _(){return!(e.unstable_now()-N<z)}function V(){if(L!==null){var b=e.unstable_now();N=b;var F=!0;try{F=L(!0,b)}finally{F?X():(k=!1,L=null)}}else k=!1}var X;if(typeof g=="function")X=function(){g(V)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,K=te.port2;te.port1.onmessage=V,X=function(){K.postMessage(null)}}else X=function(){E(V,0)};function ge(b){L=b,k||(k=!0,X())}function $(b,F){P=E(function(){b(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(b){b.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,ge(C))},e.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<b?Math.floor(1e3/b):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(b){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var v=d;d=F;try{return b()}finally{d=v}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(b,F){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var v=d;d=b;try{return F()}finally{d=v}},e.unstable_scheduleCallback=function(b,F,v){var Y=e.unstable_now();switch(typeof v=="object"&&v!==null?(v=v.delay,v=typeof v=="number"&&0<v?Y+v:Y):v=Y,b){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=v+J,b={id:c++,callback:F,priorityLevel:b,startTime:v,expirationTime:J,sortIndex:-1},v>Y?(b.sortIndex=v,t(u,b),n(a)===null&&b===n(u)&&(x?(p(P),P=-1):x=!0,$(S,v-Y))):(b.sortIndex=J,t(a,b),y||h||(y=!0,ge(C))),b},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(b){var F=d;return function(){var v=d;d=F;try{return b.apply(this,arguments)}finally{d=v}}}})(Gp);Kp.exports=Gp;var Rv=Kp.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Nv=M,it=Rv;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Yp=new Set,Ti={};function Kn(e,t){Pr(e,t),Pr(e+"Capture",t)}function Pr(e,t){for(Ti[e]=t,e=0;e<t.length;e++)Yp.add(t[e])}var Gt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,_v=/^[: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]*$/,vf={},xf={};function zv(e){return Jl.call(xf,e)?!0:Jl.call(vf,e)?!1:_v.test(e)?xf[e]=!0:(vf[e]=!0,!1)}function Ov(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vv(e,t,n,r){if(t===null||typeof t>"u"||Ov(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ue(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ue(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){De[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var Su=/[\-:]([a-z])/g;function Cu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Su,Cu);De[t]=new Ue(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Su,Cu);De[t]=new Ue(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Su,Cu);De[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function Eu(e,t,n,r){var i=De.hasOwnProperty(t)?De[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vv(t,n,i,r)&&(n=null),r||i===null?zv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Zt=Nv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,lo=Symbol.for("react.element"),tr=Symbol.for("react.portal"),nr=Symbol.for("react.fragment"),Tu=Symbol.for("react.strict_mode"),ea=Symbol.for("react.profiler"),Qp=Symbol.for("react.provider"),Xp=Symbol.for("react.context"),Pu=Symbol.for("react.forward_ref"),ta=Symbol.for("react.suspense"),na=Symbol.for("react.suspense_list"),Au=Symbol.for("react.memo"),rn=Symbol.for("react.lazy"),qp=Symbol.for("react.offscreen"),wf=Symbol.iterator;function Wr(e){return e===null||typeof e!="object"?null:(e=wf&&e[wf]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,nl;function ni(e){if(nl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);nl=t&&t[1]||""}return`
`+nl+e}var rl=!1;function il(e,t){if(!e||rl)return"";rl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ni(e):""}function Fv(e){switch(e.tag){case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return ni("Suspense");case 19:return ni("SuspenseList");case 0:case 2:case 15:return e=il(e.type,!1),e;case 11:return e=il(e.type.render,!1),e;case 1:return e=il(e.type,!0),e;default:return""}}function ra(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nr:return"Fragment";case tr:return"Portal";case ea:return"Profiler";case Tu:return"StrictMode";case ta:return"Suspense";case na:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xp:return(e.displayName||"Context")+".Consumer";case Qp:return(e._context.displayName||"Context")+".Provider";case Pu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Au:return t=e.displayName||null,t!==null?t:ra(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return ra(e(t))}catch{}}return null}function jv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ra(t);case 8:return t===Tu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bv(e){var t=Zp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ao(e){e._valueTracker||(e._valueTracker=Bv(e))}function Jp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ia(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function em(e,t){t=t.checked,t!=null&&Eu(e,"checked",t,!1)}function oa(e,t){em(e,t);var n=vn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sa(e,t.type,n):t.hasOwnProperty("defaultValue")&&sa(e,t.type,vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sa(e,t,n){(t!=="number"||Xo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ri=Array.isArray;function vr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function la(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(ri(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vn(n)}}function tm(e,t){var n=vn(t.value),r=vn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ef(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function aa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uo,rm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(uo=uo||document.createElement("div"),uo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ui={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Uv=["Webkit","ms","Moz","O"];Object.keys(ui).forEach(function(e){Uv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ui[t]=ui[e]})});function im(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ui.hasOwnProperty(e)&&ui[e]?(""+t).trim():t+"px"}function om(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=im(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Hv=he({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ua(e,t){if(t){if(Hv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function ca(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fa=null;function Lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var da=null,xr=null,wr=null;function Tf(e){if(e=qi(e)){if(typeof da!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Ns(t),da(e.stateNode,e.type,t))}}function sm(e){xr?wr?wr.push(e):wr=[e]:xr=e}function lm(){if(xr){var e=xr,t=wr;if(wr=xr=null,Tf(e),t)for(e=0;e<t.length;e++)Tf(t[e])}}function am(e,t){return e(t)}function um(){}var ol=!1;function cm(e,t,n){if(ol)return e(t,n);ol=!0;try{return am(e,t,n)}finally{ol=!1,(xr!==null||wr!==null)&&(um(),lm())}}function Ai(e,t){var n=e.stateNode;if(n===null)return null;var r=Ns(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var ha=!1;if(Gt)try{var Kr={};Object.defineProperty(Kr,"passive",{get:function(){ha=!0}}),window.addEventListener("test",Kr,Kr),window.removeEventListener("test",Kr,Kr)}catch{ha=!1}function $v(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ci=!1,qo=null,Zo=!1,pa=null,Wv={onError:function(e){ci=!0,qo=e}};function Kv(e,t,n,r,i,o,s,l,a){ci=!1,qo=null,$v.apply(Wv,arguments)}function Gv(e,t,n,r,i,o,s,l,a){if(Kv.apply(this,arguments),ci){if(ci){var u=qo;ci=!1,qo=null}else throw Error(I(198));Zo||(Zo=!0,pa=u)}}function Gn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function fm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Pf(e){if(Gn(e)!==e)throw Error(I(188))}function Yv(e){var t=e.alternate;if(!t){if(t=Gn(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Pf(i),e;if(o===r)return Pf(i),t;o=o.sibling}throw Error(I(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function dm(e){return e=Yv(e),e!==null?hm(e):null}function hm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hm(e);if(t!==null)return t;e=e.sibling}return null}var pm=it.unstable_scheduleCallback,Af=it.unstable_cancelCallback,Qv=it.unstable_shouldYield,Xv=it.unstable_requestPaint,ve=it.unstable_now,qv=it.unstable_getCurrentPriorityLevel,Iu=it.unstable_ImmediatePriority,mm=it.unstable_UserBlockingPriority,Jo=it.unstable_NormalPriority,Zv=it.unstable_LowPriority,gm=it.unstable_IdlePriority,Ds=null,Rt=null;function Jv(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Ds,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:n1,e1=Math.log,t1=Math.LN2;function n1(e){return e>>>=0,e===0?32:31-(e1(e)/t1|0)|0}var co=64,fo=4194304;function ii(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function es(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=ii(l):(o&=s,o!==0&&(r=ii(o)))}else s=n&~i,s!==0?r=ii(s):o!==0&&(r=ii(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Et(t),i=1<<n,r|=e[n],t&=~i;return r}function r1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function i1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Et(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=r1(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function ma(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ym(){var e=co;return co<<=1,!(co&4194240)&&(co=64),e}function sl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function o1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Et(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Du(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Z=0;function vm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xm,bu,wm,km,Sm,ga=!1,ho=[],cn=null,fn=null,dn=null,Li=new Map,Ii=new Map,sn=[],s1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lf(e,t){switch(e){case"focusin":case"focusout":cn=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":dn=null;break;case"pointerover":case"pointerout":Li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(t.pointerId)}}function Gr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=qi(t),t!==null&&bu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function l1(e,t,n,r,i){switch(t){case"focusin":return cn=Gr(cn,e,t,n,r,i),!0;case"dragenter":return fn=Gr(fn,e,t,n,r,i),!0;case"mouseover":return dn=Gr(dn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Li.set(o,Gr(Li.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ii.set(o,Gr(Ii.get(o)||null,e,t,n,r,i)),!0}return!1}function Cm(e){var t=Nn(e.target);if(t!==null){var n=Gn(t);if(n!==null){if(t=n.tag,t===13){if(t=fm(n),t!==null){e.blockedOn=t,Sm(e.priority,function(){wm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ya(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fa=r,n.target.dispatchEvent(r),fa=null}else return t=qi(n),t!==null&&bu(t),e.blockedOn=n,!1;t.shift()}return!0}function If(e,t,n){Ro(e)&&n.delete(t)}function a1(){ga=!1,cn!==null&&Ro(cn)&&(cn=null),fn!==null&&Ro(fn)&&(fn=null),dn!==null&&Ro(dn)&&(dn=null),Li.forEach(If),Ii.forEach(If)}function Yr(e,t){e.blockedOn===t&&(e.blockedOn=null,ga||(ga=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,a1)))}function Di(e){function t(i){return Yr(i,e)}if(0<ho.length){Yr(ho[0],e);for(var n=1;n<ho.length;n++){var r=ho[n];r.blockedOn===e&&(r.blockedOn=null)}}for(cn!==null&&Yr(cn,e),fn!==null&&Yr(fn,e),dn!==null&&Yr(dn,e),Li.forEach(t),Ii.forEach(t),n=0;n<sn.length;n++)r=sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<sn.length&&(n=sn[0],n.blockedOn===null);)Cm(n),n.blockedOn===null&&sn.shift()}var kr=Zt.ReactCurrentBatchConfig,ts=!0;function u1(e,t,n,r){var i=Z,o=kr.transition;kr.transition=null;try{Z=1,Mu(e,t,n,r)}finally{Z=i,kr.transition=o}}function c1(e,t,n,r){var i=Z,o=kr.transition;kr.transition=null;try{Z=4,Mu(e,t,n,r)}finally{Z=i,kr.transition=o}}function Mu(e,t,n,r){if(ts){var i=ya(e,t,n,r);if(i===null)gl(e,t,r,ns,n),Lf(e,r);else if(l1(i,e,t,n,r))r.stopPropagation();else if(Lf(e,r),t&4&&-1<s1.indexOf(e)){for(;i!==null;){var o=qi(i);if(o!==null&&xm(o),o=ya(e,t,n,r),o===null&&gl(e,t,r,ns,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else gl(e,t,r,null,n)}}var ns=null;function ya(e,t,n,r){if(ns=null,e=Lu(r),e=Nn(e),e!==null)if(t=Gn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ns=e,null}function Em(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qv()){case Iu:return 1;case mm:return 4;case Jo:case Zv:return 16;case gm:return 536870912;default:return 16}default:return 16}}var an=null,Ru=null,No=null;function Tm(){if(No)return No;var e,t=Ru,n=t.length,r,i="value"in an?an.value:an.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return No=i.slice(e,1<r?1-r:void 0)}function _o(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function po(){return!0}function Df(){return!1}function lt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?po:Df,this.isPropagationStopped=Df,this}return he(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=po)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),t}var Or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=lt(Or),Xi=he({},Or,{view:0,detail:0}),f1=lt(Xi),ll,al,Qr,bs=he({},Xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_u,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qr&&(Qr&&e.type==="mousemove"?(ll=e.screenX-Qr.screenX,al=e.screenY-Qr.screenY):al=ll=0,Qr=e),ll)},movementY:function(e){return"movementY"in e?e.movementY:al}}),bf=lt(bs),d1=he({},bs,{dataTransfer:0}),h1=lt(d1),p1=he({},Xi,{relatedTarget:0}),ul=lt(p1),m1=he({},Or,{animationName:0,elapsedTime:0,pseudoElement:0}),g1=lt(m1),y1=he({},Or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v1=lt(y1),x1=he({},Or,{data:0}),Mf=lt(x1),w1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k1={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"},S1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=S1[e])?!!t[e]:!1}function _u(){return C1}var E1=he({},Xi,{key:function(e){if(e.key){var t=w1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_o(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?k1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_u,charCode:function(e){return e.type==="keypress"?_o(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_o(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T1=lt(E1),P1=he({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rf=lt(P1),A1=he({},Xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_u}),L1=lt(A1),I1=he({},Or,{propertyName:0,elapsedTime:0,pseudoElement:0}),D1=lt(I1),b1=he({},bs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),M1=lt(b1),R1=[9,13,27,32],zu=Gt&&"CompositionEvent"in window,fi=null;Gt&&"documentMode"in document&&(fi=document.documentMode);var N1=Gt&&"TextEvent"in window&&!fi,Pm=Gt&&(!zu||fi&&8<fi&&11>=fi),Nf=" ",_f=!1;function Am(e,t){switch(e){case"keyup":return R1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rr=!1;function _1(e,t){switch(e){case"compositionend":return Lm(t);case"keypress":return t.which!==32?null:(_f=!0,Nf);case"textInput":return e=t.data,e===Nf&&_f?null:e;default:return null}}function z1(e,t){if(rr)return e==="compositionend"||!zu&&Am(e,t)?(e=Tm(),No=Ru=an=null,rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pm&&t.locale!=="ko"?null:t.data;default:return null}}var O1={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 zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!O1[e.type]:t==="textarea"}function Im(e,t,n,r){sm(r),t=rs(t,"onChange"),0<t.length&&(n=new Nu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var di=null,bi=null;function V1(e){jm(e,0)}function Ms(e){var t=sr(e);if(Jp(t))return e}function F1(e,t){if(e==="change")return t}var Dm=!1;if(Gt){var cl;if(Gt){var fl="oninput"in document;if(!fl){var Of=document.createElement("div");Of.setAttribute("oninput","return;"),fl=typeof Of.oninput=="function"}cl=fl}else cl=!1;Dm=cl&&(!document.documentMode||9<document.documentMode)}function Vf(){di&&(di.detachEvent("onpropertychange",bm),bi=di=null)}function bm(e){if(e.propertyName==="value"&&Ms(bi)){var t=[];Im(t,bi,e,Lu(e)),cm(V1,t)}}function j1(e,t,n){e==="focusin"?(Vf(),di=t,bi=n,di.attachEvent("onpropertychange",bm)):e==="focusout"&&Vf()}function B1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ms(bi)}function U1(e,t){if(e==="click")return Ms(t)}function H1(e,t){if(e==="input"||e==="change")return Ms(t)}function $1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:$1;function Mi(e,t){if(Pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Jl.call(t,i)||!Pt(e[i],t[i]))return!1}return!0}function Ff(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var n=Ff(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ff(n)}}function Mm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rm(){for(var e=window,t=Xo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xo(e.document)}return t}function Ou(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function W1(e){var t=Rm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mm(n.ownerDocument.documentElement,n)){if(r!==null&&Ou(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=jf(n,o);var s=jf(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var K1=Gt&&"documentMode"in document&&11>=document.documentMode,ir=null,va=null,hi=null,xa=!1;function Bf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xa||ir==null||ir!==Xo(r)||(r=ir,"selectionStart"in r&&Ou(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hi&&Mi(hi,r)||(hi=r,r=rs(va,"onSelect"),0<r.length&&(t=new Nu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ir)))}function mo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var or={animationend:mo("Animation","AnimationEnd"),animationiteration:mo("Animation","AnimationIteration"),animationstart:mo("Animation","AnimationStart"),transitionend:mo("Transition","TransitionEnd")},dl={},Nm={};Gt&&(Nm=document.createElement("div").style,"AnimationEvent"in window||(delete or.animationend.animation,delete or.animationiteration.animation,delete or.animationstart.animation),"TransitionEvent"in window||delete or.transitionend.transition);function Rs(e){if(dl[e])return dl[e];if(!or[e])return e;var t=or[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Nm)return dl[e]=t[n];return e}var _m=Rs("animationend"),zm=Rs("animationiteration"),Om=Rs("animationstart"),Vm=Rs("transitionend"),Fm=new Map,Uf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Sn(e,t){Fm.set(e,t),Kn(t,[e])}for(var hl=0;hl<Uf.length;hl++){var pl=Uf[hl],G1=pl.toLowerCase(),Y1=pl[0].toUpperCase()+pl.slice(1);Sn(G1,"on"+Y1)}Sn(_m,"onAnimationEnd");Sn(zm,"onAnimationIteration");Sn(Om,"onAnimationStart");Sn("dblclick","onDoubleClick");Sn("focusin","onFocus");Sn("focusout","onBlur");Sn(Vm,"onTransitionEnd");Pr("onMouseEnter",["mouseout","mouseover"]);Pr("onMouseLeave",["mouseout","mouseover"]);Pr("onPointerEnter",["pointerout","pointerover"]);Pr("onPointerLeave",["pointerout","pointerover"]);Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="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(" "),Q1=new Set("cancel close invalid load scroll toggle".split(" ").concat(oi));function Hf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Gv(r,t,void 0,e),e.currentTarget=null}function jm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;Hf(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;Hf(i,l,u),o=a}}}if(Zo)throw e=pa,Zo=!1,pa=null,e}function se(e,t){var n=t[Ea];n===void 0&&(n=t[Ea]=new Set);var r=e+"__bubble";n.has(r)||(Bm(t,e,2,!1),n.add(r))}function ml(e,t,n){var r=0;t&&(r|=4),Bm(n,e,r,t)}var go="_reactListening"+Math.random().toString(36).slice(2);function Ri(e){if(!e[go]){e[go]=!0,Yp.forEach(function(n){n!=="selectionchange"&&(Q1.has(n)||ml(n,!1,e),ml(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[go]||(t[go]=!0,ml("selectionchange",!1,t))}}function Bm(e,t,n,r){switch(Em(t)){case 1:var i=u1;break;case 4:i=c1;break;default:i=Mu}n=i.bind(null,t,n,e),i=void 0,!ha||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function gl(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Nn(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}cm(function(){var u=o,c=Lu(n),f=[];e:{var d=Fm.get(e);if(d!==void 0){var h=Nu,y=e;switch(e){case"keypress":if(_o(n)===0)break e;case"keydown":case"keyup":h=T1;break;case"focusin":y="focus",h=ul;break;case"focusout":y="blur",h=ul;break;case"beforeblur":case"afterblur":h=ul;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=h1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=L1;break;case _m:case zm:case Om:h=g1;break;case Vm:h=D1;break;case"scroll":h=f1;break;case"wheel":h=M1;break;case"copy":case"cut":case"paste":h=v1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Rf}var x=(t&4)!==0,E=!x&&e==="scroll",p=x?d!==null?d+"Capture":null:d;x=[];for(var g=u,m;g!==null;){m=g;var S=m.stateNode;if(m.tag===5&&S!==null&&(m=S,p!==null&&(S=Ai(g,p),S!=null&&x.push(Ni(g,S,m)))),E)break;g=g.return}0<x.length&&(d=new h(d,y,null,n,c),f.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==fa&&(y=n.relatedTarget||n.fromElement)&&(Nn(y)||y[Yt]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?Nn(y):null,y!==null&&(E=Gn(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(x=bf,S="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(x=Rf,S="onPointerLeave",p="onPointerEnter",g="pointer"),E=h==null?d:sr(h),m=y==null?d:sr(y),d=new x(S,g+"leave",h,n,c),d.target=E,d.relatedTarget=m,S=null,Nn(c)===u&&(x=new x(p,g+"enter",y,n,c),x.target=m,x.relatedTarget=E,S=x),E=S,h&&y)t:{for(x=h,p=y,g=0,m=x;m;m=Jn(m))g++;for(m=0,S=p;S;S=Jn(S))m++;for(;0<g-m;)x=Jn(x),g--;for(;0<m-g;)p=Jn(p),m--;for(;g--;){if(x===p||p!==null&&x===p.alternate)break t;x=Jn(x),p=Jn(p)}x=null}else x=null;h!==null&&$f(f,d,h,x,!1),y!==null&&E!==null&&$f(f,E,y,x,!0)}}e:{if(d=u?sr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var C=F1;else if(zf(d))if(Dm)C=H1;else{C=B1;var k=j1}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=U1);if(C&&(C=C(e,u))){Im(f,C,n,c);break e}k&&k(e,d,u),e==="focusout"&&(k=d._wrapperState)&&k.controlled&&d.type==="number"&&sa(d,"number",d.value)}switch(k=u?sr(u):window,e){case"focusin":(zf(k)||k.contentEditable==="true")&&(ir=k,va=u,hi=null);break;case"focusout":hi=va=ir=null;break;case"mousedown":xa=!0;break;case"contextmenu":case"mouseup":case"dragend":xa=!1,Bf(f,n,c);break;case"selectionchange":if(K1)break;case"keydown":case"keyup":Bf(f,n,c)}var L;if(zu)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else rr?Am(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Pm&&n.locale!=="ko"&&(rr||P!=="onCompositionStart"?P==="onCompositionEnd"&&rr&&(L=Tm()):(an=c,Ru="value"in an?an.value:an.textContent,rr=!0)),k=rs(u,P),0<k.length&&(P=new Mf(P,e,null,n,c),f.push({event:P,listeners:k}),L?P.data=L:(L=Lm(n),L!==null&&(P.data=L)))),(L=N1?_1(e,n):z1(e,n))&&(u=rs(u,"onBeforeInput"),0<u.length&&(c=new Mf("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=L))}jm(f,t)})}function Ni(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rs(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ai(e,n),o!=null&&r.unshift(Ni(e,o,i)),o=Ai(e,t),o!=null&&r.push(Ni(e,o,i))),e=e.return}return r}function Jn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $f(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=Ai(n,o),a!=null&&s.unshift(Ni(n,a,l))):i||(a=Ai(n,o),a!=null&&s.push(Ni(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var X1=/\r\n?/g,q1=/\u0000|\uFFFD/g;function Wf(e){return(typeof e=="string"?e:""+e).replace(X1,`
`).replace(q1,"")}function yo(e,t,n){if(t=Wf(t),Wf(e)!==t&&n)throw Error(I(425))}function is(){}var wa=null,ka=null;function Sa(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ca=typeof setTimeout=="function"?setTimeout:void 0,Z1=typeof clearTimeout=="function"?clearTimeout:void 0,Kf=typeof Promise=="function"?Promise:void 0,J1=typeof queueMicrotask=="function"?queueMicrotask:typeof Kf<"u"?function(e){return Kf.resolve(null).then(e).catch(ex)}:Ca;function ex(e){setTimeout(function(){throw e})}function yl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Di(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Di(t)}function hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Gf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Vr=Math.random().toString(36).slice(2),bt="__reactFiber$"+Vr,_i="__reactProps$"+Vr,Yt="__reactContainer$"+Vr,Ea="__reactEvents$"+Vr,tx="__reactListeners$"+Vr,nx="__reactHandles$"+Vr;function Nn(e){var t=e[bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yt]||n[bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gf(e);e!==null;){if(n=e[bt])return n;e=Gf(e)}return t}e=n,n=e.parentNode}return null}function qi(e){return e=e[bt]||e[Yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Ns(e){return e[_i]||null}var Ta=[],lr=-1;function Cn(e){return{current:e}}function le(e){0>lr||(e.current=Ta[lr],Ta[lr]=null,lr--)}function re(e,t){lr++,Ta[lr]=e.current,e.current=t}var xn={},ze=Cn(xn),Ke=Cn(!1),Bn=xn;function Ar(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ge(e){return e=e.childContextTypes,e!=null}function os(){le(Ke),le(ze)}function Yf(e,t,n){if(ze.current!==xn)throw Error(I(168));re(ze,t),re(Ke,n)}function Um(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(I(108,jv(e)||"Unknown",i));return he({},n,r)}function ss(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Bn=ze.current,re(ze,e),re(Ke,Ke.current),!0}function Qf(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=Um(e,t,Bn),r.__reactInternalMemoizedMergedChildContext=e,le(Ke),le(ze),re(ze,e)):le(Ke),re(Ke,n)}var Bt=null,_s=!1,vl=!1;function Hm(e){Bt===null?Bt=[e]:Bt.push(e)}function rx(e){_s=!0,Hm(e)}function En(){if(!vl&&Bt!==null){vl=!0;var e=0,t=Z;try{var n=Bt;for(Z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Bt=null,_s=!1}catch(i){throw Bt!==null&&(Bt=Bt.slice(e+1)),pm(Iu,En),i}finally{Z=t,vl=!1}}return null}var ar=[],ur=0,ls=null,as=0,ct=[],ft=0,Un=null,Ut=1,Ht="";function In(e,t){ar[ur++]=as,ar[ur++]=ls,ls=e,as=t}function $m(e,t,n){ct[ft++]=Ut,ct[ft++]=Ht,ct[ft++]=Un,Un=e;var r=Ut;e=Ht;var i=32-Et(r)-1;r&=~(1<<i),n+=1;var o=32-Et(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ut=1<<32-Et(t)+i|n<<i|r,Ht=o+e}else Ut=1<<o|n<<i|r,Ht=e}function Vu(e){e.return!==null&&(In(e,1),$m(e,1,0))}function Fu(e){for(;e===ls;)ls=ar[--ur],ar[ur]=null,as=ar[--ur],ar[ur]=null;for(;e===Un;)Un=ct[--ft],ct[ft]=null,Ht=ct[--ft],ct[ft]=null,Ut=ct[--ft],ct[ft]=null}var nt=null,et=null,ue=!1,Ct=null;function Wm(e,t){var n=ht(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Xf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,nt=e,et=hn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,nt=e,et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Un!==null?{id:Ut,overflow:Ht}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,nt=e,et=null,!0):!1;default:return!1}}function Pa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Aa(e){if(ue){var t=et;if(t){var n=t;if(!Xf(e,t)){if(Pa(e))throw Error(I(418));t=hn(n.nextSibling);var r=nt;t&&Xf(e,t)?Wm(r,n):(e.flags=e.flags&-4097|2,ue=!1,nt=e)}}else{if(Pa(e))throw Error(I(418));e.flags=e.flags&-4097|2,ue=!1,nt=e}}}function qf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nt=e}function vo(e){if(e!==nt)return!1;if(!ue)return qf(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Sa(e.type,e.memoizedProps)),t&&(t=et)){if(Pa(e))throw Km(),Error(I(418));for(;t;)Wm(e,t),t=hn(t.nextSibling)}if(qf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){et=hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}et=null}}else et=nt?hn(e.stateNode.nextSibling):null;return!0}function Km(){for(var e=et;e;)e=hn(e.nextSibling)}function Lr(){et=nt=null,ue=!1}function ju(e){Ct===null?Ct=[e]:Ct.push(e)}var ix=Zt.ReactCurrentBatchConfig;function Xr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function xo(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zf(e){var t=e._init;return t(e._payload)}function Gm(e){function t(p,g){if(e){var m=p.deletions;m===null?(p.deletions=[g],p.flags|=16):m.push(g)}}function n(p,g){if(!e)return null;for(;g!==null;)t(p,g),g=g.sibling;return null}function r(p,g){for(p=new Map;g!==null;)g.key!==null?p.set(g.key,g):p.set(g.index,g),g=g.sibling;return p}function i(p,g){return p=yn(p,g),p.index=0,p.sibling=null,p}function o(p,g,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<g?(p.flags|=2,g):m):(p.flags|=2,g)):(p.flags|=1048576,g)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,g,m,S){return g===null||g.tag!==6?(g=Tl(m,p.mode,S),g.return=p,g):(g=i(g,m),g.return=p,g)}function a(p,g,m,S){var C=m.type;return C===nr?c(p,g,m.props.children,S,m.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rn&&Zf(C)===g.type)?(S=i(g,m.props),S.ref=Xr(p,g,m),S.return=p,S):(S=Uo(m.type,m.key,m.props,null,p.mode,S),S.ref=Xr(p,g,m),S.return=p,S)}function u(p,g,m,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==m.containerInfo||g.stateNode.implementation!==m.implementation?(g=Pl(m,p.mode,S),g.return=p,g):(g=i(g,m.children||[]),g.return=p,g)}function c(p,g,m,S,C){return g===null||g.tag!==7?(g=Fn(m,p.mode,S,C),g.return=p,g):(g=i(g,m),g.return=p,g)}function f(p,g,m){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Tl(""+g,p.mode,m),g.return=p,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case lo:return m=Uo(g.type,g.key,g.props,null,p.mode,m),m.ref=Xr(p,null,g),m.return=p,m;case tr:return g=Pl(g,p.mode,m),g.return=p,g;case rn:var S=g._init;return f(p,S(g._payload),m)}if(ri(g)||Wr(g))return g=Fn(g,p.mode,m,null),g.return=p,g;xo(p,g)}return null}function d(p,g,m,S){var C=g!==null?g.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:l(p,g,""+m,S);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case lo:return m.key===C?a(p,g,m,S):null;case tr:return m.key===C?u(p,g,m,S):null;case rn:return C=m._init,d(p,g,C(m._payload),S)}if(ri(m)||Wr(m))return C!==null?null:c(p,g,m,S,null);xo(p,m)}return null}function h(p,g,m,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(m)||null,l(g,p,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case lo:return p=p.get(S.key===null?m:S.key)||null,a(g,p,S,C);case tr:return p=p.get(S.key===null?m:S.key)||null,u(g,p,S,C);case rn:var k=S._init;return h(p,g,m,k(S._payload),C)}if(ri(S)||Wr(S))return p=p.get(m)||null,c(g,p,S,C,null);xo(g,S)}return null}function y(p,g,m,S){for(var C=null,k=null,L=g,P=g=0,z=null;L!==null&&P<m.length;P++){L.index>P?(z=L,L=null):z=L.sibling;var N=d(p,L,m[P],S);if(N===null){L===null&&(L=z);break}e&&L&&N.alternate===null&&t(p,L),g=o(N,g,P),k===null?C=N:k.sibling=N,k=N,L=z}if(P===m.length)return n(p,L),ue&&In(p,P),C;if(L===null){for(;P<m.length;P++)L=f(p,m[P],S),L!==null&&(g=o(L,g,P),k===null?C=L:k.sibling=L,k=L);return ue&&In(p,P),C}for(L=r(p,L);P<m.length;P++)z=h(L,p,P,m[P],S),z!==null&&(e&&z.alternate!==null&&L.delete(z.key===null?P:z.key),g=o(z,g,P),k===null?C=z:k.sibling=z,k=z);return e&&L.forEach(function(_){return t(p,_)}),ue&&In(p,P),C}function x(p,g,m,S){var C=Wr(m);if(typeof C!="function")throw Error(I(150));if(m=C.call(m),m==null)throw Error(I(151));for(var k=C=null,L=g,P=g=0,z=null,N=m.next();L!==null&&!N.done;P++,N=m.next()){L.index>P?(z=L,L=null):z=L.sibling;var _=d(p,L,N.value,S);if(_===null){L===null&&(L=z);break}e&&L&&_.alternate===null&&t(p,L),g=o(_,g,P),k===null?C=_:k.sibling=_,k=_,L=z}if(N.done)return n(p,L),ue&&In(p,P),C;if(L===null){for(;!N.done;P++,N=m.next())N=f(p,N.value,S),N!==null&&(g=o(N,g,P),k===null?C=N:k.sibling=N,k=N);return ue&&In(p,P),C}for(L=r(p,L);!N.done;P++,N=m.next())N=h(L,p,P,N.value,S),N!==null&&(e&&N.alternate!==null&&L.delete(N.key===null?P:N.key),g=o(N,g,P),k===null?C=N:k.sibling=N,k=N);return e&&L.forEach(function(V){return t(p,V)}),ue&&In(p,P),C}function E(p,g,m,S){if(typeof m=="object"&&m!==null&&m.type===nr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case lo:e:{for(var C=m.key,k=g;k!==null;){if(k.key===C){if(C=m.type,C===nr){if(k.tag===7){n(p,k.sibling),g=i(k,m.props.children),g.return=p,p=g;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rn&&Zf(C)===k.type){n(p,k.sibling),g=i(k,m.props),g.ref=Xr(p,k,m),g.return=p,p=g;break e}n(p,k);break}else t(p,k);k=k.sibling}m.type===nr?(g=Fn(m.props.children,p.mode,S,m.key),g.return=p,p=g):(S=Uo(m.type,m.key,m.props,null,p.mode,S),S.ref=Xr(p,g,m),S.return=p,p=S)}return s(p);case tr:e:{for(k=m.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===m.containerInfo&&g.stateNode.implementation===m.implementation){n(p,g.sibling),g=i(g,m.children||[]),g.return=p,p=g;break e}else{n(p,g);break}else t(p,g);g=g.sibling}g=Pl(m,p.mode,S),g.return=p,p=g}return s(p);case rn:return k=m._init,E(p,g,k(m._payload),S)}if(ri(m))return y(p,g,m,S);if(Wr(m))return x(p,g,m,S);xo(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,g!==null&&g.tag===6?(n(p,g.sibling),g=i(g,m),g.return=p,p=g):(n(p,g),g=Tl(m,p.mode,S),g.return=p,p=g),s(p)):n(p,g)}return E}var Ir=Gm(!0),Ym=Gm(!1),us=Cn(null),cs=null,cr=null,Bu=null;function Uu(){Bu=cr=cs=null}function Hu(e){var t=us.current;le(us),e._currentValue=t}function La(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sr(e,t){cs=e,Bu=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(Bu!==e)if(e={context:e,memoizedValue:t,next:null},cr===null){if(cs===null)throw Error(I(308));cr=e,cs.dependencies={lanes:0,firstContext:e}}else cr=cr.next=e;return t}var _n=null;function $u(e){_n===null?_n=[e]:_n.push(e)}function Qm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$u(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var on=!1;function Wu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qt(e,n)}return i=r.interleaved,i===null?(t.next=t,$u(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qt(e,n)}function zo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}function Jf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fs(e,t,n,r){var i=e.updateQueue;on=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,h=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,x=l;switch(d=t,h=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(h,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,d=typeof y=="function"?y.call(h,f,d):y,d==null)break e;f=he({},f,d);break e;case 2:on=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else h={eventTime:h,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=h,a=f):c=c.next=h,s|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);$n|=s,e.lanes=s,e.memoizedState=f}}function ed(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(I(191,i));i.call(r)}}}var Zi={},Nt=Cn(Zi),zi=Cn(Zi),Oi=Cn(Zi);function zn(e){if(e===Zi)throw Error(I(174));return e}function Ku(e,t){switch(re(Oi,t),re(zi,e),re(Nt,Zi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:aa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=aa(t,e)}le(Nt),re(Nt,t)}function Dr(){le(Nt),le(zi),le(Oi)}function qm(e){zn(Oi.current);var t=zn(Nt.current),n=aa(t,e.type);t!==n&&(re(zi,e),re(Nt,n))}function Gu(e){zi.current===e&&(le(Nt),le(zi))}var ce=Cn(0);function ds(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xl=[];function Yu(){for(var e=0;e<xl.length;e++)xl[e]._workInProgressVersionPrimary=null;xl.length=0}var Oo=Zt.ReactCurrentDispatcher,wl=Zt.ReactCurrentBatchConfig,Hn=0,de=null,Se=null,Ee=null,hs=!1,pi=!1,Vi=0,ox=0;function be(){throw Error(I(321))}function Qu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pt(e[n],t[n]))return!1;return!0}function Xu(e,t,n,r,i,o){if(Hn=o,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oo.current=e===null||e.memoizedState===null?ux:cx,e=n(r,i),pi){o=0;do{if(pi=!1,Vi=0,25<=o)throw Error(I(301));o+=1,Ee=Se=null,t.updateQueue=null,Oo.current=fx,e=n(r,i)}while(pi)}if(Oo.current=ps,t=Se!==null&&Se.next!==null,Hn=0,Ee=Se=de=null,hs=!1,t)throw Error(I(300));return e}function qu(){var e=Vi!==0;return Vi=0,e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?de.memoizedState=Ee=e:Ee=Ee.next=e,Ee}function gt(){if(Se===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=Ee===null?de.memoizedState:Ee.next;if(t!==null)Ee=t,Se=e;else{if(e===null)throw Error(I(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Ee===null?de.memoizedState=Ee=e:Ee=Ee.next=e}return Ee}function Fi(e,t){return typeof t=="function"?t(e):t}function kl(e){var t=gt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=Se,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var c=u.lane;if((Hn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,s=r):a=a.next=f,de.lanes|=c,$n|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,Pt(r,t.memoizedState)||(We=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,de.lanes|=o,$n|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sl(e){var t=gt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Pt(o,t.memoizedState)||(We=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Zm(){}function Jm(e,t){var n=de,r=gt(),i=t(),o=!Pt(r.memoizedState,i);if(o&&(r.memoizedState=i,We=!0),r=r.queue,Zu(ng.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ee!==null&&Ee.memoizedState.tag&1){if(n.flags|=2048,ji(9,tg.bind(null,n,r,i,t),void 0,null),Te===null)throw Error(I(349));Hn&30||eg(n,t,i)}return i}function eg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function tg(e,t,n,r){t.value=n,t.getSnapshot=r,rg(t)&&ig(e)}function ng(e,t,n){return n(function(){rg(t)&&ig(e)})}function rg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pt(e,n)}catch{return!0}}function ig(e){var t=Qt(e,1);t!==null&&Tt(t,e,1,-1)}function td(e){var t=It();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:e},t.queue=e,e=e.dispatch=ax.bind(null,de,e),[t.memoizedState,e]}function ji(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function og(){return gt().memoizedState}function Vo(e,t,n,r){var i=It();de.flags|=e,i.memoizedState=ji(1|t,n,void 0,r===void 0?null:r)}function zs(e,t,n,r){var i=gt();r=r===void 0?null:r;var o=void 0;if(Se!==null){var s=Se.memoizedState;if(o=s.destroy,r!==null&&Qu(r,s.deps)){i.memoizedState=ji(t,n,o,r);return}}de.flags|=e,i.memoizedState=ji(1|t,n,o,r)}function nd(e,t){return Vo(8390656,8,e,t)}function Zu(e,t){return zs(2048,8,e,t)}function sg(e,t){return zs(4,2,e,t)}function lg(e,t){return zs(4,4,e,t)}function ag(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ug(e,t,n){return n=n!=null?n.concat([e]):null,zs(4,4,ag.bind(null,t,e),n)}function Ju(){}function cg(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fg(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Qu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dg(e,t,n){return Hn&21?(Pt(n,t)||(n=ym(),de.lanes|=n,$n|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,We=!0),e.memoizedState=n)}function sx(e,t){var n=Z;Z=n!==0&&4>n?n:4,e(!0);var r=wl.transition;wl.transition={};try{e(!1),t()}finally{Z=n,wl.transition=r}}function hg(){return gt().memoizedState}function lx(e,t,n){var r=gn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pg(e))mg(t,n);else if(n=Qm(e,t,n,r),n!==null){var i=je();Tt(n,e,r,i),gg(n,t,r)}}function ax(e,t,n){var r=gn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pg(e))mg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Pt(l,s)){var a=t.interleaved;a===null?(i.next=i,$u(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Qm(e,t,i,r),n!==null&&(i=je(),Tt(n,e,r,i),gg(n,t,r))}}function pg(e){var t=e.alternate;return e===de||t!==null&&t===de}function mg(e,t){pi=hs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Du(e,n)}}var ps={readContext:mt,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},ux={readContext:mt,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:nd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vo(4194308,4,ag.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vo(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lx.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:td,useDebugValue:Ju,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=td(!1),t=e[0];return e=sx.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,i=It();if(ue){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Te===null)throw Error(I(349));Hn&30||eg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,nd(ng.bind(null,r,o,e),[e]),r.flags|=2048,ji(9,tg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=It(),t=Te.identifierPrefix;if(ue){var n=Ht,r=Ut;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ox++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cx={readContext:mt,useCallback:cg,useContext:mt,useEffect:Zu,useImperativeHandle:ug,useInsertionEffect:sg,useLayoutEffect:lg,useMemo:fg,useReducer:kl,useRef:og,useState:function(){return kl(Fi)},useDebugValue:Ju,useDeferredValue:function(e){var t=gt();return dg(t,Se.memoizedState,e)},useTransition:function(){var e=kl(Fi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Zm,useSyncExternalStore:Jm,useId:hg,unstable_isNewReconciler:!1},fx={readContext:mt,useCallback:cg,useContext:mt,useEffect:Zu,useImperativeHandle:ug,useInsertionEffect:sg,useLayoutEffect:lg,useMemo:fg,useReducer:Sl,useRef:og,useState:function(){return Sl(Fi)},useDebugValue:Ju,useDeferredValue:function(e){var t=gt();return Se===null?t.memoizedState=e:dg(t,Se.memoizedState,e)},useTransition:function(){var e=Sl(Fi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Zm,useSyncExternalStore:Jm,useId:hg,unstable_isNewReconciler:!1};function kt(e,t){if(e&&e.defaultProps){t=he({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ia(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:he({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Os={isMounted:function(e){return(e=e._reactInternals)?Gn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=je(),i=gn(e),o=$t(r,i);o.payload=t,n!=null&&(o.callback=n),t=pn(e,o,i),t!==null&&(Tt(t,e,i,r),zo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=je(),i=gn(e),o=$t(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pn(e,o,i),t!==null&&(Tt(t,e,i,r),zo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=je(),r=gn(e),i=$t(n,r);i.tag=2,t!=null&&(i.callback=t),t=pn(e,i,r),t!==null&&(Tt(t,e,r,n),zo(t,e,r))}};function rd(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Mi(n,r)||!Mi(i,o):!0}function yg(e,t,n){var r=!1,i=xn,o=t.contextType;return typeof o=="object"&&o!==null?o=mt(o):(i=Ge(t)?Bn:ze.current,r=t.contextTypes,o=(r=r!=null)?Ar(e,i):xn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Os,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function id(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function Da(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Wu(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=mt(o):(o=Ge(t)?Bn:ze.current,i.context=Ar(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ia(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Os.enqueueReplaceState(i,i.state,null),fs(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function br(e,t){try{var n="",r=t;do n+=Fv(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Cl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ba(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dx=typeof WeakMap=="function"?WeakMap:Map;function vg(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gs||(gs=!0,Ba=r),ba(e,t)},n}function xg(e,t,n){n=$t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ba(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ba(e,t),typeof r!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function od(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new dx;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Px.bind(null,e,t,n),t.then(e,e))}function sd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ld(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=$t(-1,1),t.tag=2,pn(n,t,1))),n.lanes|=1),e)}var hx=Zt.ReactCurrentOwner,We=!1;function Ve(e,t,n,r){t.child=e===null?Ym(t,null,n,r):Ir(t,e.child,n,r)}function ad(e,t,n,r,i){n=n.render;var o=t.ref;return Sr(t,i),r=Xu(e,t,n,r,o,i),n=qu(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(ue&&n&&Vu(t),t.flags|=1,Ve(e,t,r,i),t.child)}function ud(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!lc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,wg(e,t,o,r,i)):(e=Uo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Mi,n(s,r)&&e.ref===t.ref)return Xt(e,t,i)}return t.flags|=1,e=yn(o,r),e.ref=t.ref,e.return=t,t.child=e}function wg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Mi(o,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(We=!0);else return t.lanes=e.lanes,Xt(e,t,i)}return Ma(e,t,n,r,i)}function kg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(dr,Je),Je|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(dr,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,re(dr,Je),Je|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,re(dr,Je),Je|=r;return Ve(e,t,i,n),t.child}function Sg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ma(e,t,n,r,i){var o=Ge(n)?Bn:ze.current;return o=Ar(t,o),Sr(t,i),n=Xu(e,t,n,r,o,i),r=qu(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(ue&&r&&Vu(t),t.flags|=1,Ve(e,t,n,i),t.child)}function cd(e,t,n,r,i){if(Ge(n)){var o=!0;ss(t)}else o=!1;if(Sr(t,i),t.stateNode===null)Fo(e,t),yg(t,n,r),Da(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=mt(u):(u=Ge(n)?Bn:ze.current,u=Ar(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&id(t,s,r,u),on=!1;var d=t.memoizedState;s.state=d,fs(t,r,s,i),a=t.memoizedState,l!==r||d!==a||Ke.current||on?(typeof c=="function"&&(Ia(t,n,c,r),a=t.memoizedState),(l=on||rd(t,n,l,r,d,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Xm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:kt(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=mt(a):(a=Ge(n)?Bn:ze.current,a=Ar(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&id(t,s,r,a),on=!1,d=t.memoizedState,s.state=d,fs(t,r,s,i);var y=t.memoizedState;l!==f||d!==y||Ke.current||on?(typeof h=="function"&&(Ia(t,n,h,r),y=t.memoizedState),(u=on||rd(t,n,u,r,d,y,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ra(e,t,n,r,o,i)}function Ra(e,t,n,r,i,o){Sg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Qf(t,n,!1),Xt(e,t,o);r=t.stateNode,hx.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ir(t,e.child,null,o),t.child=Ir(t,null,l,o)):Ve(e,t,l,o),t.memoizedState=r.state,i&&Qf(t,n,!0),t.child}function Cg(e){var t=e.stateNode;t.pendingContext?Yf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yf(e,t.context,!1),Ku(e,t.containerInfo)}function fd(e,t,n,r,i){return Lr(),ju(i),t.flags|=256,Ve(e,t,n,r),t.child}var Na={dehydrated:null,treeContext:null,retryLane:0};function _a(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eg(e,t,n){var r=t.pendingProps,i=ce.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),re(ce,i&1),e===null)return Aa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=js(s,r,0,null),e=Fn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=_a(n),t.memoizedState=Na,e):ec(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return px(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=yn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=yn(l,o):(o=Fn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?_a(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Na,r}return o=e.child,e=o.sibling,r=yn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ec(e,t){return t=js({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wo(e,t,n,r){return r!==null&&ju(r),Ir(t,e.child,null,n),e=ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function px(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Cl(Error(I(422))),wo(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=js({mode:"visible",children:r.children},i,0,null),o=Fn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ir(t,e.child,null,s),t.child.memoizedState=_a(s),t.memoizedState=Na,o);if(!(t.mode&1))return wo(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(I(419)),r=Cl(o,r,void 0),wo(e,t,s,r)}if(l=(s&e.childLanes)!==0,We||l){if(r=Te,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Qt(e,i),Tt(r,e,i,-1))}return sc(),r=Cl(Error(I(421))),wo(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ax.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,et=hn(i.nextSibling),nt=t,ue=!0,Ct=null,e!==null&&(ct[ft++]=Ut,ct[ft++]=Ht,ct[ft++]=Un,Ut=e.id,Ht=e.overflow,Un=t),t=ec(t,r.children),t.flags|=4096,t)}function dd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),La(e.return,t,n)}function El(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Tg(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ve(e,t,r.children,n),r=ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dd(e,n,t);else if(e.tag===19)dd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(re(ce,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ds(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),El(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ds(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}El(t,!0,n,null,o);break;case"together":El(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$n|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mx(e,t,n){switch(t.tag){case 3:Cg(t),Lr();break;case 5:qm(t);break;case 1:Ge(t.type)&&ss(t);break;case 4:Ku(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;re(us,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(ce,ce.current&1),t.flags|=128,null):n&t.child.childLanes?Eg(e,t,n):(re(ce,ce.current&1),e=Xt(e,t,n),e!==null?e.sibling:null);re(ce,ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Tg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),re(ce,ce.current),r)break;return null;case 22:case 23:return t.lanes=0,kg(e,t,n)}return Xt(e,t,n)}var Pg,za,Ag,Lg;Pg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};za=function(){};Ag=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zn(Nt.current);var o=null;switch(n){case"input":i=ia(e,i),r=ia(e,r),o=[];break;case"select":i=he({},i,{value:void 0}),r=he({},r,{value:void 0}),o=[];break;case"textarea":i=la(e,i),r=la(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=is)}ua(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ti.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ti.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&se("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Lg=function(e,t,n,r){n!==r&&(t.flags|=4)};function qr(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gx(e,t,n){var r=t.pendingProps;switch(Fu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Ge(t.type)&&os(),Me(t),null;case 3:return r=t.stateNode,Dr(),le(Ke),le(ze),Yu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(vo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&($a(Ct),Ct=null))),za(e,t),Me(t),null;case 5:Gu(t);var i=zn(Oi.current);if(n=t.type,e!==null&&t.stateNode!=null)Ag(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Me(t),null}if(e=zn(Nt.current),vo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[bt]=t,r[_i]=o,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(i=0;i<oi.length;i++)se(oi[i],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":kf(r,o),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},se("invalid",r);break;case"textarea":Cf(r,o),se("invalid",r)}ua(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&yo(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&yo(r.textContent,l,e),i=["children",""+l]):Ti.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&se("scroll",r)}switch(n){case"input":ao(r),Sf(r,o,!0);break;case"textarea":ao(r),Ef(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=is)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[bt]=t,e[_i]=r,Pg(e,t,!1,!1),t.stateNode=e;e:{switch(s=ca(n,r),n){case"dialog":se("cancel",e),se("close",e),i=r;break;case"iframe":case"object":case"embed":se("load",e),i=r;break;case"video":case"audio":for(i=0;i<oi.length;i++)se(oi[i],e);i=r;break;case"source":se("error",e),i=r;break;case"img":case"image":case"link":se("error",e),se("load",e),i=r;break;case"details":se("toggle",e),i=r;break;case"input":kf(e,r),i=ia(e,r),se("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=he({},r,{value:void 0}),se("invalid",e);break;case"textarea":Cf(e,r),i=la(e,r),se("invalid",e);break;default:i=r}ua(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?om(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&rm(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Pi(e,a):typeof a=="number"&&Pi(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ti.hasOwnProperty(o)?a!=null&&o==="onScroll"&&se("scroll",e):a!=null&&Eu(e,o,a,s))}switch(n){case"input":ao(e),Sf(e,r,!1);break;case"textarea":ao(e),Ef(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?vr(e,!!r.multiple,o,!1):r.defaultValue!=null&&vr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=is)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Me(t),null;case 6:if(e&&t.stateNode!=null)Lg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=zn(Oi.current),zn(Nt.current),vo(t)){if(r=t.stateNode,n=t.memoizedProps,r[bt]=t,(o=r.nodeValue!==n)&&(e=nt,e!==null))switch(e.tag){case 3:yo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yo(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[bt]=t,t.stateNode=r}return Me(t),null;case 13:if(le(ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&et!==null&&t.mode&1&&!(t.flags&128))Km(),Lr(),t.flags|=98560,o=!1;else if(o=vo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(I(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(I(317));o[bt]=t}else Lr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),o=!1}else Ct!==null&&($a(Ct),Ct=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ce.current&1?Ce===0&&(Ce=3):sc())),t.updateQueue!==null&&(t.flags|=4),Me(t),null);case 4:return Dr(),za(e,t),e===null&&Ri(t.stateNode.containerInfo),Me(t),null;case 10:return Hu(t.type._context),Me(t),null;case 17:return Ge(t.type)&&os(),Me(t),null;case 19:if(le(ce),o=t.memoizedState,o===null)return Me(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)qr(o,!1);else{if(Ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ds(e),s!==null){for(t.flags|=128,qr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(ce,ce.current&1|2),t.child}e=e.sibling}o.tail!==null&&ve()>Mr&&(t.flags|=128,r=!0,qr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ds(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ue)return Me(t),null}else 2*ve()-o.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,qr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ve(),t.sibling=null,n=ce.current,re(ce,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return oc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function yx(e,t){switch(Fu(t),t.tag){case 1:return Ge(t.type)&&os(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dr(),le(Ke),le(ze),Yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gu(t),null;case 13:if(le(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Lr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(ce),null;case 4:return Dr(),null;case 10:return Hu(t.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var ko=!1,Ne=!1,vx=typeof WeakSet=="function"?WeakSet:Set,O=null;function fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Oa(e,t,n){try{n()}catch(r){me(e,t,r)}}var hd=!1;function xx(e,t){if(wa=ts,e=Rm(),Ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ka={focusedElem:e,selectionRange:n},ts=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,E=y.memoizedState,p=t.stateNode,g=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:kt(t.type,x),E);p.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(S){me(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return y=hd,hd=!1,y}function mi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Oa(t,n,o)}i=i.next}while(i!==r)}}function Vs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Va(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ig(e){var t=e.alternate;t!==null&&(e.alternate=null,Ig(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[_i],delete t[Ea],delete t[tx],delete t[nx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Dg(e){return e.tag===5||e.tag===3||e.tag===4}function pd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=is));else if(r!==4&&(e=e.child,e!==null))for(Fa(e,t,n),e=e.sibling;e!==null;)Fa(e,t,n),e=e.sibling}function ja(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ja(e,t,n),e=e.sibling;e!==null;)ja(e,t,n),e=e.sibling}var Ae=null,St=!1;function en(e,t,n){for(n=n.child;n!==null;)bg(e,t,n),n=n.sibling}function bg(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Ds,n)}catch{}switch(n.tag){case 5:Ne||fr(n,t);case 6:var r=Ae,i=St;Ae=null,en(e,t,n),Ae=r,St=i,Ae!==null&&(St?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(St?(e=Ae,n=n.stateNode,e.nodeType===8?yl(e.parentNode,n):e.nodeType===1&&yl(e,n),Di(e)):yl(Ae,n.stateNode));break;case 4:r=Ae,i=St,Ae=n.stateNode.containerInfo,St=!0,en(e,t,n),Ae=r,St=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Oa(n,t,s),i=i.next}while(i!==r)}en(e,t,n);break;case 1:if(!Ne&&(fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){me(n,t,l)}en(e,t,n);break;case 21:en(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,en(e,t,n),Ne=r):en(e,t,n);break;default:en(e,t,n)}}function md(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vx),t.forEach(function(r){var i=Lx.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Ae=l.stateNode,St=!1;break e;case 3:Ae=l.stateNode.containerInfo,St=!0;break e;case 4:Ae=l.stateNode.containerInfo,St=!0;break e}l=l.return}if(Ae===null)throw Error(I(160));bg(o,s,i),Ae=null,St=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){me(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mg(t,e),t=t.sibling}function Mg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),Lt(e),r&4){try{mi(3,e,e.return),Vs(3,e)}catch(x){me(e,e.return,x)}try{mi(5,e,e.return)}catch(x){me(e,e.return,x)}}break;case 1:xt(t,e),Lt(e),r&512&&n!==null&&fr(n,n.return);break;case 5:if(xt(t,e),Lt(e),r&512&&n!==null&&fr(n,n.return),e.flags&32){var i=e.stateNode;try{Pi(i,"")}catch(x){me(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&em(i,o),ca(l,s);var u=ca(l,o);for(s=0;s<a.length;s+=2){var c=a[s],f=a[s+1];c==="style"?om(i,f):c==="dangerouslySetInnerHTML"?rm(i,f):c==="children"?Pi(i,f):Eu(i,c,f,u)}switch(l){case"input":oa(i,o);break;case"textarea":tm(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?vr(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?vr(i,!!o.multiple,o.defaultValue,!0):vr(i,!!o.multiple,o.multiple?[]:"",!1))}i[_i]=o}catch(x){me(e,e.return,x)}}break;case 6:if(xt(t,e),Lt(e),r&4){if(e.stateNode===null)throw Error(I(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){me(e,e.return,x)}}break;case 3:if(xt(t,e),Lt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(x){me(e,e.return,x)}break;case 4:xt(t,e),Lt(e);break;case 13:xt(t,e),Lt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(rc=ve())),r&4&&md(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(u=Ne)||c,xt(t,e),Ne=u):xt(t,e),Lt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(O=e,c=e.child;c!==null;){for(f=O=c;O!==null;){switch(d=O,h=d.child,d.tag){case 0:case 11:case 14:case 15:mi(4,d,d.return);break;case 1:fr(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(x){me(r,n,x)}}break;case 5:fr(d,d.return);break;case 22:if(d.memoizedState!==null){yd(f);continue}}h!==null?(h.return=d,O=h):yd(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=im("display",s))}catch(x){me(e,e.return,x)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){me(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:xt(t,e),Lt(e),r&4&&md(e);break;case 21:break;default:xt(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Dg(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Pi(i,""),r.flags&=-33);var o=pd(e);ja(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=pd(e);Fa(e,l,s);break;default:throw Error(I(161))}}catch(a){me(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wx(e,t,n){O=e,Rg(e)}function Rg(e,t,n){for(var r=(e.mode&1)!==0;O!==null;){var i=O,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ko;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Ne;l=ko;var u=Ne;if(ko=s,(Ne=a)&&!u)for(O=i;O!==null;)s=O,a=s.child,s.tag===22&&s.memoizedState!==null?vd(i):a!==null?(a.return=s,O=a):vd(i);for(;o!==null;)O=o,Rg(o),o=o.sibling;O=i,ko=l,Ne=u}gd(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,O=o):gd(e)}}function gd(e){for(;O!==null;){var t=O;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||Vs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ed(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ed(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Di(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}Ne||t.flags&512&&Va(t)}catch(d){me(t,t.return,d)}}if(t===e){O=null;break}if(n=t.sibling,n!==null){n.return=t.return,O=n;break}O=t.return}}function yd(e){for(;O!==null;){var t=O;if(t===e){O=null;break}var n=t.sibling;if(n!==null){n.return=t.return,O=n;break}O=t.return}}function vd(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vs(4,t)}catch(a){me(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){me(t,i,a)}}var o=t.return;try{Va(t)}catch(a){me(t,o,a)}break;case 5:var s=t.return;try{Va(t)}catch(a){me(t,s,a)}}}catch(a){me(t,t.return,a)}if(t===e){O=null;break}var l=t.sibling;if(l!==null){l.return=t.return,O=l;break}O=t.return}}var kx=Math.ceil,ms=Zt.ReactCurrentDispatcher,tc=Zt.ReactCurrentOwner,pt=Zt.ReactCurrentBatchConfig,Q=0,Te=null,we=null,Ie=0,Je=0,dr=Cn(0),Ce=0,Bi=null,$n=0,Fs=0,nc=0,gi=null,$e=null,rc=0,Mr=1/0,jt=null,gs=!1,Ba=null,mn=null,So=!1,un=null,ys=0,yi=0,Ua=null,jo=-1,Bo=0;function je(){return Q&6?ve():jo!==-1?jo:jo=ve()}function gn(e){return e.mode&1?Q&2&&Ie!==0?Ie&-Ie:ix.transition!==null?(Bo===0&&(Bo=ym()),Bo):(e=Z,e!==0||(e=window.event,e=e===void 0?16:Em(e.type)),e):1}function Tt(e,t,n,r){if(50<yi)throw yi=0,Ua=null,Error(I(185));Qi(e,n,r),(!(Q&2)||e!==Te)&&(e===Te&&(!(Q&2)&&(Fs|=n),Ce===4&&ln(e,Ie)),Ye(e,r),n===1&&Q===0&&!(t.mode&1)&&(Mr=ve()+500,_s&&En()))}function Ye(e,t){var n=e.callbackNode;i1(e,t);var r=es(e,e===Te?Ie:0);if(r===0)n!==null&&Af(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Af(n),t===1)e.tag===0?rx(xd.bind(null,e)):Hm(xd.bind(null,e)),J1(function(){!(Q&6)&&En()}),n=null;else{switch(vm(r)){case 1:n=Iu;break;case 4:n=mm;break;case 16:n=Jo;break;case 536870912:n=gm;break;default:n=Jo}n=Bg(n,Ng.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ng(e,t){if(jo=-1,Bo=0,Q&6)throw Error(I(327));var n=e.callbackNode;if(Cr()&&e.callbackNode!==n)return null;var r=es(e,e===Te?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=vs(e,r);else{t=r;var i=Q;Q|=2;var o=zg();(Te!==e||Ie!==t)&&(jt=null,Mr=ve()+500,Vn(e,t));do try{Ex();break}catch(l){_g(e,l)}while(!0);Uu(),ms.current=o,Q=i,we!==null?t=0:(Te=null,Ie=0,t=Ce)}if(t!==0){if(t===2&&(i=ma(e),i!==0&&(r=i,t=Ha(e,i))),t===1)throw n=Bi,Vn(e,0),ln(e,r),Ye(e,ve()),n;if(t===6)ln(e,r);else{if(i=e.current.alternate,!(r&30)&&!Sx(i)&&(t=vs(e,r),t===2&&(o=ma(e),o!==0&&(r=o,t=Ha(e,o))),t===1))throw n=Bi,Vn(e,0),ln(e,r),Ye(e,ve()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:Dn(e,$e,jt);break;case 3:if(ln(e,r),(r&130023424)===r&&(t=rc+500-ve(),10<t)){if(es(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){je(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ca(Dn.bind(null,e,$e,jt),t);break}Dn(e,$e,jt);break;case 4:if(ln(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Et(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kx(r/1960))-r,10<r){e.timeoutHandle=Ca(Dn.bind(null,e,$e,jt),r);break}Dn(e,$e,jt);break;case 5:Dn(e,$e,jt);break;default:throw Error(I(329))}}}return Ye(e,ve()),e.callbackNode===n?Ng.bind(null,e):null}function Ha(e,t){var n=gi;return e.current.memoizedState.isDehydrated&&(Vn(e,t).flags|=256),e=vs(e,t),e!==2&&(t=$e,$e=n,t!==null&&$a(t)),e}function $a(e){$e===null?$e=e:$e.push.apply($e,e)}function Sx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Pt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ln(e,t){for(t&=~nc,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function xd(e){if(Q&6)throw Error(I(327));Cr();var t=es(e,0);if(!(t&1))return Ye(e,ve()),null;var n=vs(e,t);if(e.tag!==0&&n===2){var r=ma(e);r!==0&&(t=r,n=Ha(e,r))}if(n===1)throw n=Bi,Vn(e,0),ln(e,t),Ye(e,ve()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e,$e,jt),Ye(e,ve()),null}function ic(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(Mr=ve()+500,_s&&En())}}function Wn(e){un!==null&&un.tag===0&&!(Q&6)&&Cr();var t=Q;Q|=1;var n=pt.transition,r=Z;try{if(pt.transition=null,Z=1,e)return e()}finally{Z=r,pt.transition=n,Q=t,!(Q&6)&&En()}}function oc(){Je=dr.current,le(dr)}function Vn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Z1(n)),we!==null)for(n=we.return;n!==null;){var r=n;switch(Fu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&os();break;case 3:Dr(),le(Ke),le(ze),Yu();break;case 5:Gu(r);break;case 4:Dr();break;case 13:le(ce);break;case 19:le(ce);break;case 10:Hu(r.type._context);break;case 22:case 23:oc()}n=n.return}if(Te=e,we=e=yn(e.current,null),Ie=Je=t,Ce=0,Bi=null,nc=Fs=$n=0,$e=gi=null,_n!==null){for(t=0;t<_n.length;t++)if(n=_n[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}_n=null}return e}function _g(e,t){do{var n=we;try{if(Uu(),Oo.current=ps,hs){for(var r=de.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}hs=!1}if(Hn=0,Ee=Se=de=null,pi=!1,Vi=0,tc.current=null,n===null||n.return===null){Ce=1,Bi=t,we=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=Ie,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=sd(s);if(h!==null){h.flags&=-257,ld(h,s,l,o,t),h.mode&1&&od(o,u,t),t=h,a=u;var y=t.updateQueue;if(y===null){var x=new Set;x.add(a),t.updateQueue=x}else y.add(a);break e}else{if(!(t&1)){od(o,u,t),sc();break e}a=Error(I(426))}}else if(ue&&l.mode&1){var E=sd(s);if(E!==null){!(E.flags&65536)&&(E.flags|=256),ld(E,s,l,o,t),ju(br(a,l));break e}}o=a=br(a,l),Ce!==4&&(Ce=2),gi===null?gi=[o]:gi.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=vg(o,a,t);Jf(o,p);break e;case 1:l=a;var g=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(mn===null||!mn.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=xg(o,l,t);Jf(o,S);break e}}o=o.return}while(o!==null)}Vg(n)}catch(C){t=C,we===n&&n!==null&&(we=n=n.return);continue}break}while(!0)}function zg(){var e=ms.current;return ms.current=ps,e===null?ps:e}function sc(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Te===null||!($n&268435455)&&!(Fs&268435455)||ln(Te,Ie)}function vs(e,t){var n=Q;Q|=2;var r=zg();(Te!==e||Ie!==t)&&(jt=null,Vn(e,t));do try{Cx();break}catch(i){_g(e,i)}while(!0);if(Uu(),Q=n,ms.current=r,we!==null)throw Error(I(261));return Te=null,Ie=0,Ce}function Cx(){for(;we!==null;)Og(we)}function Ex(){for(;we!==null&&!Qv();)Og(we)}function Og(e){var t=jg(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?Vg(e):we=t,tc.current=null}function Vg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yx(n,t),n!==null){n.flags&=32767,we=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,we=null;return}}else if(n=gx(n,t,Je),n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Ce===0&&(Ce=5)}function Dn(e,t,n){var r=Z,i=pt.transition;try{pt.transition=null,Z=1,Tx(e,t,n,r)}finally{pt.transition=i,Z=r}return null}function Tx(e,t,n,r){do Cr();while(un!==null);if(Q&6)throw Error(I(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(o1(e,o),e===Te&&(we=Te=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||So||(So=!0,Bg(Jo,function(){return Cr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=pt.transition,pt.transition=null;var s=Z;Z=1;var l=Q;Q|=4,tc.current=null,xx(e,n),Mg(n,e),W1(ka),ts=!!wa,ka=wa=null,e.current=n,wx(n),Xv(),Q=l,Z=s,pt.transition=o}else e.current=n;if(So&&(So=!1,un=e,ys=i),o=e.pendingLanes,o===0&&(mn=null),Jv(n.stateNode),Ye(e,ve()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(gs)throw gs=!1,e=Ba,Ba=null,e;return ys&1&&e.tag!==0&&Cr(),o=e.pendingLanes,o&1?e===Ua?yi++:(yi=0,Ua=e):yi=0,En(),null}function Cr(){if(un!==null){var e=vm(ys),t=pt.transition,n=Z;try{if(pt.transition=null,Z=16>e?16:e,un===null)var r=!1;else{if(e=un,un=null,ys=0,Q&6)throw Error(I(331));var i=Q;for(Q|=4,O=e.current;O!==null;){var o=O,s=o.child;if(O.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(O=u;O!==null;){var c=O;switch(c.tag){case 0:case 11:case 15:mi(8,c,o)}var f=c.child;if(f!==null)f.return=c,O=f;else for(;O!==null;){c=O;var d=c.sibling,h=c.return;if(Ig(c),c===u){O=null;break}if(d!==null){d.return=h,O=d;break}O=h}}}var y=o.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var E=x.sibling;x.sibling=null,x=E}while(x!==null)}}O=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,O=s;else e:for(;O!==null;){if(o=O,o.flags&2048)switch(o.tag){case 0:case 11:case 15:mi(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,O=p;break e}O=o.return}}var g=e.current;for(O=g;O!==null;){s=O;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,O=m;else e:for(s=g;O!==null;){if(l=O,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Vs(9,l)}}catch(C){me(l,l.return,C)}if(l===s){O=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,O=S;break e}O=l.return}}if(Q=i,En(),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Ds,e)}catch{}r=!0}return r}finally{Z=n,pt.transition=t}}return!1}function wd(e,t,n){t=br(n,t),t=vg(e,t,1),e=pn(e,t,1),t=je(),e!==null&&(Qi(e,1,t),Ye(e,t))}function me(e,t,n){if(e.tag===3)wd(e,e,n);else for(;t!==null;){if(t.tag===3){wd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(mn===null||!mn.has(r))){e=br(n,e),e=xg(t,e,1),t=pn(t,e,1),e=je(),t!==null&&(Qi(t,1,e),Ye(t,e));break}}t=t.return}}function Px(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=je(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Ie&n)===n&&(Ce===4||Ce===3&&(Ie&130023424)===Ie&&500>ve()-rc?Vn(e,0):nc|=n),Ye(e,t)}function Fg(e,t){t===0&&(e.mode&1?(t=fo,fo<<=1,!(fo&130023424)&&(fo=4194304)):t=1);var n=je();e=Qt(e,t),e!==null&&(Qi(e,t,n),Ye(e,n))}function Ax(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fg(e,n)}function Lx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),Fg(e,n)}var jg;jg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)We=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return We=!1,mx(e,t,n);We=!!(e.flags&131072)}else We=!1,ue&&t.flags&1048576&&$m(t,as,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fo(e,t),e=t.pendingProps;var i=Ar(t,ze.current);Sr(t,n),i=Xu(null,t,r,e,i,n);var o=qu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(o=!0,ss(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wu(t),i.updater=Os,t.stateNode=i,i._reactInternals=t,Da(t,r,e,n),t=Ra(null,t,r,!0,o,n)):(t.tag=0,ue&&o&&Vu(t),Ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Dx(r),e=kt(r,e),i){case 0:t=Ma(null,t,r,e,n);break e;case 1:t=cd(null,t,r,e,n);break e;case 11:t=ad(null,t,r,e,n);break e;case 14:t=ud(null,t,r,kt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Ma(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),cd(e,t,r,i,n);case 3:e:{if(Cg(t),e===null)throw Error(I(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Xm(e,t),fs(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=br(Error(I(423)),t),t=fd(e,t,r,n,i);break e}else if(r!==i){i=br(Error(I(424)),t),t=fd(e,t,r,n,i);break e}else for(et=hn(t.stateNode.containerInfo.firstChild),nt=t,ue=!0,Ct=null,n=Ym(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lr(),r===i){t=Xt(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return qm(t),e===null&&Aa(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Sa(r,i)?s=null:o!==null&&Sa(r,o)&&(t.flags|=32),Sg(e,t),Ve(e,t,s,n),t.child;case 6:return e===null&&Aa(t),null;case 13:return Eg(e,t,n);case 4:return Ku(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ir(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),ad(e,t,r,i,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,re(us,r._currentValue),r._currentValue=s,o!==null)if(Pt(o.value,s)){if(o.children===i.children&&!Ke.current){t=Xt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=$t(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),La(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(I(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),La(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sr(t,n),i=mt(i),r=r(i),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),ud(e,t,r,i,n);case 15:return wg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Fo(e,t),t.tag=1,Ge(r)?(e=!0,ss(t)):e=!1,Sr(t,n),yg(t,r,i),Da(t,r,i,n),Ra(null,t,r,!0,e,n);case 19:return Tg(e,t,n);case 22:return kg(e,t,n)}throw Error(I(156,t.tag))};function Bg(e,t){return pm(e,t)}function Ix(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,r){return new Ix(e,t,n,r)}function lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dx(e){if(typeof e=="function")return lc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pu)return 11;if(e===Au)return 14}return 2}function yn(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Uo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")lc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case nr:return Fn(n.children,i,o,t);case Tu:s=8,i|=8;break;case ea:return e=ht(12,n,t,i|2),e.elementType=ea,e.lanes=o,e;case ta:return e=ht(13,n,t,i),e.elementType=ta,e.lanes=o,e;case na:return e=ht(19,n,t,i),e.elementType=na,e.lanes=o,e;case qp:return js(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qp:s=10;break e;case Xp:s=9;break e;case Pu:s=11;break e;case Au:s=14;break e;case rn:s=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=ht(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function js(e,t,n,r){return e=ht(22,e,r,t),e.elementType=qp,e.lanes=n,e.stateNode={isHidden:!1},e}function Tl(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Pl(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bx(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sl(0),this.expirationTimes=sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ac(e,t,n,r,i,o,s,l,a){return e=new bx(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ht(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wu(o),e}function Mx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ug(e){if(!e)return xn;e=e._reactInternals;e:{if(Gn(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(Ge(n))return Um(e,n,t)}return t}function Hg(e,t,n,r,i,o,s,l,a){return e=ac(n,r,!0,e,i,o,s,l,a),e.context=Ug(null),n=e.current,r=je(),i=gn(n),o=$t(r,i),o.callback=t??null,pn(n,o,i),e.current.lanes=i,Qi(e,i,r),Ye(e,r),e}function Bs(e,t,n,r){var i=t.current,o=je(),s=gn(i);return n=Ug(n),t.context===null?t.context=n:t.pendingContext=n,t=$t(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pn(i,t,s),e!==null&&(Tt(e,i,s,o),zo(e,i,s)),s}function xs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function kd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uc(e,t){kd(e,t),(e=e.alternate)&&kd(e,t)}function Rx(){return null}var $g=typeof reportError=="function"?reportError:function(e){console.error(e)};function cc(e){this._internalRoot=e}Us.prototype.render=cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));Bs(e,t,null,null)};Us.prototype.unmount=cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wn(function(){Bs(null,e,null,null)}),t[Yt]=null}};function Us(e){this._internalRoot=e}Us.prototype.unstable_scheduleHydration=function(e){if(e){var t=km();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sn.length&&t!==0&&t<sn[n].priority;n++);sn.splice(n,0,e),n===0&&Cm(e)}};function fc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sd(){}function Nx(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=xs(s);o.call(u)}}var s=Hg(t,r,e,0,null,!1,!1,"",Sd);return e._reactRootContainer=s,e[Yt]=s.current,Ri(e.nodeType===8?e.parentNode:e),Wn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=xs(a);l.call(u)}}var a=ac(e,0,!1,null,null,!1,!1,"",Sd);return e._reactRootContainer=a,e[Yt]=a.current,Ri(e.nodeType===8?e.parentNode:e),Wn(function(){Bs(t,a,n,r)}),a}function $s(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=xs(s);l.call(a)}}Bs(t,s,e,i)}else s=Nx(n,t,e,i,r);return xs(s)}xm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ii(t.pendingLanes);n!==0&&(Du(t,n|1),Ye(t,ve()),!(Q&6)&&(Mr=ve()+500,En()))}break;case 13:Wn(function(){var r=Qt(e,1);if(r!==null){var i=je();Tt(r,e,1,i)}}),uc(e,1)}};bu=function(e){if(e.tag===13){var t=Qt(e,134217728);if(t!==null){var n=je();Tt(t,e,134217728,n)}uc(e,134217728)}};wm=function(e){if(e.tag===13){var t=gn(e),n=Qt(e,t);if(n!==null){var r=je();Tt(n,e,t,r)}uc(e,t)}};km=function(){return Z};Sm=function(e,t){var n=Z;try{return Z=e,t()}finally{Z=n}};da=function(e,t,n){switch(t){case"input":if(oa(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ns(r);if(!i)throw Error(I(90));Jp(r),oa(r,i)}}}break;case"textarea":tm(e,n);break;case"select":t=n.value,t!=null&&vr(e,!!n.multiple,t,!1)}};am=ic;um=Wn;var _x={usingClientEntryPoint:!1,Events:[qi,sr,Ns,sm,lm,ic]},Zr={findFiberByHostInstance:Nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zx={bundleType:Zr.bundleType,version:Zr.version,rendererPackageName:Zr.rendererPackageName,rendererConfig:Zr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dm(e),e===null?null:e.stateNode},findFiberByHostInstance:Zr.findFiberByHostInstance||Rx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Co.isDisabled&&Co.supportsFiber)try{Ds=Co.inject(zx),Rt=Co}catch{}}st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_x;st.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fc(t))throw Error(I(200));return Mx(e,t,null,n)};st.createRoot=function(e,t){if(!fc(e))throw Error(I(299));var n=!1,r="",i=$g;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ac(e,1,!1,null,null,n,!1,r,i),e[Yt]=t.current,Ri(e.nodeType===8?e.parentNode:e),new cc(t)};st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=dm(t),e=e===null?null:e.stateNode,e};st.flushSync=function(e){return Wn(e)};st.hydrate=function(e,t,n){if(!Hs(t))throw Error(I(200));return $s(null,e,t,!0,n)};st.hydrateRoot=function(e,t,n){if(!fc(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=$g;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Hg(t,null,e,1,n??null,i,!1,o,s),e[Yt]=t.current,Ri(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Us(t)};st.render=function(e,t,n){if(!Hs(t))throw Error(I(200));return $s(null,e,t,!1,n)};st.unmountComponentAtNode=function(e){if(!Hs(e))throw Error(I(40));return e._reactRootContainer?(Wn(function(){$s(null,null,e,!1,function(){e._reactRootContainer=null,e[Yt]=null})}),!0):!1};st.unstable_batchedUpdates=ic;st.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hs(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return $s(e,t,n,!1,r)};st.version="18.3.1-next-f1338f8080-20240426";function Wg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wg)}catch(e){console.error(e)}}Wg(),Wp.exports=st;var Ox=Wp.exports,Cd=Ox;Zl.createRoot=Cd.createRoot,Zl.hydrateRoot=Cd.hydrateRoot;function Vx(){const e=M.useRef(null);return M.useEffect(()=>{const t=e.current,n=t.getContext("2d"),r=()=>{t.width=window.innerWidth,t.height=window.innerHeight};r(),window.addEventListener("resize",r);const i="01をむウエγ‚ͺγ‚«γ‚­γ‚―γ‚±γ‚³γ‚΅γ‚·γ‚Ήγ‚»γ‚½γ‚Ώγƒγƒ„γƒ†γƒˆCVE-SQL-XSS",o=13,s=Math.floor(t.width/o),l=Array(s).fill(1),u=setInterval(()=>{n.fillStyle="rgba(2,12,20,0.05)",n.fillRect(0,0,t.width,t.height),n.font=`${o}px Share Tech Mono`,l.forEach((c,f)=>{const d=i[Math.floor(Math.random()*i.length)],h=Math.random()>.9?1:.3;n.fillStyle=`rgba(0,255,65,${h})`,n.fillText(d,f*o,c*o),c*o>t.height&&Math.random()>.975&&(l[f]=0),l[f]++})},50);return()=>{clearInterval(u),window.removeEventListener("resize",r)}},[]),T.jsx("canvas",{ref:e,className:"fixed inset-0 opacity-20 pointer-events-none",style:{zIndex:0}})}const dc=M.createContext({});function hc(e){const t=M.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ws=M.createContext(null),pc=M.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Fx extends M.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function jx({children:e,isPresent:t}){const n=M.useId(),r=M.useRef(null),i=M.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=M.useContext(pc);return M.useInsertionEffect(()=>{const{width:s,height:l,top:a,left:u}=i.current;if(t||!r.current||!s||!l)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${s}px !important;
height: ${l}px !important;
top: ${a}px !important;
left: ${u}px !important;
}
`),()=>{document.head.removeChild(c)}},[t]),T.jsx(Fx,{isPresent:t,childRef:r,sizeRef:i,children:M.cloneElement(e,{ref:r})})}const Bx=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=hc(Ux),a=M.useId(),u=M.useCallback(f=>{l.set(f,!0);for(const d of l.values())if(!d)return;r&&r()},[l,r]),c=M.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),u]:[n,u]);return M.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),M.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=T.jsx(jx,{isPresent:n,children:e})),T.jsx(Ws.Provider,{value:c,children:e})};function Ux(){return new Map}function Kg(e=!0){const t=M.useContext(Ws);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=M.useId();M.useEffect(()=>{e&&i(o)},[e]);const s=M.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Eo=e=>e.key||"";function Ed(e){const t=[];return M.Children.forEach(e,n=>{M.isValidElement(n)&&t.push(n)}),t}const mc=typeof window<"u",Gg=mc?M.useLayoutEffect:M.useEffect,Al=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[l,a]=Kg(s),u=M.useMemo(()=>Ed(e),[e]),c=s&&!l?[]:u.map(Eo),f=M.useRef(!0),d=M.useRef(u),h=hc(()=>new Map),[y,x]=M.useState(u),[E,p]=M.useState(u);Gg(()=>{f.current=!1,d.current=u;for(let S=0;S<E.length;S++){const C=Eo(E[S]);c.includes(C)?h.delete(C):h.get(C)!==!0&&h.set(C,!1)}},[E,c.length,c.join("-")]);const g=[];if(u!==y){let S=[...u];for(let C=0;C<E.length;C++){const k=E[C],L=Eo(k);c.includes(L)||(S.splice(C,0,k),g.push(k))}o==="wait"&&g.length&&(S=g),p(Ed(S)),x(u);return}const{forceRender:m}=M.useContext(dc);return T.jsx(T.Fragment,{children:E.map(S=>{const C=Eo(S),k=s&&!l?!1:u===E||c.includes(C),L=()=>{if(h.has(C))h.set(C,!0);else return;let P=!0;h.forEach(z=>{z||(P=!1)}),P&&(m==null||m(),p(d.current),s&&(a==null||a()),r&&r())};return T.jsx(Bx,{isPresent:k,initial:!f.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:L,children:S},C)})})},rt=e=>e;let Yg=rt;function gc(e){let t;return()=>(t===void 0&&(t=e()),t)}const Rr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Wt=e=>e*1e3,Kt=e=>e/1e3,Hx={useManualTiming:!1};function $x(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(a.schedule(u),e()),u(s)}const a={schedule:(u,c=!1,f=!1)=>{const h=f&&r?t:n;return c&&o.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,a.process(u))}};return a}const To=["read","resolveKeyframes","update","preRender","render","postRender"],Wx=40;function Qg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=To.reduce((p,g)=>(p[g]=$x(o),p),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:f,postRender:d}=s,h=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,Wx),1),i.timestamp=p,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},y=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:To.reduce((p,g)=>{const m=s[g];return p[g]=(S,C=!1,k=!1)=>(n||y(),m.schedule(S,C,k)),p},{}),cancel:p=>{for(let g=0;g<To.length;g++)s[To[g]].cancel(p)},state:i,steps:s}}const{schedule:ae,cancel:wn,state:Le,steps:Ll}=Qg(typeof requestAnimationFrame<"u"?requestAnimationFrame:rt,!0),Xg=M.createContext({strict:!1}),Td={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"]},Nr={};for(const e in Td)Nr[e]={isEnabled:t=>Td[e].some(n=>!!t[n])};function Kx(e){for(const t in e)Nr[t]={...Nr[t],...e[t]}}const Gx=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 ws(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gx.has(e)}let qg=e=>!ws(e);function Yx(e){e&&(qg=t=>t.startsWith("on")?!ws(t):e(t))}try{Yx(require("@emotion/is-prop-valid").default)}catch{}function Qx(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(qg(i)||n===!0&&ws(i)||!t&&!ws(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Xx(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ks=M.createContext({});function Ui(e){return typeof e=="string"||Array.isArray(e)}function Gs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const yc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vc=["initial",...yc];function Ys(e){return Gs(e.animate)||vc.some(t=>Ui(e[t]))}function Zg(e){return!!(Ys(e)||e.variants)}function qx(e,t){if(Ys(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ui(n)?n:void 0,animate:Ui(r)?r:void 0}}return e.inherit!==!1?t:{}}function Zx(e){const{initial:t,animate:n}=qx(e,M.useContext(Ks));return M.useMemo(()=>({initial:t,animate:n}),[Pd(t),Pd(n)])}function Pd(e){return Array.isArray(e)?e.join(" "):e}const Jx=Symbol.for("motionComponentSymbol");function hr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ew(e,t,n){return M.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):hr(n)&&(n.current=r))},[t])}const xc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tw="framerAppearId",Jg="data-"+xc(tw),{schedule:wc}=Qg(queueMicrotask,!1),ey=M.createContext({});function nw(e,t,n,r,i){var o,s;const{visualElement:l}=M.useContext(Ks),a=M.useContext(Xg),u=M.useContext(Ws),c=M.useContext(pc).reducedMotion,f=M.useRef(null);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,h=M.useContext(ey);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&rw(f.current,n,i,h);const y=M.useRef(!1);M.useInsertionEffect(()=>{d&&y.current&&d.update(n,u)});const x=n[Jg],E=M.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,x)));return Gg(()=>{d&&(y.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),wc.render(d.render),E.current&&d.animationState&&d.animationState.animateChanges())}),M.useEffect(()=>{d&&(!E.current&&d.animationState&&d.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,x)}),E.current=!1))}),d}function rw(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:l,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ty(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&hr(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function ty(e){if(e)return e.options.allowProjection!==!1?e.projection:ty(e.parent)}function iw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&Kx(e);function l(u,c){let f;const d={...M.useContext(pc),...u,layoutId:ow(u)},{isStatic:h}=d,y=Zx(u),x=r(u,h);if(!h&&mc){sw();const E=lw(d);f=E.MeasureLayout,y.visualElement=nw(i,x,d,t,E.ProjectionNode)}return T.jsxs(Ks.Provider,{value:y,children:[f&&y.visualElement?T.jsx(f,{visualElement:y.visualElement,...d}):null,n(i,u,ew(x,y.visualElement,c),x,h,y.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const a=M.forwardRef(l);return a[Jx]=i,a}function ow({layoutId:e}){const t=M.useContext(dc).id;return t&&e!==void 0?t+"-"+e:e}function sw(e,t){M.useContext(Xg).strict}function lw(e){const{drag:t,layout:n}=Nr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const aw=["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 kc(e){return typeof e!="string"||e.includes("-")?!1:!!(aw.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ad(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Sc(e,t,n,r){if(typeof t=="function"){const[i,o]=Ad(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ad(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Wa=e=>Array.isArray(e),uw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cw=e=>Wa(e)?e[e.length-1]||0:e,_e=e=>!!(e&&e.getVelocity);function Ho(e){const t=_e(e)?e.get():e;return uw(t)?t.toValue():t}function fw({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:dw(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const ny=e=>(t,n)=>{const r=M.useContext(Ks),i=M.useContext(Ws),o=()=>fw(e,t,r,i);return n?o():hc(o)};function dw(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ho(o[d]);let{initial:s,animate:l}=e;const a=Ys(e),u=Zg(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?l:s;if(f&&typeof f!="boolean"&&!Gs(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const y=Sc(e,d[h]);if(y){const{transitionEnd:x,transition:E,...p}=y;for(const g in p){let m=p[g];if(Array.isArray(m)){const S=c?m.length-1:0;m=m[S]}m!==null&&(i[g]=m)}for(const g in x)i[g]=x[g]}}}return i}const Fr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yn=new Set(Fr),ry=e=>t=>typeof t=="string"&&t.startsWith(e),iy=ry("--"),hw=ry("var(--"),Cc=e=>hw(e)?pw.test(e.split("/*")[0].trim()):!1,pw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,oy=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qt=(e,t,n)=>n>t?t:n<e?e:n,jr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Hi={...jr,transform:e=>qt(0,1,e)},Po={...jr,default:1},Ji=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),nn=Ji("deg"),_t=Ji("%"),j=Ji("px"),mw=Ji("vh"),gw=Ji("vw"),Ld={..._t,parse:e=>_t.parse(e)/100,transform:e=>_t.transform(e*100)},yw={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,backgroundPositionX:j,backgroundPositionY:j},vw={rotate:nn,rotateX:nn,rotateY:nn,rotateZ:nn,scale:Po,scaleX:Po,scaleY:Po,scaleZ:Po,skew:nn,skewX:nn,skewY:nn,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Hi,originX:Ld,originY:Ld,originZ:j},Id={...jr,transform:Math.round},Ec={...yw,...vw,zIndex:Id,size:j,fillOpacity:Hi,strokeOpacity:Hi,numOctaves:Id},xw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ww=Fr.length;function kw(e,t,n){let r="",i=!0;for(let o=0;o<ww;o++){const s=Fr[o],l=e[s];if(l===void 0)continue;let a=!0;if(typeof l=="number"?a=l===(s.startsWith("scale")?1:0):a=parseFloat(l)===0,!a||n){const u=oy(l,Ec[s]);if(!a){i=!1;const c=xw[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Tc(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,l=!1;for(const a in t){const u=t[a];if(Yn.has(a)){s=!0;continue}else if(iy(a)){i[a]=u;continue}else{const c=oy(u,Ec[a]);a.startsWith("origin")?(l=!0,o[a]=c):r[a]=c}}if(t.transform||(s||n?r.transform=kw(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:a="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${a} ${u} ${c}`}}const Sw={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cw={offset:"strokeDashoffset",array:"strokeDasharray"};function Ew(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Sw:Cw;e[o.offset]=j.transform(-r);const s=j.transform(t),l=j.transform(n);e[o.array]=`${s} ${l}`}function Dd(e,t,n){return typeof e=="string"?e:j.transform(t+n*e)}function Tw(e,t,n){const r=Dd(t,e.x,e.width),i=Dd(n,e.y,e.height);return`${r} ${i}`}function Pc(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f){if(Tc(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h,dimensions:y}=e;d.transform&&(y&&(h.transform=d.transform),delete d.transform),y&&(i!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=Tw(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Ew(d,s,l,a,!1)}const Ac=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),sy=()=>({...Ac(),attrs:{}}),Lc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ly(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const ay=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 uy(e,t,n,r){ly(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ay.has(i)?i:xc(i),t.attrs[i])}const ks={};function Pw(e){Object.assign(ks,e)}function cy(e,{layout:t,layoutId:n}){return Yn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ks[e]||e==="opacity")}function Ic(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(_e(i[s])||t.style&&_e(t.style[s])||cy(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function fy(e,t,n){const r=Ic(e,t,n);for(const i in e)if(_e(e[i])||_e(t[i])){const o=Fr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function Aw(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const bd=["x","y","width","height","cx","cy","r"],Lw={useVisualState:ny({scrapeMotionValuesFromProps:fy,createRenderState:sy,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(Yn.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l<bd.length;l++){const a=bd[l];e[a]!==t[a]&&(s=!0)}s&&ae.read(()=>{Aw(n,r),ae.render(()=>{Pc(r,i,Lc(n.tagName),e.transformTemplate),uy(n,r)})})}})},Iw={useVisualState:ny({scrapeMotionValuesFromProps:Ic,createRenderState:Ac})};function dy(e,t,n){for(const r in t)!_e(t[r])&&!cy(r,n)&&(e[r]=t[r])}function Dw({transformTemplate:e},t){return M.useMemo(()=>{const n=Ac();return Tc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bw(e,t){const n=e.style||{},r={};return dy(r,n,e),Object.assign(r,Dw(e,t)),r}function Mw(e,t){const n={},r=bw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function Rw(e,t,n,r){const i=M.useMemo(()=>{const o=sy();return Pc(o,t,Lc(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};dy(o,e.style,e),i.style={...o,...i.style}}return i}function Nw(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(kc(n)?Rw:Mw)(r,o,s,n),u=Qx(r,typeof n=="string",e),c=n!==M.Fragment?{...u,...a,ref:i}:{},{children:f}=r,d=M.useMemo(()=>_e(f)?f.get():f,[f]);return M.createElement(n,{...c,children:d})}}function _w(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...kc(r)?Lw:Iw,preloadedFeatures:e,useRender:Nw(i),createVisualElement:t,Component:r};return iw(s)}}function hy(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Qs(e,t,n){const r=e.getProps();return Sc(r,t,n!==void 0?n:r.custom,e)}const zw=gc(()=>window.ScrollTimeline!==void 0);class Ow{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(zw()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Vw extends Ow{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Dc(e,t){return e?e[t]||e.default||e:void 0}const Ka=2e4;function py(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ka;)t+=n,r=e.next(t);return t>=Ka?1/0:t}function bc(e){return typeof e=="function"}function Md(e,t){e.timeline=t,e.onfinish=null}const Mc=e=>Array.isArray(e)&&typeof e[0]=="number",Fw={linearEasing:void 0};function jw(e,t){const n=gc(e);return()=>{var r;return(r=Fw[t])!==null&&r!==void 0?r:n()}}const Ss=jw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),my=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Rr(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function gy(e){return!!(typeof e=="function"&&Ss()||!e||typeof e=="string"&&(e in Ga||Ss())||Mc(e)||Array.isArray(e)&&e.every(gy))}const si=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ga={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:si([0,.65,.55,1]),circOut:si([.55,0,1,.45]),backIn:si([.31,.01,.66,-.59]),backOut:si([.33,1.53,.69,.99])};function yy(e,t){if(e)return typeof e=="function"&&Ss()?my(e,t):Mc(e)?si(e):Array.isArray(e)?e.map(n=>yy(n,t)||Ga.easeOut):Ga[e]}const wt={x:!1,y:!1};function vy(){return wt.x||wt.y}function Bw(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function xy(e,t){const n=Bw(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Rd(e){return t=>{t.pointerType==="touch"||vy()||e(t)}}function Uw(e,t,n={}){const[r,i,o]=xy(e,n),s=Rd(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=Rd(f=>{u(f),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const wy=(e,t)=>t?e===t?!0:wy(e,t.parentElement):!1,Rc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Hw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $w(e){return Hw.has(e.tagName)||e.tabIndex!==-1}const li=new WeakSet;function Nd(e){return t=>{t.key==="Enter"&&e(t)}}function Il(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ww=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Nd(()=>{if(li.has(n))return;Il(n,"down");const i=Nd(()=>{Il(n,"up")}),o=()=>Il(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _d(e){return Rc(e)&&!vy()}function Kw(e,t,n={}){const[r,i,o]=xy(e,n),s=l=>{const a=l.currentTarget;if(!_d(l)||li.has(a))return;li.add(a);const u=t(l),c=(h,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!_d(h)||!li.has(a))&&(li.delete(a),typeof u=="function"&&u(h,{success:y}))},f=h=>{c(h,n.useGlobalTarget||wy(a,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(l=>{!$w(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l.addEventListener("focus",u=>Ww(u,i),i)}),o}function Gw(e){return e==="x"||e==="y"?wt[e]?null:(wt[e]=!0,()=>{wt[e]=!1}):wt.x||wt.y?null:(wt.x=wt.y=!0,()=>{wt.x=wt.y=!1})}const ky=new Set(["width","height","top","left","right","bottom",...Fr]);let $o;function Yw(){$o=void 0}const zt={now:()=>($o===void 0&&zt.set(Le.isProcessing||Hx.useManualTiming?Le.timestamp:performance.now()),$o),set:e=>{$o=e,queueMicrotask(Yw)}};function Nc(e,t){e.indexOf(t)===-1&&e.push(t)}function _c(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zc{constructor(){this.subscriptions=[]}add(t){return Nc(this.subscriptions,t),()=>_c(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Sy(e,t){return t?e*(1e3/t):0}const zd=30,Qw=e=>!isNaN(parseFloat(e));class Xw{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=zt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=zt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Qw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new zc);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>zd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zd);return Sy(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function $i(e,t){return new Xw(e,t)}function qw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$i(n))}function Zw(e,t){const n=Qs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=cw(o[s]);qw(e,s,l)}}function Jw(e){return!!(_e(e)&&e.add)}function Ya(e,t){const n=e.getValue("willChange");if(Jw(n))return n.add(t)}function Cy(e){return e.props[Jg]}const Ey=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ek=1e-7,tk=12;function nk(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=Ey(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>ek&&++l<tk);return s}function eo(e,t,n,r){if(e===t&&n===r)return rt;const i=o=>nk(o,0,1,e,n);return o=>o===0||o===1?o:Ey(i(o),t,r)}const Ty=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Py=e=>t=>1-e(1-t),Ay=eo(.33,1.53,.69,.99),Oc=Py(Ay),Ly=Ty(Oc),Iy=e=>(e*=2)<1?.5*Oc(e):.5*(2-Math.pow(2,-10*(e-1))),Vc=e=>1-Math.sin(Math.acos(e)),Dy=Py(Vc),by=Ty(Vc),My=e=>/^0[^.\s]+$/u.test(e);function rk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||My(e):!0}const vi=e=>Math.round(e*1e5)/1e5,Fc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ik(e){return e==null}const ok=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jc=(e,t)=>n=>!!(typeof n=="string"&&ok.test(n)&&n.startsWith(e)||t&&!ik(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ry=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(Fc);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},sk=e=>qt(0,255,e),Dl={...jr,transform:e=>Math.round(sk(e))},On={test:jc("rgb","red"),parse:Ry("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dl.transform(e)+", "+Dl.transform(t)+", "+Dl.transform(n)+", "+vi(Hi.transform(r))+")"};function lk(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Qa={test:jc("#"),parse:lk,transform:On.transform},pr={test:jc("hsl","hue"),parse:Ry("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_t.transform(vi(t))+", "+_t.transform(vi(n))+", "+vi(Hi.transform(r))+")"},Re={test:e=>On.test(e)||Qa.test(e)||pr.test(e),parse:e=>On.test(e)?On.parse(e):pr.test(e)?pr.parse(e):Qa.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?On.transform(e):pr.transform(e)},ak=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uk(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Fc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ak))===null||n===void 0?void 0:n.length)||0)>0}const Ny="number",_y="color",ck="var",fk="var(",Od="${}",dk=/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 Wi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(dk,a=>(Re.test(a)?(r.color.push(o),i.push(_y),n.push(Re.parse(a))):a.startsWith(fk)?(r.var.push(o),i.push(ck),n.push(a)):(r.number.push(o),i.push(Ny),n.push(parseFloat(a))),++o,Od)).split(Od);return{values:n,split:l,indexes:r,types:i}}function zy(e){return Wi(e).values}function Oy(e){const{split:t,types:n}=Wi(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const l=n[s];l===Ny?o+=vi(i[s]):l===_y?o+=Re.transform(i[s]):o+=i[s]}return o}}const hk=e=>typeof e=="number"?0:e;function pk(e){const t=zy(e);return Oy(e)(t.map(hk))}const kn={test:uk,parse:zy,createTransformer:Oy,getAnimatableNone:pk},mk=new Set(["brightness","contrast","saturate","opacity"]);function gk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fc)||[];if(!r)return e;const i=n.replace(r,"");let o=mk.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const yk=/\b([a-z-]*)\(.*?\)/gu,Xa={...kn,getAnimatableNone:e=>{const t=e.match(yk);return t?t.map(gk).join(" "):e}},vk={...Ec,color:Re,backgroundColor:Re,outlineColor:Re,fill:Re,stroke:Re,borderColor:Re,borderTopColor:Re,borderRightColor:Re,borderBottomColor:Re,borderLeftColor:Re,filter:Xa,WebkitFilter:Xa},Bc=e=>vk[e];function Vy(e,t){let n=Bc(e);return n!==Xa&&(n=kn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xk=new Set(["auto","none","0"]);function wk(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!xk.has(o)&&Wi(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Vy(n,i)}const Vd=e=>e===jr||e===j,Fd=(e,t)=>parseFloat(e.split(", ")[t]),jd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Fd(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Fd(o[1],e):0}},kk=new Set(["x","y","z"]),Sk=Fr.filter(e=>!kk.has(e));function Ck(e){const t=[];return Sk.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const _r={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:jd(4,13),y:jd(5,14)};_r.translateX=_r.x;_r.translateY=_r.y;const jn=new Set;let qa=!1,Za=!1;function Fy(){if(Za){const e=Array.from(jn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ck(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Za=!1,qa=!1,jn.forEach(e=>e.complete()),jn.clear()}function jy(){jn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Za=!0)})}function Ek(){jy(),Fy()}class Uc{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(jn.add(this),qa||(qa=!0,ae.read(jy),ae.resolveKeyframes(Fy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,l);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),jn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,jn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const By=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Tk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pk(e){const t=Tk.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Uy(e,t,n=1){const[r,i]=Pk(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return By(s)?parseFloat(s):s}return Cc(i)?Uy(i,t,n+1):i}const Hy=e=>t=>t.test(e),Ak={test:e=>e==="auto",parse:e=>e},$y=[jr,j,_t,nn,gw,mw,Ak],Bd=e=>$y.find(Hy(e));class Wy extends Uc{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="string"&&(u=u.trim(),Cc(u))){const c=Uy(u,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ky.has(r)||t.length!==2)return;const[i,o]=t,s=Bd(i),l=Bd(o);if(s!==l)if(Vd(s)&&Vd(l))for(let a=0;a<t.length;a++){const u=t[a];typeof u=="string"&&(t[a]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)rk(t[i])&&r.push(i);r.length&&wk(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_r[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,l=i[s];i[s]=_r[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([a,u])=>{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const Ud=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kn.test(e)||e==="0")&&!e.startsWith("url("));function Lk(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ik(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Ud(i,t),l=Ud(o,t);return!s||!l?!1:Lk(e)||(n==="spring"||bc(n))&&r}const Dk=e=>e!==null;function Xs(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Dk),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const bk=40;class Ky{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=zt.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>bk?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ek(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=zt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!Ik(t,r,i,o))if(s)this.options.duration=0;else{a&&a(Xs(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const fe=(e,t,n)=>e+(t-e)*n;function bl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Mk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=bl(a,l,e+1/3),o=bl(a,l,e),s=bl(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Cs(e,t){return n=>n>0?t:e}const Ml=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Rk=[Qa,On,pr],Nk=e=>Rk.find(t=>t.test(e));function Hd(e){const t=Nk(e);if(!t)return!1;let n=t.parse(e);return t===pr&&(n=Mk(n)),n}const $d=(e,t)=>{const n=Hd(e),r=Hd(t);if(!n||!r)return Cs(e,t);const i={...n};return o=>(i.red=Ml(n.red,r.red,o),i.green=Ml(n.green,r.green,o),i.blue=Ml(n.blue,r.blue,o),i.alpha=fe(n.alpha,r.alpha,o),On.transform(i))},_k=(e,t)=>n=>t(e(n)),to=(...e)=>e.reduce(_k),Ja=new Set(["none","hidden"]);function zk(e,t){return Ja.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ok(e,t){return n=>fe(e,t,n)}function Hc(e){return typeof e=="number"?Ok:typeof e=="string"?Cc(e)?Cs:Re.test(e)?$d:jk:Array.isArray(e)?Gy:typeof e=="object"?Re.test(e)?$d:Vk:Cs}function Gy(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Hc(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Vk(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Hc(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Fk(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][i[s]],a=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=a,i[s]++}return r}const jk=(e,t)=>{const n=kn.createTransformer(t),r=Wi(e),i=Wi(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ja.has(e)&&!i.values.length||Ja.has(t)&&!r.values.length?zk(e,t):to(Gy(Fk(r,i),i.values),n):Cs(e,t)};function Yy(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fe(e,t,n):Hc(e)(e,t)}const Bk=5;function Qy(e,t,n){const r=Math.max(t-Bk,0);return Sy(n-e(r),t-r)}const pe={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},Rl=.001;function Uk({duration:e=pe.duration,bounce:t=pe.bounce,velocity:n=pe.velocity,mass:r=pe.mass}){let i,o,s=1-t;s=qt(pe.minDamping,pe.maxDamping,s),e=qt(pe.minDuration,pe.maxDuration,Kt(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=eu(u,s),y=Math.exp(-f);return Rl-d/h*y},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),x=eu(Math.pow(u,2),s);return(-i(u)+Rl>0?-1:1)*((d-h)*y)/x}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Rl+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=$k(i,o,l);if(e=Wt(e),isNaN(a))return{stiffness:pe.stiffness,damping:pe.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Hk=12;function $k(e,t,n){let r=n;for(let i=1;i<Hk;i++)r=r-e(r)/t(r);return r}function eu(e,t){return e*Math.sqrt(1-t*t)}const Wk=["duration","bounce"],Kk=["stiffness","damping","mass"];function Wd(e,t){return t.some(n=>e[n]!==void 0)}function Gk(e){let t={velocity:pe.velocity,stiffness:pe.stiffness,damping:pe.damping,mass:pe.mass,isResolvedFromDuration:!1,...e};if(!Wd(e,Kk)&&Wd(e,Wk))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:pe.mass,stiffness:i,damping:o}}else{const n=Uk(e);t={...t,...n,mass:pe.mass},t.isResolvedFromDuration=!0}return t}function Xy(e=pe.visualDuration,t=pe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:a,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=Gk({...n,velocity:-Kt(n.velocity||0)}),y=d||0,x=u/(2*Math.sqrt(a*c)),E=s-o,p=Kt(Math.sqrt(a/c)),g=Math.abs(E)<5;r||(r=g?pe.restSpeed.granular:pe.restSpeed.default),i||(i=g?pe.restDelta.granular:pe.restDelta.default);let m;if(x<1){const C=eu(p,x);m=k=>{const L=Math.exp(-x*p*k);return s-L*((y+x*p*E)/C*Math.sin(C*k)+E*Math.cos(C*k))}}else if(x===1)m=C=>s-Math.exp(-p*C)*(E+(y+p*E)*C);else{const C=p*Math.sqrt(x*x-1);m=k=>{const L=Math.exp(-x*p*k),P=Math.min(C*k,300);return s-L*((y+x*p*E)*Math.sinh(P)+C*E*Math.cosh(P))/C}}const S={calculatedDuration:h&&f||null,next:C=>{const k=m(C);if(h)l.done=C>=f;else{let L=0;x<1&&(L=C===0?Wt(y):Qy(m,C,k));const P=Math.abs(L)<=r,z=Math.abs(s-k)<=i;l.done=P&&z}return l.value=l.done?s:k,l},toString:()=>{const C=Math.min(py(S),Ka),k=my(L=>S.next(C*L).value,C,30);return C+"ms "+k}};return S}function Kd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=P=>l!==void 0&&P<l||a!==void 0&&P>a,y=P=>l===void 0?a:a===void 0||Math.abs(l-P)<Math.abs(a-P)?l:a;let x=n*t;const E=f+x,p=s===void 0?E:s(E);p!==E&&(x=p-f);const g=P=>-x*Math.exp(-P/r),m=P=>p+g(P),S=P=>{const z=g(P),N=m(P);d.done=Math.abs(z)<=u,d.value=d.done?p:N};let C,k;const L=P=>{h(d.value)&&(C=P,k=Xy({keyframes:[d.value,y(d.value)],velocity:Qy(m,P,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return L(0),{calculatedDuration:null,next:P=>{let z=!1;return!k&&C===void 0&&(z=!0,S(P),L(P)),C!==void 0&&P>=C?k.next(P-C):(!z&&S(P),d)}}}const Yk=eo(.42,0,1,1),Qk=eo(0,0,.58,1),qy=eo(.42,0,.58,1),Xk=e=>Array.isArray(e)&&typeof e[0]!="number",qk={linear:rt,easeIn:Yk,easeInOut:qy,easeOut:Qk,circIn:Vc,circInOut:by,circOut:Dy,backIn:Oc,backInOut:Ly,backOut:Ay,anticipate:Iy},Gd=e=>{if(Mc(e)){Yg(e.length===4);const[t,n,r,i]=e;return eo(t,n,r,i)}else if(typeof e=="string")return qk[e];return e};function Zk(e,t,n){const r=[],i=n||Yy,o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||rt:t;l=to(a,l)}r.push(l)}return r}function Jk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Yg(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Zk(t,r,i),a=l.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(a>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Rr(e[f],e[f+1],c);return l[f](d)};return n?c=>u(qt(e[0],e[o-1],c)):u}function eS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rr(0,t,r);e.push(fe(n,1,i))}}function tS(e){const t=[0];return eS(t,e.length-1),t}function nS(e,t){return e.map(n=>n*t)}function rS(e,t){return e.map(()=>t||qy).splice(0,e.length-1)}function Es({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Xk(r)?r.map(Gd):Gd(r),o={done:!1,value:t[0]},s=nS(n&&n.length===t.length?n:tS(t),e),l=Jk(s,t,{ease:Array.isArray(i)?i:rS(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}const iS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ae.update(t,!0),stop:()=>wn(t),now:()=>Le.isProcessing?Le.timestamp:zt.now()}},oS={decay:Kd,inertia:Kd,tween:Es,keyframes:Es,spring:Xy},sS=e=>e/100;class $c extends Ky{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Uc,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new s(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=bc(n)?n:oS[n]||Es;let a,u;l!==Es&&typeof t[0]!="number"&&(a=to(sS,Yy(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=py(c));const{calculatedDuration:f}=c,d=f+i,h=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:f,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:h,repeatType:y,repeatDelay:x,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,S=o;if(h){const P=Math.min(this.currentTime,c)/f;let z=Math.floor(P),N=P%1;!N&&P>=1&&(N=1),N===1&&z--,z=Math.min(z,h+1),!!(z%2)&&(y==="reverse"?(N=1-N,x&&(N-=x/f)):y==="mirror"&&(S=s)),m=qt(0,1,N)*f}const C=g?{done:!1,value:a[0]}:S.next(m);l&&(C.value=l(C.value));let{done:k}=C;!g&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return L&&i!==void 0&&(C.value=Xs(a,this.options,i)),E&&E(C.value),L&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Kt(t.calculatedDuration):0}get time(){return Kt(this.currentTime)}set time(t){t=Wt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Kt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=iS,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const lS=new Set(["opacity","clipPath","filter","transform"]);function aS(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l="easeInOut",times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=yy(l,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const uS=gc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ts=10,cS=2e4;function fS(e){return bc(e.type)||e.type==="spring"||!gy(e.ease)}function dS(e,t){const n=new $c({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<cS;)r=n.sample(o),i.push(r.value),o+=Ts;return{times:void 0,keyframes:i,duration:o-Ts,ease:"linear"}}const Zy={anticipate:Iy,backInOut:Ly,circInOut:by};function hS(e){return e in Zy}class Yd extends Ky{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Wy(o,(s,l)=>this.onKeyframesResolved(s,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Ss()&&hS(o)&&(o=Zy[o]),fS(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:y,...x}=this.options,E=dS(t,x);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,s="keyframes"}const c=aS(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Md(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(Xs(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Kt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Wt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return rt;const{animation:r}=n;Md(r,t)}return rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...h}=this.options,y=new $c({...h,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),x=Wt(this.time);u.setWithVelocity(y.sample(x-Ts).value,y.sample(x).value,Ts)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return uS()&&r&&lS.has(r)&&!a&&!u&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const pS={type:"spring",stiffness:500,damping:25,restSpeed:10},mS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gS={type:"keyframes",duration:.8},yS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vS=(e,{keyframes:t})=>t.length>2?gS:Yn.has(e)?e.startsWith("scale")?mS(t[1]):pS:yS;function xS({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const Wc=(e,t,n,r={},i,o)=>s=>{const l=Dc(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Wt(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:d=>{t.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};xS(l)||(c={...c,...vS(e,c)}),c.duration&&(c.duration=Wt(c.duration)),c.repeatDelay&&(c.repeatDelay=Wt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=Xs(c.keyframes,l);if(d!==void 0)return ae.update(()=>{c.onUpdate(d),c.onComplete()}),new Vw([])}return!o&&Yd.supports(c)?new Yd(c):new $c(c)};function wS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jy(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...a}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=a[f];if(h===void 0||c&&wS(c,f))continue;const y={delay:n,...Dc(s||{},f)};let x=!1;if(window.MotionHandoffAnimation){const p=Cy(e);if(p){const g=window.MotionHandoffAnimation(p,f,ae);g!==null&&(y.startTime=g,x=!0)}}Ya(e,f),d.start(Wc(f,d,h,e.shouldReduceMotion&&ky.has(f)?{type:!1}:y,e,x));const E=d.animation;E&&u.push(E)}return l&&Promise.all(u).then(()=>{ae.update(()=>{l&&Zw(e,l)})}),u}function tu(e,t,n={}){var r;const i=Qs(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Jy(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return kS(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[u,c]=a==="beforeChildren"?[s,l]:[l,s];return u().then(()=>c())}else return Promise.all([s(),l(n.delay)])}function kS(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(SS).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(tu(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function SS(e,t){return e.sortNodePosition(t)}function CS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>tu(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=tu(e,t,n);else{const i=typeof t=="function"?Qs(e,t,n.custom):t;r=Promise.all(Jy(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const ES=vc.length;function e0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?e0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ES;n++){const r=vc[n],i=e.props[r];(Ui(i)||i===!1)&&(t[r]=i)}return t}const TS=[...yc].reverse(),PS=yc.length;function AS(e){return t=>Promise.all(t.map(({animation:n,options:r})=>CS(e,n,r)))}function LS(e){let t=AS(e),n=Qd(),r=!0;const i=a=>(u,c)=>{var f;const d=Qs(e,c,a==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:y,...x}=d;u={...u,...x,...y}}return u};function o(a){t=a(e)}function s(a){const{props:u}=e,c=e0(e.parent)||{},f=[],d=new Set;let h={},y=1/0;for(let E=0;E<PS;E++){const p=TS[E],g=n[p],m=u[p]!==void 0?u[p]:c[p],S=Ui(m),C=p===a?g.isActive:null;C===!1&&(y=E);let k=m===c[p]&&m!==u[p]&&S;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),g.protectedKeys={...h},!g.isActive&&C===null||!m&&!g.prevProp||Gs(m)||typeof m=="boolean")continue;const L=IS(g.prevProp,m);let P=L||p===a&&g.isActive&&!k&&S||E>y&&S,z=!1;const N=Array.isArray(m)?m:[m];let _=N.reduce(i(p),{});C===!1&&(_={});const{prevResolvedValues:V={}}=g,X={...V,..._},te=$=>{P=!0,d.has($)&&(z=!0,d.delete($)),g.needsAnimating[$]=!0;const b=e.getValue($);b&&(b.liveStyle=!1)};for(const $ in X){const b=_[$],F=V[$];if(h.hasOwnProperty($))continue;let v=!1;Wa(b)&&Wa(F)?v=!hy(b,F):v=b!==F,v?b!=null?te($):d.add($):b!==void 0&&d.has($)?te($):g.protectedKeys[$]=!0}g.prevProp=m,g.prevResolvedValues=_,g.isActive&&(h={...h,..._}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(k&&L)||z)&&f.push(...N.map($=>({animation:$,options:{type:p}})))}if(d.size){const E={};d.forEach(p=>{const g=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),E[p]=g??null}),f.push({animation:E})}let x=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(f):Promise.resolve()}function l(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(a,u)}),n[a].isActive=u;const f=s(a);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Qd(),r=!0}}}function IS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!hy(t,e):!1}function Ln(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qd(){return{animate:Ln(!0),whileInView:Ln(),whileHover:Ln(),whileTap:Ln(),whileDrag:Ln(),whileFocus:Ln(),exit:Ln()}}class Tn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class DS extends Tn{constructor(t){super(t),t.animationState||(t.animationState=LS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Gs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let bS=0;class MS extends Tn{constructor(){super(...arguments),this.id=bS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const RS={animation:{Feature:DS},exit:{Feature:MS}};function Ki(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function no(e){return{point:{x:e.pageX,y:e.pageY}}}const NS=e=>t=>Rc(t)&&e(t,no(t));function xi(e,t,n,r){return Ki(e,t,NS(n),r)}const Xd=(e,t)=>Math.abs(e-t);function _S(e,t){const n=Xd(e.x,t.x),r=Xd(e.y,t.y);return Math.sqrt(n**2+r**2)}class t0{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_l(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=_S(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:y}=f,{timestamp:x}=Le;this.history.push({...y,timestamp:x});const{onStart:E,onMove:p}=this.handlers;d||(E&&E(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Nl(d,this.transformPagePoint),ae.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:h,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=_l(f.type==="pointercancel"?this.lastMoveEventInfo:Nl(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,E),y&&y(f,E)},!Rc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=no(t),l=Nl(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=Le;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,_l(l,this.history)),this.removeListeners=to(xi(this.contextWindow,"pointermove",this.handlePointerMove),xi(this.contextWindow,"pointerup",this.handlePointerUp),xi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),wn(this.updatePoint)}}function Nl(e,t){return t?{point:t(e.point)}:e}function qd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _l({point:e},t){return{point:e,delta:qd(e,n0(t)),offset:qd(e,zS(t)),velocity:OS(t,.1)}}function zS(e){return e[0]}function n0(e){return e[e.length-1]}function OS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=n0(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Wt(t)));)n--;if(!r)return{x:0,y:0};const o=Kt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const r0=1e-4,VS=1-r0,FS=1+r0,i0=.01,jS=0-i0,BS=0+i0;function ot(e){return e.max-e.min}function US(e,t,n){return Math.abs(e-t)<=n}function Zd(e,t,n,r=.5){e.origin=r,e.originPoint=fe(t.min,t.max,e.origin),e.scale=ot(n)/ot(t),e.translate=fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=VS&&e.scale<=FS||isNaN(e.scale))&&(e.scale=1),(e.translate>=jS&&e.translate<=BS||isNaN(e.translate))&&(e.translate=0)}function wi(e,t,n,r){Zd(e.x,t.x,n.x,r?r.originX:void 0),Zd(e.y,t.y,n.y,r?r.originY:void 0)}function Jd(e,t,n){e.min=n.min+t.min,e.max=e.min+ot(t)}function HS(e,t,n){Jd(e.x,t.x,n.x),Jd(e.y,t.y,n.y)}function eh(e,t,n){e.min=t.min-n.min,e.max=e.min+ot(t)}function ki(e,t,n){eh(e.x,t.x,n.x),eh(e.y,t.y,n.y)}function $S(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?fe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?fe(n,e,r.max):Math.min(e,n)),e}function th(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function WS(e,{top:t,left:n,bottom:r,right:i}){return{x:th(e.x,n,i),y:th(e.y,t,r)}}function nh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function KS(e,t){return{x:nh(e.x,t.x),y:nh(e.y,t.y)}}function GS(e,t){let n=.5;const r=ot(e),i=ot(t);return i>r?n=Rr(t.min,t.max-r,e.min):r>i&&(n=Rr(e.min,e.max-i,t.min)),qt(0,1,n)}function YS(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const nu=.35;function QS(e=nu){return e===!1?e=0:e===!0&&(e=nu),{x:rh(e,"left","right"),y:rh(e,"top","bottom")}}function rh(e,t,n){return{min:ih(e,t),max:ih(e,n)}}function ih(e,t){return typeof e=="number"?e:e[t]||0}const oh=()=>({translate:0,scale:1,origin:0,originPoint:0}),mr=()=>({x:oh(),y:oh()}),sh=()=>({min:0,max:0}),ye=()=>({x:sh(),y:sh()});function ut(e){return[e("x"),e("y")]}function o0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qS(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function zl(e){return e===void 0||e===1}function ru({scale:e,scaleX:t,scaleY:n}){return!zl(e)||!zl(t)||!zl(n)}function bn(e){return ru(e)||s0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function s0(e){return lh(e.x)||lh(e.y)}function lh(e){return e&&e!=="0%"}function Ps(e,t,n){const r=e-n,i=t*r;return n+i}function ah(e,t,n,r,i){return i!==void 0&&(e=Ps(e,i,r)),Ps(e,n,r)+t}function iu(e,t=0,n=1,r,i){e.min=ah(e.min,t,n,r,i),e.max=ah(e.max,t,n,r,i)}function l0(e,{x:t,y:n}){iu(e.x,t.translate,t.scale,t.originPoint),iu(e.y,n.translate,n.scale,n.originPoint)}const uh=.999999999999,ch=1.0000000000001;function ZS(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&a.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&yr(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,l0(e,s)),r&&bn(o.latestValues)&&yr(e,o.latestValues))}t.x<ch&&t.x>uh&&(t.x=1),t.y<ch&&t.y>uh&&(t.y=1)}function gr(e,t){e.min=e.min+t,e.max=e.max+t}function fh(e,t,n,r,i=.5){const o=fe(e.min,e.max,i);iu(e,t,n,o,r)}function yr(e,t){fh(e.x,t.x,t.scaleX,t.scale,t.originX),fh(e.y,t.y,t.scaleY,t.scale,t.originY)}function a0(e,t){return o0(qS(e.getBoundingClientRect(),t))}function JS(e,t,n){const r=a0(e,n),{scroll:i}=t;return i&&(gr(r.x,i.offset.x),gr(r.y,i.offset.y)),r}const u0=({current:e})=>e?e.ownerDocument.defaultView:null,eC=new WeakMap;class tC{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ye(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(no(c).point)},o=(c,f)=>{const{drag:d,dragPropagation:h,onDragStart:y}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Gw(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ut(E=>{let p=this.getAxisMotionValue(E).get()||0;if(_t.test(p)){const{projection:g}=this.visualElement;if(g&&g.layout){const m=g.layout.layoutBox[E];m&&(p=ot(m)*(parseFloat(p)/100))}}this.originPoint[E]=p}),y&&ae.postRender(()=>y(c,f)),Ya(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:y,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:E}=f;if(h&&this.currentDirection===null){this.currentDirection=nC(E),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,E),this.updateAxis("y",f.point,E),this.visualElement.render(),x&&x(c,f)},l=(c,f)=>this.stop(c,f),a=()=>ut(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new t0(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:u0(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ae.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ao(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=$S(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&hr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=WS(i.layoutBox,n):this.constraints=!1,this.elastic=QS(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ut(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=YS(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!hr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=JS(r,i.root,this.visualElement.getTransformPagePoint());let s=KS(i.layout.layoutBox,o);if(n){const l=n(XS(s));this.hasMutatedConstraints=!!l,l&&(s=o0(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=ut(c=>{if(!Ao(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ya(this.visualElement,t),r.start(Wc(t,r,0,n,this.visualElement,!1))}stopAnimation(){ut(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ut(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ut(n=>{const{drag:r}=this.getProps();if(!Ao(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-fe(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!hr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ut(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const a=l.get();i[s]=GS({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ut(s=>{if(!Ao(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(fe(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;eC.set(this.visualElement,this);const t=this.visualElement.current,n=xi(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();hr(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ae.read(r);const s=Ki(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(ut(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=nu,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Ao(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function nC(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class rC extends Tn{constructor(t){super(t),this.removeGroupControls=rt,this.removeListeners=rt,this.controls=new tC(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rt}unmount(){this.removeGroupControls(),this.removeListeners()}}const dh=e=>(t,n)=>{e&&ae.postRender(()=>e(t,n))};class iC extends Tn{constructor(){super(...arguments),this.removePointerDownListener=rt}onPointerDown(t){this.session=new t0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:u0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:dh(t),onStart:dh(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&ae.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=xi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function hh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Jr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const n=hh(e,t.target.x),r=hh(e,t.target.y);return`${n}% ${r}%`}},oC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=kn.parse(e);if(i.length>5)return r;const o=kn.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=fe(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class sC extends M.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Pw(lC),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Wo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||ae.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),wc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function c0(e){const[t,n]=Kg(),r=M.useContext(dc);return T.jsx(sC,{...e,layoutGroup:r,switchLayoutGroup:M.useContext(ey),isPresent:t,safeToRemove:n})}const lC={borderRadius:{...Jr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Jr,borderTopRightRadius:Jr,borderBottomLeftRadius:Jr,borderBottomRightRadius:Jr,boxShadow:oC};function aC(e,t,n){const r=_e(e)?e:$i(e);return r.start(Wc("",r,t,n)),r.animation}function uC(e){return e instanceof SVGElement&&e.tagName!=="svg"}const cC=(e,t)=>e.depth-t.depth;class fC{constructor(){this.children=[],this.isDirty=!1}add(t){Nc(this.children,t),this.isDirty=!0}remove(t){_c(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cC),this.isDirty=!1,this.children.forEach(t)}}function dC(e,t){const n=zt.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(wn(r),e(o-t))};return ae.read(r,!0),()=>wn(r)}const f0=["TopLeft","TopRight","BottomLeft","BottomRight"],hC=f0.length,ph=e=>typeof e=="string"?parseFloat(e):e,mh=e=>typeof e=="number"||j.test(e);function pC(e,t,n,r,i,o){i?(e.opacity=fe(0,n.opacity!==void 0?n.opacity:1,mC(r)),e.opacityExit=fe(t.opacity!==void 0?t.opacity:1,0,gC(r))):o&&(e.opacity=fe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<hC;s++){const l=`border${f0[s]}Radius`;let a=gh(t,l),u=gh(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||mh(a)===mh(u)?(e[l]=Math.max(fe(ph(a),ph(u),r),0),(_t.test(u)||_t.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=fe(t.rotate||0,n.rotate||0,r))}function gh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const mC=d0(0,.5,Dy),gC=d0(.5,.95,rt);function d0(e,t,n){return r=>r<e?0:r>t?1:n(Rr(e,t,r))}function yh(e,t){e.min=t.min,e.max=t.max}function at(e,t){yh(e.x,t.x),yh(e.y,t.y)}function vh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function xh(e,t,n,r,i){return e-=t,e=Ps(e,1/n,r),i!==void 0&&(e=Ps(e,1/i,r)),e}function yC(e,t=0,n=1,r=.5,i,o=e,s=e){if(_t.test(t)&&(t=parseFloat(t),t=fe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=fe(o.min,o.max,r);e===o&&(l-=t),e.min=xh(e.min,t,n,l,i),e.max=xh(e.max,t,n,l,i)}function wh(e,t,[n,r,i],o,s){yC(e,t[n],t[r],t[i],t.scale,o,s)}const vC=["x","scaleX","originX"],xC=["y","scaleY","originY"];function kh(e,t,n,r){wh(e.x,t,vC,n?n.x:void 0,r?r.x:void 0),wh(e.y,t,xC,n?n.y:void 0,r?r.y:void 0)}function Sh(e){return e.translate===0&&e.scale===1}function h0(e){return Sh(e.x)&&Sh(e.y)}function Ch(e,t){return e.min===t.min&&e.max===t.max}function wC(e,t){return Ch(e.x,t.x)&&Ch(e.y,t.y)}function Eh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function p0(e,t){return Eh(e.x,t.x)&&Eh(e.y,t.y)}function Th(e){return ot(e.x)/ot(e.y)}function Ph(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class kC{constructor(){this.members=[]}add(t){Nc(this.members,t),t.scheduleRender()}remove(t){if(_c(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function SC(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:h,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),y&&(r+=`skewY(${y}deg) `)}const l=e.x.scale*t.x,a=e.y.scale*t.y;return(l!==1||a!==1)&&(r+=`scale(${l}, ${a})`),r||"none"}const Mn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ai=typeof window<"u"&&window.MotionDebug!==void 0,Ol=["","X","Y","Z"],CC={visibility:"hidden"},Ah=1e3;let EC=0;function Vl(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function m0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Cy(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ae,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&m0(r)}function g0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=EC++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ai&&(Mn.totalNodes=Mn.resolvedTargetDeltas=Mn.recalculatedProjection=0),this.nodes.forEach(AC),this.nodes.forEach(MC),this.nodes.forEach(RC),this.nodes.forEach(LC),ai&&window.MotionDebug.record(Mn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new fC)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new zc),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const a=this.eventHandlers.get(s);a&&a.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=uC(s),this.instance=s;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=dC(d,250),Wo.hasAnimatedSinceResize&&(Wo.hasAnimatedSinceResize=!1,this.nodes.forEach(Ih))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||VC,{onLayoutAnimationStart:E,onLayoutAnimationComplete:p}=c.getProps(),g=!this.targetLayout||!p0(this.targetLayout,y)||h,m=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const S={...Dc(x,"layout"),onPlay:E,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else d||Ih(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,wn(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(NC),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&m0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Lh);return}this.isUpdating||this.nodes.forEach(DC),this.isUpdating=!1,this.nodes.forEach(bC),this.nodes.forEach(TC),this.nodes.forEach(PC),this.clearAllSnapshots();const l=zt.now();Le.delta=qt(0,1e3/60,l-Le.timestamp),Le.timestamp=l,Le.isProcessing=!0,Ll.update.process(Le),Ll.preRender.process(Le),Ll.render.process(Le),Le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(IC),this.sharedNodes.forEach(_C)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ae.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ae.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ye(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l){const a=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!h0(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(l||bn(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return s&&(a=this.removeTransform(a)),FC(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:l}=this.options;if(!l)return ye();const a=l.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(jC))){const{scroll:c}=this.root;c&&(gr(a.x,c.offset.x),gr(a.y,c.offset.y))}return a}removeElementScroll(s){var l;const a=ye();if(at(a,s),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&at(a,s),gr(a.x,f.offset.x),gr(a.y,f.offset.y))}return a}applyTransform(s,l=!1){const a=ye();at(a,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&yr(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),bn(c.latestValues)&&yr(a,c.latestValues)}return bn(this.latestValues)&&yr(a,this.latestValues),a}removeTransform(s){const l=ye();at(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!bn(u.latestValues))continue;ru(u.latestValues)&&u.updateSnapshot();const c=ye(),f=u.measurePageBox();at(c,f),kh(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return bn(this.latestValues)&&kh(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=Le.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ye(),this.relativeTargetOrigin=ye(),ki(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),at(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ye(),this.targetWithTransforms=ye()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HS(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):at(this.target,this.layout.layoutBox),l0(this.target,this.targetDelta)):at(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ye(),this.relativeTargetOrigin=ye(),ki(this.relativeTargetOrigin,this.target,h.target),at(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ai&&Mn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ru(this.parent.latestValues)||s0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Le.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;at(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;ZS(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=ye());const{target:y}=l;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vh(this.prevProjectionDelta.x,this.projectionDelta.x),vh(this.prevProjectionDelta.y,this.projectionDelta.y)),wi(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Ph(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ph(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),ai&&Mn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mr(),this.projectionDelta=mr(),this.projectionDeltaWithTransform=mr()}setAnimationOrigin(s,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},f=mr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=ye(),h=a?a.source:void 0,y=this.layout?this.layout.source:void 0,x=h!==y,E=this.getStack(),p=!E||E.members.length<=1,g=!!(x&&!p&&this.options.crossfade===!0&&!this.path.some(OC));this.animationProgress=0;let m;this.mixTargetDelta=S=>{const C=S/1e3;Dh(f.x,s.x,C),Dh(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ki(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zC(this.relativeTarget,this.relativeTargetOrigin,d,C),m&&wC(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=ye()),at(m,this.relativeTarget)),x&&(this.animationValues=c,pC(c,u,this.latestValues,C,g,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ae.update(()=>{Wo.hasAnimatedSinceResize=!0,this.currentAnimation=aC(0,Ah,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ah),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&y0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||ye();const f=ot(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=ot(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}at(l,a),yr(l,c),wi(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new kC),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&Vl("z",s,u,this.animationValues);for(let c=0;c<Ol.length;c++)Vl(`rotate${Ol[c]}`,s,u,this.animationValues),Vl(`skew${Ol[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return CC;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ho(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ho(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!bn(this.latestValues)&&(x.transform=c?c({},""):"none",this.hasProjected=!1),x}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=SC(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:h,y}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${y.origin*100}% 0`,f.animationValues?u.opacity=f===this?(a=(l=d.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const x in ks){if(d[x]===void 0)continue;const{correct:E,applyTo:p}=ks[x],g=u.transform==="none"?d[x]:E(d[x],f);if(p){const m=p.length;for(let S=0;S<m;S++)u[p[S]]=g}else u[x]=g}return this.options.layoutId&&(u.pointerEvents=f===this?Ho(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Lh),this.root.sharedNodes.clear()}}}function TC(e){e.updateLayout()}function PC(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?ut(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ot(d);d.min=r[f].min,d.max=d.min+h}):y0(o,n.layoutBox,r)&&ut(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ot(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=mr();wi(l,r,n.layoutBox);const a=mr();s?wi(a,e.applyTransform(i,!0),n.measuredBox):wi(a,r,n.layoutBox);const u=!h0(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const y=ye();ki(y,n.layoutBox,d.layoutBox);const x=ye();ki(x,r,h.layoutBox),p0(y,x)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function AC(e){ai&&Mn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function LC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function IC(e){e.clearSnapshot()}function Lh(e){e.clearMeasurements()}function DC(e){e.isLayoutDirty=!1}function bC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ih(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function MC(e){e.resolveTargetDelta()}function RC(e){e.calcProjection()}function NC(e){e.resetSkewAndRotation()}function _C(e){e.removeLeadSnapshot()}function Dh(e,t,n){e.translate=fe(t.translate,0,n),e.scale=fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bh(e,t,n,r){e.min=fe(t.min,n.min,r),e.max=fe(t.max,n.max,r)}function zC(e,t,n,r){bh(e.x,t.x,n.x,r),bh(e.y,t.y,n.y,r)}function OC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const VC={duration:.45,ease:[.4,0,.1,1]},Mh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rh=Mh("applewebkit/")&&!Mh("chrome/")?Math.round:rt;function Nh(e){e.min=Rh(e.min),e.max=Rh(e.max)}function FC(e){Nh(e.x),Nh(e.y)}function y0(e,t,n){return e==="position"||e==="preserve-aspect"&&!US(Th(t),Th(n),.2)}function jC(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const BC=g0({attachResizeListener:(e,t)=>Ki(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fl={current:void 0},v0=g0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fl.current){const e=new BC({});e.mount(window),e.setOptions({layoutScroll:!0}),Fl.current=e}return Fl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),UC={pan:{Feature:iC},drag:{Feature:rC,ProjectionNode:v0,MeasureLayout:c0}};function _h(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&ae.postRender(()=>o(t,no(t)))}class HC extends Tn{mount(){const{current:t}=this.node;t&&(this.unmount=Uw(t,n=>(_h(this.node,n,"Start"),r=>_h(this.node,r,"End"))))}unmount(){}}class $C extends Tn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=to(Ki(this.node.current,"focus",()=>this.onFocus()),Ki(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zh(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&ae.postRender(()=>o(t,no(t)))}class WC extends Tn{mount(){const{current:t}=this.node;t&&(this.unmount=Kw(t,n=>(zh(this.node,n,"Start"),(r,{success:i})=>zh(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ou=new WeakMap,jl=new WeakMap,KC=e=>{const t=ou.get(e.target);t&&t(e)},GC=e=>{e.forEach(KC)};function YC({root:e,...t}){const n=e||document;jl.has(n)||jl.set(n,{});const r=jl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(GC,{root:e,...t})),r[i]}function QC(e,t,n){const r=YC(t);return ou.set(e,n),r.observe(e),()=>{ou.delete(e),r.unobserve(e)}}const XC={some:0,all:1};class qC extends Tn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:XC[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return QC(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ZC(t,n))&&this.startObserver()}unmount(){}}function ZC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const JC={inView:{Feature:qC},tap:{Feature:WC},focus:{Feature:$C},hover:{Feature:HC}},eE={layout:{ProjectionNode:v0,MeasureLayout:c0}},su={current:null},x0={current:!1};function tE(){if(x0.current=!0,!!mc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>su.current=e.matches;e.addListener(t),t()}else su.current=!1}const nE=[...$y,Re,kn],rE=e=>nE.find(Hy(e)),Oh=new WeakMap;function iE(e,t,n){for(const r in t){const i=t[r],o=n[r];if(_e(i))e.addValue(r,i);else if(_e(o))e.addValue(r,$i(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,$i(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Vh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oE{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Uc,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 h=zt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ae.render(this.render,!1,!0))};const{latestValues:a,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Ys(n),this.isVariantNode=Zg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const y=d[h];a[h]!==void 0&&_e(y)&&y.set(a[h],!1)}}mount(t){this.current=t,Oh.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),x0.current||tE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:su.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Oh.delete(this.current),this.projection&&this.projection.unmount(),wn(this.notifyUpdate),wn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Yn.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Nr){const n=Nr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ye()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Vh.length;r++){const i=Vh[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=iE(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=$i(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(By(i)||My(i))?i=parseFloat(i):!rE(i)&&kn.test(n)&&(i=Vy(t,n)),this.setBaseTarget(t,_e(i)?i.get():i)),_e(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Sc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!_e(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class w0 extends oE{constructor(){super(...arguments),this.KeyframeResolver=Wy}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_e(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function sE(e){return window.getComputedStyle(e)}class lE extends w0{constructor(){super(...arguments),this.type="html",this.renderInstance=ly}readValueFromInstance(t,n){if(Yn.has(n)){const r=Bc(n);return r&&r.default||0}else{const r=sE(t),i=(iy(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return a0(t,n)}build(t,n,r){Tc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ic(t,n,r)}}class aE extends w0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ye}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Yn.has(n)){const r=Bc(n);return r&&r.default||0}return n=ay.has(n)?n:xc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fy(t,n,r)}build(t,n,r){Pc(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){uy(t,n,r,i)}mount(t){this.isSVGTag=Lc(t.tagName),super.mount(t)}}const uE=(e,t)=>kc(e)?new aE(t):new lE(t,{allowProjection:e!==M.Fragment}),cE=_w({...RS,...JC,...UC,...eE},uE),Fe=Xx(cE);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var fE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Pe=(e,t)=>{const n=M.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:a,...u},c)=>M.createElement("svg",{ref:c,...fE,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${dE(e)}`,l].join(" "),...u},[...t.map(([f,d])=>M.createElement(f,d)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hE=Pe("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pE=Pe("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mE=Pe("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gE=Pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yE=Pe("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vE=Pe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fh=Pe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xE=Pe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wE=Pe("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kE=Pe("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const SE=Pe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jh=Pe("Loader",[["line",{x1:"12",x2:"12",y1:"2",y2:"6",key:"gza1u7"}],["line",{x1:"12",x2:"12",y1:"18",y2:"22",key:"1qhbu9"}],["line",{x1:"4.93",x2:"7.76",y1:"4.93",y2:"7.76",key:"xae44r"}],["line",{x1:"16.24",x2:"19.07",y1:"16.24",y2:"19.07",key:"bxnmvf"}],["line",{x1:"2",x2:"6",y1:"12",y2:"12",key:"89khin"}],["line",{x1:"18",x2:"22",y1:"12",y2:"12",key:"pb8tfm"}],["line",{x1:"4.93",x2:"7.76",y1:"19.07",y2:"16.24",key:"1uxjnu"}],["line",{x1:"16.24",x2:"19.07",y1:"7.76",y2:"4.93",key:"6duxfx"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CE=Pe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const EE=Pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const TE=Pe("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PE=Pe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const AE=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LE=Pe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function IE(){return T.jsxs(Fe.header,{initial:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{duration:.8},className:"relative z-10 border border-cyber-green/30 rounded-sm p-8 mb-6",style:{background:"linear-gradient(135deg, #020c14 0%, #0a1628 50%, #020c14 100%)",boxShadow:"0 0 40px rgba(0,255,65,0.1), inset 0 0 40px rgba(0,255,65,0.03)"},children:[T.jsx("div",{className:"absolute top-0 left-0 w-4 h-4 border-t-2 border-l-2 border-cyber-green"}),T.jsx("div",{className:"absolute top-0 right-0 w-4 h-4 border-t-2 border-r-2 border-cyber-green"}),T.jsx("div",{className:"absolute bottom-0 left-0 w-4 h-4 border-b-2 border-l-2 border-cyber-green"}),T.jsx("div",{className:"absolute bottom-0 right-0 w-4 h-4 border-b-2 border-r-2 border-cyber-green"}),T.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[T.jsx(Fe.div,{animate:{rotate:[0,5,-5,0]},transition:{duration:3,repeat:1/0},children:T.jsx(TE,{size:40,className:"text-cyber-green",style:{filter:"drop-shadow(0 0 10px #00ff41)"}})}),T.jsx(Fe.h1,{className:"font-orbitron font-black text-3xl md:text-4xl text-cyber-green tracking-widest",style:{textShadow:"0 0 20px #00ff41, 0 0 40px #00ff41"},animate:{opacity:[1,.8,1,.6,1]},transition:{duration:5,repeat:1/0},children:"VULNERABILITY SCANNER"})]}),T.jsx("p",{className:"text-cyber-blue text-sm tracking-widest mb-6",children:"[ AI-POWERED Β· CVE DATABASE Β· NVD INTEGRATION Β· MCP PROTOCOL ]"}),T.jsxs("div",{className:"flex gap-3 flex-wrap",children:[T.jsxs("a",{href:"https://github.com/AdityaDev-X/vulnerability-scanner",target:"_blank",className:"flex items-center gap-2 px-4 py-2 border border-cyber-green text-cyber-green text-sm font-mono tracking-wider hover:bg-cyber-green/10 transition-all duration-300",style:{boxShadow:"0 0 10px rgba(0,255,65,0.2)"},children:[T.jsx(kE,{size:14})," GITHUB"]}),T.jsxs("a",{href:"https://huggingface.co/AdityaDevx",target:"_blank",className:"flex items-center gap-2 px-4 py-2 border border-orange-500 text-orange-400 text-sm font-mono tracking-wider hover:bg-orange-500/10 transition-all duration-300",style:{boxShadow:"0 0 10px rgba(255,107,53,0.2)"},children:[T.jsx(Fh,{size:14})," HUGGING FACE"]}),T.jsxs("a",{href:"https://huggingface.co/spaces/AdityaDevx/github-mcp-server",target:"_blank",className:"flex items-center gap-2 px-4 py-2 border border-cyber-blue text-cyber-blue text-sm font-mono tracking-wider hover:bg-cyber-blue/10 transition-all duration-300",style:{boxShadow:"0 0 10px rgba(79,195,247,0.2)"},children:[T.jsx(Fh,{size:14})," MCP SERVER"]})]})]})}const DE=[{value:"258K+",label:"CVE RECORDS"},{value:"340K",label:"BM25 CHUNKS"},{value:"LLaMA",label:"AI MODEL"},{value:"7",label:"MCP TOOLS"}];function bE(){return T.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6 relative z-10",children:DE.map((e,t)=>T.jsxs(Fe.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:t*.1+.3},className:"relative border border-cyber-green/40 p-4 text-center overflow-hidden",style:{background:"#020c14",boxShadow:"0 0 15px rgba(0,255,65,0.08)"},children:[T.jsx("div",{className:"absolute bottom-0 left-0 h-0.5 w-full",style:{background:"linear-gradient(90deg, transparent, #00ff41, transparent)",animation:`scan ${1.5+t*.3}s linear infinite`}}),T.jsx("div",{className:"font-orbitron font-bold text-xl text-cyber-green",style:{textShadow:"0 0 10px #00ff41"},children:e.value}),T.jsx("div",{className:"text-xs text-cyber-blue tracking-widest mt-1",children:e.label})]},t))})}const Kc="https://adityadevx-vulnerability-scanner-api.hf.space";fetch(`${Kc}/api/health`).catch(()=>{});setInterval(()=>fetch(`${Kc}/api/health`).catch(()=>{}),10*60*1e3);const Bh=["Fetching file content...","Analyzing code structure...","Detecting vulnerabilities...","Searching CVE database...","Fetching NVD details...","Generating report..."],Uh=["Fetching repository info...","Scanning file tree...","Reading source files...","Analyzing vulnerabilities...","Searching CVE database...","Fetching NVD details...","Compiling report..."],ME=[{icon:T.jsx(LE,{size:11}),label:"Python SQL Injection",tag:"~30s",tagColor:"text-cyber-green",url:"https://github.com/ayushmittal62/vunreability_scanner_testing/blob/master/python/database.py"},{icon:T.jsx(yE,{size:11}),label:"SQL Schema",tag:"~30s",tagColor:"text-cyber-green",url:"https://github.com/ayushmittal62/vunreability_scanner_testing/blob/master/database/schema.sql"},{icon:T.jsx(wE,{size:11}),label:"Full Repo Scan",tag:"~3 min",tagColor:"text-orange-400",url:"https://github.com/ayushmittal62/vunreability_scanner_testing"}],Gc="vuln_scan_history";function Ko(){try{return JSON.parse(localStorage.getItem(Gc)||"[]")}catch{return[]}}function RE(e){const t=Ko().filter(n=>n!==e);localStorage.setItem(Gc,JSON.stringify([e,...t].slice(0,8)))}function NE(e){const[t,n]=M.useState(0),r=M.useRef(null);M.useEffect(()=>(e?(n(0),r.current=setInterval(()=>n(s=>s+1),1e3)):clearInterval(r.current),()=>clearInterval(r.current)),[e]);const i=String(Math.floor(t/60)).padStart(2,"0"),o=String(t%60).padStart(2,"0");return`${i}:${o}`}function _E({onResult:e,lastUrl:t}){const[n,r]=M.useState(""),[i,o]=M.useState(!1),[s,l]=M.useState(0),[a,u]=M.useState(""),[c,f]=M.useState(!1),[d,h]=M.useState(Ko),y=NE(i),x=n.includes("github.com")&&!n.includes("/blob/"),E=x?Uh:Bh;M.useEffect(()=>{t&&r(t)},[t]);const p=async m=>{const S=(m||n).trim();if(!S)return;r(S),u(""),o(!0),l(0),f(!1),e(null);const C=S.includes("github.com")&&!S.includes("/blob/"),k=setInterval(()=>{l(L=>L<(C?Uh:Bh).length-1?L+1:L)},C?6e3:4e3);try{const P=await(await fetch(`${Kc}/api/scan`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:S}),signal:AbortSignal.timeout(36e4)})).json();clearInterval(k),o(!1),P.error?u(P.error):(RE(S),h(Ko()),e(P.result,S))}catch{clearInterval(k),o(!1),u("Backend is waking up. Wait 30 seconds and try again.")}},g=(m,S)=>{m.stopPropagation();const C=Ko().filter(k=>k!==S);localStorage.setItem(Gc,JSON.stringify(C)),h(C)};return T.jsxs(Fe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"relative z-10 border border-cyber-border rounded-sm p-6 mb-6",style:{background:"#0a1628"},children:[T.jsxs("div",{className:"flex items-center justify-between mb-4",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx(PE,{size:16,className:"text-cyber-blue"}),T.jsx("span",{className:"font-orbitron text-xs text-cyber-blue tracking-widest",children:"SCAN TARGET"})]}),T.jsxs("div",{className:"flex items-center gap-3",children:[i&&T.jsxs("span",{className:"font-orbitron text-xs text-orange-400 tabular-nums",children:["T ",y]}),n&&!i&&T.jsx("span",{className:`text-xs font-mono px-2 py-0.5 border ${x?"border-orange-500/50 text-orange-400":"border-cyber-green/50 text-cyber-green"}`,children:x?"REPO SCAN":"FILE SCAN"}),d.length>0&&T.jsxs("button",{onClick:()=>f(m=>!m),className:"flex items-center gap-1 text-xs text-gray-500 hover:text-cyber-blue transition-colors font-mono",children:[T.jsx(SE,{size:12})," HISTORY"]})]})]}),T.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[T.jsx("span",{className:"text-xs text-gray-600 font-mono self-center",children:"TRY:"}),ME.map((m,S)=>T.jsxs(Fe.button,{onClick:()=>p(m.url),disabled:i,whileHover:{scale:1.03},whileTap:{scale:.97},className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-mono border border-cyber-border hover:border-cyber-blue text-gray-400 hover:text-cyber-blue transition-all duration-200 disabled:opacity-30 disabled:cursor-not-allowed",style:{background:"#020c14"},children:[m.icon,m.label,T.jsx("span",{className:`${m.tagColor} opacity-70`,children:m.tag})]},S))]}),T.jsx(Al,{children:c&&T.jsx(Fe.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-3 border border-cyber-border/50 divide-y divide-cyber-border/30",style:{background:"#020c14"},children:d.map((m,S)=>T.jsxs("div",{className:"flex items-center justify-between px-3 py-2 hover:bg-cyber-green/5 cursor-pointer group",onClick:()=>p(m),children:[T.jsx("span",{className:"text-xs font-mono text-gray-400 group-hover:text-cyber-green truncate flex-1",children:m}),T.jsx("button",{onClick:C=>g(C,m),className:"ml-2 text-gray-700 hover:text-red-400 transition-colors shrink-0",children:T.jsx(AE,{size:10})})]},S))})}),T.jsxs("div",{className:"flex gap-3 mb-3",children:[T.jsx("div",{className:"flex-1",children:T.jsx("input",{type:"text",value:n,onChange:m=>{r(m.target.value),u("")},onKeyDown:m=>m.key==="Enter"&&!i&&p(),placeholder:"github.com/owner/repo or .../blob/main/file.py",className:"w-full bg-cyber-dark border border-cyber-border text-cyber-green font-mono text-sm px-4 py-3 outline-none transition-all duration-300 placeholder-gray-700",style:{caretColor:"#00ff41"},onFocus:m=>m.target.style.borderColor="#00ff41",onBlur:m=>m.target.style.borderColor="#1a3a5c",disabled:i})}),T.jsxs(Fe.button,{onClick:()=>p(),disabled:i||!n.trim(),whileHover:{scale:1.02},whileTap:{scale:.98},className:"flex items-center gap-2 px-6 py-3 font-orbitron text-xs tracking-widest transition-all duration-300 disabled:opacity-40 disabled:cursor-not-allowed",style:{background:i?"transparent":"rgba(0,255,65,0.1)",border:"1px solid #00ff41",color:"#00ff41",boxShadow:i?"none":"0 0 15px rgba(0,255,65,0.3)"},children:[i?T.jsx(jh,{size:14,className:"animate-spin"}):T.jsx(EE,{size:14}),i?"SCANNING":"SCAN"]})]}),T.jsxs("p",{className:"text-xs text-gray-600 font-mono mb-4",children:["File URL ",T.jsx("span",{className:"text-gray-500",children:"(.../blob/branch/file)"})," or repo URL ",T.jsx("span",{className:"text-gray-500",children:"(github.com/owner/repo)"})]}),T.jsx(Al,{children:a&&T.jsxs(Fe.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"flex items-start gap-2 p-3 border border-red-500/40 text-red-400 text-sm mb-4",style:{background:"rgba(255,0,0,0.05)"},children:[T.jsx(hE,{size:14,className:"mt-0.5 shrink-0"}),a]})}),T.jsx(Al,{children:i&&T.jsx(Fe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"space-y-2",children:E.map((m,S)=>T.jsxs(Fe.div,{initial:{opacity:0,x:-10},animate:{opacity:S<=s?1:.2,x:0},transition:{delay:S*.1},className:"flex items-center gap-3 text-xs font-mono",children:[S<s?T.jsx(mE,{size:12,className:"text-cyber-green shrink-0"}):S===s?T.jsx(jh,{size:12,className:"text-cyber-blue animate-spin shrink-0"}):T.jsx("div",{className:"w-3 h-3 border border-gray-700 rounded-full shrink-0"}),T.jsx("span",{className:S<=s?"text-cyber-blue":"text-gray-700",children:m})]},S))})})]})}function zE(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const OE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FE={};function Hh(e,t){return(FE.jsx?VE:OE).test(e)}const jE=/[ \t\n\f\r]/g;function BE(e){return typeof e=="object"?e.type==="text"?$h(e.value):!1:$h(e)}function $h(e){return e.replace(jE,"")===""}class ro{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ro.prototype.normal={};ro.prototype.property={};ro.prototype.space=void 0;function k0(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ro(n,r,t)}function lu(e){return e.toLowerCase()}class Xe{constructor(t,n){this.attribute=n,this.property=t}}Xe.prototype.attribute="";Xe.prototype.booleanish=!1;Xe.prototype.boolean=!1;Xe.prototype.commaOrSpaceSeparated=!1;Xe.prototype.commaSeparated=!1;Xe.prototype.defined=!1;Xe.prototype.mustUseProperty=!1;Xe.prototype.number=!1;Xe.prototype.overloadedBoolean=!1;Xe.prototype.property="";Xe.prototype.spaceSeparated=!1;Xe.prototype.space=void 0;let UE=0;const H=Qn(),xe=Qn(),au=Qn(),D=Qn(),ne=Qn(),Er=Qn(),Ze=Qn();function Qn(){return 2**++UE}const uu=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:xe,commaOrSpaceSeparated:Ze,commaSeparated:Er,number:D,overloadedBoolean:au,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),Bl=Object.keys(uu);class Yc extends Xe{constructor(t,n,r,i){let o=-1;if(super(t,n),Wh(this,"space",i),typeof r=="number")for(;++o<Bl.length;){const s=Bl[o];Wh(this,Bl[o],(r&uu[s])===uu[s])}}}Yc.prototype.defined=!0;function Wh(e,t,n){n&&(e[t]=n)}function Br(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Yc(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[lu(r)]=r,n[lu(o.attribute)]=r}return new ro(t,n,e.space)}const S0=Br({properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:ne,ariaCurrent:null,ariaDescribedBy:ne,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:ne,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:ne,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ne,ariaLevel:D,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:ne,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:ne,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:xe,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function C0(e,t){return t in e?e[t]:t}function E0(e,t){return C0(e,t.toLowerCase())}const HE=Br({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Er,acceptCharset:ne,accessKey:ne,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:ne,autoFocus:H,autoPlay:H,blocking:ne,capture:null,charSet:null,checked:H,cite:null,className:ne,cols:D,colSpan:null,content:null,contentEditable:xe,controls:H,controlsList:ne,coords:D|Er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:au,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:ne,height:D,hidden:au,high:D,href:null,hrefLang:null,htmlFor:ne,httpEquiv:ne,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:ne,itemRef:ne,itemScope:H,itemType:ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:D,pattern:null,ping:ne,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:ne,required:H,reversed:H,rows:D,rowSpan:D,sandbox:ne,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:xe,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ne,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:E0}),$E=Br({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ze,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:ne,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Er,g2:Er,glyphName:Er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:D,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:C0}),T0=Br({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),P0=Br({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:E0}),A0=Br({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),WE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},KE=/[A-Z]/g,Kh=/-[a-z]/g,GE=/^data[-\w.:]+$/i;function YE(e,t){const n=lu(t);let r=t,i=Xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&GE.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Kh,XE);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Kh.test(o)){let s=o.replace(KE,QE);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Yc}return new i(r,t)}function QE(e){return"-"+e.toLowerCase()}function XE(e){return e.charAt(1).toUpperCase()}const qE=k0([S0,HE,T0,P0,A0],"html"),Qc=k0([S0,$E,T0,P0,A0],"svg");function ZE(e){return e.join(" ").trim()}var Xc={},Gh=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,JE=/\n/g,eT=/^\s*/,tT=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,nT=/^:\s*/,rT=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,iT=/^[;\s]*/,oT=/^\s+|\s+$/g,sT=`
`,Yh="/",Qh="*",Rn="",lT="comment",aT="declaration";function uT(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var x=y.match(JE);x&&(n+=x.length);var E=y.lastIndexOf(sT);r=~E?y.length-E:r+y.length}function o(){var y={line:n,column:r};return function(x){return x.position=new s(y),u(),x}}function s(y){this.start=y,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function l(y){var x=new Error(t.source+":"+n+":"+r+": "+y);if(x.reason=y,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function a(y){var x=y.exec(e);if(x){var E=x[0];return i(E),e=e.slice(E.length),x}}function u(){a(eT)}function c(y){var x;for(y=y||[];x=f();)x!==!1&&y.push(x);return y}function f(){var y=o();if(!(Yh!=e.charAt(0)||Qh!=e.charAt(1))){for(var x=2;Rn!=e.charAt(x)&&(Qh!=e.charAt(x)||Yh!=e.charAt(x+1));)++x;if(x+=2,Rn===e.charAt(x-1))return l("End of comment missing");var E=e.slice(2,x-2);return r+=2,i(E),e=e.slice(x),r+=2,y({type:lT,comment:E})}}function d(){var y=o(),x=a(tT);if(x){if(f(),!a(nT))return l("property missing ':'");var E=a(rT),p=y({type:aT,property:Xh(x[0].replace(Gh,Rn)),value:E?Xh(E[0].replace(Gh,Rn)):Rn});return a(iT),p}}function h(){var y=[];c(y);for(var x;x=d();)x!==!1&&(y.push(x),c(y));return y}return u(),h()}function Xh(e){return e?e.replace(oT,Rn):Rn}var cT=uT,fT=Qo&&Qo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xc,"__esModule",{value:!0});Xc.default=hT;const dT=fT(cT);function hT(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,dT.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:l}=o;i?t(s,l,o):l&&(n=n||{},n[s]=l)}),n}var qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.camelCase=void 0;var pT=/^--[a-zA-Z0-9_-]+$/,mT=/-([a-z])/g,gT=/^[^-]+$/,yT=/^-(webkit|moz|ms|o|khtml)-/,vT=/^-(ms)-/,xT=function(e){return!e||gT.test(e)||pT.test(e)},wT=function(e,t){return t.toUpperCase()},qh=function(e,t){return"".concat(t,"-")},kT=function(e,t){return t===void 0&&(t={}),xT(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(vT,qh):e=e.replace(yT,qh),e.replace(mT,wT))};qs.camelCase=kT;var ST=Qo&&Qo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},CT=ST(Xc),ET=qs;function cu(e,t){var n={};return!e||typeof e!="string"||(0,CT.default)(e,function(r,i){r&&i&&(n[(0,ET.camelCase)(r,t)]=i)}),n}cu.default=cu;var TT=cu;const PT=Rp(TT),L0=I0("end"),qc=I0("start");function I0(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function AT(e){const t=qc(e),n=L0(e);if(t&&n)return{start:t,end:n}}function Si(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zh(e.position):"start"in e||"end"in e?Zh(e):"line"in e||"column"in e?fu(e):""}function fu(e){return Jh(e&&e.line)+":"+Jh(e&&e.column)}function Zh(e){return fu(e&&e.start)+"-"+fu(e&&e.end)}function Jh(e){return e&&typeof e=="number"?e:1}class Oe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=Si(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Oe.prototype.file="";Oe.prototype.name="";Oe.prototype.reason="";Oe.prototype.message="";Oe.prototype.stack="";Oe.prototype.column=void 0;Oe.prototype.line=void 0;Oe.prototype.ancestors=void 0;Oe.prototype.cause=void 0;Oe.prototype.fatal=void 0;Oe.prototype.place=void 0;Oe.prototype.ruleId=void 0;Oe.prototype.source=void 0;const Zc={}.hasOwnProperty,LT=new Map,IT=/[A-Z]/g,DT=new Set(["table","tbody","thead","tfoot","tr"]),bT=new Set(["td","th"]),D0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=FT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qc:qE,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=b0(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function b0(e,t,n){if(t.type==="element")return RT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return NT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zT(e,t,n);if(t.type==="mdxjsEsm")return _T(e,t);if(t.type==="root")return OT(e,t,n);if(t.type==="text")return VT(e,t)}function RT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Qc,e.schema=i),e.ancestors.push(t);const o=R0(e,t.tagName,!1),s=BT(e,t);let l=ef(e,t);return DT.has(t.tagName)&&(l=l.filter(function(a){return typeof a=="string"?!BE(a):!0})),M0(e,s,o,t),Jc(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function NT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Gi(e,t.position)}function _T(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Gi(e,t.position)}function zT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Qc,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:R0(e,t.name,!0),s=UT(e,t),l=ef(e,t);return M0(e,s,o,t),Jc(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function OT(e,t,n){const r={};return Jc(r,ef(e,t)),e.create(t,e.Fragment,r,n)}function VT(e,t){return t.value}function M0(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Jc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function FT(e,t,n){return r;function r(i,o,s,l){const u=Array.isArray(s.children)?n:t;return l?u(o,s,l):u(o,s)}}function jT(e,t){return n;function n(r,i,o,s){const l=Array.isArray(o.children),a=qc(r);return t(i,o,s,l,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function BT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Zc.call(t.properties,i)){const o=HT(e,i,t.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&bT.has(t.tagName)?r=l:n[s]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function UT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const l=s.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Gi(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else Gi(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function ef(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:LT;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const u=i.get(a)||0;s=a+"-"+u,i.set(a,u+1)}}const l=b0(e,o,s);l!==void 0&&n.push(l)}return n}function HT(e,t,n){const r=YE(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?zE(n):ZE(n)),r.property==="style"){let i=typeof n=="object"?n:$T(e,String(n));return e.stylePropertyNameCase==="css"&&(i=WT(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?WE[r.property]||r.property:r.attribute,n]}}function $T(e,t){try{return PT(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Oe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=D0+"#cannot-parse-style-attribute",i}}function R0(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const l=Hh(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=s}else r=Hh(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Zc.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Gi(e)}function Gi(e,t){const n=new Oe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=D0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function WT(e){const t={};let n;for(n in e)Zc.call(e,n)&&(t[KT(n)]=e[n]);return t}function KT(e){let t=e.replace(IT,GT);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function GT(e){return"-"+e.toLowerCase()}const Ul={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},YT={};function QT(e,t){const n=YT,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return N0(e,r,i)}function N0(e,t,n){if(XT(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ep(e.children,t,n)}return Array.isArray(e)?ep(e,t,n):""}function ep(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=N0(e[i],t,n);return r.join("")}function XT(e){return!!(e&&typeof e=="object")}const tp=document.createElement("i");function tf(e){const t="&"+e+";";tp.innerHTML=t;const n=tp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ot(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function dt(e,t){return e.length>0?(Ot(e,e.length,0,t),e):t}const np={}.hasOwnProperty;function qT(e){const t={};let n=-1;for(;++n<e.length;)ZT(t,e[n]);return t}function ZT(e,t){let n;for(n in t){const i=(np.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){np.call(i,s)||(i[s]=[]);const l=o[s];JT(i[s],Array.isArray(l)?l:l?[l]:[])}}}function JT(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ot(e,0,0,r)}function _0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"οΏ½":String.fromCodePoint(n)}function Tr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Mt=Pn(/[A-Za-z]/),tt=Pn(/[\dA-Za-z]/),e2=Pn(/[#-'*+\--9=?A-Z^-~]/);function du(e){return e!==null&&(e<32||e===127)}const hu=Pn(/\d/),t2=Pn(/[\dA-Fa-f]/),n2=Pn(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function Qe(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}const r2=Pn(new RegExp("\\p{P}|\\p{S}","u")),i2=Pn(/\s/);function Pn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ur(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&tt(e.charCodeAt(n+1))&&tt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(s=String.fromCharCode(o,l),i=1):s="οΏ½"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ie(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(a){return q(a)?(e.enter(n),l(a)):t(a)}function l(a){return q(a)&&o++<i?(e.consume(a),l):(e.exit(n),t(a))}}const o2={tokenize:s2};function s2(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ie(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return B(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),s)}}const l2={tokenize:a2},rp={tokenize:u2};function a2(e){const t=this,n=[];let r=0,i,o,s;return l;function l(m){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,a,u)(m)}return u(m)}function a(m){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&g();const S=t.events.length;let C=S,k;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){k=t.events[C][1].end;break}p(r);let L=S;for(;L<t.events.length;)t.events[L][1].end={...k},L++;return Ot(t.events,C+1,0,t.events.slice(S)),t.events.length=L,u(m)}return l(m)}function u(m){if(r===n.length){if(!i)return d(m);if(i.currentConstruct&&i.currentConstruct.concrete)return y(m);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rp,c,f)(m)}function c(m){return i&&g(),p(r),d(m)}function f(m){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,y(m)}function d(m){return t.containerState={},e.attempt(rp,h,y)(m)}function h(m){return r++,n.push([t.currentConstruct,t.containerState]),d(m)}function y(m){if(m===null){i&&g(),p(0),e.consume(m);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(m)}function x(m){if(m===null){E(e.exit("chunkFlow"),!0),p(0),e.consume(m);return}return B(m)?(e.consume(m),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(m),x)}function E(m,S){const C=t.sliceStream(m);if(S&&C.push(null),m.previous=o,o&&(o.next=m),o=m,i.defineSkip(m.start),i.write(C),t.parser.lazy[m.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<s&&(!i.events[k][1].end||i.events[k][1].end.offset>s))return;const L=t.events.length;let P=L,z,N;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(z){N=t.events[P][1].end;break}z=!0}for(p(r),k=L;k<t.events.length;)t.events[k][1].end={...N},k++;Ot(t.events,P+1,0,t.events.slice(L)),t.events.length=k}}function p(m){let S=n.length;for(;S-- >m;){const C=n[S];t.containerState=C[1],C[0].exit.call(t,e)}n.length=m}function g(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function u2(e,t,n){return ie(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ip(e){if(e===null||Qe(e)||i2(e))return 1;if(r2(e))return 2}function nf(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const pu={name:"attention",resolveAll:c2,tokenize:f2};function c2(e,t){let n=-1,r,i,o,s,l,a,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[n][1].start};op(f,-a),op(d,a),s={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[r][1].end={...s.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=dt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=dt(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=dt(u,nf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=dt(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=dt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ot(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function f2(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ip(r);let o;return s;function s(a){return o=a,e.enter("attentionSequence"),l(a)}function l(a){if(a===o)return e.consume(a),l;const u=e.exit("attentionSequence"),c=ip(a),f=!c||c===2&&i||n.includes(a),d=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?f:f&&(i||!d)),u._close=!!(o===42?d:d&&(c||!f)),t(a)}}function op(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const d2={name:"autolink",tokenize:h2};function h2(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Mt(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||tt(h)?(r=1,l(h)):u(h)}function l(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||tt(h))&&r++<32?(e.consume(h),l):(r=0,u(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||du(h)?n(h):(e.consume(h),a)}function u(h){return h===64?(e.consume(h),c):e2(h)?(e.consume(h),u):n(h)}function c(h){return tt(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||tt(h))&&r++<63){const y=h===45?d:f;return e.consume(h),y}return n(h)}}const Zs={partial:!0,tokenize:p2};function p2(e,t,n){return r;function r(o){return q(o)?ie(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||B(o)?t(o):n(o)}}const z0={continuation:{tokenize:g2},exit:y2,name:"blockQuote",tokenize:m2};function m2(e,t,n){const r=this;return i;function i(s){if(s===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return q(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function g2(e,t,n){const r=this;return i;function i(s){return q(s)?ie(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(z0,t,n)(s)}}function y2(e){e.exit("blockQuote")}const O0={name:"characterEscape",tokenize:v2};function v2(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return n2(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const V0={name:"characterReference",tokenize:x2};function x2(e,t,n){const r=this;let i=0,o,s;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=tt,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=t2,c):(e.enter("characterReferenceValue"),o=7,s=hu,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return s===tt&&!tf(r.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):n(f)}}const sp={partial:!0,tokenize:k2},lp={concrete:!0,name:"codeFenced",tokenize:w2};function w2(e,t,n){const r=this,i={partial:!0,tokenize:C};let o=0,s=0,l;return a;function a(k){return u(k)}function u(k){const L=r.events[r.events.length-1];return o=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,l=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===l?(s++,e.consume(k),c):s<3?n(k):(e.exit("codeFencedFenceSequence"),q(k)?ie(e,f,"whitespace")(k):f(k))}function f(k){return k===null||B(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(sp,x,S)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||B(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):q(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ie(e,h,"whitespace")(k)):k===96&&k===l?n(k):(e.consume(k),d)}function h(k){return k===null||B(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===null||B(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===l?n(k):(e.consume(k),y)}function x(k){return e.attempt(i,S,E)(k)}function E(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p}function p(k){return o>0&&q(k)?ie(e,g,"linePrefix",o+1)(k):g(k)}function g(k){return k===null||B(k)?e.check(sp,x,S)(k):(e.enter("codeFlowValue"),m(k))}function m(k){return k===null||B(k)?(e.exit("codeFlowValue"),g(k)):(e.consume(k),m)}function S(k){return e.exit("codeFenced"),t(k)}function C(k,L,P){let z=0;return N;function N(K){return k.enter("lineEnding"),k.consume(K),k.exit("lineEnding"),_}function _(K){return k.enter("codeFencedFence"),q(K)?ie(k,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):V(K)}function V(K){return K===l?(k.enter("codeFencedFenceSequence"),X(K)):P(K)}function X(K){return K===l?(z++,k.consume(K),X):z>=s?(k.exit("codeFencedFenceSequence"),q(K)?ie(k,te,"whitespace")(K):te(K)):P(K)}function te(K){return K===null||B(K)?(k.exit("codeFencedFence"),L(K)):P(K)}}}function k2(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Hl={name:"codeIndented",tokenize:C2},S2={partial:!0,tokenize:E2};function C2(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ie(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?a(u):B(u)?e.attempt(S2,s,a)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||B(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),l)}function a(u){return e.exit("codeIndented"),t(u)}}function E2(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):B(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ie(e,o,"linePrefix",5)(s)}function o(s){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):B(s)?i(s):n(s)}}const T2={name:"codeText",previous:A2,resolve:P2,tokenize:L2};function P2(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function A2(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function L2(e,t,n){let r=0,i,o;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),r++,l):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):B(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||B(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",u(f))}}class I2{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ei(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ei(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ei(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ei(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ei(this.left,n.reverse())}}}function ei(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function F0(e){const t={};let n=-1,r,i,o,s,l,a,u;const c=new I2(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,D2(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},l=c.slice(i,n),l.unshift(r),c.splice(i,n-i+1,l))}}return Ot(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function D2(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,a=[],u={};let c,f,d=-1,h=n,y=0,x=0;const E=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++d<l.length;)l[d][0]==="exit"&&l[d-1][0]==="enter"&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(x=d+1,E.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):E.pop(),d=E.length;d--;){const p=l.slice(E[d],E[d+1]),g=o.pop();a.push([g,g+p.length-1]),e.splice(g,2,p)}for(a.reverse(),d=-1;++d<a.length;)u[y+a[d][0]]=y+a[d][1],y+=a[d][1]-a[d][0]-1;return u}const b2={resolve:R2,tokenize:N2},M2={partial:!0,tokenize:_2};function R2(e){return F0(e),e}function N2(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):B(l)?e.check(M2,s,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function _2(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ie(e,o,"linePrefix")}function o(s){if(s===null||B(s))return n(s);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function j0(e,t,n,r,i,o,s,l,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return p===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(p),e.exit(o),d):p===null||p===32||p===41||du(p)?n(p):(e.enter(r),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(p))}function d(p){return p===62?(e.enter(o),e.consume(p),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===62?(e.exit("chunkString"),e.exit(l),d(p)):p===null||p===60||B(p)?n(p):(e.consume(p),p===92?y:h)}function y(p){return p===60||p===62||p===92?(e.consume(p),h):h(p)}function x(p){return!c&&(p===null||p===41||Qe(p))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(r),t(p)):c<u&&p===40?(e.consume(p),c++,x):p===41?(e.consume(p),c--,x):p===null||p===32||p===40||du(p)?n(p):(e.consume(p),p===92?E:x)}function E(p){return p===40||p===41||p===92?(e.consume(p),x):x(p)}}function B0(e,t,n,r,i,o){const s=this;let l=0,a;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return l>999||h===null||h===91||h===93&&!a||h===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):B(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||B(h)||l++>999?(e.exit("chunkString"),c(h)):(e.consume(h),a||(a=!q(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),l++,f):f(h)}}function U0(e,t,n,r,i,o){let s;return l;function l(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,a):n(d)}function a(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),u(d))}function u(d){return d===s?(e.exit(o),a(s)):d===null?n(d):B(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||B(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(e.consume(d),c):c(d)}}function Ci(e,t){let n;return r;function r(i){return B(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):q(i)?ie(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const z2={name:"definition",tokenize:V2},O2={partial:!0,tokenize:F2};function V2(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return B0.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return i=Tr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return Qe(h)?Ci(e,u)(h):u(h)}function u(h){return j0(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(O2,f,f)(h)}function f(h){return q(h)?ie(e,d,"whitespace")(h):d(h)}function d(h){return h===null||B(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function F2(e,t,n){return r;function r(l){return Qe(l)?Ci(e,i)(l):n(l)}function i(l){return U0(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return q(l)?ie(e,s,"whitespace")(l):s(l)}function s(l){return l===null||B(l)?t(l):n(l)}}const j2={name:"hardBreakEscape",tokenize:B2};function B2(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return B(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const U2={name:"headingAtx",resolve:H2,tokenize:$2};function H2(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ot(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function $2(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Qe(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||B(c)?(e.exit("atxHeading"),t(c)):q(c)?ie(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Qe(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const W2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ap=["pre","script","style","textarea"],K2={concrete:!0,name:"htmlFlow",resolveTo:Q2,tokenize:X2},G2={partial:!0,tokenize:Z2},Y2={partial:!0,tokenize:q2};function Q2(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function X2(e,t,n){const r=this;let i,o,s,l,a;return u;function u(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),f}function f(w){return w===33?(e.consume(w),d):w===47?(e.consume(w),o=!0,x):w===63?(e.consume(w),i=3,r.interrupt?t:v):Mt(w)?(e.consume(w),s=String.fromCharCode(w),E):n(w)}function d(w){return w===45?(e.consume(w),i=2,h):w===91?(e.consume(w),i=5,l=0,y):Mt(w)?(e.consume(w),i=4,r.interrupt?t:v):n(w)}function h(w){return w===45?(e.consume(w),r.interrupt?t:v):n(w)}function y(w){const ke="CDATA[";return w===ke.charCodeAt(l++)?(e.consume(w),l===ke.length?r.interrupt?t:V:y):n(w)}function x(w){return Mt(w)?(e.consume(w),s=String.fromCharCode(w),E):n(w)}function E(w){if(w===null||w===47||w===62||Qe(w)){const ke=w===47,yt=s.toLowerCase();return!ke&&!o&&ap.includes(yt)?(i=1,r.interrupt?t(w):V(w)):W2.includes(s.toLowerCase())?(i=6,ke?(e.consume(w),p):r.interrupt?t(w):V(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):o?g(w):m(w))}return w===45||tt(w)?(e.consume(w),s+=String.fromCharCode(w),E):n(w)}function p(w){return w===62?(e.consume(w),r.interrupt?t:V):n(w)}function g(w){return q(w)?(e.consume(w),g):N(w)}function m(w){return w===47?(e.consume(w),N):w===58||w===95||Mt(w)?(e.consume(w),S):q(w)?(e.consume(w),m):N(w)}function S(w){return w===45||w===46||w===58||w===95||tt(w)?(e.consume(w),S):C(w)}function C(w){return w===61?(e.consume(w),k):q(w)?(e.consume(w),C):m(w)}function k(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,L):q(w)?(e.consume(w),k):P(w)}function L(w){return w===a?(e.consume(w),a=null,z):w===null||B(w)?n(w):(e.consume(w),L)}function P(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Qe(w)?C(w):(e.consume(w),P)}function z(w){return w===47||w===62||q(w)?m(w):n(w)}function N(w){return w===62?(e.consume(w),_):n(w)}function _(w){return w===null||B(w)?V(w):q(w)?(e.consume(w),_):n(w)}function V(w){return w===45&&i===2?(e.consume(w),ge):w===60&&i===1?(e.consume(w),$):w===62&&i===4?(e.consume(w),Y):w===63&&i===3?(e.consume(w),v):w===93&&i===5?(e.consume(w),F):B(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(G2,J,X)(w)):w===null||B(w)?(e.exit("htmlFlowData"),X(w)):(e.consume(w),V)}function X(w){return e.check(Y2,te,J)(w)}function te(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),K}function K(w){return w===null||B(w)?X(w):(e.enter("htmlFlowData"),V(w))}function ge(w){return w===45?(e.consume(w),v):V(w)}function $(w){return w===47?(e.consume(w),s="",b):V(w)}function b(w){if(w===62){const ke=s.toLowerCase();return ap.includes(ke)?(e.consume(w),Y):V(w)}return Mt(w)&&s.length<8?(e.consume(w),s+=String.fromCharCode(w),b):V(w)}function F(w){return w===93?(e.consume(w),v):V(w)}function v(w){return w===62?(e.consume(w),Y):w===45&&i===2?(e.consume(w),v):V(w)}function Y(w){return w===null||B(w)?(e.exit("htmlFlowData"),J(w)):(e.consume(w),Y)}function J(w){return e.exit("htmlFlow"),t(w)}}function q2(e,t,n){const r=this;return i;function i(s){return B(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Z2(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Zs,t,n)}}const J2={name:"htmlText",tokenize:eP};function eP(e,t,n){const r=this;let i,o,s;return l;function l(v){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(v),a}function a(v){return v===33?(e.consume(v),u):v===47?(e.consume(v),C):v===63?(e.consume(v),m):Mt(v)?(e.consume(v),P):n(v)}function u(v){return v===45?(e.consume(v),c):v===91?(e.consume(v),o=0,y):Mt(v)?(e.consume(v),g):n(v)}function c(v){return v===45?(e.consume(v),h):n(v)}function f(v){return v===null?n(v):v===45?(e.consume(v),d):B(v)?(s=f,$(v)):(e.consume(v),f)}function d(v){return v===45?(e.consume(v),h):f(v)}function h(v){return v===62?ge(v):v===45?d(v):f(v)}function y(v){const Y="CDATA[";return v===Y.charCodeAt(o++)?(e.consume(v),o===Y.length?x:y):n(v)}function x(v){return v===null?n(v):v===93?(e.consume(v),E):B(v)?(s=x,$(v)):(e.consume(v),x)}function E(v){return v===93?(e.consume(v),p):x(v)}function p(v){return v===62?ge(v):v===93?(e.consume(v),p):x(v)}function g(v){return v===null||v===62?ge(v):B(v)?(s=g,$(v)):(e.consume(v),g)}function m(v){return v===null?n(v):v===63?(e.consume(v),S):B(v)?(s=m,$(v)):(e.consume(v),m)}function S(v){return v===62?ge(v):m(v)}function C(v){return Mt(v)?(e.consume(v),k):n(v)}function k(v){return v===45||tt(v)?(e.consume(v),k):L(v)}function L(v){return B(v)?(s=L,$(v)):q(v)?(e.consume(v),L):ge(v)}function P(v){return v===45||tt(v)?(e.consume(v),P):v===47||v===62||Qe(v)?z(v):n(v)}function z(v){return v===47?(e.consume(v),ge):v===58||v===95||Mt(v)?(e.consume(v),N):B(v)?(s=z,$(v)):q(v)?(e.consume(v),z):ge(v)}function N(v){return v===45||v===46||v===58||v===95||tt(v)?(e.consume(v),N):_(v)}function _(v){return v===61?(e.consume(v),V):B(v)?(s=_,$(v)):q(v)?(e.consume(v),_):z(v)}function V(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),i=v,X):B(v)?(s=V,$(v)):q(v)?(e.consume(v),V):(e.consume(v),te)}function X(v){return v===i?(e.consume(v),i=void 0,K):v===null?n(v):B(v)?(s=X,$(v)):(e.consume(v),X)}function te(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||Qe(v)?z(v):(e.consume(v),te)}function K(v){return v===47||v===62||Qe(v)?z(v):n(v)}function ge(v){return v===62?(e.consume(v),e.exit("htmlTextData"),e.exit("htmlText"),t):n(v)}function $(v){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),b}function b(v){return q(v)?ie(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):F(v)}function F(v){return e.enter("htmlTextData"),s(v)}}const rf={name:"labelEnd",resolveAll:iP,resolveTo:oP,tokenize:sP},tP={tokenize:lP},nP={tokenize:aP},rP={tokenize:uP};function iP(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ot(e,0,e.length,n),e}function oP(e,t){let n=e.length,r=0,i,o,s,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",a,t],["enter",u,t]],l=dt(l,e.slice(o+1,o+r+3)),l=dt(l,[["enter",c,t]]),l=dt(l,nf(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),l=dt(l,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),l=dt(l,e.slice(s+1)),l=dt(l,[["exit",a,t]]),Ot(e,o,e.length,l),e}function sP(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(d){return o?o._inactive?f(d):(s=r.parser.defined.includes(Tr(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),a):n(d)}function a(d){return d===40?e.attempt(tP,c,s?c:f)(d):d===91?e.attempt(nP,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt(rP,c,f)(d)}function c(d){return t(d)}function f(d){return o._balanced=!0,n(d)}}function lP(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Qe(f)?Ci(e,o)(f):o(f)}function o(f){return f===41?c(f):j0(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Qe(f)?Ci(e,a)(f):c(f)}function l(f){return n(f)}function a(f){return f===34||f===39||f===40?U0(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Qe(f)?Ci(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function aP(e,t,n){const r=this;return i;function i(l){return B0.call(r,e,o,s,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(Tr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function uP(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const cP={name:"labelStartImage",resolveAll:rf.resolveAll,tokenize:fP};function fP(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const dP={name:"labelStartLink",resolveAll:rf.resolveAll,tokenize:hP};function hP(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const $l={name:"lineEnding",tokenize:pP};function pP(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ie(e,t,"linePrefix")}}const Go={name:"thematicBreak",tokenize:mP};function mP(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,l(u)}function l(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||B(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),q(u)?ie(e,l,"whitespace")(u):l(u))}}const He={continuation:{tokenize:xP},exit:kP,name:"list",tokenize:vP},gP={partial:!0,tokenize:SP},yP={partial:!0,tokenize:wP};function vP(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return l;function l(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:hu(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Go,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return hu(h)&&++s<10?(e.consume(h),a):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Zs,r.interrupt?n:c,e.attempt(gP,d,f))}function c(h){return r.containerState.initialBlankLine=!0,o++,d(h)}function f(h){return q(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function xP(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Zs,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ie(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!q(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yP,t,s)(l))}function s(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,ie(e,e.attempt(He,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function wP(e,t,n){const r=this;return ie(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function kP(e){e.exit(this.containerState.type)}function SP(e,t,n){const r=this;return ie(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!q(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const up={name:"setextUnderline",resolveTo:CP,tokenize:EP};function CP(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function EP(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),q(u)?ie(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||B(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const TP={tokenize:PP};function PP(e){const t=this,n=e.attempt(Zs,r,e.attempt(this.parser.constructs.flowInitial,i,ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(b2,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const AP={resolveAll:$0()},LP=H0("string"),IP=H0("text");function H0(e){return{resolveAll:$0(e==="text"?DP:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,l);return s;function s(c){return u(c)?o(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function $0(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function DP(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,l=0,a;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(u===-2)a=!0,l++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const bP={42:He,43:He,45:He,48:He,49:He,50:He,51:He,52:He,53:He,54:He,55:He,56:He,57:He,62:z0},MP={91:z2},RP={[-2]:Hl,[-1]:Hl,32:Hl},NP={35:U2,42:Go,45:[up,Go],60:K2,61:up,95:Go,96:lp,126:lp},_P={38:V0,92:O0},zP={[-5]:$l,[-4]:$l,[-3]:$l,33:cP,38:V0,42:pu,60:[d2,J2],91:dP,92:[j2,O0],93:rf,95:pu,96:T2},OP={null:[pu,AP]},VP={null:[42,95]},FP={null:[]},jP=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:VP,contentInitial:MP,disable:FP,document:bP,flow:NP,flowInitial:RP,insideSpan:OP,string:_P,text:zP},Symbol.toStringTag,{value:"Module"}));function BP(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],l=[];const a={attempt:L(C),check:L(k),consume:g,enter:m,exit:S,interrupt:L(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:x,events:[],now:y,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:f};let c=t.tokenize.call(u,a);return t.resolveAll&&o.push(t),u;function f(_){return s=dt(s,_),E(),s[s.length-1]!==null?[]:(P(t,0),u.events=nf(o,u.events,u),u.events)}function d(_,V){return HP(h(_),V)}function h(_){return UP(s,_)}function y(){const{_bufferIndex:_,_index:V,line:X,column:te,offset:K}=r;return{_bufferIndex:_,_index:V,line:X,column:te,offset:K}}function x(_){i[_.line]=_.column,N()}function E(){let _;for(;r._index<s.length;){const V=s[r._index];if(typeof V=="string")for(_=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<V.length;)p(V.charCodeAt(r._bufferIndex));else p(V)}}function p(_){c=c(_)}function g(_){B(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,N()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=_}function m(_,V){const X=V||{};return X.type=_,X.start=y(),u.events.push(["enter",X,u]),l.push(X),X}function S(_){const V=l.pop();return V.end=y(),u.events.push(["exit",V,u]),V}function C(_,V){P(_,V.from)}function k(_,V){V.restore()}function L(_,V){return X;function X(te,K,ge){let $,b,F,v;return Array.isArray(te)?J(te):"tokenize"in te?J([te]):Y(te);function Y(oe){return At;function At(Jt){const Xn=Jt!==null&&oe[Jt],qn=Jt!==null&&oe.null,oo=[...Array.isArray(Xn)?Xn:Xn?[Xn]:[],...Array.isArray(qn)?qn:qn?[qn]:[]];return J(oo)(Jt)}}function J(oe){return $=oe,b=0,oe.length===0?ge:w(oe[b])}function w(oe){return At;function At(Jt){return v=z(),F=oe,oe.partial||(u.currentConstruct=oe),oe.name&&u.parser.constructs.disable.null.includes(oe.name)?yt():oe.tokenize.call(V?Object.assign(Object.create(u),V):u,a,ke,yt)(Jt)}}function ke(oe){return _(F,v),K}function yt(oe){return v.restore(),++b<$.length?w($[b]):ge}}}function P(_,V){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Ot(u.events,V,u.events.length-V,_.resolve(u.events.slice(V),u)),_.resolveTo&&(u.events=_.resolveTo(u.events,u))}function z(){const _=y(),V=u.previous,X=u.currentConstruct,te=u.events.length,K=Array.from(l);return{from:te,restore:ge};function ge(){r=_,u.previous=V,u.currentConstruct=X,u.events.length=te,l=K,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function UP(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function HP(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function $P(e){const r={constructs:qT([jP,...(e||{}).extensions||[]]),content:i(o2),defined:[],document:i(l2),flow:i(TP),lazy:{},string:i(LP),text:i(IP)};return r;function i(o){return s;function s(l){return BP(r,o,l)}}}function WP(e){for(;!F0(e););return e}const cp=/[\0\t\n\r]/g;function KP(){let e=1,t="",n=!0,r;return i;function i(o,s,l){const a=[];let u,c,f,d,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(cp.lastIndex=f,u=cp.exec(o),d=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(d),!u){t=o.slice(f);break}if(h===10&&f===d&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),f<d&&(a.push(o.slice(f,d)),e+=d-f),h){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return l&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const GP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function YP(e){return e.replace(GP,QP)}function QP(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return _0(n.slice(o?2:1),o?16:10)}return tf(n)||e}const W0={}.hasOwnProperty;function XP(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),qP(n)(WP($P(n).document().write(KP()(e,t,!0))))}function qP(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(hf),autolinkProtocol:z,autolinkEmail:z,atxHeading:o(cf),blockQuote:o(qn),characterEscape:z,characterReference:z,codeFenced:o(oo),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(oo,s),codeText:o(rv,s),codeTextData:z,data:z,codeFlowValue:z,definition:o(iv),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ov),hardBreakEscape:o(ff),hardBreakTrailing:o(ff),htmlFlow:o(df,s),htmlFlowData:z,htmlText:o(df,s),htmlTextData:z,image:o(sv),label:s,link:o(hf),listItem:o(lv),listItemValue:d,listOrdered:o(pf,f),listUnordered:o(pf),paragraph:o(av),reference:w,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(cf),strong:o(uv),thematicBreak:o(fv)},exit:{atxHeading:a(),atxHeadingSequence:C,autolink:a(),autolinkEmail:Xn,autolinkProtocol:Jt,blockQuote:a(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:yt,characterReferenceMarkerNumeric:yt,characterReferenceValue:oe,characterReference:At,codeFenced:a(E),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:N,codeIndented:a(p),codeText:a(K),codeTextData:N,data:N,definition:a(),definitionDestinationString:S,definitionLabelString:g,definitionTitleString:m,emphasis:a(),hardBreakEscape:a(V),hardBreakTrailing:a(V),htmlFlow:a(X),htmlFlowData:N,htmlText:a(te),htmlTextData:N,image:a($),label:F,labelText:b,lineEnding:_,link:a(ge),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:ke,resourceDestinationString:v,resourceTitleString:Y,resource:J,setextHeading:a(P),setextHeadingLineSequence:L,setextHeadingText:k,strong:a(),thematicBreak:a()}};K0(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(A){let R={type:"root",children:[]};const U={stack:[R],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:c,data:n},G=[];let ee=-1;for(;++ee<A.length;)if(A[ee][1].type==="listOrdered"||A[ee][1].type==="listUnordered")if(A[ee][0]==="enter")G.push(ee);else{const vt=G.pop();ee=i(A,vt,ee)}for(ee=-1;++ee<A.length;){const vt=t[A[ee][0]];W0.call(vt,A[ee][1].type)&&vt[A[ee][1].type].call(Object.assign({sliceSerialize:A[ee][2].sliceSerialize},U),A[ee][1])}if(U.tokenStack.length>0){const vt=U.tokenStack[U.tokenStack.length-1];(vt[1]||fp).call(U,void 0,vt[0])}for(R.position={start:tn(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:tn(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee<t.transforms.length;)R=t.transforms[ee](R)||R;return R}function i(A,R,U){let G=R-1,ee=-1,vt=!1,An,Vt,Hr,$r;for(;++G<=U;){const qe=A[G];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?ee++:ee--,$r=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(An&&!$r&&!ee&&!Hr&&(Hr=G),$r=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$r=void 0}if(!ee&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||ee===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(An){let Zn=G;for(Vt=void 0;Zn--;){const Ft=A[Zn];if(Ft[1].type==="lineEnding"||Ft[1].type==="lineEndingBlank"){if(Ft[0]==="exit")continue;Vt&&(A[Vt][1].type="lineEndingBlank",vt=!0),Ft[1].type="lineEnding",Vt=Zn}else if(!(Ft[1].type==="linePrefix"||Ft[1].type==="blockQuotePrefix"||Ft[1].type==="blockQuotePrefixWhitespace"||Ft[1].type==="blockQuoteMarker"||Ft[1].type==="listItemIndent"))break}Hr&&(!Vt||Hr<Vt)&&(An._spread=!0),An.end=Object.assign({},Vt?A[Vt][1].start:qe[1].end),A.splice(Vt||G,0,["exit",An,qe[2]]),G++,U++}if(qe[1].type==="listItemPrefix"){const Zn={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};An=Zn,A.splice(G,0,["enter",Zn,qe[2]]),G++,U++,Hr=void 0,$r=!0}}}return A[R][1]._spread=vt,U}function o(A,R){return U;function U(G){l.call(this,A(G),G),R&&R.call(this,G)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(A,R,U){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([R,U||void 0]),A.position={start:tn(R.start),end:void 0}}function a(A){return R;function R(U){A&&A.call(this,U),u.call(this,U)}}function u(A,R){const U=this.stack.pop(),G=this.tokenStack.pop();if(G)G[0].type!==A.type&&(R?R.call(this,A,G[0]):(G[1]||fp).call(this,A,G[0]));else throw new Error("Cannot close `"+A.type+"` ("+Si({start:A.start,end:A.end})+"): it’s not open");U.position.end=tn(A.end)}function c(){return QT(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(A){if(this.data.expectingFirstListItemValue){const R=this.stack[this.stack.length-2];R.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function h(){const A=this.resume(),R=this.stack[this.stack.length-1];R.lang=A}function y(){const A=this.resume(),R=this.stack[this.stack.length-1];R.meta=A}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const A=this.resume(),R=this.stack[this.stack.length-1];R.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function p(){const A=this.resume(),R=this.stack[this.stack.length-1];R.value=A.replace(/(\r?\n|\r)$/g,"")}function g(A){const R=this.resume(),U=this.stack[this.stack.length-1];U.label=R,U.identifier=Tr(this.sliceSerialize(A)).toLowerCase()}function m(){const A=this.resume(),R=this.stack[this.stack.length-1];R.title=A}function S(){const A=this.resume(),R=this.stack[this.stack.length-1];R.url=A}function C(A){const R=this.stack[this.stack.length-1];if(!R.depth){const U=this.sliceSerialize(A).length;R.depth=U}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function L(A){const R=this.stack[this.stack.length-1];R.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function z(A){const U=this.stack[this.stack.length-1].children;let G=U[U.length-1];(!G||G.type!=="text")&&(G=cv(),G.position={start:tn(A.start),end:void 0},U.push(G)),this.stack.push(G)}function N(A){const R=this.stack.pop();R.value+=this.sliceSerialize(A),R.position.end=tn(A.end)}function _(A){const R=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=R.children[R.children.length-1];U.position.end=tn(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(R.type)&&(z.call(this,A),N.call(this,A))}function V(){this.data.atHardBreak=!0}function X(){const A=this.resume(),R=this.stack[this.stack.length-1];R.value=A}function te(){const A=this.resume(),R=this.stack[this.stack.length-1];R.value=A}function K(){const A=this.resume(),R=this.stack[this.stack.length-1];R.value=A}function ge(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=R,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function $(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=R,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function b(A){const R=this.sliceSerialize(A),U=this.stack[this.stack.length-2];U.label=YP(R),U.identifier=Tr(R).toLowerCase()}function F(){const A=this.stack[this.stack.length-1],R=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const G=A.children;U.children=G}else U.alt=R}function v(){const A=this.resume(),R=this.stack[this.stack.length-1];R.url=A}function Y(){const A=this.resume(),R=this.stack[this.stack.length-1];R.title=A}function J(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ke(A){const R=this.resume(),U=this.stack[this.stack.length-1];U.label=R,U.identifier=Tr(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function yt(A){this.data.characterReferenceType=A.type}function oe(A){const R=this.sliceSerialize(A),U=this.data.characterReferenceType;let G;U?(G=_0(R,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):G=tf(R);const ee=this.stack[this.stack.length-1];ee.value+=G}function At(A){const R=this.stack.pop();R.position.end=tn(A.end)}function Jt(A){N.call(this,A);const R=this.stack[this.stack.length-1];R.url=this.sliceSerialize(A)}function Xn(A){N.call(this,A);const R=this.stack[this.stack.length-1];R.url="mailto:"+this.sliceSerialize(A)}function qn(){return{type:"blockquote",children:[]}}function oo(){return{type:"code",lang:null,meta:null,value:""}}function rv(){return{type:"inlineCode",value:""}}function iv(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ov(){return{type:"emphasis",children:[]}}function cf(){return{type:"heading",depth:0,children:[]}}function ff(){return{type:"break"}}function df(){return{type:"html",value:""}}function sv(){return{type:"image",title:null,url:"",alt:null}}function hf(){return{type:"link",title:null,url:"",children:[]}}function pf(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function lv(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function av(){return{type:"paragraph",children:[]}}function uv(){return{type:"strong",children:[]}}function cv(){return{type:"text",value:""}}function fv(){return{type:"thematicBreak"}}}function tn(e){return{line:e.line,column:e.column,offset:e.offset}}function K0(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?K0(e,r):ZP(e,r)}}function ZP(e,t){let n;for(n in t)if(W0.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function fp(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Si({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Si({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Si({start:t.start,end:t.end})+") is still open")}function JP(e){const t=this;t.parser=n;function n(r){return XP(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function eA(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function tA(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function nA(e,t){const n=t.value?t.value+`
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function rA(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iA(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oA(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ur(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,l+=1,e.footnoteCounts.set(r,l);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function sA(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lA(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function G0(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function aA(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return G0(e,t);const i={src:Ur(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function uA(e,t){const n={src:Ur(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function cA(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function fA(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return G0(e,t);const i={href:Ur(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function dA(e,t){const n={href:Ur(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hA(e,t,n){const r=e.all(t),i=n?pA(n):Y0(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const c=r[l];(i||l!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
`}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function pA(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Y0(n[r])}return t}function Y0(e){const t=e.spread;return t??e.children.length>1}function mA(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function gA(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yA(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function vA(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xA(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=qc(t.children[1]),a=L0(t.children[t.children.length-1]);l&&a&&(s.position={start:l,end:a}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function wA(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:t.children.length;let a=-1;const u=[];for(;++a<l;){const f=t.children[a],d={},h=s?s[a]:void 0;h&&(d.align=h);let y={type:"element",tagName:o,properties:d,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),u.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function kA(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const dp=9,hp=32;function SA(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(pp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(pp(t.slice(i),i>0,!1)),o.join("")}function pp(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===dp||o===hp;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===dp||o===hp;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function CA(e,t){const n={type:"text",value:SA(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function EA(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const TA={blockquote:eA,break:tA,code:nA,delete:rA,emphasis:iA,footnoteReference:oA,heading:sA,html:lA,imageReference:aA,image:uA,inlineCode:cA,linkReference:fA,link:dA,listItem:hA,list:mA,paragraph:gA,root:yA,strong:vA,table:xA,tableCell:kA,tableRow:wA,text:CA,thematicBreak:EA,toml:Lo,yaml:Lo,definition:Lo,footnoteDefinition:Lo};function Lo(){}const Q0=-1,Js=0,Ei=1,As=2,of=3,sf=4,lf=5,af=6,X0=7,q0=8,mp=typeof self=="object"?self:globalThis,PA=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Js:case Q0:return n(s,i);case Ei:{const l=n([],i);for(const a of s)l.push(r(a));return l}case As:{const l=n({},i);for(const[a,u]of s)l[r(a)]=r(u);return l}case of:return n(new Date(s),i);case sf:{const{source:l,flags:a}=s;return n(new RegExp(l,a),i)}case lf:{const l=n(new Map,i);for(const[a,u]of s)l.set(r(a),r(u));return l}case af:{const l=n(new Set,i);for(const a of s)l.add(r(a));return l}case X0:{const{name:l,message:a}=s;return n(new mp[l](a),i)}case q0:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new mp[o](s),i)};return r},gp=e=>PA(new Map,e)(0),er="",{toString:AA}={},{keys:LA}=Object,ti=e=>{const t=typeof e;if(t!=="object"||!e)return[Js,t];const n=AA.call(e).slice(8,-1);switch(n){case"Array":return[Ei,er];case"Object":return[As,er];case"Date":return[of,er];case"RegExp":return[sf,er];case"Map":return[lf,er];case"Set":return[af,er];case"DataView":return[Ei,n]}return n.includes("Array")?[Ei,n]:n.includes("Error")?[X0,n]:[As,n]},Io=([e,t])=>e===Js&&(t==="function"||t==="symbol"),IA=(e,t,n,r)=>{const i=(s,l)=>{const a=r.push(s)-1;return n.set(l,a),a},o=s=>{if(n.has(s))return n.get(s);let[l,a]=ti(s);switch(l){case Js:{let c=s;switch(a){case"bigint":l=q0,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([Q0],s)}return i([l,c],s)}case Ei:{if(a){let d=s;return a==="DataView"?d=new Uint8Array(s.buffer):a==="ArrayBuffer"&&(d=new Uint8Array(s)),i([a,[...d]],s)}const c=[],f=i([l,c],s);for(const d of s)c.push(o(d));return f}case As:{if(a)switch(a){case"BigInt":return i([a,s.toString()],s);case"Boolean":case"Number":case"String":return i([a,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],f=i([l,c],s);for(const d of LA(s))(e||!Io(ti(s[d])))&&c.push([o(d),o(s[d])]);return f}case of:return i([l,s.toISOString()],s);case sf:{const{source:c,flags:f}=s;return i([l,{source:c,flags:f}],s)}case lf:{const c=[],f=i([l,c],s);for(const[d,h]of s)(e||!(Io(ti(d))||Io(ti(h))))&&c.push([o(d),o(h)]);return f}case af:{const c=[],f=i([l,c],s);for(const d of s)(e||!Io(ti(d)))&&c.push(o(d));return f}}const{message:u}=s;return i([l,{name:a,message:u}],s)};return o},yp=(e,{json:t,lossy:n}={})=>{const r=[];return IA(!(t||n),!!t,new Map,r)(e),r},Ls=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gp(yp(e,t)):structuredClone(e):(e,t)=>gp(yp(e,t));function DA(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function bA(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function MA(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||DA,r=e.options.footnoteBackLabel||bA,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),d=Ur(f.toLowerCase());let h=0;const y=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++h<=x;){y.length>0&&y.push({type:"text",value:" "});let g=typeof n=="string"?n:n(a,h);typeof g=="string"&&(g={type:"text",value:g}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const g=E.children[E.children.length-1];g&&g.type==="text"?g.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...y)}else c.push(...y);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,p),l.push(p)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ls(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
`}]}}const Z0=function(e){if(e==null)return zA;if(typeof e=="function")return el(e);if(typeof e=="object")return Array.isArray(e)?RA(e):NA(e);if(typeof e=="string")return _A(e);throw new Error("Expected function, string, or object as test")};function RA(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Z0(e[n]);return el(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function NA(e){const t=e;return el(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function _A(e){return el(t);function t(n){return n&&n.type===e}}function el(e){return t;function t(n,r,i){return!!(OA(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function zA(){return!0}function OA(e){return e!==null&&typeof e=="object"&&"type"in e}const J0=[],VA=!0,vp=!1,FA="skip";function jA(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Z0(i),s=r?-1:1;l(e,void 0,[])();function l(a,u,c){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=J0,y,x,E;if((!t||o(a,u,c[c.length-1]||void 0))&&(h=BA(n(a,c)),h[0]===vp))return h;if("children"in a&&a.children){const p=a;if(p.children&&h[0]!==FA)for(x=(r?p.children.length:-1)+s,E=c.concat(p);x>-1&&x<p.children.length;){const g=p.children[x];if(y=l(g,x,E)(),y[0]===vp)return y;x=typeof y[1]=="number"?y[1]:x+s}}return h}}}function BA(e){return Array.isArray(e)?e:typeof e=="number"?[VA,e]:e==null?J0:[e]}function ev(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),jA(e,o,l,i);function l(a,u){const c=u[u.length-1],f=c?c.children.indexOf(a):void 0;return s(a,f,c)}}const mu={}.hasOwnProperty,UA={};function HA(e,t){const n=t||UA,r=new Map,i=new Map,o=new Map,s={...TA,...n.handlers},l={all:u,applyData:WA,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:a,options:n,patch:$A,wrap:GA};return ev(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),l;function a(c,f){const d=c.type,h=l.handlers[d];if(mu.call(l.handlers,d)&&h)return h(l,c,f);if(l.options.passThrough&&l.options.passThrough.includes(d)){if("children"in c){const{children:x,...E}=c,p=Ls(E);return p.children=l.all(c),p}return Ls(c)}return(l.options.unknownHandler||KA)(l,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const y=l.one(d[h],c);if(y){if(h&&d[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=xp(y.value)),!Array.isArray(y)&&y.type==="element")){const x=y.children[0];x&&x.type==="text"&&(x.value=xp(x.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function $A(e,t){e.position&&(t.position=AT(e))}function WA(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Ls(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function KA(e,t){const n=t.data||{},r="value"in t&&!(mu.call(n,"hProperties")||mu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function GA(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function xp(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function wp(e,t){const n=HA(e,t),r=n.one(e,void 0),i=MA(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
`},i),o}function YA(e,t){return e&&"run"in e?async function(n,r){const i=wp(n,{file:r,...t});await e.run(i,r)}:function(n,r){return wp(n,{file:r,...e||t})}}function kp(e){if(e)throw e}var Yo=Object.prototype.hasOwnProperty,tv=Object.prototype.toString,Sp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Ep=function(t){return typeof Array.isArray=="function"?Array.isArray(t):tv.call(t)==="[object Array]"},Tp=function(t){if(!t||tv.call(t)!=="[object Object]")return!1;var n=Yo.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Yo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Yo.call(t,i)},Pp=function(t,n){Sp&&n.name==="__proto__"?Sp(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ap=function(t,n){if(n==="__proto__")if(Yo.call(t,n)){if(Cp)return Cp(t,n).value}else return;return t[n]},QA=function e(){var t,n,r,i,o,s,l=arguments[0],a=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},a=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=Ap(l,n),i=Ap(t,n),l!==i&&(c&&i&&(Tp(i)||(o=Ep(i)))?(o?(o=!1,s=r&&Ep(r)?r:[]):s=r&&Tp(r)?r:{},Pp(l,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&Pp(l,{name:n,newValue:i}));return l};const Wl=Rp(QA);function gu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function XA(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...i);function l(a,...u){const c=e[++o];let f=-1;if(a){s(a);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?qA(c,l)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function qA(e,t){let n;return r;function r(...s){const l=e.length>s.length;let a;l&&s.push(i);try{a=e.apply(this,s)}catch(u){const c=u;if(l&&n)throw c;return i(c)}l||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(s,...l){n||(n=!0,t(s,...l))}function o(s){i(null,s)}}const Dt={basename:ZA,dirname:JA,extname:eL,join:tL,sep:"/"};function ZA(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');io(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function JA(e){if(io(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function eL(e){io(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function tL(...e){let t=-1,n;for(;++t<e.length;)io(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":nL(n)}function nL(e){io(e);const t=e.codePointAt(0)===47;let n=rL(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function rL(e,t){let n="",r=0,i=-1,o=0,s=-1,l,a;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else l===46&&o>-1?o++:o=-1}return n}function io(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iL={cwd:oL};function oL(){return"/"}function yu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function sL(e){if(typeof e=="string")e=new URL(e);else if(!yu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return lL(e)}function lL(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Kl=["history","path","basename","stem","extname","dirname"];class nv{constructor(t){let n;t?yu(t)?n={path:t}:typeof t=="string"||aL(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":iL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Kl.length;){const o=Kl[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Kl.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Dt.basename(this.path):void 0}set basename(t){Yl(t,"basename"),Gl(t,"basename"),this.path=Dt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Dt.dirname(this.path):void 0}set dirname(t){Lp(this.basename,"dirname"),this.path=Dt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Dt.extname(this.path):void 0}set extname(t){if(Gl(t,"extname"),Lp(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Dt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){yu(t)&&(t=sL(t)),Yl(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Dt.basename(this.path,this.extname):void 0}set stem(t){Yl(t,"stem"),Gl(t,"stem"),this.path=Dt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Oe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Gl(e,t){if(e&&e.includes(Dt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Dt.sep+"`")}function Yl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Lp(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function aL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uL=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},cL={}.hasOwnProperty;class uf extends uL{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=XA()}copy(){const t=new uf;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Wl(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ql("data",this.frozen),this.namespace[t]=n,this):cL.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ql("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Do(t),r=this.parser||this.Parser;return Ql("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ql("process",this.parser||this.Parser),Xl("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const l=Do(t),a=r.parse(l);r.run(a,l,function(c,f,d){if(c||!f||!d)return u(c);const h=f,y=r.stringify(h,d);hL(y)?d.value=y:d.result=y,u(c,d)});function u(c,f){c||!f?s(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Ql("processSync",this.parser||this.Parser),Xl("processSync",this.compiler||this.Compiler),this.process(t,i),Dp("processSync","process",n),r;function i(o,s){n=!0,kp(o),r=s}}run(t,n,r){Ip(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,l){const a=Do(n);i.run(t,a,u);function u(c,f,d){const h=f||t;c?l(c):s?s(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Dp("runSync","run",r),i;function o(s,l){kp(s),i=l,r=!0}}stringify(t,n){this.freeze();const r=Do(n),i=this.compiler||this.Compiler;return Xl("stringify",i),Ip(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(ql("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;a(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(i.settings=Wl(!0,i.settings,u.settings))}function l(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,c){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===u){d=f;break}if(d===-1)r.push([u,...c]);else if(c.length>0){let[h,...y]=c;const x=r[d][1];gu(x)&&gu(h)&&(h=Wl(!0,x,h)),r[d]=[u,h,...y]}}}}const fL=new uf().freeze();function Ql(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Xl(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ql(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ip(e){if(!gu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Dp(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Do(e){return dL(e)?e:new nv(e)}function dL(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hL(e){return typeof e=="string"||pL(e)}function pL(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mL="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",bp=[],Mp={allowDangerousHtml:!0},gL=/^(https?|ircs?|mailto|xmpp)$/i,yL=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function vL(e){const t=xL(e),n=wL(e);return kL(t.runSync(t.parse(n),n),e)}function xL(e){const t=e.rehypePlugins||bp,n=e.remarkPlugins||bp,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Mp}:Mp;return fL().use(JP).use(n).use(YA,r).use(t)}function wL(e){const t=e.children||"",n=new nv;return typeof t=="string"&&(n.value=t),n}function kL(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,a=t.urlTransform||SL;for(const c of yL)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+mL+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),ev(e,u),MT(e,{Fragment:T.Fragment,components:i,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function u(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return s?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in Ul)if(Object.hasOwn(Ul,h)&&Object.hasOwn(c.properties,h)){const y=c.properties[h],x=Ul[h];(x===null||x.includes(c.tagName))&&(c.properties[h]=a(String(y||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(c,f,d)),h&&d&&typeof f=="number")return l&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function SL(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||gL.test(e.slice(0,t))?e:""}function CL(e){const t={CRITICAL:0,HIGH:0,MEDIUM:0,LOW:0},n=e.match(/Critical:\s*(\d+).*?High:\s*(\d+).*?Medium:\s*(\d+).*?Low:\s*(\d+)/i);return n?(t.CRITICAL=parseInt(n[1])||0,t.HIGH=parseInt(n[2])||0,t.MEDIUM=parseInt(n[3])||0,t.LOW=parseInt(n[4])||0):(t.CRITICAL=(e.match(/β€”\s*CRITICAL/gi)||[]).length,t.HIGH=(e.match(/β€”\s*HIGH/gi)||[]).length,t.MEDIUM=(e.match(/β€”\s*MEDIUM/gi)||[]).length,t.LOW=(e.match(/β€”\s*LOW/gi)||[]).length),t}const EL={CRITICAL:"bg-red-900/40 border-red-500/60 text-red-400",HIGH:"bg-orange-900/40 border-orange-500/60 text-orange-400",MEDIUM:"bg-yellow-900/40 border-yellow-500/60 text-yellow-400",LOW:"bg-green-900/40 border-green-500/60 text-green-400"};function TL({result:e,onRescan:t}){const[n,r]=M.useState(!1),i=M.useMemo(()=>CL(e||""),[e]),o=Object.values(i).reduce((a,u)=>a+u,0),s=()=>{navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),2e3)},l=()=>{const a=`
body { font-family: monospace; background: #fff; color: #111; padding: 32px; max-width: 900px; margin: auto; }
h1,h2,h3 { color: #111; } code { background: #f4f4f4; padding: 2px 6px; border-radius: 3px; }
pre { background: #f4f4f4; padding: 12px; border-radius: 4px; overflow-x: auto; }
`,u=window.open("","_blank");u.document.write(`<html><head><title>Security Report</title><style>${a}</style></head><body>`);const c=e.replace(/^### (.+)$/gm,"<h3>$1</h3>").replace(/^## (.+)$/gm,"<h2>$1</h2>").replace(/^# (.+)$/gm,"<h1>$1</h1>").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/`([^`]+)`/g,"<code>$1</code>").replace(/\n/g,"<br>");u.document.write(c),u.document.write("</body></html>"),u.document.close(),u.print()};return e?T.jsxs(Fe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"relative z-10 border border-cyber-green/40 rounded-sm",style:{background:"#020c14",boxShadow:"0 0 30px rgba(0,255,65,0.1)"},children:[T.jsxs("div",{className:"flex items-center justify-between px-6 py-3 border-b border-cyber-border",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx(xE,{size:14,className:"text-cyber-green"}),T.jsx("span",{className:"font-orbitron text-xs text-cyber-green tracking-widest",children:"SECURITY REPORT"})]}),T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsxs("div",{className:"flex gap-1.5",children:[T.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-red-500"}),T.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-yellow-500"}),T.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-cyber-green"})]}),T.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 text-xs text-gray-500 hover:text-cyber-blue transition-colors font-mono",children:[T.jsx(vE,{size:12})," PDF"]}),T.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 text-xs text-gray-500 hover:text-cyber-green transition-colors font-mono",children:[n?T.jsx(pE,{size:12,className:"text-cyber-green"}):T.jsx(gE,{size:12}),n?"COPIED":"COPY"]}),t&&T.jsxs("button",{onClick:t,className:"flex items-center gap-1.5 text-xs text-gray-500 hover:text-orange-400 transition-colors font-mono",children:[T.jsx(CE,{size:12})," RESCAN"]})]})]}),o>0&&T.jsxs("div",{className:"flex items-center gap-2 px-6 py-3 border-b border-cyber-border/40 flex-wrap",children:[T.jsx("span",{className:"text-xs text-gray-600 font-mono mr-1",children:"FINDINGS:"}),Object.entries(i).map(([a,u])=>u>0?T.jsxs(Fe.span,{initial:{scale:0},animate:{scale:1},className:`text-xs font-orbitron px-2 py-0.5 border ${EL[a]}`,children:[u," ",a]},a):null),T.jsxs("span",{className:"text-xs text-gray-600 font-mono ml-auto",children:[o," total"]})]}),T.jsx("div",{className:"p-6 max-h-[600px] overflow-y-auto result-content",children:T.jsx(vL,{children:e})})]}):null}const PL=()=>window.matchMedia("(hover: none)").matches;function AL(){const e=M.useRef(null),t=M.useRef(null);return PL()?null:(M.useEffect(()=>{const n=e.current,r=t.current,i=u=>{n.style.left=u.clientX+"px",n.style.top=u.clientY+"px",r.style.left=u.clientX+"px",r.style.top=u.clientY+"px"},o=()=>{n.style.transform="translate(-50%, -50%) scale(2)",n.style.borderColor="#4fc3f7",n.style.boxShadow="0 0 15px #4fc3f7, 0 0 30px #4fc3f7",r.style.opacity="0.4",r.style.transform="translate(-50%, -50%) scale(2)"},s=()=>{n.style.transform="translate(-50%, -50%) scale(1)",n.style.borderColor="#00ff41",n.style.boxShadow="0 0 8px #00ff41",r.style.opacity="0.15",r.style.transform="translate(-50%, -50%) scale(1)"};window.addEventListener("mousemove",i),document.querySelectorAll("*").forEach(u=>{u.addEventListener("mouseenter",o),u.addEventListener("mouseleave",s)});const a=new MutationObserver(u=>{u.forEach(c=>{c.addedNodes.forEach(f=>{f.nodeType===1&&(f.addEventListener("mouseenter",o),f.addEventListener("mouseleave",s),f.querySelectorAll("*").forEach(d=>{d.addEventListener("mouseenter",o),d.addEventListener("mouseleave",s)}))})})});return a.observe(document.body,{childList:!0,subtree:!0}),()=>{window.removeEventListener("mousemove",i),a.disconnect()}},[]),T.jsxs(T.Fragment,{children:[T.jsx("div",{ref:e,style:{position:"fixed",width:"12px",height:"12px",border:"1.5px solid #00ff41",borderRadius:"50%",pointerEvents:"none",zIndex:99999,transform:"translate(-50%, -50%)",transition:"transform 0.15s ease, border-color 0.2s, box-shadow 0.2s",boxShadow:"0 0 8px #00ff41",mixBlendMode:"screen"}}),T.jsx("div",{ref:t,style:{position:"fixed",width:"300px",height:"300px",borderRadius:"50%",pointerEvents:"none",zIndex:99998,transform:"translate(-50%, -50%)",background:"radial-gradient(circle, rgba(0,255,65,0.08) 0%, transparent 70%)",transition:"opacity 0.3s ease, transform 0.4s ease",opacity:.15}})]}))}const LL=[{icon:"πŸ€–",title:"AI AGENT",desc:"Multi-step autonomous reasoning"},{icon:"🌐",title:"LIVE NVD",desc:"Real-time CVE data fetching"},{icon:"πŸ”",title:"RAG SEARCH",desc:"BM25 over 258k CVE records"},{icon:"πŸ“‹",title:"FULL REPORT",desc:"CVSS scores & remediation"}];function IL(){const[e,t]=M.useState(null),[n,r]=M.useState(null),i=(s,l)=>{t(s),l&&r(l)},o=()=>{t(null)};return T.jsxs("div",{className:"min-h-screen bg-cyber-dark relative",children:[T.jsx(AL,{}),T.jsx(Vx,{}),T.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto px-4 py-8",children:[T.jsx(IE,{}),T.jsx(bE,{}),T.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:LL.map((s,l)=>T.jsxs(Fe.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.2+l*.1},whileHover:{x:4,borderLeftColor:"#00ff41"},className:"border border-cyber-border border-l-2 p-3 transition-all duration-300",style:{background:"#020c14",borderLeftColor:"#4fc3f7"},children:[T.jsx("div",{className:"text-lg mb-1",children:s.icon}),T.jsx("div",{className:"font-orbitron text-xs text-cyber-green mb-1",children:s.title}),T.jsx("div",{className:"text-xs text-gray-500",children:s.desc})]},l))}),T.jsxs("div",{className:"relative my-6",children:[T.jsx("div",{className:"border-t border-cyber-border/30"}),T.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-cyber-dark px-3 text-cyber-green text-xs",children:"β—†"})]}),T.jsx(_E,{onResult:i,lastUrl:e?null:n}),T.jsx(TL,{result:e,onRescan:e?o:null}),T.jsxs(Fe.footer,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1},className:"text-center mt-8 py-4 border-t border-cyber-border/20 text-xs text-gray-700 font-mono tracking-widest",children:["BUILT BY"," ",T.jsx("a",{href:"https://github.com/AdityaDev-X",target:"_blank",className:"text-cyber-green hover:underline",children:"ADITYADEV-X"})," & ",T.jsx("span",{className:"text-cyber-green",children:"SANYAM"})," Β· ",T.jsx("a",{href:"https://huggingface.co/AdityaDevx",target:"_blank",className:"text-orange-500 hover:underline",children:"ADITYADEVX @ HF"})," Β· FOR LEGITIMATE SECURITY RESEARCH ONLY"]})]})]})}Zl.createRoot(document.getElementById("root")).render(T.jsx(IL,{}));