diff --git "a/static/assets/assets/index-C2LOnuvG.js" "b/static/assets/assets/index-C2LOnuvG.js" deleted file mode 100644--- "a/static/assets/assets/index-C2LOnuvG.js" +++ /dev/null @@ -1,165 +0,0 @@ -(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>>1,J=b[Y];if(0>>1;Yi(yt,v))oei(At,yt)?(b[Y]=At,b[oe]=v,Y=oe):(b[Y]=yt,b[ke]=v,Y=ke);else if(oei(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()-Nb||125Y?(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"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||!(2l||i[s]!==o[l]){var a=` -`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",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"+t.valueOf().toString()+"",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>>=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;0n;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=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)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=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"),0lr||(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>=s,i-=s,Ut=1<<32-Et(t)+i|n<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(;PP?(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;tn?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<\/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;iMr&&(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;ri&&(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,10e?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;ave()-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"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{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;gTd[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;ht=>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:ntypeof 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({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{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;rwindow.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{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;nn[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?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`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!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&&++lnk(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;stypeof 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(;re===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/^-?(?:\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{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;ne!==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{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{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;ie[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&&Pa,y=P=>l===void 0?a:a===void 0||Math.abs(l-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;st[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&&c1)for(;fu(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&&othis.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;nPromise.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;Ey&&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&&en&&(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.minr?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;luh&&(t.x=1),t.yuh&&(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;srt?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;athis.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.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{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{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.renderScheduledAtthis.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;rn.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:[S4&&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(;++ri?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);o0?(Ot(e,e.length,0,t),e):t}const np={}.hasOwnProperty;function qT(e){const t={};let n=-1;for(;++n13&&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(;++n55295&&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++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;km;){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(;++i1&&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;++n0&&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=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 tthis.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=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)):c999||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=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-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(;++n0){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;++ee0&&(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(;++l1}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);++i0){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(;++a0,!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(;++a0&&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":""))+")"})}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&&x0&&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={});as.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(;++t0&&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(s2){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(;++n0){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(`Security Report`);const c=e.replace(/^### (.+)$/gm,"

$1

").replace(/^## (.+)$/gm,"

$1

").replace(/^# (.+)$/gm,"

$1

").replace(/\*\*(.+?)\*\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\n/g,"
");u.document.write(c),u.document.write(""),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,{}));