ragbits-chat 1.4.0.dev202512151244__py3-none-any.whl → 1.4.0.dev202601010248__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. ragbits/chat/api.py +364 -79
  2. ragbits/chat/auth/__init__.py +3 -1
  3. ragbits/chat/auth/backends.py +519 -81
  4. ragbits/chat/auth/base.py +8 -10
  5. ragbits/chat/auth/oauth2_providers.py +108 -0
  6. ragbits/chat/auth/provider_config.py +81 -0
  7. ragbits/chat/auth/session_store.py +178 -0
  8. ragbits/chat/auth/types.py +66 -29
  9. ragbits/chat/interface/types.py +15 -0
  10. ragbits/chat/providers/model_provider.py +10 -8
  11. ragbits/chat/ui-build/assets/AuthGuard-Bq7UOJ7y.js +1 -0
  12. ragbits/chat/ui-build/assets/{ChatHistory-Cp_DhrUx.js → ChatHistory-B2hLBYMJ.js} +2 -2
  13. ragbits/chat/ui-build/assets/{ChatOptionsForm-CNjzbIqN.js → ChatOptionsForm-bfNG8UIW.js} +1 -1
  14. ragbits/chat/ui-build/assets/CredentialsLogin-0g5-w2vR.js +1 -0
  15. ragbits/chat/ui-build/assets/{FeedbackForm-CmRSbYPS.js → FeedbackForm-oSbly5oN.js} +1 -1
  16. ragbits/chat/ui-build/assets/Login-DSW_CNFu.js +1 -0
  17. ragbits/chat/ui-build/assets/LogoutButton-BQE8NNsg.js +1 -0
  18. ragbits/chat/ui-build/assets/OAuth2Login-EmJ39PUe.js +2 -0
  19. ragbits/chat/ui-build/assets/ShareButton-B7DyIVH0.js +1 -0
  20. ragbits/chat/ui-build/assets/{UsageButton-B-N1J-sZ.js → UsageButton-BABA7a-w.js} +1 -1
  21. ragbits/chat/ui-build/assets/authStore-BfGlL8rp.js +1 -0
  22. ragbits/chat/ui-build/assets/{chunk-IGSAU2ZA-CsJAveMU.js → chunk-IGSAU2ZA-NXd1g0Qd.js} +1 -1
  23. ragbits/chat/ui-build/assets/{chunk-SSA7SXE4-BJI2Gxdq.js → chunk-SSA7SXE4-CJa0HuAU.js} +1 -1
  24. ragbits/chat/ui-build/assets/index-BZLU40Mk.js +83 -0
  25. ragbits/chat/ui-build/assets/index-Be0kkf3d.js +24 -0
  26. ragbits/chat/ui-build/assets/index-Bvn9K6h_.js +1 -0
  27. ragbits/chat/ui-build/assets/{index-v15bx9Do.js → index-Ceq7Rkzy.js} +1 -1
  28. ragbits/chat/ui-build/assets/index-ClAYkAiv.css +1 -0
  29. ragbits/chat/ui-build/assets/useInitializeUserStore-DyHP7g8x.js +1 -0
  30. ragbits/chat/ui-build/assets/{useMenuTriggerState-CTz3KfPq.js → useMenuTriggerState-SaFmATkk.js} +1 -1
  31. ragbits/chat/ui-build/assets/{useSelectableItem-DK6eABKK.js → useSelectableItem-DhuFnc0W.js} +1 -1
  32. ragbits/chat/ui-build/index.html +2 -2
  33. {ragbits_chat-1.4.0.dev202512151244.dist-info → ragbits_chat-1.4.0.dev202601010248.dist-info}/METADATA +2 -2
  34. ragbits_chat-1.4.0.dev202601010248.dist-info/RECORD +58 -0
  35. ragbits/chat/ui-build/assets/AuthGuard-B326tmZN.js +0 -1
  36. ragbits/chat/ui-build/assets/Login-Djq6QJ18.js +0 -1
  37. ragbits/chat/ui-build/assets/LogoutButton-Cn2L63Hk.js +0 -1
  38. ragbits/chat/ui-build/assets/ShareButton-lYj0v67r.js +0 -1
  39. ragbits/chat/ui-build/assets/authStore-DATNN-ps.js +0 -1
  40. ragbits/chat/ui-build/assets/index-B3hlerKe.js +0 -131
  41. ragbits/chat/ui-build/assets/index-B7bSwAmw.js +0 -32
  42. ragbits/chat/ui-build/assets/index-C_JcEI3R.js +0 -1
  43. ragbits/chat/ui-build/assets/index-CmsICuOz.css +0 -1
  44. ragbits_chat-1.4.0.dev202512151244.dist-info/RECORD +0 -52
  45. {ragbits_chat-1.4.0.dev202512151244.dist-info → ragbits_chat-1.4.0.dev202601010248.dist-info}/WHEEL +0 -0
@@ -0,0 +1,83 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FeedbackForm-oSbly5oN.js","assets/index-Be0kkf3d.js","assets/chunk-SSA7SXE4-CJa0HuAU.js","assets/useMenuTriggerState-SaFmATkk.js","assets/useSelectableItem-DhuFnc0W.js","assets/index-Ceq7Rkzy.js","assets/chunk-IGSAU2ZA-NXd1g0Qd.js","assets/ChatOptionsForm-bfNG8UIW.js","assets/ShareButton-B7DyIVH0.js","assets/UsageButton-BABA7a-w.js","assets/ChatHistory-B2hLBYMJ.js","assets/CredentialsLogin-0g5-w2vR.js","assets/authStore-BfGlL8rp.js","assets/useInitializeUserStore-DyHP7g8x.js","assets/AuthGuard-Bq7UOJ7y.js","assets/LogoutButton-BQE8NNsg.js"])))=>i.map(i=>d[i]);
2
+ (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 s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var ig=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zy={exports:{}},pp={},jy={exports:{}},ht={};var o1;function sL(){if(o1)return ht;o1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function b(U){return U===null||typeof U!="object"?null:(U=g&&U[g]||U["@@iterator"],typeof U=="function"?U:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,P={};function T(U,oe,z){this.props=U,this.context=oe,this.refs=P,this.updater=z||x}T.prototype.isReactComponent={},T.prototype.setState=function(U,oe){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,oe,"setState")},T.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function _(){}_.prototype=T.prototype;function A(U,oe,z){this.props=U,this.context=oe,this.refs=P,this.updater=z||x}var M=A.prototype=new _;M.constructor=A,k(M,T.prototype),M.isPureReactComponent=!0;var F=Array.isArray,j=Object.prototype.hasOwnProperty,$={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function te(U,oe,z){var me,Ce={},ye=null,Fe=null;if(oe!=null)for(me in oe.ref!==void 0&&(Fe=oe.ref),oe.key!==void 0&&(ye=""+oe.key),oe)j.call(oe,me)&&!Y.hasOwnProperty(me)&&(Ce[me]=oe[me]);var Ne=arguments.length-2;if(Ne===1)Ce.children=z;else if(1<Ne){for(var _e=Array(Ne),Qe=0;Qe<Ne;Qe++)_e[Qe]=arguments[Qe+2];Ce.children=_e}if(U&&U.defaultProps)for(me in Ne=U.defaultProps,Ne)Ce[me]===void 0&&(Ce[me]=Ne[me]);return{$$typeof:e,type:U,key:ye,ref:Fe,props:Ce,_owner:$.current}}function ie(U,oe){return{$$typeof:e,type:U.type,key:oe,ref:U.ref,props:U.props,_owner:U._owner}}function B(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function W(U){var oe={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(z){return oe[z]})}var G=/\/+/g;function ee(U,oe){return typeof U=="object"&&U!==null&&U.key!=null?W(""+U.key):oe.toString(36)}function H(U,oe,z,me,Ce){var ye=typeof U;(ye==="undefined"||ye==="boolean")&&(U=null);var Fe=!1;if(U===null)Fe=!0;else switch(ye){case"string":case"number":Fe=!0;break;case"object":switch(U.$$typeof){case e:case t:Fe=!0}}if(Fe)return Fe=U,Ce=Ce(Fe),U=me===""?"."+ee(Fe,0):me,F(Ce)?(z="",U!=null&&(z=U.replace(G,"$&/")+"/"),H(Ce,oe,z,"",function(Qe){return Qe})):Ce!=null&&(B(Ce)&&(Ce=ie(Ce,z+(!Ce.key||Fe&&Fe.key===Ce.key?"":(""+Ce.key).replace(G,"$&/")+"/")+U)),oe.push(Ce)),1;if(Fe=0,me=me===""?".":me+":",F(U))for(var Ne=0;Ne<U.length;Ne++){ye=U[Ne];var _e=me+ee(ye,Ne);Fe+=H(ye,oe,z,_e,Ce)}else if(_e=b(U),typeof _e=="function")for(U=_e.call(U),Ne=0;!(ye=U.next()).done;)ye=ye.value,_e=me+ee(ye,Ne++),Fe+=H(ye,oe,z,_e,Ce);else if(ye==="object")throw oe=String(U),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.");return Fe}function le(U,oe,z){if(U==null)return U;var me=[],Ce=0;return H(U,me,"","",function(ye){return oe.call(z,ye,Ce++)}),me}function J(U){if(U._status===-1){var oe=U._result;oe=oe(),oe.then(function(z){(U._status===0||U._status===-1)&&(U._status=1,U._result=z)},function(z){(U._status===0||U._status===-1)&&(U._status=2,U._result=z)}),U._status===-1&&(U._status=0,U._result=oe)}if(U._status===1)return U._result.default;throw U._result}var X={current:null},V={transition:null},ae={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:V,ReactCurrentOwner:$};function D(){throw Error("act(...) is not supported in production builds of React.")}return ht.Children={map:le,forEach:function(U,oe,z){le(U,function(){oe.apply(this,arguments)},z)},count:function(U){var oe=0;return le(U,function(){oe++}),oe},toArray:function(U){return le(U,function(oe){return oe})||[]},only:function(U){if(!B(U))throw Error("React.Children.only expected to receive a single React element child.");return U}},ht.Component=T,ht.Fragment=n,ht.Profiler=i,ht.PureComponent=A,ht.StrictMode=r,ht.Suspense=d,ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ae,ht.act=D,ht.cloneElement=function(U,oe,z){if(U==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+U+".");var me=k({},U.props),Ce=U.key,ye=U.ref,Fe=U._owner;if(oe!=null){if(oe.ref!==void 0&&(ye=oe.ref,Fe=$.current),oe.key!==void 0&&(Ce=""+oe.key),U.type&&U.type.defaultProps)var Ne=U.type.defaultProps;for(_e in oe)j.call(oe,_e)&&!Y.hasOwnProperty(_e)&&(me[_e]=oe[_e]===void 0&&Ne!==void 0?Ne[_e]:oe[_e])}var _e=arguments.length-2;if(_e===1)me.children=z;else if(1<_e){Ne=Array(_e);for(var Qe=0;Qe<_e;Qe++)Ne[Qe]=arguments[Qe+2];me.children=Ne}return{$$typeof:e,type:U.type,key:Ce,ref:ye,props:me,_owner:Fe}},ht.createContext=function(U){return U={$$typeof:a,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},U.Provider={$$typeof:s,_context:U},U.Consumer=U},ht.createElement=te,ht.createFactory=function(U){var oe=te.bind(null,U);return oe.type=U,oe},ht.createRef=function(){return{current:null}},ht.forwardRef=function(U){return{$$typeof:c,render:U}},ht.isValidElement=B,ht.lazy=function(U){return{$$typeof:m,_payload:{_status:-1,_result:U},_init:J}},ht.memo=function(U,oe){return{$$typeof:h,type:U,compare:oe===void 0?null:oe}},ht.startTransition=function(U){var oe=V.transition;V.transition={};try{U()}finally{V.transition=oe}},ht.unstable_act=D,ht.useCallback=function(U,oe){return X.current.useCallback(U,oe)},ht.useContext=function(U){return X.current.useContext(U)},ht.useDebugValue=function(){},ht.useDeferredValue=function(U){return X.current.useDeferredValue(U)},ht.useEffect=function(U,oe){return X.current.useEffect(U,oe)},ht.useId=function(){return X.current.useId()},ht.useImperativeHandle=function(U,oe,z){return X.current.useImperativeHandle(U,oe,z)},ht.useInsertionEffect=function(U,oe){return X.current.useInsertionEffect(U,oe)},ht.useLayoutEffect=function(U,oe){return X.current.useLayoutEffect(U,oe)},ht.useMemo=function(U,oe){return X.current.useMemo(U,oe)},ht.useReducer=function(U,oe,z){return X.current.useReducer(U,oe,z)},ht.useRef=function(U){return X.current.useRef(U)},ht.useState=function(U){return X.current.useState(U)},ht.useSyncExternalStore=function(U,oe,z){return X.current.useSyncExternalStore(U,oe,z)},ht.useTransition=function(){return X.current.useTransition()},ht.version="18.3.1",ht}var s1;function ix(){return s1||(s1=1,jy.exports=sL()),jy.exports}var a1;function aL(){if(a1)return pp;a1=1;var e=ix(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(c,d,h){var m,g={},b=null,x=null;h!==void 0&&(b=""+h),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(x=d.ref);for(m in d)r.call(d,m)&&!s.hasOwnProperty(m)&&(g[m]=d[m]);if(c&&c.defaultProps)for(m in d=c.defaultProps,d)g[m]===void 0&&(g[m]=d[m]);return{$$typeof:t,type:c,key:b,ref:x,props:g,_owner:i.current}}return pp.Fragment=n,pp.jsx=a,pp.jsxs=a,pp}var l1;function lL(){return l1||(l1=1,zy.exports=aL()),zy.exports}var L=lL(),S=ix();const He=dv(S);var og={},By={exports:{}},ii={},Vy={exports:{}},Uy={};var u1;function uL(){return u1||(u1=1,(function(e){function t(V,ae){var D=V.length;V.push(ae);e:for(;0<D;){var U=D-1>>>1,oe=V[U];if(0<i(oe,ae))V[U]=ae,V[D]=oe,D=U;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var ae=V[0],D=V.pop();if(D!==ae){V[0]=D;e:for(var U=0,oe=V.length,z=oe>>>1;U<z;){var me=2*(U+1)-1,Ce=V[me],ye=me+1,Fe=V[ye];if(0>i(Ce,D))ye<oe&&0>i(Fe,Ce)?(V[U]=Fe,V[ye]=D,U=ye):(V[U]=Ce,V[me]=D,U=me);else if(ye<oe&&0>i(Fe,D))V[U]=Fe,V[ye]=D,U=ye;else break e}}return ae}function i(V,ae){var D=V.sortIndex-ae.sortIndex;return D!==0?D:V.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();e.unstable_now=function(){return a.now()-c}}var d=[],h=[],m=1,g=null,b=3,x=!1,k=!1,P=!1,T=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,A=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(V){for(var ae=n(h);ae!==null;){if(ae.callback===null)r(h);else if(ae.startTime<=V)r(h),ae.sortIndex=ae.expirationTime,t(d,ae);else break;ae=n(h)}}function F(V){if(P=!1,M(V),!k)if(n(d)!==null)k=!0,J(j);else{var ae=n(h);ae!==null&&X(F,ae.startTime-V)}}function j(V,ae){k=!1,P&&(P=!1,_(te),te=-1),x=!0;var D=b;try{for(M(ae),g=n(d);g!==null&&(!(g.expirationTime>ae)||V&&!W());){var U=g.callback;if(typeof U=="function"){g.callback=null,b=g.priorityLevel;var oe=U(g.expirationTime<=ae);ae=e.unstable_now(),typeof oe=="function"?g.callback=oe:g===n(d)&&r(d),M(ae)}else r(d);g=n(d)}if(g!==null)var z=!0;else{var me=n(h);me!==null&&X(F,me.startTime-ae),z=!1}return z}finally{g=null,b=D,x=!1}}var $=!1,Y=null,te=-1,ie=5,B=-1;function W(){return!(e.unstable_now()-B<ie)}function G(){if(Y!==null){var V=e.unstable_now();B=V;var ae=!0;try{ae=Y(!0,V)}finally{ae?ee():($=!1,Y=null)}}else $=!1}var ee;if(typeof A=="function")ee=function(){A(G)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,le=H.port2;H.port1.onmessage=G,ee=function(){le.postMessage(null)}}else ee=function(){T(G,0)};function J(V){Y=V,$||($=!0,ee())}function X(V,ae){te=T(function(){V(e.unstable_now())},ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){k||x||(k=!0,J(j))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(V){switch(b){case 1:case 2:case 3:var ae=3;break;default:ae=b}var D=b;b=ae;try{return V()}finally{b=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,ae){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var D=b;b=V;try{return ae()}finally{b=D}},e.unstable_scheduleCallback=function(V,ae,D){var U=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?U+D:U):D=U,V){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=D+oe,V={id:m++,callback:ae,priorityLevel:V,startTime:D,expirationTime:oe,sortIndex:-1},D>U?(V.sortIndex=D,t(h,V),n(d)===null&&V===n(h)&&(P?(_(te),te=-1):P=!0,X(F,D-U))):(V.sortIndex=oe,t(d,V),k||x||(k=!0,J(j))),V},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(V){var ae=b;return function(){var D=b;b=ae;try{return V.apply(this,arguments)}finally{b=D}}}})(Uy)),Uy}var c1;function cL(){return c1||(c1=1,Vy.exports=uL()),Vy.exports}var f1;function fL(){if(f1)return ii;f1=1;var e=ix(),t=cL();function n(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,p=1;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(o,l){a(o,l),a(o+"Capture",l)}function a(o,l){for(i[o]=l,o=0;o<l.length;o++)r.add(l[o])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,m={},g={};function b(o){return d.call(g,o)?!0:d.call(m,o)?!1:h.test(o)?g[o]=!0:(m[o]=!0,!1)}function x(o,l,p,v){if(p!==null&&p.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return v?!1:p!==null?!p.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function k(o,l,p,v){if(l===null||typeof l>"u"||x(o,l,p,v))return!0;if(v)return!1;if(p!==null)switch(p.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function P(o,l,p,v,w,C,R){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=v,this.attributeNamespace=w,this.mustUseProperty=p,this.propertyName=o,this.type=l,this.sanitizeURL=C,this.removeEmptyString=R}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){T[o]=new P(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];T[l]=new P(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){T[o]=new P(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){T[o]=new P(o,2,!1,o,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(o){T[o]=new P(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){T[o]=new P(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){T[o]=new P(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){T[o]=new P(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){T[o]=new P(o,5,!1,o.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function A(o){return o[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(o){var l=o.replace(_,A);T[l]=new P(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(_,A);T[l]=new P(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(_,A);T[l]=new P(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){T[o]=new P(o,1,!1,o.toLowerCase(),null,!1,!1)}),T.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){T[o]=new P(o,1,!1,o.toLowerCase(),null,!0,!0)});function M(o,l,p,v){var w=T.hasOwnProperty(l)?T[l]:null;(w!==null?w.type!==0:v||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(k(l,p,w,v)&&(p=null),v||w===null?b(l)&&(p===null?o.removeAttribute(l):o.setAttribute(l,""+p)):w.mustUseProperty?o[w.propertyName]=p===null?w.type===3?!1:"":p:(l=w.attributeName,v=w.attributeNamespace,p===null?o.removeAttribute(l):(w=w.type,p=w===3||w===4&&p===!0?"":""+p,v?o.setAttributeNS(v,l,p):o.setAttribute(l,p))))}var F=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),$=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),W=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),V=Symbol.iterator;function ae(o){return o===null||typeof o!="object"?null:(o=V&&o[V]||o["@@iterator"],typeof o=="function"?o:null)}var D=Object.assign,U;function oe(o){if(U===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);U=l&&l[1]||""}return`
3
+ `+U+o}var z=!1;function me(o,l){if(!o||z)return"";z=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(de){var v=de}Reflect.construct(o,[],l)}else{try{l.call()}catch(de){v=de}o.call(l.prototype)}else{try{throw Error()}catch(de){v=de}o()}}catch(de){if(de&&v&&typeof de.stack=="string"){for(var w=de.stack.split(`
4
+ `),C=v.stack.split(`
5
+ `),R=w.length-1,K=C.length-1;1<=R&&0<=K&&w[R]!==C[K];)K--;for(;1<=R&&0<=K;R--,K--)if(w[R]!==C[K]){if(R!==1||K!==1)do if(R--,K--,0>K||w[R]!==C[K]){var Q=`
6
+ `+w[R].replace(" at new "," at ");return o.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",o.displayName)),Q}while(1<=R&&0<=K);break}}}finally{z=!1,Error.prepareStackTrace=p}return(o=o?o.displayName||o.name:"")?oe(o):""}function Ce(o){switch(o.tag){case 5:return oe(o.type);case 16:return oe("Lazy");case 13:return oe("Suspense");case 19:return oe("SuspenseList");case 0:case 2:case 15:return o=me(o.type,!1),o;case 11:return o=me(o.type.render,!1),o;case 1:return o=me(o.type,!0),o;default:return""}}function ye(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case Y:return"Fragment";case $:return"Portal";case ie:return"Profiler";case te:return"StrictMode";case ee:return"Suspense";case H:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case W:return(o.displayName||"Context")+".Consumer";case B:return(o._context.displayName||"Context")+".Provider";case G:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case le:return l=o.displayName||null,l!==null?l:ye(o.type)||"Memo";case J:l=o._payload,o=o._init;try{return ye(o(l))}catch{}}return null}function Fe(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(l);case 8:return l===te?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function Ne(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function _e(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Qe(o){var l=_e(o)?"checked":"value",p=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),v=""+o[l];if(!o.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var w=p.get,C=p.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return w.call(this)},set:function(R){v=""+R,C.call(this,R)}}),Object.defineProperty(o,l,{enumerable:p.enumerable}),{getValue:function(){return v},setValue:function(R){v=""+R},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function at(o){o._valueTracker||(o._valueTracker=Qe(o))}function Ie(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var p=l.getValue(),v="";return o&&(v=_e(o)?o.checked?"true":"false":o.value),o=v,o!==p?(l.setValue(o),!0):!1}function mt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function pt(o,l){var p=l.checked;return D({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??o._wrapperState.initialChecked})}function Ut(o,l){var p=l.defaultValue==null?"":l.defaultValue,v=l.checked!=null?l.checked:l.defaultChecked;p=Ne(l.value!=null?l.value:p),o._wrapperState={initialChecked:v,initialValue:p,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function Ue(o,l){l=l.checked,l!=null&&M(o,"checked",l,!1)}function it(o,l){Ue(o,l);var p=Ne(l.value),v=l.type;if(p!=null)v==="number"?(p===0&&o.value===""||o.value!=p)&&(o.value=""+p):o.value!==""+p&&(o.value=""+p);else if(v==="submit"||v==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?tr(o,l.type,p):l.hasOwnProperty("defaultValue")&&tr(o,l.type,Ne(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function Kt(o,l,p){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var v=l.type;if(!(v!=="submit"&&v!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,p||l===o.value||(o.value=l),o.defaultValue=l}p=o.name,p!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,p!==""&&(o.name=p)}function tr(o,l,p){(l!=="number"||mt(o.ownerDocument)!==o)&&(p==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+p&&(o.defaultValue=""+p))}var an=Array.isArray;function _t(o,l,p,v){if(o=o.options,l){l={};for(var w=0;w<p.length;w++)l["$"+p[w]]=!0;for(p=0;p<o.length;p++)w=l.hasOwnProperty("$"+o[p].value),o[p].selected!==w&&(o[p].selected=w),w&&v&&(o[p].defaultSelected=!0)}else{for(p=""+Ne(p),l=null,w=0;w<o.length;w++){if(o[w].value===p){o[w].selected=!0,v&&(o[w].defaultSelected=!0);return}l!==null||o[w].disabled||(l=o[w])}l!==null&&(l.selected=!0)}}function Rt(o,l){if(l.dangerouslySetInnerHTML!=null)throw Error(n(91));return D({},l,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function _n(o,l){var p=l.value;if(p==null){if(p=l.children,l=l.defaultValue,p!=null){if(l!=null)throw Error(n(92));if(an(p)){if(1<p.length)throw Error(n(93));p=p[0]}l=p}l==null&&(l=""),p=l}o._wrapperState={initialValue:Ne(p)}}function Er(o,l){var p=Ne(l.value),v=Ne(l.defaultValue);p!=null&&(p=""+p,p!==o.value&&(o.value=p),l.defaultValue==null&&o.defaultValue!==p&&(o.defaultValue=p)),v!=null&&(o.defaultValue=""+v)}function Nt(o){var l=o.textContent;l===o._wrapperState.initialValue&&l!==""&&l!==null&&(o.value=l)}function pe(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Se(o,l){return o==null||o==="http://www.w3.org/1999/xhtml"?pe(l):o==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var ze,nt=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,p,v,w){MSApp.execUnsafeLocalFunction(function(){return o(l,p,v,w)})}:o})(function(o,l){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=l;else{for(ze=ze||document.createElement("div"),ze.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=ze.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function lt(o,l){if(l){var p=o.firstChild;if(p&&p===o.lastChild&&p.nodeType===3){p.nodeValue=l;return}}o.textContent=l}var Wt={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},Vn=["Webkit","ms","Moz","O"];Object.keys(Wt).forEach(function(o){Vn.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),Wt[l]=Wt[o]})});function Jt(o,l,p){return l==null||typeof l=="boolean"||l===""?"":p||typeof l!="number"||l===0||Wt.hasOwnProperty(o)&&Wt[o]?(""+l).trim():l+"px"}function Pt(o,l){o=o.style;for(var p in l)if(l.hasOwnProperty(p)){var v=p.indexOf("--")===0,w=Jt(p,l[p],v);p==="float"&&(p="cssFloat"),v?o.setProperty(p,w):o[p]=w}}var Pr=D({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 Ot(o,l){if(l){if(Pr[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(n(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(n(61))}if(l.style!=null&&typeof l.style!="object")throw Error(n(62))}}function nr(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){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 ln=null;function aa(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ms=null,pi=null,hi=null;function cl(o){if(o=Wn(o)){if(typeof ms!="function")throw Error(n(280));var l=o.stateNode;l&&(l=cc(l),ms(o.stateNode,o.type,l))}}function Du(o){pi?hi?hi.push(o):hi=[o]:pi=o}function gs(){if(pi){var o=pi,l=hi;if(hi=pi=null,cl(o),l)for(o=0;o<l.length;o++)cl(l[o])}}function Vr(o,l){return o(l)}function fl(){}var dl=!1;function Zt(o,l,p){if(dl)return o(l,p);dl=!0;try{return Vr(o,l,p)}finally{dl=!1,(pi!==null||hi!==null)&&(fl(),gs())}}function vs(o,l){var p=o.stateNode;if(p===null)return null;var v=cc(p);if(v===null)return null;p=v[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(o=o.type,v=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!v;break e;default:o=!1}if(o)return null;if(p&&typeof p!="function")throw Error(n(231,l,typeof p));return p}var ys=!1;if(c)try{var Ro={};Object.defineProperty(Ro,"passive",{get:function(){ys=!0}}),window.addEventListener("test",Ro,Ro),window.removeEventListener("test",Ro,Ro)}catch{ys=!1}function pl(o,l,p,v,w,C,R,K,Q){var de=Array.prototype.slice.call(arguments,3);try{l.apply(p,de)}catch(xe){this.onError(xe)}}var bs=!1,la=null,ua=!1,hl=null,Kf={onError:function(o){bs=!0,la=o}};function Wf(o,l,p,v,w,C,R,K,Q){bs=!1,la=null,pl.apply(Kf,arguments)}function Hf(o,l,p,v,w,C,R,K,Q){if(Wf.apply(this,arguments),bs){if(bs){var de=la;bs=!1,la=null}else throw Error(n(198));ua||(ua=!0,hl=de)}}function Xe(o){var l=o,p=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(p=l.return),o=l.return;while(o)}return l.tag===3?p:null}function so(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function $h(o){if(Xe(o)!==o)throw Error(n(188))}function Fv(o){var l=o.alternate;if(!l){if(l=Xe(o),l===null)throw Error(n(188));return l!==o?null:o}for(var p=o,v=l;;){var w=p.return;if(w===null)break;var C=w.alternate;if(C===null){if(v=w.return,v!==null){p=v;continue}break}if(w.child===C.child){for(C=w.child;C;){if(C===p)return $h(w),o;if(C===v)return $h(w),l;C=C.sibling}throw Error(n(188))}if(p.return!==v.return)p=w,v=C;else{for(var R=!1,K=w.child;K;){if(K===p){R=!0,p=w,v=C;break}if(K===v){R=!0,v=w,p=C;break}K=K.sibling}if(!R){for(K=C.child;K;){if(K===p){R=!0,p=C,v=w;break}if(K===v){R=!0,v=C,p=w;break}K=K.sibling}if(!R)throw Error(n(189))}}if(p.alternate!==v)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?o:l}function Ah(o){return o=Fv(o),o!==null?Rh(o):null}function Rh(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var l=Rh(o);if(l!==null)return l;o=o.sibling}return null}var Lh=t.unstable_scheduleCallback,Mh=t.unstable_cancelCallback,Nu=t.unstable_shouldYield,zv=t.unstable_requestPaint,Ht=t.unstable_now,jv=t.unstable_getCurrentPriorityLevel,Gf=t.unstable_ImmediatePriority,Dh=t.unstable_UserBlockingPriority,ml=t.unstable_NormalPriority,Nh=t.unstable_LowPriority,qf=t.unstable_IdlePriority,Ou=null,Mi=null;function Bv(o){if(Mi&&typeof Mi.onCommitFiberRoot=="function")try{Mi.onCommitFiberRoot(Ou,o,void 0,(o.current.flags&128)===128)}catch{}}var mi=Math.clz32?Math.clz32:zh,Oh=Math.log,Fh=Math.LN2;function zh(o){return o>>>=0,o===0?32:31-(Oh(o)/Fh|0)|0}var ca=64,Fu=4194304;function fa(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function xs(o,l){var p=o.pendingLanes;if(p===0)return 0;var v=0,w=o.suspendedLanes,C=o.pingedLanes,R=p&268435455;if(R!==0){var K=R&~w;K!==0?v=fa(K):(C&=R,C!==0&&(v=fa(C)))}else R=p&~w,R!==0?v=fa(R):C!==0&&(v=fa(C));if(v===0)return 0;if(l!==0&&l!==v&&(l&w)===0&&(w=v&-v,C=l&-l,w>=C||w===16&&(C&4194240)!==0))return l;if((v&4)!==0&&(v|=p&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=v;0<l;)p=31-mi(l),w=1<<p,v|=o[p],l&=~w;return v}function jh(o,l){switch(o){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vv(o,l){for(var p=o.suspendedLanes,v=o.pingedLanes,w=o.expirationTimes,C=o.pendingLanes;0<C;){var R=31-mi(C),K=1<<R,Q=w[R];Q===-1?((K&p)===0||(K&v)!==0)&&(w[R]=jh(K,l)):Q<=l&&(o.expiredLanes|=K),C&=~K}}function zu(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Yf(){var o=ca;return ca<<=1,(ca&4194240)===0&&(ca=64),o}function gl(o){for(var l=[],p=0;31>p;p++)l.push(o);return l}function vl(o,l,p){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-mi(l),o[l]=p}function Bh(o,l){var p=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var v=o.eventTimes;for(o=o.expirationTimes;0<p;){var w=31-mi(p),C=1<<w;l[w]=0,v[w]=-1,o[w]=-1,p&=~C}}function yl(o,l){var p=o.entangledLanes|=l;for(o=o.entanglements;p;){var v=31-mi(p),w=1<<v;w&l|o[v]&l&&(o[v]|=l),p&=~w}}var Et=0;function ws(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var Xf,ju,Vh,Qf,Jf,Bu=!1,bl=[],Lo=null,Mo=null,Do=null,da=new Map,xl=new Map,No=[],Uv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Uh(o,l){switch(o){case"focusin":case"focusout":Lo=null;break;case"dragenter":case"dragleave":Mo=null;break;case"mouseover":case"mouseout":Do=null;break;case"pointerover":case"pointerout":da.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(l.pointerId)}}function Ss(o,l,p,v,w,C){return o===null||o.nativeEvent!==C?(o={blockedOn:l,domEventName:p,eventSystemFlags:v,nativeEvent:C,targetContainers:[w]},l!==null&&(l=Wn(l),l!==null&&ju(l)),o):(o.eventSystemFlags|=v,l=o.targetContainers,w!==null&&l.indexOf(w)===-1&&l.push(w),o)}function Kv(o,l,p,v,w){switch(l){case"focusin":return Lo=Ss(Lo,o,l,p,v,w),!0;case"dragenter":return Mo=Ss(Mo,o,l,p,v,w),!0;case"mouseover":return Do=Ss(Do,o,l,p,v,w),!0;case"pointerover":var C=w.pointerId;return da.set(C,Ss(da.get(C)||null,o,l,p,v,w)),!0;case"gotpointercapture":return C=w.pointerId,xl.set(C,Ss(xl.get(C)||null,o,l,p,v,w)),!0}return!1}function Kh(o){var l=Fi(o.target);if(l!==null){var p=Xe(l);if(p!==null){if(l=p.tag,l===13){if(l=so(p),l!==null){o.blockedOn=l,Jf(o.priority,function(){Vh(p)});return}}else if(l===3&&p.stateNode.current.memoizedState.isDehydrated){o.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Vu(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var p=Wu(o.domEventName,o.eventSystemFlags,l[0],o.nativeEvent);if(p===null){p=o.nativeEvent;var v=new p.constructor(p.type,p);ln=v,p.target.dispatchEvent(v),ln=null}else return l=Wn(p),l!==null&&ju(l),o.blockedOn=p,!1;l.shift()}return!0}function Wh(o,l,p){Vu(o)&&p.delete(l)}function Wv(){Bu=!1,Lo!==null&&Vu(Lo)&&(Lo=null),Mo!==null&&Vu(Mo)&&(Mo=null),Do!==null&&Vu(Do)&&(Do=null),da.forEach(Wh),xl.forEach(Wh)}function It(o,l){o.blockedOn===l&&(o.blockedOn=null,Bu||(Bu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Wv)))}function Tt(o){function l(w){return It(w,o)}if(0<bl.length){It(bl[0],o);for(var p=1;p<bl.length;p++){var v=bl[p];v.blockedOn===o&&(v.blockedOn=null)}}for(Lo!==null&&It(Lo,o),Mo!==null&&It(Mo,o),Do!==null&&It(Do,o),da.forEach(l),xl.forEach(l),p=0;p<No.length;p++)v=No[p],v.blockedOn===o&&(v.blockedOn=null);for(;0<No.length&&(p=No[0],p.blockedOn===null);)Kh(p),p.blockedOn===null&&No.shift()}var pa=F.ReactCurrentBatchConfig,Uu=!0;function Hv(o,l,p,v){var w=Et,C=pa.transition;pa.transition=null;try{Et=1,Zf(o,l,p,v)}finally{Et=w,pa.transition=C}}function Gv(o,l,p,v){var w=Et,C=pa.transition;pa.transition=null;try{Et=4,Zf(o,l,p,v)}finally{Et=w,pa.transition=C}}function Zf(o,l,p,v){if(Uu){var w=Wu(o,l,p,v);if(w===null)gd(o,l,v,Ku,p),Uh(o,v);else if(Kv(w,o,l,p,v))v.stopPropagation();else if(Uh(o,v),l&4&&-1<Uv.indexOf(o)){for(;w!==null;){var C=Wn(w);if(C!==null&&Xf(C),C=Wu(o,l,p,v),C===null&&gd(o,l,v,Ku,p),C===w)break;w=C}w!==null&&v.stopPropagation()}else gd(o,l,v,null,p)}}var Ku=null;function Wu(o,l,p,v){if(Ku=null,o=aa(v),o=Fi(o),o!==null)if(l=Xe(o),l===null)o=null;else if(p=l.tag,p===13){if(o=so(l),o!==null)return o;o=null}else if(p===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null);return Ku=o,null}function Hh(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(jv()){case Gf:return 1;case Dh:return 4;case ml:case Nh:return 16;case qf:return 536870912;default:return 16}default:return 16}}var Gt=null,wl=null,Di=null;function ed(){if(Di)return Di;var o,l=wl,p=l.length,v,w="value"in Gt?Gt.value:Gt.textContent,C=w.length;for(o=0;o<p&&l[o]===w[o];o++);var R=p-o;for(v=1;v<=R&&l[p-v]===w[C-v];v++);return Di=w.slice(o,1<v?1-v:void 0)}function ha(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function rr(){return!0}function td(){return!1}function pr(o){function l(p,v,w,C,R){this._reactName=p,this._targetInst=w,this.type=v,this.nativeEvent=C,this.target=R,this.currentTarget=null;for(var K in o)o.hasOwnProperty(K)&&(p=o[K],this[K]=p?p(C):C[K]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?rr:td,this.isPropagationStopped=td,this}return D(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),l}var ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=pr(ks),ma=D({},ks,{view:0,detail:0}),Gh=pr(ma),ir,nd,Un,Gu=D({},ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ad,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Un&&(Un&&o.type==="mousemove"?(ir=o.screenX-Un.screenX,nd=o.screenY-Un.screenY):nd=ir=0,Un=o),ir)},movementY:function(o){return"movementY"in o?o.movementY:nd}}),rd=pr(Gu),Oo=D({},Gu,{dataTransfer:0}),qu=pr(Oo),id=D({},ma,{relatedTarget:0}),Lt=pr(id),Fo=D({},ks,{animationName:0,elapsedTime:0,pseudoElement:0}),od=pr(Fo),qv=D({},ks,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),sd=pr(qv),Yv=D({},ks,{data:0}),qh=pr(Yv),Xv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Yu={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ga(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=Yu[o])?!!l[o]:!1}function ad(){return ga}var Xh=D({},ma,{key:function(o){if(o.key){var l=Xv[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=ha(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Yh[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ad,charCode:function(o){return o.type==="keypress"?ha(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?ha(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Qh=pr(Xh),ld=D({},Gu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xu=pr(ld),Jh=D({},ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ad}),Qv=pr(Jh),ud=D({},ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),cd=pr(ud),Jv=D({},Gu,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Zh=pr(Jv),Tr=[9,13,27,32],Sl=c&&"CompositionEvent"in window,ao=null;c&&"documentMode"in document&&(ao=document.documentMode);var em=c&&"TextEvent"in window&&!ao,fd=c&&(!Sl||ao&&8<ao&&11>=ao),tm=" ",nm=!1;function rm(o,l){switch(o){case"keyup":return Tr.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function im(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var va=!1;function ya(o,l){switch(o){case"compositionend":return im(l);case"keypress":return l.which!==32?null:(nm=!0,tm);case"textInput":return o=l.data,o===tm&&nm?null:o;default:return null}}function Zv(o,l){if(va)return o==="compositionend"||!Sl&&rm(o,l)?(o=ed(),Di=wl=Gt=null,va=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return fd&&l.locale!=="ko"?null:l.data;default:return null}}var ey={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qu(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!ey[o.type]:l==="textarea"}function dd(o,l,p,v){Du(v),l=sc(l,"onChange"),0<l.length&&(p=new Hu("onChange","change",null,p,v),o.push({event:p,listeners:l}))}var Ur=null,zo=null;function ty(o){fm(o,0)}function Ju(o){var l=ot(o);if(Ie(l))return o}function ny(o,l){if(o==="change")return l}var Cs=!1;if(c){var _r;if(c){var Zu="oninput"in document;if(!Zu){var om=document.createElement("div");om.setAttribute("oninput","return;"),Zu=typeof om.oninput=="function"}_r=Zu}else _r=!1;Cs=_r&&(!document.documentMode||9<document.documentMode)}function sm(){Ur&&(Ur.detachEvent("onpropertychange",am),zo=Ur=null)}function am(o){if(o.propertyName==="value"&&Ju(zo)){var l=[];dd(l,zo,o,aa(o)),Zt(ty,l)}}function ry(o,l,p){o==="focusin"?(sm(),Ur=l,zo=p,Ur.attachEvent("onpropertychange",am)):o==="focusout"&&sm()}function iy(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Ju(zo)}function ba(o,l){if(o==="click")return Ju(l)}function re(o,l){if(o==="input"||o==="change")return Ju(l)}function he(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var fe=typeof Object.is=="function"?Object.is:he;function Re(o,l){if(fe(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var p=Object.keys(o),v=Object.keys(l);if(p.length!==v.length)return!1;for(v=0;v<p.length;v++){var w=p[v];if(!d.call(l,w)||!fe(o[w],l[w]))return!1}return!0}function rt(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function wt(o,l){var p=rt(o);o=0;for(var v;p;){if(p.nodeType===3){if(v=o+p.textContent.length,o<=l&&v>=l)return{node:p,offset:l-o};o=v}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=rt(p)}}function pn(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?pn(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function $t(){for(var o=window,l=mt();l instanceof o.HTMLIFrameElement;){try{var p=typeof l.contentWindow.location.href=="string"}catch{p=!1}if(p)o=l.contentWindow;else break;l=mt(o.document)}return l}function kl(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function oy(o){var l=$t(),p=o.focusedElem,v=o.selectionRange;if(l!==p&&p&&p.ownerDocument&&pn(p.ownerDocument.documentElement,p)){if(v!==null&&kl(p)){if(l=v.start,o=v.end,o===void 0&&(o=l),"selectionStart"in p)p.selectionStart=l,p.selectionEnd=Math.min(o,p.value.length);else if(o=(l=p.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var w=p.textContent.length,C=Math.min(v.start,w);v=v.end===void 0?C:Math.min(v.end,w),!o.extend&&C>v&&(w=v,v=C,C=w),w=wt(p,C);var R=wt(p,v);w&&R&&(o.rangeCount!==1||o.anchorNode!==w.node||o.anchorOffset!==w.offset||o.focusNode!==R.node||o.focusOffset!==R.offset)&&(l=l.createRange(),l.setStart(w.node,w.offset),o.removeAllRanges(),C>v?(o.addRange(l),o.extend(R.node,R.offset)):(l.setEnd(R.node,R.offset),o.addRange(l)))}}for(l=[],o=p;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<l.length;p++)o=l[p],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Kr=c&&"documentMode"in document&&11>=document.documentMode,lo=null,pd=null,Ni=null,xa=!1;function Cl(o,l,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;xa||lo==null||lo!==mt(v)||(v=lo,"selectionStart"in v&&kl(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Ni&&Re(Ni,v)||(Ni=v,v=sc(pd,"onSelect"),0<v.length&&(l=new Hu("onSelect","select",null,l,p),o.push({event:l,listeners:v}),l.target=lo)))}function St(o,l){var p={};return p[o.toLowerCase()]=l.toLowerCase(),p["Webkit"+o]="webkit"+l,p["Moz"+o]="moz"+l,p}var wa={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},ec={},El={};c&&(El=document.createElement("div").style,"AnimationEvent"in window||(delete wa.animationend.animation,delete wa.animationiteration.animation,delete wa.animationstart.animation),"TransitionEvent"in window||delete wa.transitionend.transition);function tc(o){if(ec[o])return ec[o];if(!wa[o])return o;var l=wa[o],p;for(p in l)if(l.hasOwnProperty(p)&&p in El)return ec[o]=l[p];return o}var lm=tc("animationend"),um=tc("animationiteration"),Pl=tc("animationstart"),uo=tc("transitionend"),Tl=new Map,hd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gi(o,l){Tl.set(o,l),s(l,[o])}for(var nc=0;nc<hd.length;nc++){var rc=hd[nc],ic=rc.toLowerCase(),cm=rc[0].toUpperCase()+rc.slice(1);gi(ic,"on"+cm)}gi(lm,"onAnimationEnd"),gi(um,"onAnimationIteration"),gi(Pl,"onAnimationStart"),gi("dblclick","onDoubleClick"),gi("focusin","onFocus"),gi("focusout","onBlur"),gi(uo,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var co="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Es=new Set("cancel close invalid load scroll toggle".split(" ").concat(co));function _l(o,l,p){var v=o.type||"unknown-event";o.currentTarget=p,Hf(v,l,void 0,o),o.currentTarget=null}function fm(o,l){l=(l&4)!==0;for(var p=0;p<o.length;p++){var v=o[p],w=v.event;v=v.listeners;e:{var C=void 0;if(l)for(var R=v.length-1;0<=R;R--){var K=v[R],Q=K.instance,de=K.currentTarget;if(K=K.listener,Q!==C&&w.isPropagationStopped())break e;_l(w,K,de),C=Q}else for(R=0;R<v.length;R++){if(K=v[R],Q=K.instance,de=K.currentTarget,K=K.listener,Q!==C&&w.isPropagationStopped())break e;_l(w,K,de),C=Q}}}if(ua)throw o=hl,ua=!1,hl=null,o}function Ft(o,l){var p=l[uc];p===void 0&&(p=l[uc]=new Set);var v=o+"__bubble";p.has(v)||(oc(l,o,2,!1),p.add(v))}function md(o,l,p){var v=0;l&&(v|=4),oc(p,o,v,l)}var Ps="_reactListening"+Math.random().toString(36).slice(2);function jo(o){if(!o[Ps]){o[Ps]=!0,r.forEach(function(p){p!=="selectionchange"&&(Es.has(p)||md(p,!1,o),md(p,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Ps]||(l[Ps]=!0,md("selectionchange",!1,l))}}function oc(o,l,p,v){switch(Hh(l)){case 1:var w=Hv;break;case 4:w=Gv;break;default:w=Zf}p=w.bind(null,l,p,o),w=void 0,!ys||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(w=!0),v?w!==void 0?o.addEventListener(l,p,{capture:!0,passive:w}):o.addEventListener(l,p,!0):w!==void 0?o.addEventListener(l,p,{passive:w}):o.addEventListener(l,p,!1)}function gd(o,l,p,v,w){var C=v;if((l&1)===0&&(l&2)===0&&v!==null)e:for(;;){if(v===null)return;var R=v.tag;if(R===3||R===4){var K=v.stateNode.containerInfo;if(K===w||K.nodeType===8&&K.parentNode===w)break;if(R===4)for(R=v.return;R!==null;){var Q=R.tag;if((Q===3||Q===4)&&(Q=R.stateNode.containerInfo,Q===w||Q.nodeType===8&&Q.parentNode===w))return;R=R.return}for(;K!==null;){if(R=Fi(K),R===null)return;if(Q=R.tag,Q===5||Q===6){v=C=R;continue e}K=K.parentNode}}v=v.return}Zt(function(){var de=C,xe=aa(p),ke=[];e:{var be=Tl.get(o);if(be!==void 0){var Le=Hu,De=o;switch(o){case"keypress":if(ha(p)===0)break e;case"keydown":case"keyup":Le=Qh;break;case"focusin":De="focus",Le=Lt;break;case"focusout":De="blur",Le=Lt;break;case"beforeblur":case"afterblur":Le=Lt;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=rd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=qu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Qv;break;case lm:case um:case Pl:Le=od;break;case uo:Le=cd;break;case"scroll":Le=Gh;break;case"wheel":Le=Zh;break;case"copy":case"cut":case"paste":Le=sd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=Xu}var Oe=(l&4)!==0,cn=!Oe&&o==="scroll",ue=Oe?be!==null?be+"Capture":null:be;Oe=[];for(var ne=de,ce;ne!==null;){ce=ne;var Ee=ce.stateNode;if(ce.tag===5&&Ee!==null&&(ce=Ee,ue!==null&&(Ee=vs(ne,ue),Ee!=null&&Oe.push(Sa(ne,Ee,ce)))),cn)break;ne=ne.return}0<Oe.length&&(be=new Le(be,De,null,p,xe),ke.push({event:be,listeners:Oe}))}}if((l&7)===0){e:{if(be=o==="mouseover"||o==="pointerover",Le=o==="mouseout"||o==="pointerout",be&&p!==ln&&(De=p.relatedTarget||p.fromElement)&&(Fi(De)||De[Ir]))break e;if((Le||be)&&(be=xe.window===xe?xe:(be=xe.ownerDocument)?be.defaultView||be.parentWindow:window,Le?(De=p.relatedTarget||p.toElement,Le=de,De=De?Fi(De):null,De!==null&&(cn=Xe(De),De!==cn||De.tag!==5&&De.tag!==6)&&(De=null)):(Le=null,De=de),Le!==De)){if(Oe=rd,Ee="onMouseLeave",ue="onMouseEnter",ne="mouse",(o==="pointerout"||o==="pointerover")&&(Oe=Xu,Ee="onPointerLeave",ue="onPointerEnter",ne="pointer"),cn=Le==null?be:ot(Le),ce=De==null?be:ot(De),be=new Oe(Ee,ne+"leave",Le,p,xe),be.target=cn,be.relatedTarget=ce,Ee=null,Fi(xe)===de&&(Oe=new Oe(ue,ne+"enter",De,p,xe),Oe.target=ce,Oe.relatedTarget=cn,Ee=Oe),cn=Ee,Le&&De)t:{for(Oe=Le,ue=De,ne=0,ce=Oe;ce;ce=ka(ce))ne++;for(ce=0,Ee=ue;Ee;Ee=ka(Ee))ce++;for(;0<ne-ce;)Oe=ka(Oe),ne--;for(;0<ce-ne;)ue=ka(ue),ce--;for(;ne--;){if(Oe===ue||ue!==null&&Oe===ue.alternate)break t;Oe=ka(Oe),ue=ka(ue)}Oe=null}else Oe=null;Le!==null&&hn(ke,be,Le,Oe,!1),De!==null&&cn!==null&&hn(ke,cn,De,Oe,!0)}}e:{if(be=de?ot(de):window,Le=be.nodeName&&be.nodeName.toLowerCase(),Le==="select"||Le==="input"&&be.type==="file")var Ve=ny;else if(Qu(be))if(Cs)Ve=re;else{Ve=iy;var Ge=ry}else(Le=be.nodeName)&&Le.toLowerCase()==="input"&&(be.type==="checkbox"||be.type==="radio")&&(Ve=ba);if(Ve&&(Ve=Ve(o,de))){dd(ke,Ve,p,xe);break e}Ge&&Ge(o,be,de),o==="focusout"&&(Ge=be._wrapperState)&&Ge.controlled&&be.type==="number"&&tr(be,"number",be.value)}switch(Ge=de?ot(de):window,o){case"focusin":(Qu(Ge)||Ge.contentEditable==="true")&&(lo=Ge,pd=de,Ni=null);break;case"focusout":Ni=pd=lo=null;break;case"mousedown":xa=!0;break;case"contextmenu":case"mouseup":case"dragend":xa=!1,Cl(ke,p,xe);break;case"selectionchange":if(Kr)break;case"keydown":case"keyup":Cl(ke,p,xe)}var We;if(Sl)e:{switch(o){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else va?rm(o,p)&&(Je="onCompositionEnd"):o==="keydown"&&p.keyCode===229&&(Je="onCompositionStart");Je&&(fd&&p.locale!=="ko"&&(va||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&va&&(We=ed()):(Gt=xe,wl="value"in Gt?Gt.value:Gt.textContent,va=!0)),Ge=sc(de,Je),0<Ge.length&&(Je=new qh(Je,o,null,p,xe),ke.push({event:Je,listeners:Ge}),We?Je.data=We:(We=im(p),We!==null&&(Je.data=We)))),(We=em?ya(o,p):Zv(o,p))&&(de=sc(de,"onBeforeInput"),0<de.length&&(xe=new qh("onBeforeInput","beforeinput",null,p,xe),ke.push({event:xe,listeners:de}),xe.data=We))}fm(ke,l)})}function Sa(o,l,p){return{instance:o,listener:l,currentTarget:p}}function sc(o,l){for(var p=l+"Capture",v=[];o!==null;){var w=o,C=w.stateNode;w.tag===5&&C!==null&&(w=C,C=vs(o,p),C!=null&&v.unshift(Sa(o,C,w)),C=vs(o,l),C!=null&&v.push(Sa(o,C,w))),o=o.return}return v}function ka(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function hn(o,l,p,v,w){for(var C=l._reactName,R=[];p!==null&&p!==v;){var K=p,Q=K.alternate,de=K.stateNode;if(Q!==null&&Q===v)break;K.tag===5&&de!==null&&(K=de,w?(Q=vs(p,C),Q!=null&&R.unshift(Sa(p,Q,K))):w||(Q=vs(p,C),Q!=null&&R.push(Sa(p,Q,K)))),p=p.return}R.length!==0&&o.push({event:l,listeners:R})}var Kn=/\r\n?/g,sy=/\u0000|\uFFFD/g;function dm(o){return(typeof o=="string"?o:""+o).replace(Kn,`
7
+ `).replace(sy,"")}function Il(o,l,p){if(l=dm(l),dm(o)!==l&&p)throw Error(n(425))}function ac(){}var $l=null,Ts=null;function Al(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Bo=typeof setTimeout=="function"?setTimeout:void 0,Rl=typeof clearTimeout=="function"?clearTimeout:void 0,Ca=typeof Promise=="function"?Promise:void 0,lc=typeof queueMicrotask=="function"?queueMicrotask:typeof Ca<"u"?function(o){return Ca.resolve(null).then(o).catch(Ea)}:Bo;function Ea(o){setTimeout(function(){throw o})}function vd(o,l){var p=l,v=0;do{var w=p.nextSibling;if(o.removeChild(p),w&&w.nodeType===8)if(p=w.data,p==="/$"){if(v===0){o.removeChild(w),Tt(l);return}v--}else p!=="$"&&p!=="$?"&&p!=="$!"||v++;p=w}while(p);Tt(l)}function Vo(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return o}function pm(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var p=o.data;if(p==="$"||p==="$!"||p==="$?"){if(l===0)return o;l--}else p==="/$"&&l++}o=o.previousSibling}return null}var Pa=Math.random().toString(36).slice(2),Oi="__reactFiber$"+Pa,Uo="__reactProps$"+Pa,Ir="__reactContainer$"+Pa,uc="__reactEvents$"+Pa,N="__reactListeners$"+Pa,Ta="__reactHandles$"+Pa;function Fi(o){var l=o[Oi];if(l)return l;for(var p=o.parentNode;p;){if(l=p[Ir]||p[Oi]){if(p=l.alternate,l.child!==null||p!==null&&p.child!==null)for(o=pm(o);o!==null;){if(p=o[Oi])return p;o=pm(o)}return l}o=p,p=o.parentNode}return null}function Wn(o){return o=o[Oi]||o[Ir],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function ot(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function cc(o){return o[Uo]||null}var yd=[],_a=-1;function hr(o){return{current:o}}function zt(o){0>_a||(o.current=yd[_a],yd[_a]=null,_a--)}function Mt(o,l){_a++,yd[_a]=o.current,o.current=l}var Ko={},Hn=hr(Ko),mr=hr(!1),or=Ko;function Ia(o,l){var p=o.type.contextTypes;if(!p)return Ko;var v=o.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===l)return v.__reactInternalMemoizedMaskedChildContext;var w={},C;for(C in p)w[C]=l[C];return v&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=w),w}function gr(o){return o=o.childContextTypes,o!=null}function fc(){zt(mr),zt(Hn)}function hm(o,l,p){if(Hn.current!==Ko)throw Error(n(168));Mt(Hn,l),Mt(mr,p)}function mm(o,l,p){var v=o.stateNode;if(l=l.childContextTypes,typeof v.getChildContext!="function")return p;v=v.getChildContext();for(var w in v)if(!(w in l))throw Error(n(108,Fe(o)||"Unknown",w));return D({},p,v)}function Wr(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Ko,or=Hn.current,Mt(Hn,o),Mt(mr,mr.current),!0}function gm(o,l,p){var v=o.stateNode;if(!v)throw Error(n(169));p?(o=mm(o,l,or),v.__reactInternalMemoizedMergedChildContext=o,zt(mr),zt(Hn),Mt(Hn,o)):zt(mr),Mt(mr,p)}var fo=null,dc=!1,bd=!1;function vm(o){fo===null?fo=[o]:fo.push(o)}function _s(o){dc=!0,vm(o)}function Wo(){if(!bd&&fo!==null){bd=!0;var o=0,l=Et;try{var p=fo;for(Et=1;o<p.length;o++){var v=p[o];do v=v(!0);while(v!==null)}fo=null,dc=!1}catch(w){throw fo!==null&&(fo=fo.slice(o+1)),Lh(Gf,Wo),w}finally{Et=l,bd=!1}}return null}var $a=[],Gn=0,pc=null,hc=0,Hr=[],Gr=0,Is=null,zi=1,ji="";function $s(o,l){$a[Gn++]=hc,$a[Gn++]=pc,pc=o,hc=l}function ym(o,l,p){Hr[Gr++]=zi,Hr[Gr++]=ji,Hr[Gr++]=Is,Is=o;var v=zi;o=ji;var w=32-mi(v)-1;v&=~(1<<w),p+=1;var C=32-mi(l)+w;if(30<C){var R=w-w%5;C=(v&(1<<R)-1).toString(32),v>>=R,w-=R,zi=1<<32-mi(l)+w|p<<w|v,ji=C+o}else zi=1<<C|p<<w|v,ji=o}function Ll(o){o.return!==null&&($s(o,1),ym(o,1,0))}function As(o){for(;o===pc;)pc=$a[--Gn],$a[Gn]=null,hc=$a[--Gn],$a[Gn]=null;for(;o===Is;)Is=Hr[--Gr],Hr[Gr]=null,ji=Hr[--Gr],Hr[Gr]=null,zi=Hr[--Gr],Hr[Gr]=null}var qn=null,$r=null,jt=!1,vi=null;function Bi(o,l){var p=ei(5,null,null,0);p.elementType="DELETED",p.stateNode=l,p.return=o,l=o.deletions,l===null?(o.deletions=[p],o.flags|=16):l.push(p)}function mc(o,l){switch(o.tag){case 5:var p=o.type;return l=l.nodeType!==1||p.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(o.stateNode=l,qn=o,$r=Vo(l.firstChild),!0):!1;case 6:return l=o.pendingProps===""||l.nodeType!==3?null:l,l!==null?(o.stateNode=l,qn=o,$r=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(p=Is!==null?{id:zi,overflow:ji}:null,o.memoizedState={dehydrated:l,treeContext:p,retryLane:1073741824},p=ei(18,null,null,0),p.stateNode=l,p.return=o,o.child=p,qn=o,$r=null,!0):!1;default:return!1}}function po(o){return(o.mode&1)!==0&&(o.flags&128)===0}function vr(o){if(jt){var l=$r;if(l){var p=l;if(!mc(o,l)){if(po(o))throw Error(n(418));l=Vo(p.nextSibling);var v=qn;l&&mc(o,l)?Bi(v,p):(o.flags=o.flags&-4097|2,jt=!1,qn=o)}}else{if(po(o))throw Error(n(418));o.flags=o.flags&-4097|2,jt=!1,qn=o}}}function bm(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;qn=o}function Ml(o){if(o!==qn)return!1;if(!jt)return bm(o),jt=!0,!1;var l;if((l=o.tag!==3)&&!(l=o.tag!==5)&&(l=o.type,l=l!=="head"&&l!=="body"&&!Al(o.type,o.memoizedProps)),l&&(l=$r)){if(po(o))throw xd(),Error(n(418));for(;l;)Bi(o,l),l=Vo(l.nextSibling)}if(bm(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,l=0;o;){if(o.nodeType===8){var p=o.data;if(p==="/$"){if(l===0){$r=Vo(o.nextSibling);break e}l--}else p!=="$"&&p!=="$!"&&p!=="$?"||l++}o=o.nextSibling}$r=null}}else $r=qn?Vo(o.stateNode.nextSibling):null;return!0}function xd(){for(var o=$r;o;)o=Vo(o.nextSibling)}function Vi(){$r=qn=null,jt=!1}function Ui(o){vi===null?vi=[o]:vi.push(o)}var xm=F.ReactCurrentBatchConfig;function Dl(o,l,p){if(o=p.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var v=p.stateNode}if(!v)throw Error(n(147,o));var w=v,C=""+o;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===C?l.ref:(l=function(R){var K=w.refs;R===null?delete K[C]:K[C]=R},l._stringRef=C,l)}if(typeof o!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,o))}return o}function Rs(o,l){throw o=Object.prototype.toString.call(l),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o))}function wm(o){var l=o._init;return l(o._payload)}function wd(o){function l(ue,ne){if(o){var ce=ue.deletions;ce===null?(ue.deletions=[ne],ue.flags|=16):ce.push(ne)}}function p(ue,ne){if(!o)return null;for(;ne!==null;)l(ue,ne),ne=ne.sibling;return null}function v(ue,ne){for(ue=new Map;ne!==null;)ne.key!==null?ue.set(ne.key,ne):ue.set(ne.index,ne),ne=ne.sibling;return ue}function w(ue,ne){return ue=Ci(ue,ne),ue.index=0,ue.sibling=null,ue}function C(ue,ne,ce){return ue.index=ce,o?(ce=ue.alternate,ce!==null?(ce=ce.index,ce<ne?(ue.flags|=2,ne):ce):(ue.flags|=2,ne)):(ue.flags|=1048576,ne)}function R(ue){return o&&ue.alternate===null&&(ue.flags|=2),ue}function K(ue,ne,ce,Ee){return ne===null||ne.tag!==6?(ne=ap(ce,ue.mode,Ee),ne.return=ue,ne):(ne=w(ne,ce),ne.return=ue,ne)}function Q(ue,ne,ce,Ee){var Ve=ce.type;return Ve===Y?xe(ue,ne,ce.props.children,Ee,ce.key):ne!==null&&(ne.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===J&&wm(Ve)===ne.type)?(Ee=w(ne,ce.props),Ee.ref=Dl(ue,ne,ce),Ee.return=ue,Ee):(Ee=Xc(ce.type,ce.key,ce.props,null,ue.mode,Ee),Ee.ref=Dl(ue,ne,ce),Ee.return=ue,Ee)}function de(ue,ne,ce,Ee){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==ce.containerInfo||ne.stateNode.implementation!==ce.implementation?(ne=lp(ce,ue.mode,Ee),ne.return=ue,ne):(ne=w(ne,ce.children||[]),ne.return=ue,ne)}function xe(ue,ne,ce,Ee,Ve){return ne===null||ne.tag!==7?(ne=Us(ce,ue.mode,Ee,Ve),ne.return=ue,ne):(ne=w(ne,ce),ne.return=ue,ne)}function ke(ue,ne,ce){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return ne=ap(""+ne,ue.mode,ce),ne.return=ue,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case j:return ce=Xc(ne.type,ne.key,ne.props,null,ue.mode,ce),ce.ref=Dl(ue,null,ne),ce.return=ue,ce;case $:return ne=lp(ne,ue.mode,ce),ne.return=ue,ne;case J:var Ee=ne._init;return ke(ue,Ee(ne._payload),ce)}if(an(ne)||ae(ne))return ne=Us(ne,ue.mode,ce,null),ne.return=ue,ne;Rs(ue,ne)}return null}function be(ue,ne,ce,Ee){var Ve=ne!==null?ne.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number")return Ve!==null?null:K(ue,ne,""+ce,Ee);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case j:return ce.key===Ve?Q(ue,ne,ce,Ee):null;case $:return ce.key===Ve?de(ue,ne,ce,Ee):null;case J:return Ve=ce._init,be(ue,ne,Ve(ce._payload),Ee)}if(an(ce)||ae(ce))return Ve!==null?null:xe(ue,ne,ce,Ee,null);Rs(ue,ce)}return null}function Le(ue,ne,ce,Ee,Ve){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number")return ue=ue.get(ce)||null,K(ne,ue,""+Ee,Ve);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case j:return ue=ue.get(Ee.key===null?ce:Ee.key)||null,Q(ne,ue,Ee,Ve);case $:return ue=ue.get(Ee.key===null?ce:Ee.key)||null,de(ne,ue,Ee,Ve);case J:var Ge=Ee._init;return Le(ue,ne,ce,Ge(Ee._payload),Ve)}if(an(Ee)||ae(Ee))return ue=ue.get(ce)||null,xe(ne,ue,Ee,Ve,null);Rs(ne,Ee)}return null}function De(ue,ne,ce,Ee){for(var Ve=null,Ge=null,We=ne,Je=ne=0,An=null;We!==null&&Je<ce.length;Je++){We.index>Je?(An=We,We=null):An=We.sibling;var kt=be(ue,We,ce[Je],Ee);if(kt===null){We===null&&(We=An);break}o&&We&&kt.alternate===null&&l(ue,We),ne=C(kt,ne,Je),Ge===null?Ve=kt:Ge.sibling=kt,Ge=kt,We=An}if(Je===ce.length)return p(ue,We),jt&&$s(ue,Je),Ve;if(We===null){for(;Je<ce.length;Je++)We=ke(ue,ce[Je],Ee),We!==null&&(ne=C(We,ne,Je),Ge===null?Ve=We:Ge.sibling=We,Ge=We);return jt&&$s(ue,Je),Ve}for(We=v(ue,We);Je<ce.length;Je++)An=Le(We,ue,Je,ce[Je],Ee),An!==null&&(o&&An.alternate!==null&&We.delete(An.key===null?Je:An.key),ne=C(An,ne,Je),Ge===null?Ve=An:Ge.sibling=An,Ge=An);return o&&We.forEach(function(rs){return l(ue,rs)}),jt&&$s(ue,Je),Ve}function Oe(ue,ne,ce,Ee){var Ve=ae(ce);if(typeof Ve!="function")throw Error(n(150));if(ce=Ve.call(ce),ce==null)throw Error(n(151));for(var Ge=Ve=null,We=ne,Je=ne=0,An=null,kt=ce.next();We!==null&&!kt.done;Je++,kt=ce.next()){We.index>Je?(An=We,We=null):An=We.sibling;var rs=be(ue,We,kt.value,Ee);if(rs===null){We===null&&(We=An);break}o&&We&&rs.alternate===null&&l(ue,We),ne=C(rs,ne,Je),Ge===null?Ve=rs:Ge.sibling=rs,Ge=rs,We=An}if(kt.done)return p(ue,We),jt&&$s(ue,Je),Ve;if(We===null){for(;!kt.done;Je++,kt=ce.next())kt=ke(ue,kt.value,Ee),kt!==null&&(ne=C(kt,ne,Je),Ge===null?Ve=kt:Ge.sibling=kt,Ge=kt);return jt&&$s(ue,Je),Ve}for(We=v(ue,We);!kt.done;Je++,kt=ce.next())kt=Le(We,ue,Je,kt.value,Ee),kt!==null&&(o&&kt.alternate!==null&&We.delete(kt.key===null?Je:kt.key),ne=C(kt,ne,Je),Ge===null?Ve=kt:Ge.sibling=kt,Ge=kt);return o&&We.forEach(function(Ty){return l(ue,Ty)}),jt&&$s(ue,Je),Ve}function cn(ue,ne,ce,Ee){if(typeof ce=="object"&&ce!==null&&ce.type===Y&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case j:e:{for(var Ve=ce.key,Ge=ne;Ge!==null;){if(Ge.key===Ve){if(Ve=ce.type,Ve===Y){if(Ge.tag===7){p(ue,Ge.sibling),ne=w(Ge,ce.props.children),ne.return=ue,ue=ne;break e}}else if(Ge.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===J&&wm(Ve)===Ge.type){p(ue,Ge.sibling),ne=w(Ge,ce.props),ne.ref=Dl(ue,Ge,ce),ne.return=ue,ue=ne;break e}p(ue,Ge);break}else l(ue,Ge);Ge=Ge.sibling}ce.type===Y?(ne=Us(ce.props.children,ue.mode,Ee,ce.key),ne.return=ue,ue=ne):(Ee=Xc(ce.type,ce.key,ce.props,null,ue.mode,Ee),Ee.ref=Dl(ue,ne,ce),Ee.return=ue,ue=Ee)}return R(ue);case $:e:{for(Ge=ce.key;ne!==null;){if(ne.key===Ge)if(ne.tag===4&&ne.stateNode.containerInfo===ce.containerInfo&&ne.stateNode.implementation===ce.implementation){p(ue,ne.sibling),ne=w(ne,ce.children||[]),ne.return=ue,ue=ne;break e}else{p(ue,ne);break}else l(ue,ne);ne=ne.sibling}ne=lp(ce,ue.mode,Ee),ne.return=ue,ue=ne}return R(ue);case J:return Ge=ce._init,cn(ue,ne,Ge(ce._payload),Ee)}if(an(ce))return De(ue,ne,ce,Ee);if(ae(ce))return Oe(ue,ne,ce,Ee);Rs(ue,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,ne!==null&&ne.tag===6?(p(ue,ne.sibling),ne=w(ne,ce),ne.return=ue,ue=ne):(p(ue,ne),ne=ap(ce,ue.mode,Ee),ne.return=ue,ue=ne),R(ue)):p(ue,ne)}return cn}var on=wd(!0),gc=wd(!1),Nl=hr(null),Ar=null,Ho=null,Aa=null;function ho(){Aa=Ho=Ar=null}function vc(o){var l=Nl.current;zt(Nl),o._currentValue=l}function Nn(o,l,p){for(;o!==null;){var v=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,v!==null&&(v.childLanes|=l)):v!==null&&(v.childLanes&l)!==l&&(v.childLanes|=l),o===p)break;o=o.return}}function Go(o,l){Ar=o,Aa=Ho=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&l)!==0&&(ar=!0),o.firstContext=null)}function qr(o){var l=o._currentValue;if(Aa!==o)if(o={context:o,memoizedValue:l,next:null},Ho===null){if(Ar===null)throw Error(n(308));Ho=o,Ar.dependencies={lanes:0,firstContext:o}}else Ho=Ho.next=o;return l}var Ls=null;function Sd(o){Ls===null?Ls=[o]:Ls.push(o)}function yc(o,l,p,v){var w=l.interleaved;return w===null?(p.next=p,Sd(l)):(p.next=w.next,w.next=p),l.interleaved=p,mo(o,v)}function mo(o,l){o.lanes|=l;var p=o.alternate;for(p!==null&&(p.lanes|=l),p=o,o=o.return;o!==null;)o.childLanes|=l,p=o.alternate,p!==null&&(p.childLanes|=l),p=o,o=o.return;return p.tag===3?p.stateNode:null}var Yr=!1;function bc(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function go(o,l){return{eventTime:o,lane:l,tag:0,payload:null,callback:null,next:null}}function Xr(o,l,p){var v=o.updateQueue;if(v===null)return null;if(v=v.shared,(bt&2)!==0){var w=v.pending;return w===null?l.next=l:(l.next=w.next,w.next=l),v.pending=l,mo(o,p)}return w=v.interleaved,w===null?(l.next=l,Sd(v)):(l.next=w.next,w.next=l),v.interleaved=l,mo(o,p)}function xc(o,l,p){if(l=l.updateQueue,l!==null&&(l=l.shared,(p&4194240)!==0)){var v=l.lanes;v&=o.pendingLanes,p|=v,l.lanes=p,yl(o,p)}}function km(o,l){var p=o.updateQueue,v=o.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var w=null,C=null;if(p=p.firstBaseUpdate,p!==null){do{var R={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};C===null?w=C=R:C=C.next=R,p=p.next}while(p!==null);C===null?w=C=l:C=C.next=l}else w=C=l;p={baseState:v.baseState,firstBaseUpdate:w,lastBaseUpdate:C,shared:v.shared,effects:v.effects},o.updateQueue=p;return}o=p.lastBaseUpdate,o===null?p.firstBaseUpdate=l:o.next=l,p.lastBaseUpdate=l}function Ra(o,l,p,v){var w=o.updateQueue;Yr=!1;var C=w.firstBaseUpdate,R=w.lastBaseUpdate,K=w.shared.pending;if(K!==null){w.shared.pending=null;var Q=K,de=Q.next;Q.next=null,R===null?C=de:R.next=de,R=Q;var xe=o.alternate;xe!==null&&(xe=xe.updateQueue,K=xe.lastBaseUpdate,K!==R&&(K===null?xe.firstBaseUpdate=de:K.next=de,xe.lastBaseUpdate=Q))}if(C!==null){var ke=w.baseState;R=0,xe=de=Q=null,K=C;do{var be=K.lane,Le=K.eventTime;if((v&be)===be){xe!==null&&(xe=xe.next={eventTime:Le,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var De=o,Oe=K;switch(be=l,Le=p,Oe.tag){case 1:if(De=Oe.payload,typeof De=="function"){ke=De.call(Le,ke,be);break e}ke=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Oe.payload,be=typeof De=="function"?De.call(Le,ke,be):De,be==null)break e;ke=D({},ke,be);break e;case 2:Yr=!0}}K.callback!==null&&K.lane!==0&&(o.flags|=64,be=w.effects,be===null?w.effects=[K]:be.push(K))}else Le={eventTime:Le,lane:be,tag:K.tag,payload:K.payload,callback:K.callback,next:null},xe===null?(de=xe=Le,Q=ke):xe=xe.next=Le,R|=be;if(K=K.next,K===null){if(K=w.shared.pending,K===null)break;be=K,K=be.next,be.next=null,w.lastBaseUpdate=be,w.shared.pending=null}}while(!0);if(xe===null&&(Q=ke),w.baseState=Q,w.firstBaseUpdate=de,w.lastBaseUpdate=xe,l=w.shared.interleaved,l!==null){w=l;do R|=w.lane,w=w.next;while(w!==l)}else C===null&&(w.shared.lanes=0);Jo|=R,o.lanes=R,o.memoizedState=ke}}function kd(o,l,p){if(o=l.effects,l.effects=null,o!==null)for(l=0;l<o.length;l++){var v=o[l],w=v.callback;if(w!==null){if(v.callback=null,v=p,typeof w!="function")throw Error(n(191,w));w.call(v)}}}var Ol={},Ki=hr(Ol),Fl=hr(Ol),La=hr(Ol);function vo(o){if(o===Ol)throw Error(n(174));return o}function Cd(o,l){switch(Mt(La,l),Mt(Fl,o),Mt(Ki,Ol),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Se(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=Se(l,o)}zt(Ki),Mt(Ki,l)}function qo(){zt(Ki),zt(Fl),zt(La)}function Ed(o){vo(La.current);var l=vo(Ki.current),p=Se(l,o.type);l!==p&&(Mt(Fl,o),Mt(Ki,p))}function wc(o){Fl.current===o&&(zt(Ki),zt(Fl))}var qt=hr(0);function Ms(o){for(var l=o;l!==null;){if(l.tag===13){var p=l.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Pd=[];function Sc(){for(var o=0;o<Pd.length;o++)Pd[o]._workInProgressVersionPrimary=null;Pd.length=0}var zl=F.ReactCurrentDispatcher,Td=F.ReactCurrentBatchConfig,Yo=0,en=null,un=null,bn=null,Ma=!1,jl=!1,Ds=0,ut=0;function Yn(){throw Error(n(321))}function _d(o,l){if(l===null)return!1;for(var p=0;p<l.length&&p<o.length;p++)if(!fe(o[p],l[p]))return!1;return!0}function Ns(o,l,p,v,w,C){if(Yo=C,en=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,zl.current=o===null||o.memoizedState===null?ly:Ic,o=p(v,w),jl){C=0;do{if(jl=!1,Ds=0,25<=C)throw Error(n(301));C+=1,bn=un=null,l.updateQueue=null,zl.current=Fa,o=p(v,w)}while(jl)}if(zl.current=_c,l=un!==null&&un.next!==null,Yo=0,bn=un=en=null,Ma=!1,l)throw Error(n(300));return o}function kc(){var o=Ds!==0;return Ds=0,o}function Wi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?en.memoizedState=bn=o:bn=bn.next=o,bn}function Qr(){if(un===null){var o=en.alternate;o=o!==null?o.memoizedState:null}else o=un.next;var l=bn===null?en.memoizedState:bn.next;if(l!==null)bn=l,un=o;else{if(o===null)throw Error(n(310));un=o,o={memoizedState:un.memoizedState,baseState:un.baseState,baseQueue:un.baseQueue,queue:un.queue,next:null},bn===null?en.memoizedState=bn=o:bn=bn.next=o}return bn}function Xn(o,l){return typeof l=="function"?l(o):l}function Id(o){var l=Qr(),p=l.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=o;var v=un,w=v.baseQueue,C=p.pending;if(C!==null){if(w!==null){var R=w.next;w.next=C.next,C.next=R}v.baseQueue=w=C,p.pending=null}if(w!==null){C=w.next,v=v.baseState;var K=R=null,Q=null,de=C;do{var xe=de.lane;if((Yo&xe)===xe)Q!==null&&(Q=Q.next={lane:0,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),v=de.hasEagerState?de.eagerState:o(v,de.action);else{var ke={lane:xe,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null};Q===null?(K=Q=ke,R=v):Q=Q.next=ke,en.lanes|=xe,Jo|=xe}de=de.next}while(de!==null&&de!==C);Q===null?R=v:Q.next=K,fe(v,l.memoizedState)||(ar=!0),l.memoizedState=v,l.baseState=R,l.baseQueue=Q,p.lastRenderedState=v}if(o=p.interleaved,o!==null){w=o;do C=w.lane,en.lanes|=C,Jo|=C,w=w.next;while(w!==o)}else w===null&&(p.lanes=0);return[l.memoizedState,p.dispatch]}function Da(o){var l=Qr(),p=l.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=o;var v=p.dispatch,w=p.pending,C=l.memoizedState;if(w!==null){p.pending=null;var R=w=w.next;do C=o(C,R.action),R=R.next;while(R!==w);fe(C,l.memoizedState)||(ar=!0),l.memoizedState=C,l.baseQueue===null&&(l.baseState=C),p.lastRenderedState=C}return[C,v]}function Cc(){}function $d(o,l){var p=en,v=Qr(),w=l(),C=!fe(v.memoizedState,w);if(C&&(v.memoizedState=w,ar=!0),v=v.queue,Hi(yo.bind(null,p,v,o),[o]),v.getSnapshot!==l||C||bn!==null&&bn.memoizedState.tag&1){if(p.flags|=2048,Na(9,yr.bind(null,p,v,w,l),void 0,null),$n===null)throw Error(n(349));(Yo&30)!==0||Ad(p,l,w)}return w}function Ad(o,l,p){o.flags|=16384,o={getSnapshot:l,value:p},l=en.updateQueue,l===null?(l={lastEffect:null,stores:null},en.updateQueue=l,l.stores=[o]):(p=l.stores,p===null?l.stores=[o]:p.push(o))}function yr(o,l,p,v){l.value=p,l.getSnapshot=v,Ec(l)&&Rd(o)}function yo(o,l,p){return p(function(){Ec(l)&&Rd(o)})}function Ec(o){var l=o.getSnapshot;o=o.value;try{var p=l();return!fe(o,p)}catch{return!0}}function Rd(o){var l=mo(o,1);l!==null&&ki(l,o,1,-1)}function Bl(o){var l=Wi();return typeof o=="function"&&(o=o()),l.memoizedState=l.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:o},l.queue=o,o=o.dispatch=Im.bind(null,en,o),[l.memoizedState,o]}function Na(o,l,p,v){return o={tag:o,create:l,destroy:p,deps:v,next:null},l=en.updateQueue,l===null?(l={lastEffect:null,stores:null},en.updateQueue=l,l.lastEffect=o.next=o):(p=l.lastEffect,p===null?l.lastEffect=o.next=o:(v=p.next,p.next=o,o.next=v,l.lastEffect=o)),o}function Pc(){return Qr().memoizedState}function Vl(o,l,p,v){var w=Wi();en.flags|=o,w.memoizedState=Na(1|l,p,void 0,v===void 0?null:v)}function Oa(o,l,p,v){var w=Qr();v=v===void 0?null:v;var C=void 0;if(un!==null){var R=un.memoizedState;if(C=R.destroy,v!==null&&_d(v,R.deps)){w.memoizedState=Na(l,p,C,v);return}}en.flags|=o,w.memoizedState=Na(1|l,p,C,v)}function Tc(o,l){return Vl(8390656,8,o,l)}function Hi(o,l){return Oa(2048,8,o,l)}function Cm(o,l){return Oa(4,2,o,l)}function bo(o,l){return Oa(4,4,o,l)}function Ld(o,l){if(typeof l=="function")return o=o(),l(o),function(){l(null)};if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function Md(o,l,p){return p=p!=null?p.concat([o]):null,Oa(4,4,Ld.bind(null,l,o),p)}function Ul(){}function Em(o,l){var p=Qr();l=l===void 0?null:l;var v=p.memoizedState;return v!==null&&l!==null&&_d(l,v[1])?v[0]:(p.memoizedState=[o,l],o)}function Pm(o,l){var p=Qr();l=l===void 0?null:l;var v=p.memoizedState;return v!==null&&l!==null&&_d(l,v[1])?v[0]:(o=o(),p.memoizedState=[o,l],o)}function Tm(o,l,p){return(Yo&21)===0?(o.baseState&&(o.baseState=!1,ar=!0),o.memoizedState=p):(fe(p,l)||(p=Yf(),en.lanes|=p,Jo|=p,o.baseState=!0),l)}function _m(o,l){var p=Et;Et=p!==0&&4>p?p:4,o(!0);var v=Td.transition;Td.transition={};try{o(!1),l()}finally{Et=p,Td.transition=v}}function Dd(){return Qr().memoizedState}function ay(o,l,p){var v=ts(o);if(p={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null},Nd(o))sr(l,p);else if(p=yc(o,l,p,v),p!==null){var w=cr();ki(p,o,v,w),yi(p,l,v)}}function Im(o,l,p){var v=ts(o),w={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null};if(Nd(o))sr(l,w);else{var C=o.alternate;if(o.lanes===0&&(C===null||C.lanes===0)&&(C=l.lastRenderedReducer,C!==null))try{var R=l.lastRenderedState,K=C(R,p);if(w.hasEagerState=!0,w.eagerState=K,fe(K,R)){var Q=l.interleaved;Q===null?(w.next=w,Sd(l)):(w.next=Q.next,Q.next=w),l.interleaved=w;return}}catch{}p=yc(o,l,w,v),p!==null&&(w=cr(),ki(p,o,v,w),yi(p,l,v))}}function Nd(o){var l=o.alternate;return o===en||l!==null&&l===en}function sr(o,l){jl=Ma=!0;var p=o.pending;p===null?l.next=l:(l.next=p.next,p.next=l),o.pending=l}function yi(o,l,p){if((p&4194240)!==0){var v=l.lanes;v&=o.pendingLanes,p|=v,l.lanes=p,yl(o,p)}}var _c={readContext:qr,useCallback:Yn,useContext:Yn,useEffect:Yn,useImperativeHandle:Yn,useInsertionEffect:Yn,useLayoutEffect:Yn,useMemo:Yn,useReducer:Yn,useRef:Yn,useState:Yn,useDebugValue:Yn,useDeferredValue:Yn,useTransition:Yn,useMutableSource:Yn,useSyncExternalStore:Yn,useId:Yn,unstable_isNewReconciler:!1},ly={readContext:qr,useCallback:function(o,l){return Wi().memoizedState=[o,l===void 0?null:l],o},useContext:qr,useEffect:Tc,useImperativeHandle:function(o,l,p){return p=p!=null?p.concat([o]):null,Vl(4194308,4,Ld.bind(null,l,o),p)},useLayoutEffect:function(o,l){return Vl(4194308,4,o,l)},useInsertionEffect:function(o,l){return Vl(4,2,o,l)},useMemo:function(o,l){var p=Wi();return l=l===void 0?null:l,o=o(),p.memoizedState=[o,l],o},useReducer:function(o,l,p){var v=Wi();return l=p!==void 0?p(l):l,v.memoizedState=v.baseState=l,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:l},v.queue=o,o=o.dispatch=ay.bind(null,en,o),[v.memoizedState,o]},useRef:function(o){var l=Wi();return o={current:o},l.memoizedState=o},useState:Bl,useDebugValue:Ul,useDeferredValue:function(o){return Wi().memoizedState=o},useTransition:function(){var o=Bl(!1),l=o[0];return o=_m.bind(null,o[1]),Wi().memoizedState=o,[l,o]},useMutableSource:function(){},useSyncExternalStore:function(o,l,p){var v=en,w=Wi();if(jt){if(p===void 0)throw Error(n(407));p=p()}else{if(p=l(),$n===null)throw Error(n(349));(Yo&30)!==0||Ad(v,l,p)}w.memoizedState=p;var C={value:p,getSnapshot:l};return w.queue=C,Tc(yo.bind(null,v,C,o),[o]),v.flags|=2048,Na(9,yr.bind(null,v,C,p,l),void 0,null),p},useId:function(){var o=Wi(),l=$n.identifierPrefix;if(jt){var p=ji,v=zi;p=(v&~(1<<32-mi(v)-1)).toString(32)+p,l=":"+l+"R"+p,p=Ds++,0<p&&(l+="H"+p.toString(32)),l+=":"}else p=ut++,l=":"+l+"r"+p.toString(32)+":";return o.memoizedState=l},unstable_isNewReconciler:!1},Ic={readContext:qr,useCallback:Em,useContext:qr,useEffect:Hi,useImperativeHandle:Md,useInsertionEffect:Cm,useLayoutEffect:bo,useMemo:Pm,useReducer:Id,useRef:Pc,useState:function(){return Id(Xn)},useDebugValue:Ul,useDeferredValue:function(o){var l=Qr();return Tm(l,un.memoizedState,o)},useTransition:function(){var o=Id(Xn)[0],l=Qr().memoizedState;return[o,l]},useMutableSource:Cc,useSyncExternalStore:$d,useId:Dd,unstable_isNewReconciler:!1},Fa={readContext:qr,useCallback:Em,useContext:qr,useEffect:Hi,useImperativeHandle:Md,useInsertionEffect:Cm,useLayoutEffect:bo,useMemo:Pm,useReducer:Da,useRef:Pc,useState:function(){return Da(Xn)},useDebugValue:Ul,useDeferredValue:function(o){var l=Qr();return un===null?l.memoizedState=o:Tm(l,un.memoizedState,o)},useTransition:function(){var o=Da(Xn)[0],l=Qr().memoizedState;return[o,l]},useMutableSource:Cc,useSyncExternalStore:$d,useId:Dd,unstable_isNewReconciler:!1};function Jr(o,l){if(o&&o.defaultProps){l=D({},l),o=o.defaultProps;for(var p in o)l[p]===void 0&&(l[p]=o[p]);return l}return l}function $c(o,l,p,v){l=o.memoizedState,p=p(v,l),p=p==null?l:D({},l,p),o.memoizedState=p,o.lanes===0&&(o.updateQueue.baseState=p)}var Ac={isMounted:function(o){return(o=o._reactInternals)?Xe(o)===o:!1},enqueueSetState:function(o,l,p){o=o._reactInternals;var v=cr(),w=ts(o),C=go(v,w);C.payload=l,p!=null&&(C.callback=p),l=Xr(o,C,w),l!==null&&(ki(l,o,w,v),xc(l,o,w))},enqueueReplaceState:function(o,l,p){o=o._reactInternals;var v=cr(),w=ts(o),C=go(v,w);C.tag=1,C.payload=l,p!=null&&(C.callback=p),l=Xr(o,C,w),l!==null&&(ki(l,o,w,v),xc(l,o,w))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var p=cr(),v=ts(o),w=go(p,v);w.tag=2,l!=null&&(w.callback=l),l=Xr(o,w,v),l!==null&&(ki(l,o,v,p),xc(l,o,v))}};function Od(o,l,p,v,w,C,R){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(v,C,R):l.prototype&&l.prototype.isPureReactComponent?!Re(p,v)||!Re(w,C):!0}function Os(o,l,p){var v=!1,w=Ko,C=l.contextType;return typeof C=="object"&&C!==null?C=qr(C):(w=gr(l)?or:Hn.current,v=l.contextTypes,C=(v=v!=null)?Ia(o,w):Ko),l=new l(p,C),o.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Ac,o.stateNode=l,l._reactInternals=o,v&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=w,o.__reactInternalMemoizedMaskedChildContext=C),l}function za(o,l,p,v){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(p,v),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(p,v),l.state!==o&&Ac.enqueueReplaceState(l,l.state,null)}function Fd(o,l,p,v){var w=o.stateNode;w.props=p,w.state=o.memoizedState,w.refs={},bc(o);var C=l.contextType;typeof C=="object"&&C!==null?w.context=qr(C):(C=gr(l)?or:Hn.current,w.context=Ia(o,C)),w.state=o.memoizedState,C=l.getDerivedStateFromProps,typeof C=="function"&&($c(o,l,C,p),w.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(l=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),l!==w.state&&Ac.enqueueReplaceState(w,w.state,null),Ra(o,p,w,v),w.state=o.memoizedState),typeof w.componentDidMount=="function"&&(o.flags|=4194308)}function Fs(o,l){try{var p="",v=l;do p+=Ce(v),v=v.return;while(v);var w=p}catch(C){w=`
8
+ Error generating stack: `+C.message+`
9
+ `+C.stack}return{value:o,source:l,stack:w,digest:null}}function Rc(o,l,p){return{value:o,source:null,stack:p??null,digest:l??null}}function ja(o,l){try{console.error(l.value)}catch(p){setTimeout(function(){throw p})}}var $m=typeof WeakMap=="function"?WeakMap:Map;function Kl(o,l,p){p=go(-1,p),p.tag=3,p.payload={element:null};var v=l.value;return p.callback=function(){Uc||(Uc=!0,ep=v),ja(o,l)},p}function Lc(o,l,p){p=go(-1,p),p.tag=3;var v=o.type.getDerivedStateFromError;if(typeof v=="function"){var w=l.value;p.payload=function(){return v(w)},p.callback=function(){ja(o,l)}}var C=o.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(p.callback=function(){ja(o,l),typeof v!="function"&&(Zo===null?Zo=new Set([this]):Zo.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})}),p}function Wl(o,l,p){var v=o.pingCache;if(v===null){v=o.pingCache=new $m;var w=new Set;v.set(l,w)}else w=v.get(l),w===void 0&&(w=new Set,v.set(l,w));w.has(p)||(w.add(p),o=gy.bind(null,o,l,p),l.then(o,o))}function Am(o){do{var l;if((l=o.tag===13)&&(l=o.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return o;o=o.return}while(o!==null);return null}function zd(o,l,p,v,w){return(o.mode&1)===0?(o===l?o.flags|=65536:(o.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(l=go(-1,1),l.tag=2,Xr(p,l,1))),p.lanes|=1),o):(o.flags|=65536,o.lanes=w,o)}var Mc=F.ReactCurrentOwner,ar=!1;function On(o,l,p,v){l.child=o===null?gc(l,null,p,v):on(l,o.child,p,v)}function Rm(o,l,p,v,w){p=p.render;var C=l.ref;return Go(l,w),v=Ns(o,l,p,v,C,w),p=kc(),o!==null&&!ar?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~w,bi(o,l,w)):(jt&&p&&Ll(l),l.flags|=1,On(o,l,v,w),l.child)}function jd(o,l,p,v,w){if(o===null){var C=p.type;return typeof C=="function"&&!Yc(C)&&C.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(l.tag=15,l.type=C,Gi(o,l,C,v,w)):(o=Xc(p.type,null,v,l,l.mode,w),o.ref=l.ref,o.return=l,l.child=o)}if(C=o.child,(o.lanes&w)===0){var R=C.memoizedProps;if(p=p.compare,p=p!==null?p:Re,p(R,v)&&o.ref===l.ref)return bi(o,l,w)}return l.flags|=1,o=Ci(C,v),o.ref=l.ref,o.return=l,l.child=o}function Gi(o,l,p,v,w){if(o!==null){var C=o.memoizedProps;if(Re(C,v)&&o.ref===l.ref)if(ar=!1,l.pendingProps=v=C,(o.lanes&w)!==0)(o.flags&131072)!==0&&(ar=!0);else return l.lanes=o.lanes,bi(o,l,w)}return Ud(o,l,p,v,w)}function Bd(o,l,p){var v=l.pendingProps,w=v.children,C=o!==null?o.memoizedState:null;if(v.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt(Ka,Lr),Lr|=p;else{if((p&1073741824)===0)return o=C!==null?C.baseLanes|p:p,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:o,cachePool:null,transitions:null},l.updateQueue=null,Mt(Ka,Lr),Lr|=o,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=C!==null?C.baseLanes:p,Mt(Ka,Lr),Lr|=v}else C!==null?(v=C.baseLanes|p,l.memoizedState=null):v=p,Mt(Ka,Lr),Lr|=v;return On(o,l,w,p),l.child}function Vd(o,l){var p=l.ref;(o===null&&p!==null||o!==null&&o.ref!==p)&&(l.flags|=512,l.flags|=2097152)}function Ud(o,l,p,v,w){var C=gr(p)?or:Hn.current;return C=Ia(l,C),Go(l,w),p=Ns(o,l,p,v,C,w),v=kc(),o!==null&&!ar?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~w,bi(o,l,w)):(jt&&v&&Ll(l),l.flags|=1,On(o,l,p,w),l.child)}function Kd(o,l,p,v,w){if(gr(p)){var C=!0;Wr(l)}else C=!1;if(Go(l,w),l.stateNode===null)Nc(o,l),Os(l,p,v),Fd(l,p,v,w),v=!0;else if(o===null){var R=l.stateNode,K=l.memoizedProps;R.props=K;var Q=R.context,de=p.contextType;typeof de=="object"&&de!==null?de=qr(de):(de=gr(p)?or:Hn.current,de=Ia(l,de));var xe=p.getDerivedStateFromProps,ke=typeof xe=="function"||typeof R.getSnapshotBeforeUpdate=="function";ke||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(K!==v||Q!==de)&&za(l,R,v,de),Yr=!1;var be=l.memoizedState;R.state=be,Ra(l,v,R,w),Q=l.memoizedState,K!==v||be!==Q||mr.current||Yr?(typeof xe=="function"&&($c(l,p,xe,v),Q=l.memoizedState),(K=Yr||Od(l,p,K,v,be,Q,de))?(ke||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(l.flags|=4194308)):(typeof R.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=v,l.memoizedState=Q),R.props=v,R.state=Q,R.context=de,v=K):(typeof R.componentDidMount=="function"&&(l.flags|=4194308),v=!1)}else{R=l.stateNode,Sm(o,l),K=l.memoizedProps,de=l.type===l.elementType?K:Jr(l.type,K),R.props=de,ke=l.pendingProps,be=R.context,Q=p.contextType,typeof Q=="object"&&Q!==null?Q=qr(Q):(Q=gr(p)?or:Hn.current,Q=Ia(l,Q));var Le=p.getDerivedStateFromProps;(xe=typeof Le=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(K!==ke||be!==Q)&&za(l,R,v,Q),Yr=!1,be=l.memoizedState,R.state=be,Ra(l,v,R,w);var De=l.memoizedState;K!==ke||be!==De||mr.current||Yr?(typeof Le=="function"&&($c(l,p,Le,v),De=l.memoizedState),(de=Yr||Od(l,p,de,v,be,De,Q)||!1)?(xe||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(v,De,Q),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(v,De,Q)),typeof R.componentDidUpdate=="function"&&(l.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof R.componentDidUpdate!="function"||K===o.memoizedProps&&be===o.memoizedState||(l.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||K===o.memoizedProps&&be===o.memoizedState||(l.flags|=1024),l.memoizedProps=v,l.memoizedState=De),R.props=v,R.state=De,R.context=Q,v=de):(typeof R.componentDidUpdate!="function"||K===o.memoizedProps&&be===o.memoizedState||(l.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||K===o.memoizedProps&&be===o.memoizedState||(l.flags|=1024),v=!1)}return Wd(o,l,p,v,C,w)}function Wd(o,l,p,v,w,C){Vd(o,l);var R=(l.flags&128)!==0;if(!v&&!R)return w&&gm(l,p,!1),bi(o,l,C);v=l.stateNode,Mc.current=l;var K=R&&typeof p.getDerivedStateFromError!="function"?null:v.render();return l.flags|=1,o!==null&&R?(l.child=on(l,o.child,null,C),l.child=on(l,null,K,C)):On(o,l,K,C),l.memoizedState=v.state,w&&gm(l,p,!0),l.child}function Lm(o){var l=o.stateNode;l.pendingContext?hm(o,l.pendingContext,l.pendingContext!==l.context):l.context&&hm(o,l.context,!1),Cd(o,l.containerInfo)}function qi(o,l,p,v,w){return Vi(),Ui(w),l.flags|=256,On(o,l,p,v),l.child}var Hl={dehydrated:null,treeContext:null,retryLane:0};function Gl(o){return{baseLanes:o,cachePool:null,transitions:null}}function Dc(o,l,p){var v=l.pendingProps,w=qt.current,C=!1,R=(l.flags&128)!==0,K;if((K=R)||(K=o!==null&&o.memoizedState===null?!1:(w&2)!==0),K?(C=!0,l.flags&=-129):(o===null||o.memoizedState!==null)&&(w|=1),Mt(qt,w&1),o===null)return vr(l),o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((l.mode&1)===0?l.lanes=1:o.data==="$!"?l.lanes=8:l.lanes=1073741824,null):(R=v.children,o=v.fallback,C?(v=l.mode,C=l.child,R={mode:"hidden",children:R},(v&1)===0&&C!==null?(C.childLanes=0,C.pendingProps=R):C=Qc(R,v,0,null),o=Us(o,v,p,null),C.return=l,o.return=l,C.sibling=o,l.child=C,l.child.memoizedState=Gl(p),l.memoizedState=Hl,o):Ba(l,R));if(w=o.memoizedState,w!==null&&(K=w.dehydrated,K!==null))return qe(o,l,R,v,K,w,p);if(C){C=v.fallback,R=l.mode,w=o.child,K=w.sibling;var Q={mode:"hidden",children:v.children};return(R&1)===0&&l.child!==w?(v=l.child,v.childLanes=0,v.pendingProps=Q,l.deletions=null):(v=Ci(w,Q),v.subtreeFlags=w.subtreeFlags&14680064),K!==null?C=Ci(K,C):(C=Us(C,R,p,null),C.flags|=2),C.return=l,v.return=l,v.sibling=C,l.child=v,v=C,C=l.child,R=o.child.memoizedState,R=R===null?Gl(p):{baseLanes:R.baseLanes|p,cachePool:null,transitions:R.transitions},C.memoizedState=R,C.childLanes=o.childLanes&~p,l.memoizedState=Hl,v}return C=o.child,o=C.sibling,v=Ci(C,{mode:"visible",children:v.children}),(l.mode&1)===0&&(v.lanes=p),v.return=l,v.sibling=null,o!==null&&(p=l.deletions,p===null?(l.deletions=[o],l.flags|=16):p.push(o)),l.child=v,l.memoizedState=null,v}function Ba(o,l){return l=Qc({mode:"visible",children:l},o.mode,0,null),l.return=o,o.child=l}function xo(o,l,p,v){return v!==null&&Ui(v),on(l,o.child,null,p),o=Ba(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function qe(o,l,p,v,w,C,R){if(p)return l.flags&256?(l.flags&=-257,v=Rc(Error(n(422))),xo(o,l,R,v)):l.memoizedState!==null?(l.child=o.child,l.flags|=128,null):(C=v.fallback,w=l.mode,v=Qc({mode:"visible",children:v.children},w,0,null),C=Us(C,w,R,null),C.flags|=2,v.return=l,C.return=l,v.sibling=C,l.child=v,(l.mode&1)!==0&&on(l,o.child,null,R),l.child.memoizedState=Gl(R),l.memoizedState=Hl,C);if((l.mode&1)===0)return xo(o,l,R,null);if(w.data==="$!"){if(v=w.nextSibling&&w.nextSibling.dataset,v)var K=v.dgst;return v=K,C=Error(n(419)),v=Rc(C,v,void 0),xo(o,l,R,v)}if(K=(R&o.childLanes)!==0,ar||K){if(v=$n,v!==null){switch(R&-R){case 4:w=2;break;case 16:w=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:w=32;break;case 536870912:w=268435456;break;default:w=0}w=(w&(v.suspendedLanes|R))!==0?0:w,w!==0&&w!==C.retryLane&&(C.retryLane=w,mo(o,w),ki(v,o,w,-1))}return sp(),v=Rc(Error(n(421))),xo(o,l,R,v)}return w.data==="$?"?(l.flags|=128,l.child=o.child,l=vy.bind(null,o),w._reactRetry=l,null):(o=C.treeContext,$r=Vo(w.nextSibling),qn=l,jt=!0,vi=null,o!==null&&(Hr[Gr++]=zi,Hr[Gr++]=ji,Hr[Gr++]=Is,zi=o.id,ji=o.overflow,Is=l),l=Ba(l,v.children),l.flags|=4096,l)}function ql(o,l,p){o.lanes|=l;var v=o.alternate;v!==null&&(v.lanes|=l),Nn(o.return,l,p)}function Yl(o,l,p,v,w){var C=o.memoizedState;C===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:v,tail:p,tailMode:w}:(C.isBackwards=l,C.rendering=null,C.renderingStartTime=0,C.last=v,C.tail=p,C.tailMode=w)}function Xo(o,l,p){var v=l.pendingProps,w=v.revealOrder,C=v.tail;if(On(o,l,v.children,p),v=qt.current,(v&2)!==0)v=v&1|2,l.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&ql(o,p,l);else if(o.tag===19)ql(o,p,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}v&=1}if(Mt(qt,v),(l.mode&1)===0)l.memoizedState=null;else switch(w){case"forwards":for(p=l.child,w=null;p!==null;)o=p.alternate,o!==null&&Ms(o)===null&&(w=p),p=p.sibling;p=w,p===null?(w=l.child,l.child=null):(w=p.sibling,p.sibling=null),Yl(l,!1,w,p,C);break;case"backwards":for(p=null,w=l.child,l.child=null;w!==null;){if(o=w.alternate,o!==null&&Ms(o)===null){l.child=w;break}o=w.sibling,w.sibling=p,p=w,w=o}Yl(l,!0,p,null,C);break;case"together":Yl(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Nc(o,l){(l.mode&1)===0&&o!==null&&(o.alternate=null,l.alternate=null,l.flags|=2)}function bi(o,l,p){if(o!==null&&(l.dependencies=o.dependencies),Jo|=l.lanes,(p&l.childLanes)===0)return null;if(o!==null&&l.child!==o.child)throw Error(n(153));if(l.child!==null){for(o=l.child,p=Ci(o,o.pendingProps),l.child=p,p.return=l;o.sibling!==null;)o=o.sibling,p=p.sibling=Ci(o,o.pendingProps),p.return=l;p.sibling=null}return l.child}function Mm(o,l,p){switch(l.tag){case 3:Lm(l),Vi();break;case 5:Ed(l);break;case 1:gr(l.type)&&Wr(l);break;case 4:Cd(l,l.stateNode.containerInfo);break;case 10:var v=l.type._context,w=l.memoizedProps.value;Mt(Nl,v._currentValue),v._currentValue=w;break;case 13:if(v=l.memoizedState,v!==null)return v.dehydrated!==null?(Mt(qt,qt.current&1),l.flags|=128,null):(p&l.child.childLanes)!==0?Dc(o,l,p):(Mt(qt,qt.current&1),o=bi(o,l,p),o!==null?o.sibling:null);Mt(qt,qt.current&1);break;case 19:if(v=(p&l.childLanes)!==0,(o.flags&128)!==0){if(v)return Xo(o,l,p);l.flags|=128}if(w=l.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),Mt(qt,qt.current),v)break;return null;case 22:case 23:return l.lanes=0,Bd(o,l,p)}return bi(o,l,p)}var Fn,Hd,Dm,Gd;Fn=function(o,l){for(var p=l.child;p!==null;){if(p.tag===5||p.tag===6)o.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===l)break;for(;p.sibling===null;){if(p.return===null||p.return===l)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Hd=function(){},Dm=function(o,l,p,v){var w=o.memoizedProps;if(w!==v){o=l.stateNode,vo(Ki.current);var C=null;switch(p){case"input":w=pt(o,w),v=pt(o,v),C=[];break;case"select":w=D({},w,{value:void 0}),v=D({},v,{value:void 0}),C=[];break;case"textarea":w=Rt(o,w),v=Rt(o,v),C=[];break;default:typeof w.onClick!="function"&&typeof v.onClick=="function"&&(o.onclick=ac)}Ot(p,v);var R;p=null;for(de in w)if(!v.hasOwnProperty(de)&&w.hasOwnProperty(de)&&w[de]!=null)if(de==="style"){var K=w[de];for(R in K)K.hasOwnProperty(R)&&(p||(p={}),p[R]="")}else de!=="dangerouslySetInnerHTML"&&de!=="children"&&de!=="suppressContentEditableWarning"&&de!=="suppressHydrationWarning"&&de!=="autoFocus"&&(i.hasOwnProperty(de)?C||(C=[]):(C=C||[]).push(de,null));for(de in v){var Q=v[de];if(K=w?.[de],v.hasOwnProperty(de)&&Q!==K&&(Q!=null||K!=null))if(de==="style")if(K){for(R in K)!K.hasOwnProperty(R)||Q&&Q.hasOwnProperty(R)||(p||(p={}),p[R]="");for(R in Q)Q.hasOwnProperty(R)&&K[R]!==Q[R]&&(p||(p={}),p[R]=Q[R])}else p||(C||(C=[]),C.push(de,p)),p=Q;else de==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,K=K?K.__html:void 0,Q!=null&&K!==Q&&(C=C||[]).push(de,Q)):de==="children"?typeof Q!="string"&&typeof Q!="number"||(C=C||[]).push(de,""+Q):de!=="suppressContentEditableWarning"&&de!=="suppressHydrationWarning"&&(i.hasOwnProperty(de)?(Q!=null&&de==="onScroll"&&Ft("scroll",o),C||K===Q||(C=[])):(C=C||[]).push(de,Q))}p&&(C=C||[]).push("style",p);var de=C;(l.updateQueue=de)&&(l.flags|=4)}},Gd=function(o,l,p,v){p!==v&&(l.flags|=4)};function Xl(o,l){if(!jt)switch(o.tailMode){case"hidden":l=o.tail;for(var p=null;l!==null;)l.alternate!==null&&(p=l),l=l.sibling;p===null?o.tail=null:p.sibling=null;break;case"collapsed":p=o.tail;for(var v=null;p!==null;)p.alternate!==null&&(v=p),p=p.sibling;v===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:v.sibling=null}}function zn(o){var l=o.alternate!==null&&o.alternate.child===o.child,p=0,v=0;if(l)for(var w=o.child;w!==null;)p|=w.lanes|w.childLanes,v|=w.subtreeFlags&14680064,v|=w.flags&14680064,w.return=o,w=w.sibling;else for(w=o.child;w!==null;)p|=w.lanes|w.childLanes,v|=w.subtreeFlags,v|=w.flags,w.return=o,w=w.sibling;return o.subtreeFlags|=v,o.childLanes=p,l}function uy(o,l,p){var v=l.pendingProps;switch(As(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zn(l),null;case 1:return gr(l.type)&&fc(),zn(l),null;case 3:return v=l.stateNode,qo(),zt(mr),zt(Hn),Sc(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(o===null||o.child===null)&&(Ml(l)?l.flags|=4:o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,vi!==null&&(rp(vi),vi=null))),Hd(o,l),zn(l),null;case 5:wc(l);var w=vo(La.current);if(p=l.type,o!==null&&l.stateNode!=null)Dm(o,l,p,v,w),o.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!v){if(l.stateNode===null)throw Error(n(166));return zn(l),null}if(o=vo(Ki.current),Ml(l)){v=l.stateNode,p=l.type;var C=l.memoizedProps;switch(v[Oi]=l,v[Uo]=C,o=(l.mode&1)!==0,p){case"dialog":Ft("cancel",v),Ft("close",v);break;case"iframe":case"object":case"embed":Ft("load",v);break;case"video":case"audio":for(w=0;w<co.length;w++)Ft(co[w],v);break;case"source":Ft("error",v);break;case"img":case"image":case"link":Ft("error",v),Ft("load",v);break;case"details":Ft("toggle",v);break;case"input":Ut(v,C),Ft("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!C.multiple},Ft("invalid",v);break;case"textarea":_n(v,C),Ft("invalid",v)}Ot(p,C),w=null;for(var R in C)if(C.hasOwnProperty(R)){var K=C[R];R==="children"?typeof K=="string"?v.textContent!==K&&(C.suppressHydrationWarning!==!0&&Il(v.textContent,K,o),w=["children",K]):typeof K=="number"&&v.textContent!==""+K&&(C.suppressHydrationWarning!==!0&&Il(v.textContent,K,o),w=["children",""+K]):i.hasOwnProperty(R)&&K!=null&&R==="onScroll"&&Ft("scroll",v)}switch(p){case"input":at(v),Kt(v,C,!0);break;case"textarea":at(v),Nt(v);break;case"select":case"option":break;default:typeof C.onClick=="function"&&(v.onclick=ac)}v=w,l.updateQueue=v,v!==null&&(l.flags|=4)}else{R=w.nodeType===9?w:w.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=pe(p)),o==="http://www.w3.org/1999/xhtml"?p==="script"?(o=R.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof v.is=="string"?o=R.createElement(p,{is:v.is}):(o=R.createElement(p),p==="select"&&(R=o,v.multiple?R.multiple=!0:v.size&&(R.size=v.size))):o=R.createElementNS(o,p),o[Oi]=l,o[Uo]=v,Fn(o,l,!1,!1),l.stateNode=o;e:{switch(R=nr(p,v),p){case"dialog":Ft("cancel",o),Ft("close",o),w=v;break;case"iframe":case"object":case"embed":Ft("load",o),w=v;break;case"video":case"audio":for(w=0;w<co.length;w++)Ft(co[w],o);w=v;break;case"source":Ft("error",o),w=v;break;case"img":case"image":case"link":Ft("error",o),Ft("load",o),w=v;break;case"details":Ft("toggle",o),w=v;break;case"input":Ut(o,v),w=pt(o,v),Ft("invalid",o);break;case"option":w=v;break;case"select":o._wrapperState={wasMultiple:!!v.multiple},w=D({},v,{value:void 0}),Ft("invalid",o);break;case"textarea":_n(o,v),w=Rt(o,v),Ft("invalid",o);break;default:w=v}Ot(p,w),K=w;for(C in K)if(K.hasOwnProperty(C)){var Q=K[C];C==="style"?Pt(o,Q):C==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&nt(o,Q)):C==="children"?typeof Q=="string"?(p!=="textarea"||Q!=="")&&lt(o,Q):typeof Q=="number"&&lt(o,""+Q):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(i.hasOwnProperty(C)?Q!=null&&C==="onScroll"&&Ft("scroll",o):Q!=null&&M(o,C,Q,R))}switch(p){case"input":at(o),Kt(o,v,!1);break;case"textarea":at(o),Nt(o);break;case"option":v.value!=null&&o.setAttribute("value",""+Ne(v.value));break;case"select":o.multiple=!!v.multiple,C=v.value,C!=null?_t(o,!!v.multiple,C,!1):v.defaultValue!=null&&_t(o,!!v.multiple,v.defaultValue,!0);break;default:typeof w.onClick=="function"&&(o.onclick=ac)}switch(p){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return zn(l),null;case 6:if(o&&l.stateNode!=null)Gd(o,l,o.memoizedProps,v);else{if(typeof v!="string"&&l.stateNode===null)throw Error(n(166));if(p=vo(La.current),vo(Ki.current),Ml(l)){if(v=l.stateNode,p=l.memoizedProps,v[Oi]=l,(C=v.nodeValue!==p)&&(o=qn,o!==null))switch(o.tag){case 3:Il(v.nodeValue,p,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Il(v.nodeValue,p,(o.mode&1)!==0)}C&&(l.flags|=4)}else v=(p.nodeType===9?p:p.ownerDocument).createTextNode(v),v[Oi]=l,l.stateNode=v}return zn(l),null;case 13:if(zt(qt),v=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(jt&&$r!==null&&(l.mode&1)!==0&&(l.flags&128)===0)xd(),Vi(),l.flags|=98560,C=!1;else if(C=Ml(l),v!==null&&v.dehydrated!==null){if(o===null){if(!C)throw Error(n(318));if(C=l.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(n(317));C[Oi]=l}else Vi(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;zn(l),C=!1}else vi!==null&&(rp(vi),vi=null),C=!0;if(!C)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=p,l):(v=v!==null,v!==(o!==null&&o.memoizedState!==null)&&v&&(l.child.flags|=8192,(l.mode&1)!==0&&(o===null||(qt.current&1)!==0?xn===0&&(xn=3):sp())),l.updateQueue!==null&&(l.flags|=4),zn(l),null);case 4:return qo(),Hd(o,l),o===null&&jo(l.stateNode.containerInfo),zn(l),null;case 10:return vc(l.type._context),zn(l),null;case 17:return gr(l.type)&&fc(),zn(l),null;case 19:if(zt(qt),C=l.memoizedState,C===null)return zn(l),null;if(v=(l.flags&128)!==0,R=C.rendering,R===null)if(v)Xl(C,!1);else{if(xn!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(R=Ms(o),R!==null){for(l.flags|=128,Xl(C,!1),v=R.updateQueue,v!==null&&(l.updateQueue=v,l.flags|=4),l.subtreeFlags=0,v=p,p=l.child;p!==null;)C=p,o=v,C.flags&=14680066,R=C.alternate,R===null?(C.childLanes=0,C.lanes=o,C.child=null,C.subtreeFlags=0,C.memoizedProps=null,C.memoizedState=null,C.updateQueue=null,C.dependencies=null,C.stateNode=null):(C.childLanes=R.childLanes,C.lanes=R.lanes,C.child=R.child,C.subtreeFlags=0,C.deletions=null,C.memoizedProps=R.memoizedProps,C.memoizedState=R.memoizedState,C.updateQueue=R.updateQueue,C.type=R.type,o=R.dependencies,C.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),p=p.sibling;return Mt(qt,qt.current&1|2),l.child}o=o.sibling}C.tail!==null&&Ht()>zs&&(l.flags|=128,v=!0,Xl(C,!1),l.lanes=4194304)}else{if(!v)if(o=Ms(R),o!==null){if(l.flags|=128,v=!0,p=o.updateQueue,p!==null&&(l.updateQueue=p,l.flags|=4),Xl(C,!0),C.tail===null&&C.tailMode==="hidden"&&!R.alternate&&!jt)return zn(l),null}else 2*Ht()-C.renderingStartTime>zs&&p!==1073741824&&(l.flags|=128,v=!0,Xl(C,!1),l.lanes=4194304);C.isBackwards?(R.sibling=l.child,l.child=R):(p=C.last,p!==null?p.sibling=R:l.child=R,C.last=R)}return C.tail!==null?(l=C.tail,C.rendering=l,C.tail=l.sibling,C.renderingStartTime=Ht(),l.sibling=null,p=qt.current,Mt(qt,v?p&1|2:p&1),l):(zn(l),null);case 22:case 23:return op(),v=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==v&&(l.flags|=8192),v&&(l.mode&1)!==0?(Lr&1073741824)!==0&&(zn(l),l.subtreeFlags&6&&(l.flags|=8192)):zn(l),null;case 24:return null;case 25:return null}throw Error(n(156,l.tag))}function cy(o,l){switch(As(l),l.tag){case 1:return gr(l.type)&&fc(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return qo(),zt(mr),zt(Hn),Sc(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 5:return wc(l),null;case 13:if(zt(qt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(n(340));Vi()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return zt(qt),null;case 4:return qo(),null;case 10:return vc(l.type._context),null;case 22:case 23:return op(),null;case 24:return null;default:return null}}var Oc=!1,Yt=!1,lr=typeof WeakSet=="function"?WeakSet:Set,Me=null;function Va(o,l){var p=o.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(v){tn(o,l,v)}else p.current=null}function Ql(o,l,p){try{p()}catch(v){tn(o,l,v)}}var Nm=!1;function fy(o,l){if($l=Uu,o=$t(),kl(o)){if("selectionStart"in o)var p={start:o.selectionStart,end:o.selectionEnd};else e:{p=(p=o.ownerDocument)&&p.defaultView||window;var v=p.getSelection&&p.getSelection();if(v&&v.rangeCount!==0){p=v.anchorNode;var w=v.anchorOffset,C=v.focusNode;v=v.focusOffset;try{p.nodeType,C.nodeType}catch{p=null;break e}var R=0,K=-1,Q=-1,de=0,xe=0,ke=o,be=null;t:for(;;){for(var Le;ke!==p||w!==0&&ke.nodeType!==3||(K=R+w),ke!==C||v!==0&&ke.nodeType!==3||(Q=R+v),ke.nodeType===3&&(R+=ke.nodeValue.length),(Le=ke.firstChild)!==null;)be=ke,ke=Le;for(;;){if(ke===o)break t;if(be===p&&++de===w&&(K=R),be===C&&++xe===v&&(Q=R),(Le=ke.nextSibling)!==null)break;ke=be,be=ke.parentNode}ke=Le}p=K===-1||Q===-1?null:{start:K,end:Q}}else p=null}p=p||{start:0,end:0}}else p=null;for(Ts={focusedElem:o,selectionRange:p},Uu=!1,Me=l;Me!==null;)if(l=Me,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Me=o;else for(;Me!==null;){l=Me;try{var De=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(De!==null){var Oe=De.memoizedProps,cn=De.memoizedState,ue=l.stateNode,ne=ue.getSnapshotBeforeUpdate(l.elementType===l.type?Oe:Jr(l.type,Oe),cn);ue.__reactInternalSnapshotBeforeUpdate=ne}break;case 3:var ce=l.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ee){tn(l,l.return,Ee)}if(o=l.sibling,o!==null){o.return=l.return,Me=o;break}Me=l.return}return De=Nm,Nm=!1,De}function wo(o,l,p){var v=l.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var w=v=v.next;do{if((w.tag&o)===o){var C=w.destroy;w.destroy=void 0,C!==void 0&&Ql(l,p,C)}w=w.next}while(w!==v)}}function Jl(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&o)===o){var v=p.create;p.destroy=v()}p=p.next}while(p!==l)}}function Fc(o){var l=o.ref;if(l!==null){var p=o.stateNode;o.tag,o=p,typeof l=="function"?l(o):l.current=o}}function Om(o){var l=o.alternate;l!==null&&(o.alternate=null,Om(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Oi],delete l[Uo],delete l[uc],delete l[N],delete l[Ta])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Fm(o){return o.tag===5||o.tag===3||o.tag===4}function zm(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Fm(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function qd(o,l,p){var v=o.tag;if(v===5||v===6)o=o.stateNode,l?p.nodeType===8?p.parentNode.insertBefore(o,l):p.insertBefore(o,l):(p.nodeType===8?(l=p.parentNode,l.insertBefore(o,p)):(l=p,l.appendChild(o)),p=p._reactRootContainer,p!=null||l.onclick!==null||(l.onclick=ac));else if(v!==4&&(o=o.child,o!==null))for(qd(o,l,p),o=o.sibling;o!==null;)qd(o,l,p),o=o.sibling}function zc(o,l,p){var v=o.tag;if(v===5||v===6)o=o.stateNode,l?p.insertBefore(o,l):p.appendChild(o);else if(v!==4&&(o=o.child,o!==null))for(zc(o,l,p),o=o.sibling;o!==null;)zc(o,l,p),o=o.sibling}var In=null,xi=!1;function Yi(o,l,p){for(p=p.child;p!==null;)Yd(o,l,p),p=p.sibling}function Yd(o,l,p){if(Mi&&typeof Mi.onCommitFiberUnmount=="function")try{Mi.onCommitFiberUnmount(Ou,p)}catch{}switch(p.tag){case 5:Yt||Va(p,l);case 6:var v=In,w=xi;In=null,Yi(o,l,p),In=v,xi=w,In!==null&&(xi?(o=In,p=p.stateNode,o.nodeType===8?o.parentNode.removeChild(p):o.removeChild(p)):In.removeChild(p.stateNode));break;case 18:In!==null&&(xi?(o=In,p=p.stateNode,o.nodeType===8?vd(o.parentNode,p):o.nodeType===1&&vd(o,p),Tt(o)):vd(In,p.stateNode));break;case 4:v=In,w=xi,In=p.stateNode.containerInfo,xi=!0,Yi(o,l,p),In=v,xi=w;break;case 0:case 11:case 14:case 15:if(!Yt&&(v=p.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){w=v=v.next;do{var C=w,R=C.destroy;C=C.tag,R!==void 0&&((C&2)!==0||(C&4)!==0)&&Ql(p,l,R),w=w.next}while(w!==v)}Yi(o,l,p);break;case 1:if(!Yt&&(Va(p,l),v=p.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=p.memoizedProps,v.state=p.memoizedState,v.componentWillUnmount()}catch(K){tn(p,l,K)}Yi(o,l,p);break;case 21:Yi(o,l,p);break;case 22:p.mode&1?(Yt=(v=Yt)||p.memoizedState!==null,Yi(o,l,p),Yt=v):Yi(o,l,p);break;default:Yi(o,l,p)}}function Ua(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var p=o.stateNode;p===null&&(p=o.stateNode=new lr),l.forEach(function(v){var w=yy.bind(null,o,v);p.has(v)||(p.add(v),v.then(w,w))})}}function Rr(o,l){var p=l.deletions;if(p!==null)for(var v=0;v<p.length;v++){var w=p[v];try{var C=o,R=l,K=R;e:for(;K!==null;){switch(K.tag){case 5:In=K.stateNode,xi=!1;break e;case 3:In=K.stateNode.containerInfo,xi=!0;break e;case 4:In=K.stateNode.containerInfo,xi=!0;break e}K=K.return}if(In===null)throw Error(n(160));Yd(C,R,w),In=null,xi=!1;var Q=w.alternate;Q!==null&&(Q.return=null),w.return=null}catch(de){tn(w,l,de)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)Xd(l,o),l=l.sibling}function Xd(o,l){var p=o.alternate,v=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Rr(l,o),wi(o),v&4){try{wo(3,o,o.return),Jl(3,o)}catch(Oe){tn(o,o.return,Oe)}try{wo(5,o,o.return)}catch(Oe){tn(o,o.return,Oe)}}break;case 1:Rr(l,o),wi(o),v&512&&p!==null&&Va(p,p.return);break;case 5:if(Rr(l,o),wi(o),v&512&&p!==null&&Va(p,p.return),o.flags&32){var w=o.stateNode;try{lt(w,"")}catch(Oe){tn(o,o.return,Oe)}}if(v&4&&(w=o.stateNode,w!=null)){var C=o.memoizedProps,R=p!==null?p.memoizedProps:C,K=o.type,Q=o.updateQueue;if(o.updateQueue=null,Q!==null)try{K==="input"&&C.type==="radio"&&C.name!=null&&Ue(w,C),nr(K,R);var de=nr(K,C);for(R=0;R<Q.length;R+=2){var xe=Q[R],ke=Q[R+1];xe==="style"?Pt(w,ke):xe==="dangerouslySetInnerHTML"?nt(w,ke):xe==="children"?lt(w,ke):M(w,xe,ke,de)}switch(K){case"input":it(w,C);break;case"textarea":Er(w,C);break;case"select":var be=w._wrapperState.wasMultiple;w._wrapperState.wasMultiple=!!C.multiple;var Le=C.value;Le!=null?_t(w,!!C.multiple,Le,!1):be!==!!C.multiple&&(C.defaultValue!=null?_t(w,!!C.multiple,C.defaultValue,!0):_t(w,!!C.multiple,C.multiple?[]:"",!1))}w[Uo]=C}catch(Oe){tn(o,o.return,Oe)}}break;case 6:if(Rr(l,o),wi(o),v&4){if(o.stateNode===null)throw Error(n(162));w=o.stateNode,C=o.memoizedProps;try{w.nodeValue=C}catch(Oe){tn(o,o.return,Oe)}}break;case 3:if(Rr(l,o),wi(o),v&4&&p!==null&&p.memoizedState.isDehydrated)try{Tt(l.containerInfo)}catch(Oe){tn(o,o.return,Oe)}break;case 4:Rr(l,o),wi(o);break;case 13:Rr(l,o),wi(o),w=o.child,w.flags&8192&&(C=w.memoizedState!==null,w.stateNode.isHidden=C,!C||w.alternate!==null&&w.alternate.memoizedState!==null||(Zd=Ht())),v&4&&Ua(o);break;case 22:if(xe=p!==null&&p.memoizedState!==null,o.mode&1?(Yt=(de=Yt)||xe,Rr(l,o),Yt=de):Rr(l,o),wi(o),v&8192){if(de=o.memoizedState!==null,(o.stateNode.isHidden=de)&&!xe&&(o.mode&1)!==0)for(Me=o,xe=o.child;xe!==null;){for(ke=Me=xe;Me!==null;){switch(be=Me,Le=be.child,be.tag){case 0:case 11:case 14:case 15:wo(4,be,be.return);break;case 1:Va(be,be.return);var De=be.stateNode;if(typeof De.componentWillUnmount=="function"){v=be,p=be.return;try{l=v,De.props=l.memoizedProps,De.state=l.memoizedState,De.componentWillUnmount()}catch(Oe){tn(v,p,Oe)}}break;case 5:Va(be,be.return);break;case 22:if(be.memoizedState!==null){Qo(ke);continue}}Le!==null?(Le.return=be,Me=Le):Qo(ke)}xe=xe.sibling}e:for(xe=null,ke=o;;){if(ke.tag===5){if(xe===null){xe=ke;try{w=ke.stateNode,de?(C=w.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none"):(K=ke.stateNode,Q=ke.memoizedProps.style,R=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,K.style.display=Jt("display",R))}catch(Oe){tn(o,o.return,Oe)}}}else if(ke.tag===6){if(xe===null)try{ke.stateNode.nodeValue=de?"":ke.memoizedProps}catch(Oe){tn(o,o.return,Oe)}}else if((ke.tag!==22&&ke.tag!==23||ke.memoizedState===null||ke===o)&&ke.child!==null){ke.child.return=ke,ke=ke.child;continue}if(ke===o)break e;for(;ke.sibling===null;){if(ke.return===null||ke.return===o)break e;xe===ke&&(xe=null),ke=ke.return}xe===ke&&(xe=null),ke.sibling.return=ke.return,ke=ke.sibling}}break;case 19:Rr(l,o),wi(o),v&4&&Ua(o);break;case 21:break;default:Rr(l,o),wi(o)}}function wi(o){var l=o.flags;if(l&2){try{e:{for(var p=o.return;p!==null;){if(Fm(p)){var v=p;break e}p=p.return}throw Error(n(160))}switch(v.tag){case 5:var w=v.stateNode;v.flags&32&&(lt(w,""),v.flags&=-33);var C=zm(o);zc(o,C,w);break;case 3:case 4:var R=v.stateNode.containerInfo,K=zm(o);qd(o,K,R);break;default:throw Error(n(161))}}catch(Q){tn(o,o.return,Q)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function jc(o,l,p){Me=o,Qd(o)}function Qd(o,l,p){for(var v=(o.mode&1)!==0;Me!==null;){var w=Me,C=w.child;if(w.tag===22&&v){var R=w.memoizedState!==null||Oc;if(!R){var K=w.alternate,Q=K!==null&&K.memoizedState!==null||Yt;K=Oc;var de=Yt;if(Oc=R,(Yt=Q)&&!de)for(Me=w;Me!==null;)R=Me,Q=R.child,R.tag===22&&R.memoizedState!==null?jm(w):Q!==null?(Q.return=R,Me=Q):jm(w);for(;C!==null;)Me=C,Qd(C),C=C.sibling;Me=w,Oc=K,Yt=de}Si(o)}else(w.subtreeFlags&8772)!==0&&C!==null?(C.return=w,Me=C):Si(o)}}function Si(o){for(;Me!==null;){var l=Me;if((l.flags&8772)!==0){var p=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:Yt||Jl(5,l);break;case 1:var v=l.stateNode;if(l.flags&4&&!Yt)if(p===null)v.componentDidMount();else{var w=l.elementType===l.type?p.memoizedProps:Jr(l.type,p.memoizedProps);v.componentDidUpdate(w,p.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var C=l.updateQueue;C!==null&&kd(l,C,v);break;case 3:var R=l.updateQueue;if(R!==null){if(p=null,l.child!==null)switch(l.child.tag){case 5:p=l.child.stateNode;break;case 1:p=l.child.stateNode}kd(l,R,p)}break;case 5:var K=l.stateNode;if(p===null&&l.flags&4){p=K;var Q=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&p.focus();break;case"img":Q.src&&(p.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var de=l.alternate;if(de!==null){var xe=de.memoizedState;if(xe!==null){var ke=xe.dehydrated;ke!==null&&Tt(ke)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Yt||l.flags&512&&Fc(l)}catch(be){tn(l,l.return,be)}}if(l===o){Me=null;break}if(p=l.sibling,p!==null){p.return=l.return,Me=p;break}Me=l.return}}function Qo(o){for(;Me!==null;){var l=Me;if(l===o){Me=null;break}var p=l.sibling;if(p!==null){p.return=l.return,Me=p;break}Me=l.return}}function jm(o){for(;Me!==null;){var l=Me;try{switch(l.tag){case 0:case 11:case 15:var p=l.return;try{Jl(4,l)}catch(Q){tn(l,p,Q)}break;case 1:var v=l.stateNode;if(typeof v.componentDidMount=="function"){var w=l.return;try{v.componentDidMount()}catch(Q){tn(l,w,Q)}}var C=l.return;try{Fc(l)}catch(Q){tn(l,C,Q)}break;case 5:var R=l.return;try{Fc(l)}catch(Q){tn(l,R,Q)}}}catch(Q){tn(l,l.return,Q)}if(l===o){Me=null;break}var K=l.sibling;if(K!==null){K.return=l.return,Me=K;break}Me=l.return}}var Bm=Math.ceil,Bc=F.ReactCurrentDispatcher,Jd=F.ReactCurrentOwner,Zr=F.ReactCurrentBatchConfig,bt=0,$n=null,mn=null,jn=0,Lr=0,Ka=hr(0),xn=0,Zl=null,Jo=0,eu=0,Vc=0,tu=null,br=null,Zd=0,zs=1/0,So=null,Uc=!1,ep=null,Zo=null,Kc=!1,es=null,ur=0,nu=0,tp=null,Wc=-1,ru=0;function cr(){return(bt&6)!==0?Ht():Wc!==-1?Wc:Wc=Ht()}function ts(o){return(o.mode&1)===0?1:(bt&2)!==0&&jn!==0?jn&-jn:xm.transition!==null?(ru===0&&(ru=Yf()),ru):(o=Et,o!==0||(o=window.event,o=o===void 0?16:Hh(o.type)),o)}function ki(o,l,p,v){if(50<nu)throw nu=0,tp=null,Error(n(185));vl(o,p,v),((bt&2)===0||o!==$n)&&(o===$n&&((bt&2)===0&&(eu|=p),xn===4&&ns(o,jn)),xr(o,v),p===1&&bt===0&&(l.mode&1)===0&&(zs=Ht()+500,dc&&Wo()))}function xr(o,l){var p=o.callbackNode;Vv(o,l);var v=xs(o,o===$n?jn:0);if(v===0)p!==null&&Mh(p),o.callbackNode=null,o.callbackPriority=0;else if(l=v&-v,o.callbackPriority!==l){if(p!=null&&Mh(p),l===1)o.tag===0?_s(Vm.bind(null,o)):vm(Vm.bind(null,o)),lc(function(){(bt&6)===0&&Wo()}),p=null;else{switch(ws(v)){case 1:p=Gf;break;case 4:p=Dh;break;case 16:p=ml;break;case 536870912:p=qf;break;default:p=ml}p=Ym(p,Hc.bind(null,o))}o.callbackPriority=l,o.callbackNode=p}}function Hc(o,l){if(Wc=-1,ru=0,(bt&6)!==0)throw Error(n(327));var p=o.callbackNode;if(Wa()&&o.callbackNode!==p)return null;var v=xs(o,o===$n?jn:0);if(v===0)return null;if((v&30)!==0||(v&o.expiredLanes)!==0||l)l=Gc(o,v);else{l=v;var w=bt;bt|=2;var C=Km();($n!==o||jn!==l)&&(So=null,zs=Ht()+500,Bs(o,l));do try{hy();break}catch(K){Um(o,K)}while(!0);ho(),Bc.current=C,bt=w,mn!==null?l=0:($n=null,jn=0,l=xn)}if(l!==0){if(l===2&&(w=zu(o),w!==0&&(v=w,l=np(o,w))),l===1)throw p=Zl,Bs(o,0),ns(o,v),xr(o,Ht()),p;if(l===6)ns(o,v);else{if(w=o.current.alternate,(v&30)===0&&!dy(w)&&(l=Gc(o,v),l===2&&(C=zu(o),C!==0&&(v=C,l=np(o,C))),l===1))throw p=Zl,Bs(o,0),ns(o,v),xr(o,Ht()),p;switch(o.finishedWork=w,o.finishedLanes=v,l){case 0:case 1:throw Error(n(345));case 2:Vs(o,br,So);break;case 3:if(ns(o,v),(v&130023424)===v&&(l=Zd+500-Ht(),10<l)){if(xs(o,0)!==0)break;if(w=o.suspendedLanes,(w&v)!==v){cr(),o.pingedLanes|=o.suspendedLanes&w;break}o.timeoutHandle=Bo(Vs.bind(null,o,br,So),l);break}Vs(o,br,So);break;case 4:if(ns(o,v),(v&4194240)===v)break;for(l=o.eventTimes,w=-1;0<v;){var R=31-mi(v);C=1<<R,R=l[R],R>w&&(w=R),v&=~C}if(v=w,v=Ht()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*Bm(v/1960))-v,10<v){o.timeoutHandle=Bo(Vs.bind(null,o,br,So),v);break}Vs(o,br,So);break;case 5:Vs(o,br,So);break;default:throw Error(n(329))}}}return xr(o,Ht()),o.callbackNode===p?Hc.bind(null,o):null}function np(o,l){var p=tu;return o.current.memoizedState.isDehydrated&&(Bs(o,l).flags|=256),o=Gc(o,l),o!==2&&(l=br,br=p,l!==null&&rp(l)),o}function rp(o){br===null?br=o:br.push.apply(br,o)}function dy(o){for(var l=o;;){if(l.flags&16384){var p=l.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var v=0;v<p.length;v++){var w=p[v],C=w.getSnapshot;w=w.value;try{if(!fe(C(),w))return!1}catch{return!1}}}if(p=l.child,l.subtreeFlags&16384&&p!==null)p.return=l,l=p;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function ns(o,l){for(l&=~Vc,l&=~eu,o.suspendedLanes|=l,o.pingedLanes&=~l,o=o.expirationTimes;0<l;){var p=31-mi(l),v=1<<p;o[p]=-1,l&=~v}}function Vm(o){if((bt&6)!==0)throw Error(n(327));Wa();var l=xs(o,0);if((l&1)===0)return xr(o,Ht()),null;var p=Gc(o,l);if(o.tag!==0&&p===2){var v=zu(o);v!==0&&(l=v,p=np(o,v))}if(p===1)throw p=Zl,Bs(o,0),ns(o,l),xr(o,Ht()),p;if(p===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=l,Vs(o,br,So),xr(o,Ht()),null}function ip(o,l){var p=bt;bt|=1;try{return o(l)}finally{bt=p,bt===0&&(zs=Ht()+500,dc&&Wo())}}function js(o){es!==null&&es.tag===0&&(bt&6)===0&&Wa();var l=bt;bt|=1;var p=Zr.transition,v=Et;try{if(Zr.transition=null,Et=1,o)return o()}finally{Et=v,Zr.transition=p,bt=l,(bt&6)===0&&Wo()}}function op(){Lr=Ka.current,zt(Ka)}function Bs(o,l){o.finishedWork=null,o.finishedLanes=0;var p=o.timeoutHandle;if(p!==-1&&(o.timeoutHandle=-1,Rl(p)),mn!==null)for(p=mn.return;p!==null;){var v=p;switch(As(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&fc();break;case 3:qo(),zt(mr),zt(Hn),Sc();break;case 5:wc(v);break;case 4:qo();break;case 13:zt(qt);break;case 19:zt(qt);break;case 10:vc(v.type._context);break;case 22:case 23:op()}p=p.return}if($n=o,mn=o=Ci(o.current,null),jn=Lr=l,xn=0,Zl=null,Vc=eu=Jo=0,br=tu=null,Ls!==null){for(l=0;l<Ls.length;l++)if(p=Ls[l],v=p.interleaved,v!==null){p.interleaved=null;var w=v.next,C=p.pending;if(C!==null){var R=C.next;C.next=w,v.next=R}p.pending=v}Ls=null}return o}function Um(o,l){do{var p=mn;try{if(ho(),zl.current=_c,Ma){for(var v=en.memoizedState;v!==null;){var w=v.queue;w!==null&&(w.pending=null),v=v.next}Ma=!1}if(Yo=0,bn=un=en=null,jl=!1,Ds=0,Jd.current=null,p===null||p.return===null){xn=1,Zl=l,mn=null;break}e:{var C=o,R=p.return,K=p,Q=l;if(l=jn,K.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var de=Q,xe=K,ke=xe.tag;if((xe.mode&1)===0&&(ke===0||ke===11||ke===15)){var be=xe.alternate;be?(xe.updateQueue=be.updateQueue,xe.memoizedState=be.memoizedState,xe.lanes=be.lanes):(xe.updateQueue=null,xe.memoizedState=null)}var Le=Am(R);if(Le!==null){Le.flags&=-257,zd(Le,R,K,C,l),Le.mode&1&&Wl(C,de,l),l=Le,Q=de;var De=l.updateQueue;if(De===null){var Oe=new Set;Oe.add(Q),l.updateQueue=Oe}else De.add(Q);break e}else{if((l&1)===0){Wl(C,de,l),sp();break e}Q=Error(n(426))}}else if(jt&&K.mode&1){var cn=Am(R);if(cn!==null){(cn.flags&65536)===0&&(cn.flags|=256),zd(cn,R,K,C,l),Ui(Fs(Q,K));break e}}C=Q=Fs(Q,K),xn!==4&&(xn=2),tu===null?tu=[C]:tu.push(C),C=R;do{switch(C.tag){case 3:C.flags|=65536,l&=-l,C.lanes|=l;var ue=Kl(C,Q,l);km(C,ue);break e;case 1:K=Q;var ne=C.type,ce=C.stateNode;if((C.flags&128)===0&&(typeof ne.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(Zo===null||!Zo.has(ce)))){C.flags|=65536,l&=-l,C.lanes|=l;var Ee=Lc(C,K,l);km(C,Ee);break e}}C=C.return}while(C!==null)}Hm(p)}catch(Ve){l=Ve,mn===p&&p!==null&&(mn=p=p.return);continue}break}while(!0)}function Km(){var o=Bc.current;return Bc.current=_c,o===null?_c:o}function sp(){(xn===0||xn===3||xn===2)&&(xn=4),$n===null||(Jo&268435455)===0&&(eu&268435455)===0||ns($n,jn)}function Gc(o,l){var p=bt;bt|=2;var v=Km();($n!==o||jn!==l)&&(So=null,Bs(o,l));do try{py();break}catch(w){Um(o,w)}while(!0);if(ho(),bt=p,Bc.current=v,mn!==null)throw Error(n(261));return $n=null,jn=0,xn}function py(){for(;mn!==null;)Wm(mn)}function hy(){for(;mn!==null&&!Nu();)Wm(mn)}function Wm(o){var l=qm(o.alternate,o,Lr);o.memoizedProps=o.pendingProps,l===null?Hm(o):mn=l,Jd.current=null}function Hm(o){var l=o;do{var p=l.alternate;if(o=l.return,(l.flags&32768)===0){if(p=uy(p,l,Lr),p!==null){mn=p;return}}else{if(p=cy(p,l),p!==null){p.flags&=32767,mn=p;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{xn=6,mn=null;return}}if(l=l.sibling,l!==null){mn=l;return}mn=l=o}while(l!==null);xn===0&&(xn=5)}function Vs(o,l,p){var v=Et,w=Zr.transition;try{Zr.transition=null,Et=1,my(o,l,p,v)}finally{Zr.transition=w,Et=v}return null}function my(o,l,p,v){do Wa();while(es!==null);if((bt&6)!==0)throw Error(n(327));p=o.finishedWork;var w=o.finishedLanes;if(p===null)return null;if(o.finishedWork=null,o.finishedLanes=0,p===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var C=p.lanes|p.childLanes;if(Bh(o,C),o===$n&&(mn=$n=null,jn=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Kc||(Kc=!0,Ym(ml,function(){return Wa(),null})),C=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||C){C=Zr.transition,Zr.transition=null;var R=Et;Et=1;var K=bt;bt|=4,Jd.current=null,fy(o,p),Xd(p,o),oy(Ts),Uu=!!$l,Ts=$l=null,o.current=p,jc(p),zv(),bt=K,Et=R,Zr.transition=C}else o.current=p;if(Kc&&(Kc=!1,es=o,ur=w),C=o.pendingLanes,C===0&&(Zo=null),Bv(p.stateNode),xr(o,Ht()),l!==null)for(v=o.onRecoverableError,p=0;p<l.length;p++)w=l[p],v(w.value,{componentStack:w.stack,digest:w.digest});if(Uc)throw Uc=!1,o=ep,ep=null,o;return(ur&1)!==0&&o.tag!==0&&Wa(),C=o.pendingLanes,(C&1)!==0?o===tp?nu++:(nu=0,tp=o):nu=0,Wo(),null}function Wa(){if(es!==null){var o=ws(ur),l=Zr.transition,p=Et;try{if(Zr.transition=null,Et=16>o?16:o,es===null)var v=!1;else{if(o=es,es=null,ur=0,(bt&6)!==0)throw Error(n(331));var w=bt;for(bt|=4,Me=o.current;Me!==null;){var C=Me,R=C.child;if((Me.flags&16)!==0){var K=C.deletions;if(K!==null){for(var Q=0;Q<K.length;Q++){var de=K[Q];for(Me=de;Me!==null;){var xe=Me;switch(xe.tag){case 0:case 11:case 15:wo(8,xe,C)}var ke=xe.child;if(ke!==null)ke.return=xe,Me=ke;else for(;Me!==null;){xe=Me;var be=xe.sibling,Le=xe.return;if(Om(xe),xe===de){Me=null;break}if(be!==null){be.return=Le,Me=be;break}Me=Le}}}var De=C.alternate;if(De!==null){var Oe=De.child;if(Oe!==null){De.child=null;do{var cn=Oe.sibling;Oe.sibling=null,Oe=cn}while(Oe!==null)}}Me=C}}if((C.subtreeFlags&2064)!==0&&R!==null)R.return=C,Me=R;else e:for(;Me!==null;){if(C=Me,(C.flags&2048)!==0)switch(C.tag){case 0:case 11:case 15:wo(9,C,C.return)}var ue=C.sibling;if(ue!==null){ue.return=C.return,Me=ue;break e}Me=C.return}}var ne=o.current;for(Me=ne;Me!==null;){R=Me;var ce=R.child;if((R.subtreeFlags&2064)!==0&&ce!==null)ce.return=R,Me=ce;else e:for(R=ne;Me!==null;){if(K=Me,(K.flags&2048)!==0)try{switch(K.tag){case 0:case 11:case 15:Jl(9,K)}}catch(Ve){tn(K,K.return,Ve)}if(K===R){Me=null;break e}var Ee=K.sibling;if(Ee!==null){Ee.return=K.return,Me=Ee;break e}Me=K.return}}if(bt=w,Wo(),Mi&&typeof Mi.onPostCommitFiberRoot=="function")try{Mi.onPostCommitFiberRoot(Ou,o)}catch{}v=!0}return v}finally{Et=p,Zr.transition=l}}return!1}function qc(o,l,p){l=Fs(p,l),l=Kl(o,l,1),o=Xr(o,l,1),l=cr(),o!==null&&(vl(o,1,l),xr(o,l))}function tn(o,l,p){if(o.tag===3)qc(o,o,p);else for(;l!==null;){if(l.tag===3){qc(l,o,p);break}else if(l.tag===1){var v=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Zo===null||!Zo.has(v))){o=Fs(p,o),o=Lc(l,o,1),l=Xr(l,o,1),o=cr(),l!==null&&(vl(l,1,o),xr(l,o));break}}l=l.return}}function gy(o,l,p){var v=o.pingCache;v!==null&&v.delete(l),l=cr(),o.pingedLanes|=o.suspendedLanes&p,$n===o&&(jn&p)===p&&(xn===4||xn===3&&(jn&130023424)===jn&&500>Ht()-Zd?Bs(o,0):Vc|=p),xr(o,l)}function Gm(o,l){l===0&&((o.mode&1)===0?l=1:(l=Fu,Fu<<=1,(Fu&130023424)===0&&(Fu=4194304)));var p=cr();o=mo(o,l),o!==null&&(vl(o,l,p),xr(o,p))}function vy(o){var l=o.memoizedState,p=0;l!==null&&(p=l.retryLane),Gm(o,p)}function yy(o,l){var p=0;switch(o.tag){case 13:var v=o.stateNode,w=o.memoizedState;w!==null&&(p=w.retryLane);break;case 19:v=o.stateNode;break;default:throw Error(n(314))}v!==null&&v.delete(l),Gm(o,p)}var qm;qm=function(o,l,p){if(o!==null)if(o.memoizedProps!==l.pendingProps||mr.current)ar=!0;else{if((o.lanes&p)===0&&(l.flags&128)===0)return ar=!1,Mm(o,l,p);ar=(o.flags&131072)!==0}else ar=!1,jt&&(l.flags&1048576)!==0&&ym(l,hc,l.index);switch(l.lanes=0,l.tag){case 2:var v=l.type;Nc(o,l),o=l.pendingProps;var w=Ia(l,Hn.current);Go(l,p),w=Ns(null,l,v,o,w,p);var C=kc();return l.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,gr(v)?(C=!0,Wr(l)):C=!1,l.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,bc(l),w.updater=Ac,l.stateNode=w,w._reactInternals=l,Fd(l,v,o,p),l=Wd(null,l,v,!0,C,p)):(l.tag=0,jt&&C&&Ll(l),On(null,l,w,p),l=l.child),l;case 16:v=l.elementType;e:{switch(Nc(o,l),o=l.pendingProps,w=v._init,v=w(v._payload),l.type=v,w=l.tag=xy(v),o=Jr(v,o),w){case 0:l=Ud(null,l,v,o,p);break e;case 1:l=Kd(null,l,v,o,p);break e;case 11:l=Rm(null,l,v,o,p);break e;case 14:l=jd(null,l,v,Jr(v.type,o),p);break e}throw Error(n(306,v,""))}return l;case 0:return v=l.type,w=l.pendingProps,w=l.elementType===v?w:Jr(v,w),Ud(o,l,v,w,p);case 1:return v=l.type,w=l.pendingProps,w=l.elementType===v?w:Jr(v,w),Kd(o,l,v,w,p);case 3:e:{if(Lm(l),o===null)throw Error(n(387));v=l.pendingProps,C=l.memoizedState,w=C.element,Sm(o,l),Ra(l,v,null,p);var R=l.memoizedState;if(v=R.element,C.isDehydrated)if(C={element:v,isDehydrated:!1,cache:R.cache,pendingSuspenseBoundaries:R.pendingSuspenseBoundaries,transitions:R.transitions},l.updateQueue.baseState=C,l.memoizedState=C,l.flags&256){w=Fs(Error(n(423)),l),l=qi(o,l,v,p,w);break e}else if(v!==w){w=Fs(Error(n(424)),l),l=qi(o,l,v,p,w);break e}else for($r=Vo(l.stateNode.containerInfo.firstChild),qn=l,jt=!0,vi=null,p=gc(l,null,v,p),l.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Vi(),v===w){l=bi(o,l,p);break e}On(o,l,v,p)}l=l.child}return l;case 5:return Ed(l),o===null&&vr(l),v=l.type,w=l.pendingProps,C=o!==null?o.memoizedProps:null,R=w.children,Al(v,w)?R=null:C!==null&&Al(v,C)&&(l.flags|=32),Vd(o,l),On(o,l,R,p),l.child;case 6:return o===null&&vr(l),null;case 13:return Dc(o,l,p);case 4:return Cd(l,l.stateNode.containerInfo),v=l.pendingProps,o===null?l.child=on(l,null,v,p):On(o,l,v,p),l.child;case 11:return v=l.type,w=l.pendingProps,w=l.elementType===v?w:Jr(v,w),Rm(o,l,v,w,p);case 7:return On(o,l,l.pendingProps,p),l.child;case 8:return On(o,l,l.pendingProps.children,p),l.child;case 12:return On(o,l,l.pendingProps.children,p),l.child;case 10:e:{if(v=l.type._context,w=l.pendingProps,C=l.memoizedProps,R=w.value,Mt(Nl,v._currentValue),v._currentValue=R,C!==null)if(fe(C.value,R)){if(C.children===w.children&&!mr.current){l=bi(o,l,p);break e}}else for(C=l.child,C!==null&&(C.return=l);C!==null;){var K=C.dependencies;if(K!==null){R=C.child;for(var Q=K.firstContext;Q!==null;){if(Q.context===v){if(C.tag===1){Q=go(-1,p&-p),Q.tag=2;var de=C.updateQueue;if(de!==null){de=de.shared;var xe=de.pending;xe===null?Q.next=Q:(Q.next=xe.next,xe.next=Q),de.pending=Q}}C.lanes|=p,Q=C.alternate,Q!==null&&(Q.lanes|=p),Nn(C.return,p,l),K.lanes|=p;break}Q=Q.next}}else if(C.tag===10)R=C.type===l.type?null:C.child;else if(C.tag===18){if(R=C.return,R===null)throw Error(n(341));R.lanes|=p,K=R.alternate,K!==null&&(K.lanes|=p),Nn(R,p,l),R=C.sibling}else R=C.child;if(R!==null)R.return=C;else for(R=C;R!==null;){if(R===l){R=null;break}if(C=R.sibling,C!==null){C.return=R.return,R=C;break}R=R.return}C=R}On(o,l,w.children,p),l=l.child}return l;case 9:return w=l.type,v=l.pendingProps.children,Go(l,p),w=qr(w),v=v(w),l.flags|=1,On(o,l,v,p),l.child;case 14:return v=l.type,w=Jr(v,l.pendingProps),w=Jr(v.type,w),jd(o,l,v,w,p);case 15:return Gi(o,l,l.type,l.pendingProps,p);case 17:return v=l.type,w=l.pendingProps,w=l.elementType===v?w:Jr(v,w),Nc(o,l),l.tag=1,gr(v)?(o=!0,Wr(l)):o=!1,Go(l,p),Os(l,v,w),Fd(l,v,w,p),Wd(null,l,v,!0,o,p);case 19:return Xo(o,l,p);case 22:return Bd(o,l,p)}throw Error(n(156,l.tag))};function Ym(o,l){return Lh(o,l)}function by(o,l,p,v){this.tag=o,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(o,l,p,v){return new by(o,l,p,v)}function Yc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function xy(o){if(typeof o=="function")return Yc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===G)return 11;if(o===le)return 14}return 2}function Ci(o,l){var p=o.alternate;return p===null?(p=ei(o.tag,l,o.key,o.mode),p.elementType=o.elementType,p.type=o.type,p.stateNode=o.stateNode,p.alternate=o,o.alternate=p):(p.pendingProps=l,p.type=o.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=o.flags&14680064,p.childLanes=o.childLanes,p.lanes=o.lanes,p.child=o.child,p.memoizedProps=o.memoizedProps,p.memoizedState=o.memoizedState,p.updateQueue=o.updateQueue,l=o.dependencies,p.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},p.sibling=o.sibling,p.index=o.index,p.ref=o.ref,p}function Xc(o,l,p,v,w,C){var R=2;if(v=o,typeof o=="function")Yc(o)&&(R=1);else if(typeof o=="string")R=5;else e:switch(o){case Y:return Us(p.children,w,C,l);case te:R=8,w|=8;break;case ie:return o=ei(12,p,l,w|2),o.elementType=ie,o.lanes=C,o;case ee:return o=ei(13,p,l,w),o.elementType=ee,o.lanes=C,o;case H:return o=ei(19,p,l,w),o.elementType=H,o.lanes=C,o;case X:return Qc(p,w,C,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case B:R=10;break e;case W:R=9;break e;case G:R=11;break e;case le:R=14;break e;case J:R=16,v=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return l=ei(R,p,l,w),l.elementType=o,l.type=v,l.lanes=C,l}function Us(o,l,p,v){return o=ei(7,o,v,l),o.lanes=p,o}function Qc(o,l,p,v){return o=ei(22,o,v,l),o.elementType=X,o.lanes=p,o.stateNode={isHidden:!1},o}function ap(o,l,p){return o=ei(6,o,null,l),o.lanes=p,o}function lp(o,l,p){return l=ei(4,o.children!==null?o.children:[],o.key,l),l.lanes=p,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function wy(o,l,p,v,w){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=v,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function up(o,l,p,v,w,C,R,K,Q){return o=new wy(o,l,p,K,Q),l===1?(l=1,C===!0&&(l|=8)):l=0,C=ei(3,null,null,l),o.current=C,C.stateNode=o,C.memoizedState={element:v,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},bc(C),o}function Sy(o,l,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:v==null?null:""+v,children:o,containerInfo:l,implementation:p}}function Xm(o){if(!o)return Ko;o=o._reactInternals;e:{if(Xe(o)!==o||o.tag!==1)throw Error(n(170));var l=o;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(gr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(n(171))}if(o.tag===1){var p=o.type;if(gr(p))return mm(o,p,l)}return l}function Qm(o,l,p,v,w,C,R,K,Q){return o=up(p,v,!0,o,w,C,R,K,Q),o.context=Xm(null),p=o.current,v=cr(),w=ts(p),C=go(v,w),C.callback=l??null,Xr(p,C,w),o.current.lanes=w,vl(o,w,v),xr(o,v),o}function Jc(o,l,p,v){var w=l.current,C=cr(),R=ts(w);return p=Xm(p),l.context===null?l.context=p:l.pendingContext=p,l=go(C,R),l.payload={element:o},v=v===void 0?null:v,v!==null&&(l.callback=v),o=Xr(w,l,R),o!==null&&(ki(o,w,R,C),xc(o,w,R)),R}function Zc(o){return o=o.current,o.child?(o.child.tag===5,o.child.stateNode):null}function Jm(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var p=o.retryLane;o.retryLane=p!==0&&p<l?p:l}}function cp(o,l){Jm(o,l),(o=o.alternate)&&Jm(o,l)}function ky(){return null}var Zm=typeof reportError=="function"?reportError:function(o){console.error(o)};function ef(o){this._internalRoot=o}iu.prototype.render=ef.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(n(409));Jc(o,l,null,null)},iu.prototype.unmount=ef.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;js(function(){Jc(null,o,null,null)}),l[Ir]=null}};function iu(o){this._internalRoot=o}iu.prototype.unstable_scheduleHydration=function(o){if(o){var l=Qf();o={blockedOn:null,target:o,priority:l};for(var p=0;p<No.length&&l!==0&&l<No[p].priority;p++);No.splice(p,0,o),p===0&&Kh(o)}};function fp(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function tf(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function eg(){}function Cy(o,l,p,v,w){if(w){if(typeof v=="function"){var C=v;v=function(){var de=Zc(R);C.call(de)}}var R=Qm(l,v,o,0,null,!1,!1,"",eg);return o._reactRootContainer=R,o[Ir]=R.current,jo(o.nodeType===8?o.parentNode:o),js(),R}for(;w=o.lastChild;)o.removeChild(w);if(typeof v=="function"){var K=v;v=function(){var de=Zc(Q);K.call(de)}}var Q=up(o,0,!1,null,null,!1,!1,"",eg);return o._reactRootContainer=Q,o[Ir]=Q.current,jo(o.nodeType===8?o.parentNode:o),js(function(){Jc(l,Q,p,v)}),Q}function Ks(o,l,p,v,w){var C=p._reactRootContainer;if(C){var R=C;if(typeof w=="function"){var K=w;w=function(){var Q=Zc(R);K.call(Q)}}Jc(l,R,o,w)}else R=Cy(p,l,o,w,v);return Zc(R)}Xf=function(o){switch(o.tag){case 3:var l=o.stateNode;if(l.current.memoizedState.isDehydrated){var p=fa(l.pendingLanes);p!==0&&(yl(l,p|1),xr(l,Ht()),(bt&6)===0&&(zs=Ht()+500,Wo()))}break;case 13:js(function(){var v=mo(o,1);if(v!==null){var w=cr();ki(v,o,1,w)}}),cp(o,1)}},ju=function(o){if(o.tag===13){var l=mo(o,134217728);if(l!==null){var p=cr();ki(l,o,134217728,p)}cp(o,134217728)}},Vh=function(o){if(o.tag===13){var l=ts(o),p=mo(o,l);if(p!==null){var v=cr();ki(p,o,l,v)}cp(o,l)}},Qf=function(){return Et},Jf=function(o,l){var p=Et;try{return Et=o,l()}finally{Et=p}},ms=function(o,l,p){switch(l){case"input":if(it(o,p),l=p.name,p.type==="radio"&&l!=null){for(p=o;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<p.length;l++){var v=p[l];if(v!==o&&v.form===o.form){var w=cc(v);if(!w)throw Error(n(90));Ie(v),it(v,w)}}}break;case"textarea":Er(o,p);break;case"select":l=p.value,l!=null&&_t(o,!!p.multiple,l,!1)}},Vr=ip,fl=js;var Ey={usingClientEntryPoint:!1,Events:[Wn,ot,cc,Du,gs,ip]},ou={findFiberByHostInstance:Fi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Py={bundleType:ou.bundleType,version:ou.version,rendererPackageName:ou.rendererPackageName,rendererConfig:ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Ah(o),o===null?null:o.stateNode},findFiberByHostInstance:ou.findFiberByHostInstance||ky,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nf.isDisabled&&nf.supportsFiber)try{Ou=nf.inject(Py),Mi=nf}catch{}}return ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ey,ii.createPortal=function(o,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fp(l))throw Error(n(200));return Sy(o,l,null,p)},ii.createRoot=function(o,l){if(!fp(o))throw Error(n(299));var p=!1,v="",w=Zm;return l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),l=up(o,1,!1,null,null,p,!1,v,w),o[Ir]=l.current,jo(o.nodeType===8?o.parentNode:o),new ef(l)},ii.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=Ah(l),o=o===null?null:o.stateNode,o},ii.flushSync=function(o){return js(o)},ii.hydrate=function(o,l,p){if(!tf(l))throw Error(n(200));return Ks(null,o,l,!0,p)},ii.hydrateRoot=function(o,l,p){if(!fp(o))throw Error(n(405));var v=p!=null&&p.hydratedSources||null,w=!1,C="",R=Zm;if(p!=null&&(p.unstable_strictMode===!0&&(w=!0),p.identifierPrefix!==void 0&&(C=p.identifierPrefix),p.onRecoverableError!==void 0&&(R=p.onRecoverableError)),l=Qm(l,null,o,1,p??null,w,!1,C,R),o[Ir]=l.current,jo(o),v)for(o=0;o<v.length;o++)p=v[o],w=p._getVersion,w=w(p._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[p,w]:l.mutableSourceEagerHydrationData.push(p,w);return new iu(l)},ii.render=function(o,l,p){if(!tf(l))throw Error(n(200));return Ks(null,o,l,!1,p)},ii.unmountComponentAtNode=function(o){if(!tf(o))throw Error(n(40));return o._reactRootContainer?(js(function(){Ks(null,null,o,!1,function(){o._reactRootContainer=null,o[Ir]=null})}),!0):!1},ii.unstable_batchedUpdates=ip,ii.unstable_renderSubtreeIntoContainer=function(o,l,p,v){if(!tf(p))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return Ks(o,l,p,!1,v)},ii.version="18.3.1-next-f1338f8080-20240426",ii}var d1;function mE(){if(d1)return By.exports;d1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),By.exports=fL(),By.exports}var p1;function dL(){if(p1)return og;p1=1;var e=mE();return og.createRoot=e.createRoot,og.hydrateRoot=e.hydrateRoot,og}var pL=dL();function pv(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=S.createContext(void 0);i.displayName=r;function s(){var a;const c=S.useContext(i);if(!c&&t){const d=new Error(n);throw d.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,d,s),d}return c}return[i.Provider,s,i]}function hL(e){return{UNSAFE_getDOMNode(){return e.current}}}function $i(e){const t=S.useRef(null);return S.useImperativeHandle(e,()=>t.current),t}function ox(e){return Array.isArray(e)}function mL(e){return ox(e)&&e.length===0}function sx(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!ox(e)}function gL(e){return sx(e)&&Object.keys(e).length===0}function vL(e){return ox(e)?mL(e):sx(e)?gL(e):e==null||e===""}function yL(e){return typeof e=="function"}var Ae=e=>e?"true":void 0;function gE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=gE(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Bt(...e){for(var t=0,n,r,i="";t<e.length;)(n=e[t++])&&(r=gE(n))&&(i&&(i+=" "),i+=r);return i}var KG=(e,t)=>sx(e)?e instanceof Array?[...e]:e[t]:e,vE=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t},bL=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function h1(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function xL(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function WG(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function ds(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function wL(e,t,n){return Math.min(Math.max(e,t),n)}function SL(e,t=100){return Math.min(Math.max(e,0),t)}var m1={};function kL(e,t,...n){const i=`[Hero UI] : ${e}`;typeof console>"u"||m1[i]||(m1[i]=!0)}function tl(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var g1=new Map;function CL(e,t){if(e===t)return e;let n=g1.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=g1.get(t);return r?(r.forEach(i=>i.current=e),e):t}function nn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let s=t[i],a=r[i];typeof s=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=tl(s,a):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[i]=Bt(s,a):i==="id"&&s&&a?t.id=CL(s,a):t[i]=a!==void 0?a:s}}return t}function yE(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const s=v1(i,t);return n||(n=typeof s=="function"),s});if(n)return()=>{r.forEach((i,s)=>{typeof i=="function"?i?.():v1(e[s],null)})}}}function v1(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function EL(e,t){if(e!=null){if(yL(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function bE(...e){return t=>{e.forEach(n=>EL(n,t))}}function PL(){const e=()=>()=>{};return S.useSyncExternalStore(e,()=>!0,()=>!1)}var TL=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),_L=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),y1=/^(data-.*)$/,IL=/^(aria-.*)$/,sg=/^(on[A-Z].*)$/;function Ef(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:i,omitPropNames:s,omitEventNames:a,omitDataProps:c,omitEventProps:d}=t,h={};if(!r)return e;for(const m in e)s?.has(m)||a?.has(m)&&sg.test(m)||sg.test(m)&&!_L.has(m)||c&&y1.test(m)||d&&sg.test(m)||(Object.prototype.hasOwnProperty.call(e,m)&&(TL.has(m)||n&&IL.test(m)||i?.has(m)||y1.test(m))||sg.test(m))&&(h[m]=e[m]);return h}var[$L,ci]=pv({name:"ProviderContext",strict:!1});const AL=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),RL=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function xE(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return AL.has(n.script)}let t=e.split("-")[0];return RL.has(t)}const wE={prefix:String(Math.round(Math.random()*1e10)),current:0},SE=He.createContext(wE),LL=He.createContext(!1);let Ky=new WeakMap;function ML(e=!1){let t=S.useContext(SE),n=S.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let a=Ky.get(s);a==null?Ky.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,Ky.delete(s))}n.current=++t.current}return n.current}function DL(e){let t=S.useContext(SE),n=ML(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function NL(e){let t=He.useId(),[n]=S.useState(ph()),r=n?"react-aria":`react-aria${wE.prefix}`;return e||`${r}-${t}`}const OL=typeof He.useId=="function"?NL:DL;function FL(){return!1}function zL(){return!0}function jL(e){return()=>{}}function ph(){return typeof He.useSyncExternalStore=="function"?He.useSyncExternalStore(jL,FL,zL):S.useContext(LL)}const BL=Symbol.for("react-aria.i18n.locale");function kE(){let e=typeof window<"u"&&window[BL]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:xE(e)?"rtl":"ltr"}}let K0=kE(),_p=new Set;function b1(){K0=kE();for(let e of _p)e(K0)}function CE(){let e=ph(),[t,n]=S.useState(K0);return S.useEffect(()=>(_p.size===0&&window.addEventListener("languagechange",b1),_p.add(n),()=>{_p.delete(n),_p.size===0&&window.removeEventListener("languagechange",b1)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const EE=He.createContext(null);function VL(e){let{locale:t,children:n}=e,r=CE(),i=He.useMemo(()=>t?{locale:t,direction:xE(t)?"rtl":"ltr"}:r,[r,t]);return He.createElement(EE.Provider,{value:i},n)}function hh(){let e=CE();return S.useContext(EE)||e}const UL=Symbol.for("react-aria.i18n.locale"),KL=Symbol.for("react-aria.i18n.strings");let sf;class hv{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=WL(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[UL];if(sf===void 0){let i=window[KL];if(!i)return null;sf={};for(let s in i)sf[s]=new hv({[n]:i[s]},n)}let r=sf?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function WL(e,t,n="en-US"){if(t[e])return t[e];let r=HL(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function HL(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const x1=new Map,w1=new Map;class GL{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+r,a=x1.get(s);a||(a=new Intl.PluralRules(this.locale,{type:r}),x1.set(s,a));let c=a.select(t);return i=n[c]||n.other,typeof i=="function"?i():i}number(t){let n=w1.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),w1.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const S1=new WeakMap;function qL(e){let t=S1.get(e);return t||(t=new hv(e),S1.set(e,t)),t}function YL(e,t){return t&&hv.getGlobalDictionaryForPackage(t)||qL(e)}function XL(e,t){let{locale:n}=hh(),r=YL(e,t);return S.useMemo(()=>new GL(n,r),[n,r])}function QL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function JL(e,t,n){QL(e,t),t.set(e,n)}const sn=typeof document<"u"?He.useLayoutEffect:()=>{};function Bn(e){const t=S.useRef(null);return sn(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function ZL(e){let[t,n]=S.useState(e),r=S.useRef(null),i=Bn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});sn(()=>{r.current&&i()});let s=Bn(a=>{r.current=a(t),i()});return[t,s]}let eM=!!(typeof window<"u"&&window.document&&window.document.createElement),xf=new Map,Ip;typeof FinalizationRegistry<"u"&&(Ip=new FinalizationRegistry(e=>{xf.delete(e)}));function Pf(e){let[t,n]=S.useState(e),r=S.useRef(null),i=OL(t),s=S.useRef(null);if(Ip&&Ip.register(s,i),eM){const a=xf.get(i);a&&!a.includes(r)?a.push(r):xf.set(i,[r])}return sn(()=>{let a=i;return()=>{Ip&&Ip.unregister(s),xf.delete(a)}},[i]),S.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),i}function tM(e,t){if(e===t)return e;let n=xf.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=xf.get(t);return r?(r.forEach(i=>i.current=e),e):t}function W0(e=[]){let t=Pf(),[n,r]=ZL(t),i=S.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return sn(i,[t,i,...e]),n}function Tf(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Dt=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},no=e=>e&&"window"in e&&e.window===e?e:Dt(e).defaultView||window;function nM(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function rM(e){return nM(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let iM=!1,oM=!1;function HG(){return iM}function mv(){return oM}function ai(e,t){if(!mv())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:rM(n)?n=n.host:n=n.parentNode}return!1}const zr=(e=document)=>{var t;if(!mv())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function En(e){return mv()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class sM{get currentNode(){return this._currentNode}set currentNode(t){if(!ai(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=r,c=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(c),c.currentNode=i,this._currentSetFor.add(c),r=i=a.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ai(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const d=a.shadowRoot;if(d){const h=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(h),NodeFilter.FILTER_ACCEPT}else{var c;if(typeof this.filter=="function")return this.filter(a);if(!((c=this.filter)===null||c===void 0)&&c.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function aM(e,t,n,r){return mv()?new sM(e,t,n,r):e.createTreeWalker(t,n,r)}function PE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=PE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lM(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=PE(e))&&(r&&(r+=" "),r+=t);return r}function Tn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let s=t[i],a=r[i];typeof s=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Tf(s,a):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[i]=lM(s,a):i==="id"&&s&&a?t.id=tM(s,a):t[i]=a!==void 0?a:s}}return t}const uM=new Set(["id"]),cM=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fM=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),dM=/^(data-.*)$/;function Au(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(uM.has(a)||n&&cM.has(a)||r&&fM.has(a)||i?.has(a)||dM.test(a))&&(s[a]=e[a]);return s}function nl(e){if(pM())e.focus({preventScroll:!0});else{let t=hM(e);e.focus(),mM(t)}}let ag=null;function pM(){if(ag==null){ag=!1;try{document.createElement("div").focus({get preventScroll(){return ag=!0,!0}})}catch{}}return ag}function hM(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function mM(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function gv(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function ax(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ia(e){let t=null;return()=>(t==null&&(t=e()),t)}const Su=ia(function(){return ax(/^Mac/i)}),gM=ia(function(){return ax(/^iPhone/i)}),TE=ia(function(){return ax(/^iPad/i)||Su()&&navigator.maxTouchPoints>1}),vv=ia(function(){return gM()||TE()}),vM=ia(function(){return Su()||vv()}),_E=ia(function(){return gv(/AppleWebKit/i)&&!IE()}),IE=ia(function(){return gv(/Chrome/i)}),lx=ia(function(){return gv(/Android/i)}),yM=ia(function(){return gv(/Firefox/i)}),$E=S.createContext({isNative:!0,open:wM,useHref:e=>e});function bM(e){let{children:t,navigate:n,useHref:r}=e,i=S.useMemo(()=>({isNative:!1,open:(s,a,c,d)=>{AE(s,h=>{xM(h,a)?n(c,d):ku(h,a)})},useHref:r||(s=>s)}),[n,r]);return He.createElement($E.Provider,{value:i},t)}function ux(){return S.useContext($E)}function xM(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function ku(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:a,altKey:c,shiftKey:d}=t;yM()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Su()?s=!0:a=!0);let h=_E()&&Su()&&!TE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:c,shiftKey:d,bubbles:!0,cancelable:!0});ku.isOpening=n,nl(e),e.dispatchEvent(h),ku.isOpening=!1}ku.isOpening=!1;function AE(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function wM(e,t){AE(e,n=>ku(n,t))}function GG(e){let t=ux();var n;const r=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function qG(e){let t=ux();var n;const r=t.useHref((n=e?.href)!==null&&n!==void 0?n:"");return{href:e?.href?r:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let Xa=new Map,H0=new Set;function k1(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Xa.get(r.target);i||(i=new Set,Xa.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Xa.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Xa.delete(r.target)),Xa.size===0)){for(let s of H0)s();H0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?k1():document.addEventListener("DOMContentLoaded",k1));function SM(){for(const[e]of Xa)"isConnected"in e&&!e.isConnected&&Xa.delete(e)}function RE(e){requestAnimationFrame(()=>{SM(),Xa.size===0?e():H0.add(e)})}function cx(){let e=S.useRef(new Map),t=S.useCallback((i,s,a,c)=>{let d=c?.once?(...h)=>{e.current.delete(a),a(...h)}:a;e.current.set(a,{type:s,eventTarget:i,fn:d,options:c}),i.addEventListener(s,d,c)},[]),n=S.useCallback((i,s,a,c)=>{var d;let h=((d=e.current.get(a))===null||d===void 0?void 0:d.fn)||a;i.removeEventListener(s,h,c),e.current.delete(a)},[]),r=S.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return S.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function LE(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Pf(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function C1(e,t){const n=S.useRef(!0),r=S.useRef(null);sn(()=>(n.current=!0,()=>{n.current=!1}),[]),sn(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function kM(){return typeof window.ResizeObserver<"u"}function E1(e){const{ref:t,box:n,onResize:r}=e;S.useEffect(()=>{let i=t?.current;if(i)if(kM()){const s=new window.ResizeObserver(a=>{a.length&&r()});return s.observe(i,{box:n}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function ME(e,t){sn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function qp(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function DE(e,t){let n=e;for(qp(n,t)&&(n=n.parentElement);n&&!qp(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function CM(e,t){const n=[];for(;e&&e!==document.documentElement;)qp(e,t)&&n.push(e),e=e.parentElement;return n}function lg(e,t,n,r){let i=Bn(n),s=n==null;S.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,s,i])}function NE(e,t){let n=P1(e,t,"left"),r=P1(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,c=e.scrollTop,{borderTopWidth:d,borderLeftWidth:h,scrollPaddingTop:m,scrollPaddingRight:g,scrollPaddingBottom:b,scrollPaddingLeft:x}=getComputedStyle(e),k=a+parseInt(h,10),P=c+parseInt(d,10),T=k+e.clientWidth,_=P+e.clientHeight,A=parseInt(m,10)||0,M=parseInt(b,10)||0,F=parseInt(g,10)||0,j=parseInt(x,10)||0;n<=a+j?a=n-parseInt(h,10)-j:n+i>T-F&&(a+=n+i-T+F),r<=P+A?c=r-parseInt(d,10)-A:r+s>_-M&&(c+=r+s-_+M),e.scrollLeft=a,e.scrollTop=c}function P1(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function T1(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let d=CM(e);for(let h of d)NE(h,e)}else{var n;let{left:d,top:h}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:m,top:g}=e.getBoundingClientRect();if(Math.abs(d-m)>1||Math.abs(h-g)>1){var r,i,s;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function OE(e){return e.mozInputSource===0&&e.isTrusted?!0:lx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function EM(e){return!lx()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function FE(e,t,n){let r=S.useRef(t),i=Bn(()=>{n&&n(r.current)});S.useEffect(()=>{var s;let a=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return a?.addEventListener("reset",i),()=>{a?.removeEventListener("reset",i)}},[e,i])}const PM="react-aria-clear-focus",TM="react-aria-focus";function hp(e){return Su()?e.metaKey:e.ctrlKey}var zE=mE();const jE=dv(zE),fx=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],_M=fx.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";fx.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const IM=fx.join(':not([hidden]):not([tabindex="-1"]),');function BE(e){return e.matches(_M)}function $M(e){return e.matches(IM)}function Ru(e,t,n){let[r,i]=S.useState(e||t),s=S.useRef(e!==void 0),a=e!==void 0;S.useEffect(()=>{s.current,s.current=a},[a]);let c=a?e:r,d=S.useCallback((h,...m)=>{let g=(b,...x)=>{n&&(Object.is(c,b)||n(b,...x)),a||(c=b)};typeof h=="function"?i((x,...k)=>{let P=h(a?c:x,...k);return g(P,...m),a?x:P}):(a||i(h),g(h,...m))},[a,c,n]);return[c,d]}function Bg(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}let Wy=new Map,G0=!1;try{G0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Vg=!1;try{Vg=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const VE={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class AM{format(t){let n="";if(!G0&&this.options.signDisplay!=null?n=LM(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Vg){var r;let{unit:i,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!i)return n;let c=(r=VE[i])===null||r===void 0?void 0:r[s];n+=c[a]||c.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!G0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Vg&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=RM(t,n),this.options=n}}function RM(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Vg){var r;let{unit:a,unitDisplay:c="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=VE[a])===null||r===void 0)&&r[c]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,c)=>a[0]<c[0]?-1:1).join():"");if(Wy.has(i))return Wy.get(i);let s=new Intl.NumberFormat(e,t);return Wy.set(i,s),s}function LM(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),s=e.format(n),a=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(n)}}function MM(e={}){let{locale:t}=hh();return S.useMemo(()=>new AM(t,e),[t,e])}let Hy=new Map;function DM(e){let{locale:t}=hh(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(Hy.has(n))return Hy.get(n);let r=new Intl.Collator(t,e);return Hy.set(n,r),r}const Yp=S.createContext({});function mh(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const dx=typeof window<"u",px=dx?S.useLayoutEffect:S.useEffect,yv=S.createContext(null);function hx(e,t){e.indexOf(t)===-1&&e.push(t)}function mx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ta=(e,t,n)=>n>t?t:n<e?e:n;let gx=()=>{};const fs={},UE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function KE(e){return typeof e=="object"&&e!==null}const WE=e=>/^0[^.\s]+$/u.test(e);function vx(e){let t;return()=>(t===void 0&&(t=e()),t)}const ro=e=>e,NM=(e,t)=>n=>t(e(n)),gh=(...e)=>e.reduce(NM),Xp=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class yx{constructor(){this.subscriptions=[]}add(t){return hx(this.subscriptions,t),()=>mx(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 s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ls=e=>e*1e3,us=e=>e/1e3;function HE(e,t){return t?e*(1e3/t):0}const GE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,OM=1e-7,FM=12;function zM(e,t,n,r,i){let s,a,c=0;do a=t+(n-t)/2,s=GE(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>OM&&++c<FM);return a}function vh(e,t,n,r){if(e===t&&n===r)return ro;const i=s=>zM(s,0,1,e,n);return s=>s===0||s===1?s:GE(i(s),t,r)}const qE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,YE=e=>t=>1-e(1-t),XE=vh(.33,1.53,.69,.99),bx=YE(XE),QE=qE(bx),JE=e=>(e*=2)<1?.5*bx(e):.5*(2-Math.pow(2,-10*(e-1))),xx=e=>1-Math.sin(Math.acos(e)),ZE=YE(xx),eP=qE(xx),jM=vh(.42,0,1,1),BM=vh(0,0,.58,1),tP=vh(.42,0,.58,1),VM=e=>Array.isArray(e)&&typeof e[0]!="number",nP=e=>Array.isArray(e)&&typeof e[0]=="number",UM={linear:ro,easeIn:jM,easeInOut:tP,easeOut:BM,circIn:xx,circInOut:eP,circOut:ZE,backIn:bx,backInOut:QE,backOut:XE,anticipate:JE},KM=e=>typeof e=="string",_1=e=>{if(nP(e)){gx(e.length===4);const[t,n,r,i]=e;return vh(t,n,r,i)}else if(KM(e))return UM[e];return e},ug=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function WM(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){a.has(m)&&(h.schedule(m),e()),m(c)}const h={schedule:(m,g=!1,b=!1)=>{const k=b&&i?n:r;return g&&a.add(m),k.has(m)||k.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),n.clear(),i=!1,s&&(s=!1,h.process(m))}};return h}const HM=40;function rP(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=ug.reduce((M,F)=>(M[F]=WM(s),M),{}),{setup:c,read:d,resolveKeyframes:h,preUpdate:m,update:g,preRender:b,render:x,postRender:k}=a,P=()=>{const M=fs.useManualTiming?i.timestamp:performance.now();n=!1,fs.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(M-i.timestamp,HM),1)),i.timestamp=M,i.isProcessing=!0,c.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),x.process(i),k.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(P))},T=()=>{n=!0,r=!0,i.isProcessing||e(P)};return{schedule:ug.reduce((M,F)=>{const j=a[F];return M[F]=($,Y=!1,te=!1)=>(n||T(),j.schedule($,Y,te)),M},{}),cancel:M=>{for(let F=0;F<ug.length;F++)a[ug[F]].cancel(M)},state:i,steps:a}}const{schedule:rn,cancel:rl,state:dr,steps:Gy}=rP(typeof requestAnimationFrame<"u"?requestAnimationFrame:ro,!0);let Ig;function GM(){Ig=void 0}const li={now:()=>(Ig===void 0&&li.set(dr.isProcessing||fs.useManualTiming?dr.timestamp:performance.now()),Ig),set:e=>{Ig=e,queueMicrotask(GM)}},iP=e=>t=>typeof t=="string"&&t.startsWith(e),wx=iP("--"),qM=iP("var(--"),Sx=e=>qM(e)?YM.test(e.split("/*")[0].trim()):!1,YM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qp={...Nf,transform:e=>ta(0,1,e)},cg={...Nf,default:1},Dp=e=>Math.round(e*1e5)/1e5,kx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XM(e){return e==null}const QM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cx=(e,t)=>n=>!!(typeof n=="string"&&QM.test(n)&&n.startsWith(e)||t&&!XM(n)&&Object.prototype.hasOwnProperty.call(n,t)),oP=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,c]=r.match(kx);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},JM=e=>ta(0,255,e),qy={...Nf,transform:e=>Math.round(JM(e))},gu={test:Cx("rgb","red"),parse:oP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qy.transform(e)+", "+qy.transform(t)+", "+qy.transform(n)+", "+Dp(Qp.transform(r))+")"};function ZM(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 q0={test:Cx("#"),parse:ZM,transform:gu.transform},yh=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ya=yh("deg"),cs=yh("%"),tt=yh("px"),eD=yh("vh"),tD=yh("vw"),I1={...cs,parse:e=>cs.parse(e)/100,transform:e=>cs.transform(e*100)},hf={test:Cx("hsl","hue"),parse:oP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+cs.transform(Dp(t))+", "+cs.transform(Dp(n))+", "+Dp(Qp.transform(r))+")"},Ln={test:e=>gu.test(e)||q0.test(e)||hf.test(e),parse:e=>gu.test(e)?gu.parse(e):hf.test(e)?hf.parse(e):q0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gu.transform(e):hf.transform(e),getAnimatableNone:e=>{const t=Ln.parse(e);return t.alpha=0,Ln.transform(t)}},nD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rD(e){return isNaN(e)&&typeof e=="string"&&(e.match(kx)?.length||0)+(e.match(nD)?.length||0)>0}const sP="number",aP="color",iD="var",oD="var(",$1="${}",sD=/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 Jp(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const c=t.replace(sD,d=>(Ln.test(d)?(r.color.push(s),i.push(aP),n.push(Ln.parse(d))):d.startsWith(oD)?(r.var.push(s),i.push(iD),n.push(d)):(r.number.push(s),i.push(sP),n.push(parseFloat(d))),++s,$1)).split($1);return{values:n,split:c,indexes:r,types:i}}function lP(e){return Jp(e).values}function uP(e){const{split:t,types:n}=Jp(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const c=n[a];c===sP?s+=Dp(i[a]):c===aP?s+=Ln.transform(i[a]):s+=i[a]}return s}}const aD=e=>typeof e=="number"?0:Ln.test(e)?Ln.getAnimatableNone(e):e;function lD(e){const t=lP(e);return uP(e)(t.map(aD))}const il={test:rD,parse:lP,createTransformer:uP,getAnimatableNone:lD};function Yy(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 uD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,d=2*n-c;i=Yy(d,c,e+1/3),s=Yy(d,c,e),a=Yy(d,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Ug(e,t){return n=>n>0?t:e}const dn=(e,t,n)=>e+(t-e)*n,Xy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},cD=[q0,gu,hf],fD=e=>cD.find(t=>t.test(e));function A1(e){const t=fD(e);if(!t)return!1;let n=t.parse(e);return t===hf&&(n=uD(n)),n}const R1=(e,t)=>{const n=A1(e),r=A1(t);if(!n||!r)return Ug(e,t);const i={...n};return s=>(i.red=Xy(n.red,r.red,s),i.green=Xy(n.green,r.green,s),i.blue=Xy(n.blue,r.blue,s),i.alpha=dn(n.alpha,r.alpha,s),gu.transform(i))},Y0=new Set(["none","hidden"]);function dD(e,t){return Y0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pD(e,t){return n=>dn(e,t,n)}function Ex(e){return typeof e=="number"?pD:typeof e=="string"?Sx(e)?Ug:Ln.test(e)?R1:gD:Array.isArray(e)?cP:typeof e=="object"?Ln.test(e)?R1:hD:Ug}function cP(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>Ex(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function hD(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ex(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function mD(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],c=e.values[a]??0;n[i]=c,r[s]++}return n}const gD=(e,t)=>{const n=il.createTransformer(t),r=Jp(e),i=Jp(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?Y0.has(e)&&!i.values.length||Y0.has(t)&&!r.values.length?dD(e,t):gh(cP(mD(r,i),i.values),n):Ug(e,t)};function fP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?dn(e,t,n):Ex(e)(e,t)}const vD=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>rn.update(t,n),stop:()=>rl(t),now:()=>dr.isProcessing?dr.timestamp:li.now()}},dP=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Kg=2e4;function Px(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Kg;)t+=n,r=e.next(t);return t>=Kg?1/0:t}function yD(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Px(r),Kg);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:us(i)}}const bD=5;function pP(e,t,n){const r=Math.max(t-bD,0);return HE(n-e(r),t-r)}const vn={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},Qy=.001;function xD({duration:e=vn.duration,bounce:t=vn.bounce,velocity:n=vn.velocity,mass:r=vn.mass}){let i,s,a=1-t;a=ta(vn.minDamping,vn.maxDamping,a),e=ta(vn.minDuration,vn.maxDuration,us(e)),a<1?(i=h=>{const m=h*a,g=m*e,b=m-n,x=X0(h,a),k=Math.exp(-g);return Qy-b/x*k},s=h=>{const g=h*a*e,b=g*n+n,x=Math.pow(a,2)*Math.pow(h,2)*e,k=Math.exp(-g),P=X0(Math.pow(h,2),a);return(-i(h)+Qy>0?-1:1)*((b-x)*k)/P}):(i=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-Qy+m*g},s=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const c=5/e,d=SD(i,s,c);if(e=ls(e),isNaN(d))return{stiffness:vn.stiffness,damping:vn.damping,duration:e};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:a*2*Math.sqrt(r*h),duration:e}}}const wD=12;function SD(e,t,n){let r=n;for(let i=1;i<wD;i++)r=r-e(r)/t(r);return r}function X0(e,t){return e*Math.sqrt(1-t*t)}const kD=["duration","bounce"],CD=["stiffness","damping","mass"];function L1(e,t){return t.some(n=>e[n]!==void 0)}function ED(e){let t={velocity:vn.velocity,stiffness:vn.stiffness,damping:vn.damping,mass:vn.mass,isResolvedFromDuration:!1,...e};if(!L1(e,CD)&&L1(e,kD))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*ta(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:vn.mass,stiffness:i,damping:s}}else{const n=xD(e);t={...t,...n,mass:vn.mass},t.isResolvedFromDuration=!0}return t}function Wg(e=vn.visualDuration,t=vn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:d,damping:h,mass:m,duration:g,velocity:b,isResolvedFromDuration:x}=ED({...n,velocity:-us(n.velocity||0)}),k=b||0,P=h/(2*Math.sqrt(d*m)),T=a-s,_=us(Math.sqrt(d/m)),A=Math.abs(T)<5;r||(r=A?vn.restSpeed.granular:vn.restSpeed.default),i||(i=A?vn.restDelta.granular:vn.restDelta.default);let M;if(P<1){const j=X0(_,P);M=$=>{const Y=Math.exp(-P*_*$);return a-Y*((k+P*_*T)/j*Math.sin(j*$)+T*Math.cos(j*$))}}else if(P===1)M=j=>a-Math.exp(-_*j)*(T+(k+_*T)*j);else{const j=_*Math.sqrt(P*P-1);M=$=>{const Y=Math.exp(-P*_*$),te=Math.min(j*$,300);return a-Y*((k+P*_*T)*Math.sinh(te)+j*T*Math.cosh(te))/j}}const F={calculatedDuration:x&&g||null,next:j=>{const $=M(j);if(x)c.done=j>=g;else{let Y=j===0?k:0;P<1&&(Y=j===0?ls(k):pP(M,j,$));const te=Math.abs(Y)<=r,ie=Math.abs(a-$)<=i;c.done=te&&ie}return c.value=c.done?a:$,c},toString:()=>{const j=Math.min(Px(F),Kg),$=dP(Y=>F.next(j*Y).value,j,30);return j+"ms "+$},toTransition:()=>{}};return F}Wg.applyToOptions=e=>{const t=yD(e,100,Wg);return e.ease=t.ease,e.duration=ls(t.duration),e.type="keyframes",e};function Q0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:c,max:d,restDelta:h=.5,restSpeed:m}){const g=e[0],b={done:!1,value:g},x=te=>c!==void 0&&te<c||d!==void 0&&te>d,k=te=>c===void 0?d:d===void 0||Math.abs(c-te)<Math.abs(d-te)?c:d;let P=n*t;const T=g+P,_=a===void 0?T:a(T);_!==T&&(P=_-g);const A=te=>-P*Math.exp(-te/r),M=te=>_+A(te),F=te=>{const ie=A(te),B=M(te);b.done=Math.abs(ie)<=h,b.value=b.done?_:B};let j,$;const Y=te=>{x(b.value)&&(j=te,$=Wg({keyframes:[b.value,k(b.value)],velocity:pP(M,te,b.value),damping:i,stiffness:s,restDelta:h,restSpeed:m}))};return Y(0),{calculatedDuration:null,next:te=>{let ie=!1;return!$&&j===void 0&&(ie=!0,F(te),Y(te)),j!==void 0&&te>=j?$.next(te-j):(!ie&&F(te),b)}}}function PD(e,t,n){const r=[],i=n||fs.mix||fP,s=e.length-1;for(let a=0;a<s;a++){let c=i(e[a],e[a+1]);if(t){const d=Array.isArray(t)?t[a]||ro:t;c=gh(d,c)}r.push(c)}return r}function TD(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(gx(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=PD(t,r,i),d=c.length,h=m=>{if(a&&m<e[0])return t[0];let g=0;if(d>1)for(;g<e.length-2&&!(m<e[g+1]);g++);const b=Xp(e[g],e[g+1],m);return c[g](b)};return n?m=>h(ta(e[0],e[s-1],m)):h}function _D(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Xp(0,t,r);e.push(dn(n,1,i))}}function ID(e){const t=[0];return _D(t,e.length-1),t}function $D(e,t){return e.map(n=>n*t)}function AD(e,t){return e.map(()=>t||tP).splice(0,e.length-1)}function Np({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=VM(r)?r.map(_1):_1(r),s={done:!1,value:t[0]},a=$D(n&&n.length===t.length?n:ID(t),e),c=TD(a,t,{ease:Array.isArray(i)?i:AD(t,i)});return{calculatedDuration:e,next:d=>(s.value=c(d),s.done=d>=e,s)}}const RD=e=>e!==null;function Tx(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(RD),c=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!c||r===void 0?s[c]:r}const LD={decay:Q0,inertia:Q0,tween:Np,keyframes:Np,spring:Wg};function hP(e){typeof e.type=="string"&&(e.type=LD[e.type])}class _x{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const MD=e=>e/100;class Ix extends _x{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==li.now()&&this.tick(li.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;hP(t);const{type:n=Np,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:c}=t;const d=n||Np;d!==Np&&typeof c[0]!="number"&&(this.mixKeyframes=gh(MD,fP(c[0],c[1])),c=[0,100]);const h=d({...t,keyframes:c});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...c].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=Px(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:c,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:m,repeat:g,repeatType:b,repeatDelay:x,type:k,onUpdate:P,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const _=this.currentTime-h*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?_<0:_>i;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,F=r;if(g){const te=Math.min(this.currentTime,i)/c;let ie=Math.floor(te),B=te%1;!B&&te>=1&&(B=1),B===1&&ie--,ie=Math.min(ie,g+1),ie%2&&(b==="reverse"?(B=1-B,x&&(B-=x/c)):b==="mirror"&&(F=a)),M=ta(0,1,B)*c}const j=A?{done:!1,value:m[0]}:F.next(M);s&&(j.value=s(j.value));let{done:$}=j;!A&&d!==null&&($=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return Y&&k!==Q0&&(j.value=Tx(m,this.options,T,this.speed)),P&&P(j.value),Y&&this.finish(),j}then(t,n){return this.finished.then(t,n)}get duration(){return us(this.calculatedDuration)}get time(){return us(this.currentTime)}set time(t){t=ls(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(li.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=us(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=vD,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(li.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function DD(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const vu=e=>e*180/Math.PI,J0=e=>{const t=vu(Math.atan2(e[1],e[0]));return Z0(t)},ND={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:J0,rotateZ:J0,skewX:e=>vu(Math.atan(e[1])),skewY:e=>vu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Z0=e=>(e=e%360,e<0&&(e+=360),e),M1=J0,D1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),N1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),OD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:D1,scaleY:N1,scale:e=>(D1(e)+N1(e))/2,rotateX:e=>Z0(vu(Math.atan2(e[6],e[5]))),rotateY:e=>Z0(vu(Math.atan2(-e[2],e[0]))),rotateZ:M1,rotate:M1,skewX:e=>vu(Math.atan(e[4])),skewY:e=>vu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eb(e){return e.includes("scale")?1:0}function tb(e,t){if(!e||e==="none")return eb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=OD,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ND,i=c}if(!i)return eb(t);const s=r[t],a=i[1].split(",").map(zD);return typeof s=="function"?s(a):a[s]}const FD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return tb(n,t)};function zD(e){return parseFloat(e.trim())}const Of=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lu=new Set(Of),O1=e=>e===Nf||e===tt,jD=new Set(["x","y","z"]),BD=Of.filter(e=>!jD.has(e));function VD(e){const t=[];return BD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const xu={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:(e,{transform:t})=>tb(t,"x"),y:(e,{transform:t})=>tb(t,"y")};xu.translateX=xu.x;xu.translateY=xu.y;const wu=new Set;let nb=!1,rb=!1,ib=!1;function mP(){if(rb){const e=Array.from(wu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=VD(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(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}rb=!1,nb=!1,wu.forEach(e=>e.complete(ib)),wu.clear()}function gP(){wu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rb=!0)})}function UD(){ib=!0,gP(),mP(),ib=!1}class $x{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(wu.add(this),nb||(nb=!0,rn.read(gP),rn.resolveKeyframes(mP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const c=r.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}DD(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wu.delete(this)}cancel(){this.state==="scheduled"&&(wu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const KD=e=>e.startsWith("--");function WD(e,t,n){KD(t)?e.style.setProperty(t,n):e.style[t]=n}const HD=vx(()=>window.ScrollTimeline!==void 0),GD={};function qD(e,t){const n=vx(e);return()=>GD[t]??n()}const vP=qD(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$p=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,F1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$p([0,.65,.55,1]),circOut:$p([.55,0,1,.45]),backIn:$p([.31,.01,.66,-.59]),backOut:$p([.33,1.53,.69,.99])};function yP(e,t){if(e)return typeof e=="function"?vP()?dP(e,t):"ease-out":nP(e)?$p(e):Array.isArray(e)?e.map(n=>yP(n,t)||F1.easeOut):F1[e]}function YD(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:c="easeOut",times:d}={},h=void 0){const m={[t]:n};d&&(m.offset=d);const g=yP(c,i);Array.isArray(g)&&(m.easing=g);const b={delay:r,duration:i,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),e.animate(m,b)}function bP(e){return typeof e=="function"&&"applyToOptions"in e}function XD({type:e,...t}){return bP(e)&&vP()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class QD extends _x{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:c,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,gx(typeof t.type!="string");const h=XD(t);this.animation=YD(n,r,i,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=Tx(i,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):WD(n,r,m),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return us(Number(t))}get time(){return us(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ls(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&HD()?(this.animation.timeline=t,ro):n(this)}}const xP={anticipate:JE,backInOut:QE,circInOut:eP};function JD(e){return e in xP}function ZD(e){typeof e.ease=="string"&&JD(e.ease)&&(e.ease=xP[e.ease])}const z1=10;class e3 extends QD{constructor(t){ZD(t),hP(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new Ix({...a,autoplay:!1}),d=ls(this.finishedTime??this.time);n.setWithVelocity(c.sample(d-z1).value,c.sample(d).value,z1),c.stop()}}const j1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(il.test(e)||e==="0")&&!e.startsWith("url("));function t3(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function n3(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=j1(i,t),c=j1(s,t);return!a||!c?!1:t3(e)||(n==="spring"||bP(n))&&r}const r3=new Set(["opacity","clipPath","filter","transform"]),i3=vx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function o3(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=t.owner.getProps();return i3()&&n&&r3.has(n)&&(n!=="transform"||!h)&&!d&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const s3=40;class a3 extends _x{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:c,name:d,motionValue:h,element:m,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=li.now();const b={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:d,motionValue:h,element:m,...g},x=m?.KeyframeResolver||$x;this.keyframeResolver=new x(c,(k,P,T)=>this.onKeyframesResolved(k,P,b,!T),d,h,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:c,delay:d,isHandoff:h,onUpdate:m}=r;this.resolvedAt=li.now(),n3(t,s,a,c)||((fs.instantAnimations||!d)&&m?.(Tx(t,r,n)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const b={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>s3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=!h&&o3(b)?new e3({...b,element:b.motionValue.owner.current}):new Ix(b);x.finished.then(()=>this.notifyFinished()).catch(ro),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),UD()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const l3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function u3(e){const t=l3.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function wP(e,t,n=1){const[r,i]=u3(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return UE(a)?parseFloat(a):a}return Sx(i)?wP(i,t,n+1):i}function Ax(e,t){return e?.[t]??e?.default??e}const SP=new Set(["width","height","top","left","right","bottom",...Of]),c3={test:e=>e==="auto",parse:e=>e},kP=e=>t=>t.test(e),CP=[Nf,tt,cs,Ya,tD,eD,c3],B1=e=>CP.find(kP(e));function f3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WE(e):!0}const d3=new Set(["brightness","contrast","saturate","opacity"]);function p3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(kx)||[];if(!r)return e;const i=n.replace(r,"");let s=d3.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const h3=/\b([a-z-]*)\(.*?\)/gu,ob={...il,getAnimatableNone:e=>{const t=e.match(h3);return t?t.map(p3).join(" "):e}},V1={...Nf,transform:Math.round},m3={rotate:Ya,rotateX:Ya,rotateY:Ya,rotateZ:Ya,scale:cg,scaleX:cg,scaleY:cg,scaleZ:cg,skew:Ya,skewX:Ya,skewY:Ya,distance:tt,translateX:tt,translateY:tt,translateZ:tt,x:tt,y:tt,z:tt,perspective:tt,transformPerspective:tt,opacity:Qp,originX:I1,originY:I1,originZ:tt},Rx={borderWidth:tt,borderTopWidth:tt,borderRightWidth:tt,borderBottomWidth:tt,borderLeftWidth:tt,borderRadius:tt,radius:tt,borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomRightRadius:tt,borderBottomLeftRadius:tt,width:tt,maxWidth:tt,height:tt,maxHeight:tt,top:tt,right:tt,bottom:tt,left:tt,padding:tt,paddingTop:tt,paddingRight:tt,paddingBottom:tt,paddingLeft:tt,margin:tt,marginTop:tt,marginRight:tt,marginBottom:tt,marginLeft:tt,backgroundPositionX:tt,backgroundPositionY:tt,...m3,zIndex:V1,fillOpacity:Qp,strokeOpacity:Qp,numOctaves:V1},g3={...Rx,color:Ln,backgroundColor:Ln,outlineColor:Ln,fill:Ln,stroke:Ln,borderColor:Ln,borderTopColor:Ln,borderRightColor:Ln,borderBottomColor:Ln,borderLeftColor:Ln,filter:ob,WebkitFilter:ob},EP=e=>g3[e];function PP(e,t){let n=EP(e);return n!==ob&&(n=il),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const v3=new Set(["auto","none","0"]);function y3(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!v3.has(s)&&Jp(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=PP(n,i)}class b3 extends $x{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),Sx(h))){const m=wP(h,n.current);m!==void 0&&(t[d]=m),d===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!SP.has(r)||t.length!==2)return;const[i,s]=t,a=B1(i),c=B1(s);if(a!==c)if(O1(a)&&O1(c))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else xu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||f3(t[i]))&&r.push(i);r.length&&y3(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=xu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,d])=>{t.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const x3=new Set(["opacity","clipPath","filter","transform"]);function w3(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const TP=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function _P(e){return KE(e)&&"offsetHeight"in e}const U1=30,S3=e=>!isNaN(parseFloat(e));class IP{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=li.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty();i&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=li.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=S3(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 yx);const r=this.events[t].add(n);return t==="change"?()=>{r(),rn.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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=li.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>U1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,U1);return HE(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _f(e,t){return new IP(e,t)}const{schedule:Lx}=rP(queueMicrotask,!1),Eo={x:!1,y:!1};function $P(){return Eo.x||Eo.y}function k3(e){return e==="x"||e==="y"?Eo[e]?null:(Eo[e]=!0,()=>{Eo[e]=!1}):Eo.x||Eo.y?null:(Eo.x=Eo.y=!0,()=>{Eo.x=Eo.y=!1})}function AP(e,t){const n=w3(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function K1(e){return!(e.pointerType==="touch"||$P())}function C3(e,t,n={}){const[r,i,s]=AP(e,n),a=c=>{if(!K1(c))return;const{target:d}=c,h=t(d,c);if(typeof h!="function"||!d)return;const m=g=>{K1(g)&&(h(g),d.removeEventListener("pointerleave",m))};d.addEventListener("pointerleave",m,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),s}const RP=(e,t)=>t?e===t?!0:RP(e,t.parentElement):!1,Mx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,E3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function P3(e){return E3.has(e.tagName)||e.tabIndex!==-1}const $g=new WeakSet;function W1(e){return t=>{t.key==="Enter"&&e(t)}}function Jy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const T3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=W1(()=>{if($g.has(n))return;Jy(n,"down");const i=W1(()=>{Jy(n,"up")}),s=()=>Jy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function H1(e){return Mx(e)&&!$P()}function _3(e,t,n={}){const[r,i,s]=AP(e,n),a=c=>{const d=c.currentTarget;if(!H1(c))return;$g.add(d);const h=t(d,c),m=(x,k)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),$g.has(d)&&$g.delete(d),H1(x)&&typeof h=="function"&&h(x,{success:k})},g=x=>{m(x,d===window||d===document||n.useGlobalTarget||RP(d,x.target))},b=x=>{m(x,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",b,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),_P(c)&&(c.addEventListener("focus",h=>T3(h,i)),!P3(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function LP(e){return KE(e)&&"ownerSVGElement"in e}function I3(e){return LP(e)&&e.tagName==="svg"}const Sr=e=>!!(e&&e.getVelocity),$3=[...CP,Ln,il],A3=e=>$3.find(kP(e)),Zp=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class R3 extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=_P(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function L3({children:e,isPresent:t,anchorX:n,root:r}){const i=S.useId(),s=S.useRef(null),a=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=S.useContext(Zp);return S.useInsertionEffect(()=>{const{width:d,height:h,top:m,left:g,right:b}=a.current;if(t||!s.current||!d||!h)return;const x=n==="left"?`left: ${g}`:`right: ${b}`;s.current.dataset.motionPopId=i;const k=document.createElement("style");c&&(k.nonce=c);const P=r??document.head;return P.appendChild(k),k.sheet&&k.sheet.insertRule(`
10
+ [data-motion-pop-id="${i}"] {
11
+ position: absolute !important;
12
+ width: ${d}px !important;
13
+ height: ${h}px !important;
14
+ ${x}px !important;
15
+ top: ${m}px !important;
16
+ }
17
+ `),()=>{P.removeChild(k),P.contains(k)&&P.removeChild(k)}},[t]),L.jsx(R3,{isPresent:t,childRef:s,sizeRef:a,children:S.cloneElement(e,{ref:s})})}const M3=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a,anchorX:c,root:d})=>{const h=mh(D3),m=S.useId();let g=!0,b=S.useMemo(()=>(g=!1,{id:m,initial:t,isPresent:n,custom:i,onExitComplete:x=>{h.set(x,!0);for(const k of h.values())if(!k)return;r&&r()},register:x=>(h.set(x,!1),()=>h.delete(x))}),[n,h,r]);return s&&g&&(b={...b}),S.useMemo(()=>{h.forEach((x,k)=>h.set(k,!1))},[n]),S.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),a==="popLayout"&&(e=L.jsx(L3,{isPresent:n,anchorX:c,root:d,children:e})),L.jsx(yv.Provider,{value:b,children:e})};function D3(){return new Map}function MP(e=!0){const t=S.useContext(yv);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=S.useId();S.useEffect(()=>{if(e)return i(s)},[e]);const a=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const fg=e=>e.key||"";function G1(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const sl=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:c="left",root:d})=>{const[h,m]=MP(a),g=S.useMemo(()=>G1(e),[e]),b=a&&!h?[]:g.map(fg),x=S.useRef(!0),k=S.useRef(g),P=mh(()=>new Map),[T,_]=S.useState(g),[A,M]=S.useState(g);px(()=>{x.current=!1,k.current=g;for(let $=0;$<A.length;$++){const Y=fg(A[$]);b.includes(Y)?P.delete(Y):P.get(Y)!==!0&&P.set(Y,!1)}},[A,b.length,b.join("-")]);const F=[];if(g!==T){let $=[...g];for(let Y=0;Y<A.length;Y++){const te=A[Y],ie=fg(te);b.includes(ie)||($.splice(Y,0,te),F.push(te))}return s==="wait"&&F.length&&($=F),M(G1($)),_(g),null}const{forceRender:j}=S.useContext(Yp);return L.jsx(L.Fragment,{children:A.map($=>{const Y=fg($),te=a&&!h?!1:g===A||b.includes(Y),ie=()=>{if(P.has(Y))P.set(Y,!0);else return;let B=!0;P.forEach(W=>{W||(B=!1)}),B&&(j?.(),M(k.current),a&&m?.(),r&&r())};return L.jsx(M3,{isPresent:te,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:d,onExitComplete:te?void 0:ie,anchorX:c,children:$},Y)})})},N3=S.createContext(null);function O3(){const e=S.useRef(!1);return px(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function F3(){const e=O3(),[t,n]=S.useState(0),r=S.useCallback(()=>{e.current&&n(t+1)},[t]);return[S.useCallback(()=>rn.postRender(r),[r]),t]}const z3=e=>!e.isLayoutDirty&&e.willUpdate(!1);function q1(){const e=new Set,t=new WeakMap,n=()=>e.forEach(z3);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}const DP=e=>e===!0,j3=e=>DP(e===!0)||e==="id",B3=({children:e,id:t,inherit:n=!0})=>{const r=S.useContext(Yp),i=S.useContext(N3),[s,a]=F3(),c=S.useRef(null),d=r.id||i;c.current===null&&(j3(n)&&d&&(t=t?d+"-"+t:d),c.current={id:t,group:DP(n)&&r.group||q1()});const h=S.useMemo(()=>({...c.current,forceRender:s}),[a]);return L.jsx(Yp.Provider,{value:h,children:e})},Dx=S.createContext({strict:!1}),Y1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},If={};for(const e in Y1)If[e]={isEnabled:t=>Y1[e].some(n=>!!t[n])};function sb(e){for(const t in e)If[t]={...If[t],...e[t]}}function $f({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!Zy(t)),i=S.useRef(void 0);if(!Zy(t)){const{renderer:s,...a}=t;i.current=s,sb(a)}return S.useEffect(()=>{Zy(t)&&t().then(({renderer:s,...a})=>{sb(a),i.current=s,r(!0)})},[]),L.jsx(Dx.Provider,{value:{renderer:i.current,strict:n},children:e})}function Zy(e){return typeof e=="function"}const V3=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 Hg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||V3.has(e)}let NP=e=>!Hg(e);function OP(e){typeof e=="function"&&(NP=t=>t.startsWith("on")?!Hg(t):e(t))}try{OP(require("@emotion/is-prop-valid").default)}catch{}function U3(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(NP(i)||n===!0&&Hg(i)||!t&&!Hg(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function K3({children:e,isValidProp:t,...n}){t&&OP(t),n={...S.useContext(Zp),...n},n.isStatic=mh(()=>n.isStatic);const r=S.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return L.jsx(Zp.Provider,{value:r,children:e})}const bv=S.createContext({});function xv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function eh(e){return typeof e=="string"||Array.isArray(e)}const Nx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ox=["initial",...Nx];function wv(e){return xv(e.animate)||Ox.some(t=>eh(e[t]))}function FP(e){return!!(wv(e)||e.variants)}function W3(e,t){if(wv(e)){const{initial:n,animate:r}=e;return{initial:n===!1||eh(n)?n:void 0,animate:eh(r)?r:void 0}}return e.inherit!==!1?t:{}}function H3(e){const{initial:t,animate:n}=W3(e,S.useContext(bv));return S.useMemo(()=>({initial:t,animate:n}),[X1(t),X1(n)])}function X1(e){return Array.isArray(e)?e.join(" "):e}const th={};function G3(e){for(const t in e)th[t]=e[t],wx(t)&&(th[t].isCSSVariable=!0)}function zP(e,{layout:t,layoutId:n}){return Lu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!th[e]||e==="opacity")}const q3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Y3=Of.length;function X3(e,t,n){let r="",i=!0;for(let s=0;s<Y3;s++){const a=Of[s],c=e[a];if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(a.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||n){const h=TP(c,Rx[a]);if(!d){i=!1;const m=q3[a]||a;r+=`${m}(${h}) `}n&&(t[a]=h)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Fx(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,c=!1;for(const d in t){const h=t[d];if(Lu.has(d)){a=!0;continue}else if(wx(d)){i[d]=h;continue}else{const m=TP(h,Rx[d]);d.startsWith("origin")?(c=!0,s[d]=m):r[d]=m}}if(t.transform||(a||n?r.transform=X3(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:m=0}=s;r.transformOrigin=`${d} ${h} ${m}`}}const zx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jP(e,t,n){for(const r in t)!Sr(t[r])&&!zP(r,n)&&(e[r]=t[r])}function Q3({transformTemplate:e},t){return S.useMemo(()=>{const n=zx();return Fx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function J3(e,t){const n=e.style||{},r={};return jP(r,n,e),Object.assign(r,Q3(e,t)),r}function Z3(e,t){const n={},r=J3(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}const e4={offset:"stroke-dashoffset",array:"stroke-dasharray"},t4={offset:"strokeDashoffset",array:"strokeDasharray"};function n4(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?e4:t4;e[s.offset]=tt.transform(-r);const a=tt.transform(t),c=tt.transform(n);e[s.array]=`${a} ${c}`}function BP(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...c},d,h,m){if(Fx(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b}=e;g.transform&&(b.transform=g.transform,delete g.transform),(b.transform||g.transformOrigin)&&(b.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),b.transform&&(b.transformBox=m?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),i!==void 0&&n4(g,i,s,a,!1)}const VP=()=>({...zx(),attrs:{}}),UP=e=>typeof e=="string"&&e.toLowerCase()==="svg";function r4(e,t,n,r){const i=S.useMemo(()=>{const s=VP();return BP(s,t,UP(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};jP(s,e.style,e),i.style={...s,...i.style}}return i}const i4=["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 jx(e){return typeof e!="string"||e.includes("-")?!1:!!(i4.indexOf(e)>-1||/[A-Z]/u.test(e))}function o4(e,t,n,{latestValues:r},i,s=!1){const c=(jx(e)?r4:Z3)(t,r,i,e),d=U3(t,typeof e=="string",s),h=e!==S.Fragment?{...d,...c,ref:n}:{},{children:m}=t,g=S.useMemo(()=>Sr(m)?m.get():m,[m]);return S.createElement(e,{...h,children:g})}function Q1(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Bx(e,t,n,r){if(typeof t=="function"){const[i,s]=Q1(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Q1(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Ag(e){return Sr(e)?e.get():e}function s4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:a4(n,r,i,e),renderState:t()}}function a4(e,t,n,r){const i={},s=r(e,{});for(const b in s)i[b]=Ag(s[b]);let{initial:a,animate:c}=e;const d=wv(e),h=FP(e);t&&h&&!d&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||a===!1;const g=m?c:a;if(g&&typeof g!="boolean"&&!xv(g)){const b=Array.isArray(g)?g:[g];for(let x=0;x<b.length;x++){const k=Bx(e,b[x]);if(k){const{transitionEnd:P,transition:T,..._}=k;for(const A in _){let M=_[A];if(Array.isArray(M)){const F=m?M.length-1:0;M=M[F]}M!==null&&(i[A]=M)}for(const A in P)i[A]=P[A]}}}return i}const KP=e=>(t,n)=>{const r=S.useContext(bv),i=S.useContext(yv),s=()=>s4(e,t,r,i);return n?s():mh(s)};function Vx(e,t,n){const{style:r}=e,i={};for(const s in r)(Sr(r[s])||t.style&&Sr(t.style[s])||zP(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const l4=KP({scrapeMotionValuesFromProps:Vx,createRenderState:zx});function WP(e,t,n){const r=Vx(e,t,n);for(const i in e)if(Sr(e[i])||Sr(t[i])){const s=Of.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const u4=KP({scrapeMotionValuesFromProps:WP,createRenderState:VP}),c4=Symbol.for("motionComponentSymbol");function mf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function f4(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):mf(n)&&(n.current=r))},[t])}const Ux=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),d4="framerAppearId",HP="data-"+Ux(d4),GP=S.createContext({});function p4(e,t,n,r,i){const{visualElement:s}=S.useContext(bv),a=S.useContext(Dx),c=S.useContext(yv),d=S.useContext(Zp).reducedMotion,h=S.useRef(null);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const m=h.current,g=S.useContext(GP);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&h4(h.current,n,i,g);const b=S.useRef(!1);S.useInsertionEffect(()=>{m&&b.current&&m.update(n,c)});const x=n[HP],k=S.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return px(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),k.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!k.current&&m.animationState&&m.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),k.current=!1))}),m}function h4(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:c,layoutScroll:d,layoutRoot:h,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:qP(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||c&&mf(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:d,layoutRoot:h})}function qP(e){if(e)return e.options.allowProjection!==!1?e.projection:qP(e.parent)}function e0(e,{forwardMotionProps:t=!1}={},n,r){n&&sb(n);const i=jx(e)?u4:l4;function s(c,d){let h;const m={...S.useContext(Zp),...c,layoutId:m4(c)},{isStatic:g}=m,b=H3(c),x=i(c,g);if(!g&&dx){g4();const k=v4(m);h=k.MeasureLayout,b.visualElement=p4(e,x,m,r,k.ProjectionNode)}return L.jsxs(bv.Provider,{value:b,children:[h&&b.visualElement?L.jsx(h,{visualElement:b.visualElement,...m}):null,o4(e,c,f4(x,b.visualElement,d),x,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=S.forwardRef(s);return a[c4]=e,a}function m4({layoutId:e}){const t=S.useContext(Yp).id;return t&&e!==void 0?t+"-"+e:e}function g4(e,t){S.useContext(Dx).strict}function v4(e){const{drag:t,layout:n}=If;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function YP(e,t){if(typeof Proxy>"u")return e0;const n=new Map,r=(s,a)=>e0(s,a,e,t),i=(s,a)=>r(s,a);return new Proxy(i,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,e0(a,void 0,e,t)),n.get(a))})}const Af=YP();function XP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function y4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function b4(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 t0(e){return e===void 0||e===1}function ab({scale:e,scaleX:t,scaleY:n}){return!t0(e)||!t0(t)||!t0(n)}function hu(e){return ab(e)||QP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function QP(e){return J1(e.x)||J1(e.y)}function J1(e){return e&&e!=="0%"}function Gg(e,t,n){const r=e-n,i=t*r;return n+i}function Z1(e,t,n,r,i){return i!==void 0&&(e=Gg(e,i,r)),Gg(e,n,r)+t}function lb(e,t=0,n=1,r,i){e.min=Z1(e.min,t,n,r,i),e.max=Z1(e.max,t,n,r,i)}function JP(e,{x:t,y:n}){lb(e.x,t.translate,t.scale,t.originPoint),lb(e.y,n.translate,n.scale,n.originPoint)}const eS=.999999999999,tS=1.0000000000001;function x4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let c=0;c<i;c++){s=n[c],a=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&vf(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,JP(e,a)),r&&hu(s.latestValues)&&vf(e,s.latestValues))}t.x<tS&&t.x>eS&&(t.x=1),t.y<tS&&t.y>eS&&(t.y=1)}function gf(e,t){e.min=e.min+t,e.max=e.max+t}function nS(e,t,n,r,i=.5){const s=dn(e.min,e.max,i);lb(e,t,n,s,r)}function vf(e,t){nS(e.x,t.x,t.scaleX,t.scale,t.originX),nS(e.y,t.y,t.scaleY,t.scale,t.originY)}function ZP(e,t){return XP(b4(e.getBoundingClientRect(),t))}function w4(e,t,n){const r=ZP(e,n),{scroll:i}=t;return i&&(gf(r.x,i.offset.x),gf(r.y,i.offset.y)),r}const rS=()=>({translate:0,scale:1,origin:0,originPoint:0}),yf=()=>({x:rS(),y:rS()}),iS=()=>({min:0,max:0}),Cn=()=>({x:iS(),y:iS()}),ub={current:null},eT={current:!1};function S4(){if(eT.current=!0,!!dx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ub.current=e.matches;e.addEventListener("change",t),t()}else ub.current=!1}const k4=new WeakMap;function C4(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Sr(i))e.addValue(r,i);else if(Sr(s))e.addValue(r,_f(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,_f(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const oS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$x,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=li.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,rn.render(this.render,!1,!0))};const{latestValues:d,renderState:h}=a;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=wv(n),this.isVariantNode=FP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const x=g[b];d[b]!==void 0&&Sr(x)&&x.set(d[b],!1)}}mount(t){this.current=t,k4.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),eT.current||S4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ub.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),rl(this.notifyUpdate),rl(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=Lu.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&rn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),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 If){const n=If[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<oS.length;r++){const i=oS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=C4(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_f(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(UE(r)||WE(r))?r=parseFloat(r):!A3(r)&&il.test(n)&&(r=PP(t,n)),this.setBaseTarget(t,Sr(r)?r.get():r)),Sr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Bx(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Sr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Lx.render(this.render)}}class tT extends E4{constructor(){super(...arguments),this.KeyframeResolver=b3}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;Sr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function nT(e,{style:t,vars:n},r,i){const s=e.style;let a;for(a in t)s[a]=t[a];i?.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function P4(e){return window.getComputedStyle(e)}class T4 extends tT{constructor(){super(...arguments),this.type="html",this.renderInstance=nT}readValueFromInstance(t,n){if(Lu.has(n))return this.projection?.isProjecting?eb(n):FD(t,n);{const r=P4(t),i=(wx(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ZP(t,n)}build(t,n,r){Fx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vx(t,n,r)}}const rT=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 _4(e,t,n,r){nT(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(rT.has(i)?i:Ux(i),t.attrs[i])}class I4 extends tT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Lu.has(n)){const r=EP(n);return r&&r.default||0}return n=rT.has(n)?n:Ux(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return WP(t,n,r)}build(t,n,r){BP(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){_4(t,n,r,i)}mount(t){this.isSVGTag=UP(t.tagName),super.mount(t)}}const $4=(e,t)=>jx(e)?new I4(t):new T4(t,{allowProjection:e!==S.Fragment});function nh(e,t,n){const r=e.getProps();return Bx(r,t,n!==void 0?n:r.custom,e)}const cb=e=>Array.isArray(e);function A4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_f(n))}function R4(e){return cb(e)?e[e.length-1]||0:e}function L4(e,t){const n=nh(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const c=R4(s[a]);A4(e,a,c)}}function M4(e){return!!(Sr(e)&&e.add)}function fb(e,t){const n=e.getValue("willChange");if(M4(n))return n.add(t);if(!n&&fs.WillChange){const r=new fs.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function iT(e){return e.props[HP]}const D4=e=>e!==null;function N4(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(D4),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const O4={type:"spring",stiffness:500,damping:25,restSpeed:10},F4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),z4={type:"keyframes",duration:.8},j4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B4=(e,{keyframes:t})=>t.length>2?z4:Lu.has(e)?e.startsWith("scale")?F4(t[1]):O4:j4;function V4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:c,from:d,elapsed:h,...m}){return!!Object.keys(m).length}const Kx=(e,t,n,r={},i,s)=>a=>{const c=Ax(r,e)||{},d=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-ls(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:b=>{t.set(b),c.onUpdate&&c.onUpdate(b)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:i};V4(c)||Object.assign(m,B4(e,m)),m.duration&&(m.duration=ls(m.duration)),m.repeatDelay&&(m.repeatDelay=ls(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),(fs.instantAnimations||fs.skipAnimations)&&(g=!0,m.duration=0,m.delay=0),m.allowFlatten=!c.type&&!c.ease,g&&!s&&t.get()!==void 0){const b=N4(m.keyframes,c);if(b!==void 0){rn.update(()=>{m.onUpdate(b),m.onComplete()});return}}return c.isSync?new Ix(m):new a3(m)};function U4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function oT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(s=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in c){const g=e.getValue(m,e.latestValues[m]??null),b=c[m];if(b===void 0||h&&U4(h,m))continue;const x={delay:n,...Ax(s||{},m)},k=g.get();if(k!==void 0&&!g.isAnimating&&!Array.isArray(b)&&b===k&&!x.velocity)continue;let P=!1;if(window.MotionHandoffAnimation){const _=iT(e);if(_){const A=window.MotionHandoffAnimation(_,m,rn);A!==null&&(x.startTime=A,P=!0)}}fb(e,m),g.start(Kx(m,g,b,e.shouldReduceMotion&&SP.has(m)?{type:!1}:x,e,P));const T=g.animation;T&&d.push(T)}return a&&Promise.all(d).then(()=>{rn.update(()=>{a&&L4(e,a)})}),d}function db(e,t,n={}){const r=nh(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(oT(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return K4(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[d,h]=c==="beforeChildren"?[s,a]:[a,s];return d().then(()=>h())}else return Promise.all([s(),a(n.delay)])}function K4(e,t,n=0,r=0,i=0,s=1,a){const c=[],d=e.variantChildren.size,h=(d-1)*i,m=typeof r=="function",g=m?b=>r(b,d):s===1?(b=0)=>b*i:(b=0)=>h-b*i;return Array.from(e.variantChildren).sort(W4).forEach((b,x)=>{b.notify("AnimationStart",t),c.push(db(b,t,{...a,delay:n+(m?0:r)+g(x)}).then(()=>b.notify("AnimationComplete",t)))}),Promise.all(c)}function W4(e,t){return e.sortNodePosition(t)}function H4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>db(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=db(e,t,n);else{const i=typeof t=="function"?nh(e,t,n.custom):t;r=Promise.all(oT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function sT(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const G4=Ox.length;function aT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?aT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<G4;n++){const r=Ox[n],i=e.props[r];(eh(i)||i===!1)&&(t[r]=i)}return t}const q4=[...Nx].reverse(),Y4=Nx.length;function X4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>H4(e,n,r)))}function Q4(e){let t=X4(e),n=sS(),r=!0;const i=d=>(h,m)=>{const g=nh(e,m,d==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:b,transitionEnd:x,...k}=g;h={...h,...k,...x}}return h};function s(d){t=d(e)}function a(d){const{props:h}=e,m=aT(e.parent)||{},g=[],b=new Set;let x={},k=1/0;for(let T=0;T<Y4;T++){const _=q4[T],A=n[_],M=h[_]!==void 0?h[_]:m[_],F=eh(M),j=_===d?A.isActive:null;j===!1&&(k=T);let $=M===m[_]&&M!==h[_]&&F;if($&&r&&e.manuallyAnimateOnMount&&($=!1),A.protectedKeys={...x},!A.isActive&&j===null||!M&&!A.prevProp||xv(M)||typeof M=="boolean")continue;const Y=J4(A.prevProp,M);let te=Y||_===d&&A.isActive&&!$&&F||T>k&&F,ie=!1;const B=Array.isArray(M)?M:[M];let W=B.reduce(i(_),{});j===!1&&(W={});const{prevResolvedValues:G={}}=A,ee={...G,...W},H=X=>{te=!0,b.has(X)&&(ie=!0,b.delete(X)),A.needsAnimating[X]=!0;const V=e.getValue(X);V&&(V.liveStyle=!1)};for(const X in ee){const V=W[X],ae=G[X];if(x.hasOwnProperty(X))continue;let D=!1;cb(V)&&cb(ae)?D=!sT(V,ae):D=V!==ae,D?V!=null?H(X):b.add(X):V!==void 0&&b.has(X)?H(X):A.protectedKeys[X]=!0}A.prevProp=M,A.prevResolvedValues=W,A.isActive&&(x={...x,...W}),r&&e.blockInitialAnimation&&(te=!1),te&&(!($&&Y)||ie)&&g.push(...B.map(X=>({animation:X,options:{type:_}})))}if(b.size){const T={};if(typeof h.initial!="boolean"){const _=nh(e,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(T.transition=_.transition)}b.forEach(_=>{const A=e.getBaseTarget(_),M=e.getValue(_);M&&(M.liveStyle=!0),T[_]=A??null}),g.push({animation:T})}let P=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(P=!1),r=!1,P?t(g):Promise.resolve()}function c(d,h){if(n[d].isActive===h)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(d,h)),n[d].isActive=h;const m=a(d);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=sS(),r=!0}}}function J4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sT(t,e):!1}function au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sS(){return{animate:au(!0),whileInView:au(),whileHover:au(),whileTap:au(),whileDrag:au(),whileFocus:au(),exit:au()}}class al{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Z4 extends al{constructor(t){super(t),t.animationState||(t.animationState=Q4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xv(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(){this.node.animationState.reset(),this.unmountControls?.()}}let eN=0;class tN extends al{constructor(){super(...arguments),this.id=eN++}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,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const nN={animation:{Feature:Z4},exit:{Feature:tN}};function rh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function bh(e){return{point:{x:e.pageX,y:e.pageY}}}const rN=e=>t=>Mx(t)&&e(t,bh(t));function Op(e,t,n,r){return rh(e,t,rN(n),r)}const lT=1e-4,iN=1-lT,oN=1+lT,uT=.01,sN=0-uT,aN=0+uT;function Fr(e){return e.max-e.min}function lN(e,t,n){return Math.abs(e-t)<=n}function aS(e,t,n,r=.5){e.origin=r,e.originPoint=dn(t.min,t.max,e.origin),e.scale=Fr(n)/Fr(t),e.translate=dn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=iN&&e.scale<=oN||isNaN(e.scale))&&(e.scale=1),(e.translate>=sN&&e.translate<=aN||isNaN(e.translate))&&(e.translate=0)}function Fp(e,t,n,r){aS(e.x,t.x,n.x,r?r.originX:void 0),aS(e.y,t.y,n.y,r?r.originY:void 0)}function lS(e,t,n){e.min=n.min+t.min,e.max=e.min+Fr(t)}function uN(e,t,n){lS(e.x,t.x,n.x),lS(e.y,t.y,n.y)}function uS(e,t,n){e.min=t.min-n.min,e.max=e.min+Fr(t)}function zp(e,t,n){uS(e.x,t.x,n.x),uS(e.y,t.y,n.y)}function Zi(e){return[e("x"),e("y")]}const cT=({current:e})=>e?e.ownerDocument.defaultView:null,cS=(e,t)=>Math.abs(e-t);function cN(e,t){const n=cS(e.x,t.x),r=cS(e.y,t.y);return Math.sqrt(n**2+r**2)}class fT{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=r0(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,k=cN(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!k)return;const{point:P}=b,{timestamp:T}=dr;this.history.push({...P,timestamp:T});const{onStart:_,onMove:A}=this.handlers;x||(_&&_(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,b)},this.handlePointerMove=(b,x)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=n0(x,this.transformPagePoint),rn.update(this.updatePoint,!0)},this.handlePointerUp=(b,x)=>{this.end();const{onEnd:k,onSessionEnd:P,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=r0(b.type==="pointercancel"?this.lastMoveEventInfo:n0(x,this.transformPagePoint),this.history);this.startEvent&&k&&k(b,_),P&&P(b,_)},!Mx(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const c=bh(t),d=n0(c,this.transformPagePoint),{point:h}=d,{timestamp:m}=dr;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=n;g&&g(t,r0(d,this.history)),this.removeListeners=gh(Op(this.contextWindow,"pointermove",this.handlePointerMove),Op(this.contextWindow,"pointerup",this.handlePointerUp),Op(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),rl(this.updatePoint)}}function n0(e,t){return t?{point:t(e.point)}:e}function fS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r0({point:e},t){return{point:e,delta:fS(e,dT(t)),offset:fS(e,fN(t)),velocity:dN(t,.1)}}function fN(e){return e[0]}function dT(e){return e[e.length-1]}function dN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ls(t)));)n--;if(!r)return{x:0,y:0};const s=us(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function pN(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?dn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?dn(n,e,r.max):Math.min(e,n)),e}function dS(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 hN(e,{top:t,left:n,bottom:r,right:i}){return{x:dS(e.x,n,i),y:dS(e.y,t,r)}}function pS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function mN(e,t){return{x:pS(e.x,t.x),y:pS(e.y,t.y)}}function gN(e,t){let n=.5;const r=Fr(e),i=Fr(t);return i>r?n=Xp(t.min,t.max-r,e.min):r>i&&(n=Xp(e.min,e.max-i,t.min)),ta(0,1,n)}function vN(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 pb=.35;function yN(e=pb){return e===!1?e=0:e===!0&&(e=pb),{x:hS(e,"left","right"),y:hS(e,"top","bottom")}}function hS(e,t,n){return{min:mS(e,t),max:mS(e,n)}}function mS(e,t){return typeof e=="number"?e:e[t]||0}const bN=new WeakMap;class xN{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=Cn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bh(g).point)},a=(g,b)=>{const{drag:x,dragPropagation:k,onDragStart:P}=this.getProps();if(x&&!k&&(this.openDragLock&&this.openDragLock(),this.openDragLock=k3(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zi(_=>{let A=this.getAxisMotionValue(_).get()||0;if(cs.test(A)){const{projection:M}=this.visualElement;if(M&&M.layout){const F=M.layout.layoutBox[_];F&&(A=Fr(F)*(parseFloat(A)/100))}}this.originPoint[_]=A}),P&&rn.postRender(()=>P(g,b)),fb(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},c=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:k,onDirectionLock:P,onDrag:T}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:_}=b;if(k&&this.currentDirection===null){this.currentDirection=wN(_),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",b.point,_),this.updateAxis("y",b.point,_),this.visualElement.render(),T&&T(g,b)},d=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Zi(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new fT(t,{onSessionStart:s,onStart:a,onMove:c,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:cT(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:c}=this.getProps();c&&rn.postRender(()=>c(r,i))}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||!dg(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=pN(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&mf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=hN(r.layoutBox,t):this.constraints=!1,this.elastic=yN(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=vN(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!mf(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=w4(r,i.root,this.visualElement.getTransformPagePoint());let a=mN(i.layout.layoutBox,s);if(n){const c=n(y4(a));this.hasMutatedConstraints=!!c,c&&(a=XP(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},h=Zi(m=>{if(!dg(m,n,this.currentDirection))return;let g=d&&d[m]||{};a&&(g={min:0,max:0});const b=i?200:1e6,x=i?40:1e7,k={type:"inertia",velocity:r?t[m]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(m,k)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return fb(this.visualElement,t),r.start(Kx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Zi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Zi(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.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){Zi(n=>{const{drag:r}=this.getProps();if(!dg(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];s.set(t[n]-dn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Zi(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const d=c.get();i[a]=gN({min:d,max:d},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Zi(a=>{if(!dg(a,t,null))return;const c=this.getAxisMotionValue(a),{min:d,max:h}=this.constraints[a];c.set(dn(d,h,i[a]))})}addListeners(){if(!this.visualElement.current)return;bN.set(this.visualElement,this);const t=this.visualElement.current,n=Op(t,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();mf(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rn.read(r);const a=rh(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Zi(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=d[m].translate,g.set(g.get()+d[m].translate))}),this.visualElement.render())}));return()=>{a(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=pb,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:c}}}function dg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class SN extends al{constructor(t){super(t),this.removeGroupControls=ro,this.removeListeners=ro,this.controls=new xN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ro}unmount(){this.removeGroupControls(),this.removeListeners()}}const gS=e=>(t,n)=>{e&&rn.postRender(()=>e(t,n))};class kN extends al{constructor(){super(...arguments),this.removePointerDownListener=ro}onPointerDown(t){this.session=new fT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cT(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:gS(t),onStart:gS(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&rn.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=Op(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 Rg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mp={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(tt.test(e))e=parseFloat(e);else return e;const n=vS(e,t.target.x),r=vS(e,t.target.y);return`${n}% ${r}%`}},CN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=il.parse(e);if(i.length>5)return r;const s=il.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,d=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=d;const h=dn(c,d,.5);return typeof i[2+a]=="number"&&(i[2+a]/=h),typeof i[3+a]=="number"&&(i[3+a]/=h),s(i)}};let yS=!1;class EN extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;G3(PN),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),yS&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Rg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,yS=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||rn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Lx.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 pT(e){const[t,n]=MP(),r=S.useContext(Yp);return L.jsx(EN,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(GP),isPresent:t,safeToRemove:n})}const PN={borderRadius:{...mp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mp,borderTopRightRadius:mp,borderBottomLeftRadius:mp,borderBottomRightRadius:mp,boxShadow:CN};function TN(e,t,n){const r=Sr(e)?e:_f(e);return r.start(Kx("",r,t,n)),r.animation}const _N=(e,t)=>e.depth-t.depth;class IN{constructor(){this.children=[],this.isDirty=!1}add(t){hx(this.children,t),this.isDirty=!0}remove(t){mx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_N),this.isDirty=!1,this.children.forEach(t)}}function $N(e,t){const n=li.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(rl(r),e(s-t))};return rn.setup(r,!0),()=>rl(r)}const hT=["TopLeft","TopRight","BottomLeft","BottomRight"],AN=hT.length,bS=e=>typeof e=="string"?parseFloat(e):e,xS=e=>typeof e=="number"||tt.test(e);function RN(e,t,n,r,i,s){i?(e.opacity=dn(0,n.opacity??1,LN(r)),e.opacityExit=dn(t.opacity??1,0,MN(r))):s&&(e.opacity=dn(t.opacity??1,n.opacity??1,r));for(let a=0;a<AN;a++){const c=`border${hT[a]}Radius`;let d=wS(t,c),h=wS(n,c);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||xS(d)===xS(h)?(e[c]=Math.max(dn(bS(d),bS(h),r),0),(cs.test(h)||cs.test(d))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=dn(t.rotate||0,n.rotate||0,r))}function wS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const LN=mT(0,.5,ZE),MN=mT(.5,.95,ro);function mT(e,t,n){return r=>r<e?0:r>t?1:n(Xp(e,t,r))}function SS(e,t){e.min=t.min,e.max=t.max}function Qi(e,t){SS(e.x,t.x),SS(e.y,t.y)}function kS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function CS(e,t,n,r,i){return e-=t,e=Gg(e,1/n,r),i!==void 0&&(e=Gg(e,1/i,r)),e}function DN(e,t=0,n=1,r=.5,i,s=e,a=e){if(cs.test(t)&&(t=parseFloat(t),t=dn(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=dn(s.min,s.max,r);e===s&&(c-=t),e.min=CS(e.min,t,n,c,i),e.max=CS(e.max,t,n,c,i)}function ES(e,t,[n,r,i],s,a){DN(e,t[n],t[r],t[i],t.scale,s,a)}const NN=["x","scaleX","originX"],ON=["y","scaleY","originY"];function PS(e,t,n,r){ES(e.x,t,NN,n?n.x:void 0,r?r.x:void 0),ES(e.y,t,ON,n?n.y:void 0,r?r.y:void 0)}function TS(e){return e.translate===0&&e.scale===1}function gT(e){return TS(e.x)&&TS(e.y)}function _S(e,t){return e.min===t.min&&e.max===t.max}function FN(e,t){return _S(e.x,t.x)&&_S(e.y,t.y)}function IS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vT(e,t){return IS(e.x,t.x)&&IS(e.y,t.y)}function $S(e){return Fr(e.x)/Fr(e.y)}function AS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class zN{constructor(){this.members=[]}add(t){hx(this.members,t),t.scheduleRender()}remove(t){if(mx(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 s=this.members[i];if(s.isPresent!==!1){r=s;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 jN(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:b,skewX:x,skewY:k}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),b&&(r+=`rotateY(${b}deg) `),x&&(r+=`skewX(${x}deg) `),k&&(r+=`skewY(${k}deg) `)}const c=e.x.scale*t.x,d=e.y.scale*t.y;return(c!==1||d!==1)&&(r+=`scale(${c}, ${d})`),r||"none"}const i0=["","X","Y","Z"],BN=1e3;let VN=0;function o0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function yT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=iT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rn,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&yT(r)}function bT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t?.()){this.id=VN++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(WN),this.nodes.forEach(YN),this.nodes.forEach(XN),this.nodes.forEach(HN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new IN)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new yx),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const d=this.eventHandlers.get(a);d&&d.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=LP(a)&&!I3(a),this.instance=a;const{layoutId:c,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||c)&&(this.isLayoutDirty=!0),e){let m,g=0;const b=()=>this.root.updateBlockedByResize=!1;rn.read(()=>{g=window.innerWidth}),e(a,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,m&&m(),m=$N(b,250),Rg.hasAnimatedSinceResize&&(Rg.hasAnimatedSinceResize=!1,this.nodes.forEach(MS)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||h.getDefaultTransition()||t5,{onLayoutAnimationStart:P,onLayoutAnimationComplete:T}=h.getProps(),_=!this.targetLayout||!vT(this.targetLayout,x),A=!g&&b;if(this.options.layoutRoot||this.resumeFrom||A||g&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...Ax(k,"layout"),onPlay:P,onComplete:T};(h.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(m,A)}else g||MS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rl(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(QN),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const g=this.path[m];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(RS);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(LS);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qN),this.nodes.forEach(UN),this.nodes.forEach(KN)):this.nodes.forEach(LS),this.clearAllSnapshots();const c=li.now();dr.delta=ta(0,1e3/60,c-dr.timestamp),dr.timestamp=c,dr.isProcessing=!0,Gy.update.process(dr),Gy.preRender.process(dr),Gy.render.process(dr),dr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Lx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(GN),this.sharedNodes.forEach(JN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Fr(this.snapshot.measuredBox.x)&&!Fr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!gT(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;a&&this.instance&&(c||hu(this.latestValues)||m)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),n5(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Cn();const c=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(r5))){const{scroll:h}=this.root;h&&(gf(c.x,h.offset.x),gf(c.y,h.offset.y))}return c}removeElementScroll(a){const c=Cn();if(Qi(c,a),this.scroll?.wasRoot)return c;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Qi(c,a),gf(c.x,m.offset.x),gf(c.y,m.offset.y))}return c}applyTransform(a,c=!1){const d=Cn();Qi(d,a);for(let h=0;h<this.path.length;h++){const m=this.path[h];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&vf(d,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),hu(m.latestValues)&&vf(d,m.latestValues)}return hu(this.latestValues)&&vf(d,this.latestValues),d}removeTransform(a){const c=Cn();Qi(c,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!hu(h.latestValues))continue;ab(h.latestValues)&&h.updateSnapshot();const m=Cn(),g=h.measurePageBox();Qi(m,g),PS(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return hu(this.latestValues)&&PS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==dr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=dr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cn(),this.relativeTargetOrigin=Cn(),zp(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Qi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Cn(),this.targetWithTransforms=Cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qi(this.target,this.layout.layoutBox),JP(this.target,this.targetDelta)):Qi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cn(),this.relativeTargetOrigin=Cn(),zp(this.relativeTargetOrigin,this.target,b.target),Qi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ab(this.parent.latestValues)||QP(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const a=this.getLead(),c=!!this.resumingFrom||this!==a;let d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===dr.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Qi(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;x4(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Cn());const{target:x}=a;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kS(this.prevProjectionDelta.x,this.projectionDelta.x),kS(this.prevProjectionDelta.y,this.projectionDelta.y)),Fp(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!AS(this.projectionDelta.x,this.prevProjectionDelta.x)||!AS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yf(),this.projectionDelta=yf(),this.projectionDeltaWithTransform=yf()}setAnimationOrigin(a,c=!1){const d=this.snapshot,h=d?d.latestValues:{},m={...this.latestValues},g=yf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const b=Cn(),x=d?d.source:void 0,k=this.layout?this.layout.source:void 0,P=x!==k,T=this.getStack(),_=!T||T.members.length<=1,A=!!(P&&!_&&this.options.crossfade===!0&&!this.path.some(e5));this.animationProgress=0;let M;this.mixTargetDelta=F=>{const j=F/1e3;DS(g.x,a.x,j),DS(g.y,a.y,j),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zp(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZN(this.relativeTarget,this.relativeTargetOrigin,b,j),M&&FN(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=Cn()),Qi(M,this.relativeTarget)),P&&(this.animationValues=m,RN(m,h,this.latestValues,j,A,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(rl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rn.update(()=>{Rg.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_f(0)),this.currentAnimation=TN(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(BN),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:d,layout:h,latestValues:m}=a;if(!(!c||!d||!h)){if(this!==a&&this.layout&&h&&xT(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||Cn();const g=Fr(this.layout.layoutBox.x);d.x.min=a.target.x.min,d.x.max=d.x.min+g;const b=Fr(this.layout.layoutBox.y);d.y.min=a.target.y.min,d.y.max=d.y.min+b}Qi(c,d),vf(c,m),Fp(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new zN),this.sharedNodes.get(a).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:d}=a;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const h={};d.z&&o0("z",a,h,this.animationValues);for(let m=0;m<i0.length;m++)o0(`rotate${i0[m]}`,a,h,this.animationValues),o0(`skew${i0[m]}`,a,h,this.animationValues);a.render();for(const m in h)a.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);a.scheduleRender()}applyProjectionStyles(a,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Ag(c?.pointerEvents)||"",a.transform=d?d(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Ag(c?.pointerEvents)||""),this.hasProjected&&!hu(this.latestValues)&&(a.transform=d?d({},""):"none",this.hasProjected=!1);return}a.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=jN(this.projectionDeltaWithTransform,this.treeScale,m);d&&(g=d(m,g)),a.transform=g;const{x:b,y:x}=this.projectionDelta;a.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,h.animationValues?a.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:a.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const k in th){if(m[k]===void 0)continue;const{correct:P,applyTo:T,isCSSVariable:_}=th[k],A=g==="none"?m[k]:P(m[k],h);if(T){const M=T.length;for(let F=0;F<M;F++)a[T[F]]=A}else _?this.options.visualElement.renderState.vars[k]=A:a[k]=A}this.options.layoutId&&(a.pointerEvents=h===this?Ag(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(RS),this.root.sharedNodes.clear()}}}function UN(e){e.updateLayout()}function KN(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?Zi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Fr(g);g.min=n[m].min,g.max=g.min+b}):xT(i,t.layoutBox,n)&&Zi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Fr(n[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const a=yf();Fp(a,n,t.layoutBox);const c=yf();s?Fp(c,e.applyTransform(r,!0),t.measuredBox):Fp(c,n,t.layoutBox);const d=!gT(a);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const x=Cn();zp(x,t.layoutBox,g.layoutBox);const k=Cn();zp(k,n,b.layoutBox),vT(x,k)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function WN(e){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 HN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function GN(e){e.clearSnapshot()}function RS(e){e.clearMeasurements()}function LS(e){e.isLayoutDirty=!1}function qN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function MS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function YN(e){e.resolveTargetDelta()}function XN(e){e.calcProjection()}function QN(e){e.resetSkewAndRotation()}function JN(e){e.removeLeadSnapshot()}function DS(e,t,n){e.translate=dn(t.translate,0,n),e.scale=dn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function NS(e,t,n,r){e.min=dn(t.min,n.min,r),e.max=dn(t.max,n.max,r)}function ZN(e,t,n,r){NS(e.x,t.x,n.x,r),NS(e.y,t.y,n.y,r)}function e5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const t5={duration:.45,ease:[.4,0,.1,1]},OS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),FS=OS("applewebkit/")&&!OS("chrome/")?Math.round:ro;function zS(e){e.min=FS(e.min),e.max=FS(e.max)}function n5(e){zS(e.x),zS(e.y)}function xT(e,t,n){return e==="position"||e==="preserve-aspect"&&!lN($S(t),$S(n),.2)}function r5(e){return e!==e.root&&e.scroll?.wasRoot}const i5=bT({attachResizeListener:(e,t)=>rh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s0={current:void 0},wT=bT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s0.current){const e=new i5({});e.mount(window),e.setOptions({layoutScroll:!0}),s0.current=e}return s0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),o5={pan:{Feature:kN},drag:{Feature:SN,ProjectionNode:wT,MeasureLayout:pT}};function jS(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&rn.postRender(()=>s(t,bh(t)))}class s5 extends al{mount(){const{current:t}=this.node;t&&(this.unmount=C3(t,(n,r)=>(jS(this.node,r,"Start"),i=>jS(this.node,i,"End"))))}unmount(){}}class a5 extends al{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=gh(rh(this.node.current,"focus",()=>this.onFocus()),rh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function BS(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&rn.postRender(()=>s(t,bh(t)))}class l5 extends al{mount(){const{current:t}=this.node;t&&(this.unmount=_3(t,(n,r)=>(BS(this.node,r,"Start"),(i,{success:s})=>BS(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const hb=new WeakMap,a0=new WeakMap,u5=e=>{const t=hb.get(e.target);t&&t(e)},c5=e=>{e.forEach(u5)};function f5({root:e,...t}){const n=e||document;a0.has(n)||a0.set(n,{});const r=a0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(c5,{root:e,...t})),r[i]}function d5(e,t,n){const r=f5(t);return hb.set(e,n),r.observe(e),()=>{hb.delete(e),r.unobserve(e)}}const p5={some:0,all:1};class h5 extends al{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:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:p5[i]},c=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,s&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),b=h?m:g;b&&b(d)};return d5(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(m5(t,n))&&this.startObserver()}unmount(){}}function m5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const g5={inView:{Feature:h5},tap:{Feature:l5},focus:{Feature:a5},hover:{Feature:s5}},v5={layout:{ProjectionNode:wT,MeasureLayout:pT}},y5={...nN,...g5,...o5,...v5},Zs=YP(y5,$4);class b5 extends IP{constructor(){super(...arguments),this.isEnabled=!1}add(t){(Lu.has(t)||x3.has(t))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}}function x5(){return mh(()=>new b5("auto"))}const as={top:"top",bottom:"top",left:"left",right:"left"},qg={top:"bottom",bottom:"top",left:"right",right:"left"},w5={top:"left",left:"top"},mb={top:"height",left:"width"},ST={width:"totalWidth",height:"totalHeight"},pg={};let Jn=typeof document<"u"?window.visualViewport:null;function VS(e){let t=0,n=0,r=0,i=0,s=0,a=0,c={};var d;let h=((d=Jn?.scale)!==null&&d!==void 0?d:1)>1;if(e.tagName==="BODY"){let k=document.documentElement;r=k.clientWidth,i=k.clientHeight;var m;t=(m=Jn?.width)!==null&&m!==void 0?m:r;var g;n=(g=Jn?.height)!==null&&g!==void 0?g:i,c.top=k.scrollTop||e.scrollTop,c.left=k.scrollLeft||e.scrollLeft,Jn&&(s=Jn.offsetTop,a=Jn.offsetLeft)}else({width:t,height:n,top:s,left:a}=wf(e)),c.top=e.scrollTop,c.left=e.scrollLeft,r=t,i=n;if(_E()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){c.top=0,c.left=0;var b;s=(b=Jn?.pageTop)!==null&&b!==void 0?b:0;var x;a=(x=Jn?.pageLeft)!==null&&x!==void 0?x:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:c,top:s,left:a}}function S5(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function US(e,t,n,r,i,s,a){var c;let d=(c=i.scroll[e])!==null&&c!==void 0?c:0,h=r[mb[e]],m=r.scroll[as[e]]+s,g=h+r.scroll[as[e]]-s,b=t-d+a[e]-r[as[e]],x=t-d+n+a[e]-r[as[e]];return b<m?m-b:x>g?Math.max(g-x,m-b):0}function k5(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function KS(e){if(pg[e])return pg[e];let[t,n]=e.split(" "),r=as[t]||"right",i=w5[r];as[n]||(n="center");let s=mb[r],a=mb[i];return pg[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:a},pg[e]}function l0(e,t,n,r,i,s,a,c,d,h){let{placement:m,crossPlacement:g,axis:b,crossAxis:x,size:k,crossSize:P}=r,T={};var _;T[x]=(_=e[x])!==null&&_!==void 0?_:0;var A,M,F,j;g==="center"?T[x]+=(((A=e[P])!==null&&A!==void 0?A:0)-((M=n[P])!==null&&M!==void 0?M:0))/2:g!==x&&(T[x]+=((F=e[P])!==null&&F!==void 0?F:0)-((j=n[P])!==null&&j!==void 0?j:0)),T[x]+=s;const $=e[x]-n[P]+d+h,Y=e[x]+e[P]-d-h;if(T[x]=Bg(T[x],$,Y),m===b){const te=c?a[k]:t[ST[k]];T[qg[b]]=Math.floor(te-e[b]+i)}else T[b]=Math.floor(e[b]+e[k]+i);return T}function C5(e,t,n,r,i,s,a,c){const d=r?n.height:t[ST.height];var h;let m=e.top!=null?n.top+e.top:n.top+(d-((h=e.bottom)!==null&&h!==void 0?h:0)-a);var g,b,x,k,P,T;let _=c!=="top"?Math.max(0,t.height+t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0)-m-(((b=i.top)!==null&&b!==void 0?b:0)+((x=i.bottom)!==null&&x!==void 0?x:0)+s)):Math.max(0,m+a-(t.top+((k=t.scroll.top)!==null&&k!==void 0?k:0))-(((P=i.top)!==null&&P!==void 0?P:0)+((T=i.bottom)!==null&&T!==void 0?T:0)+s));return Math.min(t.height-s*2,_)}function WS(e,t,n,r,i,s){let{placement:a,axis:c,size:d}=s;var h,m;if(a===c)return Math.max(0,n[c]-e[c]-((h=e.scroll[c])!==null&&h!==void 0?h:0)+t[c]-((m=r[c])!==null&&m!==void 0?m:0)-r[qg[c]]-i);var g;return Math.max(0,e[d]+e[c]+e.scroll[c]-t[c]-n[c]-n[d]-((g=r[c])!==null&&g!==void 0?g:0)-r[qg[c]]-i)}function E5(e,t,n,r,i,s,a,c,d,h,m,g,b,x,k,P){let T=KS(e),{size:_,crossAxis:A,crossSize:M,placement:F,crossPlacement:j}=T,$=l0(t,c,n,T,m,g,h,b,k,P),Y=m,te=WS(c,h,t,i,s+m,T);if(a&&r[_]>te){let me=KS(`${qg[F]} ${j}`),Ce=l0(t,c,n,me,m,g,h,b,k,P);WS(c,h,t,i,s+m,me)>te&&(T=me,$=Ce,Y=m)}let ie="bottom";T.axis==="top"?T.placement==="top"?ie="top":T.placement==="bottom"&&(ie="bottom"):T.crossAxis==="top"&&(T.crossPlacement==="top"?ie="bottom":T.crossPlacement==="bottom"&&(ie="top"));let B=US(A,$[A],n[M],c,d,s,h);$[A]+=B;let W=C5($,c,h,b,i,s,n.height,ie);x&&x<W&&(W=x),n.height=Math.min(n.height,W),$=l0(t,c,n,T,Y,g,h,b,k,P),B=US(A,$[A],n[M],c,d,s,h),$[A]+=B;let G={},ee=t[A]+.5*t[M]-$[A]-i[as[A]];const H=k/2+P;var le,J,X,V;const ae=as[A]==="left"?((le=i.left)!==null&&le!==void 0?le:0)+((J=i.right)!==null&&J!==void 0?J:0):((X=i.top)!==null&&X!==void 0?X:0)+((V=i.bottom)!==null&&V!==void 0?V:0),D=n[M]-ae-k/2-P,U=t[A]+k/2-($[A]+i[as[A]]),oe=t[A]+t[M]-k/2-($[A]+i[as[A]]),z=Bg(ee,U,oe);return G[A]=Bg(z,H,D),{position:$,maxHeight:W,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:T.placement}}function P5(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:s,shouldFlip:a,boundaryElement:c,offset:d,crossOffset:h,maxHeight:m,arrowSize:g=0,arrowBoundaryOffset:b=0}=e,x=r instanceof HTMLElement?T5(r):document.documentElement,k=x===document.documentElement;const P=window.getComputedStyle(x).position;let T=!!P&&P!=="static",_=k?wf(n):HS(n,x);if(!k){let{marginTop:G,marginLeft:ee}=window.getComputedStyle(n);_.top+=parseInt(G,10)||0,_.left+=parseInt(ee,10)||0}let A=wf(r),M=k5(r);var F,j;A.width+=((F=M.left)!==null&&F!==void 0?F:0)+((j=M.right)!==null&&j!==void 0?j:0);var $,Y;A.height+=(($=M.top)!==null&&$!==void 0?$:0)+((Y=M.bottom)!==null&&Y!==void 0?Y:0);let te=S5(i),ie=VS(c),B=VS(x),W=c.tagName==="BODY"?wf(x):HS(x,c);return x.tagName==="HTML"&&c.tagName==="BODY"&&(B.scroll.top=0,B.scroll.left=0),E5(t,_,A,te,M,s,a,ie,B,W,d,h,T,m,g,b)}function wf(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:a,clientTop:c,clientLeft:d}=document.documentElement;return{top:t+s-c,left:n+a-d,width:r,height:i}}function HS(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:s,width:a,height:c}=e.getBoundingClientRect();r={top:i,left:s,width:a,height:c}}else{r=wf(e);let i=wf(t),s=window.getComputedStyle(t);i.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function T5(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!GS(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!GS(t);)t=t.parentElement;return t||document.documentElement}function GS(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const _5=new WeakMap;function I5(e){let{triggerRef:t,isOpen:n,onClose:r}=e;S.useEffect(()=>{if(!n||r===null)return;let i=s=>{let a=s.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let c=r||_5.get(t.current);c&&c()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let kn=typeof document<"u"?window.visualViewport:null;function $5(e){let{direction:t}=hh(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:a="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:x=!0,onClose:k,maxHeight:P,arrowBoundaryOffset:T=0}=e,[_,A]=S.useState(null),M=[b,a,i.current,r.current,s.current,c,d,h,m,g,x,t,P,T,n],F=S.useRef(kn?.scale);S.useEffect(()=>{x&&(F.current=kn?.scale)},[x]);let j=S.useCallback(()=>{if(b===!1||!x||!i.current||!r.current||!h||kn?.scale!==F.current)return;let B=null;if(s.current&&s.current.contains(document.activeElement)){var W;let V=(W=document.activeElement)===null||W===void 0?void 0:W.getBoundingClientRect(),ae=s.current.getBoundingClientRect();var G;if(B={type:"top",offset:((G=V?.top)!==null&&G!==void 0?G:0)-ae.top},B.offset>ae.height/2){B.type="bottom";var ee;B.offset=((ee=V?.bottom)!==null&&ee!==void 0?ee:0)-ae.bottom}}let H=i.current;if(!P&&i.current){var le;H.style.top="0px",H.style.bottom="";var J;H.style.maxHeight=((J=(le=window.visualViewport)===null||le===void 0?void 0:le.height)!==null&&J!==void 0?J:window.innerHeight)+"px"}let X=P5({placement:R5(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:c,shouldFlip:d,boundaryElement:h,offset:m,crossOffset:g,maxHeight:P,arrowSize:n,arrowBoundaryOffset:T});if(X.position){if(H.style.top="",H.style.bottom="",H.style.left="",H.style.right="",Object.keys(X.position).forEach(V=>H.style[V]=X.position[V]+"px"),H.style.maxHeight=X.maxHeight!=null?X.maxHeight+"px":"",B&&document.activeElement&&s.current){let V=document.activeElement.getBoundingClientRect(),ae=s.current.getBoundingClientRect(),D=V[B.type]-ae[B.type];s.current.scrollTop+=D-B.offset}A(X)}},M);sn(j,M),A5(j),E1({ref:i,onResize:j}),E1({ref:r,onResize:j});let $=S.useRef(!1);sn(()=>{let B,W=()=>{$.current=!0,clearTimeout(B),B=setTimeout(()=>{$.current=!1},500),j()},G=()=>{$.current&&W()};return kn?.addEventListener("resize",W),kn?.addEventListener("scroll",G),()=>{kn?.removeEventListener("resize",W),kn?.removeEventListener("scroll",G)}},[j]);let Y=S.useCallback(()=>{$.current||k?.()},[k,$]);I5({triggerRef:r,isOpen:x,onClose:k&&Y});var te,ie;return{overlayProps:{style:{position:"absolute",zIndex:1e5,..._?.position,maxHeight:(te=_?.maxHeight)!==null&&te!==void 0?te:"100vh"}},placement:(ie=_?.placement)!==null&&ie!==void 0?ie:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:_?.arrowOffsetLeft,top:_?.arrowOffsetTop}},updatePosition:j}}function A5(e){sn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function R5(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function L5(e){const t=no(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:a,visibility:c}=s(e);i=a!=="none"&&c!=="hidden"&&c!=="collapse"}return i}function M5(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function kT(e,t){return e.nodeName!=="#comment"&&L5(e)&&M5(e,t)&&(!e.parentElement||kT(e.parentElement,e))}function Wx(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function CT(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ET(e){let t=S.useRef({isFocused:!1,observer:null});sn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Bn(r=>{e?.(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=a=>{if(t.current.isFocused=!1,i.disabled){let c=Wx(a);n(c)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let c=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Yg=!1;function D5(e){for(;e&&!BE(e);)e=e.parentElement;let t=no(e),n=t.document.activeElement;if(!n||n===e)return;Yg=!0;let r=!1,i=m=>{(m.target===n||r)&&m.stopImmediatePropagation()},s=m=>{(m.target===n||r)&&(m.stopImmediatePropagation(),!e&&!r&&(r=!0,nl(n),d()))},a=m=>{(m.target===e||r)&&m.stopImmediatePropagation()},c=m=>{(m.target===e||r)&&(m.stopImmediatePropagation(),r||(r=!0,nl(n),d()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",c,!0),t.addEventListener("focus",a,!0);let d=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",c,!0),t.removeEventListener("focus",a,!0),Yg=!1,r=!1},h=requestAnimationFrame(d);return d}let bf="default",gb="",Lg=new WeakMap;function N5(e){if(vv()){if(bf==="default"){const t=Dt(e);gb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}bf="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Lg.set(e,e.style[t]),e.style[t]="none"}}function qS(e){if(vv()){if(bf!=="disabled")return;bf="restoring",setTimeout(()=>{RE(()=>{if(bf==="restoring"){const t=Dt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=gb||""),gb="",bf="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Lg.has(e)){let t=Lg.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Lg.delete(e)}}const Hx=He.createContext({register:()=>{}});Hx.displayName="PressResponderContext";function O5(e,t){return t.get?t.get.call(e):t.value}function PT(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function F5(e,t){var n=PT(e,t,"get");return O5(e,n)}function z5(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function YS(e,t,n){var r=PT(e,t,"set");return z5(e,r,n),n}function j5(e){let t=S.useContext(Hx);if(t){let{register:n,...r}=t;e=Tn(r,e),n()}return ME(t,e.ref),e}var hg=new WeakMap;class mg{continuePropagation(){YS(this,hg,!1)}get shouldStopPropagation(){return F5(this,hg)}constructor(t,n,r,i){JL(this,hg,{writable:!0,value:void 0}),YS(this,hg,!0);var s;let a=(s=i?.target)!==null&&s!==void 0?s:r.currentTarget;const c=a?.getBoundingClientRect();let d,h=0,m,g=null;r.clientX!=null&&r.clientY!=null&&(m=r.clientX,g=r.clientY),c&&(m!=null&&g!=null?(d=m-c.left,h=g-c.top):(d=c.width/2,h=c.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=d,this.y=h}}const XS=Symbol("linkClicked"),QS="react-aria-pressable-style",JS="data-react-aria-pressable";function ol(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:a,isDisabled:c,isPressed:d,preventFocusOnPress:h,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:g,ref:b,...x}=j5(e),[k,P]=S.useState(!1),T=S.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:A}=cx(),M=Bn((W,G)=>{let ee=T.current;if(c||ee.didFirePressStart)return!1;let H=!0;if(ee.isTriggeringEvent=!0,r){let le=new mg("pressstart",G,W);r(le),H=le.shouldStopPropagation}return n&&n(!0),ee.isTriggeringEvent=!1,ee.didFirePressStart=!0,P(!0),H}),F=Bn((W,G,ee=!0)=>{let H=T.current;if(!H.didFirePressStart)return!1;H.didFirePressStart=!1,H.isTriggeringEvent=!0;let le=!0;if(i){let J=new mg("pressend",G,W);i(J),le=J.shouldStopPropagation}if(n&&n(!1),P(!1),t&&ee&&!c){let J=new mg("press",G,W);t(J),le&&(le=J.shouldStopPropagation)}return H.isTriggeringEvent=!1,le}),j=Bn((W,G)=>{let ee=T.current;if(c)return!1;if(s){ee.isTriggeringEvent=!0;let H=new mg("pressup",G,W);return s(H),ee.isTriggeringEvent=!1,H.shouldStopPropagation}return!0}),$=Bn(W=>{let G=T.current;if(G.isPressed&&G.target){G.didFirePressStart&&G.pointerType!=null&&F(lu(G.target,W),G.pointerType,!1),G.isPressed=!1,G.isOverTarget=!1,G.activePointerId=null,G.pointerType=null,A(),g||qS(G.target);for(let ee of G.disposables)ee();G.disposables=[]}}),Y=Bn(W=>{m&&$(W)}),te=Bn(W=>{a?.(W)}),ie=Bn((W,G)=>{if(a){let ee=new MouseEvent("click",W);CT(ee,G),a(Wx(ee))}}),B=S.useMemo(()=>{let W=T.current,G={onKeyDown(H){if(u0(H.nativeEvent,H.currentTarget)&&ai(H.currentTarget,En(H.nativeEvent))){var le;ZS(En(H.nativeEvent),H.key)&&H.preventDefault();let J=!0;if(!W.isPressed&&!H.repeat){W.target=H.currentTarget,W.isPressed=!0,W.pointerType="keyboard",J=M(H,"keyboard");let X=H.currentTarget,V=ae=>{u0(ae,X)&&!ae.repeat&&ai(X,En(ae))&&W.target&&j(lu(W.target,ae),"keyboard")};_(Dt(H.currentTarget),"keyup",Tf(V,ee),!0)}J&&H.stopPropagation(),H.metaKey&&Su()&&((le=W.metaKeyEvents)===null||le===void 0||le.set(H.key,H.nativeEvent))}else H.key==="Meta"&&(W.metaKeyEvents=new Map)},onClick(H){if(!(H&&!ai(H.currentTarget,En(H.nativeEvent)))&&H&&H.button===0&&!W.isTriggeringEvent&&!ku.isOpening){let le=!0;if(c&&H.preventDefault(),!W.ignoreEmulatedMouseEvents&&!W.isPressed&&(W.pointerType==="virtual"||OE(H.nativeEvent))){let J=M(H,"virtual"),X=j(H,"virtual"),V=F(H,"virtual");te(H),le=J&&X&&V}else if(W.isPressed&&W.pointerType!=="keyboard"){let J=W.pointerType||H.nativeEvent.pointerType||"virtual",X=j(lu(H.currentTarget,H),J),V=F(lu(H.currentTarget,H),J,!0);le=X&&V,W.isOverTarget=!1,te(H),$(H)}W.ignoreEmulatedMouseEvents=!1,le&&H.stopPropagation()}}},ee=H=>{var le;if(W.isPressed&&W.target&&u0(H,W.target)){var J;ZS(En(H),H.key)&&H.preventDefault();let V=En(H),ae=ai(W.target,En(H));F(lu(W.target,H),"keyboard",ae),ae&&ie(H,W.target),A(),H.key!=="Enter"&&Gx(W.target)&&ai(W.target,V)&&!H[XS]&&(H[XS]=!0,ku(W.target,H,!1)),W.isPressed=!1,(J=W.metaKeyEvents)===null||J===void 0||J.delete(H.key)}else if(H.key==="Meta"&&(!((le=W.metaKeyEvents)===null||le===void 0)&&le.size)){var X;let V=W.metaKeyEvents;W.metaKeyEvents=void 0;for(let ae of V.values())(X=W.target)===null||X===void 0||X.dispatchEvent(new KeyboardEvent("keyup",ae))}};if(typeof PointerEvent<"u"){G.onPointerDown=J=>{if(J.button!==0||!ai(J.currentTarget,En(J.nativeEvent)))return;if(EM(J.nativeEvent)){W.pointerType="virtual";return}W.pointerType=J.pointerType;let X=!0;if(!W.isPressed){W.isPressed=!0,W.isOverTarget=!0,W.activePointerId=J.pointerId,W.target=J.currentTarget,g||N5(W.target),X=M(J,W.pointerType);let V=En(J.nativeEvent);"releasePointerCapture"in V&&V.releasePointerCapture(J.pointerId),_(Dt(J.currentTarget),"pointerup",H,!1),_(Dt(J.currentTarget),"pointercancel",le,!1)}X&&J.stopPropagation()},G.onMouseDown=J=>{if(ai(J.currentTarget,En(J.nativeEvent))&&J.button===0){if(h){let X=D5(J.target);X&&W.disposables.push(X)}J.stopPropagation()}},G.onPointerUp=J=>{!ai(J.currentTarget,En(J.nativeEvent))||W.pointerType==="virtual"||J.button===0&&!W.isPressed&&j(J,W.pointerType||J.pointerType)},G.onPointerEnter=J=>{J.pointerId===W.activePointerId&&W.target&&!W.isOverTarget&&W.pointerType!=null&&(W.isOverTarget=!0,M(lu(W.target,J),W.pointerType))},G.onPointerLeave=J=>{J.pointerId===W.activePointerId&&W.target&&W.isOverTarget&&W.pointerType!=null&&(W.isOverTarget=!1,F(lu(W.target,J),W.pointerType,!1),Y(J))};let H=J=>{if(J.pointerId===W.activePointerId&&W.isPressed&&J.button===0&&W.target){if(ai(W.target,En(J))&&W.pointerType!=null){let X=!1,V=setTimeout(()=>{W.isPressed&&W.target instanceof HTMLElement&&(X?$(J):(nl(W.target),W.target.click()))},80);_(J.currentTarget,"click",()=>X=!0,!0),W.disposables.push(()=>clearTimeout(V))}else $(J);W.isOverTarget=!1}},le=J=>{$(J)};G.onDragStart=J=>{ai(J.currentTarget,En(J.nativeEvent))&&$(J)}}return G},[_,c,h,A,g,$,Y,F,M,j,te,ie]);return S.useEffect(()=>{if(!b)return;const W=Dt(b.current);if(!W||!W.head||W.getElementById(QS))return;const G=W.createElement("style");G.id=QS,G.textContent=`
18
+ @layer {
19
+ [${JS}] {
20
+ touch-action: pan-x pan-y pinch-zoom;
21
+ }
22
+ }
23
+ `.trim(),W.head.prepend(G)},[b]),S.useEffect(()=>{let W=T.current;return()=>{var G;g||qS((G=W.target)!==null&&G!==void 0?G:void 0);for(let ee of W.disposables)ee();W.disposables=[]}},[g]),{isPressed:d||k,pressProps:Tn(x,B,{[JS]:!0})}}function Gx(e){return e.tagName==="A"&&e.hasAttribute("href")}function u0(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof no(i).HTMLInputElement&&!TT(i,n)||i instanceof no(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&Gx(i))&&n!=="Enter")}function lu(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function B5(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Gx(e)}function ZS(e,t){return e instanceof HTMLInputElement?!TT(e,t):B5(e)}const V5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function TT(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":V5.has(e.type)}let na=null,ih=new Set,jp=new Map,Cu=!1,vb=!1;const U5={Tab:!0,Escape:!0};function Sv(e,t){for(let n of ih)n(e,t)}function K5(e){return!(e.metaKey||!Su()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xg(e){Cu=!0,K5(e)&&(na="keyboard",Sv("keyboard",e))}function Sf(e){na="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Cu=!0,Sv("pointer",e))}function _T(e){OE(e)&&(Cu=!0,na="virtual")}function IT(e){e.target===window||e.target===document||Yg||!e.isTrusted||(!Cu&&!vb&&(na="virtual",Sv("virtual",e)),Cu=!1,vb=!1)}function $T(){Yg||(Cu=!1,vb=!0)}function Qg(e){if(typeof window>"u"||typeof document>"u"||jp.get(no(e)))return;const t=no(e),n=Dt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Cu=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xg,!0),n.addEventListener("keyup",Xg,!0),n.addEventListener("click",_T,!0),t.addEventListener("focus",IT,!0),t.addEventListener("blur",$T,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Sf,!0),n.addEventListener("pointermove",Sf,!0),n.addEventListener("pointerup",Sf,!0)),t.addEventListener("beforeunload",()=>{AT(e)},{once:!0}),jp.set(t,{focus:r})}const AT=(e,t)=>{const n=no(e),r=Dt(e);t&&r.removeEventListener("DOMContentLoaded",t),jp.has(n)&&(n.HTMLElement.prototype.focus=jp.get(n).focus,r.removeEventListener("keydown",Xg,!0),r.removeEventListener("keyup",Xg,!0),r.removeEventListener("click",_T,!0),n.removeEventListener("focus",IT,!0),n.removeEventListener("blur",$T,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Sf,!0),r.removeEventListener("pointermove",Sf,!0),r.removeEventListener("pointerup",Sf,!0)),jp.delete(n))};function W5(e){const t=Dt(e);let n;return t.readyState!=="loading"?Qg(e):(n=()=>{Qg(e)},t.addEventListener("DOMContentLoaded",n)),()=>AT(e,n)}typeof document<"u"&&W5();function qx(){return na!=="pointer"}function oh(){return na}function H5(e){na=e,Sv(e,null)}function XG(){Qg();let[e,t]=S.useState(na);return S.useEffect(()=>{let n=()=>{t(na)};return ih.add(n),()=>{ih.delete(n)}},[]),ph()?null:e}const G5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function q5(e,t,n){let r=Dt(n?.target);const i=typeof window<"u"?no(n?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?no(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?no(n?.target).HTMLElement:HTMLElement,c=typeof window<"u"?no(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!G5.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!U5[n.key])}function Y5(e,t,n){Qg(),S.useEffect(()=>{let r=(i,s)=>{q5(!!n?.isTextInput,i,s)&&e(qx())};return ih.add(r),()=>{ih.delete(r)}},t)}function Eu(e){const t=Dt(e),n=zr(t);if(oh()==="virtual"){let r=n;RE(()=>{zr(t)===r&&e.isConnected&&nl(e)})}else nl(e)}function RT(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=S.useCallback(d=>{if(d.target===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),a=ET(s),c=S.useCallback(d=>{const h=Dt(d.target),m=h?zr(h):zr();d.target===d.currentTarget&&m===En(d.nativeEvent)&&(n&&n(d),i&&i(!0),a(d))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?c:void 0,onBlur:!t&&(r||i)?s:void 0}}}function ek(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function X5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ek(e.onKeyDown),onKeyUp:ek(e.onKeyUp)}}}let Q5=He.createContext(null);function J5(e){let t=S.useContext(Q5)||{};ME(t,e);let{ref:n,...r}=t;return r}function xh(e,t){let{focusProps:n}=RT(e),{keyboardProps:r}=X5(e),i=Tn(n,r),s=J5(t),a=e.isDisabled?{}:s,c=S.useRef(e.autoFocus);S.useEffect(()=>{c.current&&t.current&&Eu(t.current),c.current=!1},[t]);let d=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(d=void 0),{focusableProps:Tn({...i,tabIndex:d},a)}}function Z5({children:e}){let t=S.useMemo(()=>({register:()=>{}}),[]);return He.createElement(Hx.Provider,{value:t},e)}function kv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=S.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:c}=cx(),d=S.useCallback(g=>{g.currentTarget.contains(g.target)&&s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,c(),n&&n(g),i&&i(!1))},[n,i,s,c]),h=ET(d),m=S.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const b=Dt(g.target),x=zr(b);if(!s.current.isFocusWithin&&x===En(g.nativeEvent)){r&&r(g),i&&i(!0),s.current.isFocusWithin=!0,h(g);let k=g.currentTarget;a(b,"focus",P=>{if(s.current.isFocusWithin&&!ai(k,P.target)){let T=new b.defaultView.FocusEvent("blur",{relatedTarget:P.target});CT(T,k);let _=Wx(T);d(_)}},{capture:!0})}},[r,i,h,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:d}}}let yb=!1,c0=0;function eO(){yb=!0,setTimeout(()=>{yb=!1},50)}function tk(e){e.pointerType==="touch"&&eO()}function tO(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",tk),c0++,()=>{c0--,!(c0>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",tk)}}function Pu(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,a]=S.useState(!1),c=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(tO,[]);let{addGlobalListener:d,removeAllGlobalListeners:h}=cx(),{hoverProps:m,triggerHoverEnd:g}=S.useMemo(()=>{let b=(P,T)=>{if(c.pointerType=T,i||T==="touch"||c.isHovered||!P.currentTarget.contains(P.target))return;c.isHovered=!0;let _=P.currentTarget;c.target=_,d(Dt(P.target),"pointerover",A=>{c.isHovered&&c.target&&!ai(c.target,A.target)&&x(A,A.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:_,pointerType:T}),n&&n(!0),a(!0)},x=(P,T)=>{let _=c.target;c.pointerType="",c.target=null,!(T==="touch"||!c.isHovered||!_)&&(c.isHovered=!1,h(),r&&r({type:"hoverend",target:_,pointerType:T}),n&&n(!1),a(!1))},k={};return typeof PointerEvent<"u"&&(k.onPointerEnter=P=>{yb&&P.pointerType==="mouse"||b(P,P.pointerType)},k.onPointerLeave=P=>{!i&&P.currentTarget.contains(P.target)&&x(P,P.pointerType)}),{hoverProps:k,triggerHoverEnd:x}},[t,n,r,i,c,d,h]);return S.useEffect(()=>{i&&g({currentTarget:c.target},c.pointerType)},[i]),{hoverProps:m,isHovered:s}}function nO(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=S.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Bn(d=>{n&&nk(d,t)&&(i&&i(d),s.current.isPointerDown=!0)}),c=Bn(d=>{n&&n(d)});S.useEffect(()=>{let d=s.current;if(r)return;const h=t.current,m=Dt(h);if(typeof PointerEvent<"u"){let g=b=>{d.isPointerDown&&nk(b,t)&&c(b),d.isPointerDown=!1};return m.addEventListener("pointerdown",a,!0),m.addEventListener("click",g,!0),()=>{m.removeEventListener("pointerdown",a,!0),m.removeEventListener("click",g,!0)}}},[t,r,a,c])}function nk(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const rk=He.createContext(null),bb="react-aria-focus-scope-restore";let Qt=null;function rO(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=S.useRef(null),a=S.useRef(null),c=S.useRef([]),{parentNode:d}=S.useContext(rk)||{},h=S.useMemo(()=>new wb({scopeRef:c}),[c]);sn(()=>{let b=d||Mn.root;if(Mn.getTreeNode(b.scopeRef)&&Qt&&!Jg(Qt,b.scopeRef)){let x=Mn.getTreeNode(Qt);x&&(b=x)}b.addChild(h),Mn.addNode(h)},[h,d]),sn(()=>{let b=Mn.getTreeNode(c);b&&(b.contain=!!n)},[n]),sn(()=>{var b;let x=(b=s.current)===null||b===void 0?void 0:b.nextSibling,k=[],P=T=>T.stopPropagation();for(;x&&x!==a.current;)k.push(x),x.addEventListener(bb,P),x=x.nextSibling;return c.current=k,()=>{for(let T of k)T.removeEventListener(bb,P)}},[t]),lO(c,r,n),oO(c,n),uO(c,r,n),aO(c,i),S.useEffect(()=>{const b=zr(Dt(c.current?c.current[0]:void 0));let x=null;if(io(b,c.current)){for(let k of Mn.traverse())k.scopeRef&&io(b,k.scopeRef.current)&&(x=k);x===Mn.getTreeNode(c)&&(Qt=x.scopeRef)}},[c]),sn(()=>()=>{var b,x,k;let P=(k=(x=Mn.getTreeNode(c))===null||x===void 0||(b=x.parent)===null||b===void 0?void 0:b.scopeRef)!==null&&k!==void 0?k:null;(c===Qt||Jg(c,Qt))&&(!P||Mn.getTreeNode(P))&&(Qt=P),Mn.removeTreeNode(c)},[c]);let m=S.useMemo(()=>iO(c),[]),g=S.useMemo(()=>({focusManager:m,parentNode:h}),[h,m]);return He.createElement(rk.Provider,{value:g},He.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,He.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function iO(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var c;let d=r||zr(Dt((c=n[0])!==null&&c!==void 0?c:void 0)),h=n[0].previousElementSibling,m=yu(n),g=Js(m,{tabbable:i,accept:a},n);g.currentNode=io(d,n)?d:h;let b=g.nextNode();return!b&&s&&(g.currentNode=h,b=g.nextNode()),b&&Qs(b,!0),b},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var c;let d=r||zr(Dt((c=n[0])!==null&&c!==void 0?c:void 0)),h=n[n.length-1].nextElementSibling,m=yu(n),g=Js(m,{tabbable:i,accept:a},n);g.currentNode=io(d,n)?d:h;let b=g.previousNode();return!b&&s&&(g.currentNode=h,b=g.previousNode()),b&&Qs(b,!0),b},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=yu(n),a=Js(s,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let c=a.nextNode();return c&&Qs(c,!0),c},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=yu(n),a=Js(s,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let c=a.previousNode();return c&&Qs(c,!0),c}}}function yu(e){return e[0].parentElement}function Ap(e){let t=Mn.getTreeNode(Qt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function oO(e,t){let n=S.useRef(void 0),r=S.useRef(void 0);sn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=Dt(i?i[0]:void 0);let a=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!Ap(e)||h.isComposing)return;let m=zr(s),g=e.current;if(!g||!io(m,g))return;let b=yu(g),x=Js(b,{tabbable:!0},g);if(!m)return;x.currentNode=m;let k=h.shiftKey?x.previousNode():x.nextNode();k||(x.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,k=h.shiftKey?x.previousNode():x.nextNode()),h.preventDefault(),k&&Qs(k,!0)},c=h=>{(!Qt||Jg(Qt,e))&&io(En(h),e.current)?(Qt=e,n.current=En(h)):Ap(e)&&!Qa(En(h),e)?n.current?n.current.focus():Qt&&Qt.current&&xb(Qt.current):Ap(e)&&(n.current=En(h))},d=h=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let m=oh(),g=(m==="virtual"||m===null)&&lx()&&IE(),b=zr(s);if(!g&&b&&Ap(e)&&!Qa(b,e)){Qt=e;let k=En(h);if(k&&k.isConnected){var x;n.current=k,(x=n.current)===null||x===void 0||x.focus()}else Qt.current&&xb(Qt.current)}})};return s.addEventListener("keydown",a,!1),s.addEventListener("focusin",c,!1),i?.forEach(h=>h.addEventListener("focusin",c,!1)),i?.forEach(h=>h.addEventListener("focusout",d,!1)),()=>{s.removeEventListener("keydown",a,!1),s.removeEventListener("focusin",c,!1),i?.forEach(h=>h.removeEventListener("focusin",c,!1)),i?.forEach(h=>h.removeEventListener("focusout",d,!1))}},[e,t]),sn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function LT(e){return Qa(e)}function io(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Qa(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Mn.traverse(Mn.getTreeNode(t)))if(n&&io(e,n.current))return!0;return!1}function sO(e){return Qa(e,Qt)}function Jg(e,t){var n;let r=(n=Mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Qs(e,t=!1){if(e!=null&&!t)try{Eu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function MT(e,t=!0){let n=e[0].previousElementSibling,r=yu(e),i=Js(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=yu(e),i=Js(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function xb(e,t=!0){Qs(MT(e,t))}function aO(e,t){const n=He.useRef(t);S.useEffect(()=>{if(n.current){Qt=e;const r=Dt(e.current?e.current[0]:void 0);!io(zr(r),Qt.current)&&e.current&&xb(e.current)}n.current=!1},[e])}function lO(e,t,n){sn(()=>{if(t||n)return;let r=e.current;const i=Dt(r?r[0]:void 0);let s=a=>{let c=En(a);io(c,e.current)?Qt=e:LT(c)||(Qt=null)};return i.addEventListener("focusin",s,!1),r?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,t,n])}function ik(e){let t=Mn.getTreeNode(Qt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function uO(e,t,n){const r=S.useRef(typeof document<"u"?zr(Dt(e.current?e.current[0]:void 0)):null);sn(()=>{let i=e.current;const s=Dt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Qt||Jg(Qt,e))&&io(zr(s),e.current)&&(Qt=e)};return s.addEventListener("focusin",a,!1),i?.forEach(c=>c.addEventListener("focusin",a,!1)),()=>{s.removeEventListener("focusin",a,!1),i?.forEach(c=>c.removeEventListener("focusin",a,!1))}},[e,n]),sn(()=>{const i=Dt(e.current?e.current[0]:void 0);if(!t)return;let s=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Ap(e)||a.isComposing)return;let c=i.activeElement;if(!Qa(c,e)||!ik(e))return;let d=Mn.getTreeNode(e);if(!d)return;let h=d.nodeToRestore,m=Js(i.body,{tabbable:!0});m.currentNode=c;let g=a.shiftKey?m.previousNode():m.nextNode();if((!h||!h.isConnected||h===i.body)&&(h=void 0,d.nodeToRestore=void 0),(!g||!Qa(g,e))&&h){m.currentNode=h;do g=a.shiftKey?m.previousNode():m.nextNode();while(Qa(g,e));a.preventDefault(),a.stopPropagation(),g?Qs(g,!0):LT(h)?Qs(h,!0):c.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),sn(()=>{const i=Dt(e.current?e.current[0]:void 0);if(!t)return;let s=Mn.getTreeNode(e);if(s){var a;return s.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let c=Mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,h=zr(i);if(t&&d&&(h&&Qa(h,e)||h===i.body&&ik(e))){let m=Mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let g=m.getTreeNode(e);for(;g;){if(g.nodeToRestore&&g.nodeToRestore.isConnected){ok(g.nodeToRestore);return}g=g.parent}for(g=m.getTreeNode(e);g;){if(g.scopeRef&&g.scopeRef.current&&Mn.getTreeNode(g.scopeRef)){let b=MT(g.scopeRef.current,!0);ok(b);return}g=g.parent}}})}}}},[e,t])}function ok(e){e.dispatchEvent(new CustomEvent(bb,{bubbles:!0,cancelable:!0}))&&Qs(e)}function Js(e,t,n){let r=t?.tabbable?$M:BE,i=e?.nodeType===Node.ELEMENT_NODE?e:null,s=Dt(i),a=aM(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(c){var d;return!(t==null||(d=t.from)===null||d===void 0)&&d.contains(c)?NodeFilter.FILTER_REJECT:r(c)&&kT(c)&&(!n||io(c,n))&&(!t?.accept||t.accept(c))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}class Yx{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let s=new wb({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&io(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Yx;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new wb({scopeRef:null}),this.fastMap.set(null,this.root)}}class wb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Mn=new Yx;function Tu(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=S.useRef({isFocused:!1,isFocusVisible:t||qx()}),[s,a]=S.useState(!1),[c,d]=S.useState(()=>i.current.isFocused&&i.current.isFocusVisible),h=S.useCallback(()=>d(i.current.isFocused&&i.current.isFocusVisible),[]),m=S.useCallback(x=>{i.current.isFocused=x,a(x),h()},[h]);Y5(x=>{i.current.isFocusVisible=x,h()},[],{isTextInput:n});let{focusProps:g}=RT({isDisabled:r,onFocusChange:m}),{focusWithinProps:b}=kv({isDisabled:!r,onFocusWithinChange:m});return{isFocused:s,isFocusVisible:c,focusProps:r?b:g}}function cO(e){let t=pO(Dt(e));t!==e&&(t&&fO(t,e),e&&dO(e,t))}function fO(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function dO(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function pO(e){let t=zr(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const f0=typeof document<"u"&&window.visualViewport,hO=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let gg=0,d0;function mO(e={}){let{isDisabled:t}=e;sn(()=>{if(!t)return gg++,gg===1&&(vv()?d0=vO():d0=gO()),()=>{gg--,gg===0&&d0()}},[t])}function gO(){let e=window.innerWidth-document.documentElement.clientWidth;return Tf(e>0&&("scrollbarGutter"in document.documentElement.style?bu(document.documentElement,"scrollbarGutter","stable"):bu(document.documentElement,"paddingRight",`${e}px`)),bu(document.documentElement,"overflow","hidden"))}function vO(){let e,t,n=h=>{e=DE(h.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=bu(e,"overscrollBehavior","contain"))},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&h.preventDefault()},i=()=>{t&&t()},s=h=>{let m=h.target;yO(m)&&(c(),m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",f0&&(f0.height<window.innerHeight?requestAnimationFrame(()=>{sk(m)}):f0.addEventListener("resize",()=>sk(m),{once:!0}))}))},a=null,c=()=>{if(a)return;let h=()=>{window.scrollTo(0,0)},m=window.pageXOffset,g=window.pageYOffset;a=Tf(gp(window,"scroll",h),bu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),bu(document.documentElement,"overflow","hidden"),bu(document.body,"marginTop",`-${g}px`),()=>{window.scrollTo(m,g)}),window.scrollTo(0,0)},d=Tf(gp(document,"touchstart",n,{passive:!1,capture:!0}),gp(document,"touchmove",r,{passive:!1,capture:!0}),gp(document,"touchend",i,{passive:!1,capture:!0}),gp(document,"focus",s,!0));return()=>{t?.(),a?.(),d()}}function bu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function gp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function sk(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=DE(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>i+n.clientHeight&&(r.scrollTop+=s-i)}n=r.parentElement}}function yO(e){return e instanceof HTMLInputElement&&!hO.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const bO=S.createContext({});function DT(){var e;return(e=S.useContext(bO))!==null&&e!==void 0?e:{}}const Sb=He.createContext(null);function xO(e){let{children:t}=e,n=S.useContext(Sb),[r,i]=S.useState(0),s=S.useMemo(()=>({parent:n,modalCount:r,addModal(){i(a=>a+1),n&&n.addModal()},removeModal(){i(a=>a-1),n&&n.removeModal()}}),[n,r]);return He.createElement(Sb.Provider,{value:s},t)}function wO(){let e=S.useContext(Sb);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function SO(e){let{modalProviderProps:t}=wO();return He.createElement("div",{"data-overlay-container":!0,...e,...t})}function NT(e){return He.createElement(xO,null,He.createElement(SO,e))}function ak(e){let t=ph(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=DT();if(!e.portalContainer&&i&&(n=i()),He.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let s=He.createElement(NT,r);return jE.createPortal(s,n)}var OT={};OT={dismiss:"تجاهل"};var FT={};FT={dismiss:"Отхвърляне"};var zT={};zT={dismiss:"Odstranit"};var jT={};jT={dismiss:"Luk"};var BT={};BT={dismiss:"Schließen"};var VT={};VT={dismiss:"Απόρριψη"};var UT={};UT={dismiss:"Dismiss"};var KT={};KT={dismiss:"Descartar"};var WT={};WT={dismiss:"Lõpeta"};var HT={};HT={dismiss:"Hylkää"};var GT={};GT={dismiss:"Rejeter"};var qT={};qT={dismiss:"התעלם"};var YT={};YT={dismiss:"Odbaci"};var XT={};XT={dismiss:"Elutasítás"};var QT={};QT={dismiss:"Ignora"};var JT={};JT={dismiss:"閉じる"};var ZT={};ZT={dismiss:"무시"};var e_={};e_={dismiss:"Atmesti"};var t_={};t_={dismiss:"Nerādīt"};var n_={};n_={dismiss:"Lukk"};var r_={};r_={dismiss:"Negeren"};var i_={};i_={dismiss:"Zignoruj"};var o_={};o_={dismiss:"Descartar"};var s_={};s_={dismiss:"Dispensar"};var a_={};a_={dismiss:"Revocare"};var l_={};l_={dismiss:"Пропустить"};var u_={};u_={dismiss:"Zrušiť"};var c_={};c_={dismiss:"Opusti"};var f_={};f_={dismiss:"Odbaci"};var d_={};d_={dismiss:"Avvisa"};var p_={};p_={dismiss:"Kapat"};var h_={};h_={dismiss:"Скасувати"};var m_={};m_={dismiss:"取消"};var g_={};g_={dismiss:"關閉"};var v_={};v_={"ar-AE":OT,"bg-BG":FT,"cs-CZ":zT,"da-DK":jT,"de-DE":BT,"el-GR":VT,"en-US":UT,"es-ES":KT,"et-EE":WT,"fi-FI":HT,"fr-FR":GT,"he-IL":qT,"hr-HR":YT,"hu-HU":XT,"it-IT":QT,"ja-JP":JT,"ko-KR":ZT,"lt-LT":e_,"lv-LV":t_,"nb-NO":n_,"nl-NL":r_,"pl-PL":i_,"pt-BR":o_,"pt-PT":s_,"ro-RO":a_,"ru-RU":l_,"sk-SK":u_,"sl-SI":c_,"sr-SP":f_,"sv-SE":d_,"tr-TR":p_,"uk-UA":h_,"zh-CN":m_,"zh-TW":g_};const lk={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function kO(e={}){let{style:t,isFocusable:n}=e,[r,i]=S.useState(!1),{focusWithinProps:s}=kv({isDisabled:!n,onFocusWithinChange:c=>i(c)}),a=S.useMemo(()=>r?t:t?{...lk,...t}:lk,[r]);return{visuallyHiddenProps:{...s,style:a}}}function CO(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:a}=kO(e);return He.createElement(n,Tn(s,a),t)}function EO(e){return e&&e.__esModule?e.default:e}function uk(e){let{onDismiss:t,...n}=e,r=XL(EO(v_),"@react-aria/overlays"),i=LE(n,r.format("dismiss")),s=()=>{t&&t()};return He.createElement(CO,null,He.createElement("button",{...i,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}let vp=new WeakMap,Ji=[];function PO(e,t=document.body){let n=new Set(e),r=new Set,i=d=>{for(let b of d.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(b);let h=b=>{if(n.has(b)||b.parentElement&&r.has(b.parentElement)&&b.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let x of n)if(b.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},m=document.createTreeWalker(d,NodeFilter.SHOW_ELEMENT,{acceptNode:h}),g=h(d);if(g===NodeFilter.FILTER_ACCEPT&&s(d),g!==NodeFilter.FILTER_REJECT){let b=m.nextNode();for(;b!=null;)s(b),b=m.nextNode()}},s=d=>{var h;let m=(h=vp.get(d))!==null&&h!==void 0?h:0;d.getAttribute("aria-hidden")==="true"&&m===0||(m===0&&d.setAttribute("aria-hidden","true"),r.add(d),vp.set(d,m+1))};Ji.length&&Ji[Ji.length-1].disconnect(),i(t);let a=new MutationObserver(d=>{for(let h of d)if(!(h.type!=="childList"||h.addedNodes.length===0)&&![...n,...r].some(m=>m.contains(h.target))){for(let m of h.removedNodes)m instanceof Element&&(n.delete(m),r.delete(m));for(let m of h.addedNodes)(m instanceof HTMLElement||m instanceof SVGElement)&&(m.dataset.liveAnnouncer==="true"||m.dataset.reactAriaTopLayer==="true")?n.add(m):m instanceof Element&&i(m)}});a.observe(t,{childList:!0,subtree:!0});let c={visibleNodes:n,hiddenNodes:r,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Ji.push(c),()=>{a.disconnect();for(let d of r){let h=vp.get(d);h!=null&&(h===1?(d.removeAttribute("aria-hidden"),vp.delete(d)):vp.set(d,h-1))}c===Ji[Ji.length-1]?(Ji.pop(),Ji.length&&Ji[Ji.length-1].observe()):Ji.splice(Ji.indexOf(c),1)}}const y_=He.createContext(null);function TO(e){let t=ph(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=S.useState(!1),a=S.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:c}=DT();if(!e.portalContainer&&c&&(n=c()),!n)return null;let d=e.children;return e.disableFocusManagement||(d=He.createElement(rO,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},d)),d=He.createElement(y_.Provider,{value:a},He.createElement(Z5,null,d)),jE.createPortal(d,n)}function b_(){let e=S.useContext(y_),t=e?.setContain;sn(()=>{t?.(!0)},[t])}var _O=({children:e,navigate:t,disableAnimation:n,useHref:r,disableRipple:i=!1,skipFramerMotionAnimations:s=n,reducedMotion:a="never",validationBehavior:c,locale:d="en-US",labelPlacement:h,defaultDates:m,createCalendar:g,spinnerVariant:b,...x})=>{let k=e;t&&(k=L.jsx(bM,{navigate:t,useHref:r,children:k}));const P=S.useMemo(()=>(n&&s&&(fs.skipAnimations=!0),{createCalendar:g,defaultDates:m,disableAnimation:n,disableRipple:i,validationBehavior:c,labelPlacement:h,spinnerVariant:b}),[g,m?.maxDate,m?.minDate,n,i,c,h,b]);return L.jsx($L,{value:P,children:L.jsx(VL,{locale:d,children:L.jsx(K3,{reducedMotion:a,children:L.jsx(NT,{...x,children:k})})})})};function QG(e){const t=ci(),n=t?.labelPlacement;return S.useMemo(()=>{var r,i;const s=(i=(r=e.labelPlacement)!=null?r:n)!=null?i:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,n,e.label])}function IO(e){const t=ci(),n=t?.labelPlacement;return S.useMemo(()=>{var r,i;const s=(i=(r=e.labelPlacement)!=null?r:n)!=null?i:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,n,e.label])}function jr(e){return S.forwardRef(e)}var oa=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((i,s)=>s in e?{...i,[s]:e[s]}:i,{});return n?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,a)=>({...s,[a]:e[a]}),{}),r]:[e,r]},$O={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},AO={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},RO={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},LO={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},MO={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},DO={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},NO={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},Te={solid:$O,shadow:AO,bordered:RO,flat:LO,faded:MO,light:DO,ghost:NO},OO={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},FO={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},zO={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},jO={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},is="250ms",BO={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":is},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":is},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":is},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":is},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":is},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":is},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":is},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":is},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":is},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":is}},VO={...FO,...BO,...zO,...jO,...OO},vg=["small","medium","large"],kb={theme:{spacing:["divider"],radius:vg},classGroups:{shadow:[{shadow:vg}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...vg]}],"border-w":[{border:vg}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys(VO).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},ck=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,oi=e=>!e||typeof e!="object"||Object.keys(e).length===0,UO=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function x_(e,t){e.forEach(function(n){Array.isArray(n)?x_(n,t):t.push(n)})}function w_(e){let t=[];return x_(e,t),t}var S_=(...e)=>w_(e).filter(Boolean),k_=(e,t)=>{let n={},r=Object.keys(e),i=Object.keys(t);for(let s of r)if(i.includes(s)){let a=e[s],c=t[s];Array.isArray(a)||Array.isArray(c)?n[s]=S_(c,a):typeof a=="object"&&typeof c=="object"?n[s]=k_(a,c):n[s]=c+" "+a}else n[s]=e[s];for(let s of i)r.includes(s)||(n[s]=t[s]);return n},fk=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const Xx="-",KO=e=>{const t=HO(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const c=a.split(Xx);return c[0]===""&&c.length!==1&&c.shift(),C_(c,t)||WO(a)},getConflictingClassGroupIds:(a,c)=>{const d=n[a]||[];return c&&r[a]?[...d,...r[a]]:d}}},C_=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?C_(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Xx);return t.validators.find(({validator:a})=>a(s))?.classGroupId},dk=/^\[(.+)\]$/,WO=e=>{if(dk.test(e)){const t=dk.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},HO=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)Cb(n[i],r,i,t);return r},Cb=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:pk(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(GO(i)){Cb(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,a])=>{Cb(a,pk(t,s),n,r)})})},pk=(e,t)=>{let n=e;return t.split(Xx).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},GO=e=>e.isThemeGetter,qO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return i(s,a),a},set(s,a){n.has(s)?n.set(s,a):i(s,a)}}},Eb="!",Pb=":",YO=Pb.length,XO=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let a=0,c=0,d=0,h;for(let k=0;k<i.length;k++){let P=i[k];if(a===0&&c===0){if(P===Pb){s.push(i.slice(d,k)),d=k+YO;continue}if(P==="/"){h=k;continue}}P==="["?a++:P==="]"?a--:P==="("?c++:P===")"&&c--}const m=s.length===0?i:i.substring(d),g=QO(m),b=g!==m,x=h&&h>d?h-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:x}};if(t){const i=t+Pb,s=r;r=a=>a.startsWith(i)?s(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},QO=e=>e.endsWith(Eb)?e.substring(0,e.length-1):e.startsWith(Eb)?e.substring(1):e,JO=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(i.push(...s.sort(),a),s=[]):s.push(a)}),i.push(...s.sort()),i}},ZO=e=>({cache:qO(e.cacheSize),parseClassName:XO(e),sortModifiers:JO(e),...KO(e)}),eF=/\s+/,tF=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],c=e.trim().split(eF);let d="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:g,modifiers:b,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:P}=n(m);if(g){d=m+(d.length>0?" "+d:d);continue}let T=!!P,_=r(T?k.substring(0,P):k);if(!_){if(!T){d=m+(d.length>0?" "+d:d);continue}if(_=r(k),!_){d=m+(d.length>0?" "+d:d);continue}T=!1}const A=s(b).join(":"),M=x?A+Eb:A,F=M+_;if(a.includes(F))continue;a.push(F);const j=i(_,T);for(let $=0;$<j.length;++$){const Y=j[$];a.push(M+Y)}d=m+(d.length>0?" "+d:d)}return d};function nF(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=E_(t))&&(r&&(r+=" "),r+=n);return r}const E_=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=E_(e[r]))&&(n&&(n+=" "),n+=t);return n};function Tb(e,...t){let n,r,i,s=a;function a(d){const h=t.reduce((m,g)=>g(m),e());return n=ZO(h),r=n.cache.get,i=n.cache.set,s=c,c(d)}function c(d){const h=r(d);if(h)return h;const m=tF(d,n);return i(d,m),m}return function(){return s(nF.apply(null,arguments))}}const Zn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},P_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rF=/^\d+\/\d+$/,iF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,af=e=>rF.test(e),yt=e=>!!e&&!Number.isNaN(Number(e)),uu=e=>!!e&&Number.isInteger(Number(e)),hk=e=>e.endsWith("%")&&yt(e.slice(0,-1)),Ga=e=>iF.test(e),uF=()=>!0,cF=e=>oF.test(e)&&!sF.test(e),Qx=()=>!1,fF=e=>aF.test(e),dF=e=>lF.test(e),pF=e=>!je(e)&&!Be(e),hF=e=>Ff(e,$_,Qx),je=e=>P_.test(e),cu=e=>Ff(e,A_,cF),p0=e=>Ff(e,EF,yt),mF=e=>Ff(e,__,Qx),gF=e=>Ff(e,I_,dF),vF=e=>Ff(e,Qx,fF),Be=e=>T_.test(e),yg=e=>zf(e,A_),yF=e=>zf(e,PF),bF=e=>zf(e,__),xF=e=>zf(e,$_),wF=e=>zf(e,I_),SF=e=>zf(e,TF,!0),Ff=(e,t,n)=>{const r=P_.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zf=(e,t,n=!1)=>{const r=T_.exec(e);return r?r[1]?t(r[1]):n:!1},__=e=>e==="position",kF=new Set(["image","url"]),I_=e=>kF.has(e),CF=new Set(["length","size","percentage"]),$_=e=>CF.has(e),A_=e=>e==="length",EF=e=>e==="number",PF=e=>e==="family-name",TF=e=>e==="shadow",_b=()=>{const e=Zn("color"),t=Zn("font"),n=Zn("text"),r=Zn("font-weight"),i=Zn("tracking"),s=Zn("leading"),a=Zn("breakpoint"),c=Zn("container"),d=Zn("spacing"),h=Zn("radius"),m=Zn("shadow"),g=Zn("inset-shadow"),b=Zn("drop-shadow"),x=Zn("blur"),k=Zn("perspective"),P=Zn("aspect"),T=Zn("ease"),_=Zn("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],$=()=>[Be,je,d],Y=()=>[af,"full","auto",...$()],te=()=>[uu,"none","subgrid",Be,je],ie=()=>["auto",{span:["full",uu,Be,je]},Be,je],B=()=>[uu,"auto",Be,je],W=()=>["auto","min","max","fr",Be,je],G=()=>["start","end","center","between","around","evenly","stretch","baseline"],ee=()=>["start","end","center","stretch"],H=()=>["auto",...$()],le=()=>[af,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],J=()=>[e,Be,je],X=()=>[hk,cu],V=()=>["","none","full",h,Be,je],ae=()=>["",yt,yg,cu],D=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["","none",x,Be,je],z=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Be,je],me=()=>["none",yt,Be,je],Ce=()=>["none",yt,Be,je],ye=()=>[yt,Be,je],Fe=()=>[af,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ga],breakpoint:[Ga],color:[uF],container:[Ga],"drop-shadow":[Ga],ease:["in","out","in-out"],font:[pF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ga],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ga],shadow:[Ga],spacing:["px",yt],text:[Ga],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",af,je,Be,P]}],container:["container"],columns:[{columns:[yt,je,Be,c]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...M(),je,Be]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[uu,"auto",Be,je]}],basis:[{basis:[af,"full","auto",c,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[yt,af,"auto","initial","none",je]}],grow:[{grow:["",yt,Be,je]}],shrink:[{shrink:["",yt,Be,je]}],order:[{order:[uu,"first","last","none",Be,je]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...ee(),"baseline"]}],"align-self":[{self:["auto",...ee(),"baseline"]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],w:[{w:[c,"screen",...le()]}],"min-w":[{"min-w":[c,"screen","none",...le()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...le()]}],h:[{h:["screen",...le()]}],"min-h":[{"min-h":["screen","none",...le()]}],"max-h":[{"max-h":["screen",...le()]}],"font-size":[{text:["base",n,yg,cu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Be,p0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hk,je]}],"font-family":[{font:[yF,je,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Be,je]}],"line-clamp":[{"line-clamp":[yt,"none",Be,p0]}],leading:[{leading:[s,...$()]}],"list-image":[{"list-image":["none",Be,je]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Be,je]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:[yt,"from-font","auto",Be,cu]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[yt,"auto",Be,je]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Be,je]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Be,je]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),bF,mF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",xF,hF]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},uu,Be,je],radial:["",Be,je],conic:[uu,Be,je]},wF,gF]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...D(),"hidden","none"]}],"divide-style":[{divide:[...D(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...D(),"none","hidden"]}],"outline-offset":[{"outline-offset":[yt,Be,je]}],"outline-w":[{outline:["",yt,yg,cu]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,SF,vF]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",Be,je,g]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[yt,cu]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":J()}],opacity:[{opacity:[yt,Be,je]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none",Be,je]}],blur:[{blur:oe()}],brightness:[{brightness:[yt,Be,je]}],contrast:[{contrast:[yt,Be,je]}],"drop-shadow":[{"drop-shadow":["","none",b,Be,je]}],grayscale:[{grayscale:["",yt,Be,je]}],"hue-rotate":[{"hue-rotate":[yt,Be,je]}],invert:[{invert:["",yt,Be,je]}],saturate:[{saturate:[yt,Be,je]}],sepia:[{sepia:["",yt,Be,je]}],"backdrop-filter":[{"backdrop-filter":["","none",Be,je]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[yt,Be,je]}],"backdrop-contrast":[{"backdrop-contrast":[yt,Be,je]}],"backdrop-grayscale":[{"backdrop-grayscale":["",yt,Be,je]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[yt,Be,je]}],"backdrop-invert":[{"backdrop-invert":["",yt,Be,je]}],"backdrop-opacity":[{"backdrop-opacity":[yt,Be,je]}],"backdrop-saturate":[{"backdrop-saturate":[yt,Be,je]}],"backdrop-sepia":[{"backdrop-sepia":["",yt,Be,je]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Be,je]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[yt,"initial",Be,je]}],ease:[{ease:["linear","initial",T,Be,je]}],delay:[{delay:[yt,Be,je]}],animate:[{animate:["none",_,Be,je]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,Be,je]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[Be,je,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fe()}],"translate-x":[{"translate-x":Fe()}],"translate-y":[{"translate-y":Fe()}],"translate-z":[{"translate-z":Fe()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Be,je]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Be,je]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[yt,yg,cu,p0]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},_F=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:s={}})=>(Rp(e,"cacheSize",t),Rp(e,"prefix",n),Rp(e,"experimentalParseClassName",r),bg(e.theme,s.theme),bg(e.classGroups,s.classGroups),bg(e.conflictingClassGroups,s.conflictingClassGroups),bg(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Rp(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),xg(e.theme,i.theme),xg(e.classGroups,i.classGroups),xg(e.conflictingClassGroups,i.conflictingClassGroups),xg(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),R_(e,i,"orderSensitiveModifiers"),e),Rp=(e,t,n)=>{n!==void 0&&(e[t]=n)},bg=(e,t)=>{if(t)for(const n in t)Rp(e,n,t[n])},xg=(e,t)=>{if(t)for(const n in t)R_(e,t,n)},R_=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},L_=(e,...t)=>typeof e=="function"?Tb(_b,e,...t):Tb(()=>_F(_b(),e),...t),IF=Tb(_b);var $F={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},M_=e=>e||void 0,sh=(...e)=>M_(w_(e).filter(Boolean).join(" ")),h0=null,Xs={},Ib=!1,yp=(...e)=>t=>t.twMerge?((!h0||Ib)&&(Ib=!1,h0=oi(Xs)?IF:L_({...Xs,extend:{theme:Xs.theme,classGroups:Xs.classGroups,conflictingClassGroupModifiers:Xs.conflictingClassGroupModifiers,conflictingClassGroups:Xs.conflictingClassGroups,...Xs.extend}})),M_(h0(sh(e)))):sh(e),mk=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=sh(e[n],t[n]):e[n]=t[n];return e},AF=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:s=[],compoundSlots:a=[],defaultVariants:c={}}=e,d={...$F,...t},h=n!=null&&n.base?sh(n.base,e?.base):e?.base,m=n!=null&&n.variants&&!oi(n.variants)?k_(i,n.variants):i,g=n!=null&&n.defaultVariants&&!oi(n.defaultVariants)?{...n.defaultVariants,...c}:c;!oi(d.twMergeConfig)&&!UO(d.twMergeConfig,Xs)&&(Ib=!0,Xs=d.twMergeConfig);let b=oi(n?.slots),x=oi(r)?{}:{base:sh(e?.base,b&&n?.base),...r},k=b?x:mk({...n?.slots},oi(x)?{base:e?.base}:x),P=oi(n?.compoundVariants)?s:S_(n?.compoundVariants,s),T=A=>{if(oi(m)&&oi(r)&&b)return yp(h,A?.class,A?.className)(d);if(P&&!Array.isArray(P))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof P}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let M=(G,ee,H=[],le)=>{let J=H;if(typeof ee=="string")J=J.concat(fk(ee).split(" ").map(X=>`${G}:${X}`));else if(Array.isArray(ee))J=J.concat(ee.reduce((X,V)=>X.concat(`${G}:${V}`),[]));else if(typeof ee=="object"&&typeof le=="string"){for(let X in ee)if(ee.hasOwnProperty(X)&&X===le){let V=ee[X];if(V&&typeof V=="string"){let ae=fk(V);J[le]?J[le]=J[le].concat(ae.split(" ").map(D=>`${G}:${D}`)):J[le]=ae.split(" ").map(D=>`${G}:${D}`)}else Array.isArray(V)&&V.length>0&&(J[le]=V.reduce((ae,D)=>ae.concat(`${G}:${D}`),[]))}}return J},F=(G,ee=m,H=null,le=null)=>{var J;let X=ee[G];if(!X||oi(X))return null;let V=(J=le?.[G])!=null?J:A?.[G];if(V===null)return null;let ae=ck(V),D=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,U=g?.[G],oe=[];if(typeof ae=="object"&&D)for(let[Ce,ye]of Object.entries(ae)){let Fe=X[ye];if(Ce==="initial"){U=ye;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(Ce)||(oe=M(Ce,Fe,oe,H))}let z=ae!=null&&typeof ae!="object"?ae:ck(U),me=X[z||"false"];return typeof oe=="object"&&typeof H=="string"&&oe[H]?mk(oe,me):oe.length>0?(oe.push(me),H==="base"?oe.join(" "):oe):me},j=()=>m?Object.keys(m).map(G=>F(G,m)):null,$=(G,ee)=>{if(!m||typeof m!="object")return null;let H=new Array;for(let le in m){let J=F(le,m,G,ee),X=G==="base"&&typeof J=="string"?J:J&&J[G];X&&(H[H.length]=X)}return H},Y={};for(let G in A)A[G]!==void 0&&(Y[G]=A[G]);let te=(G,ee)=>{var H;let le=typeof A?.[G]=="object"?{[G]:(H=A[G])==null?void 0:H.initial}:{};return{...g,...Y,...le,...ee}},ie=(G=[],ee)=>{let H=[];for(let{class:le,className:J,...X}of G){let V=!0;for(let[ae,D]of Object.entries(X)){let U=te(ae,ee)[ae];if(Array.isArray(D)){if(!D.includes(U)){V=!1;break}}else{let oe=z=>z==null||z===!1;if(oe(D)&&oe(U))continue;if(U!==D){V=!1;break}}}V&&(le&&H.push(le),J&&H.push(J))}return H},B=G=>{let ee=ie(P,G);if(!Array.isArray(ee))return ee;let H={};for(let le of ee)if(typeof le=="string"&&(H.base=yp(H.base,le)(d)),typeof le=="object")for(let[J,X]of Object.entries(le))H[J]=yp(H[J],X)(d);return H},W=G=>{if(a.length<1)return null;let ee={};for(let{slots:H=[],class:le,className:J,...X}of a){if(!oi(X)){let V=!0;for(let ae of Object.keys(X)){let D=te(ae,G)[ae];if(D===void 0||(Array.isArray(X[ae])?!X[ae].includes(D):X[ae]!==D)){V=!1;break}}if(!V)continue}for(let V of H)ee[V]=ee[V]||[],ee[V].push([le,J])}return ee};if(!oi(r)||!b){let G={};if(typeof k=="object"&&!oi(k))for(let ee of Object.keys(k))G[ee]=H=>{var le,J;return yp(k[ee],$(ee,H),((le=B(H))!=null?le:[])[ee],((J=W(H))!=null?J:[])[ee],H?.class,H?.className)(d)};return G}return yp(h,j(),ie(P),A?.class,A?.className)(d)},_=()=>{if(!(!m||typeof m!="object"))return Object.keys(m)};return T.variantKeys=_(),T.extend=n,T.base=h,T.slots=k,T.variants=m,T.defaultVariants=g,T.compoundSlots=a,T.compoundVariants=P,T},er=(e,t)=>{var n,r,i;return AF(e,{...t,twMerge:(n=t?.twMerge)!=null?n:!0,twMergeConfig:{...t?.twMergeConfig,theme:{...(r=t?.twMergeConfig)==null?void 0:r.theme,...kb.theme},classGroups:{...(i=t?.twMergeConfig)==null?void 0:i.classGroups,...kb.classGroups}}})},gk=er({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),wh=["outline-hidden","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],D_=["outline-hidden","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],RF=["outline-hidden","ring-2","ring-focus","ring-offset-2","ring-offset-background"],lf={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},LF=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],vk=er({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...wh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-hidden","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:Te.solid.foreground},primary:{base:"before:bg-primary",content:Te.solid.primary},secondary:{base:"before:bg-secondary",content:Te.solid.secondary},success:{base:"before:bg-success",content:Te.solid.success},warning:{base:"before:bg-warning",content:Te.solid.warning},danger:{base:"before:bg-danger",content:Te.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]});er({slots:{base:"flex flex-col gap-2 w-full",label:"",labelWrapper:"flex justify-between",value:"",track:"z-0 relative bg-default-300/50 overflow-hidden rtl:rotate-180",indicator:"h-full"},variants:{color:{default:{indicator:"bg-default-400"},primary:{indicator:"bg-primary"},secondary:{indicator:"bg-secondary"},success:{indicator:"bg-success"},warning:{indicator:"bg-warning"},danger:{indicator:"bg-danger"}},size:{sm:{label:"text-small",value:"text-small",track:"h-1"},md:{label:"text-medium",value:"text-medium",track:"h-3"},lg:{label:"text-large",value:"text-large",track:"h-5"}},radius:{none:{track:"rounded-none",indicator:"rounded-none"},sm:{track:"rounded-small",indicator:"rounded-small"},md:{track:"rounded-medium",indicator:"rounded-medium"},lg:{track:"rounded-large",indicator:"rounded-large"},full:{track:"rounded-full",indicator:"rounded-full"}},isStriped:{true:{indicator:"bg-stripe-gradient-default bg-stripe-size"}},isIndeterminate:{true:{indicator:["absolute","w-full","origin-left","animate-indeterminate-bar"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:{},false:{indicator:"transition-transform !duration-500"}}},defaultVariants:{color:"primary",size:"md",radius:"full",isStriped:!1,isIndeterminate:!1,isDisabled:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{indicator:"!transition-none motion-reduce:transition-none"}},{color:"primary",isStriped:!0,class:{indicator:"bg-stripe-gradient-primary bg-stripe-size"}},{color:"secondary",isStriped:!0,class:{indicator:"bg-stripe-gradient-secondary bg-stripe-size"}},{color:"success",isStriped:!0,class:{indicator:"bg-stripe-gradient-success bg-stripe-size"}},{color:"warning",isStriped:!0,class:{indicator:"bg-stripe-gradient-warning bg-stripe-size"}},{color:"danger",isStriped:!0,class:{indicator:"bg-stripe-gradient-danger bg-stripe-size"}}]},{twMerge:!0});var yk=er({slots:{base:"flex flex-col justify-center gap-1 max-w-fit items-center",label:"",svgWrapper:"relative block",svg:"z-0 relative overflow-hidden",track:"h-full stroke-default-300/50",indicator:"h-full stroke-current",value:"absolute font-normal inset-0 flex items-center justify-center"},variants:{color:{default:{svg:"text-default-400"},primary:{svg:"text-primary"},secondary:{svg:"text-secondary"},success:{svg:"text-success"},warning:{svg:"text-warning"},danger:{svg:"text-danger"}},size:{sm:{svg:"w-8 h-8",label:"text-small",value:"text-[0.5rem]"},md:{svg:"w-10 h-10",label:"text-small",value:"text-[0.55rem]"},lg:{svg:"w-12 h-12",label:"text-medium",value:"text-[0.6rem]"}},isIndeterminate:{true:{svg:"animate-spinner-ease-spin"}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:{},false:{indicator:"transition-all !duration-500"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{svg:"!transition-none motion-reduce:transition-none"}}]}),MF=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],DF=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],bk=er({base:[],variants:{orientation:{vertical:["overflow-y-auto",...MF],horizontal:["overflow-x-auto",...DF]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),xk=er({slots:{base:["group","relative","overflow-hidden","bg-content3 dark:bg-content2","pointer-events-none","before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2","data-[loaded=true]:pointer-events-auto","data-[loaded=true]:overflow-visible","data-[loaded=true]:!bg-transparent","data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0"],content:["opacity-0","group-data-[loaded=true]:opacity-100"]},variants:{disableAnimation:{true:{base:"before:animate-none before:transition-none after:transition-none",content:"transition-none"},false:{base:"transition-background !duration-300",content:"transition-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{}}),wk=er({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-hidden placeholder:text-foreground-500 focus-visible:outline-hidden","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-hidden","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...wh],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity,translate,scale]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...D_]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),Sk=er({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-hidden","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-hidden","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...wh]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),NF=er({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),OF=er({base:"flex flex-col gap-2 items-start"}),kk=er({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),FF=er({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-hidden","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...wh],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:Te.solid.default},{variant:"solid",color:"primary",class:Te.solid.primary},{variant:"solid",color:"secondary",class:Te.solid.secondary},{variant:"solid",color:"success",class:Te.solid.success},{variant:"solid",color:"warning",class:Te.solid.warning},{variant:"solid",color:"danger",class:Te.solid.danger},{variant:"shadow",color:"default",class:Te.shadow.default},{variant:"shadow",color:"primary",class:Te.shadow.primary},{variant:"shadow",color:"secondary",class:Te.shadow.secondary},{variant:"shadow",color:"success",class:Te.shadow.success},{variant:"shadow",color:"warning",class:Te.shadow.warning},{variant:"shadow",color:"danger",class:Te.shadow.danger},{variant:"bordered",color:"default",class:Te.bordered.default},{variant:"bordered",color:"primary",class:Te.bordered.primary},{variant:"bordered",color:"secondary",class:Te.bordered.secondary},{variant:"bordered",color:"success",class:Te.bordered.success},{variant:"bordered",color:"warning",class:Te.bordered.warning},{variant:"bordered",color:"danger",class:Te.bordered.danger},{variant:"flat",color:"default",class:Te.flat.default},{variant:"flat",color:"primary",class:Te.flat.primary},{variant:"flat",color:"secondary",class:Te.flat.secondary},{variant:"flat",color:"success",class:Te.flat.success},{variant:"flat",color:"warning",class:Te.flat.warning},{variant:"flat",color:"danger",class:Te.flat.danger},{variant:"faded",color:"default",class:Te.faded.default},{variant:"faded",color:"primary",class:Te.faded.primary},{variant:"faded",color:"secondary",class:Te.faded.secondary},{variant:"faded",color:"success",class:Te.faded.success},{variant:"faded",color:"warning",class:Te.faded.warning},{variant:"faded",color:"danger",class:Te.faded.danger},{variant:"light",color:"default",class:[Te.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[Te.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[Te.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[Te.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[Te.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[Te.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[Te.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[Te.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[Te.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[Te.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[Te.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[Te.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:lf.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:lf.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:lf.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:lf.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:lf.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:lf.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});er({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var zF=er({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...D_],hiddenInput:LF,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"]},md:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});er({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});var Ck=er({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"shrink-0",closeButton:["z-10","appearance-none","outline-hidden","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...RF,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:Te.solid.default}},{variant:"solid",color:"primary",class:{base:Te.solid.primary}},{variant:"solid",color:"secondary",class:{base:Te.solid.secondary}},{variant:"solid",color:"success",class:{base:Te.solid.success}},{variant:"solid",color:"warning",class:{base:Te.solid.warning}},{variant:"solid",color:"danger",class:{base:Te.solid.danger}},{variant:"shadow",color:"default",class:{base:Te.shadow.default}},{variant:"shadow",color:"primary",class:{base:Te.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:Te.shadow.secondary}},{variant:"shadow",color:"success",class:{base:Te.shadow.success}},{variant:"shadow",color:"warning",class:{base:Te.shadow.warning}},{variant:"shadow",color:"danger",class:{base:Te.shadow.danger}},{variant:"bordered",color:"default",class:{base:Te.bordered.default}},{variant:"bordered",color:"primary",class:{base:Te.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:Te.bordered.secondary}},{variant:"bordered",color:"success",class:{base:Te.bordered.success}},{variant:"bordered",color:"warning",class:{base:Te.bordered.warning}},{variant:"bordered",color:"danger",class:{base:Te.bordered.danger}},{variant:"flat",color:"default",class:{base:Te.flat.default}},{variant:"flat",color:"primary",class:{base:Te.flat.primary}},{variant:"flat",color:"secondary",class:{base:Te.flat.secondary}},{variant:"flat",color:"success",class:{base:Te.flat.success}},{variant:"flat",color:"warning",class:{base:Te.flat.warning}},{variant:"flat",color:"danger",class:{base:Te.flat.danger}},{variant:"faded",color:"default",class:{base:Te.faded.default}},{variant:"faded",color:"primary",class:{base:Te.faded.primary}},{variant:"faded",color:"secondary",class:{base:Te.faded.secondary}},{variant:"faded",color:"success",class:{base:Te.faded.success}},{variant:"faded",color:"warning",class:{base:Te.faded.warning}},{variant:"faded",color:"danger",class:{base:Te.faded.danger}},{variant:"light",color:"default",class:{base:Te.light.default}},{variant:"light",color:"primary",class:{base:Te.light.primary}},{variant:"light",color:"secondary",class:{base:Te.light.secondary}},{variant:"light",color:"success",class:{base:Te.light.success}},{variant:"light",color:"warning",class:{base:Te.light.warning}},{variant:"light",color:"danger",class:{base:Te.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),jF=er({base:"px-2",variants:{variant:{light:"",shadow:"px-4 shadow-medium rounded-medium bg-content1",bordered:"px-4 border-medium border-divider rounded-medium",splitted:"flex flex-col gap-2"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"light",fullWidth:!0}}),BF=er({slots:{base:"",heading:"",trigger:["flex py-4 w-full h-full gap-3 outline-hidden items-center tap-highlight-transparent",...wh],startContent:"shrink-0",indicator:"text-default-400",titleWrapper:"flex-1 flex flex-col text-start",title:"text-foreground text-medium",subtitle:"text-small text-foreground-500 font-normal",content:"py-2"},variants:{variant:{splitted:{base:"px-4 bg-content1 shadow-medium rounded-medium"}},isCompact:{true:{trigger:"py-2",title:"text-medium",subtitle:"text-small",indicator:"text-medium",content:"py-1"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},hideIndicator:{true:{indicator:"hidden"}},disableAnimation:{true:{content:"hidden data-[open=true]:block"},false:{indicator:"transition-transform",trigger:"transition-opacity"}},disableIndicatorAnimation:{true:{indicator:"transition-none"},false:{indicator:"rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"}}},defaultVariants:{size:"md",radius:"lg",isDisabled:!1,hideIndicator:!1,disableIndicatorAnimation:!1}});function N_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=N_(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function VF(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=N_(e))&&(r&&(r+=" "),r+=t);return r}var UF=L_({extend:kb});function yn(...e){return UF(VF(e))}const KF="modulepreload",WF=function(e){return"/"+e},Ek={},fi=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");i=d(n.map(h=>{if(h=WF(h),h in Ek)return;Ek[h]=!0;const m=h.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":KF,m||(b.as="script"),b.crossOrigin="",b.href=h,c&&b.setAttribute("nonce",c),document.head.appendChild(b),m)return new Promise((x,k)=>{b.addEventListener("load",x),b.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return i.then(a=>{for(const c of a||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};function HF(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:a,onPressUp:c,onPressChange:d,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:b,target:x,rel:k,type:P="button"}=e,T;n==="button"?T={type:P,disabled:r}:T={role:"button",href:n==="a"&&!r?b:void 0,target:n==="a"?x:void 0,type:n==="input"?P:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?k:void 0};let{pressProps:_,isPressed:A}=ol({onPressStart:s,onPressEnd:a,onPressChange:d,onPress:i,onPressUp:c,onClick:g,isDisabled:r,preventFocusOnPress:h,ref:t}),{focusableProps:M}=xh(e,t);m&&(M.tabIndex=r?-1:M.tabIndex);let F=Tn(M,_,Au(e,{labelable:!0}));return{isPressed:A,buttonProps:Tn(T,F,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function GF(e,t,n){let{item:r,isDisabled:i}=e,s=r.key,a=t.selectionManager,c=S.useId(),d=S.useId(),h=t.disabledKeys.has(r.key)||i;S.useEffect(()=>{s===t.focusedKey&&document.activeElement!==n.current&&n.current&&Eu(n.current)},[n,s,t.focusedKey]);let m=S.useCallback(P=>{a.canSelectItem(s)&&(a.select(s,P),t.toggleKey(s))},[s,a]);const g=S.useCallback(P=>{a.selectionBehavior==="replace"&&a.extendSelection(P),a.setFocusedKey(P)},[a]),b=S.useCallback(P=>{const _={ArrowDown:()=>{const A=t.collection.getKeyAfter(s);if(A&&t.disabledKeys.has(A)){const M=t.collection.getKeyAfter(A);M&&g(M)}else A&&g(A)},ArrowUp:()=>{const A=t.collection.getKeyBefore(s);if(A&&t.disabledKeys.has(A)){const M=t.collection.getKeyBefore(A);M&&g(M)}else A&&g(A)},Home:()=>{const A=t.collection.getFirstKey();A&&g(A)},End:()=>{const A=t.collection.getLastKey();A&&g(A)}}[P.key];_&&(P.preventDefault(),a.canSelectItem(s)&&_(P))},[s,a]);let{buttonProps:x}=HF({id:c,elementType:"button",isDisabled:h,onKeyDown:b,onPress:m},n),k=t.selectionManager.isSelected(r.key);return{buttonProps:{...x,"aria-expanded":k,"aria-controls":k?d:void 0},regionProps:{id:d,role:"region","aria-labelledby":c}}}function Pk(e){return vM()?e.altKey:e.ctrlKey}function Mg(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const O_=new WeakMap;function qF(e){let t=Pf();return O_.set(e,t),t}function JG(e){return O_.get(e)}const YF=1e3;function XF(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=S.useRef({search:"",timeout:void 0}).current,s=a=>{let c=QF(a.key);if(!(!c||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(c===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=c,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=t.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},YF)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function QF(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function JF(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:c=!1,escapeKeyBehavior:d="clearSelection",selectOnFocus:h=t.selectionBehavior==="replace",disallowTypeAhead:m=!1,shouldUseVirtualFocus:g,allowsTabNavigation:b=!1,isVirtualized:x,scrollRef:k=r,linkBehavior:P="action"}=e,{direction:T}=hh(),_=ux(),A=X=>{var V;if(X.altKey&&X.key==="Tab"&&X.preventDefault(),!(!((V=r.current)===null||V===void 0)&&V.contains(X.target)))return;const ae=(Ie,mt)=>{if(Ie!=null){if(t.isLink(Ie)&&P==="selection"&&h&&!Pk(X)){zE.flushSync(()=>{t.setFocusedKey(Ie,mt)});let pt=Mg(r,Ie),Ut=t.getItemProps(Ie);pt&&_.open(pt,X,Ut.href,Ut.routerOptions);return}if(t.setFocusedKey(Ie,mt),t.isLink(Ie)&&P==="override")return;X.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ie):h&&!Pk(X)&&t.replaceSelection(Ie)}};switch(X.key){case"ArrowDown":if(n.getKeyBelow){var D,U,oe;let Ie=t.focusedKey!=null?(D=n.getKeyBelow)===null||D===void 0?void 0:D.call(n,t.focusedKey):(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n);Ie==null&&s&&(Ie=(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey)),Ie!=null&&(X.preventDefault(),ae(Ie))}break;case"ArrowUp":if(n.getKeyAbove){var z,me,Ce;let Ie=t.focusedKey!=null?(z=n.getKeyAbove)===null||z===void 0?void 0:z.call(n,t.focusedKey):(me=n.getLastKey)===null||me===void 0?void 0:me.call(n);Ie==null&&s&&(Ie=(Ce=n.getLastKey)===null||Ce===void 0?void 0:Ce.call(n,t.focusedKey)),Ie!=null&&(X.preventDefault(),ae(Ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ye,Fe,Ne;let Ie=t.focusedKey!=null?(ye=n.getKeyLeftOf)===null||ye===void 0?void 0:ye.call(n,t.focusedKey):null;Ie==null&&s&&(Ie=T==="rtl"?(Fe=n.getFirstKey)===null||Fe===void 0?void 0:Fe.call(n,t.focusedKey):(Ne=n.getLastKey)===null||Ne===void 0?void 0:Ne.call(n,t.focusedKey)),Ie!=null&&(X.preventDefault(),ae(Ie,T==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var _e,Qe,at;let Ie=t.focusedKey!=null?(_e=n.getKeyRightOf)===null||_e===void 0?void 0:_e.call(n,t.focusedKey):null;Ie==null&&s&&(Ie=T==="rtl"?(Qe=n.getLastKey)===null||Qe===void 0?void 0:Qe.call(n,t.focusedKey):(at=n.getFirstKey)===null||at===void 0?void 0:at.call(n,t.focusedKey)),Ie!=null&&(X.preventDefault(),ae(Ie,T==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&X.shiftKey)return;X.preventDefault();let Ie=n.getFirstKey(t.focusedKey,hp(X));t.setFocusedKey(Ie),Ie!=null&&(hp(X)&&X.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ie):h&&t.replaceSelection(Ie))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&X.shiftKey)return;X.preventDefault();let Ie=n.getLastKey(t.focusedKey,hp(X));t.setFocusedKey(Ie),Ie!=null&&(hp(X)&&X.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ie):h&&t.replaceSelection(Ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Ie=n.getKeyPageBelow(t.focusedKey);Ie!=null&&(X.preventDefault(),ae(Ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Ie=n.getKeyPageAbove(t.focusedKey);Ie!=null&&(X.preventDefault(),ae(Ie))}break;case"a":hp(X)&&t.selectionMode==="multiple"&&c!==!0&&(X.preventDefault(),t.selectAll());break;case"Escape":d==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(X.stopPropagation(),X.preventDefault(),t.clearSelection());break;case"Tab":if(!b){if(X.shiftKey)r.current.focus();else{let Ie=Js(r.current,{tabbable:!0}),mt,pt;do pt=Ie.lastChild(),pt&&(mt=pt);while(pt);mt&&!mt.contains(document.activeElement)&&nl(mt)}break}}},M=S.useRef({top:0,left:0});lg(k,"scroll",x?void 0:()=>{var X,V,ae,D;M.current={top:(ae=(X=k.current)===null||X===void 0?void 0:X.scrollTop)!==null&&ae!==void 0?ae:0,left:(D=(V=k.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&D!==void 0?D:0}});let F=X=>{if(t.isFocused){X.currentTarget.contains(X.target)||t.setFocused(!1);return}if(X.currentTarget.contains(X.target)){if(t.setFocused(!0),t.focusedKey==null){var V,ae;let oe=me=>{me!=null&&(t.setFocusedKey(me),h&&!t.isSelected(me)&&t.replaceSelection(me))},z=X.relatedTarget;var D,U;z&&X.currentTarget.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_FOLLOWING?oe((D=t.lastSelectedKey)!==null&&D!==void 0?D:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):oe((U=t.firstSelectedKey)!==null&&U!==void 0?U:(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n))}else!x&&k.current&&(k.current.scrollTop=M.current.top,k.current.scrollLeft=M.current.left);if(t.focusedKey!=null&&k.current){let oe=Mg(r,t.focusedKey);oe instanceof HTMLElement&&(!oe.contains(document.activeElement)&&!g&&nl(oe),oh()==="keyboard"&&T1(oe,{containingElement:r.current}))}}},j=X=>{X.currentTarget.contains(X.relatedTarget)||t.setFocused(!1)},$=S.useRef(!1);lg(r,TM,g?X=>{let{detail:V}=X;X.stopPropagation(),t.setFocused(!0),V?.focusStrategy==="first"&&($.current=!0)}:void 0);let Y=Bn(()=>{var X,V;let ae=(V=(X=n.getFirstKey)===null||X===void 0?void 0:X.call(n))!==null&&V!==void 0?V:null;ae==null?(cO(r.current),t.collection.size>0&&($.current=!1)):(t.setFocusedKey(ae),$.current=!1)});C1(()=>{$.current&&Y()},[t.collection,Y]);let te=Bn(()=>{t.collection.size>0&&($.current=!1)});C1(()=>{te()},[t.focusedKey,te]),lg(r,PM,g?X=>{var V;X.stopPropagation(),t.setFocused(!1),!((V=X.detail)===null||V===void 0)&&V.clearFocusKey&&t.setFocusedKey(null)}:void 0);const ie=S.useRef(i),B=S.useRef(!1);S.useEffect(()=>{if(ie.current){var X,V;let U=null;var ae;i==="first"&&(U=(ae=(X=n.getFirstKey)===null||X===void 0?void 0:X.call(n))!==null&&ae!==void 0?ae:null);var D;i==="last"&&(U=(D=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&D!==void 0?D:null);let oe=t.selectedKeys;if(oe.size){for(let z of oe)if(t.canSelectItem(z)){U=z;break}}t.setFocused(!0),t.setFocusedKey(U),U==null&&!g&&r.current&&Eu(r.current),t.collection.size>0&&(ie.current=!1,B.current=!0)}});let W=S.useRef(t.focusedKey),G=S.useRef(null);S.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==W.current||B.current)&&k.current&&r.current){let X=oh(),V=Mg(r,t.focusedKey);if(!(V instanceof HTMLElement))return;(X==="keyboard"||B.current)&&(G.current&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame(()=>{k.current&&(NE(k.current,V),X!=="virtual"&&T1(V,{containingElement:r.current}))}))}!g&&t.isFocused&&t.focusedKey==null&&W.current!=null&&r.current&&Eu(r.current),W.current=t.focusedKey,B.current=!1}),S.useEffect(()=>()=>{G.current&&cancelAnimationFrame(G.current)},[]),lg(r,"react-aria-focus-scope-restore",X=>{X.preventDefault(),t.setFocused(!0)});let ee={onKeyDown:A,onFocus:F,onBlur:j,onMouseDown(X){k.current===X.target&&X.preventDefault()}},{typeSelectProps:H}=XF({keyboardDelegate:n,selectionManager:t});m||(ee=Tn(H,ee));let le;g||(le=t.focusedKey==null?0:-1);let J=qF(t.collection);return{collectionProps:Tn(ee,{tabIndex:le,"data-collection":J})}}class Tk{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Mg(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-i.left+n.scrollLeft,y:s.top-i.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t?.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,s;return{x:(n=t?.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t?.scrollTop)!==null&&r!==void 0?r:0,width:(i=t?.offsetWidth)!==null&&i!==void 0?i:0,height:(s=t?.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class ZF{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if(i?.type==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,s=this.layoutDelegate.getItemRect(i);if(!s||i==null)return null;let a=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(a,s)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!qp(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!qp(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<s&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<s&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let s=r.getItem(i);if(!s)return null;let a=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Tk(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Tk(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function e6(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:s,layoutDelegate:a}=e,c=DM({usage:"search",sensitivity:"base"}),d=t.disabledBehavior,h=S.useMemo(()=>s||new ZF({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:c,layoutDelegate:a}),[s,a,n,r,i,c,d]),{collectionProps:m}=JF({...e,ref:i,selectionManager:t,keyboardDelegate:h});return{listProps:m}}function t6(e,t,n){let{listProps:r}=e6({...e,...t,allowsTabNavigation:!0,disallowSelectAll:!0,ref:n});return delete r.onKeyDownCapture,{accordionProps:{...r,tabIndex:void 0}}}function n6(e){var t,n;const r=ci(),{ref:i,as:s,item:a,onFocusChange:c}=e,{state:d,className:h,indicator:m,children:g,title:b,subtitle:x,startContent:k,motionProps:P,focusedKey:T,variant:_,isCompact:A=!1,classNames:M={},isDisabled:F=!1,hideIndicator:j=!1,disableAnimation:$=(t=r?.disableAnimation)!=null?t:!1,keepContentMounted:Y=!1,disableIndicatorAnimation:te=!1,HeadingComponent:ie=s||"h2",onPress:B,onPressStart:W,onPressEnd:G,onPressChange:ee,onPressUp:H,onClick:le,...J}=e,X=s||"div",V=typeof X=="string",ae=$i(i),D=d.disabledKeys.has(a.key)||F,U=d.selectionManager.isSelected(a.key),{buttonProps:oe,regionProps:z}=GF({item:a,isDisabled:D},{...d,focusedKey:T},ae),{onFocus:me,onBlur:Ce,...ye}=oe,{isFocused:Fe,isFocusVisible:Ne,focusProps:_e}=Tu({autoFocus:(n=a.props)==null?void 0:n.autoFocus}),{isHovered:Qe,hoverProps:at}=Pu({isDisabled:D}),{pressProps:Ie,isPressed:mt}=ol({ref:ae,isDisabled:D,onPress:B,onPressStart:W,onPressEnd:G,onPressChange:ee,onPressUp:H}),pt=S.useCallback(()=>{c?.(!0,a.key)},[]),Ut=S.useCallback(()=>{c?.(!1,a.key)},[]),Ue=S.useMemo(()=>({...M}),[ds(M)]),it=S.useMemo(()=>BF({isCompact:A,isDisabled:D,hideIndicator:j,disableAnimation:$,disableIndicatorAnimation:te,variant:_}),[A,D,j,$,te,_]),Kt=Bt(Ue?.base,h),tr=S.useCallback((pe={})=>({"data-open":Ae(U),"data-disabled":Ae(D),"data-slot":"base",className:it.base({class:Kt}),...nn(Ef(J,{enabled:V}),pe)}),[Kt,V,J,it,a.props,U,D]),an=(pe={})=>{var Se,ze;return{ref:ae,"data-open":Ae(U),"data-focus":Ae(Fe),"data-focus-visible":Ae(Ne),"data-disabled":Ae(D),"data-hover":Ae(Qe),"data-pressed":Ae(mt),"data-slot":"trigger",className:it.trigger({class:Ue?.trigger}),onFocus:h1(pt,me,_e.onFocus,J.onFocus,(Se=a.props)==null?void 0:Se.onFocus),onBlur:h1(Ut,Ce,_e.onBlur,J.onBlur,(ze=a.props)==null?void 0:ze.onBlur),...nn(ye,at,Ie,pe,{onClick:tl(Ie.onClick,le)})}},_t=S.useCallback((pe={})=>({"data-open":Ae(U),"data-disabled":Ae(D),"data-slot":"content",className:it.content({class:Ue?.content}),...nn(z,pe)}),[it,Ue,z,U,D,Ue?.content]),Rt=S.useCallback((pe={})=>({"aria-hidden":Ae(!0),"data-open":Ae(U),"data-disabled":Ae(D),"data-slot":"indicator",className:it.indicator({class:Ue?.indicator}),...pe}),[it,Ue?.indicator,U,D,Ue?.indicator]),_n=S.useCallback((pe={})=>({"data-open":Ae(U),"data-disabled":Ae(D),"data-slot":"heading",className:it.heading({class:Ue?.heading}),...pe}),[it,Ue?.heading,U,D,Ue?.heading]),Er=S.useCallback((pe={})=>({"data-open":Ae(U),"data-disabled":Ae(D),"data-slot":"title",className:it.title({class:Ue?.title}),...pe}),[it,Ue?.title,U,D,Ue?.title]),Nt=S.useCallback((pe={})=>({"data-open":Ae(U),"data-disabled":Ae(D),"data-slot":"subtitle",className:it.subtitle({class:Ue?.subtitle}),...pe}),[it,Ue,U,D,Ue?.subtitle]);return{Component:X,HeadingComponent:ie,item:a,slots:it,classNames:Ue,domRef:ae,indicator:m,children:g,title:b,subtitle:x,startContent:k,isOpen:U,isDisabled:D,hideIndicator:j,keepContentMounted:Y,disableAnimation:$,motionProps:P,getBaseProps:tr,getHeadingProps:_n,getButtonProps:an,getContentProps:_t,getIndicatorProps:Rt,getTitleProps:Er,getSubtitleProps:Nt}}var _k=e=>L.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:L.jsx("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),F_=e=>L.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:L.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),r6=e=>{const{isSelected:t,isIndeterminate:n,disableAnimation:r,...i}=e;return L.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...i,children:L.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},Bp={ease:[.36,.66,.4,1]},Zg={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Bp.ease}},exit:{opacity:0,transition:{duration:.3,ease:Bp.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},Ik=()=>fi(()=>import("./index-Bvn9K6h_.js"),[]).then(e=>e.default),z_=jr((e,t)=>{const{Component:n,HeadingComponent:r,classNames:i,slots:s,indicator:a,children:c,title:d,subtitle:h,startContent:m,isOpen:g,isDisabled:b,hideIndicator:x,keepContentMounted:k,disableAnimation:P,motionProps:T,getBaseProps:_,getHeadingProps:A,getButtonProps:M,getTitleProps:F,getSubtitleProps:j,getContentProps:$,getIndicatorProps:Y}=n6({...e,ref:t}),te=x5(),B=S.useMemo(()=>typeof a=="function"?a({indicator:L.jsx(_k,{}),isOpen:g,isDisabled:b}):a||null,[a,g,b])||L.jsx(_k,{}),W=S.useMemo(()=>{if(P)return k?L.jsx("div",{...$(),children:c}):g&&L.jsx("div",{...$(),children:c});const G={exit:{...Zg.collapse.exit,overflowY:"hidden"},enter:{...Zg.collapse.enter,overflowY:"unset"}};return k?L.jsx($f,{features:Ik,children:L.jsx(Af.section,{animate:g?"enter":"exit",exit:"exit",initial:"exit",style:{willChange:te},variants:G,onKeyDown:ee=>{ee.stopPropagation()},...T,children:L.jsx("div",{...$(),children:c})},"accordion-content")}):L.jsx(sl,{initial:!1,children:g&&L.jsx($f,{features:Ik,children:L.jsx(Af.section,{animate:"enter",exit:"exit",initial:"exit",style:{willChange:te},variants:G,onKeyDown:ee=>{ee.stopPropagation()},...T,children:L.jsx("div",{...$(),children:c})},"accordion-content")})})},[g,P,k,c,T]);return L.jsxs(n,{..._(),children:[L.jsx(r,{...A(),children:L.jsxs("button",{...M(),children:[m&&L.jsx("div",{className:s.startContent({class:i?.startContent}),children:m}),L.jsxs("div",{className:s.titleWrapper({class:i?.titleWrapper}),children:[d&&L.jsx("span",{...F(),children:d}),h&&L.jsx("span",{...j(),children:h})]}),!x&&B&&L.jsx("span",{...Y(),children:B})]})}),W]})});z_.displayName="HeroUI.AccordionItem";var i6=z_;class o6{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=c=>{if(this.keyMap.set(c.key,c),c.childNodes&&(c.type==="section"||n.has(c.key)))for(let d of c.childNodes)r(d)};for(let c of t)r(c);let i=null,s=0;for(let[c,d]of this.keyMap)i?(i.nextKey=c,d.prevKey=i.key):(this.firstKey=c,d.prevKey=void 0),d.type==="item"&&(d.index=s++),i=d,i.nextKey=void 0;var a;this.lastKey=(a=i?.key)!==null&&a!==void 0?a:null}}class Po extends Set{constructor(t,n,r){super(t),t instanceof Po?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function s6(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function a6(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,a=S.useRef(!1),[,c]=S.useState(!1),d=S.useRef(null),h=S.useRef(null),[,m]=S.useState(null),g=S.useMemo(()=>$k(e.selectedKeys),[e.selectedKeys]),b=S.useMemo(()=>$k(e.defaultSelectedKeys,new Po),[e.defaultSelectedKeys]),[x,k]=Ru(g,b,e.onSelectionChange),P=S.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[T,_]=S.useState(i);i==="replace"&&T==="toggle"&&typeof x=="object"&&x.size===0&&_("replace");let A=S.useRef(i);return S.useEffect(()=>{i!==A.current&&(_(i),A.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:T,setSelectionBehavior:_,get isFocused(){return a.current},setFocused(M){a.current=M,c(M)},get focusedKey(){return d.current},get childFocusStrategy(){return h.current},setFocusedKey(M,F="first"){d.current=M,h.current=F,m(M)},selectedKeys:x,setSelectedKeys(M){(r||!s6(M,x))&&k(M)},disabledKeys:P,disabledBehavior:s}}function $k(e,t){return e?e==="all"?"all":new Po(e):t}function j_(e){return null}j_.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,a=t.title||t.children,c=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!c&&n?.suppressTextValueWarning,yield{type:"item",props:t,rendered:a,textValue:c,"aria-label":t["aria-label"],hasChildNodes:l6(t),*childNodes(){if(r)for(let d of r)yield{type:"item",value:d};else if(i){let d=[];He.Children.forEach(s,h=>{d.push({type:"item",element:h})}),yield*d}}}};function l6(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&He.Children.count(e.children)>0)}let u6=j_;class c6{build(t,n){return this.context=n,Ak(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(He.isValidElement(n)&&n.type===He.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let s of r)yield*this.getFullNode({value:s,index:i},{renderer:n}),i++}else{let i=[];He.Children.forEach(n,a=>{a&&i.push(a)});let s=0;for(let a of i){let c=this.getFullNode({element:a,index:s},{});for(let d of c)s++,yield d}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let s=n.value;if(s!=null){var a;let c=(a=s.key)!==null&&a!==void 0?a:s.id;if(c==null)throw new Error("No key found for item");return c}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(He.isValidElement(t.element)&&t.element.type===He.Fragment){let T=[];He.Children.forEach(t.element.props.children,A=>{T.push(A)});var s;let _=(s=t.index)!==null&&s!==void 0?s:0;for(const A of T)yield*this.getFullNode({element:A,index:_++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let T=this.cache.get(t.value);if(T&&(!T.shouldInvalidate||!T.shouldInvalidate(this.context))){T.index=t.index,T.parentKey=i?i.key:null,yield T;return}a=n.renderer(t.value)}if(He.isValidElement(a)){let T=a.type;if(typeof T!="function"&&typeof T.getCollectionNode!="function"){let F=a.type;throw new Error(`Unknown element <${F}> in collection.`)}let _=T.getCollectionNode(a.props,this.context);var c;let A=(c=t.index)!==null&&c!==void 0?c:0,M=_.next();for(;!M.done&&M.value;){let F=M.value;t.index=A;var d;let j=(d=F.key)!==null&&d!==void 0?d:null;j==null&&(j=F.element?null:this.getKey(a,t,n,r));let Y=[...this.getFullNode({...F,key:j,index:A,wrapper:f6(t.wrapper,F.wrapper)},this.getChildState(n,F),r?`${r}${a.key}`:a.key,i)];for(let te of Y){var h,m;te.value=(m=(h=F.value)!==null&&h!==void 0?h:t.value)!==null&&m!==void 0?m:null,te.value&&this.cache.set(te.value,te);var g;if(t.type&&te.type!==t.type)throw new Error(`Unsupported type <${m0(te.type)}> in <${m0((g=i?.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${m0(t.type)}> is supported.`);A++,yield te}M=_.next(Y)}return}if(t.key==null||t.type==null)return;let b=this;var x,k;let P={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(x=t.value)!==null&&x!==void 0?x:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(k=t.textValue)!==null&&k!==void 0?k:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Ak(function*(){if(!t.hasChildNodes||!t.childNodes)return;let T=0;for(let _ of t.childNodes()){_.key!=null&&(_.key=`${P.key}${_.key}`);let A=b.getFullNode({..._,index:T},b.getChildState(n,_),P.key,P);for(let M of A)T++,yield M}})};yield P}constructor(){this.cache=new WeakMap}}function Ak(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function f6(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function m0(e){return e[0].toUpperCase()+e.slice(1)}function d6(e,t,n){let r=S.useMemo(()=>new c6,[]),{children:i,items:s,collection:a}=e;return S.useMemo(()=>{if(a)return a;let d=r.build({children:i,items:s},n);return t(d)},[r,i,s,a,n,t])}function p6(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function h6(e){return m6(e,0)}function m6(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function ZG(e){let t;for(let n of e)t=n;return t}function g0(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Rk(e,t),t],i=[...Rk(e,n),n],s=r.slice(0,i.length).findIndex((a,c)=>a!==i[c]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function Rk(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}class Jx{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&g0(this.collection,i,t)<0)&&(t=i)}var n;return(n=t?.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&g0(this.collection,i,t)>0)&&(t=i)}var n;return(n=t?.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Po([n],n,n);else{let a=this.state.selectedKeys;var i;let c=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new Po(a,c,n);var s;for(let d of this.getKeyRange(c,(s=a.currentKey)!==null&&s!==void 0?s:n))r.delete(d);for(let d of this.getKeyRange(n,c))this.canSelectItem(d)&&r.add(d)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?g0(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],s=t;for(;s!=null;){let a=this.collection.getItem(s);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(s),s===n)return i;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Po(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Po([n],n,n):new Po;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Po;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);a?.type==="item"&&t.push(r);var s;a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((s=(i=h6(p6(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&s!==void 0?s:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Po)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Jx(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r?.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null}}function g6(e){let{onExpandedChange:t}=e,[n,r]=Ru(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=a6(e),s=S.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=d6(e,S.useCallback(d=>new o6(d,{expandedKeys:n}),[n]),null);return S.useEffect(()=>{i.focusedKey!=null&&!a.getItem(i.focusedKey)&&i.setFocusedKey(null)},[a,i.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:s,toggleKey:d=>{r(v6(n,d))},setExpandedKeys:r,selectionManager:new Jx(a,i)}}function v6(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function y6(e){var t;const n=ci(),{ref:r,as:i,className:s,items:a,variant:c,motionProps:d,expandedKeys:h,disabledKeys:m,selectedKeys:g,children:b,defaultExpandedKeys:x,selectionMode:k="single",selectionBehavior:P="toggle",keepContentMounted:T=!1,disallowEmptySelection:_,defaultSelectedKeys:A,onExpandedChange:M,onSelectionChange:F,dividerProps:j={},isCompact:$=!1,isDisabled:Y=!1,showDivider:te=!0,hideIndicator:ie=!1,disableAnimation:B=(t=n?.disableAnimation)!=null?t:!1,disableIndicatorAnimation:W=!1,itemClasses:G,...ee}=e,[H,le]=S.useState(null),J=i||"div",X=typeof J=="string",V=$i(r),ae=S.useMemo(()=>jF({variant:c,className:s}),[c,s]),U={children:S.useMemo(()=>{let _e=[];return He.Children.map(b,Qe=>{var at;if(He.isValidElement(Qe)&&typeof((at=Qe.props)==null?void 0:at.children)!="string"){const Ie=He.cloneElement(Qe,{hasChildItems:!1});_e.push(Ie)}else _e.push(Qe)}),_e},[b]),items:a},oe={expandedKeys:h,defaultExpandedKeys:x,onExpandedChange:M},z={disabledKeys:m,selectedKeys:g,selectionMode:k,selectionBehavior:P,disallowEmptySelection:_,defaultSelectedKeys:A??x,onSelectionChange:F,...U,...oe},me=g6(z);me.selectionManager.setFocusedKey=_e=>{le(_e)};const{accordionProps:Ce}=t6({...U,...oe},me,V),ye=S.useMemo(()=>({state:me,focusedKey:H,motionProps:d,isCompact:$,isDisabled:Y,hideIndicator:ie,disableAnimation:B,keepContentMounted:T,disableIndicatorAnimation:W}),[H,$,Y,ie,g,B,T,me?.expandedKeys.values,W,me.expandedKeys.size,me.disabledKeys.size,d]),Fe=S.useCallback((_e={})=>({ref:V,className:ae,"data-orientation":"vertical",...nn(Ce,Ef(ee,{enabled:X}),_e)}),[]),Ne=S.useCallback((_e,Qe)=>{_e&&le(Qe)},[]);return{Component:J,values:ye,state:me,focusedKey:H,getBaseProps:Fe,isSplitted:c==="splitted",classNames:ae,showDivider:te,dividerProps:j,disableAnimation:B,handleFocusChanged:Ne,itemClasses:G}}function b6(e){let t=Ef(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function x6(e){const{as:t,className:n,orientation:r,...i}=e;let s=t||"hr";s==="hr"&&r==="vertical"&&(s="div");const{separatorProps:a}=b6({elementType:typeof s=="string"?s:"hr",orientation:r}),c=S.useMemo(()=>NF({orientation:r,className:n}),[r,n]),d=S.useCallback((h={})=>({className:c,role:"separator","data-orientation":r,...a,...i,...h}),[c,r,a,i]);return{Component:s,getDividerProps:d}}var B_=jr((e,t)=>{const{Component:n,getDividerProps:r}=x6({...e});return L.jsx(n,{ref:t,...r()})});B_.displayName="HeroUI.Divider";var w6=B_,V_=jr((e,t)=>{const{Component:n,values:r,state:i,isSplitted:s,showDivider:a,getBaseProps:c,disableAnimation:d,handleFocusChanged:h,itemClasses:m,dividerProps:g}=y6({...e,ref:t}),b=S.useCallback((k,P)=>h(k,P),[h]),x=S.useMemo(()=>[...i.collection].map((k,P)=>{const T={...m,...k.props.classNames||{}};return L.jsxs(S.Fragment,{children:[L.jsx(i6,{item:k,variant:e.variant,onFocusChange:b,...r,...k.props,classNames:T}),!k.props.hidden&&!s&&a&&P<i.collection.size-1&&L.jsx(w6,{...g})]},k.key)}),[r,m,b,s,a,i.collection]);return L.jsx(n,{...c(),children:d?x:L.jsx(B3,{children:x})})});V_.displayName="HeroUI.Accordion";var Lk=V_,S6=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},k6=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],eq=(e,t)=>{if(t.includes("-")){const[n]=t.split("-");if(n.includes(e))return!1}return!0},Mk=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},C6=u6,bp=C6,Sh=globalThis?.document?S.useLayoutEffect:S.useEffect;function E6(e={}){const{onLoad:t,onError:n,ignoreFallback:r,src:i,crossOrigin:s,srcSet:a,sizes:c,loading:d,shouldBypassImageLoad:h=!1}=e,m=PL(),g=S.useRef(m?new Image:null),[b,x]=S.useState("pending");S.useEffect(()=>{g.current&&(g.current.onload=T=>{k(),x("loaded"),t?.(T)},g.current.onerror=T=>{k(),x("failed"),n?.(T)})},[g.current]);const k=()=>{g.current&&(g.current.onload=null,g.current.onerror=null,g.current=null)},P=S.useCallback(()=>{if(!i)return"pending";if(r||h)return"loaded";const T=new Image;return T.src=i,s&&(T.crossOrigin=s),a&&(T.srcset=a),c&&(T.sizes=c),d&&(T.loading=d),g.current=T,T.complete&&T.naturalWidth?"loaded":"loading"},[i,s,a,c,t,n,d,h]);return Sh(()=>{m&&x(P())},[m,P]),r?"loaded":b}var[tq,P6]=pv({name:"ButtonGroupContext",strict:!1});function U_(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:a,onPressUp:c,onPressChange:d,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:b,target:x,rel:k,type:P="button",allowTextSelectionOnPress:T}=e,_;n==="button"?_={type:P,disabled:r}:_={role:"button",href:n==="a"&&!r?b:void 0,target:n==="a"?x:void 0,type:n==="input"?P:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?k:void 0};let{pressProps:A,isPressed:M}=ol({onClick:g,onPressStart:s,onPressEnd:a,onPressUp:c,onPressChange:d,onPress:i,isDisabled:r,preventFocusOnPress:h,allowTextSelectionOnPress:T,ref:t}),{focusableProps:F}=xh(e,t);m&&(F.tabIndex=r?-1:F.tabIndex);let j=Tn(F,A,Au(e,{labelable:!0}));return{isPressed:M,buttonProps:Tn(_,j,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var T6=()=>fi(()=>import("./index-Bvn9K6h_.js"),[]).then(e=>e.default),K_=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:i,onClear:s}=e;return L.jsx(L.Fragment,{children:t.map(a=>{const c=wL(.01*a.size,.2,a.size>100?.75:.5);return L.jsx($f,{features:T6,children:L.jsx(sl,{mode:"popLayout",children:L.jsx(Af.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:a.y,left:a.x,width:`${a.size}px`,height:`${a.size}px`,...i},transition:{duration:c},onAnimationComplete:()=>{s(a.key)},...n})})},a.key)})})};K_.displayName="HeroUI.Ripple";var _6=K_;function I6(e={}){const[t,n]=S.useState([]),r=S.useCallback(s=>{const a=s.target,c=Math.max(a.clientWidth,a.clientHeight);n(d=>[...d,{key:xL(d.length.toString()),size:c,x:s.x-c/2,y:s.y-c/2}])},[]),i=S.useCallback(s=>{n(a=>a.filter(c=>c.key!==s))},[]);return{ripples:t,onClear:i,onPress:r,...e}}function $6(e){var t,n,r,i,s,a,c,d,h;const m=P6(),g=ci(),b=!!m,{ref:x,as:k,children:P,startContent:T,endContent:_,autoFocus:A,className:M,spinner:F,isLoading:j=!1,disableRipple:$=!1,fullWidth:Y=(t=m?.fullWidth)!=null?t:!1,radius:te=m?.radius,size:ie=(n=m?.size)!=null?n:"md",color:B=(r=m?.color)!=null?r:"default",variant:W=(i=m?.variant)!=null?i:"solid",disableAnimation:G=(a=(s=m?.disableAnimation)!=null?s:g?.disableAnimation)!=null?a:!1,isDisabled:ee=(c=m?.isDisabled)!=null?c:!1,isIconOnly:H=(d=m?.isIconOnly)!=null?d:!1,spinnerPlacement:le="start",onPress:J,onClick:X,...V}=e,ae=k||"button",D=typeof ae=="string",U=$i(x),oe=(h=$||g?.disableRipple)!=null?h:G,{isFocusVisible:z,isFocused:me,focusProps:Ce}=Tu({autoFocus:A}),ye=ee||j,Fe=S.useMemo(()=>FF({size:ie,color:B,variant:W,radius:te,fullWidth:Y,isDisabled:ye,isInGroup:b,disableAnimation:G,isIconOnly:H,className:M}),[ie,B,W,te,Y,ye,b,H,G,M]),{onPress:Ne,onClear:_e,ripples:Qe}=I6(),at=S.useCallback(Rt=>{oe||ye||G||U.current&&Ne(Rt)},[oe,ye,G,U,Ne]),{buttonProps:Ie,isPressed:mt}=U_({elementType:k,isDisabled:ye,onPress:tl(J,at),onClick:X,...V},U),{isHovered:pt,hoverProps:Ut}=Pu({isDisabled:ye}),Ue=S.useCallback((Rt={})=>({"data-disabled":Ae(ye),"data-focus":Ae(me),"data-pressed":Ae(mt),"data-focus-visible":Ae(z),"data-hover":Ae(pt),"data-loading":Ae(j),...nn(Ie,Ce,Ut,Ef(V,{enabled:D}),Ef(Rt)),className:Fe}),[j,ye,me,mt,D,z,pt,Ie,Ce,Ut,V,Fe]),it=Rt=>S.isValidElement(Rt)?S.cloneElement(Rt,{"aria-hidden":!0,focusable:!1}):null,Kt=it(T),tr=it(_),an=S.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[ie],[ie]),_t=S.useCallback(()=>({ripples:Qe,onClear:_e}),[Qe,_e]);return{Component:ae,children:P,domRef:U,spinner:F,styles:Fe,startContent:Kt,endContent:tr,isLoading:j,spinnerPlacement:le,spinnerSize:an,disableRipple:oe,getButtonProps:Ue,getRippleProps:_t,isIconOnly:H}}function A6(e){var t,n;const[r,i]=oa(e,gk.variantKeys),s=ci(),a=(n=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?n:"default",{children:c,className:d,classNames:h,label:m,...g}=r,b=S.useMemo(()=>gk({...i}),[ds(i)]),x=Bt(h?.base,d),k=m||c,P=S.useMemo(()=>k&&typeof k=="string"?k:g["aria-label"]?"":"Loading",[c,k,g["aria-label"]]),T=S.useCallback(()=>({"aria-label":P,className:b.base({class:x}),...g}),[P,b,x,g]);return{label:k,slots:b,classNames:h,variant:a,getSpinnerProps:T}}var W_=jr((e,t)=>{const{slots:n,classNames:r,label:i,variant:s,getSpinnerProps:a}=A6({...e});return s==="wave"||s==="dots"?L.jsxs("div",{ref:t,...a(),children:[L.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(3)].map((c,d)=>L.jsx("i",{className:n.dots({class:r?.dots}),style:{"--dot-index":d}},`dot-${d}`))}),i&&L.jsx("span",{className:n.label({class:r?.label}),children:i})]}):s==="simple"?L.jsxs("div",{ref:t,...a(),children:[L.jsxs("svg",{className:n.wrapper({class:r?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[L.jsx("circle",{className:n.circle1({class:r?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),L.jsx("path",{className:n.circle2({class:r?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),i&&L.jsx("span",{className:n.label({class:r?.label}),children:i})]}):s==="spinner"?L.jsxs("div",{ref:t,...a(),children:[L.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(12)].map((c,d)=>L.jsx("i",{className:n.spinnerBars({class:r?.spinnerBars}),style:{"--bar-index":d}},`star-${d}`))}),i&&L.jsx("span",{className:n.label({class:r?.label}),children:i})]}):L.jsxs("div",{ref:t,...a(),children:[L.jsxs("div",{className:n.wrapper({class:r?.wrapper}),children:[L.jsx("i",{className:n.circle1({class:r?.circle1})}),L.jsx("i",{className:n.circle2({class:r?.circle2})})]}),i&&L.jsx("span",{className:n.label({class:r?.label}),children:i})]})});W_.displayName="HeroUI.Spinner";var R6=W_,H_=jr((e,t)=>{const{Component:n,domRef:r,children:i,spinnerSize:s,spinner:a=L.jsx(R6,{color:"current",size:s}),spinnerPlacement:c,startContent:d,endContent:h,isLoading:m,disableRipple:g,getButtonProps:b,getRippleProps:x,isIconOnly:k}=$6({...e,ref:t});return L.jsxs(n,{ref:r,...b(),children:[d,m&&c==="start"&&a,m&&k?null:i,m&&c==="end"&&a,h,!g&&L.jsx(_6,{...x()})]})});H_.displayName="HeroUI.Button";var wr=H_;function L6(e){const[t,n]=oa(e,Ck.variantKeys),{ref:r,as:i,children:s,avatar:a,startContent:c,endContent:d,onClose:h,classNames:m,className:g,...b}=t,x=i||"div",k=$i(r),P=Bt(m?.base,g),T=!!h,_=e.variant==="dot",{focusProps:A,isFocusVisible:M}=Tu(),F=S.useMemo(()=>typeof s=="string"&&s?.length===1,[s]),j=S.useMemo(()=>!!a||!!c,[a,c]),$=S.useMemo(()=>!!d||T,[d,T]),Y=S.useMemo(()=>Ck({...n,hasStartContent:j,hasEndContent:$,isOneChar:F,isCloseable:T,isCloseButtonFocusVisible:M}),[ds(n),M,j,$,F,T]),{pressProps:te}=ol({isDisabled:!!e?.isDisabled,onPress:h}),ie=()=>({ref:k,className:Y.base({class:P}),...b}),B=()=>({role:"button",tabIndex:0,className:Y.closeButton({class:m?.closeButton}),"aria-label":"close chip",...nn(te,A)}),W=ee=>S.isValidElement(ee)?S.cloneElement(ee,{className:Y.avatar({class:m?.avatar})}):null,G=ee=>S.isValidElement(ee)?S.cloneElement(ee,{className:Bt("max-h-[80%]",ee.props.className)}):null;return{Component:x,children:s,slots:Y,classNames:m,isDot:_,isCloseable:T,startContent:W(a)||G(c),endContent:G(d),getCloseButtonProps:B,getChipProps:ie}}var G_=jr((e,t)=>{const{Component:n,children:r,slots:i,classNames:s,isDot:a,isCloseable:c,startContent:d,endContent:h,getCloseButtonProps:m,getChipProps:g}=L6({...e,ref:t}),b=S.useMemo(()=>a&&!d?L.jsx("span",{className:i.dot({class:s?.dot})}):d,[i,d,a]),x=S.useMemo(()=>c?L.jsx("span",{...m(),children:h||L.jsx(F_,{})}):h,[h,c,m]);return L.jsxs(n,{...g(),children:[b,L.jsx("span",{className:i.content({class:s?.content}),children:r}),x]})});G_.displayName="HeroUI.Chip";var wg=G_;const q_={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Y_={...q_,customError:!0,valid:!1},df={isInvalid:!1,validationDetails:q_,validationErrors:[]},X_=S.createContext({}),ev="__formValidationState"+Date.now();function Zx(e){if(e[ev]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[ev];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return M6(e)}function M6(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:a,validationBehavior:c="aria"}=e;n&&(t||(t=n==="invalid"));let d=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Y_}:null,h=S.useMemo(()=>{if(!a||i==null)return null;let B=D6(a,i);return Dk(B)},[a,i]);s?.validationDetails.valid&&(s=void 0);let m=S.useContext(X_),g=S.useMemo(()=>r?Array.isArray(r)?r.flatMap(B=>$b(m[B])):$b(m[r]):[],[m,r]),[b,x]=S.useState(m),[k,P]=S.useState(!1);m!==b&&(x(m),P(!1));let T=S.useMemo(()=>Dk(k?[]:g),[k,g]),_=S.useRef(df),[A,M]=S.useState(df),F=S.useRef(df),j=()=>{if(!$)return;Y(!1);let B=h||s||_.current;v0(B,F.current)||(F.current=B,M(B))},[$,Y]=S.useState(!1);return S.useEffect(j),{realtimeValidation:d||T||h||s||df,displayValidation:c==="native"?d||T||A:d||T||h||s||A,updateValidation(B){c==="aria"&&!v0(A,B)?M(B):_.current=B},resetValidation(){let B=df;v0(B,F.current)||(F.current=B,M(B)),c==="native"&&Y(!1),P(!0)},commitValidation(){c==="native"&&Y(!0),P(!0)}}}function $b(e){return e?Array.isArray(e)?e:[e]:[]}function D6(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return $b(n)}return[]}function Dk(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Y_}:null}function v0(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Q_(e,t,n){let{validationBehavior:r,focus:i}=e;sn(()=>{if(r==="native"&&n?.current&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(O6(n.current))}});let s=Bn(()=>{t.resetValidation()}),a=Bn(d=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!d.defaultPrevented&&n&&m&&F6(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),H5("keyboard")}d.preventDefault()}),c=Bn(()=>{t.commitValidation()});S.useEffect(()=>{let d=n?.current;if(!d)return;let h=d.form;return d.addEventListener("invalid",a),d.addEventListener("change",c),h?.addEventListener("reset",s),()=>{d.removeEventListener("invalid",a),d.removeEventListener("change",c),h?.removeEventListener("reset",s)}},[n,a,c,s,r])}function N6(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function O6(e){return{isInvalid:!e.validity.valid,validationDetails:N6(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function F6(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function z6(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:s,name:a,children:c,"aria-label":d,"aria-labelledby":h,validationState:m="valid",isInvalid:g}=e,b=F=>{F.stopPropagation(),t.setSelected(F.target.checked)},{pressProps:x,isPressed:k}=ol({isDisabled:r}),{pressProps:P,isPressed:T}=ol({onPress(){var F;t.toggle(),(F=n.current)===null||F===void 0||F.focus()},isDisabled:r||i}),{focusableProps:_}=xh(e,n),A=Tn(x,_),M=Au(e,{labelable:!0});return FE(n,t.isSelected,t.setSelected),{labelProps:Tn(P,{onClick:F=>F.preventDefault()}),inputProps:Tn(M,{"aria-invalid":g||m==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:b,disabled:r,...s==null?{}:{value:s},name:a,type:"checkbox",...A}),isSelected:t.isSelected,isPressed:k||T,isDisabled:r,isReadOnly:i,isInvalid:g||m==="invalid"}}function J_(e,t,n){let r=Zx({...e,value:t.isSelected}),{isInvalid:i,validationErrors:s,validationDetails:a}=r.displayValidation,{labelProps:c,inputProps:d,isSelected:h,isPressed:m,isDisabled:g,isReadOnly:b}=z6({...e,isInvalid:i},t,n);Q_(e,r,n);let{isIndeterminate:x,isRequired:k,validationBehavior:P="aria"}=e;S.useEffect(()=>{n.current&&(n.current.indeterminate=!!x)});let{pressProps:T}=ol({isDisabled:g||b,onPress(){let{[ev]:_}=e,{commitValidation:A}=_||r;A()}});return{labelProps:Tn(c,T),inputProps:{...d,checked:h,"aria-required":k&&P==="aria"||void 0,required:k&&P==="native"},isSelected:h,isPressed:m,isDisabled:g,isReadOnly:b,isInvalid:i,validationErrors:s,validationDetails:a}}const j6=new WeakMap;function Z_(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Pf(t);let a=Pf(),c={};n&&(r=r?`${a} ${r}`:a,c={id:a,htmlFor:s==="label"?t:void 0});let d=LE({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:c,fieldProps:d}}function B6(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:a}=Z_(e),c=W0([!!t,!!n,r,i]),d=W0([!!t,!!n,r,i]);return a=Tn(a,{"aria-describedby":[c,d,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:a,descriptionProps:{id:c},errorMessageProps:{id:d}}}function e2(e={}){let{isReadOnly:t}=e,[n,r]=Ru(e.isSelected,e.defaultSelected||!1,e.onChange);function i(a){t||r(a)}function s(){t||r(!n)}return{isSelected:n,setSelected:i,toggle:s}}function V6(e,t,n){const r=e2({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(T){T?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(T)}});let{name:i,descriptionId:s,errorMessageId:a,validationBehavior:c}=j6.get(t);var d;c=(d=e.validationBehavior)!==null&&d!==void 0?d:c;let{realtimeValidation:h}=Zx({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),m=S.useRef(df),g=()=>{t.setInvalid(e.value,h.isInvalid?h:m.current)};S.useEffect(g);let b=t.realtimeValidation.isInvalid?t.realtimeValidation:h,x=c==="native"?t.displayValidation:b;var k;let P=J_({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,isRequired:(k=e.isRequired)!==null&&k!==void 0?k:t.isRequired,validationBehavior:c,[ev]:{realtimeValidation:b,displayValidation:x,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(T){m.current=T,g()}}},r,n);return{...P,inputProps:{...P.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,s].filter(Boolean).join(" ")||void 0}}}var Nk=Symbol("default");function U6(e){const t=S.useRef(null),n=S.useRef(void 0),r=S.useCallback(i=>{if(typeof e=="function"){const s=e,a=s(i);return()=>{typeof a=="function"?a():s(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return S.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function ew(e,t){let n=S.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`));if(!t&&!n.slots[Nk])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=t||Nk;if(!n.slots[i])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[i]}return n}function K6(e,t,n){let r=ew(n,e.slot)||{},{ref:i,...s}=r,a=U6(S.useMemo(()=>yE(t,i),[t,i])),c=nn(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?c.style=d=>{let h=typeof s.style=="function"?s.style(d):s.style,m={...d.defaultStyle,...h},g=typeof e.style=="function"?e.style({...d,defaultStyle:m}):e.style;return{...m,...g}}:c.style={...s.style,...e.style}),[c,a]}var tv=S.createContext(null),W6=S.forwardRef(function(t,n){[t,n]=K6(t,n,tv);let{validationErrors:r,validationBehavior:i="native",children:s,className:a,...c}=t;const d=S.useMemo(()=>OF({className:a}),[a]);return L.jsx("form",{noValidate:i!=="native",...c,ref:n,className:d,children:L.jsx(tv.Provider,{value:{...t,validationBehavior:i},children:L.jsx(X_.Provider,{value:r??{},children:s})})})}),H6=S.forwardRef(function(t,n){var r,i;const s=ci(),a=(i=(r=t.validationBehavior)!=null?r:s?.validationBehavior)!=null?i:"native";return L.jsx(W6,{...t,ref:n,validationBehavior:a})}),[nq,G6]=pv({name:"CheckboxGroupContext",strict:!1});function q6(e){const{isSelected:t,disableAnimation:n,...r}=e;return L.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...r,children:L.jsx("polyline",{points:"1 9 7 14 15 4"})})}function Y6(e){const{isSelected:t,disableAnimation:n,...r}=e;return L.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...r,children:L.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function X6(e){const{isIndeterminate:t,...n}=e,r=t?Y6:q6;return L.jsx(r,{...n})}function Ab(e,t=[]){const n=S.useRef(e);return Sh(()=>{n.current=e}),S.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Q6(e={}){var t,n,r,i,s,a,c,d;const h=ci(),m=G6(),{validationBehavior:g}=ew(tv)||{},b=!!m,{as:x,ref:k,value:P="",children:T,icon:_,name:A,isRequired:M,isReadOnly:F=!1,autoFocus:j=!1,isSelected:$,size:Y=(t=m?.size)!=null?t:"md",color:te=(n=m?.color)!=null?n:"primary",radius:ie=m?.radius,lineThrough:B=(r=m?.lineThrough)!=null?r:!1,isDisabled:W=(i=m?.isDisabled)!=null?i:!1,disableAnimation:G=(a=(s=m?.disableAnimation)!=null?s:h?.disableAnimation)!=null?a:!1,validationState:ee,isInvalid:H=ee?ee==="invalid":(c=m?.isInvalid)!=null?c:!1,isIndeterminate:le=!1,validationBehavior:J=b?m.validationBehavior:(d=g??h?.validationBehavior)!=null?d:"native",defaultSelected:X,classNames:V,className:ae,onValueChange:D,validate:U,...oe}=e,z=x||"label",me=S.useRef(null),Ce=S.useRef(null);let ye=e.onChange;b&&(ye=tl(()=>{m.groupState.resetValidation()},ye));const Fe=S.useId(),Ne=S.useMemo(()=>({name:A,value:P,children:T,autoFocus:j,defaultSelected:X,isIndeterminate:le,isRequired:M,isInvalid:H,isSelected:$,isDisabled:W,isReadOnly:F,"aria-label":vE(oe["aria-label"],T),"aria-labelledby":oe["aria-labelledby"]||Fe,onChange:D}),[A,P,T,j,X,le,M,H,$,W,F,oe["aria-label"],oe["aria-labelledby"],Fe,D]),_e=e2(Ne),Qe={isInvalid:H,isRequired:M,validate:U,validationState:ee,validationBehavior:J},{inputProps:at,isSelected:Ie,isDisabled:mt,isReadOnly:pt,isPressed:Ut,isInvalid:Ue}=b?V6({...Ne,...Qe},m.groupState,Ce):J_({...Ne,...Qe},_e,Ce),it=mt||pt,Kt=ee==="invalid"||H||Ue,tr=it?!1:Ut,{hoverProps:an,isHovered:_t}=Pu({isDisabled:at.disabled}),{focusProps:Rt,isFocused:_n,isFocusVisible:Er}=Tu({autoFocus:at.autoFocus}),Nt=S.useMemo(()=>zF({color:te,size:Y,radius:ie,isInvalid:Kt,lineThrough:B,isDisabled:mt,disableAnimation:G}),[te,Y,ie,Kt,B,mt,G]);Sh(()=>{if(!Ce.current)return;const Pt=!!Ce.current.checked;_e.setSelected(Pt)},[Ce.current]);const pe=Ab(ye),Se=S.useCallback(Pt=>{if(pt||mt){Pt.preventDefault();return}pe?.(Pt)},[pt,mt,pe]),ze=Bt(V?.base,ae),nt=S.useCallback(()=>({ref:me,className:Nt.base({class:ze}),"data-disabled":Ae(mt),"data-selected":Ae(Ie||le),"data-invalid":Ae(Kt),"data-hover":Ae(_t),"data-focus":Ae(_n),"data-pressed":Ae(tr),"data-readonly":Ae(at.readOnly),"data-focus-visible":Ae(Er),"data-indeterminate":Ae(le),...nn(an,oe)}),[Nt,ze,mt,Ie,le,Kt,_t,_n,tr,at.readOnly,Er,an,oe]),lt=S.useCallback((Pt={})=>({...Pt,"aria-hidden":!0,className:Bt(Nt.wrapper({class:Bt(V?.wrapper,Pt?.className)}))}),[Nt,V?.wrapper]),Wt=S.useCallback(()=>({ref:bE(Ce,k),...nn(at,Rt),className:Nt.hiddenInput({class:V?.hiddenInput}),onChange:tl(at.onChange,Se)}),[at,Rt,Se,V?.hiddenInput]),Vn=S.useCallback(()=>({id:Fe,className:Nt.label({class:V?.label})}),[Nt,V?.label,mt,Ie,Kt]),Jt=S.useCallback(()=>({isSelected:Ie,isIndeterminate:le,disableAnimation:G,className:Nt.icon({class:V?.icon})}),[Nt,V?.icon,Ie,le,G]);return{Component:z,icon:_,children:T,isSelected:Ie,isDisabled:mt,isInvalid:Kt,isFocused:_n,isHovered:_t,isFocusVisible:Er,getBaseProps:nt,getWrapperProps:lt,getInputProps:Wt,getLabelProps:Vn,getIconProps:Jt}}var t2=jr((e,t)=>{const{Component:n,children:r,icon:i=L.jsx(X6,{}),getBaseProps:s,getWrapperProps:a,getInputProps:c,getIconProps:d,getLabelProps:h}=Q6({...e,ref:t}),m=typeof i=="function"?i(d()):S.cloneElement(i,d());return L.jsxs(n,{...s(),children:[L.jsx("input",{...c()}),L.jsx("span",{...a(),children:m}),r&&L.jsx("span",{...h(),children:r})]})});t2.displayName="HeroUI.Checkbox";var n2=t2;function r2(e){let[t,n]=Ru(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=S.useCallback(()=>{n(!0)},[n]),i=S.useCallback(()=>{n(!1)},[n]),s=S.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}const J6=1500,Ok=500;let fu={},Z6=0,xp=!1,qs=null,du=null;function ez(e={}){let{delay:t=J6,closeDelay:n=Ok}=e,{isOpen:r,open:i,close:s}=r2(e),a=S.useMemo(()=>`${++Z6}`,[]),c=S.useRef(null),d=S.useRef(s),h=()=>{fu[a]=b},m=()=>{for(let k in fu)k!==a&&(fu[k](!0),delete fu[k])},g=()=>{c.current&&clearTimeout(c.current),c.current=null,m(),h(),xp=!0,i(),qs&&(clearTimeout(qs),qs=null),du&&(clearTimeout(du),du=null)},b=k=>{k||n<=0?(c.current&&clearTimeout(c.current),c.current=null,d.current()):c.current||(c.current=setTimeout(()=>{c.current=null,d.current()},n)),qs&&(clearTimeout(qs),qs=null),xp&&(du&&clearTimeout(du),du=setTimeout(()=>{delete fu[a],du=null,xp=!1},Math.max(Ok,n)))},x=()=>{m(),h(),!r&&!qs&&!xp?qs=setTimeout(()=>{qs=null,xp=!0,g()},t):r||g()};return S.useEffect(()=>{d.current=s},[s]),S.useEffect(()=>()=>{c.current&&clearTimeout(c.current),fu[a]&&delete fu[a]},[a]),{isOpen:r,open:k=>{!k&&t>0&&!c.current?x():g()},close:b}}function tz(e,t){let n=Au(e,{labelable:!0}),{hoverProps:r}=Pu({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:Tn(n,r,{role:"tooltip"})}}function nz(e,t,n){let{isDisabled:r,trigger:i}=e,s=Pf(),a=S.useRef(!1),c=S.useRef(!1),d=()=>{(a.current||c.current)&&t.open(c.current)},h=_=>{!a.current&&!c.current&&t.close(_)};S.useEffect(()=>{let _=A=>{n&&n.current&&A.key==="Escape"&&(A.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("keydown",_,!0)}},[n,t]);let m=()=>{i!=="focus"&&(oh()==="pointer"?a.current=!0:a.current=!1,d())},g=()=>{i!=="focus"&&(c.current=!1,a.current=!1,h())},b=()=>{c.current=!1,a.current=!1,h(!0)},x=()=>{qx()&&(c.current=!0,d())},k=()=>{c.current=!1,a.current=!1,h(!0)},{hoverProps:P}=Pu({isDisabled:r,onHoverStart:m,onHoverEnd:g}),{focusableProps:T}=xh({isDisabled:r,onFocus:x,onBlur:k},n);return{triggerProps:{"aria-describedby":t.isOpen?s:void 0,...Tn(T,P,{onPointerDown:b,onKeyDown:b,tabIndex:void 0})},tooltipProps:{id:s}}}var Ys=[];function i2(e,t){const{disableOutsideEvents:n=!0,isDismissable:r=!1,isKeyboardDismissDisabled:i=!1,isOpen:s,onClose:a,shouldCloseOnBlur:c,shouldCloseOnInteractOutside:d}=e;S.useEffect(()=>(s&&Ys.push(t),()=>{const P=Ys.indexOf(t);P>=0&&Ys.splice(P,1)}),[s,t]);const h=()=>{Ys[Ys.length-1]===t&&a&&a()},m=P=>{(!d||d(P.target))&&(Ys[Ys.length-1]===t&&n&&(P.stopPropagation(),P.preventDefault()),P.pointerType!=="touch"&&h())},g=P=>{P.pointerType==="touch"&&(!d||d(P.target))&&(Ys[Ys.length-1]===t&&n&&(P.stopPropagation(),P.preventDefault()),h())},b=P=>{P.key==="Escape"&&!i&&!P.nativeEvent.isComposing&&(P.stopPropagation(),P.preventDefault(),h())};nO({isDisabled:!(r&&s),onInteractOutside:r&&s?g:void 0,onInteractOutsideStart:m,ref:t});const{focusWithinProps:x}=kv({isDisabled:!c,onBlurWithin:P=>{!P.relatedTarget||sO(P.relatedTarget)||(!d||d(P.relatedTarget))&&h()}}),k=P=>{P.target===P.currentTarget&&P.preventDefault()};return{overlayProps:{onKeyDown:b,...x},underlayProps:{onPointerDown:k}}}function rz(e){var t,n;const r=ci(),[i,s]=oa(e,vk.variantKeys),{ref:a,as:c,isOpen:d,content:h,children:m,defaultOpen:g,onOpenChange:b,isDisabled:x,trigger:k,shouldFlip:P=!0,containerPadding:T=12,placement:_="top",delay:A=0,closeDelay:M=500,showArrow:F=!1,offset:j=7,crossOffset:$=0,isDismissable:Y,shouldCloseOnBlur:te=!0,portalContainer:ie,isKeyboardDismissDisabled:B=!1,updatePositionDeps:W=[],shouldCloseOnInteractOutside:G,className:ee,onClose:H,motionProps:le,classNames:J,...X}=i,V=c||"div",ae=(n=(t=e?.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,D=ez({delay:A,closeDelay:M,isDisabled:x,defaultOpen:g,isOpen:d,onOpenChange:Ue=>{b?.(Ue),Ue||H?.()}}),U=S.useRef(null),oe=S.useRef(null),z=S.useId(),me=D.isOpen&&!x;S.useImperativeHandle(a,()=>hL(oe));const{triggerProps:Ce,tooltipProps:ye}=nz({isDisabled:x,trigger:k},D,U),{tooltipProps:Fe}=tz({isOpen:me,...nn(i,ye)},D),{overlayProps:Ne,placement:_e,updatePosition:Qe}=$5({isOpen:me,targetRef:U,placement:k6(_),overlayRef:oe,offset:F?j+3:j,crossOffset:$,shouldFlip:P,containerPadding:T});Sh(()=>{W.length&&Qe()},W);const{overlayProps:at}=i2({isOpen:me,onClose:D.close,isDismissable:Y,shouldCloseOnBlur:te,isKeyboardDismissDisabled:B,shouldCloseOnInteractOutside:G},oe),Ie=S.useMemo(()=>{var Ue,it,Kt;return vk({...s,disableAnimation:ae,radius:(Ue=e?.radius)!=null?Ue:"md",size:(it=e?.size)!=null?it:"md",shadow:(Kt=e?.shadow)!=null?Kt:"sm"})},[ds(s),ae,e?.radius,e?.size,e?.shadow]),mt=S.useCallback((Ue={},it=null)=>({...nn(Ce,Ue),ref:bE(it,U),"aria-describedby":me?z:void 0}),[Ce,me,z,D]),pt=S.useCallback(()=>({ref:oe,"data-slot":"base","data-open":Ae(me),"data-arrow":Ae(F),"data-disabled":Ae(x),"data-placement":Mk(_e||"top",_),...nn(Fe,at,X),style:nn(Ne.style,X.style,i.style),className:Ie.base({class:J?.base}),id:z}),[Ie,me,F,x,_e,_,Fe,at,X,Ne,i,z]),Ut=S.useCallback(()=>({"data-slot":"content","data-open":Ae(me),"data-arrow":Ae(F),"data-disabled":Ae(x),"data-placement":Mk(_e||"top",_),className:Ie.content({class:Bt(J?.content,ee)})}),[Ie,me,F,x,_e,_,J]);return{Component:V,content:h,children:m,isOpen:me,triggerRef:U,showArrow:F,portalContainer:ie,placement:_,disableAnimation:ae,isDisabled:x,motionProps:le,getTooltipContentProps:Ut,getTriggerProps:mt,getTooltipProps:pt}}var iz=()=>fi(()=>import("./index-Bvn9K6h_.js"),[]).then(e=>e.default),o2=jr((e,t)=>{var n;const{Component:r,children:i,content:s,isOpen:a,portalContainer:c,placement:d,disableAnimation:h,motionProps:m,getTriggerProps:g,getTooltipProps:b,getTooltipContentProps:x}=rz({...e,ref:t});let k;try{if(S.Children.count(i)!==1)throw new Error;if(!S.isValidElement(i))k=L.jsx("p",{...g(),children:i});else{const j=i,$=(n=j.props.ref)!=null?n:j.ref;k=S.cloneElement(j,g(j.props,$))}}catch{k=L.jsx("span",{}),kL("Tooltip must have only one child node. Please, check your code.")}const{ref:P,id:T,style:_,...A}=b(),M=L.jsx("div",{ref:P,id:T,style:_,children:L.jsx(Af.div,{animate:"enter",exit:"exit",initial:"exit",variants:Zg.scaleSpring,...nn(m,A),style:{...S6(d)},children:L.jsx(r,{...x(),children:s})},`${T}-tooltip-inner`)},`${T}-tooltip-content`);return L.jsxs(L.Fragment,{children:[k,h?a&&L.jsx(ak,{portalContainer:c,children:L.jsx("div",{ref:P,id:T,style:_,...A,children:L.jsx(r,{...x(),children:s})})}):L.jsx($f,{features:iz,children:L.jsx(sl,{children:a&&L.jsx(ak,{portalContainer:c,children:M})})})]})});o2.displayName="HeroUI.Tooltip";var oz=o2;function sz(e={}){const{rerender:t=!1,delay:n=0}=e,r=S.useRef(!1),[i,s]=S.useState(!1);return S.useEffect(()=>{r.current=!0;let a=null;return t&&(n>0?a=setTimeout(()=>{s(!0)},n):s(!0)),()=>{r.current=!1,t&&s(!1),a&&clearTimeout(a)}},[t]),[S.useCallback(()=>r.current,[]),i]}function az(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:s,formatOptions:a={style:"percent"}}=e,c=Au(e,{labelable:!0}),{labelProps:d,fieldProps:h}=Z_({...e,labelElementType:"span"});t=Bg(t,n,r);let m=(t-n)/(r-n),g=MM(a);if(!s&&!i){let b=a.style==="percent"?m:t;i=g.format(b)}return{progressBarProps:Tn(c,{...h,"aria-valuenow":s?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":s?void 0:i,role:"progressbar"}),labelProps:d}}function lz(e){var t,n,r;const i=ci(),[s,a]=oa(e,yk.variantKeys),{ref:c,as:d,id:h,className:m,classNames:g,label:b,valueLabel:x,value:k=void 0,minValue:P=0,maxValue:T=100,strokeWidth:_,showValueLabel:A=!1,formatOptions:M={style:"percent"},...F}=s,j=d||"div",$=$i(c),Y=Bt(g?.base,m),[,te]=sz({rerender:!0,delay:100}),ie=((t=e.isIndeterminate)!=null?t:!0)&&k===void 0,B=(r=(n=e.disableAnimation)!=null?n:i?.disableAnimation)!=null?r:!1,{progressBarProps:W,labelProps:G}=az({id:h,label:b,value:k,minValue:P,maxValue:T,valueLabel:x,formatOptions:M,isIndeterminate:ie,"aria-labelledby":e["aria-labelledby"],"aria-label":e["aria-label"]}),ee=S.useMemo(()=>yk({...a,disableAnimation:B,isIndeterminate:ie}),[ds(a),B,ie]),H=B?!0:te,le=16,J=_||(e.size==="sm"?2:3),X=16-J,V=2*X*Math.PI,ae=S.useMemo(()=>H?ie?.25:k?SL((k-P)/(T-P),1):0:0,[H,k,P,T,ie]),D=V-ae*V,U=S.useCallback((ye={})=>({ref:$,"data-indeterminate":Ae(ie),"data-disabled":Ae(e.isDisabled),className:ee.base({class:Y}),...nn(W,F,ye)}),[$,ee,ie,e.isDisabled,Y,W,F]),oe=S.useCallback((ye={})=>({className:ee.label({class:g?.label}),...nn(G,ye)}),[ee,g,G]),z=S.useCallback((ye={})=>({viewBox:"0 0 32 32",fill:"none",strokeWidth:J,className:ee.svg({class:g?.svg}),...ye}),[J,ee,g]),me=S.useCallback((ye={})=>({cx:le,cy:le,r:X,role:"presentation",strokeDasharray:`${V} ${V}`,strokeDashoffset:D,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:ee.indicator({class:g?.indicator}),...ye}),[ee,g,D,V,X]),Ce=S.useCallback((ye={})=>({cx:le,cy:le,r:X,role:"presentation",strokeDasharray:`${V} ${V}`,strokeDashoffset:0,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:ee.track({class:g?.track}),...ye}),[ee,g,V,X]);return{Component:j,domRef:$,slots:ee,classNames:g,label:b,showValueLabel:A,getProgressBarProps:U,getLabelProps:oe,getSvgProps:z,getIndicatorProps:me,getTrackProps:Ce}}var s2=jr((e,t)=>{const{Component:n,slots:r,classNames:i,label:s,showValueLabel:a,getProgressBarProps:c,getLabelProps:d,getSvgProps:h,getIndicatorProps:m,getTrackProps:g}=lz({ref:t,...e}),b=c();return L.jsxs(n,{...b,children:[L.jsxs("div",{className:r.svgWrapper({class:i?.svgWrapper}),children:[L.jsxs("svg",{...h(),children:[L.jsx("circle",{...g()}),L.jsx("circle",{...m()})]}),a&&L.jsx("span",{className:r.value({class:i?.value}),children:b["aria-valuetext"]})]}),s&&L.jsx("span",{...d(),children:s})]})});s2.displayName="HeroUI.CircularProgress";var a2=s2;function uz(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:a="text",validationBehavior:c="aria"}=e,[d,h]=Ru(e.value,e.defaultValue||"",e.onChange),{focusableProps:m}=xh(e,t),g=Zx({...e,value:d}),{isInvalid:b,validationErrors:x,validationDetails:k}=g.displayValidation,{labelProps:P,fieldProps:T,descriptionProps:_,errorMessageProps:A}=B6({...e,isInvalid:b,errorMessage:e.errorMessage||x}),M=Au(e,{labelable:!0});const F={type:a,pattern:e.pattern};return FE(t,d,h),Q_(e,g,t),S.useEffect(()=>{if(t.current instanceof no(t.current).HTMLTextAreaElement){let j=t.current;Object.defineProperty(j,"defaultValue",{get:()=>j.value,set:()=>{},configurable:!0})}},[t]),{labelProps:P,inputProps:Tn(M,n==="input"?F:void 0,{disabled:r,readOnly:s,required:i&&c==="native","aria-required":i&&c==="aria"||void 0,"aria-invalid":b||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:d,onChange:j=>h(j.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(He.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...m,...T}),descriptionProps:_,errorMessageProps:A,isInvalid:b,validationErrors:x,validationDetails:k}}function cz(e){var t,n,r,i,s,a,c;const d=ci(),{validationBehavior:h}=ew(tv)||{},[m,g]=oa(e,wk.variantKeys),{ref:b,as:x,type:k,label:P,baseRef:T,wrapperRef:_,description:A,className:M,classNames:F,autoFocus:j,startContent:$,endContent:Y,onClear:te,onChange:ie,validationState:B,validationBehavior:W=(t=h??d?.validationBehavior)!=null?t:"native",innerWrapperRef:G,onValueChange:ee=()=>{},...H}=m,le=S.useCallback(Xe=>{ee(Xe??"")},[ee]),[J,X]=S.useState(!1),V=x||"div",ae=(r=(n=e.disableAnimation)!=null?n:d?.disableAnimation)!=null?r:!1,D=$i(b),U=$i(T),oe=$i(_),z=$i(G),[me,Ce]=Ru(m.value,(i=m.defaultValue)!=null?i:"",le),ye=k==="file",Fe=((c=(a=(s=D?.current)==null?void 0:s.files)==null?void 0:a.length)!=null?c:0)>0,Ne=["date","time","month","week","range"].includes(k),_e=!vL(me)||Ne||Fe,Qe=_e||J,at=k==="hidden",Ie=e.isMultiline,mt=Bt(F?.base,M,_e?"is-filled":""),pt=S.useCallback(()=>{var Xe;ye?D.current.value="":Ce(""),te?.(),(Xe=D.current)==null||Xe.focus()},[Ce,te,ye]);Sh(()=>{D.current&&Ce(D.current.value)},[D.current]);const{labelProps:Ut,inputProps:Ue,isInvalid:it,validationErrors:Kt,validationDetails:tr,descriptionProps:an,errorMessageProps:_t}=uz({...e,validationBehavior:W,autoCapitalize:e.autoCapitalize,value:me,"aria-label":e.label?e["aria-label"]:vE(e["aria-label"],e.placeholder),inputElementType:Ie?"textarea":"input",onChange:Ce},D);ye&&(delete Ue.value,delete Ue.onChange);const{isFocusVisible:Rt,isFocused:_n,focusProps:Er}=Tu({autoFocus:j,isTextInput:!0}),{isHovered:Nt,hoverProps:pe}=Pu({isDisabled:!!e?.isDisabled}),{isHovered:Se,hoverProps:ze}=Pu({isDisabled:!!e?.isDisabled}),{focusProps:nt,isFocusVisible:lt}=Tu(),{focusWithinProps:Wt}=kv({onFocusWithinChange:X}),{pressProps:Vn}=ol({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:pt}),Jt=B==="invalid"||it,Pt=IO({labelPlacement:e.labelPlacement,label:P}),Pr=typeof m.errorMessage=="function"?m.errorMessage({isInvalid:Jt,validationErrors:Kt,validationDetails:tr}):m.errorMessage||Kt?.join(" "),Ot=!!te||e.isClearable,nr=!!P||!!A||!!Pr,ln=!!m.placeholder,aa=!!P,ms=!!A||!!Pr,pi=Pt==="outside-left",hi=Pt==="outside-top",cl=Pt==="outside"||pi||hi,Du=Pt==="inside",gs=D.current?(!D.current.value||D.current.value===""||!me||me==="")&&ln:!1,Vr=!!$,fl=cl?pi||hi||ln||Pt==="outside"&&Vr:!1,dl=Pt==="outside"&&!ln&&!Vr,Zt=S.useMemo(()=>wk({...g,isInvalid:Jt,labelPlacement:Pt,isClearable:Ot,disableAnimation:ae}),[ds(g),Jt,Pt,Ot,Vr,ae]),vs=S.useCallback((Xe={})=>({ref:U,className:Zt.base({class:mt}),"data-slot":"base","data-filled":Ae(_e||ln||Vr||gs||ye),"data-filled-within":Ae(Qe||ln||Vr||gs||ye),"data-focus-within":Ae(J),"data-focus-visible":Ae(Rt),"data-readonly":Ae(e.isReadOnly),"data-focus":Ae(_n),"data-hover":Ae(Nt||Se),"data-required":Ae(e.isRequired),"data-invalid":Ae(Jt),"data-disabled":Ae(e.isDisabled),"data-has-elements":Ae(nr),"data-has-helper":Ae(ms),"data-has-label":Ae(aa),"data-has-value":Ae(!gs),"data-hidden":Ae(at),...Wt,...Xe}),[Zt,mt,_e,_n,Nt,Se,Jt,ms,aa,nr,gs,Vr,J,Rt,Qe,ln,Wt,at,e.isReadOnly,e.isRequired,e.isDisabled]),ys=S.useCallback((Xe={})=>({"data-slot":"label",className:Zt.label({class:F?.label}),...nn(Ut,ze,Xe)}),[Zt,Se,Ut,F?.label]),Ro=S.useCallback(Xe=>{Xe.key==="Escape"&&me&&(Ot||te)&&!e.isReadOnly&&(Ce(""),te?.())},[me,Ce,te,Ot,e.isReadOnly]),pl=S.useCallback((Xe={})=>({"data-slot":"input","data-filled":Ae(_e),"data-filled-within":Ae(Qe),"data-has-start-content":Ae(Vr),"data-has-end-content":Ae(!!Y),"data-type":k,className:Zt.input({class:Bt(F?.input,_e?"is-filled":"",Ie?"pe-0":"",k==="password"?"[&::-ms-reveal]:hidden":"")}),...nn(Er,Ue,Ef(H,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(Ue))}),Xe),"aria-readonly":Ae(e.isReadOnly),onChange:tl(Ue.onChange,ie),onKeyDown:tl(Ue.onKeyDown,Xe.onKeyDown,Ro),ref:D}),[Zt,me,Er,Ue,H,_e,Qe,Vr,Y,F?.input,e.isReadOnly,e.isRequired,ie,Ro]),bs=S.useCallback((Xe={})=>({ref:oe,"data-slot":"input-wrapper","data-hover":Ae(Nt||Se),"data-focus-visible":Ae(Rt),"data-focus":Ae(_n),className:Zt.inputWrapper({class:Bt(F?.inputWrapper,_e?"is-filled":"")}),...nn(Xe,pe),onClick:so=>{D.current&&so.currentTarget===so.target&&D.current.focus()},style:{cursor:"text",...Xe.style}}),[Zt,Nt,Se,Rt,_n,me,F?.inputWrapper]),la=S.useCallback((Xe={})=>({...Xe,ref:z,"data-slot":"inner-wrapper",onClick:so=>{D.current&&so.currentTarget===so.target&&D.current.focus()},className:Zt.innerWrapper({class:Bt(F?.innerWrapper,Xe?.className)})}),[Zt,F?.innerWrapper]),ua=S.useCallback((Xe={})=>({...Xe,"data-slot":"main-wrapper",className:Zt.mainWrapper({class:Bt(F?.mainWrapper,Xe?.className)})}),[Zt,F?.mainWrapper]),hl=S.useCallback((Xe={})=>({...Xe,"data-slot":"helper-wrapper",className:Zt.helperWrapper({class:Bt(F?.helperWrapper,Xe?.className)})}),[Zt,F?.helperWrapper]),Kf=S.useCallback((Xe={})=>({...Xe,...an,"data-slot":"description",className:Zt.description({class:Bt(F?.description,Xe?.className)})}),[Zt,F?.description]),Wf=S.useCallback((Xe={})=>({...Xe,..._t,"data-slot":"error-message",className:Zt.errorMessage({class:Bt(F?.errorMessage,Xe?.className)})}),[Zt,_t,F?.errorMessage]),Hf=S.useCallback((Xe={})=>({...Xe,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":Ae(lt),className:Zt.clearButton({class:Bt(F?.clearButton,Xe?.className)}),...nn(Vn,nt)}),[Zt,lt,Vn,nt,F?.clearButton]);return{Component:V,classNames:F,domRef:D,label:P,description:A,startContent:$,endContent:Y,labelPlacement:Pt,isClearable:Ot,hasHelper:ms,hasStartContent:Vr,isLabelOutside:fl,isOutsideLeft:pi,isOutsideTop:hi,isLabelOutsideAsPlaceholder:dl,shouldLabelBeOutside:cl,shouldLabelBeInside:Du,hasPlaceholder:ln,isInvalid:Jt,errorMessage:Pr,getBaseProps:vs,getLabelProps:ys,getInputProps:pl,getMainWrapperProps:ua,getInputWrapperProps:bs,getInnerWrapperProps:la,getHelperWrapperProps:hl,getDescriptionProps:Kf,getErrorMessageProps:Wf,getClearButtonProps:Hf}}function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rb.apply(null,arguments)}function fz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var dz=S.useLayoutEffect,pz=function(t){var n=He.useRef(t);return dz(function(){n.current=t}),n},Fk=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},hz=function(t,n){var r=He.useRef();return He.useCallback(function(i){t.current=i,r.current&&Fk(r.current,null),r.current=n,n&&Fk(n,i)},[n])},zk={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},mz=function(t){Object.keys(zk).forEach(function(n){t.style.setProperty(n,zk[n],"important")})},jk=mz,Dr=null,Bk=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function gz(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),Dr||(Dr=document.createElement("textarea"),Dr.setAttribute("tabindex","-1"),Dr.setAttribute("aria-hidden","true"),jk(Dr)),Dr.parentNode===null&&document.body.appendChild(Dr);var i=e.paddingSize,s=e.borderSize,a=e.sizingStyle,c=a.boxSizing;Object.keys(a).forEach(function(b){var x=b;Dr.style[x]=a[x]}),jk(Dr),Dr.value=t;var d=Bk(Dr,e);Dr.value=t,d=Bk(Dr,e),Dr.value="x";var h=Dr.scrollHeight-i,m=h*n;c==="border-box"&&(m=m+i+s),d=Math.max(m,d);var g=h*r;return c==="border-box"&&(g=g+i+s),d=Math.min(g,d),[d,h]}var Vk=function(){},vz=function(t,n){return t.reduce(function(r,i){return r[i]=n[i],r},{})},yz=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],bz=!!document.documentElement.currentStyle,xz=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=vz(yz,n),i=r.boxSizing;if(i==="")return null;bz&&i==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var s=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:s,borderSize:a}},wz=xz;function tw(e,t,n){var r=pz(n);S.useLayoutEffect(function(){var i=function(a){return r.current(a)};if(e)return e.addEventListener(t,i),function(){return e.removeEventListener(t,i)}},[])}var Sz=function(t,n){tw(document.body,"reset",function(r){t.current.form===r.target&&n(r)})},kz=function(t){tw(window,"resize",t)},Cz=function(t){tw(document.fonts,"loadingdone",t)},Ez=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Pz=function(t,n){var r=t.cacheMeasurements,i=t.maxRows,s=t.minRows,a=t.onChange,c=a===void 0?Vk:a,d=t.onHeightChange,h=d===void 0?Vk:d,m=fz(t,Ez),g=m.value!==void 0,b=S.useRef(null),x=hz(b,n),k=S.useRef(0),P=S.useRef(),T=function(){var M=b.current,F=r&&P.current?P.current:wz(M);if(F){P.current=F;var j=gz(F,M.value||M.placeholder||"x",s,i),$=j[0],Y=j[1];k.current!==$&&(k.current=$,M.style.setProperty("height",$+"px","important"),h($,{rowHeight:Y}))}},_=function(M){g||T(),c(M)};return S.useLayoutEffect(T),Sz(b,function(){if(!g){var A=b.current.value;requestAnimationFrame(function(){var M=b.current;M&&A!==M.value&&T()})}}),kz(T),Cz(T),S.createElement("textarea",Rb({},m,{onChange:_,ref:x}))},Tz=S.forwardRef(Pz),l2=jr(({style:e,minRows:t=3,maxRows:n=8,cacheMeasurements:r=!1,disableAutosize:i=!1,onHeightChange:s,...a},c)=>{const{Component:d,label:h,description:m,startContent:g,endContent:b,hasHelper:x,shouldLabelBeOutside:k,shouldLabelBeInside:P,isInvalid:T,errorMessage:_,getBaseProps:A,getLabelProps:M,getInputProps:F,getInnerWrapperProps:j,getInputWrapperProps:$,getHelperWrapperProps:Y,getDescriptionProps:te,getErrorMessageProps:ie,isClearable:B,getClearButtonProps:W}=cz({...a,ref:c,isMultiline:!0}),[G,ee]=S.useState(t>1),[H,le]=S.useState(!1),J=h?L.jsx("label",{...M(),children:h}):null,X=F(),V=(me,Ce)=>{if(t===1&&ee(me>=Ce.rowHeight*2),n>t){const ye=me>=n*Ce.rowHeight;le(ye)}s?.(me,Ce)},ae=i?L.jsx("textarea",{...X,style:nn(X.style,e??{})}):L.jsx(Tz,{...X,cacheMeasurements:r,"data-hide-scroll":Ae(!H),maxRows:n,minRows:t,style:nn(X.style,e??{}),onHeightChange:V}),D=S.useMemo(()=>B?L.jsx("button",{...W(),children:L.jsx(F_,{})}):null,[B,W]),U=S.useMemo(()=>g||b?L.jsxs("div",{...j(),children:[g,ae,b]}):L.jsx("div",{...j(),children:ae}),[g,X,b,j]),oe=T&&_,z=oe||m;return L.jsxs(d,{...A(),children:[k?J:null,L.jsxs("div",{...$(),"data-has-multiple-rows":Ae(G),children:[P?J:null,U,D]}),x&&z?L.jsx("div",{...Y(),children:oe?L.jsx("div",{...ie(),children:_}):L.jsx("div",{...te(),children:m})}):null]})});l2.displayName="HeroUI.Textarea";var _z=l2;function Iz(e,t){let{role:n="dialog"}=e,r=W0();r=e["aria-label"]?void 0:r;let i=S.useRef(!1);return S.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Eu(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Eu(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),b_(),{dialogProps:{...Au(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function $z(e){var t,n;const r=ci(),[i,s]=oa(e,kk.variantKeys),{ref:a,as:c,src:d,className:h,classNames:m,loading:g,isBlurred:b,fallbackSrc:x,isLoading:k,disableSkeleton:P=!!x,removeWrapper:T=!1,onError:_,onLoad:A,srcSet:M,sizes:F,crossOrigin:j,...$}=i,Y=E6({src:d,loading:g,onError:_,onLoad:A,ignoreFallback:!1,srcSet:M,sizes:F,crossOrigin:j,shouldBypassImageLoad:c!==void 0}),te=(n=(t=e.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,ie=Y==="loaded"&&!k,B=Y==="loading"||k,W=e.isZoomed,G=c||"img",ee=$i(a),{w:H,h:le}=S.useMemo(()=>({w:i.width?typeof i.width=="number"?`${i.width}px`:i.width:"fit-content",h:i.height?typeof i.height=="number"?`${i.height}px`:i.height:"auto"}),[i?.width,i?.height]),J=(!d||!ie)&&!!x,X=B&&!P,V=S.useMemo(()=>kk({...s,disableAnimation:te,showSkeleton:X}),[ds(s),te,X]),ae=Bt(h,m?.img),D=(z={})=>{const me=Bt(ae,z?.className);return{src:d,ref:ee,"data-loaded":Ae(ie),className:V.img({class:me}),loading:g,srcSet:M,sizes:F,crossOrigin:j,...$,style:{...$?.height&&{height:le},...z.style,...$.style}}},U=S.useCallback(()=>{const z=J?{backgroundImage:`url(${x})`}:{};return{className:V.wrapper({class:m?.wrapper}),style:{...z,maxWidth:H}}},[V,J,x,m?.wrapper,H]),oe=S.useCallback(()=>({src:d,"aria-hidden":Ae(!0),className:V.blurredImg({class:m?.blurredImg})}),[V,d,m?.blurredImg]);return{Component:G,domRef:ee,slots:V,classNames:m,isBlurred:b,disableSkeleton:P,fallbackSrc:x,removeWrapper:T,isZoomed:W,isLoading:B,getImgProps:D,getWrapperProps:U,getBlurredImgProps:oe}}var u2=jr((e,t)=>{const{Component:n,domRef:r,slots:i,classNames:s,isBlurred:a,isZoomed:c,fallbackSrc:d,removeWrapper:h,disableSkeleton:m,getImgProps:g,getWrapperProps:b,getBlurredImgProps:x}=$z({...e,ref:t}),k=L.jsx(n,{ref:r,...g()});if(h)return k;const P=L.jsx("div",{className:i.zoomedWrapper({class:s?.zoomedWrapper}),children:k});return a?L.jsxs("div",{...b(),children:[c?P:k,S.cloneElement(k,x())]}):c||!m||d?L.jsxs("div",{...b(),children:[" ",c?P:k]}):k});u2.displayName="HeroUI.Image";var y0=u2,[Az,c2]=pv({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),f2=jr((e,t)=>{const{as:n,children:r,className:i,...s}=e,{slots:a,classNames:c,bodyId:d,setBodyMounted:h}=c2(),m=$i(t),g=n||"div";return S.useEffect(()=>(h(!0),()=>h(!1)),[h]),L.jsx(g,{ref:m,className:a.body({class:Bt(c?.body,i)}),id:d,...s,children:r})});f2.displayName="HeroUI.ModalBody";var Rz=f2,Lz={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:Bp.ease},opacity:{duration:.4,ease:Bp.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:Bp.ease}}},ss=typeof document<"u"&&window.visualViewport,Mz=He.createContext(!1);function Dz(){return!1}function Nz(){return!0}function Oz(e){return()=>{}}function Fz(){return typeof He.useSyncExternalStore=="function"?He.useSyncExternalStore(Oz,Dz,Nz):S.useContext(Mz)}function zz(){let e=Fz(),[t,n]=S.useState(()=>e?{width:0,height:0}:Uk());return S.useEffect(()=>{let r=()=>{n(i=>{let s=Uk();return s.width===i.width&&s.height===i.height?i:s})};return ss?ss.addEventListener("resize",r):window.addEventListener("resize",r),()=>{ss?ss.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Uk(){return{width:ss&&ss?.width||window.innerWidth,height:ss&&ss?.height||window.innerHeight}}var Kk=()=>fi(()=>import("./index-Bvn9K6h_.js"),[]).then(e=>e.default),d2=e=>{const{as:t,children:n,role:r="dialog",...i}=e,{Component:s,domRef:a,slots:c,classNames:d,motionProps:h,backdrop:m,closeButton:g,hideCloseButton:b,disableAnimation:x,getDialogProps:k,getBackdropProps:P,getCloseButtonProps:T,onClose:_}=c2(),A=t||s||"div",M=zz(),{dialogProps:F}=Iz({role:r},a),j=S.isValidElement(g)?S.cloneElement(g,T()):L.jsx("button",{...T(),children:L.jsx(r6,{})}),$=S.useCallback(G=>{G.key==="Tab"&&G.nativeEvent.isComposing&&(G.stopPropagation(),G.preventDefault())},[]),Y=k(nn(F,i)),te=L.jsxs(A,{...Y,onKeyDown:tl(Y.onKeyDown,$),children:[L.jsx(uk,{onDismiss:_}),!b&&j,typeof n=="function"?n(_):n,L.jsx(uk,{onDismiss:_})]}),ie=S.useMemo(()=>m==="transparent"?null:x?L.jsx("div",{...P()}):L.jsx($f,{features:Kk,children:L.jsx(Af.div,{animate:"enter",exit:"exit",initial:"exit",variants:Zg.fade,...P()})}),[m,x,P]),B={"--visual-viewport-height":M.height+"px"},W=x?L.jsx("div",{className:c.wrapper({class:d?.wrapper}),"data-slot":"wrapper",style:B,children:te}):L.jsx($f,{features:Kk,children:L.jsx(Af.div,{animate:"enter",className:c.wrapper({class:d?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:Lz,...h,style:B,children:te})});return L.jsxs("div",{tabIndex:-1,children:[ie,W]})};d2.displayName="HeroUI.ModalContent";var jz=d2;function Bz(e={shouldBlockScroll:!0},t,n){let{overlayProps:r,underlayProps:i}=i2({...e,isOpen:t.isOpen,onClose:t.close},n);return mO({isDisabled:!t.isOpen||!e.shouldBlockScroll}),b_(),S.useEffect(()=>{if(t.isOpen&&n.current)return PO([n.current])},[t.isOpen,n]),{modalProps:Tn(r),underlayProps:i}}function Vz(e){var t,n,r;const i=ci(),[s,a]=oa(e,Sk.variantKeys),{ref:c,as:d,className:h,classNames:m,isOpen:g,defaultOpen:b,onOpenChange:x,motionProps:k,closeButton:P,isDismissable:T=!0,hideCloseButton:_=!1,shouldBlockScroll:A=!0,portalContainer:M,isKeyboardDismissDisabled:F=!1,onClose:j,...$}=s,Y=d||"section",te=$i(c),ie=S.useRef(null),[B,W]=S.useState(!1),[G,ee]=S.useState(!1),H=(n=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,le=S.useId(),J=S.useId(),X=S.useId(),V=r2({isOpen:g,defaultOpen:b,onOpenChange:_e=>{x?.(_e),_e||j?.()}}),{modalProps:ae,underlayProps:D}=Bz({isDismissable:T,shouldBlockScroll:A,isKeyboardDismissDisabled:F},V,te),{buttonProps:U}=U_({onPress:V.close},ie),{isFocusVisible:oe,focusProps:z}=Tu(),me=Bt(m?.base,h),Ce=S.useMemo(()=>Sk({...a,disableAnimation:H}),[ds(a),H]),ye=(_e={},Qe=null)=>{var at;return{ref:yE(Qe,te),...nn(ae,$,_e),className:Ce.base({class:Bt(me,_e.className)}),id:le,"data-open":Ae(V.isOpen),"data-dismissable":Ae(T),"aria-modal":Ae(!0),"data-placement":(at=e?.placement)!=null?at:"right","aria-labelledby":B?J:void 0,"aria-describedby":G?X:void 0}},Fe=S.useCallback((_e={})=>({className:Ce.backdrop({class:m?.backdrop}),...D,..._e}),[Ce,m,D]),Ne=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":Ae(oe),className:Ce.closeButton({class:m?.closeButton}),...nn(U,z)});return{Component:Y,slots:Ce,domRef:te,headerId:J,bodyId:X,motionProps:k,classNames:m,isDismissable:T,closeButton:P,hideCloseButton:_,portalContainer:M,shouldBlockScroll:A,backdrop:(r=e.backdrop)!=null?r:"opaque",isOpen:V.isOpen,onClose:V.close,disableAnimation:H,setBodyMounted:ee,setHeaderMounted:W,getDialogProps:ye,getBackdropProps:Fe,getCloseButtonProps:Ne}}var p2=jr((e,t)=>{const{children:n,...r}=e,i=Vz({...r,ref:t}),s=L.jsx(TO,{portalContainer:i.portalContainer,children:n});return L.jsx(Az,{value:i,children:i.disableAnimation&&i.isOpen?s:L.jsx(sl,{children:i.isOpen?s:null})})});p2.displayName="HeroUI.Modal";var Uz=p2;function Kz(e={}){const{id:t,defaultOpen:n,isOpen:r,onClose:i,onOpen:s,onChange:a=()=>{}}=e,c=Ab(s),d=Ab(i),[h,m]=Ru(r,n||!1,a),g=S.useId(),b=t||g,x=r!==void 0,k=S.useCallback(()=>{x||m(!1),d?.()},[x,d]),P=S.useCallback(()=>{x||m(!0),c?.()},[x,c]),T=S.useCallback(()=>{(h?k:P)()},[h,P,k]);return{isOpen:!!h,onOpen:P,onClose:k,onOpenChange:T,isControlled:x,getButtonProps:(_={})=>({..._,"aria-expanded":h,"aria-controls":b,onClick:Tf(_.onClick,T)}),getDisclosureProps:(_={})=>({..._,hidden:!h,id:b})}}function Wz(e){var t,n;const r=ci(),[i,s]=oa(e,xk.variantKeys),{as:a,children:c,isLoaded:d=!1,className:h,classNames:m,...g}=i,b=a||"div",x=(n=(t=e.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,k=S.useMemo(()=>xk({...s,disableAnimation:x}),[ds(s),x,c]),P=Bt(m?.base,h);return{Component:b,children:c,slots:k,classNames:m,getSkeletonProps:(A={})=>({"data-loaded":Ae(d),className:k.base({class:Bt(P,A?.className)}),...g}),getContentProps:(A={})=>({className:k.content({class:Bt(m?.content,A?.className)})})}}var h2=jr((e,t)=>{const{Component:n,children:r,getSkeletonProps:i,getContentProps:s}=Wz({...e});return L.jsx(n,{ref:t,...i(),children:L.jsx("div",{...s(),children:r})})});h2.displayName="HeroUI.Skeleton";var Hz=h2;function Gz(e={}){const{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:i="auto",offset:s=0,onVisibilityChange:a,updateDeps:c=[]}=e,d=S.useRef(i);S.useEffect(()=>{const h=t?.current;if(!h||!n)return;const m=(x,k,P,T,_)=>{if(i==="auto"){const A=`${T}${bL(_)}Scroll`;k&&P?(h.dataset[A]="true",h.removeAttribute(`data-${T}-scroll`),h.removeAttribute(`data-${_}-scroll`)):(h.dataset[`${T}Scroll`]=k.toString(),h.dataset[`${_}Scroll`]=P.toString(),h.removeAttribute(`data-${T}-${_}-scroll`))}else{const A=k&&P?"both":k?T:P?_:"none";A!==d.current&&(a?.(A),d.current=A)}},g=()=>{var x,k;const P=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],T=h.querySelector('ul[data-slot="list"]'),_=+((x=T?.getAttribute("data-virtual-scroll-height"))!=null?x:h.scrollHeight),A=+((k=T?.getAttribute("data-virtual-scroll-top"))!=null?k:h.scrollTop);for(const{type:M,prefix:F,suffix:j}of P)if(r===M||r==="both"){const $=M==="vertical"?A>s:h.scrollLeft>s,Y=M==="vertical"?A+h.clientHeight+s<_:h.scrollLeft+h.clientWidth+s<h.scrollWidth;m(M,$,Y,F,j)}},b=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(x=>{h.removeAttribute(`data-${x}-scroll`)})};return g(),h.addEventListener("scroll",g,!0),i!=="auto"&&(b(),i==="both"?(h.dataset.topBottomScroll=String(r==="vertical"),h.dataset.leftRightScroll=String(r==="horizontal")):(h.dataset.topBottomScroll="false",h.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(x=>{h.dataset[`${x}Scroll`]=String(i===x)}))),()=>{h.removeEventListener("scroll",g,!0),b()}},[...c,n,i,r,a,t])}function qz(e){var t;const[n,r]=oa(e,bk.variantKeys),{ref:i,as:s,children:a,className:c,style:d,size:h=40,offset:m=0,visibility:g="auto",isEnabled:b=!0,onVisibilityChange:x,...k}=n,P=s||"div",T=$i(i);Gz({domRef:T,offset:m,visibility:g,isEnabled:b,onVisibilityChange:x,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const _=S.useMemo(()=>bk({...r,className:c}),[ds(r),c]);return{Component:P,styles:_,domRef:T,children:a,getBaseProps:(M={})=>{var F;return{ref:T,className:_,"data-orientation":(F=e.orientation)!=null?F:"vertical",style:{"--scroll-shadow-size":`${h}px`,...d,...M.style},...k,...M}}}}var m2=jr((e,t)=>{const{Component:n,children:r,getBaseProps:i}=qz({...e,ref:t});return L.jsx(n,{...i(),children:r})});m2.displayName="HeroUI.ScrollShadow";var g2=m2;const rq={Like:"like",Dislike:"dislike"},Yz={Start:"START"},kf={User:"user",Assistant:"assistant"},uf={Pending:"pending",InProgress:"in_progress",Completed:"completed"};class v2{constructor(t={}){if(this.chunkQueue=new Map,this.baseUrl=t.baseUrl??"",this.auth=t.auth,this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.slice(0,-1)),!!this.baseUrl)try{new URL(this.baseUrl)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}. Please provide a valid URL.`)}}getBaseUrl(){return this.baseUrl}_buildApiUrl(t){return`${this.baseUrl}${t}`}async _makeRequest(t,n={}){const i={...{"Content-Type":"application/json"},...this.normalizeHeaders(n.headers)};this.auth?.getToken&&(i.Authorization=`Bearer ${this.auth.getToken()}`);const s=await fetch(t,{...n,headers:i,...this.auth?.credentials?{credentials:this.auth?.credentials}:{}});if(s.status===401&&this.auth?.onUnauthorized?.(),!s.ok)throw new Error(`HTTP error! status: ${s.status}`);return s}async makeRequest(t,...n){const r=n[0],{method:i="GET",body:s,pathParams:a,queryParams:c,headers:d={},...h}=r||{},m={method:i,headers:d,...h};s&&i!=="GET"&&(m.body=typeof s=="string"?s:JSON.stringify(s));let g=t.toString();if(a&&typeof a=="object"&&(g=g.replace(/:([^/]+)/g,(x,k)=>{if(k in a){const P=a[k];return encodeURIComponent(String(P))}else throw new Error(`Path parameter ${k} is required`)})),c&&Object.keys(c).length>0){const x=new URLSearchParams;for(const[k,P]of Object.entries(c))P!=null&&x.append(k,String(P));g+=`?${x.toString()}`}return g=this._buildApiUrl(g),(await this._makeRequest(g,m)).json()}makeStreamRequest(t,n,r,i,s){let a=!1;const c=async h=>{const m=h.body?.pipeThrough(new TextDecoderStream).getReader();if(!m)throw new Error("Response body is null");let g="";for(;!a&&!i?.aborted;)try{const{value:b,done:x}=await m.read();if(x){r.onClose?.();break}g+=b;const k=g.split(`
24
+ `);g=k.pop()??"";for(const P of k)if(P.startsWith("data: "))try{const T=P.replace("data: ","").trim(),_=JSON.parse(T);if(!this.isChatResponse(_)){console.warn("Received response that isn't ChatResponse, skipping.",_);continue}if(_.type==="chunked_content"){this.handleChunkedContent(_,r);continue}await r.onMessage(_),await new Promise(A=>setTimeout(A,0))}catch(T){console.error("Error parsing JSON:",T),await r.onError(new Error("Error processing server response"))}}catch(b){if(i?.aborted)return;console.error("Stream error:",b),await r.onError(new Error("Error reading stream"));break}},d=async()=>{try{const m={...{"Content-Type":"application/json",Accept:"text/event-stream"},...s};this.auth?.getToken&&(m.Authorization=`Bearer ${this.auth.getToken()}`);const g=await fetch(this._buildApiUrl(t.toString()),{method:"POST",headers:m,body:JSON.stringify(n),signal:i,...this.auth?.credentials?{credentials:this.auth?.credentials}:{}});if(g.status===401&&this.auth?.onUnauthorized?.(),!g.ok)throw new Error(`HTTP error! status: ${g.status}`);await c(g)}catch(h){if(i?.aborted)return;console.error("Request error:",h);const m=h instanceof Error?h.message:"Error connecting to server";await r.onError(new Error(m))}};try{d()}catch(h){const m=h instanceof Error?h.message:"Failed to start stream";r.onError(new Error(m))}return()=>{a=!0}}isChatResponse(t){return t!==null&&typeof t=="object"&&"type"in t&&"content"in t}normalizeHeaders(t){return t?t instanceof Headers?Object.fromEntries(t.entries()):Array.isArray(t)?Object.fromEntries(t):t:{}}async handleChunkedContent(t,n){const i=t.content,{content_type:s,id:a,chunk_index:c,total_chunks:d,mime_type:h,data:m}=i;this.chunkQueue.has(a)||this.chunkQueue.set(a,{chunks:new Map,totalChunks:d,mimeType:h});const g=this.chunkQueue.get(a);if(g.chunks.set(c,m),g.chunks.size!==d)return;const x=Array.from({length:d},(k,P)=>g.chunks.get(P)).join("");try{atob(x)}catch(k){this.chunkQueue.delete(a),console.error("❌ Invalid base64 data: ",k),await n.onError(new Error("Error reading stream"))}if(s==="image"){const k={type:"image",content:{id:a,url:`${g.mimeType},${x}`}};await n.onMessage(k)}this.chunkQueue.delete(a)}}const y2=S.createContext(null);function Xz({children:e,...t}){const n=S.useMemo(()=>new v2(t),[t]),r=S.useMemo(()=>({client:n}),[n]);return L.jsx(y2.Provider,{value:r,children:e})}function nw(){const e=S.useContext(y2);if(!e)throw new Error("useRagbitsContext must be used within a RagbitsProvider");return e}function Qz(e,t){const{client:n}=nw(),[r,i]=S.useState(null),[s,a]=S.useState(null),[c,d]=S.useState(!1),h=S.useRef(null),m=S.useCallback(()=>{if(!h.current)return null;h.current.abort(),h.current=null,d(!1)},[]),g=S.useCallback(async(...x)=>{const k=x[0];h.current&&c&&h.current.abort();const P=new AbortController;h.current=P,d(!0),a(null);try{const _={...{...t,...k||{},headers:{...t?.headers,...k?.headers||{}}},signal:P.signal},A=await n.makeRequest(e,_);return P.signal.aborted||(i(A),h.current=null),A}catch(T){if(!P.signal.aborted){const _=T instanceof Error?T:new Error("API call failed");throw a(_),h.current=null,_}throw T}finally{P.signal.aborted||d(!1)}},[n,e,t,c]),b=S.useCallback(()=>{m(),i(null),a(null),d(!1)},[m]);return{data:r,error:s,isLoading:c,call:g,reset:b,abort:m}}var To=(e=>(e.LIGHT="light",e.DARK="dark",e))(To||{});const b2=S.createContext(null),Jz="🐰",Zz="Ragbits Chat",e8="by deepsense.ai",t8="Loading...",x2="";function n8(){return window.matchMedia("(prefers-color-scheme: dark)").matches?To.DARK:To.LIGHT}function Wk(){const e=window.localStorage.getItem("theme");return e===To.DARK||e===To.LIGHT?e:n8()}function r8(e){return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}const i8=({children:e})=>{const t=S.useSyncExternalStore(r8,Wk,Wk),n=S.useRef(!1),r=new v2({baseUrl:x2});S.useEffect(()=>{if(n.current)return;(async()=>{try{const c=r.getBaseUrl(),d=await fetch(`${c}/api/theme`);if(d.ok){const h=await d.text(),m=document.getElementById("heroui-custom-theme");m&&m.remove();const g=document.createElement("style");g.id="heroui-custom-theme",g.textContent=h,document.head.appendChild(g),console.log("Custom HeroUI theme loaded successfully"),n.current=!0}}catch(c){console.warn("No custom theme available:",c),n.current=!0}})()},[]),S.useEffect(()=>{document.documentElement.classList.toggle("dark",t===To.DARK)},[t]);const i=S.useCallback(a=>{window.localStorage.setItem("theme",a),window.dispatchEvent(new Event("storage"))},[]),s=S.useMemo(()=>({theme:t,setTheme:i}),[t,i]);return L.jsx(b2.Provider,{value:s,children:e})},w2=Object.freeze({left:0,top:0,width:16,height:16}),nv=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),rw=Object.freeze({...w2,...nv}),Lb=Object.freeze({...rw,body:"",hidden:!1});function o8(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Hk(e,t){const n=o8(e,t);for(const r in Lb)r in nv?r in e&&!(r in n)&&(n[r]=nv[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function s8(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(a){if(n[a])return i[a]=[];if(!(a in i)){i[a]=null;const c=r[a]&&r[a].parent,d=c&&s(c);d&&(i[a]=[c].concat(d))}return i[a]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function a8(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function a(c){s=Hk(r[c]||i[c],s)}return a(t),n.forEach(a),Hk(e,s)}function S2(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=s8(e);for(const i in r){const s=r[i];s&&(t(i,a8(e,i,s)),n.push(i))}return n}const l8={provider:"",aliases:{},not_found:{},...w2};function b0(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function k2(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!b0(e,l8))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i||typeof s.body!="string"||!b0(s,Lb))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],a=s.parent;if(!i||typeof a!="string"||!n[a]&&!r[a]||!b0(s,Lb))return null}return t}const C2=/^[a-z0-9]+(-[a-z0-9]+)*$/,Cv=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const c=i.pop(),d=i.pop(),h={provider:i.length>0?i[0]:r,prefix:d,name:c};return t&&!Dg(h)?null:h}const s=i[0],a=s.split("-");if(a.length>1){const c={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Dg(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!Dg(c,n)?null:c}return null},Dg=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Gk=Object.create(null);function u8(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Rf(e,t){const n=Gk[e]||(Gk[e]=Object.create(null));return n[t]||(n[t]=u8(e,t))}function E2(e,t){return k2(t)?S2(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function c8(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let ah=!1;function P2(e){return typeof e=="boolean"&&(ah=e),ah}function qk(e){const t=typeof e=="string"?Cv(e,!0,ah):e;if(t){const n=Rf(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function f8(e,t){const n=Cv(e,!0,ah);if(!n)return!1;const r=Rf(n.provider,n.prefix);return t?c8(r,n.name,t):(r.missing.add(n.name),!0)}function d8(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ah&&!t&&!e.prefix){let i=!1;return k2(e)&&(e.prefix="",S2(e,(s,a)=>{f8(s,a)&&(i=!0)})),i}const n=e.prefix;if(!Dg({prefix:n,name:"a"}))return!1;const r=Rf(t,n);return!!E2(r,e)}const T2=Object.freeze({width:null,height:null}),_2=Object.freeze({...T2,...nv}),p8=/(-?[0-9.]*[0-9]+[0-9.]*)/g,h8=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Yk(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(p8);if(r===null||!r.length)return e;const i=[];let s=r.shift(),a=h8.test(s);for(;;){if(a){const c=parseFloat(s);isNaN(c)?i.push(s):i.push(Math.ceil(c*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");a=!a}}function m8(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),s=e.indexOf("</"+t);if(i===-1||s===-1)break;const a=e.indexOf(">",s);if(a===-1)break;n+=e.slice(i+1,s).trim(),e=e.slice(0,r).trim()+e.slice(a+1)}return{defs:n,content:e}}function g8(e,t){return e?"<defs>"+e+"</defs>"+t:t}function v8(e,t,n){const r=m8(e);return g8(r.defs,t+r.content+n)}const y8=e=>e==="unset"||e==="undefined"||e==="none";function b8(e,t){const n={...rw,...e},r={..._2,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(P=>{const T=[],_=P.hFlip,A=P.vFlip;let M=P.rotate;_?A?M+=2:(T.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),T.push("scale(-1 1)"),i.top=i.left=0):A&&(T.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),T.push("scale(1 -1)"),i.top=i.left=0);let F;switch(M<0&&(M-=Math.floor(M/4)*4),M=M%4,M){case 1:F=i.height/2+i.top,T.unshift("rotate(90 "+F.toString()+" "+F.toString()+")");break;case 2:T.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:F=i.width/2+i.left,T.unshift("rotate(-90 "+F.toString()+" "+F.toString()+")");break}M%2===1&&(i.left!==i.top&&(F=i.left,i.left=i.top,i.top=F),i.width!==i.height&&(F=i.width,i.width=i.height,i.height=F)),T.length&&(s=v8(s,'<g transform="'+T.join(" ")+'">',"</g>"))});const a=r.width,c=r.height,d=i.width,h=i.height;let m,g;a===null?(g=c===null?"1em":c==="auto"?h:c,m=Yk(g,d/h)):(m=a==="auto"?d:a,g=c===null?Yk(m,h/d):c==="auto"?h:c);const b={},x=(P,T)=>{y8(T)||(b[P]=T.toString())};x("width",m),x("height",g);const k=[i.left,i.top,d,h];return b.viewBox=k.join(" "),{attributes:b,viewBox:k,body:s}}const x8=/\sid="(\S+)"/g,w8="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let S8=0;function k8(e,t=w8){const n=[];let r;for(;r=x8.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const a=typeof t=="function"?t(s):t+(S8++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Mb=Object.create(null);function C8(e,t){Mb[e]=t}function Db(e){return Mb[e]||Mb[""]}function iw(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ow=Object.create(null),wp=["https://api.simplesvg.com","https://api.unisvg.com"],Ng=[];for(;wp.length>0;)wp.length===1||Math.random()>.5?Ng.push(wp.shift()):Ng.push(wp.pop());ow[""]=iw({resources:["https://api.iconify.design"].concat(Ng)});function E8(e,t){const n=iw(t);return n===null?!1:(ow[e]=n,!0)}function sw(e){return ow[e]}const P8=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Xk=P8();function T8(e,t){const n=sw(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(a=>{i=Math.max(i,a.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function _8(e){return e===404}const I8=(e,t,n)=>{const r=[],i=T8(e,t),s="icons";let a={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((d,h)=>{c+=d.length+1,c>=i&&h>0&&(r.push(a),a={type:s,provider:e,prefix:t,icons:[]},c=d.length),a.icons.push(d)}),r.push(a),r};function $8(e){if(typeof e=="string"){const t=sw(e);if(t)return t.path}return"/"}const A8=(e,t,n)=>{if(!Xk){n("abort",424);return}let r=$8(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),d=new URLSearchParams({icons:c});r+=s+".json?"+d.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Xk(e+r).then(s=>{const a=s.status;if(a!==200){setTimeout(()=>{n(_8(a)?"abort":"next",a)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},R8={prepare:I8,send:A8};function L8(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,a=i.prefix,c=i.name,d=n[s]||(n[s]=Object.create(null)),h=d[a]||(d[a]=Rf(s,a));let m;c in h.icons?m=t.loaded:a===""||h.missing.has(c)?m=t.missing:m=t.pending;const g={provider:s,prefix:a,name:c};m.push(g)}),t}function I2(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function M8(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const a=s.icons,c=a.pending.length;a.pending=a.pending.filter(d=>{if(d.prefix!==i)return!0;const h=d.name;if(e.icons[h])a.loaded.push({provider:r,prefix:i,name:h});else if(e.missing.has(h))a.missing.push({provider:r,prefix:i,name:h});else return n=!0,!0;return!1}),a.pending.length!==c&&(n||I2([e],s.id),s.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),s.abort))})}))}let D8=0;function N8(e,t,n){const r=D8++,i=I2.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(s)}),i}function O8(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Cv(i,t,n):i;s&&r.push(s)}),r}var F8={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function z8(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let $=e.resources.slice(0);for(a=[];$.length>1;){const Y=Math.floor(Math.random()*$.length);a.push($[Y]),$=$.slice(0,Y).concat($.slice(Y+1))}a=a.concat($)}else a=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let d="pending",h=0,m,g=null,b=[],x=[];typeof r=="function"&&x.push(r);function k(){g&&(clearTimeout(g),g=null)}function P(){d==="pending"&&(d="aborted"),k(),b.forEach($=>{$.status==="pending"&&($.status="aborted")}),b=[]}function T($,Y){Y&&(x=[]),typeof $=="function"&&x.push($)}function _(){return{startTime:c,payload:t,status:d,queriesSent:h,queriesPending:b.length,subscribe:T,abort:P}}function A(){d="failed",x.forEach($=>{$(void 0,m)})}function M(){b.forEach($=>{$.status==="pending"&&($.status="aborted")}),b=[]}function F($,Y,te){const ie=Y!=="success";switch(b=b.filter(B=>B!==$),d){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(Y==="abort"){m=te,A();return}if(ie){m=te,b.length||(a.length?j():A());return}if(k(),M(),!e.random){const B=e.resources.indexOf($.resource);B!==-1&&B!==e.index&&(e.index=B)}d="completed",x.forEach(B=>{B(te)})}function j(){if(d!=="pending")return;k();const $=a.shift();if($===void 0){if(b.length){g=setTimeout(()=>{k(),d==="pending"&&(M(),A())},e.timeout);return}A();return}const Y={status:"pending",resource:$,callback:(te,ie)=>{F(Y,te,ie)}};b.push(Y),h++,g=setTimeout(j,e.rotate),n($,t,Y.callback)}return setTimeout(j),_}function $2(e){const t={...F8,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function i(c,d,h){const m=z8(t,c,d,(g,b)=>{r(),h&&h(g,b)});return n.push(m),m}function s(c){return n.find(d=>c(d))||null}return{query:i,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Qk(){}const x0=Object.create(null);function j8(e){if(!x0[e]){const t=sw(e);if(!t)return;const n=$2(t),r={config:t,redundancy:n};x0[e]=r}return x0[e]}function B8(e,t,n){let r,i;if(typeof e=="string"){const s=Db(e);if(!s)return n(void 0,424),Qk;i=s.send;const a=j8(e);a&&(r=a.redundancy)}else{const s=iw(e);if(s){r=$2(s);const a=e.resources?e.resources[0]:"",c=Db(a);c&&(i=c.send)}}return!r||!i?(n(void 0,424),Qk):r.query(t,i,n)().abort}function Jk(){}function V8(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,M8(e)}))}function U8(e){const t=[],n=[];return e.forEach(r=>{(r.match(C2)?t:n).push(r)}),{valid:t,invalid:n}}function Sp(e,t,n){function r(){const i=e.pendingIcons;t.forEach(s=>{i&&i.delete(s),e.icons[s]||e.missing.add(s)})}if(n&&typeof n=="object")try{if(!E2(e,n).length){r();return}}catch(i){console.error(i)}r(),V8(e)}function Zk(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function K8(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const s=e.loadIcon;if(e.loadIcons&&(i.length>1||!s)){Zk(e.loadIcons(i,r,n),m=>{Sp(e,i,m)});return}if(s){i.forEach(m=>{const g=s(m,r,n);Zk(g,b=>{const x=b?{prefix:r,icons:{[m]:b}}:null;Sp(e,[m],x)})});return}const{valid:a,invalid:c}=U8(i);if(c.length&&Sp(e,c,null),!a.length)return;const d=r.match(C2)?Db(n):null;if(!d){Sp(e,a,null);return}d.prepare(n,r,a).forEach(m=>{B8(n,m,g=>{Sp(e,m.icons,g)})})}))}const A2=(e,t)=>{const n=O8(e,!0,P2()),r=L8(n);if(!r.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(r.loaded,r.missing,r.pending,Jk)}),()=>{d=!1}}const i=Object.create(null),s=[];let a,c;return r.pending.forEach(d=>{const{provider:h,prefix:m}=d;if(m===c&&h===a)return;a=h,c=m,s.push(Rf(h,m));const g=i[h]||(i[h]=Object.create(null));g[m]||(g[m]=[])}),r.pending.forEach(d=>{const{provider:h,prefix:m,name:g}=d,b=Rf(h,m),x=b.pendingIcons||(b.pendingIcons=new Set);x.has(g)||(x.add(g),i[h][m].push(g))}),s.forEach(d=>{const h=i[d.provider][d.prefix];h.length&&K8(d,h)}),t?N8(t,r,s):Jk};function W8(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in T2?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const H8=/[\s,]+/;function G8(e,t){t.split(H8).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function q8(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function Y8(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function X8(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Q8(e){return"data:image/svg+xml,"+X8(e)}function J8(e){return'url("'+Q8(e)+'")'}let Vp;function Z8(){try{Vp=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Vp=null}}function e7(e){return Vp===void 0&&Z8(),Vp?Vp.createHTML(e):e}const R2={..._2,inline:!1},t7={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},n7={display:"inline-block"},Nb={backgroundColor:"currentColor"},L2={backgroundColor:"transparent"},eC={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},tC={WebkitMask:Nb,mask:Nb,background:L2};for(const e in tC){const t=tC[e];for(const n in eC)t[e+n]=eC[n]}const r7={...R2,inline:!0};function nC(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const i7=(e,t,n)=>{const r=t.inline?r7:R2,i=W8(r,t),s=t.mode||"svg",a={},c=t.style||{},d={...s==="svg"?t7:{}};if(n){const T=Cv(n,!1,!0);if(T){const _=["iconify"],A=["provider","prefix"];for(const M of A)T[M]&&_.push("iconify--"+T[M]);d.className=_.join(" ")}}for(let T in t){const _=t[T];if(_!==void 0)switch(T){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":d.ref=_;break;case"className":d[T]=(d[T]?d[T]+" ":"")+_;break;case"inline":case"hFlip":case"vFlip":i[T]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&G8(i,_);break;case"color":a.color=_;break;case"rotate":typeof _=="string"?i[T]=q8(_):typeof _=="number"&&(i[T]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete d["aria-hidden"];break;default:r[T]===void 0&&(d[T]=_)}}const h=b8(e,i),m=h.attributes;if(i.inline&&(a.verticalAlign="-0.125em"),s==="svg"){d.style={...a,...c},Object.assign(d,m);let T=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:e7(k8(h.body,_?()=>_+"ID"+T++:"iconifyReact"))},S.createElement("svg",d)}const{body:g,width:b,height:x}=e,k=s==="mask"||(s==="bg"?!1:g.indexOf("currentColor")!==-1),P=Y8(g,{...m,width:b+"",height:x+""});return d.style={...a,"--svg":J8(P),width:nC(m.width),height:nC(m.height),...n7,...k?Nb:L2,...c},S.createElement("span",d)};P2(!0);C8("",R8);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!d8(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;E8(n,i)||console.error(r)}catch{console.error(r)}}}}function M2(e){const[t,n]=S.useState(!!e.ssr),[r,i]=S.useState({});function s(x){if(x){const k=e.icon;if(typeof k=="object")return{name:"",data:k};const P=qk(k);if(P)return{name:k,data:P}}return{name:""}}const[a,c]=S.useState(s(!!e.ssr));function d(){const x=r.callback;x&&(x(),i({}))}function h(x){if(JSON.stringify(a)!==JSON.stringify(x))return d(),c(x),!0}function m(){var x;const k=e.icon;if(typeof k=="object"){h({name:"",data:k});return}const P=qk(k);if(h({name:k,data:P}))if(P===void 0){const T=A2([k],m);i({callback:T})}else P&&((x=e.onLoad)===null||x===void 0||x.call(e,k))}S.useEffect(()=>(n(!0),d),[]),S.useEffect(()=>{t&&m()},[e.icon,t]);const{name:g,data:b}=a;return b?i7({...rw,...b},e,g):e.children?e.children:e.fallback?e.fallback:S.createElement("span",{})}const ui=S.forwardRef((e,t)=>M2({...e,_ref:t}));S.forwardRef((e,t)=>M2({inline:!0,...e,_ref:t}));var Lp={exports:{}};var o7=Lp.exports,rC;function s7(){return rC||(rC=1,(function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",g=1,b=2,x=4,k=1,P=2,T=1,_=2,A=4,M=8,F=16,j=32,$=64,Y=128,te=256,ie=512,B=30,W="...",G=800,ee=16,H=1,le=2,J=3,X=1/0,V=9007199254740991,ae=17976931348623157e292,D=NaN,U=4294967295,oe=U-1,z=U>>>1,me=[["ary",Y],["bind",T],["bindKey",_],["curry",M],["curryRight",F],["flip",ie],["partial",j],["partialRight",$],["rearg",te]],Ce="[object Arguments]",ye="[object Array]",Fe="[object AsyncFunction]",Ne="[object Boolean]",_e="[object Date]",Qe="[object DOMException]",at="[object Error]",Ie="[object Function]",mt="[object GeneratorFunction]",pt="[object Map]",Ut="[object Number]",Ue="[object Null]",it="[object Object]",Kt="[object Promise]",tr="[object Proxy]",an="[object RegExp]",_t="[object Set]",Rt="[object String]",_n="[object Symbol]",Er="[object Undefined]",Nt="[object WeakMap]",pe="[object WeakSet]",Se="[object ArrayBuffer]",ze="[object DataView]",nt="[object Float32Array]",lt="[object Float64Array]",Wt="[object Int8Array]",Vn="[object Int16Array]",Jt="[object Int32Array]",Pt="[object Uint8Array]",Pr="[object Uint8ClampedArray]",Ot="[object Uint16Array]",nr="[object Uint32Array]",ln=/\b__p \+= '';/g,aa=/\b(__p \+=) '' \+/g,ms=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pi=/&(?:amp|lt|gt|quot|#39);/g,hi=/[&<>"']/g,cl=RegExp(pi.source),Du=RegExp(hi.source),gs=/<%-([\s\S]+?)%>/g,Vr=/<%([\s\S]+?)%>/g,fl=/<%=([\s\S]+?)%>/g,dl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zt=/^\w*$/,vs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ys=/[\\^$.*+?()[\]{}|]/g,Ro=RegExp(ys.source),pl=/^\s+/,bs=/\s/,la=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ua=/\{\n\/\* \[wrapped with (.+)\] \*/,hl=/,? & /,Kf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wf=/[()=,{}\[\]\/\s]/,Hf=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,so=/\w*$/,$h=/^[-+]0x[0-9a-f]+$/i,Fv=/^0b[01]+$/i,Ah=/^\[object .+?Constructor\]$/,Rh=/^0o[0-7]+$/i,Lh=/^(?:0|[1-9]\d*)$/,Mh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nu=/($^)/,zv=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",jv="\\u0300-\\u036f",Gf="\\ufe20-\\ufe2f",Dh="\\u20d0-\\u20ff",ml=jv+Gf+Dh,Nh="\\u2700-\\u27bf",qf="a-z\\xdf-\\xf6\\xf8-\\xff",Ou="\\xac\\xb1\\xd7\\xf7",Mi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bv="\\u2000-\\u206f",mi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oh="A-Z\\xc0-\\xd6\\xd8-\\xde",Fh="\\ufe0e\\ufe0f",zh=Ou+Mi+Bv+mi,ca="['’]",Fu="["+Ht+"]",fa="["+zh+"]",xs="["+ml+"]",jh="\\d+",Vv="["+Nh+"]",zu="["+qf+"]",Yf="[^"+Ht+zh+jh+Nh+qf+Oh+"]",gl="\\ud83c[\\udffb-\\udfff]",vl="(?:"+xs+"|"+gl+")",Bh="[^"+Ht+"]",yl="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",ws="["+Oh+"]",Xf="\\u200d",ju="(?:"+zu+"|"+Yf+")",Vh="(?:"+ws+"|"+Yf+")",Qf="(?:"+ca+"(?:d|ll|m|re|s|t|ve))?",Jf="(?:"+ca+"(?:D|LL|M|RE|S|T|VE))?",Bu=vl+"?",bl="["+Fh+"]?",Lo="(?:"+Xf+"(?:"+[Bh,yl,Et].join("|")+")"+bl+Bu+")*",Mo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Do="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",da=bl+Bu+Lo,xl="(?:"+[Vv,yl,Et].join("|")+")"+da,No="(?:"+[Bh+xs+"?",xs,yl,Et,Fu].join("|")+")",Uv=RegExp(ca,"g"),Uh=RegExp(xs,"g"),Ss=RegExp(gl+"(?="+gl+")|"+No+da,"g"),Kv=RegExp([ws+"?"+zu+"+"+Qf+"(?="+[fa,ws,"$"].join("|")+")",Vh+"+"+Jf+"(?="+[fa,ws+ju,"$"].join("|")+")",ws+"?"+ju+"+"+Qf,ws+"+"+Jf,Do,Mo,jh,xl].join("|"),"g"),Kh=RegExp("["+Xf+Ht+ml+Fh+"]"),Vu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Wv=-1,It={};It[nt]=It[lt]=It[Wt]=It[Vn]=It[Jt]=It[Pt]=It[Pr]=It[Ot]=It[nr]=!0,It[Ce]=It[ye]=It[Se]=It[Ne]=It[ze]=It[_e]=It[at]=It[Ie]=It[pt]=It[Ut]=It[it]=It[an]=It[_t]=It[Rt]=It[Nt]=!1;var Tt={};Tt[Ce]=Tt[ye]=Tt[Se]=Tt[ze]=Tt[Ne]=Tt[_e]=Tt[nt]=Tt[lt]=Tt[Wt]=Tt[Vn]=Tt[Jt]=Tt[pt]=Tt[Ut]=Tt[it]=Tt[an]=Tt[_t]=Tt[Rt]=Tt[_n]=Tt[Pt]=Tt[Pr]=Tt[Ot]=Tt[nr]=!0,Tt[at]=Tt[Ie]=Tt[Nt]=!1;var pa={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Uu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hv={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Gv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zf=parseFloat,Ku=parseInt,Wu=typeof ig=="object"&&ig&&ig.Object===Object&&ig,Hh=typeof self=="object"&&self&&self.Object===Object&&self,Gt=Wu||Hh||Function("return this")(),wl=t&&!t.nodeType&&t,Di=wl&&!0&&e&&!e.nodeType&&e,ed=Di&&Di.exports===wl,ha=ed&&Wu.process,rr=(function(){try{var re=Di&&Di.require&&Di.require("util").types;return re||ha&&ha.binding&&ha.binding("util")}catch{}})(),td=rr&&rr.isArrayBuffer,pr=rr&&rr.isDate,ks=rr&&rr.isMap,Hu=rr&&rr.isRegExp,ma=rr&&rr.isSet,Gh=rr&&rr.isTypedArray;function ir(re,he,fe){switch(fe.length){case 0:return re.call(he);case 1:return re.call(he,fe[0]);case 2:return re.call(he,fe[0],fe[1]);case 3:return re.call(he,fe[0],fe[1],fe[2])}return re.apply(he,fe)}function nd(re,he,fe,Re){for(var rt=-1,wt=re==null?0:re.length;++rt<wt;){var pn=re[rt];he(Re,pn,fe(pn),re)}return Re}function Un(re,he){for(var fe=-1,Re=re==null?0:re.length;++fe<Re&&he(re[fe],fe,re)!==!1;);return re}function Gu(re,he){for(var fe=re==null?0:re.length;fe--&&he(re[fe],fe,re)!==!1;);return re}function rd(re,he){for(var fe=-1,Re=re==null?0:re.length;++fe<Re;)if(!he(re[fe],fe,re))return!1;return!0}function Oo(re,he){for(var fe=-1,Re=re==null?0:re.length,rt=0,wt=[];++fe<Re;){var pn=re[fe];he(pn,fe,re)&&(wt[rt++]=pn)}return wt}function qu(re,he){var fe=re==null?0:re.length;return!!fe&&ga(re,he,0)>-1}function id(re,he,fe){for(var Re=-1,rt=re==null?0:re.length;++Re<rt;)if(fe(he,re[Re]))return!0;return!1}function Lt(re,he){for(var fe=-1,Re=re==null?0:re.length,rt=Array(Re);++fe<Re;)rt[fe]=he(re[fe],fe,re);return rt}function Fo(re,he){for(var fe=-1,Re=he.length,rt=re.length;++fe<Re;)re[rt+fe]=he[fe];return re}function od(re,he,fe,Re){var rt=-1,wt=re==null?0:re.length;for(Re&&wt&&(fe=re[++rt]);++rt<wt;)fe=he(fe,re[rt],rt,re);return fe}function qv(re,he,fe,Re){var rt=re==null?0:re.length;for(Re&&rt&&(fe=re[--rt]);rt--;)fe=he(fe,re[rt],rt,re);return fe}function sd(re,he){for(var fe=-1,Re=re==null?0:re.length;++fe<Re;)if(he(re[fe],fe,re))return!0;return!1}var Yv=ld("length");function qh(re){return re.split("")}function Xv(re){return re.match(Kf)||[]}function Yh(re,he,fe){var Re;return fe(re,function(rt,wt,pn){if(he(rt,wt,pn))return Re=wt,!1}),Re}function Yu(re,he,fe,Re){for(var rt=re.length,wt=fe+(Re?1:-1);Re?wt--:++wt<rt;)if(he(re[wt],wt,re))return wt;return-1}function ga(re,he,fe){return he===he?Ju(re,he,fe):Yu(re,Xh,fe)}function ad(re,he,fe,Re){for(var rt=fe-1,wt=re.length;++rt<wt;)if(Re(re[rt],he))return rt;return-1}function Xh(re){return re!==re}function Qh(re,he){var fe=re==null?0:re.length;return fe?ud(re,he)/fe:D}function ld(re){return function(he){return he==null?n:he[re]}}function Xu(re){return function(he){return re==null?n:re[he]}}function Jh(re,he,fe,Re,rt){return rt(re,function(wt,pn,$t){fe=Re?(Re=!1,wt):he(fe,wt,pn,$t)}),fe}function Qv(re,he){var fe=re.length;for(re.sort(he);fe--;)re[fe]=re[fe].value;return re}function ud(re,he){for(var fe,Re=-1,rt=re.length;++Re<rt;){var wt=he(re[Re]);wt!==n&&(fe=fe===n?wt:fe+wt)}return fe}function cd(re,he){for(var fe=-1,Re=Array(re);++fe<re;)Re[fe]=he(fe);return Re}function Jv(re,he){return Lt(he,function(fe){return[fe,re[fe]]})}function Zh(re){return re&&re.slice(0,Zu(re)+1).replace(pl,"")}function Tr(re){return function(he){return re(he)}}function Sl(re,he){return Lt(he,function(fe){return re[fe]})}function ao(re,he){return re.has(he)}function em(re,he){for(var fe=-1,Re=re.length;++fe<Re&&ga(he,re[fe],0)>-1;);return fe}function fd(re,he){for(var fe=re.length;fe--&&ga(he,re[fe],0)>-1;);return fe}function tm(re,he){for(var fe=re.length,Re=0;fe--;)re[fe]===he&&++Re;return Re}var nm=Xu(pa),rm=Xu(Uu);function im(re){return"\\"+Gv[re]}function va(re,he){return re==null?n:re[he]}function ya(re){return Kh.test(re)}function Zv(re){return Vu.test(re)}function ey(re){for(var he,fe=[];!(he=re.next()).done;)fe.push(he.value);return fe}function Qu(re){var he=-1,fe=Array(re.size);return re.forEach(function(Re,rt){fe[++he]=[rt,Re]}),fe}function dd(re,he){return function(fe){return re(he(fe))}}function Ur(re,he){for(var fe=-1,Re=re.length,rt=0,wt=[];++fe<Re;){var pn=re[fe];(pn===he||pn===m)&&(re[fe]=m,wt[rt++]=fe)}return wt}function zo(re){var he=-1,fe=Array(re.size);return re.forEach(function(Re){fe[++he]=Re}),fe}function ty(re){var he=-1,fe=Array(re.size);return re.forEach(function(Re){fe[++he]=[Re,Re]}),fe}function Ju(re,he,fe){for(var Re=fe-1,rt=re.length;++Re<rt;)if(re[Re]===he)return Re;return-1}function ny(re,he,fe){for(var Re=fe+1;Re--;)if(re[Re]===he)return Re;return Re}function Cs(re){return ya(re)?sm(re):Yv(re)}function _r(re){return ya(re)?am(re):qh(re)}function Zu(re){for(var he=re.length;he--&&bs.test(re.charAt(he)););return he}var om=Xu(Hv);function sm(re){for(var he=Ss.lastIndex=0;Ss.test(re);)++he;return he}function am(re){return re.match(Ss)||[]}function ry(re){return re.match(Kv)||[]}var iy=(function re(he){he=he==null?Gt:ba.defaults(Gt.Object(),he,ba.pick(Gt,Wh));var fe=he.Array,Re=he.Date,rt=he.Error,wt=he.Function,pn=he.Math,$t=he.Object,kl=he.RegExp,oy=he.String,Kr=he.TypeError,lo=fe.prototype,pd=wt.prototype,Ni=$t.prototype,xa=he["__core-js_shared__"],Cl=pd.toString,St=Ni.hasOwnProperty,wa=0,ec=(function(){var u=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),El=Ni.toString,tc=Cl.call($t),lm=Gt._,um=kl("^"+Cl.call(St).replace(ys,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pl=ed?he.Buffer:n,uo=he.Symbol,Tl=he.Uint8Array,hd=Pl?Pl.allocUnsafe:n,gi=dd($t.getPrototypeOf,$t),nc=$t.create,rc=Ni.propertyIsEnumerable,ic=lo.splice,cm=uo?uo.isConcatSpreadable:n,co=uo?uo.iterator:n,Es=uo?uo.toStringTag:n,_l=(function(){try{var u=Xo($t,"defineProperty");return u({},"",{}),u}catch{}})(),fm=he.clearTimeout!==Gt.clearTimeout&&he.clearTimeout,Ft=Re&&Re.now!==Gt.Date.now&&Re.now,md=he.setTimeout!==Gt.setTimeout&&he.setTimeout,Ps=pn.ceil,jo=pn.floor,oc=$t.getOwnPropertySymbols,gd=Pl?Pl.isBuffer:n,Sa=he.isFinite,sc=lo.join,ka=dd($t.keys,$t),hn=pn.max,Kn=pn.min,sy=Re.now,dm=he.parseInt,Il=pn.random,ac=lo.reverse,$l=Xo(he,"DataView"),Ts=Xo(he,"Map"),Al=Xo(he,"Promise"),Bo=Xo(he,"Set"),Rl=Xo(he,"WeakMap"),Ca=Xo($t,"create"),lc=Rl&&new Rl,Ea={},vd=Qo($l),Vo=Qo(Ts),pm=Qo(Al),Pa=Qo(Bo),Oi=Qo(Rl),Uo=uo?uo.prototype:n,Ir=Uo?Uo.valueOf:n,uc=Uo?Uo.toString:n;function N(u){if(gn(u)&&!st(u)&&!(u instanceof ot)){if(u instanceof Wn)return u;if(St.call(u,"__wrapped__"))return Bm(u)}return new Wn(u)}var Ta=(function(){function u(){}return function(f){if(!fn(f))return{};if(nc)return nc(f);u.prototype=f;var y=new u;return u.prototype=n,y}})();function Fi(){}function Wn(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}N.templateSettings={escape:gs,evaluate:Vr,interpolate:fl,variable:"",imports:{_:N}},N.prototype=Fi.prototype,N.prototype.constructor=N,Wn.prototype=Ta(Fi.prototype),Wn.prototype.constructor=Wn;function ot(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function cc(){var u=new ot(this.__wrapped__);return u.__actions__=sr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=sr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=sr(this.__views__),u}function yd(){if(this.__filtered__){var u=new ot(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function _a(){var u=this.__wrapped__.value(),f=this.__dir__,y=st(u),E=f<0,I=y?u.length:0,O=Hd(0,I,this.__views__),q=O.start,Z=O.end,se=Z-q,ge=E?Z:q-1,ve=this.__iteratees__,we=ve.length,$e=0,Ke=Kn(se,this.__takeCount__);if(!y||!E&&I==se&&Ke==se)return Na(u,this.__actions__);var Ze=[];e:for(;se--&&$e<Ke;){ge+=f;for(var dt=-1,et=u[ge];++dt<we;){var gt=ve[dt],xt=gt.iteratee,Pi=gt.type,Mr=xt(et);if(Pi==le)et=Mr;else if(!Mr){if(Pi==H)continue e;break e}}Ze[$e++]=et}return Ze}ot.prototype=Ta(Fi.prototype),ot.prototype.constructor=ot;function hr(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var E=u[f];this.set(E[0],E[1])}}function zt(){this.__data__=Ca?Ca(null):{},this.size=0}function Mt(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function Ko(u){var f=this.__data__;if(Ca){var y=f[u];return y===d?n:y}return St.call(f,u)?f[u]:n}function Hn(u){var f=this.__data__;return Ca?f[u]!==n:St.call(f,u)}function mr(u,f){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=Ca&&f===n?d:f,this}hr.prototype.clear=zt,hr.prototype.delete=Mt,hr.prototype.get=Ko,hr.prototype.has=Hn,hr.prototype.set=mr;function or(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var E=u[f];this.set(E[0],E[1])}}function Ia(){this.__data__=[],this.size=0}function gr(u){var f=this.__data__,y=qn(f,u);if(y<0)return!1;var E=f.length-1;return y==E?f.pop():ic.call(f,y,1),--this.size,!0}function fc(u){var f=this.__data__,y=qn(f,u);return y<0?n:f[y][1]}function hm(u){return qn(this.__data__,u)>-1}function mm(u,f){var y=this.__data__,E=qn(y,u);return E<0?(++this.size,y.push([u,f])):y[E][1]=f,this}or.prototype.clear=Ia,or.prototype.delete=gr,or.prototype.get=fc,or.prototype.has=hm,or.prototype.set=mm;function Wr(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var E=u[f];this.set(E[0],E[1])}}function gm(){this.size=0,this.__data__={hash:new hr,map:new(Ts||or),string:new hr}}function fo(u){var f=ql(this,u).delete(u);return this.size-=f?1:0,f}function dc(u){return ql(this,u).get(u)}function bd(u){return ql(this,u).has(u)}function vm(u,f){var y=ql(this,u),E=y.size;return y.set(u,f),this.size+=y.size==E?0:1,this}Wr.prototype.clear=gm,Wr.prototype.delete=fo,Wr.prototype.get=dc,Wr.prototype.has=bd,Wr.prototype.set=vm;function _s(u){var f=-1,y=u==null?0:u.length;for(this.__data__=new Wr;++f<y;)this.add(u[f])}function Wo(u){return this.__data__.set(u,d),this}function $a(u){return this.__data__.has(u)}_s.prototype.add=_s.prototype.push=Wo,_s.prototype.has=$a;function Gn(u){var f=this.__data__=new or(u);this.size=f.size}function pc(){this.__data__=new or,this.size=0}function hc(u){var f=this.__data__,y=f.delete(u);return this.size=f.size,y}function Hr(u){return this.__data__.get(u)}function Gr(u){return this.__data__.has(u)}function Is(u,f){var y=this.__data__;if(y instanceof or){var E=y.__data__;if(!Ts||E.length<i-1)return E.push([u,f]),this.size=++y.size,this;y=this.__data__=new Wr(E)}return y.set(u,f),this.size=y.size,this}Gn.prototype.clear=pc,Gn.prototype.delete=hc,Gn.prototype.get=Hr,Gn.prototype.has=Gr,Gn.prototype.set=Is;function zi(u,f){var y=st(u),E=!y&&su(u),I=!y&&!E&&Ha(u),O=!y&&!E&&!I&&rf(u),q=y||E||I||O,Z=q?cd(u.length,oy):[],se=Z.length;for(var ge in u)(f||St.call(u,ge))&&!(q&&(ge=="length"||I&&(ge=="offset"||ge=="parent")||O&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Yt(ge,se)))&&Z.push(ge);return Z}function ji(u){var f=u.length;return f?u[Ma(0,f-1)]:n}function $s(u,f){return jc(sr(u),po(f,0,u.length))}function ym(u){return jc(sr(u))}function Ll(u,f,y){(y!==n&&!ko(u[f],y)||y===n&&!(f in u))&&Bi(u,f,y)}function As(u,f,y){var E=u[f];(!(St.call(u,f)&&ko(E,y))||y===n&&!(f in u))&&Bi(u,f,y)}function qn(u,f){for(var y=u.length;y--;)if(ko(u[y][0],f))return y;return-1}function $r(u,f,y,E){return Ui(u,function(I,O,q){f(E,I,y(I),q)}),E}function jt(u,f){return u&&yi(f,Qn(f),u)}function vi(u,f){return u&&yi(f,ni(f),u)}function Bi(u,f,y){f=="__proto__"&&_l?_l(u,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[f]=y}function mc(u,f){for(var y=-1,E=f.length,I=fe(E),O=u==null;++y<E;)I[y]=O?n:$y(u,f[y]);return I}function po(u,f,y){return u===u&&(y!==n&&(u=u<=y?u:y),f!==n&&(u=u>=f?u:f)),u}function vr(u,f,y,E,I,O){var q,Z=f&g,se=f&b,ge=f&x;if(y&&(q=I?y(u,E,I,O):y(u)),q!==n)return q;if(!fn(u))return u;var ve=st(u);if(ve){if(q=Xl(u),!Z)return sr(u,q)}else{var we=Fn(u),$e=we==Ie||we==mt;if(Ha(u))return Md(u,Z);if(we==it||we==Ce||$e&&!I){if(q=se||$e?{}:zn(u),!Z)return se?ly(u,vi(q,u)):_c(u,jt(q,u))}else{if(!Tt[we])return I?u:{};q=uy(u,we,Z)}}O||(O=new Gn);var Ke=O.get(u);if(Ke)return Ke;O.set(u,q),Kw(u)?u.forEach(function(et){q.add(vr(et,f,y,et,u,O))}):Vw(u)&&u.forEach(function(et,gt){q.set(gt,vr(et,f,y,gt,u,O))});var Ze=ge?se?Gl:Hl:se?ni:Qn,dt=ve?n:Ze(u);return Un(dt||u,function(et,gt){dt&&(gt=et,et=u[gt]),As(q,gt,vr(et,f,y,gt,u,O))}),q}function bm(u){var f=Qn(u);return function(y){return Ml(y,u,f)}}function Ml(u,f,y){var E=y.length;if(u==null)return!E;for(u=$t(u);E--;){var I=y[E],O=f[I],q=u[I];if(q===n&&!(I in u)||!O(q))return!1}return!0}function xd(u,f,y){if(typeof u!="function")throw new Kr(a);return Ua(function(){u.apply(n,y)},f)}function Vi(u,f,y,E){var I=-1,O=qu,q=!0,Z=u.length,se=[],ge=f.length;if(!Z)return se;y&&(f=Lt(f,Tr(y))),E?(O=id,q=!1):f.length>=i&&(O=ao,q=!1,f=new _s(f));e:for(;++I<Z;){var ve=u[I],we=y==null?ve:y(ve);if(ve=E||ve!==0?ve:0,q&&we===we){for(var $e=ge;$e--;)if(f[$e]===we)continue e;se.push(ve)}else O(f,we,E)||se.push(ve)}return se}var Ui=Jr(Ar),xm=Jr(Ho,!0);function Dl(u,f){var y=!0;return Ui(u,function(E,I,O){return y=!!f(E,I,O),y}),y}function Rs(u,f,y){for(var E=-1,I=u.length;++E<I;){var O=u[E],q=f(O);if(q!=null&&(Z===n?q===q&&!Ei(q):y(q,Z)))var Z=q,se=O}return se}function wm(u,f,y,E){var I=u.length;for(y=ct(y),y<0&&(y=-y>I?0:I+y),E=E===n||E>I?I:ct(E),E<0&&(E+=I),E=y>E?0:Hw(E);y<E;)u[y++]=f;return u}function wd(u,f){var y=[];return Ui(u,function(E,I,O){f(E,I,O)&&y.push(E)}),y}function on(u,f,y,E,I){var O=-1,q=u.length;for(y||(y=Oc),I||(I=[]);++O<q;){var Z=u[O];f>0&&y(Z)?f>1?on(Z,f-1,y,E,I):Fo(I,Z):E||(I[I.length]=Z)}return I}var gc=$c(),Nl=$c(!0);function Ar(u,f){return u&&gc(u,f,Qn)}function Ho(u,f){return u&&Nl(u,f,Qn)}function Aa(u,f){return Oo(f,function(y){return Ws(u[y])})}function ho(u,f){f=Hi(f,u);for(var y=0,E=f.length;u!=null&&y<E;)u=u[Si(f[y++])];return y&&y==E?u:n}function vc(u,f,y){var E=f(u);return st(u)?E:Fo(E,y(u))}function Nn(u){return u==null?u===n?Er:Ue:Es&&Es in $t(u)?Nc(u):qd(u)}function Go(u,f){return u>f}function qr(u,f){return u!=null&&St.call(u,f)}function Ls(u,f){return u!=null&&f in $t(u)}function Sd(u,f,y){return u>=Kn(f,y)&&u<hn(f,y)}function yc(u,f,y){for(var E=y?id:qu,I=u[0].length,O=u.length,q=O,Z=fe(O),se=1/0,ge=[];q--;){var ve=u[q];q&&f&&(ve=Lt(ve,Tr(f))),se=Kn(ve.length,se),Z[q]=!y&&(f||I>=120&&ve.length>=120)?new _s(q&&ve):n}ve=u[0];var we=-1,$e=Z[0];e:for(;++we<I&&ge.length<se;){var Ke=ve[we],Ze=f?f(Ke):Ke;if(Ke=y||Ke!==0?Ke:0,!($e?ao($e,Ze):E(ge,Ze,y))){for(q=O;--q;){var dt=Z[q];if(!(dt?ao(dt,Ze):E(u[q],Ze,y)))continue e}$e&&$e.push(Ze),ge.push(Ke)}}return ge}function mo(u,f,y,E){return Ar(u,function(I,O,q){f(E,y(I),O,q)}),E}function Yr(u,f,y){f=Hi(f,u),u=In(u,f);var E=u==null?u:u[Si(ur(f))];return E==null?n:ir(E,u,y)}function bc(u){return gn(u)&&Nn(u)==Ce}function Sm(u){return gn(u)&&Nn(u)==Se}function go(u){return gn(u)&&Nn(u)==_e}function Xr(u,f,y,E,I){return u===f?!0:u==null||f==null||!gn(u)&&!gn(f)?u!==u&&f!==f:xc(u,f,y,E,Xr,I)}function xc(u,f,y,E,I,O){var q=st(u),Z=st(f),se=q?ye:Fn(u),ge=Z?ye:Fn(f);se=se==Ce?it:se,ge=ge==Ce?it:ge;var ve=se==it,we=ge==it,$e=se==ge;if($e&&Ha(u)){if(!Ha(f))return!1;q=!0,ve=!1}if($e&&!ve)return O||(O=new Gn),q||rf(u)?Kd(u,f,y,E,I,O):Wd(u,f,se,y,E,I,O);if(!(y&k)){var Ke=ve&&St.call(u,"__wrapped__"),Ze=we&&St.call(f,"__wrapped__");if(Ke||Ze){var dt=Ke?u.value():u,et=Ze?f.value():f;return O||(O=new Gn),I(dt,et,y,E,O)}}return $e?(O||(O=new Gn),Lm(u,f,y,E,I,O)):!1}function km(u){return gn(u)&&Fn(u)==pt}function Ra(u,f,y,E){var I=y.length,O=I,q=!E;if(u==null)return!O;for(u=$t(u);I--;){var Z=y[I];if(q&&Z[2]?Z[1]!==u[Z[0]]:!(Z[0]in u))return!1}for(;++I<O;){Z=y[I];var se=Z[0],ge=u[se],ve=Z[1];if(q&&Z[2]){if(ge===n&&!(se in u))return!1}else{var we=new Gn;if(E)var $e=E(ge,ve,se,u,f,we);if(!($e===n?Xr(ve,ge,k|P,E,we):$e))return!1}}return!0}function kd(u){if(!fn(u)||Nm(u))return!1;var f=Ws(u)?um:Ah;return f.test(Qo(u))}function Ol(u){return gn(u)&&Nn(u)==an}function Ki(u){return gn(u)&&Fn(u)==_t}function Fl(u){return gn(u)&&tg(u.length)&&!!It[Nn(u)]}function La(u){return typeof u=="function"?u:u==null?ri:typeof u=="object"?st(u)?qt(u[0],u[1]):wc(u):r1(u)}function vo(u){if(!wo(u))return ka(u);var f=[];for(var y in $t(u))St.call(u,y)&&y!="constructor"&&f.push(y);return f}function Cd(u){if(!fn(u))return zm(u);var f=wo(u),y=[];for(var E in u)E=="constructor"&&(f||!St.call(u,E))||y.push(E);return y}function qo(u,f){return u<f}function Ed(u,f){var y=-1,E=ti(u)?fe(u.length):[];return Ui(u,function(I,O,q){E[++y]=f(I,O,q)}),E}function wc(u){var f=Yl(u);return f.length==1&&f[0][2]?Fc(f[0][0],f[0][1]):function(y){return y===u||Ra(y,u,f)}}function qt(u,f){return Me(u)&&Jl(f)?Fc(Si(u),f):function(y){var E=$y(y,u);return E===n&&E===f?Ay(y,u):Xr(f,E,k|P)}}function Ms(u,f,y,E,I){u!==f&&gc(f,function(O,q){if(I||(I=new Gn),fn(O))Pd(u,f,q,y,Ms,E,I);else{var Z=E?E(Yi(u,q),O,q+"",u,f,I):n;Z===n&&(Z=O),Ll(u,q,Z)}},ni)}function Pd(u,f,y,E,I,O,q){var Z=Yi(u,y),se=Yi(f,y),ge=q.get(se);if(ge){Ll(u,y,ge);return}var ve=O?O(Z,se,y+"",u,f,q):n,we=ve===n;if(we){var $e=st(se),Ke=!$e&&Ha(se),Ze=!$e&&!Ke&&rf(se);ve=se,$e||Ke||Ze?st(Z)?ve=Z:wn(Z)?ve=sr(Z):Ke?(we=!1,ve=Md(se,!0)):Ze?(we=!1,ve=_m(se,!0)):ve=[]:dp(se)||su(se)?(ve=Z,su(Z)?ve=Gw(Z):(!fn(Z)||Ws(Z))&&(ve=zn(se))):we=!1}we&&(q.set(se,ve),I(ve,se,E,O,q),q.delete(se)),Ll(u,y,ve)}function Sc(u,f){var y=u.length;if(y)return f+=f<0?y:0,Yt(f,y)?u[f]:n}function zl(u,f,y){f.length?f=Lt(f,function(O){return st(O)?function(q){return ho(q,O.length===1?O[0]:O)}:O}):f=[ri];var E=-1;f=Lt(f,Tr(qe()));var I=Ed(u,function(O,q,Z){var se=Lt(f,function(ge){return ge(O)});return{criteria:se,index:++E,value:O}});return Qv(I,function(O,q){return ay(O,q,y)})}function Td(u,f){return Yo(u,f,function(y,E){return Ay(u,E)})}function Yo(u,f,y){for(var E=-1,I=f.length,O={};++E<I;){var q=f[E],Z=ho(u,q);y(Z,q)&&Ns(O,Hi(q,u),Z)}return O}function en(u){return function(f){return ho(f,u)}}function un(u,f,y,E){var I=E?ad:ga,O=-1,q=f.length,Z=u;for(u===f&&(f=sr(f)),y&&(Z=Lt(u,Tr(y)));++O<q;)for(var se=0,ge=f[O],ve=y?y(ge):ge;(se=I(Z,ve,se,E))>-1;)Z!==u&&ic.call(Z,se,1),ic.call(u,se,1);return u}function bn(u,f){for(var y=u?f.length:0,E=y-1;y--;){var I=f[y];if(y==E||I!==O){var O=I;Yt(I)?ic.call(u,I,1):Ec(u,I)}}return u}function Ma(u,f){return u+jo(Il()*(f-u+1))}function jl(u,f,y,E){for(var I=-1,O=hn(Ps((f-u)/(y||1)),0),q=fe(O);O--;)q[E?O:++I]=u,u+=y;return q}function Ds(u,f){var y="";if(!u||f<1||f>V)return y;do f%2&&(y+=u),f=jo(f/2),f&&(u+=u);while(f);return y}function ut(u,f){return Rr(zc(u,f,ri),u+"")}function Yn(u){return ji(of(u))}function _d(u,f){var y=of(u);return jc(y,po(f,0,y.length))}function Ns(u,f,y,E){if(!fn(u))return u;f=Hi(f,u);for(var I=-1,O=f.length,q=O-1,Z=u;Z!=null&&++I<O;){var se=Si(f[I]),ge=y;if(se==="__proto__"||se==="constructor"||se==="prototype")return u;if(I!=q){var ve=Z[se];ge=E?E(ve,se,Z):n,ge===n&&(ge=fn(ve)?ve:Yt(f[I+1])?[]:{})}As(Z,se,ge),Z=Z[se]}return u}var kc=lc?function(u,f){return lc.set(u,f),u}:ri,Wi=_l?function(u,f){return _l(u,"toString",{configurable:!0,enumerable:!1,value:Ly(f),writable:!0})}:ri;function Qr(u){return jc(of(u))}function Xn(u,f,y){var E=-1,I=u.length;f<0&&(f=-f>I?0:I+f),y=y>I?I:y,y<0&&(y+=I),I=f>y?0:y-f>>>0,f>>>=0;for(var O=fe(I);++E<I;)O[E]=u[E+f];return O}function Id(u,f){var y;return Ui(u,function(E,I,O){return y=f(E,I,O),!y}),!!y}function Da(u,f,y){var E=0,I=u==null?E:u.length;if(typeof f=="number"&&f===f&&I<=z){for(;E<I;){var O=E+I>>>1,q=u[O];q!==null&&!Ei(q)&&(y?q<=f:q<f)?E=O+1:I=O}return I}return Cc(u,f,ri,y)}function Cc(u,f,y,E){var I=0,O=u==null?0:u.length;if(O===0)return 0;f=y(f);for(var q=f!==f,Z=f===null,se=Ei(f),ge=f===n;I<O;){var ve=jo((I+O)/2),we=y(u[ve]),$e=we!==n,Ke=we===null,Ze=we===we,dt=Ei(we);if(q)var et=E||Ze;else ge?et=Ze&&(E||$e):Z?et=Ze&&$e&&(E||!Ke):se?et=Ze&&$e&&!Ke&&(E||!dt):Ke||dt?et=!1:et=E?we<=f:we<f;et?I=ve+1:O=ve}return Kn(O,oe)}function $d(u,f){for(var y=-1,E=u.length,I=0,O=[];++y<E;){var q=u[y],Z=f?f(q):q;if(!y||!ko(Z,se)){var se=Z;O[I++]=q===0?0:q}}return O}function Ad(u){return typeof u=="number"?u:Ei(u)?D:+u}function yr(u){if(typeof u=="string")return u;if(st(u))return Lt(u,yr)+"";if(Ei(u))return uc?uc.call(u):"";var f=u+"";return f=="0"&&1/u==-X?"-0":f}function yo(u,f,y){var E=-1,I=qu,O=u.length,q=!0,Z=[],se=Z;if(y)q=!1,I=id;else if(O>=i){var ge=f?null:Rm(u);if(ge)return zo(ge);q=!1,I=ao,se=new _s}else se=f?[]:Z;e:for(;++E<O;){var ve=u[E],we=f?f(ve):ve;if(ve=y||ve!==0?ve:0,q&&we===we){for(var $e=se.length;$e--;)if(se[$e]===we)continue e;f&&se.push(we),Z.push(ve)}else I(se,we,y)||(se!==Z&&se.push(we),Z.push(ve))}return Z}function Ec(u,f){return f=Hi(f,u),u=In(u,f),u==null||delete u[Si(ur(f))]}function Rd(u,f,y,E){return Ns(u,f,y(ho(u,f)),E)}function Bl(u,f,y,E){for(var I=u.length,O=E?I:-1;(E?O--:++O<I)&&f(u[O],O,u););return y?Xn(u,E?0:O,E?O+1:I):Xn(u,E?O+1:0,E?I:O)}function Na(u,f){var y=u;return y instanceof ot&&(y=y.value()),od(f,function(E,I){return I.func.apply(I.thisArg,Fo([E],I.args))},y)}function Pc(u,f,y){var E=u.length;if(E<2)return E?yo(u[0]):[];for(var I=-1,O=fe(E);++I<E;)for(var q=u[I],Z=-1;++Z<E;)Z!=I&&(O[I]=Vi(O[I]||q,u[Z],f,y));return yo(on(O,1),f,y)}function Vl(u,f,y){for(var E=-1,I=u.length,O=f.length,q={};++E<I;){var Z=E<O?f[E]:n;y(q,u[E],Z)}return q}function Oa(u){return wn(u)?u:[]}function Tc(u){return typeof u=="function"?u:ri}function Hi(u,f){return st(u)?u:Me(u,f)?[u]:Qd(At(u))}var Cm=ut;function bo(u,f,y){var E=u.length;return y=y===n?E:y,!f&&y>=E?u:Xn(u,f,y)}var Ld=fm||function(u){return Gt.clearTimeout(u)};function Md(u,f){if(f)return u.slice();var y=u.length,E=hd?hd(y):new u.constructor(y);return u.copy(E),E}function Ul(u){var f=new u.constructor(u.byteLength);return new Tl(f).set(new Tl(u)),f}function Em(u,f){var y=f?Ul(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function Pm(u){var f=new u.constructor(u.source,so.exec(u));return f.lastIndex=u.lastIndex,f}function Tm(u){return Ir?$t(Ir.call(u)):{}}function _m(u,f){var y=f?Ul(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function Dd(u,f){if(u!==f){var y=u!==n,E=u===null,I=u===u,O=Ei(u),q=f!==n,Z=f===null,se=f===f,ge=Ei(f);if(!Z&&!ge&&!O&&u>f||O&&q&&se&&!Z&&!ge||E&&q&&se||!y&&se||!I)return 1;if(!E&&!O&&!ge&&u<f||ge&&y&&I&&!E&&!O||Z&&y&&I||!q&&I||!se)return-1}return 0}function ay(u,f,y){for(var E=-1,I=u.criteria,O=f.criteria,q=I.length,Z=y.length;++E<q;){var se=Dd(I[E],O[E]);if(se){if(E>=Z)return se;var ge=y[E];return se*(ge=="desc"?-1:1)}}return u.index-f.index}function Im(u,f,y,E){for(var I=-1,O=u.length,q=y.length,Z=-1,se=f.length,ge=hn(O-q,0),ve=fe(se+ge),we=!E;++Z<se;)ve[Z]=f[Z];for(;++I<q;)(we||I<O)&&(ve[y[I]]=u[I]);for(;ge--;)ve[Z++]=u[I++];return ve}function Nd(u,f,y,E){for(var I=-1,O=u.length,q=-1,Z=y.length,se=-1,ge=f.length,ve=hn(O-Z,0),we=fe(ve+ge),$e=!E;++I<ve;)we[I]=u[I];for(var Ke=I;++se<ge;)we[Ke+se]=f[se];for(;++q<Z;)($e||I<O)&&(we[Ke+y[q]]=u[I++]);return we}function sr(u,f){var y=-1,E=u.length;for(f||(f=fe(E));++y<E;)f[y]=u[y];return f}function yi(u,f,y,E){var I=!y;y||(y={});for(var O=-1,q=f.length;++O<q;){var Z=f[O],se=E?E(y[Z],u[Z],Z,y,u):n;se===n&&(se=u[Z]),I?Bi(y,Z,se):As(y,Z,se)}return y}function _c(u,f){return yi(u,bi(u),f)}function ly(u,f){return yi(u,Mm(u),f)}function Ic(u,f){return function(y,E){var I=st(y)?nd:$r,O=f?f():{};return I(y,u,qe(E,2),O)}}function Fa(u){return ut(function(f,y){var E=-1,I=y.length,O=I>1?y[I-1]:n,q=I>2?y[2]:n;for(O=u.length>3&&typeof O=="function"?(I--,O):n,q&&lr(y[0],y[1],q)&&(O=I<3?n:O,I=1),f=$t(f);++E<I;){var Z=y[E];Z&&u(f,Z,E,O)}return f})}function Jr(u,f){return function(y,E){if(y==null)return y;if(!ti(y))return u(y,E);for(var I=y.length,O=f?I:-1,q=$t(y);(f?O--:++O<I)&&E(q[O],O,q)!==!1;);return y}}function $c(u){return function(f,y,E){for(var I=-1,O=$t(f),q=E(f),Z=q.length;Z--;){var se=q[u?Z:++I];if(y(O[se],se,O)===!1)break}return f}}function Ac(u,f,y){var E=f&T,I=za(u);function O(){var q=this&&this!==Gt&&this instanceof O?I:u;return q.apply(E?y:this,arguments)}return O}function Od(u){return function(f){f=At(f);var y=ya(f)?_r(f):n,E=y?y[0]:f.charAt(0),I=y?bo(y,1).join(""):f.slice(1);return E[u]()+I}}function Os(u){return function(f){return od(t1(e1(f).replace(Uv,"")),u,"")}}function za(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=Ta(u.prototype),E=u.apply(y,f);return fn(E)?E:y}}function Fd(u,f,y){var E=za(u);function I(){for(var O=arguments.length,q=fe(O),Z=O,se=xo(I);Z--;)q[Z]=arguments[Z];var ge=O<3&&q[0]!==se&&q[O-1]!==se?[]:Ur(q,se);if(O-=ge.length,O<y)return ar(u,f,ja,I.placeholder,n,q,ge,n,n,y-O);var ve=this&&this!==Gt&&this instanceof I?E:u;return ir(ve,this,q)}return I}function Fs(u){return function(f,y,E){var I=$t(f);if(!ti(f)){var O=qe(y,3);f=Qn(f),y=function(Z){return O(I[Z],Z,I)}}var q=u(f,y,E);return q>-1?I[O?f[q]:q]:n}}function Rc(u){return qi(function(f){var y=f.length,E=y,I=Wn.prototype.thru;for(u&&f.reverse();E--;){var O=f[E];if(typeof O!="function")throw new Kr(a);if(I&&!q&&Ba(O)=="wrapper")var q=new Wn([],!0)}for(E=q?E:y;++E<y;){O=f[E];var Z=Ba(O),se=Z=="wrapper"?Dc(O):n;se&&Ql(se[0])&&se[1]==(Y|M|j|te)&&!se[4].length&&se[9]==1?q=q[Ba(se[0])].apply(q,se[3]):q=O.length==1&&Ql(O)?q[Z]():q.thru(O)}return function(){var ge=arguments,ve=ge[0];if(q&&ge.length==1&&st(ve))return q.plant(ve).value();for(var we=0,$e=y?f[we].apply(this,ge):ve;++we<y;)$e=f[we].call(this,$e);return $e}})}function ja(u,f,y,E,I,O,q,Z,se,ge){var ve=f&Y,we=f&T,$e=f&_,Ke=f&(M|F),Ze=f&ie,dt=$e?n:za(u);function et(){for(var gt=arguments.length,xt=fe(gt),Pi=gt;Pi--;)xt[Pi]=arguments[Pi];if(Ke)var Mr=xo(et),Ti=tm(xt,Mr);if(E&&(xt=Im(xt,E,I,Ke)),O&&(xt=Nd(xt,O,q,Ke)),gt-=Ti,Ke&&gt<ge){var Sn=Ur(xt,Mr);return ar(u,f,ja,et.placeholder,y,xt,Sn,Z,se,ge-gt)}var Co=we?y:this,Gs=$e?Co[u]:u;return gt=xt.length,Z?xt=xi(xt,Z):Ze&&gt>1&&xt.reverse(),ve&&se<gt&&(xt.length=se),this&&this!==Gt&&this instanceof et&&(Gs=dt||za(Gs)),Gs.apply(Co,xt)}return et}function $m(u,f){return function(y,E){return mo(y,u,f(E),{})}}function Kl(u,f){return function(y,E){var I;if(y===n&&E===n)return f;if(y!==n&&(I=y),E!==n){if(I===n)return E;typeof y=="string"||typeof E=="string"?(y=yr(y),E=yr(E)):(y=Ad(y),E=Ad(E)),I=u(y,E)}return I}}function Lc(u){return qi(function(f){return f=Lt(f,Tr(qe())),ut(function(y){var E=this;return u(f,function(I){return ir(I,E,y)})})})}function Wl(u,f){f=f===n?" ":yr(f);var y=f.length;if(y<2)return y?Ds(f,u):f;var E=Ds(f,Ps(u/Cs(f)));return ya(f)?bo(_r(E),0,u).join(""):E.slice(0,u)}function Am(u,f,y,E){var I=f&T,O=za(u);function q(){for(var Z=-1,se=arguments.length,ge=-1,ve=E.length,we=fe(ve+se),$e=this&&this!==Gt&&this instanceof q?O:u;++ge<ve;)we[ge]=E[ge];for(;se--;)we[ge++]=arguments[++Z];return ir($e,I?y:this,we)}return q}function zd(u){return function(f,y,E){return E&&typeof E!="number"&&lr(f,y,E)&&(y=E=n),f=Hs(f),y===n?(y=f,f=0):y=Hs(y),E=E===n?f<y?1:-1:Hs(E),jl(f,y,E,u)}}function Mc(u){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Xi(f),y=Xi(y)),u(f,y)}}function ar(u,f,y,E,I,O,q,Z,se,ge){var ve=f&M,we=ve?q:n,$e=ve?n:q,Ke=ve?O:n,Ze=ve?n:O;f|=ve?j:$,f&=~(ve?$:j),f&A||(f&=-4);var dt=[u,f,I,Ke,we,Ze,$e,Z,se,ge],et=y.apply(n,dt);return Ql(u)&&Yd(et,dt),et.placeholder=E,Xd(et,u,f)}function On(u){var f=pn[u];return function(y,E){if(y=Xi(y),E=E==null?0:Kn(ct(E),292),E&&Sa(y)){var I=(At(y)+"e").split("e"),O=f(I[0]+"e"+(+I[1]+E));return I=(At(O)+"e").split("e"),+(I[0]+"e"+(+I[1]-E))}return f(y)}}var Rm=Bo&&1/zo(new Bo([,-0]))[1]==X?function(u){return new Bo(u)}:Ny;function jd(u){return function(f){var y=Fn(f);return y==pt?Qu(f):y==_t?ty(f):Jv(f,u(f))}}function Gi(u,f,y,E,I,O,q,Z){var se=f&_;if(!se&&typeof u!="function")throw new Kr(a);var ge=E?E.length:0;if(ge||(f&=-97,E=I=n),q=q===n?q:hn(ct(q),0),Z=Z===n?Z:ct(Z),ge-=I?I.length:0,f&$){var ve=E,we=I;E=I=n}var $e=se?n:Dc(u),Ke=[u,f,y,E,I,ve,we,O,q,Z];if($e&&Fm(Ke,$e),u=Ke[0],f=Ke[1],y=Ke[2],E=Ke[3],I=Ke[4],Z=Ke[9]=Ke[9]===n?se?0:u.length:hn(Ke[9]-ge,0),!Z&&f&(M|F)&&(f&=-25),!f||f==T)var Ze=Ac(u,f,y);else f==M||f==F?Ze=Fd(u,f,Z):(f==j||f==(T|j))&&!I.length?Ze=Am(u,f,y,E):Ze=ja.apply(n,Ke);var dt=$e?kc:Yd;return Xd(dt(Ze,Ke),u,f)}function Bd(u,f,y,E){return u===n||ko(u,Ni[y])&&!St.call(E,y)?f:u}function Vd(u,f,y,E,I,O){return fn(u)&&fn(f)&&(O.set(f,u),Ms(u,f,n,Vd,O),O.delete(f)),u}function Ud(u){return dp(u)?n:u}function Kd(u,f,y,E,I,O){var q=y&k,Z=u.length,se=f.length;if(Z!=se&&!(q&&se>Z))return!1;var ge=O.get(u),ve=O.get(f);if(ge&&ve)return ge==f&&ve==u;var we=-1,$e=!0,Ke=y&P?new _s:n;for(O.set(u,f),O.set(f,u);++we<Z;){var Ze=u[we],dt=f[we];if(E)var et=q?E(dt,Ze,we,f,u,O):E(Ze,dt,we,u,f,O);if(et!==n){if(et)continue;$e=!1;break}if(Ke){if(!sd(f,function(gt,xt){if(!ao(Ke,xt)&&(Ze===gt||I(Ze,gt,y,E,O)))return Ke.push(xt)})){$e=!1;break}}else if(!(Ze===dt||I(Ze,dt,y,E,O))){$e=!1;break}}return O.delete(u),O.delete(f),$e}function Wd(u,f,y,E,I,O,q){switch(y){case ze:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case Se:return!(u.byteLength!=f.byteLength||!O(new Tl(u),new Tl(f)));case Ne:case _e:case Ut:return ko(+u,+f);case at:return u.name==f.name&&u.message==f.message;case an:case Rt:return u==f+"";case pt:var Z=Qu;case _t:var se=E&k;if(Z||(Z=zo),u.size!=f.size&&!se)return!1;var ge=q.get(u);if(ge)return ge==f;E|=P,q.set(u,f);var ve=Kd(Z(u),Z(f),E,I,O,q);return q.delete(u),ve;case _n:if(Ir)return Ir.call(u)==Ir.call(f)}return!1}function Lm(u,f,y,E,I,O){var q=y&k,Z=Hl(u),se=Z.length,ge=Hl(f),ve=ge.length;if(se!=ve&&!q)return!1;for(var we=se;we--;){var $e=Z[we];if(!(q?$e in f:St.call(f,$e)))return!1}var Ke=O.get(u),Ze=O.get(f);if(Ke&&Ze)return Ke==f&&Ze==u;var dt=!0;O.set(u,f),O.set(f,u);for(var et=q;++we<se;){$e=Z[we];var gt=u[$e],xt=f[$e];if(E)var Pi=q?E(xt,gt,$e,f,u,O):E(gt,xt,$e,u,f,O);if(!(Pi===n?gt===xt||I(gt,xt,y,E,O):Pi)){dt=!1;break}et||(et=$e=="constructor")}if(dt&&!et){var Mr=u.constructor,Ti=f.constructor;Mr!=Ti&&"constructor"in u&&"constructor"in f&&!(typeof Mr=="function"&&Mr instanceof Mr&&typeof Ti=="function"&&Ti instanceof Ti)&&(dt=!1)}return O.delete(u),O.delete(f),dt}function qi(u){return Rr(zc(u,n,Vc),u+"")}function Hl(u){return vc(u,Qn,bi)}function Gl(u){return vc(u,ni,Mm)}var Dc=lc?function(u){return lc.get(u)}:Ny;function Ba(u){for(var f=u.name+"",y=Ea[f],E=St.call(Ea,f)?y.length:0;E--;){var I=y[E],O=I.func;if(O==null||O==u)return I.name}return f}function xo(u){var f=St.call(N,"placeholder")?N:u;return f.placeholder}function qe(){var u=N.iteratee||My;return u=u===My?La:u,arguments.length?u(arguments[0],arguments[1]):u}function ql(u,f){var y=u.__data__;return Va(f)?y[typeof f=="string"?"string":"hash"]:y.map}function Yl(u){for(var f=Qn(u),y=f.length;y--;){var E=f[y],I=u[E];f[y]=[E,I,Jl(I)]}return f}function Xo(u,f){var y=va(u,f);return kd(y)?y:n}function Nc(u){var f=St.call(u,Es),y=u[Es];try{u[Es]=n;var E=!0}catch{}var I=El.call(u);return E&&(f?u[Es]=y:delete u[Es]),I}var bi=oc?function(u){return u==null?[]:(u=$t(u),Oo(oc(u),function(f){return rc.call(u,f)}))}:Oy,Mm=oc?function(u){for(var f=[];u;)Fo(f,bi(u)),u=gi(u);return f}:Oy,Fn=Nn;($l&&Fn(new $l(new ArrayBuffer(1)))!=ze||Ts&&Fn(new Ts)!=pt||Al&&Fn(Al.resolve())!=Kt||Bo&&Fn(new Bo)!=_t||Rl&&Fn(new Rl)!=Nt)&&(Fn=function(u){var f=Nn(u),y=f==it?u.constructor:n,E=y?Qo(y):"";if(E)switch(E){case vd:return ze;case Vo:return pt;case pm:return Kt;case Pa:return _t;case Oi:return Nt}return f});function Hd(u,f,y){for(var E=-1,I=y.length;++E<I;){var O=y[E],q=O.size;switch(O.type){case"drop":u+=q;break;case"dropRight":f-=q;break;case"take":f=Kn(f,u+q);break;case"takeRight":u=hn(u,f-q);break}}return{start:u,end:f}}function Dm(u){var f=u.match(ua);return f?f[1].split(hl):[]}function Gd(u,f,y){f=Hi(f,u);for(var E=-1,I=f.length,O=!1;++E<I;){var q=Si(f[E]);if(!(O=u!=null&&y(u,q)))break;u=u[q]}return O||++E!=I?O:(I=u==null?0:u.length,!!I&&tg(I)&&Yt(q,I)&&(st(u)||su(u)))}function Xl(u){var f=u.length,y=new u.constructor(f);return f&&typeof u[0]=="string"&&St.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function zn(u){return typeof u.constructor=="function"&&!wo(u)?Ta(gi(u)):{}}function uy(u,f,y){var E=u.constructor;switch(f){case Se:return Ul(u);case Ne:case _e:return new E(+u);case ze:return Em(u,y);case nt:case lt:case Wt:case Vn:case Jt:case Pt:case Pr:case Ot:case nr:return _m(u,y);case pt:return new E;case Ut:case Rt:return new E(u);case an:return Pm(u);case _t:return new E;case _n:return Tm(u)}}function cy(u,f){var y=f.length;if(!y)return u;var E=y-1;return f[E]=(y>1?"& ":"")+f[E],f=f.join(y>2?", ":" "),u.replace(la,`{
25
+ /* [wrapped with `+f+`] */
26
+ `)}function Oc(u){return st(u)||su(u)||!!(cm&&u&&u[cm])}function Yt(u,f){var y=typeof u;return f=f??V,!!f&&(y=="number"||y!="symbol"&&Lh.test(u))&&u>-1&&u%1==0&&u<f}function lr(u,f,y){if(!fn(y))return!1;var E=typeof f;return(E=="number"?ti(y)&&Yt(f,y.length):E=="string"&&f in y)?ko(y[f],u):!1}function Me(u,f){if(st(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||Ei(u)?!0:Zt.test(u)||!dl.test(u)||f!=null&&u in $t(f)}function Va(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function Ql(u){var f=Ba(u),y=N[f];if(typeof y!="function"||!(f in ot.prototype))return!1;if(u===y)return!0;var E=Dc(y);return!!E&&u===E[0]}function Nm(u){return!!ec&&ec in u}var fy=xa?Ws:Fy;function wo(u){var f=u&&u.constructor,y=typeof f=="function"&&f.prototype||Ni;return u===y}function Jl(u){return u===u&&!fn(u)}function Fc(u,f){return function(y){return y==null?!1:y[u]===f&&(f!==n||u in $t(y))}}function Om(u){var f=ce(u,function(E){return y.size===h&&y.clear(),E}),y=f.cache;return f}function Fm(u,f){var y=u[1],E=f[1],I=y|E,O=I<(T|_|Y),q=E==Y&&y==M||E==Y&&y==te&&u[7].length<=f[8]||E==(Y|te)&&f[7].length<=f[8]&&y==M;if(!(O||q))return u;E&T&&(u[2]=f[2],I|=y&T?0:A);var Z=f[3];if(Z){var se=u[3];u[3]=se?Im(se,Z,f[4]):Z,u[4]=se?Ur(u[3],m):f[4]}return Z=f[5],Z&&(se=u[5],u[5]=se?Nd(se,Z,f[6]):Z,u[6]=se?Ur(u[5],m):f[6]),Z=f[7],Z&&(u[7]=Z),E&Y&&(u[8]=u[8]==null?f[8]:Kn(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=I,u}function zm(u){var f=[];if(u!=null)for(var y in $t(u))f.push(y);return f}function qd(u){return El.call(u)}function zc(u,f,y){return f=hn(f===n?u.length-1:f,0),function(){for(var E=arguments,I=-1,O=hn(E.length-f,0),q=fe(O);++I<O;)q[I]=E[f+I];I=-1;for(var Z=fe(f+1);++I<f;)Z[I]=E[I];return Z[f]=y(q),ir(u,this,Z)}}function In(u,f){return f.length<2?u:ho(u,Xn(f,0,-1))}function xi(u,f){for(var y=u.length,E=Kn(f.length,y),I=sr(u);E--;){var O=f[E];u[E]=Yt(O,y)?I[O]:n}return u}function Yi(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var Yd=wi(kc),Ua=md||function(u,f){return Gt.setTimeout(u,f)},Rr=wi(Wi);function Xd(u,f,y){var E=f+"";return Rr(u,cy(E,jm(Dm(E),y)))}function wi(u){var f=0,y=0;return function(){var E=sy(),I=ee-(E-y);if(y=E,I>0){if(++f>=G)return arguments[0]}else f=0;return u.apply(n,arguments)}}function jc(u,f){var y=-1,E=u.length,I=E-1;for(f=f===n?E:f;++y<f;){var O=Ma(y,I),q=u[O];u[O]=u[y],u[y]=q}return u.length=f,u}var Qd=Om(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(vs,function(y,E,I,O){f.push(I?O.replace(Hf,"$1"):E||y)}),f});function Si(u){if(typeof u=="string"||Ei(u))return u;var f=u+"";return f=="0"&&1/u==-X?"-0":f}function Qo(u){if(u!=null){try{return Cl.call(u)}catch{}try{return u+""}catch{}}return""}function jm(u,f){return Un(me,function(y){var E="_."+y[0];f&y[1]&&!qu(u,E)&&u.push(E)}),u.sort()}function Bm(u){if(u instanceof ot)return u.clone();var f=new Wn(u.__wrapped__,u.__chain__);return f.__actions__=sr(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function Bc(u,f,y){(y?lr(u,f,y):f===n)?f=1:f=hn(ct(f),0);var E=u==null?0:u.length;if(!E||f<1)return[];for(var I=0,O=0,q=fe(Ps(E/f));I<E;)q[O++]=Xn(u,I,I+=f);return q}function Jd(u){for(var f=-1,y=u==null?0:u.length,E=0,I=[];++f<y;){var O=u[f];O&&(I[E++]=O)}return I}function Zr(){var u=arguments.length;if(!u)return[];for(var f=fe(u-1),y=arguments[0],E=u;E--;)f[E-1]=arguments[E];return Fo(st(y)?sr(y):[y],on(f,1))}var bt=ut(function(u,f){return wn(u)?Vi(u,on(f,1,wn,!0)):[]}),$n=ut(function(u,f){var y=ur(f);return wn(y)&&(y=n),wn(u)?Vi(u,on(f,1,wn,!0),qe(y,2)):[]}),mn=ut(function(u,f){var y=ur(f);return wn(y)&&(y=n),wn(u)?Vi(u,on(f,1,wn,!0),n,y):[]});function jn(u,f,y){var E=u==null?0:u.length;return E?(f=y||f===n?1:ct(f),Xn(u,f<0?0:f,E)):[]}function Lr(u,f,y){var E=u==null?0:u.length;return E?(f=y||f===n?1:ct(f),f=E-f,Xn(u,0,f<0?0:f)):[]}function Ka(u,f){return u&&u.length?Bl(u,qe(f,3),!0,!0):[]}function xn(u,f){return u&&u.length?Bl(u,qe(f,3),!0):[]}function Zl(u,f,y,E){var I=u==null?0:u.length;return I?(y&&typeof y!="number"&&lr(u,f,y)&&(y=0,E=I),wm(u,f,y,E)):[]}function Jo(u,f,y){var E=u==null?0:u.length;if(!E)return-1;var I=y==null?0:ct(y);return I<0&&(I=hn(E+I,0)),Yu(u,qe(f,3),I)}function eu(u,f,y){var E=u==null?0:u.length;if(!E)return-1;var I=E-1;return y!==n&&(I=ct(y),I=y<0?hn(E+I,0):Kn(I,E-1)),Yu(u,qe(f,3),I,!0)}function Vc(u){var f=u==null?0:u.length;return f?on(u,1):[]}function tu(u){var f=u==null?0:u.length;return f?on(u,X):[]}function br(u,f){var y=u==null?0:u.length;return y?(f=f===n?1:ct(f),on(u,f)):[]}function Zd(u){for(var f=-1,y=u==null?0:u.length,E={};++f<y;){var I=u[f];E[I[0]]=I[1]}return E}function zs(u){return u&&u.length?u[0]:n}function So(u,f,y){var E=u==null?0:u.length;if(!E)return-1;var I=y==null?0:ct(y);return I<0&&(I=hn(E+I,0)),ga(u,f,I)}function Uc(u){var f=u==null?0:u.length;return f?Xn(u,0,-1):[]}var ep=ut(function(u){var f=Lt(u,Oa);return f.length&&f[0]===u[0]?yc(f):[]}),Zo=ut(function(u){var f=ur(u),y=Lt(u,Oa);return f===ur(y)?f=n:y.pop(),y.length&&y[0]===u[0]?yc(y,qe(f,2)):[]}),Kc=ut(function(u){var f=ur(u),y=Lt(u,Oa);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===u[0]?yc(y,n,f):[]});function es(u,f){return u==null?"":sc.call(u,f)}function ur(u){var f=u==null?0:u.length;return f?u[f-1]:n}function nu(u,f,y){var E=u==null?0:u.length;if(!E)return-1;var I=E;return y!==n&&(I=ct(y),I=I<0?hn(E+I,0):Kn(I,E-1)),f===f?ny(u,f,I):Yu(u,Xh,I,!0)}function tp(u,f){return u&&u.length?Sc(u,ct(f)):n}var Wc=ut(ru);function ru(u,f){return u&&u.length&&f&&f.length?un(u,f):u}function cr(u,f,y){return u&&u.length&&f&&f.length?un(u,f,qe(y,2)):u}function ts(u,f,y){return u&&u.length&&f&&f.length?un(u,f,n,y):u}var ki=qi(function(u,f){var y=u==null?0:u.length,E=mc(u,f);return bn(u,Lt(f,function(I){return Yt(I,y)?+I:I}).sort(Dd)),E});function xr(u,f){var y=[];if(!(u&&u.length))return y;var E=-1,I=[],O=u.length;for(f=qe(f,3);++E<O;){var q=u[E];f(q,E,u)&&(y.push(q),I.push(E))}return bn(u,I),y}function Hc(u){return u==null?u:ac.call(u)}function np(u,f,y){var E=u==null?0:u.length;return E?(y&&typeof y!="number"&&lr(u,f,y)?(f=0,y=E):(f=f==null?0:ct(f),y=y===n?E:ct(y)),Xn(u,f,y)):[]}function rp(u,f){return Da(u,f)}function dy(u,f,y){return Cc(u,f,qe(y,2))}function ns(u,f){var y=u==null?0:u.length;if(y){var E=Da(u,f);if(E<y&&ko(u[E],f))return E}return-1}function Vm(u,f){return Da(u,f,!0)}function ip(u,f,y){return Cc(u,f,qe(y,2),!0)}function js(u,f){var y=u==null?0:u.length;if(y){var E=Da(u,f,!0)-1;if(ko(u[E],f))return E}return-1}function op(u){return u&&u.length?$d(u):[]}function Bs(u,f){return u&&u.length?$d(u,qe(f,2)):[]}function Um(u){var f=u==null?0:u.length;return f?Xn(u,1,f):[]}function Km(u,f,y){return u&&u.length?(f=y||f===n?1:ct(f),Xn(u,0,f<0?0:f)):[]}function sp(u,f,y){var E=u==null?0:u.length;return E?(f=y||f===n?1:ct(f),f=E-f,Xn(u,f<0?0:f,E)):[]}function Gc(u,f){return u&&u.length?Bl(u,qe(f,3),!1,!0):[]}function py(u,f){return u&&u.length?Bl(u,qe(f,3)):[]}var hy=ut(function(u){return yo(on(u,1,wn,!0))}),Wm=ut(function(u){var f=ur(u);return wn(f)&&(f=n),yo(on(u,1,wn,!0),qe(f,2))}),Hm=ut(function(u){var f=ur(u);return f=typeof f=="function"?f:n,yo(on(u,1,wn,!0),n,f)});function Vs(u){return u&&u.length?yo(u):[]}function my(u,f){return u&&u.length?yo(u,qe(f,2)):[]}function Wa(u,f){return f=typeof f=="function"?f:n,u&&u.length?yo(u,n,f):[]}function qc(u){if(!(u&&u.length))return[];var f=0;return u=Oo(u,function(y){if(wn(y))return f=hn(y.length,f),!0}),cd(f,function(y){return Lt(u,ld(y))})}function tn(u,f){if(!(u&&u.length))return[];var y=qc(u);return f==null?y:Lt(y,function(E){return ir(f,n,E)})}var gy=ut(function(u,f){return wn(u)?Vi(u,f):[]}),Gm=ut(function(u){return Pc(Oo(u,wn))}),vy=ut(function(u){var f=ur(u);return wn(f)&&(f=n),Pc(Oo(u,wn),qe(f,2))}),yy=ut(function(u){var f=ur(u);return f=typeof f=="function"?f:n,Pc(Oo(u,wn),n,f)}),qm=ut(qc);function Ym(u,f){return Vl(u||[],f||[],As)}function by(u,f){return Vl(u||[],f||[],Ns)}var ei=ut(function(u){var f=u.length,y=f>1?u[f-1]:n;return y=typeof y=="function"?(u.pop(),y):n,tn(u,y)});function Yc(u){var f=N(u);return f.__chain__=!0,f}function xy(u,f){return f(u),u}function Ci(u,f){return f(u)}var Xc=qi(function(u){var f=u.length,y=f?u[0]:0,E=this.__wrapped__,I=function(O){return mc(O,u)};return f>1||this.__actions__.length||!(E instanceof ot)||!Yt(y)?this.thru(I):(E=E.slice(y,+y+(f?1:0)),E.__actions__.push({func:Ci,args:[I],thisArg:n}),new Wn(E,this.__chain__).thru(function(O){return f&&!O.length&&O.push(n),O}))});function Us(){return Yc(this)}function Qc(){return new Wn(this.value(),this.__chain__)}function ap(){this.__values__===n&&(this.__values__=Ww(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function lp(){return this}function wy(u){for(var f,y=this;y instanceof Fi;){var E=Bm(y);E.__index__=0,E.__values__=n,f?I.__wrapped__=E:f=E;var I=E;y=y.__wrapped__}return I.__wrapped__=u,f}function up(){var u=this.__wrapped__;if(u instanceof ot){var f=u;return this.__actions__.length&&(f=new ot(this)),f=f.reverse(),f.__actions__.push({func:Ci,args:[Hc],thisArg:n}),new Wn(f,this.__chain__)}return this.thru(Hc)}function Sy(){return Na(this.__wrapped__,this.__actions__)}var Xm=Ic(function(u,f,y){St.call(u,y)?++u[y]:Bi(u,y,1)});function Qm(u,f,y){var E=st(u)?rd:Dl;return y&&lr(u,f,y)&&(f=n),E(u,qe(f,3))}function Jc(u,f){var y=st(u)?Oo:wd;return y(u,qe(f,3))}var Zc=Fs(Jo),Jm=Fs(eu);function cp(u,f){return on(Ks(u,f),1)}function ky(u,f){return on(Ks(u,f),X)}function Zm(u,f,y){return y=y===n?1:ct(y),on(Ks(u,f),y)}function ef(u,f){var y=st(u)?Un:Ui;return y(u,qe(f,3))}function iu(u,f){var y=st(u)?Gu:xm;return y(u,qe(f,3))}var fp=Ic(function(u,f,y){St.call(u,y)?u[y].push(f):Bi(u,y,[f])});function tf(u,f,y,E){u=ti(u)?u:of(u),y=y&&!E?ct(y):0;var I=u.length;return y<0&&(y=hn(I+y,0)),ng(u)?y<=I&&u.indexOf(f,y)>-1:!!I&&ga(u,f,y)>-1}var eg=ut(function(u,f,y){var E=-1,I=typeof f=="function",O=ti(u)?fe(u.length):[];return Ui(u,function(q){O[++E]=I?ir(f,q,y):Yr(q,f,y)}),O}),Cy=Ic(function(u,f,y){Bi(u,y,f)});function Ks(u,f){var y=st(u)?Lt:Ed;return y(u,qe(f,3))}function Ey(u,f,y,E){return u==null?[]:(st(f)||(f=f==null?[]:[f]),y=E?n:y,st(y)||(y=y==null?[]:[y]),zl(u,f,y))}var ou=Ic(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function Py(u,f,y){var E=st(u)?od:Jh,I=arguments.length<3;return E(u,qe(f,4),y,I,Ui)}function nf(u,f,y){var E=st(u)?qv:Jh,I=arguments.length<3;return E(u,qe(f,4),y,I,xm)}function o(u,f){var y=st(u)?Oo:wd;return y(u,Ee(qe(f,3)))}function l(u){var f=st(u)?ji:Yn;return f(u)}function p(u,f,y){(y?lr(u,f,y):f===n)?f=1:f=ct(f);var E=st(u)?$s:_d;return E(u,f)}function v(u){var f=st(u)?ym:Qr;return f(u)}function w(u){if(u==null)return 0;if(ti(u))return ng(u)?Cs(u):u.length;var f=Fn(u);return f==pt||f==_t?u.size:vo(u).length}function C(u,f,y){var E=st(u)?sd:Id;return y&&lr(u,f,y)&&(f=n),E(u,qe(f,3))}var R=ut(function(u,f){if(u==null)return[];var y=f.length;return y>1&&lr(u,f[0],f[1])?f=[]:y>2&&lr(f[0],f[1],f[2])&&(f=[f[0]]),zl(u,on(f,1),[])}),K=Ft||function(){return Gt.Date.now()};function Q(u,f){if(typeof f!="function")throw new Kr(a);return u=ct(u),function(){if(--u<1)return f.apply(this,arguments)}}function de(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,Gi(u,Y,n,n,n,n,f)}function xe(u,f){var y;if(typeof f!="function")throw new Kr(a);return u=ct(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var ke=ut(function(u,f,y){var E=T;if(y.length){var I=Ur(y,xo(ke));E|=j}return Gi(u,E,f,y,I)}),be=ut(function(u,f,y){var E=T|_;if(y.length){var I=Ur(y,xo(be));E|=j}return Gi(f,E,u,y,I)});function Le(u,f,y){f=y?n:f;var E=Gi(u,M,n,n,n,n,n,f);return E.placeholder=Le.placeholder,E}function De(u,f,y){f=y?n:f;var E=Gi(u,F,n,n,n,n,n,f);return E.placeholder=De.placeholder,E}function Oe(u,f,y){var E,I,O,q,Z,se,ge=0,ve=!1,we=!1,$e=!0;if(typeof u!="function")throw new Kr(a);f=Xi(f)||0,fn(y)&&(ve=!!y.leading,we="maxWait"in y,O=we?hn(Xi(y.maxWait)||0,f):O,$e="trailing"in y?!!y.trailing:$e);function Ke(Sn){var Co=E,Gs=I;return E=I=n,ge=Sn,q=u.apply(Gs,Co),q}function Ze(Sn){return ge=Sn,Z=Ua(gt,f),ve?Ke(Sn):q}function dt(Sn){var Co=Sn-se,Gs=Sn-ge,i1=f-Co;return we?Kn(i1,O-Gs):i1}function et(Sn){var Co=Sn-se,Gs=Sn-ge;return se===n||Co>=f||Co<0||we&&Gs>=O}function gt(){var Sn=K();if(et(Sn))return xt(Sn);Z=Ua(gt,dt(Sn))}function xt(Sn){return Z=n,$e&&E?Ke(Sn):(E=I=n,q)}function Pi(){Z!==n&&Ld(Z),ge=0,E=se=I=Z=n}function Mr(){return Z===n?q:xt(K())}function Ti(){var Sn=K(),Co=et(Sn);if(E=arguments,I=this,se=Sn,Co){if(Z===n)return Ze(se);if(we)return Ld(Z),Z=Ua(gt,f),Ke(se)}return Z===n&&(Z=Ua(gt,f)),q}return Ti.cancel=Pi,Ti.flush=Mr,Ti}var cn=ut(function(u,f){return xd(u,1,f)}),ue=ut(function(u,f,y){return xd(u,Xi(f)||0,y)});function ne(u){return Gi(u,ie)}function ce(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new Kr(a);var y=function(){var E=arguments,I=f?f.apply(this,E):E[0],O=y.cache;if(O.has(I))return O.get(I);var q=u.apply(this,E);return y.cache=O.set(I,q)||O,q};return y.cache=new(ce.Cache||Wr),y}ce.Cache=Wr;function Ee(u){if(typeof u!="function")throw new Kr(a);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function Ve(u){return xe(2,u)}var Ge=Cm(function(u,f){f=f.length==1&&st(f[0])?Lt(f[0],Tr(qe())):Lt(on(f,1),Tr(qe()));var y=f.length;return ut(function(E){for(var I=-1,O=Kn(E.length,y);++I<O;)E[I]=f[I].call(this,E[I]);return ir(u,this,E)})}),We=ut(function(u,f){var y=Ur(f,xo(We));return Gi(u,j,n,f,y)}),Je=ut(function(u,f){var y=Ur(f,xo(Je));return Gi(u,$,n,f,y)}),An=qi(function(u,f){return Gi(u,te,n,n,n,f)});function kt(u,f){if(typeof u!="function")throw new Kr(a);return f=f===n?f:ct(f),ut(u,f)}function rs(u,f){if(typeof u!="function")throw new Kr(a);return f=f==null?0:hn(ct(f),0),ut(function(y){var E=y[f],I=bo(y,0,f);return E&&Fo(I,E),ir(u,this,I)})}function Ty(u,f,y){var E=!0,I=!0;if(typeof u!="function")throw new Kr(a);return fn(y)&&(E="leading"in y?!!y.leading:E,I="trailing"in y?!!y.trailing:I),Oe(u,f,{leading:E,maxWait:f,trailing:I})}function O$(u){return de(u,1)}function F$(u,f){return We(Tc(f),u)}function z$(){if(!arguments.length)return[];var u=arguments[0];return st(u)?u:[u]}function j$(u){return vr(u,x)}function B$(u,f){return f=typeof f=="function"?f:n,vr(u,x,f)}function V$(u){return vr(u,g|x)}function U$(u,f){return f=typeof f=="function"?f:n,vr(u,g|x,f)}function K$(u,f){return f==null||Ml(u,f,Qn(f))}function ko(u,f){return u===f||u!==u&&f!==f}var W$=Mc(Go),H$=Mc(function(u,f){return u>=f}),su=bc((function(){return arguments})())?bc:function(u){return gn(u)&&St.call(u,"callee")&&!rc.call(u,"callee")},st=fe.isArray,G$=td?Tr(td):Sm;function ti(u){return u!=null&&tg(u.length)&&!Ws(u)}function wn(u){return gn(u)&&ti(u)}function q$(u){return u===!0||u===!1||gn(u)&&Nn(u)==Ne}var Ha=gd||Fy,Y$=pr?Tr(pr):go;function X$(u){return gn(u)&&u.nodeType===1&&!dp(u)}function Q$(u){if(u==null)return!0;if(ti(u)&&(st(u)||typeof u=="string"||typeof u.splice=="function"||Ha(u)||rf(u)||su(u)))return!u.length;var f=Fn(u);if(f==pt||f==_t)return!u.size;if(wo(u))return!vo(u).length;for(var y in u)if(St.call(u,y))return!1;return!0}function J$(u,f){return Xr(u,f)}function Z$(u,f,y){y=typeof y=="function"?y:n;var E=y?y(u,f):n;return E===n?Xr(u,f,n,y):!!E}function _y(u){if(!gn(u))return!1;var f=Nn(u);return f==at||f==Qe||typeof u.message=="string"&&typeof u.name=="string"&&!dp(u)}function eA(u){return typeof u=="number"&&Sa(u)}function Ws(u){if(!fn(u))return!1;var f=Nn(u);return f==Ie||f==mt||f==Fe||f==tr}function Bw(u){return typeof u=="number"&&u==ct(u)}function tg(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=V}function fn(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function gn(u){return u!=null&&typeof u=="object"}var Vw=ks?Tr(ks):km;function tA(u,f){return u===f||Ra(u,f,Yl(f))}function nA(u,f,y){return y=typeof y=="function"?y:n,Ra(u,f,Yl(f),y)}function rA(u){return Uw(u)&&u!=+u}function iA(u){if(fy(u))throw new rt(s);return kd(u)}function oA(u){return u===null}function sA(u){return u==null}function Uw(u){return typeof u=="number"||gn(u)&&Nn(u)==Ut}function dp(u){if(!gn(u)||Nn(u)!=it)return!1;var f=gi(u);if(f===null)return!0;var y=St.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Cl.call(y)==tc}var Iy=Hu?Tr(Hu):Ol;function aA(u){return Bw(u)&&u>=-V&&u<=V}var Kw=ma?Tr(ma):Ki;function ng(u){return typeof u=="string"||!st(u)&&gn(u)&&Nn(u)==Rt}function Ei(u){return typeof u=="symbol"||gn(u)&&Nn(u)==_n}var rf=Gh?Tr(Gh):Fl;function lA(u){return u===n}function uA(u){return gn(u)&&Fn(u)==Nt}function cA(u){return gn(u)&&Nn(u)==pe}var fA=Mc(qo),dA=Mc(function(u,f){return u<=f});function Ww(u){if(!u)return[];if(ti(u))return ng(u)?_r(u):sr(u);if(co&&u[co])return ey(u[co]());var f=Fn(u),y=f==pt?Qu:f==_t?zo:of;return y(u)}function Hs(u){if(!u)return u===0?u:0;if(u=Xi(u),u===X||u===-X){var f=u<0?-1:1;return f*ae}return u===u?u:0}function ct(u){var f=Hs(u),y=f%1;return f===f?y?f-y:f:0}function Hw(u){return u?po(ct(u),0,U):0}function Xi(u){if(typeof u=="number")return u;if(Ei(u))return D;if(fn(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=fn(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=Zh(u);var y=Fv.test(u);return y||Rh.test(u)?Ku(u.slice(2),y?2:8):$h.test(u)?D:+u}function Gw(u){return yi(u,ni(u))}function pA(u){return u?po(ct(u),-V,V):u===0?u:0}function At(u){return u==null?"":yr(u)}var hA=Fa(function(u,f){if(wo(f)||ti(f)){yi(f,Qn(f),u);return}for(var y in f)St.call(f,y)&&As(u,y,f[y])}),qw=Fa(function(u,f){yi(f,ni(f),u)}),rg=Fa(function(u,f,y,E){yi(f,ni(f),u,E)}),mA=Fa(function(u,f,y,E){yi(f,Qn(f),u,E)}),gA=qi(mc);function vA(u,f){var y=Ta(u);return f==null?y:jt(y,f)}var yA=ut(function(u,f){u=$t(u);var y=-1,E=f.length,I=E>2?f[2]:n;for(I&&lr(f[0],f[1],I)&&(E=1);++y<E;)for(var O=f[y],q=ni(O),Z=-1,se=q.length;++Z<se;){var ge=q[Z],ve=u[ge];(ve===n||ko(ve,Ni[ge])&&!St.call(u,ge))&&(u[ge]=O[ge])}return u}),bA=ut(function(u){return u.push(n,Vd),ir(Yw,n,u)});function xA(u,f){return Yh(u,qe(f,3),Ar)}function wA(u,f){return Yh(u,qe(f,3),Ho)}function SA(u,f){return u==null?u:gc(u,qe(f,3),ni)}function kA(u,f){return u==null?u:Nl(u,qe(f,3),ni)}function CA(u,f){return u&&Ar(u,qe(f,3))}function EA(u,f){return u&&Ho(u,qe(f,3))}function PA(u){return u==null?[]:Aa(u,Qn(u))}function TA(u){return u==null?[]:Aa(u,ni(u))}function $y(u,f,y){var E=u==null?n:ho(u,f);return E===n?y:E}function _A(u,f){return u!=null&&Gd(u,f,qr)}function Ay(u,f){return u!=null&&Gd(u,f,Ls)}var IA=$m(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=El.call(f)),u[f]=y},Ly(ri)),$A=$m(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=El.call(f)),St.call(u,f)?u[f].push(y):u[f]=[y]},qe),AA=ut(Yr);function Qn(u){return ti(u)?zi(u):vo(u)}function ni(u){return ti(u)?zi(u,!0):Cd(u)}function RA(u,f){var y={};return f=qe(f,3),Ar(u,function(E,I,O){Bi(y,f(E,I,O),E)}),y}function LA(u,f){var y={};return f=qe(f,3),Ar(u,function(E,I,O){Bi(y,I,f(E,I,O))}),y}var MA=Fa(function(u,f,y){Ms(u,f,y)}),Yw=Fa(function(u,f,y,E){Ms(u,f,y,E)}),DA=qi(function(u,f){var y={};if(u==null)return y;var E=!1;f=Lt(f,function(O){return O=Hi(O,u),E||(E=O.length>1),O}),yi(u,Gl(u),y),E&&(y=vr(y,g|b|x,Ud));for(var I=f.length;I--;)Ec(y,f[I]);return y});function NA(u,f){return Xw(u,Ee(qe(f)))}var OA=qi(function(u,f){return u==null?{}:Td(u,f)});function Xw(u,f){if(u==null)return{};var y=Lt(Gl(u),function(E){return[E]});return f=qe(f),Yo(u,y,function(E,I){return f(E,I[0])})}function FA(u,f,y){f=Hi(f,u);var E=-1,I=f.length;for(I||(I=1,u=n);++E<I;){var O=u==null?n:u[Si(f[E])];O===n&&(E=I,O=y),u=Ws(O)?O.call(u):O}return u}function zA(u,f,y){return u==null?u:Ns(u,f,y)}function jA(u,f,y,E){return E=typeof E=="function"?E:n,u==null?u:Ns(u,f,y,E)}var Qw=jd(Qn),Jw=jd(ni);function BA(u,f,y){var E=st(u),I=E||Ha(u)||rf(u);if(f=qe(f,4),y==null){var O=u&&u.constructor;I?y=E?new O:[]:fn(u)?y=Ws(O)?Ta(gi(u)):{}:y={}}return(I?Un:Ar)(u,function(q,Z,se){return f(y,q,Z,se)}),y}function VA(u,f){return u==null?!0:Ec(u,f)}function UA(u,f,y){return u==null?u:Rd(u,f,Tc(y))}function KA(u,f,y,E){return E=typeof E=="function"?E:n,u==null?u:Rd(u,f,Tc(y),E)}function of(u){return u==null?[]:Sl(u,Qn(u))}function WA(u){return u==null?[]:Sl(u,ni(u))}function HA(u,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Xi(y),y=y===y?y:0),f!==n&&(f=Xi(f),f=f===f?f:0),po(Xi(u),f,y)}function GA(u,f,y){return f=Hs(f),y===n?(y=f,f=0):y=Hs(y),u=Xi(u),Sd(u,f,y)}function qA(u,f,y){if(y&&typeof y!="boolean"&&lr(u,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&f===n?(u=0,f=1):(u=Hs(u),f===n?(f=u,u=0):f=Hs(f)),u>f){var E=u;u=f,f=E}if(y||u%1||f%1){var I=Il();return Kn(u+I*(f-u+Zf("1e-"+((I+"").length-1))),f)}return Ma(u,f)}var YA=Os(function(u,f,y){return f=f.toLowerCase(),u+(y?Zw(f):f)});function Zw(u){return Ry(At(u).toLowerCase())}function e1(u){return u=At(u),u&&u.replace(Mh,nm).replace(Uh,"")}function XA(u,f,y){u=At(u),f=yr(f);var E=u.length;y=y===n?E:po(ct(y),0,E);var I=y;return y-=f.length,y>=0&&u.slice(y,I)==f}function QA(u){return u=At(u),u&&Du.test(u)?u.replace(hi,rm):u}function JA(u){return u=At(u),u&&Ro.test(u)?u.replace(ys,"\\$&"):u}var ZA=Os(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),eR=Os(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),tR=Od("toLowerCase");function nR(u,f,y){u=At(u),f=ct(f);var E=f?Cs(u):0;if(!f||E>=f)return u;var I=(f-E)/2;return Wl(jo(I),y)+u+Wl(Ps(I),y)}function rR(u,f,y){u=At(u),f=ct(f);var E=f?Cs(u):0;return f&&E<f?u+Wl(f-E,y):u}function iR(u,f,y){u=At(u),f=ct(f);var E=f?Cs(u):0;return f&&E<f?Wl(f-E,y)+u:u}function oR(u,f,y){return y||f==null?f=0:f&&(f=+f),dm(At(u).replace(pl,""),f||0)}function sR(u,f,y){return(y?lr(u,f,y):f===n)?f=1:f=ct(f),Ds(At(u),f)}function aR(){var u=arguments,f=At(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var lR=Os(function(u,f,y){return u+(y?"_":"")+f.toLowerCase()});function uR(u,f,y){return y&&typeof y!="number"&&lr(u,f,y)&&(f=y=n),y=y===n?U:y>>>0,y?(u=At(u),u&&(typeof f=="string"||f!=null&&!Iy(f))&&(f=yr(f),!f&&ya(u))?bo(_r(u),0,y):u.split(f,y)):[]}var cR=Os(function(u,f,y){return u+(y?" ":"")+Ry(f)});function fR(u,f,y){return u=At(u),y=y==null?0:po(ct(y),0,u.length),f=yr(f),u.slice(y,y+f.length)==f}function dR(u,f,y){var E=N.templateSettings;y&&lr(u,f,y)&&(f=n),u=At(u),f=rg({},f,E,Bd);var I=rg({},f.imports,E.imports,Bd),O=Qn(I),q=Sl(I,O),Z,se,ge=0,ve=f.interpolate||Nu,we="__p += '",$e=kl((f.escape||Nu).source+"|"+ve.source+"|"+(ve===fl?Xe:Nu).source+"|"+(f.evaluate||Nu).source+"|$","g"),Ke="//# sourceURL="+(St.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wv+"]")+`
27
+ `;u.replace($e,function(et,gt,xt,Pi,Mr,Ti){return xt||(xt=Pi),we+=u.slice(ge,Ti).replace(zv,im),gt&&(Z=!0,we+=`' +
28
+ __e(`+gt+`) +
29
+ '`),Mr&&(se=!0,we+=`';
30
+ `+Mr+`;
31
+ __p += '`),xt&&(we+=`' +
32
+ ((__t = (`+xt+`)) == null ? '' : __t) +
33
+ '`),ge=Ti+et.length,et}),we+=`';
34
+ `;var Ze=St.call(f,"variable")&&f.variable;if(!Ze)we=`with (obj) {
35
+ `+we+`
36
+ }
37
+ `;else if(Wf.test(Ze))throw new rt(c);we=(se?we.replace(ln,""):we).replace(aa,"$1").replace(ms,"$1;"),we="function("+(Ze||"obj")+`) {
38
+ `+(Ze?"":`obj || (obj = {});
39
+ `)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(se?`, __j = Array.prototype.join;
40
+ function print() { __p += __j.call(arguments, '') }
41
+ `:`;
42
+ `)+we+`return __p
43
+ }`;var dt=n1(function(){return wt(O,Ke+"return "+we).apply(n,q)});if(dt.source=we,_y(dt))throw dt;return dt}function pR(u){return At(u).toLowerCase()}function hR(u){return At(u).toUpperCase()}function mR(u,f,y){if(u=At(u),u&&(y||f===n))return Zh(u);if(!u||!(f=yr(f)))return u;var E=_r(u),I=_r(f),O=em(E,I),q=fd(E,I)+1;return bo(E,O,q).join("")}function gR(u,f,y){if(u=At(u),u&&(y||f===n))return u.slice(0,Zu(u)+1);if(!u||!(f=yr(f)))return u;var E=_r(u),I=fd(E,_r(f))+1;return bo(E,0,I).join("")}function vR(u,f,y){if(u=At(u),u&&(y||f===n))return u.replace(pl,"");if(!u||!(f=yr(f)))return u;var E=_r(u),I=em(E,_r(f));return bo(E,I).join("")}function yR(u,f){var y=B,E=W;if(fn(f)){var I="separator"in f?f.separator:I;y="length"in f?ct(f.length):y,E="omission"in f?yr(f.omission):E}u=At(u);var O=u.length;if(ya(u)){var q=_r(u);O=q.length}if(y>=O)return u;var Z=y-Cs(E);if(Z<1)return E;var se=q?bo(q,0,Z).join(""):u.slice(0,Z);if(I===n)return se+E;if(q&&(Z+=se.length-Z),Iy(I)){if(u.slice(Z).search(I)){var ge,ve=se;for(I.global||(I=kl(I.source,At(so.exec(I))+"g")),I.lastIndex=0;ge=I.exec(ve);)var we=ge.index;se=se.slice(0,we===n?Z:we)}}else if(u.indexOf(yr(I),Z)!=Z){var $e=se.lastIndexOf(I);$e>-1&&(se=se.slice(0,$e))}return se+E}function bR(u){return u=At(u),u&&cl.test(u)?u.replace(pi,om):u}var xR=Os(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),Ry=Od("toUpperCase");function t1(u,f,y){return u=At(u),f=y?n:f,f===n?Zv(u)?ry(u):Xv(u):u.match(f)||[]}var n1=ut(function(u,f){try{return ir(u,n,f)}catch(y){return _y(y)?y:new rt(y)}}),wR=qi(function(u,f){return Un(f,function(y){y=Si(y),Bi(u,y,ke(u[y],u))}),u});function SR(u){var f=u==null?0:u.length,y=qe();return u=f?Lt(u,function(E){if(typeof E[1]!="function")throw new Kr(a);return[y(E[0]),E[1]]}):[],ut(function(E){for(var I=-1;++I<f;){var O=u[I];if(ir(O[0],this,E))return ir(O[1],this,E)}})}function kR(u){return bm(vr(u,g))}function Ly(u){return function(){return u}}function CR(u,f){return u==null||u!==u?f:u}var ER=Rc(),PR=Rc(!0);function ri(u){return u}function My(u){return La(typeof u=="function"?u:vr(u,g))}function TR(u){return wc(vr(u,g))}function _R(u,f){return qt(u,vr(f,g))}var IR=ut(function(u,f){return function(y){return Yr(y,u,f)}}),$R=ut(function(u,f){return function(y){return Yr(u,y,f)}});function Dy(u,f,y){var E=Qn(f),I=Aa(f,E);y==null&&!(fn(f)&&(I.length||!E.length))&&(y=f,f=u,u=this,I=Aa(f,Qn(f)));var O=!(fn(y)&&"chain"in y)||!!y.chain,q=Ws(u);return Un(I,function(Z){var se=f[Z];u[Z]=se,q&&(u.prototype[Z]=function(){var ge=this.__chain__;if(O||ge){var ve=u(this.__wrapped__),we=ve.__actions__=sr(this.__actions__);return we.push({func:se,args:arguments,thisArg:u}),ve.__chain__=ge,ve}return se.apply(u,Fo([this.value()],arguments))})}),u}function AR(){return Gt._===this&&(Gt._=lm),this}function Ny(){}function RR(u){return u=ct(u),ut(function(f){return Sc(f,u)})}var LR=Lc(Lt),MR=Lc(rd),DR=Lc(sd);function r1(u){return Me(u)?ld(Si(u)):en(u)}function NR(u){return function(f){return u==null?n:ho(u,f)}}var OR=zd(),FR=zd(!0);function Oy(){return[]}function Fy(){return!1}function zR(){return{}}function jR(){return""}function BR(){return!0}function VR(u,f){if(u=ct(u),u<1||u>V)return[];var y=U,E=Kn(u,U);f=qe(f),u-=U;for(var I=cd(E,f);++y<u;)f(y);return I}function UR(u){return st(u)?Lt(u,Si):Ei(u)?[u]:sr(Qd(At(u)))}function KR(u){var f=++wa;return At(u)+f}var WR=Kl(function(u,f){return u+f},0),HR=On("ceil"),GR=Kl(function(u,f){return u/f},1),qR=On("floor");function YR(u){return u&&u.length?Rs(u,ri,Go):n}function XR(u,f){return u&&u.length?Rs(u,qe(f,2),Go):n}function QR(u){return Qh(u,ri)}function JR(u,f){return Qh(u,qe(f,2))}function ZR(u){return u&&u.length?Rs(u,ri,qo):n}function eL(u,f){return u&&u.length?Rs(u,qe(f,2),qo):n}var tL=Kl(function(u,f){return u*f},1),nL=On("round"),rL=Kl(function(u,f){return u-f},0);function iL(u){return u&&u.length?ud(u,ri):0}function oL(u,f){return u&&u.length?ud(u,qe(f,2)):0}return N.after=Q,N.ary=de,N.assign=hA,N.assignIn=qw,N.assignInWith=rg,N.assignWith=mA,N.at=gA,N.before=xe,N.bind=ke,N.bindAll=wR,N.bindKey=be,N.castArray=z$,N.chain=Yc,N.chunk=Bc,N.compact=Jd,N.concat=Zr,N.cond=SR,N.conforms=kR,N.constant=Ly,N.countBy=Xm,N.create=vA,N.curry=Le,N.curryRight=De,N.debounce=Oe,N.defaults=yA,N.defaultsDeep=bA,N.defer=cn,N.delay=ue,N.difference=bt,N.differenceBy=$n,N.differenceWith=mn,N.drop=jn,N.dropRight=Lr,N.dropRightWhile=Ka,N.dropWhile=xn,N.fill=Zl,N.filter=Jc,N.flatMap=cp,N.flatMapDeep=ky,N.flatMapDepth=Zm,N.flatten=Vc,N.flattenDeep=tu,N.flattenDepth=br,N.flip=ne,N.flow=ER,N.flowRight=PR,N.fromPairs=Zd,N.functions=PA,N.functionsIn=TA,N.groupBy=fp,N.initial=Uc,N.intersection=ep,N.intersectionBy=Zo,N.intersectionWith=Kc,N.invert=IA,N.invertBy=$A,N.invokeMap=eg,N.iteratee=My,N.keyBy=Cy,N.keys=Qn,N.keysIn=ni,N.map=Ks,N.mapKeys=RA,N.mapValues=LA,N.matches=TR,N.matchesProperty=_R,N.memoize=ce,N.merge=MA,N.mergeWith=Yw,N.method=IR,N.methodOf=$R,N.mixin=Dy,N.negate=Ee,N.nthArg=RR,N.omit=DA,N.omitBy=NA,N.once=Ve,N.orderBy=Ey,N.over=LR,N.overArgs=Ge,N.overEvery=MR,N.overSome=DR,N.partial=We,N.partialRight=Je,N.partition=ou,N.pick=OA,N.pickBy=Xw,N.property=r1,N.propertyOf=NR,N.pull=Wc,N.pullAll=ru,N.pullAllBy=cr,N.pullAllWith=ts,N.pullAt=ki,N.range=OR,N.rangeRight=FR,N.rearg=An,N.reject=o,N.remove=xr,N.rest=kt,N.reverse=Hc,N.sampleSize=p,N.set=zA,N.setWith=jA,N.shuffle=v,N.slice=np,N.sortBy=R,N.sortedUniq=op,N.sortedUniqBy=Bs,N.split=uR,N.spread=rs,N.tail=Um,N.take=Km,N.takeRight=sp,N.takeRightWhile=Gc,N.takeWhile=py,N.tap=xy,N.throttle=Ty,N.thru=Ci,N.toArray=Ww,N.toPairs=Qw,N.toPairsIn=Jw,N.toPath=UR,N.toPlainObject=Gw,N.transform=BA,N.unary=O$,N.union=hy,N.unionBy=Wm,N.unionWith=Hm,N.uniq=Vs,N.uniqBy=my,N.uniqWith=Wa,N.unset=VA,N.unzip=qc,N.unzipWith=tn,N.update=UA,N.updateWith=KA,N.values=of,N.valuesIn=WA,N.without=gy,N.words=t1,N.wrap=F$,N.xor=Gm,N.xorBy=vy,N.xorWith=yy,N.zip=qm,N.zipObject=Ym,N.zipObjectDeep=by,N.zipWith=ei,N.entries=Qw,N.entriesIn=Jw,N.extend=qw,N.extendWith=rg,Dy(N,N),N.add=WR,N.attempt=n1,N.camelCase=YA,N.capitalize=Zw,N.ceil=HR,N.clamp=HA,N.clone=j$,N.cloneDeep=V$,N.cloneDeepWith=U$,N.cloneWith=B$,N.conformsTo=K$,N.deburr=e1,N.defaultTo=CR,N.divide=GR,N.endsWith=XA,N.eq=ko,N.escape=QA,N.escapeRegExp=JA,N.every=Qm,N.find=Zc,N.findIndex=Jo,N.findKey=xA,N.findLast=Jm,N.findLastIndex=eu,N.findLastKey=wA,N.floor=qR,N.forEach=ef,N.forEachRight=iu,N.forIn=SA,N.forInRight=kA,N.forOwn=CA,N.forOwnRight=EA,N.get=$y,N.gt=W$,N.gte=H$,N.has=_A,N.hasIn=Ay,N.head=zs,N.identity=ri,N.includes=tf,N.indexOf=So,N.inRange=GA,N.invoke=AA,N.isArguments=su,N.isArray=st,N.isArrayBuffer=G$,N.isArrayLike=ti,N.isArrayLikeObject=wn,N.isBoolean=q$,N.isBuffer=Ha,N.isDate=Y$,N.isElement=X$,N.isEmpty=Q$,N.isEqual=J$,N.isEqualWith=Z$,N.isError=_y,N.isFinite=eA,N.isFunction=Ws,N.isInteger=Bw,N.isLength=tg,N.isMap=Vw,N.isMatch=tA,N.isMatchWith=nA,N.isNaN=rA,N.isNative=iA,N.isNil=sA,N.isNull=oA,N.isNumber=Uw,N.isObject=fn,N.isObjectLike=gn,N.isPlainObject=dp,N.isRegExp=Iy,N.isSafeInteger=aA,N.isSet=Kw,N.isString=ng,N.isSymbol=Ei,N.isTypedArray=rf,N.isUndefined=lA,N.isWeakMap=uA,N.isWeakSet=cA,N.join=es,N.kebabCase=ZA,N.last=ur,N.lastIndexOf=nu,N.lowerCase=eR,N.lowerFirst=tR,N.lt=fA,N.lte=dA,N.max=YR,N.maxBy=XR,N.mean=QR,N.meanBy=JR,N.min=ZR,N.minBy=eL,N.stubArray=Oy,N.stubFalse=Fy,N.stubObject=zR,N.stubString=jR,N.stubTrue=BR,N.multiply=tL,N.nth=tp,N.noConflict=AR,N.noop=Ny,N.now=K,N.pad=nR,N.padEnd=rR,N.padStart=iR,N.parseInt=oR,N.random=qA,N.reduce=Py,N.reduceRight=nf,N.repeat=sR,N.replace=aR,N.result=FA,N.round=nL,N.runInContext=re,N.sample=l,N.size=w,N.snakeCase=lR,N.some=C,N.sortedIndex=rp,N.sortedIndexBy=dy,N.sortedIndexOf=ns,N.sortedLastIndex=Vm,N.sortedLastIndexBy=ip,N.sortedLastIndexOf=js,N.startCase=cR,N.startsWith=fR,N.subtract=rL,N.sum=iL,N.sumBy=oL,N.template=dR,N.times=VR,N.toFinite=Hs,N.toInteger=ct,N.toLength=Hw,N.toLower=pR,N.toNumber=Xi,N.toSafeInteger=pA,N.toString=At,N.toUpper=hR,N.trim=mR,N.trimEnd=gR,N.trimStart=vR,N.truncate=yR,N.unescape=bR,N.uniqueId=KR,N.upperCase=xR,N.upperFirst=Ry,N.each=ef,N.eachRight=iu,N.first=zs,Dy(N,(function(){var u={};return Ar(N,function(f,y){St.call(N.prototype,y)||(u[y]=f)}),u})(),{chain:!1}),N.VERSION=r,Un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){N[u].placeholder=N}),Un(["drop","take"],function(u,f){ot.prototype[u]=function(y){y=y===n?1:hn(ct(y),0);var E=this.__filtered__&&!f?new ot(this):this.clone();return E.__filtered__?E.__takeCount__=Kn(y,E.__takeCount__):E.__views__.push({size:Kn(y,U),type:u+(E.__dir__<0?"Right":"")}),E},ot.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),Un(["filter","map","takeWhile"],function(u,f){var y=f+1,E=y==H||y==J;ot.prototype[u]=function(I){var O=this.clone();return O.__iteratees__.push({iteratee:qe(I,3),type:y}),O.__filtered__=O.__filtered__||E,O}}),Un(["head","last"],function(u,f){var y="take"+(f?"Right":"");ot.prototype[u]=function(){return this[y](1).value()[0]}}),Un(["initial","tail"],function(u,f){var y="drop"+(f?"":"Right");ot.prototype[u]=function(){return this.__filtered__?new ot(this):this[y](1)}}),ot.prototype.compact=function(){return this.filter(ri)},ot.prototype.find=function(u){return this.filter(u).head()},ot.prototype.findLast=function(u){return this.reverse().find(u)},ot.prototype.invokeMap=ut(function(u,f){return typeof u=="function"?new ot(this):this.map(function(y){return Yr(y,u,f)})}),ot.prototype.reject=function(u){return this.filter(Ee(qe(u)))},ot.prototype.slice=function(u,f){u=ct(u);var y=this;return y.__filtered__&&(u>0||f<0)?new ot(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),f!==n&&(f=ct(f),y=f<0?y.dropRight(-f):y.take(f-u)),y)},ot.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},ot.prototype.toArray=function(){return this.take(U)},Ar(ot.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),I=N[E?"take"+(f=="last"?"Right":""):f],O=E||/^find/.test(f);I&&(N.prototype[f]=function(){var q=this.__wrapped__,Z=E?[1]:arguments,se=q instanceof ot,ge=Z[0],ve=se||st(q),we=function(gt){var xt=I.apply(N,Fo([gt],Z));return E&&$e?xt[0]:xt};ve&&y&&typeof ge=="function"&&ge.length!=1&&(se=ve=!1);var $e=this.__chain__,Ke=!!this.__actions__.length,Ze=O&&!$e,dt=se&&!Ke;if(!O&&ve){q=dt?q:new ot(this);var et=u.apply(q,Z);return et.__actions__.push({func:Ci,args:[we],thisArg:n}),new Wn(et,$e)}return Ze&&dt?u.apply(this,Z):(et=this.thru(we),Ze?E?et.value()[0]:et.value():et)})}),Un(["pop","push","shift","sort","splice","unshift"],function(u){var f=lo[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",E=/^(?:pop|shift)$/.test(u);N.prototype[u]=function(){var I=arguments;if(E&&!this.__chain__){var O=this.value();return f.apply(st(O)?O:[],I)}return this[y](function(q){return f.apply(st(q)?q:[],I)})}}),Ar(ot.prototype,function(u,f){var y=N[f];if(y){var E=y.name+"";St.call(Ea,E)||(Ea[E]=[]),Ea[E].push({name:f,func:y})}}),Ea[ja(n,_).name]=[{name:"wrapper",func:n}],ot.prototype.clone=cc,ot.prototype.reverse=yd,ot.prototype.value=_a,N.prototype.at=Xc,N.prototype.chain=Us,N.prototype.commit=Qc,N.prototype.next=ap,N.prototype.plant=wy,N.prototype.reverse=up,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=Sy,N.prototype.first=N.prototype.head,co&&(N.prototype[co]=lp),N}),ba=iy();Di?((Di.exports=ba)._=ba,wl._=ba):Gt._=ba}).call(o7)})(Lp,Lp.exports)),Lp.exports}var D2=s7();class a7{plugins={};activePlugins=[];listeners=new Set;register(t){this.plugins[t.name]={isActivated:!1,config:t},this.notify()}activate(t){const n=this.plugins[t];!n||n.isActivated||(n.isActivated=!0,n.config.onActivate&&n.config.onActivate(),this.produceActivePlugins(),this.notify())}deactivate(t){const n=this.plugins[t];!n||!n.isActivated||(n.isActivated=!1,n.config.onDeactivate&&n.config.onDeactivate(),this.produceActivePlugins(),this.notify())}isPluginActivated(t){const n=this.plugins[t];return!!n&&n.isActivated}getPlugin(t){const n=this.plugins[t];return!n||!n.isActivated?null:n}getActivePlugins(){return this.activePlugins}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notify(){this.listeners.forEach(t=>t())}produceActivePlugins(){this.activePlugins=D2.transform(this.plugins,(t,n)=>{n.isActivated&&t.push(n.config)},[])}}const Pn=new a7;const N2="FeedbackFormPlugin",O2={name:N2,components:{FeedbackForm:S.lazy(()=>fi(()=>import("./FeedbackForm-oSbly5oN.js"),__vite__mapDeps([0,1,2,3,4,5,6])))}},F2="ChatOptionsPlugin",z2={name:F2,components:{ChatOptionsForm:S.lazy(()=>fi(()=>import("./ChatOptionsForm-bfNG8UIW.js"),__vite__mapDeps([7,1,2,3,4,5,6])))}},aw=()=>{const e=S.useContext(j2);if(!e)throw new Error("useChat must be used within a ConfigContextProvider");return e},j2=S.createContext(void 0),B2="SharePluginName",V2={name:B2,components:{ShareButton:S.lazy(()=>fi(()=>import("./ShareButton-B7DyIVH0.js"),__vite__mapDeps([8,6])))}},iC=e=>{let t;const n=new Set,r=(h,m)=>{const g=typeof h=="function"?h(t):h;if(!Object.is(g,t)){const b=t;t=m??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(x=>x(t,b))}},i=()=>t,c={setState:r,getState:i,getInitialState:()=>d,subscribe:h=>(n.add(h),()=>n.delete(h))},d=t=e(r,i,c);return c},oC=e=>e?iC(e):iC,l7=e=>e;function U2(e,t=l7){const n=He.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return He.useDebugValue(n),n}const fr=[];for(let e=0;e<256;++e)fr.push((e+256).toString(16).slice(1));function u7(e,t=0){return(fr[e[t+0]]+fr[e[t+1]]+fr[e[t+2]]+fr[e[t+3]]+"-"+fr[e[t+4]]+fr[e[t+5]]+"-"+fr[e[t+6]]+fr[e[t+7]]+"-"+fr[e[t+8]]+fr[e[t+9]]+"-"+fr[e[t+10]]+fr[e[t+11]]+fr[e[t+12]]+fr[e[t+13]]+fr[e[t+14]]+fr[e[t+15]]).toLowerCase()}let w0;const c7=new Uint8Array(16);function f7(){if(!w0){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");w0=crypto.getRandomValues.bind(crypto)}return w0(c7)}const d7=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),sC={randomUUID:d7};function K2(e,t,n){if(sC.randomUUID&&!e)return sC.randomUUID();e=e||{};const r=e.random??e.rng?.()??f7();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,u7(r)}function aC(e){return Object.values(e).map(t=>({role:t.role,content:t.content,extra:t.extra||null}))}var W2=Symbol.for("immer-nothing"),lC=Symbol.for("immer-draftable"),Ri=Symbol.for("immer-state");function _o(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Lf=Object.getPrototypeOf;function Mf(e){return!!e&&!!e[Ri]}function _u(e){return e?H2(e)||Array.isArray(e)||!!e[lC]||!!e.constructor?.[lC]||Pv(e)||Tv(e):!1}var p7=Object.prototype.constructor.toString();function H2(e){if(!e||typeof e!="object")return!1;const t=Lf(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===p7}function rv(e,t){Ev(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ev(e){const t=e[Ri];return t?t.type_:Array.isArray(e)?1:Pv(e)?2:Tv(e)?3:0}function Ob(e,t){return Ev(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function G2(e,t,n){const r=Ev(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function h7(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pv(e){return e instanceof Map}function Tv(e){return e instanceof Set}function mu(e){return e.copy_||e.base_}function Fb(e,t){if(Pv(e))return new Map(e);if(Tv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=H2(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ri];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],c=r[a];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(r[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(Lf(e),r)}else{const r=Lf(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function lw(e,t=!1){return _v(e)||Mf(e)||!_u(e)||(Ev(e)>1&&(e.set=e.add=e.clear=e.delete=m7),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>lw(r,!0))),e}function m7(){_o(2)}function _v(e){return Object.isFrozen(e)}var g7={};function Iu(e){const t=g7[e];return t||_o(0,e),t}var lh;function q2(){return lh}function v7(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function uC(e,t){t&&(Iu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zb(e){jb(e),e.drafts_.forEach(y7),e.drafts_=null}function jb(e){e===lh&&(lh=e.parent_)}function cC(e){return lh=v7(lh,e)}function y7(e){const t=e[Ri];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ri].modified_&&(zb(t),_o(4)),_u(e)&&(e=iv(t,e),t.parent_||ov(t,e)),t.patches_&&Iu("Patches").generateReplacementPatches_(n[Ri].base_,e,t.patches_,t.inversePatches_)):e=iv(t,n,[]),zb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==W2?e:void 0}function iv(e,t,n){if(_v(t))return t;const r=t[Ri];if(!r)return rv(t,(i,s)=>dC(e,r,t,i,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ov(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let s=i,a=!1;r.type_===3&&(s=new Set(i),i.clear(),a=!0),rv(s,(c,d)=>dC(e,r,i,c,d,n,a)),ov(e,i,!1),n&&e.patches_&&Iu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function dC(e,t,n,r,i,s,a){if(Mf(i)){const c=s&&t&&t.type_!==3&&!Ob(t.assigned_,r)?s.concat(r):void 0,d=iv(e,i,c);if(G2(n,r,d),Mf(d))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(_u(i)&&!_v(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;iv(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ov(e,i)}}function ov(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&lw(t,n)}function b7(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:q2(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,s=uw;n&&(i=[r],s=uh);const{revoke:a,proxy:c}=Proxy.revocable(i,s);return r.draft_=c,r.revoke_=a,c}var uw={get(e,t){if(t===Ri)return e;const n=mu(e);if(!Ob(n,t))return x7(e,n,t);const r=n[t];return e.finalized_||!_u(r)?r:r===S0(e.base_,t)?(k0(e),e.copy_[t]=Vb(r,e)):r},has(e,t){return t in mu(e)},ownKeys(e){return Reflect.ownKeys(mu(e))},set(e,t,n){const r=Y2(mu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=S0(mu(e),t),s=i?.[Ri];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(h7(n,i)&&(n!==void 0||Ob(e.base_,t)))return!0;k0(e),Bb(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return S0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,k0(e),Bb(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=mu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){_o(11)},getPrototypeOf(e){return Lf(e.base_)},setPrototypeOf(){_o(12)}},uh={};rv(uw,(e,t)=>{uh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});uh.deleteProperty=function(e,t){return uh.set.call(this,e,t,void 0)};uh.set=function(e,t,n){return uw.set.call(this,e[0],t,n,e[0])};function S0(e,t){const n=e[Ri];return(n?mu(n):e)[t]}function x7(e,t,n){const r=Y2(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function Y2(e,t){if(!(t in e))return;let n=Lf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Lf(n)}}function Bb(e){e.modified_||(e.modified_=!0,e.parent_&&Bb(e.parent_))}function k0(e){e.copy_||(e.copy_=Fb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var w7=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const a=this;return function(d=s,...h){return a.produce(d,m=>n.call(this,m,...h))}}typeof n!="function"&&_o(6),r!==void 0&&typeof r!="function"&&_o(7);let i;if(_u(t)){const s=cC(this),a=Vb(t,void 0);let c=!0;try{i=n(a),c=!1}finally{c?zb(s):jb(s)}return uC(s,r),fC(i,s)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===W2&&(i=void 0),this.autoFreeze_&&lw(i,!0),r){const s=[],a=[];Iu("Patches").generateReplacementPatches_(t,i,s,a),r(s,a)}return i}else _o(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...c)=>this.produceWithPatches(a,d=>t(d,...c));let r,i;return[this.produce(t,n,(a,c)=>{r=a,i=c}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){_u(e)||_o(8),Mf(e)&&(e=S7(e));const t=cC(this),n=Vb(e,void 0);return n[Ri].isManual_=!0,jb(t),n}finishDraft(e,t){const n=e&&e[Ri];(!n||!n.isManual_)&&_o(9);const{scope_:r}=n;return uC(r,t),fC(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Iu("Patches").applyPatches_;return Mf(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Vb(e,t){const n=Pv(e)?Iu("MapSet").proxyMap_(e,t):Tv(e)?Iu("MapSet").proxySet_(e,t):b7(e,t);return(t?t.scope_:q2()).drafts_.push(n),n}function S7(e){return Mf(e)||_o(10,e),X2(e)}function X2(e){if(!_u(e)||_v(e))return e;const t=e[Ri];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Fb(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Fb(e,!0);return rv(n,(r,i)=>{G2(n,r,X2(i))}),t&&(t.finalized_=!1),n}var Li=new w7,kh=Li.produce;Li.produceWithPatches.bind(Li);Li.setAutoFreeze.bind(Li);Li.setUseStrictShallowCopy.bind(Li);Li.applyPatches.bind(Li);Li.createDraft.bind(Li);Li.finishDraft.bind(Li);const k7=e=>(t,n,r)=>(r.setState=(i,s,...a)=>{const c=typeof i=="function"?kh(i):i;return t(c,s,...a)},e(r.setState,n,r)),C7=k7,E7=({content:e},t)=>{t.serverState=e},P7=({content:e},t,n)=>{const r=n.conversationIdRef.current;return t.conversationId=e.conversation_id,n.conversationIdRef.current=e.conversation_id,{originalConversationId:r}},T7=(e,t,{originalConversationId:n,conversationIdRef:r})=>{const i=t.conversations[n];if(!i)throw new Error("Received events for non-existent conversation");t.conversations[r.current]=i,t.currentConversation===n&&(t.currentConversation=r.current),delete t.conversations[n]},_7=({content:e},t)=>{t.followupMessages=e.messages},I7=({content:e},t)=>{t.summary=e.summary},$7=(e,t,n)=>{const r=t.history[n.messageId];r.hasConfirmationBreak&&(r.hasConfirmationBreak=!1,r.content.endsWith(`
44
+
45
+ `)||(r.content+=`
46
+
47
+ `)),r.content+=e.content.text},A7=(e,t,n)=>{const r=t.history[n.messageId];r.references=[...r.references??[],e.content]},R7=(e,t,n)=>{const r=t.history[n.messageId];r.serverId=e.content.message_id},L7=(e,t,n)=>{const r=t.history[n.messageId],{update_id:i,content:s,type:a}=e.content,c=kh(r.liveUpdates??{},d=>{a===Yz.Start&&i in d&&console.error(`Got duplicate start event for update_id: ${i}. Ignoring the event.`),d[i]=s});r.liveUpdates=c},M7=(e,t,n)=>{const r=t.history[n.messageId],i=e.content;r.images=kh(r.images??{},s=>{s[i.id]&&console.error(`Got duplicate image event for image_id: ${i.id}. Ignoring the event.`),s[i.id]=i.url})},D7=(e,t,n)=>{const r=t.history[n.messageId];t.history[n.messageId]={id:r.id,role:r.role,content:""}},N7=(e,t,n)=>{const r=t.history[n.messageId];r.usage=e.content.usage},O7=({content:e},t,n)=>{const r=t.history[n.messageId],i=r.tasks??[],s=e.task,a=kh(i,c=>{const d=c.findIndex(h=>h.id===s.id);d===-1?c.push(s):c[d]=s});r.tasks=a},F7=(e,t,n)=>{const r=t.history[n.messageId],i=e.content.confirmation_request.confirmation_id;r.confirmationRequests||(r.confirmationRequests={}),r.confirmationStates||(r.confirmationStates={}),!(i in r.confirmationRequests)&&(r.confirmationRequests[i]=e.content.confirmation_request,r.confirmationStates[i]="pending")},z7=(e,t,n)=>{const r=t.history[n.messageId];r.error=e.content.message};class j7{handlers=new Map;register(t,n){this.handlers.has(t)&&console.warn(`Handler for ${String(t)} already registered - overwriting.`),this.handlers.set(t,n)}get(t){const n=this.handlers.get(t);return n||(console.warn(`No handler registered for type: ${String(t)}`),console.warn("Continuing with empty handler..."),{handle:()=>{},after:()=>{}})}}const Br=new j7;Br.register("state_update",{handle:E7});Br.register("conversation_id",{handle:P7,after:T7});Br.register("followup_messages",{handle:_7});Br.register("text",{handle:$7});Br.register("reference",{handle:A7});Br.register("message_id",{handle:R7});Br.register("live_update",{handle:L7});Br.register("image",{handle:M7});Br.register("clear_message",{handle:D7});Br.register("usage",{handle:N7});Br.register("todo_item",{handle:O7});Br.register("conversation_summary",{handle:I7});Br.register("confirmation_request",{handle:F7});Br.register("error",{handle:z7});const Q2="temp-",J2=()=>`${Q2}${K2()}`,Ub=()=>({history:{},followupMessages:null,serverState:null,conversationId:J2(),eventsLog:[],lastMessageId:null,context:void 0,chatOptions:void 0,isLoading:!1,abortController:null}),B7=()=>{const e=Ub();return{conversations:{[e.conversationId]:e},currentConversation:e.conversationId}},_i=(e,t)=>n=>{const r=n.conversations[e];if(!r)throw new Error(`Conversation with ID '${e}' does not exist`);t(r)},pC=e=>e.startsWith(Q2),hC=C7((e,t)=>({...B7(),computed:{getContext:()=>{const{primitives:{getCurrentConversation:n}}=t(),r=n(),{serverState:i,conversationId:s,chatOptions:a}=r;return{...i??{},...s&&!pC(r.conversationId)?{conversation_id:s}:{},...a?{user_settings:a}:{}}}},_internal:{_hasHydrated:!1,_setHasHydrated:n=>{e(r=>{r._internal._hasHydrated=n})},handleResponse:(n,r,i)=>{let s;const a=Br.get(i.type);e(_i(n.current,c=>{if(!c.history[r])throw new Error(`Message ID ${r} not found in history`);s=a.handle(i,c,{conversationIdRef:n,messageId:r})})),e(c=>{a.after?.(i,c,{conversationIdRef:n,messageId:r,...s})}),e(_i(n.current,c=>{c.eventsLog[c.eventsLog.length-1].push(i)}))}},primitives:{getCurrentConversation:()=>{const{currentConversation:n,conversations:r}=t(),i=r[n];if(!i)throw new Error("Tried to get conversation that doesn't exist.");return i},restore:(n,r,i,s)=>{const a=J2(),c={...Ub(),followupMessages:r,chatOptions:i,serverState:s,history:n,conversationId:a},d=Object.values(n).filter(h=>h.role!==kf.User);c.eventsLog=d.map(()=>[]),e(h=>{h.conversations[a]=c,h.currentConversation=a})},addMessage:(n,r)=>{const i=K2(),s={...r,id:i};return e(_i(n,a=>{a.followupMessages=null,a.lastMessageId=i,a.history[i]=s})),i},deleteMessage:(n,r)=>{e(_i(n,i=>{const{history:s}=i,a=Object.keys(s);a.at(-1)===r&&(i.lastMessageId=a.at(-2)??null),delete i.history[r]}))},stopAnswering:n=>{const r=t().conversations[n];if(!r)throw new Error("Tried to stop answering for conversation that doesn't exist");r.abortController?.abort(),e(_i(n,i=>{i.abortController=null,i.isLoading=!1}))}},actions:{selectConversation:n=>{e(r=>{if(r.currentConversation===n)return;if(!r.conversations[n])throw new Error(`Tried to select conversation that doesn't exist, id: ${n}`);r.currentConversation=n})},deleteConversation:n=>{const{actions:{newConversation:r},primitives:{stopAnswering:i},currentConversation:s}=t();if(i(n),e(a=>{delete a.conversations[n]}),n===s)return r()},mergeExtensions:(n,r)=>{const{currentConversation:i}=t();e(_i(i,s=>{if(!(n in s.history))throw new Error("Attempted to set extensions for a message that does not exist.");const a=s.history[n];a.extensions={...a.extensions,...r},s.history[n]=a}))},initializeChatOptions:n=>{const{currentConversation:r}=t();e(_i(r,i=>{const s=i.chatOptions??{};Object.keys(s).forEach(a=>{a in n||delete s[a]}),Object.keys(n).forEach(a=>{a in s||(s[a]=n[a])}),i.chatOptions=s}))},setConversationProperties:(n,r)=>{e(_i(n,i=>{Object.assign(i,r)}))},stopAnswering:()=>{const{currentConversation:n,primitives:{stopAnswering:r}}=t();r(n)},newConversation:()=>{const n=Ub();return e(r=>{r.conversations[n.conversationId]=n,r.currentConversation=n.conversationId,r.conversations=D2.omitBy(r.conversations,i=>pC(i.conversationId)&&i.conversationId!==r.currentConversation)}),n.conversationId},sendMessage:(n,r,i)=>{const{_internal:{handleResponse:s},primitives:{addMessage:a,getCurrentConversation:c,stopAnswering:d},computed:{getContext:h}}=t(),{history:m,conversationId:g}=c();a(g,{role:kf.User,content:n});const b=a(g,{role:kf.Assistant,content:""}),x={message:n,history:aC(m),context:{...h(),...i}};e(_i(g,T=>{T.eventsLog.push([])}));const k=new AbortController,P={current:g};e(_i(g,T=>{T.abortController=k,T.isLoading=!0})),r.makeStreamRequest("/api/chat",x,{onMessage:T=>s(P,b,T),onError:T=>{s(P,b,{type:"text",content:{text:T.message}}),d(P.current)},onClose:()=>{d(P.current)}},k.signal)},sendSilentConfirmation:(n,r,i,s)=>{const{_internal:{handleResponse:a},primitives:{getCurrentConversation:c,stopAnswering:d},computed:{getContext:h}}=t(),{history:m,conversationId:g}=c(),b=Array.isArray(r)?r:[r],x=typeof i=="boolean"?b.reduce((M,F)=>({...M,[F]:i}),{}):i;e(_i(g,M=>{const F=M.history[n];F&&F.confirmationStates&&(b.forEach(j=>{j in F.confirmationStates&&(F.confirmationStates[j]=x[j]?"confirmed":"declined")}),F.hasConfirmationBreak=!0,F.liveUpdates=void 0)}));const k=n,P=b.map(M=>({confirmation_id:M,confirmed:x[M]})),T={message:"",history:aC(m),context:{...h(),confirmed_tools:P}};e(_i(g,M=>{M.eventsLog.push([])}));const _=new AbortController,A={current:g};e(_i(g,M=>{M.abortController=_,M.isLoading=!0})),s.makeStreamRequest("/api/chat",T,{onMessage:M=>a(A,k,M),onError:M=>{a(A,k,{type:"text",content:{text:M.message}}),d(A.current)},onClose:()=>{d(A.current)}},_.signal)}}}));function Z2(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var s;const a=d=>d===null?null:JSON.parse(d,void 0),c=(s=n.getItem(i))!=null?s:null;return c instanceof Promise?c.then(a):a(c)},setItem:(i,s)=>n.setItem(i,JSON.stringify(s,void 0)),removeItem:i=>n.removeItem(i)}}const Kb=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Kb(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Kb(r)(n)}}}},V7=(e,t)=>(n,r,i)=>{let s={storage:Z2(()=>localStorage),partialize:P=>P,version:0,merge:(P,T)=>({...T,...P}),...t},a=!1;const c=new Set,d=new Set;let h=s.storage;if(!h)return e((...P)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...P)},r,i);const m=()=>{const P=s.partialize({...r()});return h.setItem(s.name,{state:P,version:s.version})},g=i.setState;i.setState=(P,T)=>{g(P,T),m()};const b=e((...P)=>{n(...P),m()},r,i);i.getInitialState=()=>b;let x;const k=()=>{var P,T;if(!h)return;a=!1,c.forEach(A=>{var M;return A((M=r())!=null?M:b)});const _=((T=s.onRehydrateStorage)==null?void 0:T.call(s,(P=r())!=null?P:b))||void 0;return Kb(h.getItem.bind(h))(s.name).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==s.version){if(s.migrate){const M=s.migrate(A.state,A.version);return M instanceof Promise?M.then(F=>[!0,F]):[!0,M]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,A.state];return[!1,void 0]}).then(A=>{var M;const[F,j]=A;if(x=s.merge(j,(M=r())!=null?M:b),n(x,!0),F)return m()}).then(()=>{_?.(x,void 0),x=r(),a=!0,d.forEach(A=>A(x))}).catch(A=>{_?.(void 0,A)})};return i.persist={setOptions:P=>{s={...s,...P},P.storage&&(h=P.storage)},clearStorage:()=>{h?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>k(),hasHydrated:()=>a,onHydrate:P=>(c.add(P),()=>{c.delete(P)}),onFinishHydration:P=>(d.add(P),()=>{d.delete(P)})},s.skipHydration||k(),x||b},U7=V7;function Iv(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function K7(e,t){let n;const r=()=>{if(n)return n;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),n=Iv(i),n.then(s=>{s.onclose=()=>n=void 0},()=>{}),n};return(i,s)=>r().then(a=>s(a.transaction(t,i).objectStore(t)))}let C0;function cw(){return C0||(C0=K7("keyval-store","keyval")),C0}function W7(e,t=cw()){return t("readonly",n=>Iv(n.get(e)))}function H7(e,t,n=cw()){return n("readwrite",r=>(r.put(t,e),Iv(r.transaction)))}function G7(e,t=cw()){return t("readwrite",n=>(n.delete(e),Iv(n.transaction)))}const q7={getItem:async e=>await W7(e)||null,setItem:async(e,t)=>{await H7(e,t)},removeItem:async e=>{await G7(e)}},eI=S.createContext(null);function tI(){return L.jsx("div",{className:yn("bg-background flex h-screen w-screen items-start justify-center"),children:L.jsxs("div",{className:"text-default-900 m-auto flex flex-col items-center gap-4",children:[L.jsx(a2,{size:"lg","aria-label":"Progress indicator"}),L.jsx("p",{children:"Initializing..."})]})})}const mC="ragbits-history-store";function Y7(e,t){if(e)return oC(U7(hC,{name:t,partialize:r=>({conversations:r.conversations}),onRehydrateStorage:r=>()=>r._internal._setHasHydrated(!0),merge:(r,i)=>{const s=r?.conversations??{},{conversations:a,currentConversation:c}=i,d=Object.values(s).reduce((h,m)=>(m.conversationId===null||(h[m.conversationId]={...m,isLoading:!1,abortController:null}),h),{});return{...i,currentConversation:c,conversations:{...d,...a}}},storage:Z2(()=>q7)}));const n=oC(hC);return n.getState()._internal._setHasHydrated(!0),n}function X7({children:e,shouldStoreHistory:t}){const[n,r]=S.useState(mC),i=S.useMemo(()=>Y7(t,n),[t,n]),s=U2(i,d=>d._internal._hasHydrated),a=d=>{r(`${mC}-${d}`)},c=S.useMemo(()=>({store:i,initializeUserStore:a}),[i]);return t&&!s?L.jsx(tI,{}):L.jsx(eI.Provider,{value:c,children:e})}var gC="popstate";function Q7(e={}){function t(r,i){let{pathname:s,search:a,hash:c}=r.location;return Wb("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ch(i)}return Z7(t,n,null,e)}function Dn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $o(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function J7(){return Math.random().toString(36).substring(2,10)}function vC(e,t){return{usr:e.state,key:e.key,idx:t}}function Wb(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ch(t):t,state:n,key:t&&t.key||r||J7()}}function ch({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ch(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Z7(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,c="POP",d=null,h=m();h==null&&(h=0,a.replaceState({...a.state,idx:h},""));function m(){return(a.state||{idx:null}).idx}function g(){c="POP";let T=m(),_=T==null?null:T-h;h=T,d&&d({action:c,location:P.location,delta:_})}function b(T,_){c="PUSH";let A=Wb(P.location,T,_);h=m()+1;let M=vC(A,h),F=P.createHref(A);try{a.pushState(M,"",F)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(F)}s&&d&&d({action:c,location:P.location,delta:1})}function x(T,_){c="REPLACE";let A=Wb(P.location,T,_);h=m();let M=vC(A,h),F=P.createHref(A);a.replaceState(M,"",F),s&&d&&d({action:c,location:P.location,delta:0})}function k(T){return ej(T)}let P={get action(){return c},get location(){return e(i,a)},listen(T){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(gC,g),d=T,()=>{i.removeEventListener(gC,g),d=null}},createHref(T){return t(i,T)},createURL:k,encodeLocation(T){let _=k(T);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:b,replace:x,go(T){return a.go(T)}};return P}function ej(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Dn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ch(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function nI(e,t,n="/"){return tj(e,t,n,!1)}function tj(e,t,n,r){let i=typeof t=="string"?Ch(t):t,s=ra(i.pathname||"/",n);if(s==null)return null;let a=rI(e);nj(a);let c=null;for(let d=0;c==null&&d<a.length;++d){let h=pj(s);c=fj(a[d],h,r)}return c}function rI(e,t=[],n=[],r=""){let i=(s,a,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};d.relativePath.startsWith("/")&&(Dn(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let h=ea([r,d.relativePath]),m=n.concat(d);s.children&&s.children.length>0&&(Dn(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),rI(s.children,t,m,h)),!(s.path==null&&!s.index)&&t.push({path:h,score:uj(h,s.index),routesMeta:m})};return e.forEach((s,a)=>{if(s.path===""||!s.path?.includes("?"))i(s,a);else for(let c of iI(s.path))i(s,a,c)}),t}function iI(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=iI(r.join("/")),c=[];return c.push(...a.map(d=>d===""?s:[s,d].join("/"))),i&&c.push(...a),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function nj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var rj=/^:[\w-]+$/,ij=3,oj=2,sj=1,aj=10,lj=-2,yC=e=>e==="*";function uj(e,t){let n=e.split("/"),r=n.length;return n.some(yC)&&(r+=lj),t&&(r+=oj),n.filter(i=>!yC(i)).reduce((i,s)=>i+(rj.test(s)?ij:s===""?sj:aj),r)}function cj(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function fj(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",a=[];for(let c=0;c<r.length;++c){let d=r[c],h=c===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",g=sv({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),b=d.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=sv({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!g)return null;Object.assign(i,g.params),a.push({params:i,pathname:ea([s,g.pathname]),pathnameBase:vj(ea([s,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(s=ea([s,g.pathnameBase]))}return a}function sv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dj(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:g},b)=>{if(m==="*"){let k=c[b]||"";a=s.slice(0,s.length-k.length).replace(/(.)\/+$/,"$1")}const x=c[b];return g&&!x?h[m]=void 0:h[m]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:a,pattern:e}}function dj(e,t=!1,n=!0){$o(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $o(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ra(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function hj(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ch(e):e;return{pathname:n?n.startsWith("/")?n:mj(n,t):t,search:yj(r),hash:bj(i)}}function mj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function E0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gj(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fw(e){let t=gj(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function dw(e,t,n,r=!1){let i;typeof e=="string"?i=Ch(e):(i={...e},Dn(!i.pathname||!i.pathname.includes("?"),E0("?","pathname","search",i)),Dn(!i.pathname||!i.pathname.includes("#"),E0("#","pathname","hash",i)),Dn(!i.search||!i.search.includes("#"),E0("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,c;if(a==null)c=n;else{let g=t.length-1;if(!r&&a.startsWith("..")){let b=a.split("/");for(;b[0]==="..";)b.shift(),g-=1;i.pathname=b.join("/")}c=g>=0?t[g]:"/"}let d=hj(i,c),h=a&&a!=="/"&&a.endsWith("/"),m=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var ea=e=>e.join("/").replace(/\/\/+/g,"/"),vj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var oI=["POST","PUT","PATCH","DELETE"];new Set(oI);var wj=["GET",...oI];new Set(wj);var jf=S.createContext(null);jf.displayName="DataRouter";var $v=S.createContext(null);$v.displayName="DataRouterState";S.createContext(!1);var sI=S.createContext({isTransitioning:!1});sI.displayName="ViewTransition";var Sj=S.createContext(new Map);Sj.displayName="Fetchers";var kj=S.createContext(null);kj.displayName="Await";var Ao=S.createContext(null);Ao.displayName="Navigation";var Av=S.createContext(null);Av.displayName="Location";var oo=S.createContext({outlet:null,matches:[],isDataRoute:!1});oo.displayName="Route";var pw=S.createContext(null);pw.displayName="RouteError";function Cj(e,{relative:t}={}){Dn(Bf(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Ao),{hash:i,pathname:s,search:a}=Eh(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:ea([n,s])),r.createHref({pathname:c,search:a,hash:i})}function Bf(){return S.useContext(Av)!=null}function ll(){return Dn(Bf(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Av).location}var aI="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lI(e){S.useContext(Ao).static||S.useLayoutEffect(e)}function hw(){let{isDataRoute:e}=S.useContext(oo);return e?zj():Ej()}function Ej(){Dn(Bf(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(jf),{basename:t,navigator:n}=S.useContext(Ao),{matches:r}=S.useContext(oo),{pathname:i}=ll(),s=JSON.stringify(fw(r)),a=S.useRef(!1);return lI(()=>{a.current=!0}),S.useCallback((d,h={})=>{if($o(a.current,aI),!a.current)return;if(typeof d=="number"){n.go(d);return}let m=dw(d,JSON.parse(s),i,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ea([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,s,i,e])}var Pj=S.createContext(null);function Tj(e){let t=S.useContext(oo).outlet;return t&&S.createElement(Pj.Provider,{value:e},t)}function uI(){let{matches:e}=S.useContext(oo),t=e[e.length-1];return t?t.params:{}}function Eh(e,{relative:t}={}){let{matches:n}=S.useContext(oo),{pathname:r}=ll(),i=JSON.stringify(fw(n));return S.useMemo(()=>dw(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function _j(e,t){return cI(e)}function cI(e,t,n,r){Dn(Bf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(Ao),{matches:s}=S.useContext(oo),a=s[s.length-1],c=a?a.params:{},d=a?a.pathname:"/",h=a?a.pathnameBase:"/",m=a&&a.route;{let _=m&&m.path||"";fI(d,!m||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
48
+
49
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let g=ll(),b;b=g;let x=b.pathname||"/",k=x;if(h!=="/"){let _=h.replace(/^\//,"").split("/");k="/"+x.replace(/^\//,"").split("/").slice(_.length).join("/")}let P=nI(e,{pathname:k});return $o(m||P!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),$o(P==null||P[P.length-1].route.element!==void 0||P[P.length-1].route.Component!==void 0||P[P.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Lj(P&&P.map(_=>Object.assign({},_,{params:Object.assign({},c,_.params),pathname:ea([h,i.encodeLocation?i.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?h:ea([h,i.encodeLocation?i.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),s,n,r)}function Ij(){let e=Fj(),t=xj(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,a)}var $j=S.createElement(Ij,null),Aj=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(oo.Provider,{value:this.props.routeContext},S.createElement(pw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Rj({routeContext:e,match:t,children:n}){let r=S.useContext(jf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(oo.Provider,{value:e},n)}function Lj(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=n?.errors;if(s!=null){let d=i.findIndex(h=>h.route.id&&s?.[h.route.id]!==void 0);Dn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let a=!1,c=-1;if(n)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:m,errors:g}=n,b=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||b){a=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,h,m)=>{let g,b=!1,x=null,k=null;n&&(g=s&&h.route.id?s[h.route.id]:void 0,x=h.route.errorElement||$j,a&&(c<0&&m===0?(fI("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,k=null):c===m&&(b=!0,k=h.route.hydrateFallbackElement||null)));let P=t.concat(i.slice(0,m+1)),T=()=>{let _;return g?_=x:b?_=k:h.route.Component?_=S.createElement(h.route.Component,null):h.route.element?_=h.route.element:_=d,S.createElement(Rj,{match:h,routeContext:{outlet:d,matches:P,isDataRoute:n!=null},children:_})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?S.createElement(Aj,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:T(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):T()},null)}function mw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mj(e){let t=S.useContext(jf);return Dn(t,mw(e)),t}function Dj(e){let t=S.useContext($v);return Dn(t,mw(e)),t}function Nj(e){let t=S.useContext(oo);return Dn(t,mw(e)),t}function gw(e){let t=Nj(e),n=t.matches[t.matches.length-1];return Dn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Oj(){return gw("useRouteId")}function Fj(){let e=S.useContext(pw),t=Dj("useRouteError"),n=gw("useRouteError");return e!==void 0?e:t.errors?.[n]}function zj(){let{router:e}=Mj("useNavigate"),t=gw("useNavigate"),n=S.useRef(!1);return lI(()=>{n.current=!0}),S.useCallback(async(i,s={})=>{$o(n.current,aI),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var bC={};function fI(e,t,n){!t&&!bC[e]&&(bC[e]=!0,$o(!1,n))}S.memo(jj);function jj({routes:e,future:t,state:n}){return cI(e,void 0,n,t)}function iq({to:e,replace:t,state:n,relative:r}){Dn(Bf(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=S.useContext(Ao);$o(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=S.useContext(oo),{pathname:a}=ll(),c=hw(),d=dw(e,fw(s),a,r==="path"),h=JSON.stringify(d);return S.useEffect(()=>{c(JSON.parse(h),{replace:t,state:n,relative:r})},[c,h,r,t,n]),null}function Bj(e){return Tj(e.context)}function Vj({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1}){Dn(!Bf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:a,navigator:i,static:s,future:{}}),[a,i,s]);typeof n=="string"&&(n=Ch(n));let{pathname:d="/",search:h="",hash:m="",state:g=null,key:b="default"}=n,x=S.useMemo(()=>{let k=ra(d,a);return k==null?null:{location:{pathname:k,search:h,hash:m,state:g,key:b},navigationType:r}},[a,d,h,m,g,b,r]);return $o(x!=null,`<Router basename="${a}"> is not able to match the URL "${d}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:S.createElement(Ao.Provider,{value:c},S.createElement(Av.Provider,{children:t,value:x}))}var Og="get",Fg="application/x-www-form-urlencoded";function Rv(e){return e!=null&&typeof e.tagName=="string"}function Uj(e){return Rv(e)&&e.tagName.toLowerCase()==="button"}function Kj(e){return Rv(e)&&e.tagName.toLowerCase()==="form"}function Wj(e){return Rv(e)&&e.tagName.toLowerCase()==="input"}function Hj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Gj(e,t){return e.button===0&&(!t||t==="_self")&&!Hj(e)}var Sg=null;function qj(){if(Sg===null)try{new FormData(document.createElement("form"),0),Sg=!1}catch{Sg=!0}return Sg}var Yj=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function P0(e){return e!=null&&!Yj.has(e)?($o(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fg}"`),null):e}function Xj(e,t){let n,r,i,s,a;if(Kj(e)){let c=e.getAttribute("action");r=c?ra(c,t):null,n=e.getAttribute("method")||Og,i=P0(e.getAttribute("enctype"))||Fg,s=new FormData(e)}else if(Uj(e)||Wj(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?ra(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Og,i=P0(e.getAttribute("formenctype"))||P0(c.getAttribute("enctype"))||Fg,s=new FormData(c,e),!qj()){let{name:h,type:m,value:g}=e;if(m==="image"){let b=h?`${h}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else h&&s.append(h,g)}}else{if(Rv(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Og,r=null,i=Fg,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vw(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qj(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ra(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Jj(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zj(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function eB(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let a=await Jj(s,n);return a.links?a.links():[]}return[]}));return iB(r.flat(1).filter(Zj).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function xC(e,t,n,r,i,s){let a=(d,h)=>n[h]?d.route.id!==n[h].route.id:!0,c=(d,h)=>n[h].pathname!==d.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,h)=>a(d,h)||c(d,h)):s==="data"?t.filter((d,h)=>{let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(a(d,h)||c(d,h))return!0;if(d.route.shouldRevalidate){let g=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function tB(e,t,{includeHydrateFallback:n}={}){return nB(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function nB(e){return[...new Set(e)]}function rB(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function iB(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(rB(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function dI(){let e=S.useContext(jf);return vw(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function oB(){let e=S.useContext($v);return vw(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var yw=S.createContext(void 0);yw.displayName="FrameworkContext";function pI(){let e=S.useContext(yw);return vw(e,"You must render this element inside a <HydratedRouter> element"),e}function sB(e,t){let n=S.useContext(yw),[r,i]=S.useState(!1),[s,a]=S.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:h,onMouseLeave:m,onTouchStart:g}=t,b=S.useRef(null);S.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let P=_=>{_.forEach(A=>{a(A.isIntersecting)})},T=new IntersectionObserver(P,{threshold:.5});return b.current&&T.observe(b.current),()=>{T.disconnect()}}},[e]),S.useEffect(()=>{if(r){let P=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(P)}}},[r]);let x=()=>{i(!0)},k=()=>{i(!1),a(!1)};return n?e!=="intent"?[s,b,{}]:[s,b,{onFocus:kp(c,x),onBlur:kp(d,k),onMouseEnter:kp(h,x),onMouseLeave:kp(m,k),onTouchStart:kp(g,x)}]:[!1,b,{}]}function kp(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function aB({page:e,...t}){let{router:n}=dI(),r=S.useMemo(()=>nI(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(uB,{page:e,matches:r,...t}):null}function lB(e){let{manifest:t,routeModules:n}=pI(),[r,i]=S.useState([]);return S.useEffect(()=>{let s=!1;return eB(e,t,n).then(a=>{s||i(a)}),()=>{s=!0}},[e,t,n]),r}function uB({page:e,matches:t,...n}){let r=ll(),{manifest:i,routeModules:s}=pI(),{basename:a}=dI(),{loaderData:c,matches:d}=oB(),h=S.useMemo(()=>xC(e,t,d,i,r,"data"),[e,t,d,i,r]),m=S.useMemo(()=>xC(e,t,d,i,r,"assets"),[e,t,d,i,r]),g=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let k=new Set,P=!1;if(t.forEach(_=>{let A=i.routes[_.route.id];!A||!A.hasLoader||(!h.some(M=>M.route.id===_.route.id)&&_.route.id in c&&s[_.route.id]?.shouldRevalidate||A.hasClientLoader?P=!0:k.add(_.route.id))}),k.size===0)return[];let T=Qj(e,a,"data");return P&&k.size>0&&T.searchParams.set("_routes",t.filter(_=>k.has(_.route.id)).map(_=>_.route.id).join(",")),[T.pathname+T.search]},[a,c,r,i,h,t,e,s]),b=S.useMemo(()=>tB(m,i),[m,i]),x=lB(m);return S.createElement(S.Fragment,null,g.map(k=>S.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...n})),b.map(k=>S.createElement("link",{key:k,rel:"modulepreload",href:k,...n})),x.map(({key:k,link:P})=>S.createElement("link",{key:k,...P})))}function cB(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var hI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hI&&(window.__reactRouterVersion="7.7.1")}catch{}function fB({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=Q7({window:n,v5Compat:!0}));let i=r.current,[s,a]=S.useState({action:i.action,location:i.location}),c=S.useCallback(d=>{S.startTransition(()=>a(d))},[a]);return S.useLayoutEffect(()=>i.listen(c),[i,c]),S.createElement(Vj,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i})}var mI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gI=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:a,state:c,target:d,to:h,preventScrollReset:m,viewTransition:g,...b},x){let{basename:k}=S.useContext(Ao),P=typeof h=="string"&&mI.test(h),T,_=!1;if(typeof h=="string"&&P&&(T=h,hI))try{let ie=new URL(window.location.href),B=h.startsWith("//")?new URL(ie.protocol+h):new URL(h),W=ra(B.pathname,k);B.origin===ie.origin&&W!=null?h=W+B.search+B.hash:_=!0}catch{$o(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=Cj(h,{relative:i}),[M,F,j]=sB(r,b),$=mB(h,{replace:a,state:c,target:d,preventScrollReset:m,relative:i,viewTransition:g});function Y(ie){t&&t(ie),ie.defaultPrevented||$(ie)}let te=S.createElement("a",{...b,...j,href:T||A,onClick:_||s?t:Y,ref:cB(x,F),target:d,"data-discover":!P&&n==="render"?"true":void 0});return M&&!P?S.createElement(S.Fragment,null,te,S.createElement(aB,{page:A})):te});gI.displayName="Link";var dB=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:a,viewTransition:c,children:d,...h},m){let g=Eh(a,{relative:h.relative}),b=ll(),x=S.useContext($v),{navigator:k,basename:P}=S.useContext(Ao),T=x!=null&&xB(g)&&c===!0,_=k.encodeLocation?k.encodeLocation(g).pathname:g.pathname,A=b.pathname,M=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(A=A.toLowerCase(),M=M?M.toLowerCase():null,_=_.toLowerCase()),M&&P&&(M=ra(M,P)||M);const F=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let j=A===_||!i&&A.startsWith(_)&&A.charAt(F)==="/",$=M!=null&&(M===_||!i&&M.startsWith(_)&&M.charAt(_.length)==="/"),Y={isActive:j,isPending:$,isTransitioning:T},te=j?t:void 0,ie;typeof r=="function"?ie=r(Y):ie=[r,j?"active":null,$?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(Y):s;return S.createElement(gI,{...h,"aria-current":te,className:ie,ref:m,style:B,to:a,viewTransition:c},typeof d=="function"?d(Y):d)});dB.displayName="NavLink";var pB=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:a=Og,action:c,onSubmit:d,relative:h,preventScrollReset:m,viewTransition:g,...b},x)=>{let k=yB(),P=bB(c,{relative:h}),T=a.toLowerCase()==="get"?"get":"post",_=typeof c=="string"&&mI.test(c),A=M=>{if(d&&d(M),M.defaultPrevented)return;M.preventDefault();let F=M.nativeEvent.submitter,j=F?.getAttribute("formmethod")||a;k(F||M.currentTarget,{fetcherKey:t,method:j,navigate:n,replace:i,state:s,relative:h,preventScrollReset:m,viewTransition:g})};return S.createElement("form",{ref:x,method:T,action:P,onSubmit:r?d:A,...b,"data-discover":!_&&e==="render"?"true":void 0})});pB.displayName="Form";function hB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vI(e){let t=S.useContext(jf);return Dn(t,hB(e)),t}function mB(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:a}={}){let c=hw(),d=ll(),h=Eh(e,{relative:s});return S.useCallback(m=>{if(Gj(m,t)){m.preventDefault();let g=n!==void 0?n:ch(d)===ch(h);c(e,{replace:g,state:r,preventScrollReset:i,relative:s,viewTransition:a})}},[d,c,h,n,r,t,e,i,s,a])}var gB=0,vB=()=>`__${String(++gB)}__`;function yB(){let{router:e}=vI("useSubmit"),{basename:t}=S.useContext(Ao),n=Oj();return S.useCallback(async(r,i={})=>{let{action:s,method:a,encType:c,formData:d,body:h}=Xj(r,t);if(i.navigate===!1){let m=i.fetcherKey||vB();await e.fetch(m,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:h,formMethod:i.method||a,formEncType:i.encType||c,flushSync:i.flushSync})}else await e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:h,formMethod:i.method||a,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function bB(e,{relative:t}={}){let{basename:n}=S.useContext(Ao),r=S.useContext(oo);Dn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...Eh(e||".",{relative:t})},a=ll();if(e==null){s.search=a.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(m=>m==="")){c.delete("index"),d.filter(g=>g).forEach(g=>c.append("index",g));let m=c.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:ea([n,s.pathname])),ch(s)}function xB(e,{relative:t}={}){let n=S.useContext(sI);Dn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vI("useViewTransitionState"),i=Eh(e,{relative:t});if(!n.isTransitioning)return!1;let s=ra(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ra(n.nextLocation.pathname,r)||n.nextLocation.pathname;return sv(i.pathname,a)!=null||sv(i.pathname,s)!=null}function wB(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const SB=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kB=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,CB={};function wC(e,t){return(CB.jsx?kB:SB).test(e)}const EB=/[ \t\n\f\r]/g;function PB(e){return typeof e=="object"?e.type==="text"?SC(e.value):!1:SC(e)}function SC(e){return e.replace(EB,"")===""}class Ph{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ph.prototype.normal={};Ph.prototype.property={};Ph.prototype.space=void 0;function yI(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ph(n,r,t)}function Hb(e){return e.toLowerCase()}class di{constructor(t,n){this.attribute=n,this.property=t}}di.prototype.attribute="";di.prototype.booleanish=!1;di.prototype.boolean=!1;di.prototype.commaOrSpaceSeparated=!1;di.prototype.commaSeparated=!1;di.prototype.defined=!1;di.prototype.mustUseProperty=!1;di.prototype.number=!1;di.prototype.overloadedBoolean=!1;di.prototype.property="";di.prototype.spaceSeparated=!1;di.prototype.space=void 0;let TB=0;const ft=Mu(),Rn=Mu(),Gb=Mu(),Pe=Mu(),Xt=Mu(),Cf=Mu(),Ii=Mu();function Mu(){return 2**++TB}const qb=Object.freeze(Object.defineProperty({__proto__:null,boolean:ft,booleanish:Rn,commaOrSpaceSeparated:Ii,commaSeparated:Cf,number:Pe,overloadedBoolean:Gb,spaceSeparated:Xt},Symbol.toStringTag,{value:"Module"})),T0=Object.keys(qb);class bw extends di{constructor(t,n,r,i){let s=-1;if(super(t,n),kC(this,"space",i),typeof r=="number")for(;++s<T0.length;){const a=T0[s];kC(this,T0[s],(r&qb[a])===qb[a])}}}bw.prototype.defined=!0;function kC(e,t,n){n&&(e[t]=n)}function Vf(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new bw(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Hb(r)]=r,n[Hb(s.attribute)]=r}return new Ph(t,n,e.space)}const bI=Vf({properties:{ariaActiveDescendant:null,ariaAtomic:Rn,ariaAutoComplete:null,ariaBusy:Rn,ariaChecked:Rn,ariaColCount:Pe,ariaColIndex:Pe,ariaColSpan:Pe,ariaControls:Xt,ariaCurrent:null,ariaDescribedBy:Xt,ariaDetails:null,ariaDisabled:Rn,ariaDropEffect:Xt,ariaErrorMessage:null,ariaExpanded:Rn,ariaFlowTo:Xt,ariaGrabbed:Rn,ariaHasPopup:null,ariaHidden:Rn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xt,ariaLevel:Pe,ariaLive:null,ariaModal:Rn,ariaMultiLine:Rn,ariaMultiSelectable:Rn,ariaOrientation:null,ariaOwns:Xt,ariaPlaceholder:null,ariaPosInSet:Pe,ariaPressed:Rn,ariaReadOnly:Rn,ariaRelevant:null,ariaRequired:Rn,ariaRoleDescription:Xt,ariaRowCount:Pe,ariaRowIndex:Pe,ariaRowSpan:Pe,ariaSelected:Rn,ariaSetSize:Pe,ariaSort:null,ariaValueMax:Pe,ariaValueMin:Pe,ariaValueNow:Pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xI(e,t){return t in e?e[t]:t}function wI(e,t){return xI(e,t.toLowerCase())}const _B=Vf({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cf,acceptCharset:Xt,accessKey:Xt,action:null,allow:null,allowFullScreen:ft,allowPaymentRequest:ft,allowUserMedia:ft,alt:null,as:null,async:ft,autoCapitalize:null,autoComplete:Xt,autoFocus:ft,autoPlay:ft,blocking:Xt,capture:null,charSet:null,checked:ft,cite:null,className:Xt,cols:Pe,colSpan:null,content:null,contentEditable:Rn,controls:ft,controlsList:Xt,coords:Pe|Cf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ft,defer:ft,dir:null,dirName:null,disabled:ft,download:Gb,draggable:Rn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ft,formTarget:null,headers:Xt,height:Pe,hidden:Gb,high:Pe,href:null,hrefLang:null,htmlFor:Xt,httpEquiv:Xt,id:null,imageSizes:null,imageSrcSet:null,inert:ft,inputMode:null,integrity:null,is:null,isMap:ft,itemId:null,itemProp:Xt,itemRef:Xt,itemScope:ft,itemType:Xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ft,low:Pe,manifest:null,max:null,maxLength:Pe,media:null,method:null,min:null,minLength:Pe,multiple:ft,muted:ft,name:null,nonce:null,noModule:ft,noValidate:ft,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ft,optimum:Pe,pattern:null,ping:Xt,placeholder:null,playsInline:ft,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ft,referrerPolicy:null,rel:Xt,required:ft,reversed:ft,rows:Pe,rowSpan:Pe,sandbox:Xt,scope:null,scoped:ft,seamless:ft,selected:ft,shadowRootClonable:ft,shadowRootDelegatesFocus:ft,shadowRootMode:null,shape:null,size:Pe,sizes:null,slot:null,span:Pe,spellCheck:Rn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Pe,step:null,style:null,tabIndex:Pe,target:null,title:null,translate:null,type:null,typeMustMatch:ft,useMap:null,value:Rn,width:Pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xt,axis:null,background:null,bgColor:null,border:Pe,borderColor:null,bottomMargin:Pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ft,declare:ft,event:null,face:null,frame:null,frameBorder:null,hSpace:Pe,leftMargin:Pe,link:null,longDesc:null,lowSrc:null,marginHeight:Pe,marginWidth:Pe,noResize:ft,noHref:ft,noShade:ft,noWrap:ft,object:null,profile:null,prompt:null,rev:null,rightMargin:Pe,rules:null,scheme:null,scrolling:Rn,standby:null,summary:null,text:null,topMargin:Pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ft,disableRemotePlayback:ft,prefix:null,property:null,results:Pe,security:null,unselectable:null},space:"html",transform:wI}),IB=Vf({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ii,accentHeight:Pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Pe,amplitude:Pe,arabicForm:null,ascent:Pe,attributeName:null,attributeType:null,azimuth:Pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Pe,by:null,calcMode:null,capHeight:Pe,className:Xt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Pe,diffuseConstant:Pe,direction:null,display:null,dur:null,divisor:Pe,dominantBaseline:null,download:ft,dx:null,dy:null,edgeMode:null,editable:null,elevation:Pe,enableBackground:null,end:null,event:null,exponent:Pe,externalResourcesRequired:null,fill:null,fillOpacity:Pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Cf,g2:Cf,glyphName:Cf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Pe,horizOriginX:Pe,horizOriginY:Pe,id:null,ideographic:Pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Pe,k:Pe,k1:Pe,k2:Pe,k3:Pe,k4:Pe,kernelMatrix:Ii,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Pe,overlineThickness:Pe,paintOrder:null,panose1:null,path:null,pathLength:Pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Pe,pointsAtY:Pe,pointsAtZ:Pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ii,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ii,rev:Ii,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ii,requiredFeatures:Ii,requiredFonts:Ii,requiredFormats:Ii,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Pe,specularExponent:Pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Pe,strikethroughThickness:Pe,string:null,stroke:null,strokeDashArray:Ii,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Pe,strokeOpacity:Pe,strokeWidth:null,style:null,surfaceScale:Pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ii,tabIndex:Pe,tableValues:null,target:null,targetX:Pe,targetY:Pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ii,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Pe,underlineThickness:Pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Pe,values:null,vAlphabetic:Pe,vMathematical:Pe,vectorEffect:null,vHanging:Pe,vIdeographic:Pe,version:null,vertAdvY:Pe,vertOriginX:Pe,vertOriginY:Pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xI}),SI=Vf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),kI=Vf({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wI}),CI=Vf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$B={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},AB=/[A-Z]/g,CC=/-[a-z]/g,RB=/^data[-\w.:]+$/i;function LB(e,t){const n=Hb(t);let r=t,i=di;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&RB.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(CC,DB);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!CC.test(s)){let a=s.replace(AB,MB);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=bw}return new i(r,t)}function MB(e){return"-"+e.toLowerCase()}function DB(e){return e.charAt(1).toUpperCase()}const NB=yI([bI,_B,SI,kI,CI],"html"),xw=yI([bI,IB,SI,kI,CI],"svg");function OB(e){return e.join(" ").trim()}var cf={},_0,EC;function FB(){if(EC)return _0;EC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
50
+ `,h="/",m="*",g="",b="comment",x="declaration";_0=function(P,T){if(typeof P!="string")throw new TypeError("First argument must be a string");if(!P)return[];T=T||{};var _=1,A=1;function M(ee){var H=ee.match(t);H&&(_+=H.length);var le=ee.lastIndexOf(d);A=~le?ee.length-le:A+ee.length}function F(){var ee={line:_,column:A};return function(H){return H.position=new j(ee),te(),H}}function j(ee){this.start=ee,this.end={line:_,column:A},this.source=T.source}j.prototype.content=P;function $(ee){var H=new Error(T.source+":"+_+":"+A+": "+ee);if(H.reason=ee,H.filename=T.source,H.line=_,H.column=A,H.source=P,!T.silent)throw H}function Y(ee){var H=ee.exec(P);if(H){var le=H[0];return M(le),P=P.slice(le.length),H}}function te(){Y(n)}function ie(ee){var H;for(ee=ee||[];H=B();)H!==!1&&ee.push(H);return ee}function B(){var ee=F();if(!(h!=P.charAt(0)||m!=P.charAt(1))){for(var H=2;g!=P.charAt(H)&&(m!=P.charAt(H)||h!=P.charAt(H+1));)++H;if(H+=2,g===P.charAt(H-1))return $("End of comment missing");var le=P.slice(2,H-2);return A+=2,M(le),P=P.slice(H),A+=2,ee({type:b,comment:le})}}function W(){var ee=F(),H=Y(r);if(H){if(B(),!Y(i))return $("property missing ':'");var le=Y(s),J=ee({type:x,property:k(H[0].replace(e,g)),value:le?k(le[0].replace(e,g)):g});return Y(a),J}}function G(){var ee=[];ie(ee);for(var H;H=W();)H!==!1&&(ee.push(H),ie(ee));return ee}return te(),G()};function k(P){return P?P.replace(c,g):g}return _0}var PC;function zB(){if(PC)return cf;PC=1;var e=cf&&cf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(cf,"__esModule",{value:!0}),cf.default=n;var t=e(FB());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var a=(0,t.default)(r),c=typeof i=="function";return a.forEach(function(d){if(d.type==="declaration"){var h=d.property,m=d.value;c?i(h,m,d):m&&(s=s||{},s[h]=m)}}),s}return cf}var Cp={},TC;function jB(){if(TC)return Cp;TC=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(h){return!h||n.test(h)||e.test(h)},a=function(h,m){return m.toUpperCase()},c=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),s(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(i,c):h=h.replace(r,c),h.replace(t,a))};return Cp.camelCase=d,Cp}var Ep,_C;function BB(){if(_C)return Ep;_C=1;var e=Ep&&Ep.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(zB()),n=jB();function r(i,s){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(c,d){c&&d&&(a[(0,n.camelCase)(c,s)]=d)}),a}return r.default=r,Ep=r,Ep}var VB=BB();const UB=dv(VB),EI=PI("end"),ww=PI("start");function PI(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 KB(e){const t=ww(e),n=EI(e);if(t&&n)return{start:t,end:n}}function Up(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?IC(e.position):"start"in e||"end"in e?IC(e):"line"in e||"column"in e?Yb(e):""}function Yb(e){return $C(e&&e.line)+":"+$C(e&&e.column)}function IC(e){return Yb(e&&e.start)+"-"+Yb(e&&e.end)}function $C(e){return e&&typeof e=="number"?e:1}class Cr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(a=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?s.ruleId=r:(s.source=r.slice(0,d),s.ruleId=r.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=c?c.line:void 0,this.name=Up(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Cr.prototype.file="";Cr.prototype.name="";Cr.prototype.reason="";Cr.prototype.message="";Cr.prototype.stack="";Cr.prototype.column=void 0;Cr.prototype.line=void 0;Cr.prototype.ancestors=void 0;Cr.prototype.cause=void 0;Cr.prototype.fatal=void 0;Cr.prototype.place=void 0;Cr.prototype.ruleId=void 0;Cr.prototype.source=void 0;const Sw={}.hasOwnProperty,WB=new Map,HB=/[A-Z]/g,GB=new Set(["table","tbody","thead","tfoot","tr"]),qB=new Set(["td","th"]),TI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function YB(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=r9(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=n9(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"?xw:NB,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=_I(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function _I(e,t,n){if(t.type==="element")return XB(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return QB(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ZB(e,t,n);if(t.type==="mdxjsEsm")return JB(e,t);if(t.type==="root")return e9(e,t,n);if(t.type==="text")return t9(e,t)}function XB(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=xw,e.schema=i),e.ancestors.push(t);const s=$I(e,t.tagName,!1),a=i9(e,t);let c=Cw(e,t);return GB.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!PB(d):!0})),II(e,a,s,t),kw(a,c),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}function QB(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)}fh(e,t.position)}function JB(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fh(e,t.position)}function ZB(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=xw,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:$I(e,t.name,!0),a=o9(e,t),c=Cw(e,t);return II(e,a,s,t),kw(a,c),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}function e9(e,t,n){const r={};return kw(r,Cw(e,t)),e.create(t,e.Fragment,r,n)}function t9(e,t){return t.value}function II(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function kw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function n9(e,t,n){return r;function r(i,s,a,c){const h=Array.isArray(a.children)?n:t;return c?h(s,a,c):h(s,a)}}function r9(e,t){return n;function n(r,i,s,a){const c=Array.isArray(s.children),d=ww(r);return t(i,s,a,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function i9(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Sw.call(t.properties,i)){const s=s9(e,i,t.properties[i]);if(s){const[a,c]=s;e.tableCellAlignToStyle&&a==="align"&&typeof c=="string"&&qB.has(t.tagName)?r=c:n[a]=c}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function o9(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const a=s.expression;a.type;const c=a.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else fh(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,s=e.evaluater.evaluateExpression(c.expression)}else fh(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function Cw(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:WB;for(;++r<t.children.length;){const s=t.children[r];let a;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const h=i.get(d)||0;a=d+"-"+h,i.set(d,h+1)}}const c=_I(e,s,a);c!==void 0&&n.push(c)}return n}function s9(e,t,n){const r=LB(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?wB(n):OB(n)),r.property==="style"){let i=typeof n=="object"?n:a9(e,String(n));return e.stylePropertyNameCase==="css"&&(i=l9(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?$B[r.property]||r.property:r.attribute,n]}}function a9(e,t){try{return UB(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Cr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=TI+"#cannot-parse-style-attribute",i}}function $I(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,a;for(;++s<i.length;){const c=wC(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}r=a}else r=wC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Sw.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);fh(e)}function fh(e,t){const n=new Cr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=TI+"#cannot-handle-mdx-estrees-without-createevaluater",n}function l9(e){const t={};let n;for(n in e)Sw.call(e,n)&&(t[u9(n)]=e[n]);return t}function u9(e){let t=e.replace(HB,c9);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function c9(e){return"-"+e.toLowerCase()}const I0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},f9={};function Ew(e,t){const n=f9,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return AI(e,r,i)}function AI(e,t,n){if(d9(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return AC(e.children,t,n)}return Array.isArray(e)?AC(e,t,n):""}function AC(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=AI(e[i],t,n);return r.join("")}function d9(e){return!!(e&&typeof e=="object")}const RC=document.createElement("i");function Pw(e){const t="&"+e+";";RC.innerHTML=t;const n=RC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ai(e,t,n,r){const i=e.length;let s=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function to(e,t){return e.length>0?(Ai(e,e.length,0,t),e):t}const LC={}.hasOwnProperty;function RI(e){const t={};let n=-1;for(;++n<e.length;)p9(t,e[n]);return t}function p9(e,t){let n;for(n in t){const i=(LC.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let a;if(s)for(a in s){LC.call(i,a)||(i[a]=[]);const c=s[a];h9(i[a],Array.isArray(c)?c:c?[c]:[])}}}function h9(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ai(e,0,0,r)}function LI(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Io(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Or=ul(/[A-Za-z]/),kr=ul(/[\dA-Za-z]/),m9=ul(/[#-'*+\--9=?A-Z^-~]/);function av(e){return e!==null&&(e<32||e===127)}const Xb=ul(/\d/),g9=ul(/[\dA-Fa-f]/),v9=ul(/[!-/:-@[-`{-~]/);function Ye(e){return e!==null&&e<-2}function Vt(e){return e!==null&&(e<0||e===32)}function vt(e){return e===-2||e===-1||e===32}const Lv=ul(new RegExp("\\p{P}|\\p{S}","u")),$u=ul(/\s/);function ul(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Uf(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let a="";if(s===37&&kr(e.charCodeAt(n+1))&&kr(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const c=e.charCodeAt(n+1);s<56320&&c>56319&&c<57344?(a=String.fromCharCode(s,c),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ct(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(d){return vt(d)?(e.enter(n),c(d)):t(d)}function c(d){return vt(d)&&s++<i?(e.consume(d),c):(e.exit(n),t(d))}}const y9={tokenize:b9};function b9(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ct(e,t,"linePrefix")}function i(c){return e.enter("paragraph"),s(c)}function s(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,a(c)}function a(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ye(c)?(e.consume(c),e.exit("chunkText"),s):(e.consume(c),a)}}const x9={tokenize:w9},MC={tokenize:S9};function w9(e){const t=this,n=[];let r=0,i,s,a;return c;function c(M){if(r<n.length){const F=n[r];return t.containerState=F[1],e.attempt(F[0].continuation,d,h)(M)}return h(M)}function d(M){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const F=t.events.length;let j=F,$;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){$=t.events[j][1].end;break}_(r);let Y=F;for(;Y<t.events.length;)t.events[Y][1].end={...$},Y++;return Ai(t.events,j+1,0,t.events.slice(F)),t.events.length=Y,h(M)}return c(M)}function h(M){if(r===n.length){if(!i)return b(M);if(i.currentConstruct&&i.currentConstruct.concrete)return k(M);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(MC,m,g)(M)}function m(M){return i&&A(),_(r),b(M)}function g(M){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,k(M)}function b(M){return t.containerState={},e.attempt(MC,x,k)(M)}function x(M){return r++,n.push([t.currentConstruct,t.containerState]),b(M)}function k(M){if(M===null){i&&A(),_(0),e.consume(M);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),P(M)}function P(M){if(M===null){T(e.exit("chunkFlow"),!0),_(0),e.consume(M);return}return Ye(M)?(e.consume(M),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(M),P)}function T(M,F){const j=t.sliceStream(M);if(F&&j.push(null),M.previous=s,s&&(s.next=M),s=M,i.defineSkip(M.start),i.write(j),t.parser.lazy[M.start.line]){let $=i.events.length;for(;$--;)if(i.events[$][1].start.offset<a&&(!i.events[$][1].end||i.events[$][1].end.offset>a))return;const Y=t.events.length;let te=Y,ie,B;for(;te--;)if(t.events[te][0]==="exit"&&t.events[te][1].type==="chunkFlow"){if(ie){B=t.events[te][1].end;break}ie=!0}for(_(r),$=Y;$<t.events.length;)t.events[$][1].end={...B},$++;Ai(t.events,te+1,0,t.events.slice(Y)),t.events.length=$}}function _(M){let F=n.length;for(;F-- >M;){const j=n[F];t.containerState=j[1],j[0].exit.call(t,e)}n.length=M}function A(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function S9(e,t,n){return Ct(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Df(e){if(e===null||Vt(e)||$u(e))return 1;if(Lv(e))return 2}function Mv(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Qb={name:"attention",resolveAll:k9,tokenize:C9};function k9(e,t){let n=-1,r,i,s,a,c,d,h,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[r][1].end},b={...e[n][1].start};DC(g,-d),DC(b,d),a={type:d>1?"strongSequence":"emphasisSequence",start:g,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},s={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:d>1?"strong":"emphasis",start:{...a.start},end:{...c.end}},e[r][1].end={...a.start},e[n][1].start={...c.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=to(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=to(h,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",s,t]]),h=to(h,Mv(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=to(h,[["exit",s,t],["enter",c,t],["exit",c,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,h=to(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Ai(e,r-1,n-r+3,h),n=r+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function C9(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Df(r);let s;return a;function a(d){return s=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===s)return e.consume(d),c;const h=e.exit("attentionSequence"),m=Df(d),g=!m||m===2&&i||n.includes(d),b=!i||i===2&&m||n.includes(r);return h._open=!!(s===42?g:g&&(i||!b)),h._close=!!(s===42?b:b&&(m||!g)),t(d)}}function DC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const E9={name:"autolink",tokenize:P9};function P9(e,t,n){let r=0;return i;function i(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(x){return Or(x)?(e.consume(x),a):x===64?n(x):h(x)}function a(x){return x===43||x===45||x===46||kr(x)?(r=1,c(x)):h(x)}function c(x){return x===58?(e.consume(x),r=0,d):(x===43||x===45||x===46||kr(x))&&r++<32?(e.consume(x),c):(r=0,h(x))}function d(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||av(x)?n(x):(e.consume(x),d)}function h(x){return x===64?(e.consume(x),m):m9(x)?(e.consume(x),h):n(x)}function m(x){return kr(x)?g(x):n(x)}function g(x){return x===46?(e.consume(x),r=0,m):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):b(x)}function b(x){if((x===45||kr(x))&&r++<63){const k=x===45?b:g;return e.consume(x),k}return n(x)}}const Th={partial:!0,tokenize:T9};function T9(e,t,n){return r;function r(s){return vt(s)?Ct(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||Ye(s)?t(s):n(s)}}const MI={continuation:{tokenize:I9},exit:$9,name:"blockQuote",tokenize:_9};function _9(e,t,n){const r=this;return i;function i(a){if(a===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return n(a)}function s(a){return vt(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function I9(e,t,n){const r=this;return i;function i(a){return vt(a)?Ct(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(MI,t,n)(a)}}function $9(e){e.exit("blockQuote")}const DI={name:"characterEscape",tokenize:A9};function A9(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return v9(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const NI={name:"characterReference",tokenize:R9};function R9(e,t,n){const r=this;let i=0,s,a;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,a=kr,m(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=g9,m):(e.enter("characterReferenceValue"),s=7,a=Xb,m(g))}function m(g){if(g===59&&i){const b=e.exit("characterReferenceValue");return a===kr&&!Pw(r.sliceSerialize(b))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(g)&&i++<s?(e.consume(g),m):n(g)}}const NC={partial:!0,tokenize:M9},OC={concrete:!0,name:"codeFenced",tokenize:L9};function L9(e,t,n){const r=this,i={partial:!0,tokenize:j};let s=0,a=0,c;return d;function d($){return h($)}function h($){const Y=r.events[r.events.length-1];return s=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,c=$,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m($)}function m($){return $===c?(a++,e.consume($),m):a<3?n($):(e.exit("codeFencedFenceSequence"),vt($)?Ct(e,g,"whitespace")($):g($))}function g($){return $===null||Ye($)?(e.exit("codeFencedFence"),r.interrupt?t($):e.check(NC,P,F)($)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b($))}function b($){return $===null||Ye($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g($)):vt($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ct(e,x,"whitespace")($)):$===96&&$===c?n($):(e.consume($),b)}function x($){return $===null||Ye($)?g($):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k($))}function k($){return $===null||Ye($)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g($)):$===96&&$===c?n($):(e.consume($),k)}function P($){return e.attempt(i,F,T)($)}function T($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),_}function _($){return s>0&&vt($)?Ct(e,A,"linePrefix",s+1)($):A($)}function A($){return $===null||Ye($)?e.check(NC,P,F)($):(e.enter("codeFlowValue"),M($))}function M($){return $===null||Ye($)?(e.exit("codeFlowValue"),A($)):(e.consume($),M)}function F($){return e.exit("codeFenced"),t($)}function j($,Y,te){let ie=0;return B;function B(le){return $.enter("lineEnding"),$.consume(le),$.exit("lineEnding"),W}function W(le){return $.enter("codeFencedFence"),vt(le)?Ct($,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(le):G(le)}function G(le){return le===c?($.enter("codeFencedFenceSequence"),ee(le)):te(le)}function ee(le){return le===c?(ie++,$.consume(le),ee):ie>=a?($.exit("codeFencedFenceSequence"),vt(le)?Ct($,H,"whitespace")(le):H(le)):te(le)}function H(le){return le===null||Ye(le)?($.exit("codeFencedFence"),Y(le)):te(le)}}}function M9(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const $0={name:"codeIndented",tokenize:N9},D9={partial:!0,tokenize:O9};function N9(e,t,n){const r=this;return i;function i(h){return e.enter("codeIndented"),Ct(e,s,"linePrefix",5)(h)}function s(h){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(h):n(h)}function a(h){return h===null?d(h):Ye(h)?e.attempt(D9,a,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ye(h)?(e.exit("codeFlowValue"),a(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function O9(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):Ye(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Ct(e,s,"linePrefix",5)(a)}function s(a){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):Ye(a)?i(a):n(a)}}const F9={name:"codeText",previous:j9,resolve:z9,tokenize:B9};function z9(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function j9(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function B9(e,t,n){let r=0,i,s;return a;function a(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),r++,c):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(s=e.enter("codeTextSequence"),i=0,m(g)):Ye(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Ye(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),h)}function m(g){return g===96?(e.consume(g),i++,m):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(s.type="codeTextData",h(g))}}class V9{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Pp(this.left,r),s.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),Pp(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Pp(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Pp(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Pp(this.left,n.reverse())}}}function Pp(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function OI(e){const t={};let n=-1,r,i,s,a,c,d,h;const m=new V9(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,U9(m,n)),n=t[n],h=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=m.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...m.get(i)[1].start},c=m.slice(i,n),c.unshift(r),m.splice(i,n-i+1,c))}}return Ai(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function U9(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const c=a.events,d=[],h={};let m,g,b=-1,x=n,k=0,P=0;const T=[P];for(;x;){for(;e.get(++i)[1]!==x;);s.push(i),x._tokenizer||(m=r.sliceStream(x),x.next||m.push(null),g&&a.defineSkip(x.start),x._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(m),x._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=n;++b<c.length;)c[b][0]==="exit"&&c[b-1][0]==="enter"&&c[b][1].type===c[b-1][1].type&&c[b][1].start.line!==c[b][1].end.line&&(P=b+1,T.push(P),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(a.events=[],x?(x._tokenizer=void 0,x.previous=void 0):T.pop(),b=T.length;b--;){const _=c.slice(T[b],T[b+1]),A=s.pop();d.push([A,A+_.length-1]),e.splice(A,2,_)}for(d.reverse(),b=-1;++b<d.length;)h[k+d[b][0]]=k+d[b][1],k+=d[b][1]-d[b][0]-1;return h}const K9={resolve:H9,tokenize:G9},W9={partial:!0,tokenize:q9};function H9(e){return OI(e),e}function G9(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(c)}function i(c){return c===null?s(c):Ye(c)?e.check(W9,a,s)(c):(e.consume(c),i)}function s(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function a(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function q9(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ct(e,s,"linePrefix")}function s(a){if(a===null||Ye(a))return n(a);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function FI(e,t,n,r,i,s,a,c,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return g;function g(_){return _===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(_),e.exit(s),b):_===null||_===32||_===41||av(_)?n(_):(e.enter(r),e.enter(a),e.enter(c),e.enter("chunkString",{contentType:"string"}),P(_))}function b(_){return _===62?(e.enter(s),e.consume(_),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),x(_))}function x(_){return _===62?(e.exit("chunkString"),e.exit(c),b(_)):_===null||_===60||Ye(_)?n(_):(e.consume(_),_===92?k:x)}function k(_){return _===60||_===62||_===92?(e.consume(_),x):x(_)}function P(_){return!m&&(_===null||_===41||Vt(_))?(e.exit("chunkString"),e.exit(c),e.exit(a),e.exit(r),t(_)):m<h&&_===40?(e.consume(_),m++,P):_===41?(e.consume(_),m--,P):_===null||_===32||_===40||av(_)?n(_):(e.consume(_),_===92?T:P)}function T(_){return _===40||_===41||_===92?(e.consume(_),P):P(_)}}function zI(e,t,n,r,i,s){const a=this;let c=0,d;return h;function h(x){return e.enter(r),e.enter(i),e.consume(x),e.exit(i),e.enter(s),m}function m(x){return c>999||x===null||x===91||x===93&&!d||x===94&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?n(x):x===93?(e.exit(s),e.enter(i),e.consume(x),e.exit(i),e.exit(r),t):Ye(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||Ye(x)||c++>999?(e.exit("chunkString"),m(x)):(e.consume(x),d||(d=!vt(x)),x===92?b:g)}function b(x){return x===91||x===92||x===93?(e.consume(x),c++,g):g(x)}}function jI(e,t,n,r,i,s){let a;return c;function c(b){return b===34||b===39||b===40?(e.enter(r),e.enter(i),e.consume(b),e.exit(i),a=b===40?41:b,d):n(b)}function d(b){return b===a?(e.enter(i),e.consume(b),e.exit(i),e.exit(r),t):(e.enter(s),h(b))}function h(b){return b===a?(e.exit(s),d(a)):b===null?n(b):Ye(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Ct(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===a||b===null||Ye(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?g:m)}function g(b){return b===a||b===92?(e.consume(b),m):m(b)}}function Kp(e,t){let n;return r;function r(i){return Ye(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):vt(i)?Ct(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Y9={name:"definition",tokenize:Q9},X9={partial:!0,tokenize:J9};function Q9(e,t,n){const r=this;let i;return s;function s(x){return e.enter("definition"),a(x)}function a(x){return zI.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function c(x){return i=Io(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),d):n(x)}function d(x){return Vt(x)?Kp(e,h)(x):h(x)}function h(x){return FI(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(X9,g,g)(x)}function g(x){return vt(x)?Ct(e,b,"whitespace")(x):b(x)}function b(x){return x===null||Ye(x)?(e.exit("definition"),r.parser.defined.push(i),t(x)):n(x)}}function J9(e,t,n){return r;function r(c){return Vt(c)?Kp(e,i)(c):n(c)}function i(c){return jI(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return vt(c)?Ct(e,a,"whitespace")(c):a(c)}function a(c){return c===null||Ye(c)?t(c):n(c)}}const Z9={name:"hardBreakEscape",tokenize:eV};function eV(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return Ye(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const tV={name:"headingAtx",resolve:nV,tokenize:rV};function nV(e,t){let n=e.length-2,r=3,i,s;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},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ai(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function rV(e,t,n){let r=0;return i;function i(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),a(m)}function a(m){return m===35&&r++<6?(e.consume(m),a):m===null||Vt(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Ye(m)?(e.exit("atxHeading"),t(m)):vt(m)?Ct(e,c,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function h(m){return m===null||m===35||Vt(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const iV=["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"],FC=["pre","script","style","textarea"],oV={concrete:!0,name:"htmlFlow",resolveTo:lV,tokenize:uV},sV={partial:!0,tokenize:fV},aV={partial:!0,tokenize:cV};function lV(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 uV(e,t,n){const r=this;let i,s,a,c,d;return h;function h(z){return m(z)}function m(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),g}function g(z){return z===33?(e.consume(z),b):z===47?(e.consume(z),s=!0,P):z===63?(e.consume(z),i=3,r.interrupt?t:D):Or(z)?(e.consume(z),a=String.fromCharCode(z),T):n(z)}function b(z){return z===45?(e.consume(z),i=2,x):z===91?(e.consume(z),i=5,c=0,k):Or(z)?(e.consume(z),i=4,r.interrupt?t:D):n(z)}function x(z){return z===45?(e.consume(z),r.interrupt?t:D):n(z)}function k(z){const me="CDATA[";return z===me.charCodeAt(c++)?(e.consume(z),c===me.length?r.interrupt?t:G:k):n(z)}function P(z){return Or(z)?(e.consume(z),a=String.fromCharCode(z),T):n(z)}function T(z){if(z===null||z===47||z===62||Vt(z)){const me=z===47,Ce=a.toLowerCase();return!me&&!s&&FC.includes(Ce)?(i=1,r.interrupt?t(z):G(z)):iV.includes(a.toLowerCase())?(i=6,me?(e.consume(z),_):r.interrupt?t(z):G(z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):s?A(z):M(z))}return z===45||kr(z)?(e.consume(z),a+=String.fromCharCode(z),T):n(z)}function _(z){return z===62?(e.consume(z),r.interrupt?t:G):n(z)}function A(z){return vt(z)?(e.consume(z),A):B(z)}function M(z){return z===47?(e.consume(z),B):z===58||z===95||Or(z)?(e.consume(z),F):vt(z)?(e.consume(z),M):B(z)}function F(z){return z===45||z===46||z===58||z===95||kr(z)?(e.consume(z),F):j(z)}function j(z){return z===61?(e.consume(z),$):vt(z)?(e.consume(z),j):M(z)}function $(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),d=z,Y):vt(z)?(e.consume(z),$):te(z)}function Y(z){return z===d?(e.consume(z),d=null,ie):z===null||Ye(z)?n(z):(e.consume(z),Y)}function te(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Vt(z)?j(z):(e.consume(z),te)}function ie(z){return z===47||z===62||vt(z)?M(z):n(z)}function B(z){return z===62?(e.consume(z),W):n(z)}function W(z){return z===null||Ye(z)?G(z):vt(z)?(e.consume(z),W):n(z)}function G(z){return z===45&&i===2?(e.consume(z),J):z===60&&i===1?(e.consume(z),X):z===62&&i===4?(e.consume(z),U):z===63&&i===3?(e.consume(z),D):z===93&&i===5?(e.consume(z),ae):Ye(z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(sV,oe,ee)(z)):z===null||Ye(z)?(e.exit("htmlFlowData"),ee(z)):(e.consume(z),G)}function ee(z){return e.check(aV,H,oe)(z)}function H(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),le}function le(z){return z===null||Ye(z)?ee(z):(e.enter("htmlFlowData"),G(z))}function J(z){return z===45?(e.consume(z),D):G(z)}function X(z){return z===47?(e.consume(z),a="",V):G(z)}function V(z){if(z===62){const me=a.toLowerCase();return FC.includes(me)?(e.consume(z),U):G(z)}return Or(z)&&a.length<8?(e.consume(z),a+=String.fromCharCode(z),V):G(z)}function ae(z){return z===93?(e.consume(z),D):G(z)}function D(z){return z===62?(e.consume(z),U):z===45&&i===2?(e.consume(z),D):G(z)}function U(z){return z===null||Ye(z)?(e.exit("htmlFlowData"),oe(z)):(e.consume(z),U)}function oe(z){return e.exit("htmlFlow"),t(z)}}function cV(e,t,n){const r=this;return i;function i(a){return Ye(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function fV(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Th,t,n)}}const dV={name:"htmlText",tokenize:pV};function pV(e,t,n){const r=this;let i,s,a;return c;function c(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),h):D===47?(e.consume(D),j):D===63?(e.consume(D),M):Or(D)?(e.consume(D),te):n(D)}function h(D){return D===45?(e.consume(D),m):D===91?(e.consume(D),s=0,k):Or(D)?(e.consume(D),A):n(D)}function m(D){return D===45?(e.consume(D),x):n(D)}function g(D){return D===null?n(D):D===45?(e.consume(D),b):Ye(D)?(a=g,X(D)):(e.consume(D),g)}function b(D){return D===45?(e.consume(D),x):g(D)}function x(D){return D===62?J(D):D===45?b(D):g(D)}function k(D){const U="CDATA[";return D===U.charCodeAt(s++)?(e.consume(D),s===U.length?P:k):n(D)}function P(D){return D===null?n(D):D===93?(e.consume(D),T):Ye(D)?(a=P,X(D)):(e.consume(D),P)}function T(D){return D===93?(e.consume(D),_):P(D)}function _(D){return D===62?J(D):D===93?(e.consume(D),_):P(D)}function A(D){return D===null||D===62?J(D):Ye(D)?(a=A,X(D)):(e.consume(D),A)}function M(D){return D===null?n(D):D===63?(e.consume(D),F):Ye(D)?(a=M,X(D)):(e.consume(D),M)}function F(D){return D===62?J(D):M(D)}function j(D){return Or(D)?(e.consume(D),$):n(D)}function $(D){return D===45||kr(D)?(e.consume(D),$):Y(D)}function Y(D){return Ye(D)?(a=Y,X(D)):vt(D)?(e.consume(D),Y):J(D)}function te(D){return D===45||kr(D)?(e.consume(D),te):D===47||D===62||Vt(D)?ie(D):n(D)}function ie(D){return D===47?(e.consume(D),J):D===58||D===95||Or(D)?(e.consume(D),B):Ye(D)?(a=ie,X(D)):vt(D)?(e.consume(D),ie):J(D)}function B(D){return D===45||D===46||D===58||D===95||kr(D)?(e.consume(D),B):W(D)}function W(D){return D===61?(e.consume(D),G):Ye(D)?(a=W,X(D)):vt(D)?(e.consume(D),W):ie(D)}function G(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),i=D,ee):Ye(D)?(a=G,X(D)):vt(D)?(e.consume(D),G):(e.consume(D),H)}function ee(D){return D===i?(e.consume(D),i=void 0,le):D===null?n(D):Ye(D)?(a=ee,X(D)):(e.consume(D),ee)}function H(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||Vt(D)?ie(D):(e.consume(D),H)}function le(D){return D===47||D===62||Vt(D)?ie(D):n(D)}function J(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function X(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),V}function V(D){return vt(D)?Ct(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):ae(D)}function ae(D){return e.enter("htmlTextData"),a(D)}}const Tw={name:"labelEnd",resolveAll:vV,resolveTo:yV,tokenize:bV},hV={tokenize:xV},mV={tokenize:wV},gV={tokenize:SV};function vV(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ai(e,0,e.length,n),e}function yV(e,t){let n=e.length,r=0,i,s,a,c;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},m={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[a-2][1].start}};return c=[["enter",d,t],["enter",h,t]],c=to(c,e.slice(s+1,s+r+3)),c=to(c,[["enter",m,t]]),c=to(c,Mv(t.parser.constructs.insideSpan.null,e.slice(s+r+4,a-3),t)),c=to(c,[["exit",m,t],e[a-2],e[a-1],["exit",h,t]]),c=to(c,e.slice(a+1)),c=to(c,[["exit",d,t]]),Ai(e,s,e.length,c),e}function bV(e,t,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return c;function c(b){return s?s._inactive?g(b):(a=r.parser.defined.includes(Io(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(hV,m,a?m:g)(b):b===91?e.attempt(mV,m,a?h:g)(b):a?m(b):g(b)}function h(b){return e.attempt(gV,m,g)(b)}function m(b){return t(b)}function g(b){return s._balanced=!0,n(b)}}function xV(e,t,n){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),i}function i(g){return Vt(g)?Kp(e,s)(g):s(g)}function s(g){return g===41?m(g):FI(e,a,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function a(g){return Vt(g)?Kp(e,d)(g):m(g)}function c(g){return n(g)}function d(g){return g===34||g===39||g===40?jI(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function h(g){return Vt(g)?Kp(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function wV(e,t,n){const r=this;return i;function i(c){return zI.call(r,e,s,a,"reference","referenceMarker","referenceString")(c)}function s(c){return r.parser.defined.includes(Io(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function a(c){return n(c)}}function SV(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const kV={name:"labelStartImage",resolveAll:Tw.resolveAll,tokenize:CV};function CV(e,t,n){const r=this;return i;function i(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),s}function s(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),a):n(c)}function a(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const EV={name:"labelStartLink",resolveAll:Tw.resolveAll,tokenize:PV};function PV(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const A0={name:"lineEnding",tokenize:TV};function TV(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ct(e,t,"linePrefix")}}const zg={name:"thematicBreak",tokenize:_V};function _V(e,t,n){let r=0,i;return s;function s(h){return e.enter("thematicBreak"),a(h)}function a(h){return i=h,c(h)}function c(h){return h===i?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||Ye(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===i?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),vt(h)?Ct(e,c,"whitespace")(h):c(h))}}const si={continuation:{tokenize:RV},exit:MV,name:"list",tokenize:AV},IV={partial:!0,tokenize:DV},$V={partial:!0,tokenize:LV};function AV(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return c;function c(x){const k=r.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!r.containerState.marker||x===r.containerState.marker:Xb(x)){if(r.containerState.type||(r.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(zg,n,h)(x):h(x);if(!r.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(x)}return n(x)}function d(x){return Xb(x)&&++a<10?(e.consume(x),d):(!r.interrupt||a<2)&&(r.containerState.marker?x===r.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):n(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||x,e.check(Th,r.interrupt?n:m,e.attempt(IV,b,g))}function m(x){return r.containerState.initialBlankLine=!0,s++,b(x)}function g(x){return vt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),b):n(x)}function b(x){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function RV(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Th,i,s);function i(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ct(e,t,"listItemIndent",r.containerState.size+1)(c)}function s(c){return r.containerState.furtherBlankLines||!vt(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($V,t,a)(c))}function a(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ct(e,e.attempt(si,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function LV(e,t,n){const r=this;return Ct(e,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(s):n(s)}}function MV(e){e.exit(this.containerState.type)}function DV(e,t,n){const r=this;return Ct(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!vt(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const zC={name:"setextUnderline",resolveTo:NV,tokenize:OV};function NV(e,t){let n=e.length,r,i,s;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),!s&&e[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",a,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function OV(e,t,n){const r=this;let i;return s;function s(h){let m=r.events.length,g;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){g=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),i=h,a(h)):n(h)}function a(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===i?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),vt(h)?Ct(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ye(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const FV={tokenize:zV};function zV(e){const t=this,n=e.attempt(Th,r,e.attempt(this.parser.constructs.flowInitial,i,Ct(e,e.attempt(this.parser.constructs.flow,i,e.attempt(K9,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jV={resolveAll:VI()},BV=BI("string"),VV=BI("text");function BI(e){return{resolveAll:VI(e==="text"?UV:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,a,c);return a;function a(m){return h(m)?s(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),s(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const g=i[m];let b=-1;if(g)for(;++b<g.length;){const x=g[b];if(!x.previous||x.previous.call(r,r.previous))return!0}return!1}}}function VI(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function UV(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,a=-1,c=0,d;for(;s--;){const h=i[s];if(typeof h=="string"){for(a=h.length;h.charCodeAt(a-1)===32;)c++,a--;if(a)break;a=-1}else if(h===-2)d=!0,c++;else if(h!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const KV={42:si,43:si,45:si,48:si,49:si,50:si,51:si,52:si,53:si,54:si,55:si,56:si,57:si,62:MI},WV={91:Y9},HV={[-2]:$0,[-1]:$0,32:$0},GV={35:tV,42:zg,45:[zC,zg],60:oV,61:zC,95:zg,96:OC,126:OC},qV={38:NI,92:DI},YV={[-5]:A0,[-4]:A0,[-3]:A0,33:kV,38:NI,42:Qb,60:[E9,dV],91:EV,92:[Z9,DI],93:Tw,95:Qb,96:F9},XV={null:[Qb,jV]},QV={null:[42,95]},JV={null:[]},ZV=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:QV,contentInitial:WV,disable:JV,document:KV,flow:GV,flowInitial:HV,insideSpan:XV,string:qV,text:YV},Symbol.toStringTag,{value:"Module"}));function eU(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let a=[],c=[];const d={attempt:Y(j),check:Y($),consume:A,enter:M,exit:F,interrupt:Y($,{interrupt:!0})},h={code:null,containerState:{},defineSkip:P,events:[],now:k,parser:e,previous:null,sliceSerialize:b,sliceStream:x,write:g};let m=t.tokenize.call(h,d);return t.resolveAll&&s.push(t),h;function g(W){return a=to(a,W),T(),a[a.length-1]!==null?[]:(te(t,0),h.events=Mv(s,h.events,h),h.events)}function b(W,G){return nU(x(W),G)}function x(W){return tU(a,W)}function k(){const{_bufferIndex:W,_index:G,line:ee,column:H,offset:le}=r;return{_bufferIndex:W,_index:G,line:ee,column:H,offset:le}}function P(W){i[W.line]=W.column,B()}function T(){let W;for(;r._index<a.length;){const G=a[r._index];if(typeof G=="string")for(W=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===W&&r._bufferIndex<G.length;)_(G.charCodeAt(r._bufferIndex));else _(G)}}function _(W){m=m(W)}function A(W){Ye(W)?(r.line++,r.column=1,r.offset+=W===-3?2:1,B()):W!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=W}function M(W,G){const ee=G||{};return ee.type=W,ee.start=k(),h.events.push(["enter",ee,h]),c.push(ee),ee}function F(W){const G=c.pop();return G.end=k(),h.events.push(["exit",G,h]),G}function j(W,G){te(W,G.from)}function $(W,G){G.restore()}function Y(W,G){return ee;function ee(H,le,J){let X,V,ae,D;return Array.isArray(H)?oe(H):"tokenize"in H?oe([H]):U(H);function U(ye){return Fe;function Fe(Ne){const _e=Ne!==null&&ye[Ne],Qe=Ne!==null&&ye.null,at=[...Array.isArray(_e)?_e:_e?[_e]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return oe(at)(Ne)}}function oe(ye){return X=ye,V=0,ye.length===0?J:z(ye[V])}function z(ye){return Fe;function Fe(Ne){return D=ie(),ae=ye,ye.partial||(h.currentConstruct=ye),ye.name&&h.parser.constructs.disable.null.includes(ye.name)?Ce():ye.tokenize.call(G?Object.assign(Object.create(h),G):h,d,me,Ce)(Ne)}}function me(ye){return W(ae,D),le}function Ce(ye){return D.restore(),++V<X.length?z(X[V]):J}}}function te(W,G){W.resolveAll&&!s.includes(W)&&s.push(W),W.resolve&&Ai(h.events,G,h.events.length-G,W.resolve(h.events.slice(G),h)),W.resolveTo&&(h.events=W.resolveTo(h.events,h))}function ie(){const W=k(),G=h.previous,ee=h.currentConstruct,H=h.events.length,le=Array.from(c);return{from:H,restore:J};function J(){r=W,h.previous=G,h.currentConstruct=ee,h.events.length=H,c=le,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function tU(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,s)];else{if(a=e.slice(n,i),r>-1){const c=a[0];typeof c=="string"?a[0]=c.slice(r):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}function nU(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
51
+ `;break}case-3:{a=`\r
52
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function rU(e){const r={constructs:RI([ZV,...(e||{}).extensions||[]]),content:i(y9),defined:[],document:i(x9),flow:i(FV),lazy:{},string:i(BV),text:i(VV)};return r;function i(s){return a;function a(c){return eU(r,s,c)}}}function iU(e){for(;!OI(e););return e}const jC=/[\0\t\n\r]/g;function oU(){let e=1,t="",n=!0,r;return i;function i(s,a,c){const d=[];let h,m,g,b,x;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),g=0,t="",n&&(s.charCodeAt(0)===65279&&g++,n=void 0);g<s.length;){if(jC.lastIndex=g,h=jC.exec(s),b=h&&h.index!==void 0?h.index:s.length,x=s.charCodeAt(b),!h){t=s.slice(g);break}if(x===10&&g===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),g<b&&(d.push(s.slice(g,b)),e+=b-g),x){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}g=b+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const sU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aU(e){return e.replace(sU,lU)}function lU(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return LI(n.slice(s?2:1),s?16:10)}return Pw(n)||e}const UI={}.hasOwnProperty;function uU(e,t,n){return typeof t!="string"&&(n=t,t=void 0),cU(n)(iU(rU(n).document().write(oU()(e,t,!0))))}function cU(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(tr),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:s(Ut),blockQuote:s(Qe),characterEscape:ie,characterReference:ie,codeFenced:s(at),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(at,a),codeText:s(Ie,a),codeTextData:ie,data:ie,codeFlowValue:ie,definition:s(mt),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(pt),hardBreakEscape:s(Ue),hardBreakTrailing:s(Ue),htmlFlow:s(it,a),htmlFlowData:ie,htmlText:s(it,a),htmlTextData:ie,image:s(Kt),label:a,link:s(tr),listItem:s(_t),listItemValue:b,listOrdered:s(an,g),listUnordered:s(an),paragraph:s(Rt),reference:z,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(Ut),strong:s(_n),thematicBreak:s(Nt)},exit:{atxHeading:d(),atxHeadingSequence:j,autolink:d(),autolinkEmail:_e,autolinkProtocol:Ne,blockQuote:d(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:ye,characterReference:Fe,codeFenced:d(T),codeFencedFence:P,codeFencedFenceInfo:x,codeFencedFenceMeta:k,codeFlowValue:B,codeIndented:d(_),codeText:d(le),codeTextData:B,data:B,definition:d(),definitionDestinationString:F,definitionLabelString:A,definitionTitleString:M,emphasis:d(),hardBreakEscape:d(G),hardBreakTrailing:d(G),htmlFlow:d(ee),htmlFlowData:B,htmlText:d(H),htmlTextData:B,image:d(X),label:ae,labelText:V,lineEnding:W,link:d(J),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:me,resourceDestinationString:D,resourceTitleString:U,resource:oe,setextHeading:d(te),setextHeadingLineSequence:Y,setextHeadingText:$,strong:d(),thematicBreak:d()}};KI(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(pe){let Se={type:"root",children:[]};const ze={stack:[Se],tokenStack:[],config:t,enter:c,exit:h,buffer:a,resume:m,data:n},nt=[];let lt=-1;for(;++lt<pe.length;)if(pe[lt][1].type==="listOrdered"||pe[lt][1].type==="listUnordered")if(pe[lt][0]==="enter")nt.push(lt);else{const Wt=nt.pop();lt=i(pe,Wt,lt)}for(lt=-1;++lt<pe.length;){const Wt=t[pe[lt][0]];UI.call(Wt,pe[lt][1].type)&&Wt[pe[lt][1].type].call(Object.assign({sliceSerialize:pe[lt][2].sliceSerialize},ze),pe[lt][1])}if(ze.tokenStack.length>0){const Wt=ze.tokenStack[ze.tokenStack.length-1];(Wt[1]||BC).call(ze,void 0,Wt[0])}for(Se.position={start:qa(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:qa(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},lt=-1;++lt<t.transforms.length;)Se=t.transforms[lt](Se)||Se;return Se}function i(pe,Se,ze){let nt=Se-1,lt=-1,Wt=!1,Vn,Jt,Pt,Pr;for(;++nt<=ze;){const Ot=pe[nt];switch(Ot[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ot[0]==="enter"?lt++:lt--,Pr=void 0;break}case"lineEndingBlank":{Ot[0]==="enter"&&(Vn&&!Pr&&!lt&&!Pt&&(Pt=nt),Pr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pr=void 0}if(!lt&&Ot[0]==="enter"&&Ot[1].type==="listItemPrefix"||lt===-1&&Ot[0]==="exit"&&(Ot[1].type==="listUnordered"||Ot[1].type==="listOrdered")){if(Vn){let nr=nt;for(Jt=void 0;nr--;){const ln=pe[nr];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;Jt&&(pe[Jt][1].type="lineEndingBlank",Wt=!0),ln[1].type="lineEnding",Jt=nr}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}Pt&&(!Jt||Pt<Jt)&&(Vn._spread=!0),Vn.end=Object.assign({},Jt?pe[Jt][1].start:Ot[1].end),pe.splice(Jt||nt,0,["exit",Vn,Ot[2]]),nt++,ze++}if(Ot[1].type==="listItemPrefix"){const nr={type:"listItem",_spread:!1,start:Object.assign({},Ot[1].start),end:void 0};Vn=nr,pe.splice(nt,0,["enter",nr,Ot[2]]),nt++,ze++,Pt=void 0,Pr=!0}}}return pe[Se][1]._spread=Wt,ze}function s(pe,Se){return ze;function ze(nt){c.call(this,pe(nt),nt),Se&&Se.call(this,nt)}}function a(){this.stack.push({type:"fragment",children:[]})}function c(pe,Se,ze){this.stack[this.stack.length-1].children.push(pe),this.stack.push(pe),this.tokenStack.push([Se,ze||void 0]),pe.position={start:qa(Se.start),end:void 0}}function d(pe){return Se;function Se(ze){pe&&pe.call(this,ze),h.call(this,ze)}}function h(pe,Se){const ze=this.stack.pop(),nt=this.tokenStack.pop();if(nt)nt[0].type!==pe.type&&(Se?Se.call(this,pe,nt[0]):(nt[1]||BC).call(this,pe,nt[0]));else throw new Error("Cannot close `"+pe.type+"` ("+Up({start:pe.start,end:pe.end})+"): it’s not open");ze.position.end=qa(pe.end)}function m(){return Ew(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(pe){if(this.data.expectingFirstListItemValue){const Se=this.stack[this.stack.length-2];Se.start=Number.parseInt(this.sliceSerialize(pe),10),this.data.expectingFirstListItemValue=void 0}}function x(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.lang=pe}function k(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.meta=pe}function P(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=pe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=pe.replace(/(\r?\n|\r)$/g,"")}function A(pe){const Se=this.resume(),ze=this.stack[this.stack.length-1];ze.label=Se,ze.identifier=Io(this.sliceSerialize(pe)).toLowerCase()}function M(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.title=pe}function F(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.url=pe}function j(pe){const Se=this.stack[this.stack.length-1];if(!Se.depth){const ze=this.sliceSerialize(pe).length;Se.depth=ze}}function $(){this.data.setextHeadingSlurpLineEnding=!0}function Y(pe){const Se=this.stack[this.stack.length-1];Se.depth=this.sliceSerialize(pe).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(pe){const ze=this.stack[this.stack.length-1].children;let nt=ze[ze.length-1];(!nt||nt.type!=="text")&&(nt=Er(),nt.position={start:qa(pe.start),end:void 0},ze.push(nt)),this.stack.push(nt)}function B(pe){const Se=this.stack.pop();Se.value+=this.sliceSerialize(pe),Se.position.end=qa(pe.end)}function W(pe){const Se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ze=Se.children[Se.children.length-1];ze.position.end=qa(pe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Se.type)&&(ie.call(this,pe),B.call(this,pe))}function G(){this.data.atHardBreak=!0}function ee(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=pe}function H(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=pe}function le(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.value=pe}function J(){const pe=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";pe.type+="Reference",pe.referenceType=Se,delete pe.url,delete pe.title}else delete pe.identifier,delete pe.label;this.data.referenceType=void 0}function X(){const pe=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";pe.type+="Reference",pe.referenceType=Se,delete pe.url,delete pe.title}else delete pe.identifier,delete pe.label;this.data.referenceType=void 0}function V(pe){const Se=this.sliceSerialize(pe),ze=this.stack[this.stack.length-2];ze.label=aU(Se),ze.identifier=Io(Se).toLowerCase()}function ae(){const pe=this.stack[this.stack.length-1],Se=this.resume(),ze=this.stack[this.stack.length-1];if(this.data.inReference=!0,ze.type==="link"){const nt=pe.children;ze.children=nt}else ze.alt=Se}function D(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.url=pe}function U(){const pe=this.resume(),Se=this.stack[this.stack.length-1];Se.title=pe}function oe(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function me(pe){const Se=this.resume(),ze=this.stack[this.stack.length-1];ze.label=Se,ze.identifier=Io(this.sliceSerialize(pe)).toLowerCase(),this.data.referenceType="full"}function Ce(pe){this.data.characterReferenceType=pe.type}function ye(pe){const Se=this.sliceSerialize(pe),ze=this.data.characterReferenceType;let nt;ze?(nt=LI(Se,ze==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):nt=Pw(Se);const lt=this.stack[this.stack.length-1];lt.value+=nt}function Fe(pe){const Se=this.stack.pop();Se.position.end=qa(pe.end)}function Ne(pe){B.call(this,pe);const Se=this.stack[this.stack.length-1];Se.url=this.sliceSerialize(pe)}function _e(pe){B.call(this,pe);const Se=this.stack[this.stack.length-1];Se.url="mailto:"+this.sliceSerialize(pe)}function Qe(){return{type:"blockquote",children:[]}}function at(){return{type:"code",lang:null,meta:null,value:""}}function Ie(){return{type:"inlineCode",value:""}}function mt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pt(){return{type:"emphasis",children:[]}}function Ut(){return{type:"heading",depth:0,children:[]}}function Ue(){return{type:"break"}}function it(){return{type:"html",value:""}}function Kt(){return{type:"image",title:null,url:"",alt:null}}function tr(){return{type:"link",title:null,url:"",children:[]}}function an(pe){return{type:"list",ordered:pe.type==="listOrdered",start:null,spread:pe._spread,children:[]}}function _t(pe){return{type:"listItem",spread:pe._spread,checked:null,children:[]}}function Rt(){return{type:"paragraph",children:[]}}function _n(){return{type:"strong",children:[]}}function Er(){return{type:"text",value:""}}function Nt(){return{type:"thematicBreak"}}}function qa(e){return{line:e.line,column:e.column,offset:e.offset}}function KI(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?KI(e,r):fU(e,r)}}function fU(e,t){let n;for(n in t)if(UI.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function BC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Up({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Up({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Up({start:t.start,end:t.end})+") is still open")}function dU(e){const t=this;t.parser=n;function n(r){return uU(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function pU(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function hU(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
53
+ `}]}function mU(e,t){const n=t.value?t.value+`
54
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function gU(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vU(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yU(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Uf(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let a,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=s+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function bU(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 xU(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function WI(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),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function wU(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WI(e,t);const i={src:Uf(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function SU(e,t){const n={src:Uf(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 kU(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 CU(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WI(e,t);const i={href:Uf(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function EU(e,t){const n={href:Uf(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 PU(e,t,n){const r=e.all(t),i=n?TU(n):HI(t),s={},a=[];if(typeof t.checked=="boolean"){const m=r[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const m=r[c];(i||c!==0||m.type!=="element"||m.tagName!=="p")&&a.push({type:"text",value:`
55
+ `}),m.type==="element"&&m.tagName==="p"&&!i?a.push(...m.children):a.push(m)}const d=r[r.length-1];d&&(i||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
56
+ `});const h={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,h),e.applyData(t,h)}function TU(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=HI(n[r])}return t}function HI(e){const t=e.spread;return t??e.children.length>1}function _U(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function IU(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $U(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function AU(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RU(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=ww(t.children[1]),d=EI(t.children[t.children.length-1]);c&&d&&(a.position={start:c,end:d}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function LU(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,c=a?a.length:t.children.length;let d=-1;const h=[];for(;++d<c;){const g=t.children[d],b={},x=a?a[d]:void 0;x&&(b.align=x);let k={type:"element",tagName:s,properties:b,children:[]};g&&(k.children=e.all(g),e.patch(g,k),k=e.applyData(g,k)),h.push(k)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function MU(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const VC=9,UC=32;function DU(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(KC(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(KC(t.slice(i),i>0,!1)),s.join("")}function KC(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===VC||s===UC;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===VC||s===UC;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function NU(e,t){const n={type:"text",value:DU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function OU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const FU={blockquote:pU,break:hU,code:mU,delete:gU,emphasis:vU,footnoteReference:yU,heading:bU,html:xU,imageReference:wU,image:SU,inlineCode:kU,linkReference:CU,link:EU,listItem:PU,list:_U,paragraph:IU,root:$U,strong:AU,table:RU,tableCell:MU,tableRow:LU,text:NU,thematicBreak:OU,toml:kg,yaml:kg,definition:kg,footnoteDefinition:kg};function kg(){}const GI=-1,Dv=0,Wp=1,lv=2,_w=3,Iw=4,$w=5,Aw=6,qI=7,YI=8,WC=typeof self=="object"?self:globalThis,zU=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,a]=t[i];switch(s){case Dv:case GI:return n(a,i);case Wp:{const c=n([],i);for(const d of a)c.push(r(d));return c}case lv:{const c=n({},i);for(const[d,h]of a)c[r(d)]=r(h);return c}case _w:return n(new Date(a),i);case Iw:{const{source:c,flags:d}=a;return n(new RegExp(c,d),i)}case $w:{const c=n(new Map,i);for(const[d,h]of a)c.set(r(d),r(h));return c}case Aw:{const c=n(new Set,i);for(const d of a)c.add(r(d));return c}case qI:{const{name:c,message:d}=a;return n(new WC[c](d),i)}case YI:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:c}=new Uint8Array(a);return n(new DataView(c),a)}}return n(new WC[s](a),i)};return r},HC=e=>zU(new Map,e)(0),ff="",{toString:jU}={},{keys:BU}=Object,Tp=e=>{const t=typeof e;if(t!=="object"||!e)return[Dv,t];const n=jU.call(e).slice(8,-1);switch(n){case"Array":return[Wp,ff];case"Object":return[lv,ff];case"Date":return[_w,ff];case"RegExp":return[Iw,ff];case"Map":return[$w,ff];case"Set":return[Aw,ff];case"DataView":return[Wp,n]}return n.includes("Array")?[Wp,n]:n.includes("Error")?[qI,n]:[lv,n]},Cg=([e,t])=>e===Dv&&(t==="function"||t==="symbol"),VU=(e,t,n,r)=>{const i=(a,c)=>{const d=r.push(a)-1;return n.set(c,d),d},s=a=>{if(n.has(a))return n.get(a);let[c,d]=Tp(a);switch(c){case Dv:{let m=a;switch(d){case"bigint":c=YI,m=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return i([GI],a)}return i([c,m],a)}case Wp:{if(d){let b=a;return d==="DataView"?b=new Uint8Array(a.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(a)),i([d,[...b]],a)}const m=[],g=i([c,m],a);for(const b of a)m.push(s(b));return g}case lv:{if(d)switch(d){case"BigInt":return i([d,a.toString()],a);case"Boolean":case"Number":case"String":return i([d,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const m=[],g=i([c,m],a);for(const b of BU(a))(e||!Cg(Tp(a[b])))&&m.push([s(b),s(a[b])]);return g}case _w:return i([c,a.toISOString()],a);case Iw:{const{source:m,flags:g}=a;return i([c,{source:m,flags:g}],a)}case $w:{const m=[],g=i([c,m],a);for(const[b,x]of a)(e||!(Cg(Tp(b))||Cg(Tp(x))))&&m.push([s(b),s(x)]);return g}case Aw:{const m=[],g=i([c,m],a);for(const b of a)(e||!Cg(Tp(b)))&&m.push(s(b));return g}}const{message:h}=a;return i([c,{name:d,message:h}],a)};return s},GC=(e,{json:t,lossy:n}={})=>{const r=[];return VU(!(t||n),!!t,new Map,r)(e),r},uv=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?HC(GC(e,t)):structuredClone(e):(e,t)=>HC(GC(e,t));function UU(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 KU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function WU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||UU,r=e.options.footnoteBackLabel||KU,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),g=String(h.identifier).toUpperCase(),b=Uf(g.toLowerCase());let x=0;const k=[],P=e.footnoteCounts.get(g);for(;P!==void 0&&++x<=P;){k.length>0&&k.push({type:"text",value:" "});let A=typeof n=="string"?n:n(d,x);typeof A=="string"&&(A={type:"text",value:A}),k.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,x),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const T=m[m.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const A=T.children[T.children.length-1];A&&A.type==="text"?A.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...k)}else m.push(...k);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(m,!0)};e.patch(h,_),c.push(_)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...uv(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
57
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
58
+ `}]}}const Nv=(function(e){if(e==null)return YU;if(typeof e=="function")return Ov(e);if(typeof e=="object")return Array.isArray(e)?HU(e):GU(e);if(typeof e=="string")return qU(e);throw new Error("Expected function, string, or object as test")});function HU(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Nv(e[n]);return Ov(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function GU(e){const t=e;return Ov(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function qU(e){return Ov(t);function t(n){return n&&n.type===e}}function Ov(e){return t;function t(n,r,i){return!!(XU(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function YU(){return!0}function XU(e){return e!==null&&typeof e=="object"&&"type"in e}const XI=[],QU=!0,Jb=!1,JU="skip";function QI(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=Nv(i),a=r?-1:1;c(e,void 0,[])();function c(d,h,m){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(x?"<"+x+">":""))+")"})}return b;function b(){let x=XI,k,P,T;if((!t||s(d,h,m[m.length-1]||void 0))&&(x=ZU(n(d,m)),x[0]===Jb))return x;if("children"in d&&d.children){const _=d;if(_.children&&x[0]!==JU)for(P=(r?_.children.length:-1)+a,T=m.concat(_);P>-1&&P<_.children.length;){const A=_.children[P];if(k=c(A,P,T)(),k[0]===Jb)return k;P=typeof k[1]=="number"?k[1]:P+a}}return x}}}function ZU(e){return Array.isArray(e)?e:typeof e=="number"?[QU,e]:e==null?XI:[e]}function Rw(e,t,n,r){let i,s,a;typeof t=="function"&&typeof n!="function"?(s=void 0,a=t,i=n):(s=t,a=n,i=r),QI(e,s,c,i);function c(d,h){const m=h[h.length-1],g=m?m.children.indexOf(d):void 0;return a(d,g,m)}}const Zb={}.hasOwnProperty,eK={};function tK(e,t){const n=t||eK,r=new Map,i=new Map,s=new Map,a={...FU,...n.handlers},c={all:h,applyData:rK,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:d,options:n,patch:nK,wrap:oK};return Rw(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?r:i,b=String(m.identifier).toUpperCase();g.has(b)||g.set(b,m)}}),c;function d(m,g){const b=m.type,x=c.handlers[b];if(Zb.call(c.handlers,b)&&x)return x(c,m,g);if(c.options.passThrough&&c.options.passThrough.includes(b)){if("children"in m){const{children:P,...T}=m,_=uv(T);return _.children=c.all(m),_}return uv(m)}return(c.options.unknownHandler||iK)(c,m,g)}function h(m){const g=[];if("children"in m){const b=m.children;let x=-1;for(;++x<b.length;){const k=c.one(b[x],m);if(k){if(x&&b[x-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=qC(k.value)),!Array.isArray(k)&&k.type==="element")){const P=k.children[0];P&&P.type==="text"&&(P.value=qC(P.value))}Array.isArray(k)?g.push(...k):g.push(k)}}}return g}}function nK(e,t){e.position&&(t.position=KB(e))}function rK(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,uv(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function iK(e,t){const n=t.data||{},r="value"in t&&!(Zb.call(n,"hProperties")||Zb.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function oK(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
59
+ `});++r<e.length;)r&&n.push({type:"text",value:`
60
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
61
+ `}),n}function qC(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function YC(e,t){const n=tK(e,t),r=n.one(e,void 0),i=WU(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
62
+ `},i),s}function sK(e,t){return e&&"run"in e?async function(n,r){const i=YC(n,{file:r,...t});await e.run(i,r)}:function(n,r){return YC(n,{file:r,...e||t})}}function XC(e){if(e)throw e}var R0,QC;function aK(){if(QC)return R0;QC=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},s=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!g)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},a=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},c=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(r)return r(h,m).value}else return;return h[m]};return R0=function d(){var h,m,g,b,x,k,P=arguments[0],T=1,_=arguments.length,A=!1;for(typeof P=="boolean"&&(A=P,P=arguments[1]||{},T=2),(P==null||typeof P!="object"&&typeof P!="function")&&(P={});T<_;++T)if(h=arguments[T],h!=null)for(m in h)g=c(P,m),b=c(h,m),P!==b&&(A&&b&&(s(b)||(x=i(b)))?(x?(x=!1,k=g&&i(g)?g:[]):k=g&&s(g)?g:{},a(P,{name:m,newValue:d(A,k,b)})):typeof b<"u"&&a(P,{name:m,newValue:b}));return P},R0}var lK=aK();const L0=dv(lK);function ex(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function uK(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...i);function c(d,...h){const m=e[++s];let g=-1;if(d){a(d);return}for(;++g<i.length;)(h[g]===null||h[g]===void 0)&&(h[g]=i[g]);i=h,m?cK(m,c)(...h):a(null,...h)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function cK(e,t){let n;return r;function r(...a){const c=e.length>a.length;let d;c&&a.push(i);try{d=e.apply(this,a)}catch(h){const m=h;if(c&&n)throw m;return i(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(s,i):d instanceof Error?i(d):s(d))}function i(a,...c){n||(n=!0,t(a,...c))}function s(a){i(null,a)}}const os={basename:fK,dirname:dK,extname:pK,join:hK,sep:"/"};function fK(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_h(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,c=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(r=i):(c=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function dK(e){if(_h(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 pK(e){_h(e);let t=e.length,n=-1,r=0,i=-1,s=0,a;for(;t--;){const c=e.codePointAt(t);if(c===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),c===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function hK(...e){let t=-1,n;for(;++t<e.length;)_h(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":mK(n)}function mK(e){_h(e);const t=e.codePointAt(0)===47;let n=gK(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function gK(e,t){let n="",r=0,i=-1,s=0,a=-1,c,d;for(;++a<=e.length;){if(a<e.length)c=e.codePointAt(a);else{if(c===47)break;c=47}if(c===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else c===46&&s>-1?s++:s=-1}return n}function _h(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vK={cwd:yK};function yK(){return"/"}function tx(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bK(e){if(typeof e=="string")e=new URL(e);else if(!tx(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 xK(e)}function xK(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const M0=["history","path","basename","stem","extname","dirname"];class JI{constructor(t){let n;t?tx(t)?n={path:t}:typeof t=="string"||wK(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":vK.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<M0.length;){const s=M0[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)M0.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?os.basename(this.path):void 0}set basename(t){N0(t,"basename"),D0(t,"basename"),this.path=os.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?os.dirname(this.path):void 0}set dirname(t){JC(this.basename,"dirname"),this.path=os.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?os.extname(this.path):void 0}set extname(t){if(D0(t,"extname"),JC(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=os.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){tx(t)&&(t=bK(t)),N0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?os.basename(this.path,this.extname):void 0}set stem(t){N0(t,"stem"),D0(t,"stem"),this.path=os.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Cr(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function D0(e,t){if(e&&e.includes(os.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+os.sep+"`")}function N0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function JC(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function wK(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const SK=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),kK={}.hasOwnProperty;class Lw extends SK{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=uK()}copy(){const t=new Lw;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(L0(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(z0("data",this.frozen),this.namespace[t]=n,this):kK.call(this.namespace,t)&&this.namespace[t]||void 0:t?(z0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Eg(t),r=this.parser||this.Parser;return O0("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),O0("process",this.parser||this.Parser),F0("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const c=Eg(t),d=r.parse(c);r.run(d,c,function(m,g,b){if(m||!g||!b)return h(m);const x=g,k=r.stringify(x,b);PK(k)?b.value=k:b.result=k,h(m,b)});function h(m,g){m||!g?a(m):s?s(g):n(void 0,g)}}}processSync(t){let n=!1,r;return this.freeze(),O0("processSync",this.parser||this.Parser),F0("processSync",this.compiler||this.Compiler),this.process(t,i),eE("processSync","process",n),r;function i(s,a){n=!0,XC(s),r=a}}run(t,n,r){ZC(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,c){const d=Eg(n);i.run(t,d,h);function h(m,g,b){const x=g||t;m?c(m):a?a(x):r(void 0,x,b)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),eE("runSync","run",r),i;function s(a,c){XC(a),i=c,r=!0}}stringify(t,n){this.freeze();const r=Eg(n),i=this.compiler||this.Compiler;return F0("stringify",i),ZC(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(z0("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...g]=h;d(m,g)}else a(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function a(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(i.settings=L0(!0,i.settings,h.settings))}function c(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const g=h[m];s(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let g=-1,b=-1;for(;++g<r.length;)if(r[g][0]===h){b=g;break}if(b===-1)r.push([h,...m]);else if(m.length>0){let[x,...k]=m;const P=r[b][1];ex(P)&&ex(x)&&(x=L0(!0,P,x)),r[b]=[h,x,...k]}}}}const CK=new Lw().freeze();function O0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function F0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function z0(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 ZC(e){if(!ex(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function eE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Eg(e){return EK(e)?e:new JI(e)}function EK(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function PK(e){return typeof e=="string"||TK(e)}function TK(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _K="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",tE=[],nE={allowDangerousHtml:!0},IK=/^(https?|ircs?|mailto|xmpp)$/i,$K=[{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 Hp(e){const t=AK(e),n=RK(e);return LK(t.runSync(t.parse(n),n),e)}function AK(e){const t=e.rehypePlugins||tE,n=e.remarkPlugins||tE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nE}:nE;return CK().use(dU).use(n).use(sK,r).use(t)}function RK(e){const t=e.children||"",n=new JI;return typeof t=="string"&&(n.value=t),n}function LK(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,s=t.disallowedElements,a=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||MK;for(const m of $K)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+_K+m.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Rw(e,h),YB(e,{Fragment:L.Fragment,components:i,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function h(m,g,b){if(m.type==="raw"&&b&&typeof g=="number")return a?b.children.splice(g,1):b.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let x;for(x in I0)if(Object.hasOwn(I0,x)&&Object.hasOwn(m.properties,x)){const k=m.properties[x],P=I0[x];(P===null||P.includes(m.tagName))&&(m.properties[x]=d(String(k||""),x,m))}}if(m.type==="element"){let x=n?!n.includes(m.tagName):s?s.includes(m.tagName):!1;if(!x&&r&&typeof g=="number"&&(x=!r(m,g,b)),x&&b&&typeof g=="number")return c&&m.children?b.children.splice(g,1,...m.children):b.children.splice(g,1),g}}}function MK(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||IK.test(e.slice(0,t))?e:""}function rE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function DK(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function NK(e,t,n){const i=Nv((n||{}).ignore||[]),s=OK(t);let a=-1;for(;++a<s.length;)QI(e,"text",c);function c(h,m){let g=-1,b;for(;++g<m.length;){const x=m[g],k=b?b.children:void 0;if(i(x,k?k.indexOf(x):void 0,b))return;b=x}if(b)return d(h,m)}function d(h,m){const g=m[m.length-1],b=s[a][0],x=s[a][1];let k=0;const T=g.children.indexOf(h);let _=!1,A=[];b.lastIndex=0;let M=b.exec(h.value);for(;M;){const F=M.index,j={index:M.index,input:M.input,stack:[...m,h]};let $=x(...M,j);if(typeof $=="string"&&($=$.length>0?{type:"text",value:$}:void 0),$===!1?b.lastIndex=F+1:(k!==F&&A.push({type:"text",value:h.value.slice(k,F)}),Array.isArray($)?A.push(...$):$&&A.push($),k=F+M[0].length,_=!0),!b.global)break;M=b.exec(h.value)}return _?(k<h.value.length&&A.push({type:"text",value:h.value.slice(k)}),g.children.splice(T,1,...A)):A=[h],T+A.length}}function OK(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([FK(i[0]),zK(i[1])])}return t}function FK(e){return typeof e=="string"?new RegExp(DK(e),"g"):e}function zK(e){return typeof e=="function"?e:function(){return e}}const j0="phrasing",B0=["autolink","link","image","label"];function jK(){return{transforms:[GK],enter:{literalAutolink:VK,literalAutolinkEmail:V0,literalAutolinkHttp:V0,literalAutolinkWww:V0},exit:{literalAutolink:HK,literalAutolinkEmail:WK,literalAutolinkHttp:UK,literalAutolinkWww:KK}}}function BK(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:j0,notInConstruct:B0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:j0,notInConstruct:B0},{character:":",before:"[ps]",after:"\\/",inConstruct:j0,notInConstruct:B0}]}}function VK(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function V0(e){this.config.enter.autolinkProtocol.call(this,e)}function UK(e){this.config.exit.autolinkProtocol.call(this,e)}function KK(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function WK(e){this.config.exit.autolinkEmail.call(this,e)}function HK(e){this.exit(e)}function GK(e){NK(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,qK],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),YK]],{ignore:["link","linkReference"]})}function qK(e,t,n,r,i){let s="";if(!ZI(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!XK(n)))return!1;const a=QK(n+r);if(!a[0])return!1;const c={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[c,{type:"text",value:a[1]}]:c}function YK(e,t,n,r){return!ZI(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function XK(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function QK(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=rE(e,"(");let s=rE(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function ZI(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||$u(n)||Lv(n))&&(!t||n!==47)}e$.peek=sW;function JK(){this.buffer()}function ZK(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function eW(){this.buffer()}function tW(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nW(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Io(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rW(e){this.exit(e)}function iW(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Io(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oW(e){this.exit(e)}function sW(){return"["}function e$(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteReference"),c=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),c(),a(),s+=i.move("]"),s}function aW(){return{enter:{gfmFootnoteCallString:JK,gfmFootnoteCall:ZK,gfmFootnoteDefinitionLabelString:eW,gfmFootnoteDefinition:tW},exit:{gfmFootnoteCallString:nW,gfmFootnoteCall:rW,gfmFootnoteDefinitionLabelString:iW,gfmFootnoteDefinition:oW}}}function lW(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:e$},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,a){const c=s.createTracker(a);let d=c.move("[^");const h=s.enter("footnoteDefinition"),m=s.enter("label");return d+=c.move(s.safe(s.associationId(r),{before:d,after:"]"})),m(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
63
+ `:" ")+s.indentLines(s.containerFlow(r,c.current()),t?t$:uW))),h(),d}}function uW(e,t,n){return t===0?e:t$(e,t,n)}function t$(e,t,n){return(n?"":" ")+e}const cW=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];n$.peek=mW;function fW(){return{canContainEols:["delete"],enter:{strikethrough:pW},exit:{strikethrough:hW}}}function dW(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:cW}],handlers:{delete:n$}}}function pW(e){this.enter({type:"delete",children:[]},e)}function hW(e){this.exit(e)}function n$(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function mW(){return"~"}function gW(e){return e.length}function vW(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||gW,s=[],a=[],c=[],d=[];let h=0,m=-1;for(;++m<e.length;){const P=[],T=[];let _=-1;for(e[m].length>h&&(h=e[m].length);++_<e[m].length;){const A=yW(e[m][_]);if(n.alignDelimiters!==!1){const M=i(A);T[_]=M,(d[_]===void 0||M>d[_])&&(d[_]=M)}P.push(A)}a[m]=P,c[m]=T}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<h;)s[g]=iE(r[g]);else{const P=iE(r);for(;++g<h;)s[g]=P}g=-1;const b=[],x=[];for(;++g<h;){const P=s[g];let T="",_="";P===99?(T=":",_=":"):P===108?T=":":P===114&&(_=":");let A=n.alignDelimiters===!1?1:Math.max(1,d[g]-T.length-_.length);const M=T+"-".repeat(A)+_;n.alignDelimiters!==!1&&(A=T.length+A+_.length,A>d[g]&&(d[g]=A),x[g]=A),b[g]=M}a.splice(1,0,b),c.splice(1,0,x),m=-1;const k=[];for(;++m<a.length;){const P=a[m],T=c[m];g=-1;const _=[];for(;++g<h;){const A=P[g]||"";let M="",F="";if(n.alignDelimiters!==!1){const j=d[g]-(T[g]||0),$=s[g];$===114?M=" ".repeat(j):$===99?j%2?(M=" ".repeat(j/2+.5),F=" ".repeat(j/2-.5)):(M=" ".repeat(j/2),F=M):F=" ".repeat(j)}n.delimiterStart!==!1&&!g&&_.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||g)&&_.push(" "),n.alignDelimiters!==!1&&_.push(M),_.push(A),n.alignDelimiters!==!1&&_.push(F),n.padding!==!1&&_.push(" "),(n.delimiterEnd!==!1||g!==h-1)&&_.push("|")}k.push(n.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return k.join(`
64
+ `)}function yW(e){return e==null?"":String(e)}function iE(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function bW(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(e,s.current()),xW);return i(),a}function xW(e,t,n){return">"+(n?"":" ")+e}function wW(e,t){return oE(e,t.inConstruct,!0)&&!oE(e,t.notInConstruct,!1)}function oE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function sE(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
65
+ `&&wW(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
66
+ `}function SW(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}function kW(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function CW(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function EW(e,t,n,r){const i=CW(n),s=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(kW(e,n)){const g=n.enter("codeIndented"),b=n.indentLines(s,PW);return g(),b}const c=n.createTracker(r),d=i.repeat(Math.max(SW(s,i)+1,3)),h=n.enter("codeFenced");let m=c.move(d);if(e.lang){const g=n.enter(`codeFencedLang${a}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),g()}if(e.lang&&e.meta){const g=n.enter(`codeFencedMeta${a}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
67
+ `,encode:["`"],...c.current()})),g()}return m+=c.move(`
68
+ `),s&&(m+=c.move(s+`
69
+ `)),m+=c.move(d),h(),m}function PW(e,t,n){return(n?"":" ")+e}function Mw(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function TW(e,t,n,r){const i=Mw(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":`
70
+ `,...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),h+=d.move(" "+i),h+=d.move(n.safe(e.title,{before:h,after:i,...d.current()})),h+=d.move(i),c()),a(),h}function _W(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function dh(e){return"&#x"+e.toString(16).toUpperCase()+";"}function cv(e,t,n){const r=Df(e),i=Df(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}r$.peek=IW;function r$(e,t,n,r){const i=_W(n),s=n.enter("emphasis"),a=n.createTracker(r),c=a.move(i);let d=a.move(n.containerPhrasing(e,{after:i,before:c,...a.current()}));const h=d.charCodeAt(0),m=cv(r.before.charCodeAt(r.before.length-1),h,i);m.inside&&(d=dh(h)+d.slice(1));const g=d.charCodeAt(d.length-1),b=cv(r.after.charCodeAt(0),g,i);b.inside&&(d=d.slice(0,-1)+dh(g));const x=a.move(i);return s(),n.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},c+d+x}function IW(e,t,n){return n.options.emphasis||"*"}function $W(e,t){let n=!1;return Rw(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Jb}),!!((!e.depth||e.depth<3)&&Ew(e)&&(t.options.setext||n))}function AW(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if($W(e,n)){const m=n.enter("headingSetext"),g=n.enter("phrasing"),b=n.containerPhrasing(e,{...s.current(),before:`
71
+ `,after:`
72
+ `});return g(),m(),b+`
73
+ `+(i===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
74
+ `))+1))}const a="#".repeat(i),c=n.enter("headingAtx"),d=n.enter("phrasing");s.move(a+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
75
+ `,...s.current()});return/^[\t ]/.test(h)&&(h=dh(h.charCodeAt(0))+h.slice(1)),h=h?a+" "+h:a,n.options.closeAtx&&(h+=" "+a),d(),c(),h}i$.peek=RW;function i$(e){return e.value||""}function RW(){return"<"}o$.peek=LW;function o$(e,t,n,r){const i=Mw(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),h+=d.move(" "+i),h+=d.move(n.safe(e.title,{before:h,after:i,...d.current()})),h+=d.move(i),c()),h+=d.move(")"),a(),h}function LW(){return"!"}s$.peek=MW;function s$(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const h=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),a();const m=n.stack;n.stack=[],a=n.enter("reference");const g=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return a(),n.stack=m,s(),i==="full"||!h||h!==g?d+=c.move(g+"]"):i==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function MW(){return"!"}a$.peek=DW;function a$(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const a=n.unsafe[s],c=n.compilePattern(a);let d;if(a.atBreak)for(;d=c.exec(r);){let h=d.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(d.index+1)}}return i+r+i}function DW(){return"`"}function l$(e,t){const n=Ew(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}u$.peek=NW;function u$(e,t,n,r){const i=Mw(n),s=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let c,d;if(l$(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let g=a.move("<");return g+=a.move(n.containerPhrasing(e,{before:g,after:">",...a.current()})),g+=a.move(">"),c(),n.stack=m,g}c=n.enter("link"),d=n.enter("label");let h=a.move("[");return h+=a.move(n.containerPhrasing(e,{before:h,after:"](",...a.current()})),h+=a.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=a.move("<"),h+=a.move(n.safe(e.url,{before:h,after:">",...a.current()})),h+=a.move(">")):(d=n.enter("destinationRaw"),h+=a.move(n.safe(e.url,{before:h,after:e.title?" ":")",...a.current()}))),d(),e.title&&(d=n.enter(`title${s}`),h+=a.move(" "+i),h+=a.move(n.safe(e.title,{before:h,after:i,...a.current()})),h+=a.move(i),d()),h+=a.move(")"),c(),h}function NW(e,t,n){return l$(e,n)?"<":"["}c$.peek=OW;function c$(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),a();const m=n.stack;n.stack=[],a=n.enter("reference");const g=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return a(),n.stack=m,s(),i==="full"||!h||h!==g?d+=c.move(g+"]"):i==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function OW(){return"["}function Dw(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function FW(e){const t=Dw(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function zW(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function f$(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function jW(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let a=e.ordered?zW(n):Dw(n);const c=e.ordered?a==="."?")":".":FW(n);let d=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),f$(n)===a&&m){let g=-1;for(;++g<e.children.length;){const b=e.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(a=c),n.bulletCurrent=a;const h=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),h}function BW(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function VW(e,t,n,r){const i=BW(n);let s=n.bulletCurrent||Dw(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const c=n.createTracker(r);c.move(s+" ".repeat(a-s.length)),c.shift(a);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,c.current()),m);return d(),h;function m(g,b,x){return b?(x?"":" ".repeat(a))+g:(x?s:s+" ".repeat(a-s.length))+g}}function UW(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,r);return s(),i(),a}const KW=Nv(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function WW(e,t,n,r){return(e.children.some(function(a){return KW(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function HW(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}d$.peek=GW;function d$(e,t,n,r){const i=HW(n),s=n.enter("strong"),a=n.createTracker(r),c=a.move(i+i);let d=a.move(n.containerPhrasing(e,{after:i,before:c,...a.current()}));const h=d.charCodeAt(0),m=cv(r.before.charCodeAt(r.before.length-1),h,i);m.inside&&(d=dh(h)+d.slice(1));const g=d.charCodeAt(d.length-1),b=cv(r.after.charCodeAt(0),g,i);b.inside&&(d=d.slice(0,-1)+dh(g));const x=a.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},c+d+x}function GW(e,t,n){return n.options.strong||"*"}function qW(e,t,n,r){return n.safe(e.value,r)}function YW(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function XW(e,t,n){const r=(f$(n)+(n.options.ruleSpaces?" ":"")).repeat(YW(n));return n.options.ruleSpaces?r.slice(0,-1):r}const p$={blockquote:bW,break:sE,code:EW,definition:TW,emphasis:r$,hardBreak:sE,heading:AW,html:i$,image:o$,imageReference:s$,inlineCode:a$,link:u$,linkReference:c$,list:jW,listItem:VW,paragraph:UW,root:WW,strong:d$,text:qW,thematicBreak:XW};function QW(){return{enter:{table:JW,tableData:aE,tableHeader:aE,tableRow:eH},exit:{codeText:tH,table:ZW,tableData:U0,tableHeader:U0,tableRow:U0}}}function JW(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function ZW(e){this.exit(e),this.data.inTable=void 0}function eH(e){this.enter({type:"tableRow",children:[]},e)}function U0(e){this.exit(e)}function aE(e){this.enter({type:"tableCell",children:[]},e)}function tH(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nH));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function nH(e,t){return t==="|"?t:e}function rH(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
76
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:a,tableCell:d,tableRow:c}};function a(x,k,P,T){return h(m(x,P,T),x.align)}function c(x,k,P,T){const _=g(x,P,T),A=h([_]);return A.slice(0,A.indexOf(`
77
+ `))}function d(x,k,P,T){const _=P.enter("tableCell"),A=P.enter("phrasing"),M=P.containerPhrasing(x,{...T,before:s,after:s});return A(),_(),M}function h(x,k){return vW(x,{align:k,alignDelimiters:r,padding:n,stringLength:i})}function m(x,k,P){const T=x.children;let _=-1;const A=[],M=k.enter("table");for(;++_<T.length;)A[_]=g(T[_],k,P);return M(),A}function g(x,k,P){const T=x.children;let _=-1;const A=[],M=k.enter("tableRow");for(;++_<T.length;)A[_]=d(T[_],x,k,P);return M(),A}function b(x,k,P){let T=p$.inlineCode(x,k,P);return P.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function iH(){return{exit:{taskListCheckValueChecked:lE,taskListCheckValueUnchecked:lE,paragraph:sH}}}function oH(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:aH}}}function lE(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function sH(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,a;for(;++s<i.length;){const c=i[s];if(c.type==="paragraph"){a=c;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function aH(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);s&&c.move(a);let d=p$.listItem(e,t,n,{...r,...c.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+a}}function lH(){return[jK(),aW(),fW(),QW(),iH()]}function uH(e){return{extensions:[BK(),lW(e),dW(),rH(e),oH()]}}const cH={tokenize:gH,partial:!0},h$={tokenize:vH,partial:!0},m$={tokenize:yH,partial:!0},g$={tokenize:bH,partial:!0},fH={tokenize:xH,partial:!0},v$={name:"wwwAutolink",tokenize:hH,previous:b$},y$={name:"protocolAutolink",tokenize:mH,previous:x$},sa={name:"emailAutolink",tokenize:pH,previous:w$},ps={};function dH(){return{text:ps}}let pu=48;for(;pu<123;)ps[pu]=sa,pu++,pu===58?pu=65:pu===91&&(pu=97);ps[43]=sa;ps[45]=sa;ps[46]=sa;ps[95]=sa;ps[72]=[sa,y$];ps[104]=[sa,y$];ps[87]=[sa,v$];ps[119]=[sa,v$];function pH(e,t,n){const r=this;let i,s;return a;function a(g){return!nx(g)||!w$.call(r,r.previous)||Nw(r.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(g))}function c(g){return nx(g)?(e.consume(g),c):g===64?(e.consume(g),d):n(g)}function d(g){return g===46?e.check(fH,m,h)(g):g===45||g===95||kr(g)?(s=!0,e.consume(g),d):m(g)}function h(g){return e.consume(g),i=!0,d}function m(g){return s&&i&&Or(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):n(g)}}function hH(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!b$.call(r,r.previous)||Nw(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(cH,e.attempt(h$,e.attempt(m$,s),n),n)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function mH(e,t,n){const r=this;let i="",s=!1;return a;function a(g){return(g===72||g===104)&&x$.call(r,r.previous)&&!Nw(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(g),e.consume(g),c):n(g)}function c(g){if(Or(g)&&i.length<5)return i+=String.fromCodePoint(g),e.consume(g),c;if(g===58){const b=i.toLowerCase();if(b==="http"||b==="https")return e.consume(g),d}return n(g)}function d(g){return g===47?(e.consume(g),s?h:(s=!0,d)):n(g)}function h(g){return g===null||av(g)||Vt(g)||$u(g)||Lv(g)?n(g):e.attempt(h$,e.attempt(m$,m),n)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function gH(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),s):n(a)}function s(a){return a===null?n(a):t(a)}}function vH(e,t,n){let r,i,s;return a;function a(h){return h===46||h===95?e.check(g$,d,c)(h):h===null||Vt(h)||$u(h)||h!==45&&Lv(h)?d(h):(s=!0,e.consume(h),a)}function c(h){return h===95?r=!0:(i=r,r=void 0),e.consume(h),a}function d(h){return i||r||!s?n(h):t(h)}}function yH(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(g$,t,s)(a):a===null||Vt(a)||$u(a)?t(a):(e.consume(a),i)}function s(a){return a===41&&r++,e.consume(a),i}}function bH(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),s):c===93?(e.consume(c),i):c===60||c===null||Vt(c)||$u(c)?t(c):n(c)}function i(c){return c===null||c===40||c===91||Vt(c)||$u(c)?t(c):r(c)}function s(c){return Or(c)?a(c):n(c)}function a(c){return c===59?(e.consume(c),r):Or(c)?(e.consume(c),a):n(c)}}function xH(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return kr(s)?n(s):t(s)}}function b$(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Vt(e)}function x$(e){return!Or(e)}function w$(e){return!(e===47||nx(e))}function nx(e){return e===43||e===45||e===46||e===95||kr(e)}function Nw(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const wH={tokenize:IH,partial:!0};function SH(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:PH,continuation:{tokenize:TH},exit:_H}},text:{91:{name:"gfmFootnoteCall",tokenize:EH},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kH,resolveTo:CH}}}}function kH(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const d=r.events[i][1];if(d.type==="labelImage"){a=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!a||!a._balanced)return n(d);const h=Io(r.sliceSerialize({start:a.end,end:r.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function CH(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function EH(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,a;return c;function c(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),d}function d(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(s>999||g===93&&!a||g===null||g===91||Vt(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return i.includes(Io(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(g)}return Vt(g)||(a=!0),s++,e.consume(g),g===92?m:h}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,h):h(g)}}function PH(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0,c;return d;function d(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(k)}function m(k){if(a>999||k===93&&!c||k===null||k===91||Vt(k))return n(k);if(k===93){e.exit("chunkString");const P=e.exit("gfmFootnoteDefinitionLabelString");return s=Io(r.sliceSerialize(P)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return Vt(k)||(c=!0),a++,e.consume(k),k===92?g:m}function g(k){return k===91||k===92||k===93?(e.consume(k),a++,m):m(k)}function b(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),i.includes(s)||i.push(s),Ct(e,x,"gfmFootnoteDefinitionWhitespace")):n(k)}function x(k){return t(k)}}function TH(e,t,n){return e.check(Th,t,e.attempt(wH,t,n))}function _H(e){e.exit("gfmFootnoteDefinition")}function IH(e,t,n){const r=this;return Ct(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):n(s)}}function $H(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,c){let d=-1;for(;++d<a.length;)if(a[d][0]==="enter"&&a[d][1].type==="strikethroughSequenceTemporary"&&a[d][1]._close){let h=d;for(;h--;)if(a[h][0]==="exit"&&a[h][1].type==="strikethroughSequenceTemporary"&&a[h][1]._open&&a[d][1].end.offset-a[d][1].start.offset===a[h][1].end.offset-a[h][1].start.offset){a[d][1].type="strikethroughSequence",a[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},a[h][1].start),end:Object.assign({},a[d][1].end)},g={type:"strikethroughText",start:Object.assign({},a[h][1].end),end:Object.assign({},a[d][1].start)},b=[["enter",m,c],["enter",a[h][1],c],["exit",a[h][1],c],["enter",g,c]],x=c.parser.constructs.insideSpan.null;x&&Ai(b,b.length,0,Mv(x,a.slice(h+1,d),c)),Ai(b,b.length,0,[["exit",g,c],["enter",a[d][1],c],["exit",a[d][1],c],["exit",m,c]]),Ai(a,h-1,d-h+3,b),d=h+b.length-2;break}}for(d=-1;++d<a.length;)a[d][1].type==="strikethroughSequenceTemporary"&&(a[d][1].type="data");return a}function s(a,c,d){const h=this.previous,m=this.events;let g=0;return b;function b(k){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(k):(a.enter("strikethroughSequenceTemporary"),x(k))}function x(k){const P=Df(h);if(k===126)return g>1?d(k):(a.consume(k),g++,x);if(g<2&&!n)return d(k);const T=a.exit("strikethroughSequenceTemporary"),_=Df(k);return T._open=!_||_===2&&!!P,T._close=!P||P===2&&!!_,c(k)}}}class AH{constructor(){this.map=[]}add(t,n,r){RH(this,t,n,r)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function RH(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function LH(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function MH(){return{flow:{null:{name:"table",tokenize:DH,resolveAll:NH}}}}function DH(e,t,n){const r=this;let i=0,s=0,a;return c;function c(B){let W=r.events.length-1;for(;W>-1;){const H=r.events[W][1].type;if(H==="lineEnding"||H==="linePrefix")W--;else break}const G=W>-1?r.events[W][1].type:null,ee=G==="tableHead"||G==="tableRow"?$:d;return ee===$&&r.parser.lazy[r.now().line]?n(B):ee(B)}function d(B){return e.enter("tableHead"),e.enter("tableRow"),h(B)}function h(B){return B===124||(a=!0,s+=1),m(B)}function m(B){return B===null?n(B):Ye(B)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),x):n(B):vt(B)?Ct(e,m,"whitespace")(B):(s+=1,a&&(a=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),a=!0,m):(e.enter("data"),g(B)))}function g(B){return B===null||B===124||Vt(B)?(e.exit("data"),m(B)):(e.consume(B),B===92?b:g)}function b(B){return B===92||B===124?(e.consume(B),g):g(B)}function x(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),a=!1,vt(B)?Ct(e,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):k(B))}function k(B){return B===45||B===58?T(B):B===124?(a=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),P):j(B)}function P(B){return vt(B)?Ct(e,T,"whitespace")(B):T(B)}function T(B){return B===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),_):B===45?(s+=1,_(B)):B===null||Ye(B)?F(B):j(B)}function _(B){return B===45?(e.enter("tableDelimiterFiller"),A(B)):j(B)}function A(B){return B===45?(e.consume(B),A):B===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),M):(e.exit("tableDelimiterFiller"),M(B))}function M(B){return vt(B)?Ct(e,F,"whitespace")(B):F(B)}function F(B){return B===124?k(B):B===null||Ye(B)?!a||i!==s?j(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):j(B)}function j(B){return n(B)}function $(B){return e.enter("tableRow"),Y(B)}function Y(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),Y):B===null||Ye(B)?(e.exit("tableRow"),t(B)):vt(B)?Ct(e,Y,"whitespace")(B):(e.enter("data"),te(B))}function te(B){return B===null||B===124||Vt(B)?(e.exit("data"),Y(B)):(e.consume(B),B===92?ie:te)}function ie(B){return B===92||B===124?(e.consume(B),te):te(B)}}function NH(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],c=!1,d=0,h,m,g;const b=new AH;for(;++n<e.length;){const x=e[n],k=x[1];x[0]==="enter"?k.type==="tableHead"?(c=!1,d!==0&&(uE(b,t,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},b.add(n,0,[["enter",h,t]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(r=!0,g=void 0,s=[0,0,0,0],a=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},b.add(n,0,[["enter",m,t]])),i=k.type==="tableDelimiterRow"?2:m?3:1):i&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],g=Pg(b,t,s,i,void 0,g),s=[0,0,0,0]),a[2]=n)):k.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(a[0]=a[1],g=Pg(b,t,s,i,void 0,g)),s=a,a=[s[1],n,0,0])):k.type==="tableHead"?(c=!0,d=n):k.type==="tableRow"||k.type==="tableDelimiterRow"?(d=n,s[1]!==0?(a[0]=a[1],g=Pg(b,t,s,i,n,g)):a[1]!==0&&(g=Pg(b,t,a,i,n,g)),i=0):i&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(a[3]=n)}for(d!==0&&uE(b,t,d,h,m),b.consume(t.events),n=-1;++n<t.events.length;){const x=t.events[n];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=LH(t.events,n))}return e}function Pg(e,t,n,r,i,s){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(s.end=Object.assign({},pf(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const d=pf(t.events,n[1]);if(s={type:a,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const h=pf(t.events,n[2]),m=pf(t.events,n[3]),g={type:c,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",g,t]]),r!==2){const b=t.events[n[2]],x=t.events[n[3]];if(b[1].end=Object.assign({},x[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const k=n[2]+1,P=n[3]-n[2]-1;e.add(k,P,[])}}e.add(n[3]+1,0,[["exit",g,t]])}return i!==void 0&&(s.end=Object.assign({},pf(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function uE(e,t,n,r,i){const s=[],a=pf(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function pf(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const OH={name:"tasklistCheck",tokenize:zH};function FH(){return{text:{91:OH}}}function zH(e,t,n){const r=this;return i;function i(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return Vt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),a):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),a):n(d)}function a(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Ye(d)?t(d):vt(d)?e.check({tokenize:jH},t,n)(d):n(d)}}function jH(e,t,n){return Ct(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function BH(e){return RI([dH(),SH(),$H(e),MH(),FH()])}const VH={};function Gp(e){const t=this,n=e||VH,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(BH(n)),s.push(lH()),a.push(uH(n))}const cE=e=>Symbol.iterator in e,fE=e=>"entries"in e,dE=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[i,s]of n)if(!Object.is(s,r.get(i)))return!1;return!0},UH=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let i=n.next(),s=r.next();for(;!i.done&&!s.done;){if(!Object.is(i.value,s.value))return!1;i=n.next(),s=r.next()}return!!i.done&&!!s.done};function KH(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:cE(e)&&cE(t)?fE(e)&&fE(t)?dE(e,t):UH(e,t):dE({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Ih(e){const t=He.useRef(void 0);return n=>{const r=e(n);return KH(t.current,r)?t.current:t.current=r}}const hs=e=>{const t=S.useContext(eI);if(!t||!t.store)throw new Error("useHistoryStore must be used within a HistoryStoreContextProvider");return U2(t.store,e)},Ow=()=>hs(e=>e.actions),oq=()=>hs(e=>e.primitives),Za=e=>hs(Ih(t=>e(t.primitives.getCurrentConversation()))),S$=e=>hs(t=>e?t.primitives.getCurrentConversation().history[e]:void 0),WH=()=>hs(Ih(e=>Object.keys(e.primitives.getCurrentConversation().history))),HH=()=>hs(Ih(e=>Object.values(e.primitives.getCurrentConversation().history))),GH=()=>hs(e=>{const t=e.primitives.getCurrentConversation().history;return Object.values(t).some(n=>n.confirmationStates&&Object.values(n.confirmationStates).some(r=>r==="pending"))}),pE=({content:e,classNames:t})=>L.jsx(Hp,{className:yn("markdown-container prose dark:prose-invert text-default-900 max-w-full",t),remarkPlugins:[Gp],components:{pre:({children:n})=>L.jsx("pre",{className:"bg-default text-default-900 mt-2 mb-2 max-w-full overflow-auto rounded p-2 font-mono text-[90%] font-normal",children:n}),code:({children:n})=>L.jsx("code",{className:"bg-default text-default-900 rounded px-1 py-0.5 font-mono text-[85%] font-normal",children:n})},children:e}),qH=2;function YH({duration:e,className:t,children:n}){return L.jsx(Zs.div,{className:yn("from-default-600 via-default-200 to-default-600 relative inline-block bg-gradient-to-r bg-clip-text text-transparent",t),initial:{backgroundPosition:"200% 0%"},animate:{backgroundPosition:"-200% 0%"},transition:{duration:e??qH,repeat:1/0,ease:"linear"},style:{backgroundSize:"400% 100%"},children:n})}function XH({shouldShimmer:e,liveUpdates:t,classNames:n}){const[r,i]=S.useState(!1),s=Object.values(t),a=S.useCallback(()=>i(g=>!g),[]),c=s.length>1,d=s[s.length-1],h=s.slice(0,-1),m=Math.max((d.description??"").length,d.label.length)/10;return L.jsxs("div",{className:yn("flex flex-col",c&&"cursor-pointer"),onClick:a,children:[L.jsx(Zs.div,{initial:!1,animate:{height:r?"auto":0,opacity:r?1:0,marginBottom:r?"0.5rem":0},transition:{duration:.3,ease:"easeInOut"},style:{overflow:"hidden"},children:L.jsx("div",{className:"flex flex-col gap-2",children:h.map((g,b)=>L.jsxs(Zs.div,{initial:{opacity:0,y:-10},animate:{opacity:r?1:0,y:r?0:-10},transition:{duration:.3},style:{pointerEvents:r?"auto":"none"},children:[L.jsx("div",{className:"text-default-500",children:g.label}),L.jsx(Hp,{className:yn("markdown-container prose dark:prose-invert text-default-400 max-w-full text-sm",n?.liveUpdates),remarkPlugins:[Gp],children:g.description})]},b))})}),L.jsxs("div",{className:"flex items-center gap-4",children:[L.jsx("div",{className:"relative overflow-hidden bg-transparent",children:e?L.jsxs(YH,{duration:m,children:[L.jsx("div",{children:d.label}),L.jsx(Hp,{className:yn("markdown-container prose dark:prose-invert max-w-full text-sm",n?.liveUpdates),remarkPlugins:[Gp],children:d.description})]}):L.jsxs(L.Fragment,{children:[L.jsx("div",{className:"text-default-500",children:d.label}),L.jsx(Hp,{className:yn("markdown-container prose dark:prose-invert text-default-400 max-w-full text-sm",n?.liveUpdates),remarkPlugins:[Gp],children:d.description})]})}),c&&L.jsx(wr,{variant:"light",isIconOnly:!0,onPress:a,"data-testid":"live-updates-expand",children:L.jsx(Zs.div,{initial:{rotate:0},animate:{rotate:r?180:0},transition:{duration:.3},children:L.jsx(ui,{icon:"heroicons:chevron-down"})})})]})]})}const QH=({images:e})=>{const{isOpen:t,onOpen:n,onClose:r}=Kz(),[i,s]=S.useState(0),a=Object.entries(e).map(([m,g])=>({src:g,alt:m})),c=m=>{s(m),n()},d=S.useCallback(()=>{s(m=>m===0?a.length-1:m-1)},[a.length]),h=S.useCallback(()=>{s(m=>m===a.length-1?0:m+1)},[a.length]);return S.useEffect(()=>{if(!t)return;const m=g=>{switch(g.key){case"ArrowLeft":g.preventDefault(),d();break;case"ArrowRight":g.preventDefault(),h();break;case"Escape":g.preventDefault(),r();break}};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t,d,h,r]),L.jsxs(L.Fragment,{children:[L.jsx("div",{className:"xs:grid-cols-4 grid grid-cols-3 gap-2 sm:grid-cols-6 md:grid-cols-8 lg:grid-cols-12",children:a.map((m,g)=>L.jsx("div",{className:"relative aspect-square cursor-pointer overflow-hidden rounded-lg",onClick:()=>c(g),children:L.jsx(y0,{src:m.src,alt:m.alt,className:"h-full w-full rounded-lg object-cover transition-transform hover:scale-125",classNames:{wrapper:"h-full w-full",img:"h-full w-full object-cover"}})},m.alt))}),L.jsx(Uz,{isOpen:t,onClose:r,size:"full",hideCloseButton:!0,classNames:{backdrop:"bg-black/90",wrapper:"p-0",base:"bg-transparent shadow-none m-0",body:"p-0"},children:L.jsx(jz,{children:L.jsxs(Rz,{className:"relative flex min-h-screen items-center justify-center p-4",children:[L.jsx(wr,{isIconOnly:!0,variant:"flat",className:"absolute top-4 right-4 z-50 bg-black/50 text-white",onPress:r,children:L.jsx(ui,{icon:"heroicons:x-mark",className:"h-6 w-6"})}),a.length>1&&L.jsxs(L.Fragment,{children:[L.jsx(wr,{isIconOnly:!0,variant:"flat",className:"absolute top-1/2 left-4 z-50 -translate-y-1/2 bg-black/50 text-white",onPress:d,children:L.jsx(ui,{icon:"heroicons:chevron-left",className:"h-6 w-6"})}),L.jsx(wr,{isIconOnly:!0,variant:"flat",className:"absolute top-1/2 right-4 z-50 -translate-y-1/2 bg-black/50 text-white",onPress:h,children:L.jsx(ui,{icon:"heroicons:chevron-right",className:"h-6 w-6"})})]}),L.jsx("div",{className:"relative flex max-h-[90vh] max-w-[90vw] items-center justify-center",children:L.jsx(y0,{src:a[i]?.src,alt:a[i]?.alt,className:"max-h-full max-w-full object-contain",classNames:{wrapper:"max-w-full max-h-full",img:"max-w-full max-h-full object-contain"}})}),a.length>1&&L.jsx("div",{className:"absolute bottom-16 left-1/2 flex max-w-[90vw] -translate-x-1/2 gap-2 overflow-x-auto rounded bg-black/30 p-2",children:a.map((m,g)=>L.jsx("button",{onClick:()=>s(g),className:yn("flex-shrink-0 overflow-hidden border-2 border-transparent transition-all",g===i?"z-10 scale-125":"hover:scale-110"),children:L.jsx(y0,{src:m.src,alt:m.alt,className:"h-12 w-12 rounded-lg object-cover",classNames:{wrapper:"w-12 h-12",img:"w-12 h-12 object-cover"}})},m.alt))}),a.length>1&&L.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-black/50 px-4 py-2",children:L.jsxs("span",{className:"text-sm font-medium text-white",children:[i+1," / ",a.length]})})]})})})]})},JH=({references:e})=>L.jsx("div",{className:"text-default-500 text-xs italic",children:L.jsx("ul",{className:"list-disc pl-4",children:e.map((t,n)=>L.jsx("li",{children:L.jsx("a",{href:t.url??void 0,target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:t.title})},n))})}),jg=e=>L.jsx(oz,{delay:300,closeDelay:0,...e}),Fw=e=>{const t=r=>Pn.subscribe(r),n=()=>Pn.getPlugin(e);return S.useSyncExternalStore(t,n)},el=({plugin:e,component:t,skeletonSize:n,disableSkeleton:r,componentProps:i})=>{const s=Fw(e.name),a=n?{width:n.width,height:n.height}:{};if(!s)return null;const c=s.config.components[t];try{return L.jsx(S.Suspense,{fallback:r?null:L.jsx(Hz,{className:"rounded-lg",style:a}),children:L.jsx(c,{...i||{}})})}catch(d){return console.error(d),null}},k$="UsagePluginName",C$={name:k$,components:{UsageButton:S.lazy(()=>fi(()=>import("./UsageButton-BABA7a-w.js"),__vite__mapDeps([9,4,5,6])))}},ZH=({content:e,serverId:t,message:n})=>{const[r,i]=S.useState("heroicons:clipboard"),s=S.useRef(null),a=async()=>{await navigator.clipboard.writeText(e),i("heroicons:check"),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{i("heroicons:clipboard")},2e3)};return L.jsxs("div",{className:"flex items-center gap-2",children:[n.usage&&Object.keys(n.usage).length>=1&&L.jsx(el,{plugin:C$,component:"UsageButton",componentProps:{usage:n.usage},skeletonSize:{width:"88px",height:"40px"}}),L.jsx(jg,{content:"Copy",placement:"bottom",children:L.jsx(wr,{isIconOnly:!0,variant:"ghost",className:"p-0","aria-label":"Copy message",onPress:a,children:L.jsx(ui,{icon:r,"data-testid":"chat-message-copy-icon","data-icon":r})})}),t&&L.jsx(el,{plugin:O2,component:"FeedbackForm",componentProps:{message:n},skeletonSize:{width:"88px",height:"40px"}})]})},eG=()=>L.jsx("div",{className:"text-default-500 flex items-center gap-2",children:L.jsx(ui,{icon:"heroicons:arrow-path",className:"animate-spin","data-testid":"loading-indicator"})}),tG=({confirmationRequests:e,confirmationStates:t,onConfirm:n,onSkip:r,onBulkConfirm:i,onBulkSkip:s,isLoading:a})=>{const[c,d]=S.useState(new Set),h=Object.values(e),m=j=>{const $=Object.entries(j);return $.length===0?"":$.slice(0,3).map(([Y,te])=>{const ie=typeof te=="string"?te.length>30?`${te.substring(0,30)}...`:te:JSON.stringify(te);return`${Y}: ${ie}`}).join(", ")},g=j=>{if(j.tool_description)return j.tool_description;const $=j.arguments,Y=j.tool_name.replace(/_/g," "),te=$.email||$.to||$.name||$.id||$.event_id;return te?`${Y}: ${te}`:`Execute ${Y}`},b=h.filter(j=>t[j.confirmation_id]==="pending"),x=b.length>0,k=c.size>0,P=j=>{d($=>{const Y=new Set($);return Y.has(j)?Y.delete(j):Y.add(j),Y})},T=()=>{const j=b.map($=>$.confirmation_id);i(j),d(new Set)},_=()=>{const j=b.map($=>$.confirmation_id);s(j),d(new Set)},A=()=>{const j=Array.from(c).filter($=>t[$]==="pending");i(j),d(new Set)},M=j=>{n(j),d($=>{const Y=new Set($);return Y.delete(j),Y})},F=j=>{r(j),d($=>{const Y=new Set($);return Y.delete(j),Y})};return L.jsx(sl,{children:L.jsxs(Zs.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"my-2 flex flex-col gap-3",children:[x&&L.jsxs("div",{role:"status","aria-live":"polite",className:"sr-only",children:[b.length," confirmation",b.length>1?"s":""," pending"]}),x&&L.jsxs("div",{className:"flex flex-wrap gap-2",children:[L.jsxs(wr,{size:"sm",color:"success",variant:"solid",onPress:T,isDisabled:a,"aria-label":`Confirm all ${b.length} pending actions`,children:["✓ Confirm All (",b.length,")"]}),L.jsx(wr,{size:"sm",color:"default",variant:"bordered",onPress:_,isDisabled:a,"aria-label":`Skip all ${b.length} pending actions`,children:"⏭ Skip All"}),k&&L.jsxs(wr,{size:"sm",color:"success",variant:"flat",onPress:A,isDisabled:a,"aria-label":`Confirm ${c.size} selected actions`,children:["✓ Confirm Selected (",c.size,")"]})]}),L.jsx("div",{className:`flex flex-col gap-2 ${h.length>3?"max-h-[400px] overflow-y-auto pr-2":""}`,children:h.map(j=>{const $=t[j.confirmation_id]||"pending",Y=$==="pending",te=$==="skipped",ie=g(j),B=m(j.arguments),W=c.has(j.confirmation_id);return L.jsxs(Zs.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.2},className:`rounded-medium border-small flex items-center gap-3 p-3 ${te?"border-default bg-default-100/50 opacity-60 grayscale":Y?"border-warning bg-warning-50/50":$==="confirmed"?"border-success bg-success-50/50":"border-danger bg-danger-50/50"}`,children:[Y&&L.jsx(n2,{isSelected:W,onValueChange:()=>P(j.confirmation_id),size:"sm",className:"shrink-0",isDisabled:a}),L.jsxs("div",{className:"min-w-0 flex-1",children:[L.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[$==="pending"&&L.jsx(wg,{size:"sm",color:"warning",variant:"flat",children:"⚠️ Confirmation needed"}),$==="confirmed"&&L.jsx(wg,{size:"sm",color:"success",variant:"flat",children:"✅ Confirmed"}),$==="declined"&&L.jsx(wg,{size:"sm",color:"default",variant:"flat",children:"❌ Declined"}),$==="skipped"&&L.jsx(wg,{size:"sm",color:"default",variant:"flat",children:"⏭️ Handled naturally"})]}),L.jsx("p",{className:"text-small text-default-700 font-medium",children:ie}),B&&Y&&L.jsx("p",{className:"text-tiny text-default-500 mt-1 truncate",id:`conf-args-${j.confirmation_id}`,children:B})]}),Y&&L.jsxs("div",{className:"flex shrink-0 gap-2",children:[L.jsx(wr,{size:"sm",color:"success",variant:"solid",onPress:()=>M(j.confirmation_id),isDisabled:a,"aria-label":`Confirm ${j.tool_name}: ${ie}`,"aria-describedby":B?`conf-args-${j.confirmation_id}`:void 0,children:"Do it"}),L.jsx(wr,{size:"sm",color:"default",variant:"bordered",onPress:()=>F(j.confirmation_id),isDisabled:a,"aria-label":`Skip ${j.tool_name}: ${ie}`,children:"Skip"})]})]},j.confirmation_id)})})]},"confirmation-dialogs")})};class nG{nodes=new Map;roots=[];constructor(t){this.buildTree(t)}buildTree(t){for(const n of t)this.nodes.set(n.id,{...n,children:[]});for(const n of this.nodes.values())if(n.parent_id){const r=this.nodes.get(n.parent_id);r?(r.children.push(n),r.children.sort((i,s)=>i.order-s.order)):(this.roots.push(n),this.roots.sort((i,s)=>i.order-s.order))}else this.roots.push(n),this.roots.sort((r,i)=>r.order-i.order)}*iterate(){function*t(n){for(const r of n)yield r,yield*t(r.children)}yield*t(this.roots)}get(t){return this.nodes.get(t)}update(t,n){const r=this.nodes.get(t);r&&(Object.assign(r,n),n.order!==void 0&&(r.parent_id?this.nodes.get(r.parent_id)?.children.sort((s,a)=>s.order-a.order):this.roots.sort((i,s)=>i.order-s.order)),n.status==="completed"&&this.completeChildren(r))}completeChildren(t){for(const n of t.children)n.status="completed",this.completeChildren(n)}getRoots(){return this.roots}}function E$({tasks:e,depth:t=0}){const n=new nG(e);return L.jsx("div",{className:"space-y-2","data-testid":`todo-list-root-${t}`,children:n.getRoots().map(({id:r,description:i,status:s,summary:a,children:c})=>{const d=L.jsx(a2,{size:"sm",color:"primary","aria-label":"Task is in progress",className:"m-0 p-0",classNames:{svg:"w-4 h-4"}});return L.jsxs("div",{"data-testid":`todo-task-${r}`,children:[L.jsx("div",{children:L.jsxs(n2,{isSelected:s===uf.Completed,disabled:!0,className:"block",icon:s===uf.InProgress?()=>d:void 0,classNames:{hiddenInput:"cursor-default",wrapper:yn(s===uf.InProgress&&"before:border-none"),base:"pointer-events-none hover:bg-transparent",label:yn("transition-colors",s===uf.Completed&&"line-through text-default-400",s===uf.InProgress&&"text-primary italic",s===uf.Pending&&"text-default-900")},children:[i,a&&L.jsx("p",{className:"ml-7",children:a})]})}),c.length>0&&L.jsx("div",{style:{marginLeft:`${(t+1)*.5}rem`},"data-testid":`todo-children-wrapper-${r}`,children:L.jsx(E$,{tasks:c,depth:t+1})})]},`${r}-${s}`)})})}const rG=S.forwardRef(({messageId:e,classNames:t},n)=>{const r=Za(le=>le.lastMessageId),i=Za(le=>le.isLoading),s=S$(e),a=hs(le=>le.actions.sendSilentConfirmation),{client:c}=nw();if(!s)throw new Error("Tried to render non-existent message");const{serverId:d,content:h,role:m,references:g,liveUpdates:b,images:x,confirmationRequests:k,confirmationStates:P,error:T}=s,_=m===kf.User,A=i&&m===kf.Assistant&&e===r,[M,F]=S.useState(!1),j=A&&!b&&!h.length,$=!A,Y=!A&&x&&Object.keys(x).length>0,te=!A&&g&&g.length>0,ie=b&&Object.keys(b).length>0,B=k&&Object.keys(k).length>0,W=async le=>{try{await a(e,le,!0,c)}catch(J){console.error(J)}},G=async le=>{try{await a(e,le,!1,c)}catch(J){console.error(J)}},ee=async le=>{const J=k?Object.keys(k):[],X=J.reduce((V,ae)=>({...V,[ae]:le.includes(ae)}),{});try{await a(e,J,X,c)}catch(V){console.error(V)}},H=async le=>{const X=(k?Object.keys(k):[]).reduce((V,ae)=>({...V,[ae]:!1}),{});try{await a(e,le,X,c)}catch(V){console.error(V)}};return L.jsx("div",{ref:n,"data-testid":"chat-message-wrapper",className:yn("flex gap-3",{"flex-row-reverse":_},t?.wrapper),children:L.jsx("div",{className:yn(!M&&"motion-safe:animate-pop-in","flex flex-col gap-4",_&&"max-w-[75%]",!_&&"w-full"),onAnimationEnd:()=>F(!0),children:L.jsx("div",{className:yn("rounded-medium text-default relative px-4 py-3",_&&"bg-default-100",t?.innerWrapper),children:_?L.jsx(pE,{content:h,classNames:t?.content}):L.jsxs("div",{className:"flex flex-col gap-2",children:[j&&L.jsx(eG,{}),ie&&L.jsx(XH,{shouldShimmer:A,liveUpdates:b,classNames:{liveUpdates:t?.liveUpdates}}),s.tasks&&s.tasks.length>0&&L.jsx(sl,{children:L.jsxs(Zs.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"rounded-medium text-large text-default-900 border-default flex w-fit flex-col gap-2 border p-4",children:[L.jsx("p",{children:"Execution plan"}),L.jsx(E$,{tasks:s.tasks})]},`${s.id}-execution-plan`)}),B&&P&&L.jsx(tG,{confirmationRequests:k,confirmationStates:P,onConfirm:W,onSkip:G,onBulkConfirm:ee,onBulkSkip:H,isLoading:A}),s.hasConfirmationBreak&&L.jsx("div",{className:"border-divider my-2 border-t"}),L.jsx(pE,{content:h,classNames:t?.content}),T&&L.jsxs("div",{"data-testid":"message-error",className:"bg-danger-50 border-danger-200 text-danger-700 rounded-medium flex items-center gap-2 border px-3 py-2",role:"alert",children:[L.jsx(ui,{icon:"heroicons:exclamation-triangle",className:"text-danger h-5 w-5 flex-shrink-0"}),L.jsx("span",{className:"text-small",children:T})]}),Y&&L.jsx(QH,{images:x}),te&&L.jsx(JH,{references:g}),$&&L.jsx(ZH,{content:h,serverId:d,message:s})]})})})})}),iG=S.forwardRef(({classNames:e={},...t},n)=>L.jsx(_z,{ref:n,className:"min-h-[50px]",classNames:e,...t}));function oG({isVisible:e,actions:t,sendMessage:n}){return L.jsx(sl,{children:e&&L.jsx(Zs.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{overflow:"hidden",opacity:0,height:0},transition:{type:"tween",ease:"easeInOut",duration:.3},children:L.jsx(g2,{className:yn("flex flex-nowrap gap-2 py-2 transition-all"),orientation:"horizontal",role:"group","aria-label":"Predefined message actions","aria-roledescription":"Horizontal scrollable list","data-testid":"horizontal-actions",children:L.jsx("div",{className:"m-auto flex gap-2",children:t.map((r,i)=>L.jsx(wr,{className:"flex",variant:"flat",onPress:()=>n(r),"aria-label":`Send message: ${r}`,children:L.jsx("p",{children:r})},i))})})},"horizontal-actions")})}function sG(){const e=s=>{const a=window.getComputedStyle(s),c=document.createElement("div");return c.style.whiteSpace="pre-wrap",c.style.wordWrap="break-word",c.style.position="absolute",c.style.visibility="hidden",c.style.font=a.font,c.style.lineHeight=a.lineHeight,c.style.padding=a.padding,c.style.border=a.border,c.style.boxSizing=a.boxSizing,c.style.width=`${s.clientWidth}px`,c},t=S.useCallback(s=>{const a=s.value.slice(0,s.selectionStart),c=e(s),d=window.getComputedStyle(s),h=document.createElement("span");h.textContent="​",c.textContent=a,c.appendChild(h),document.body.appendChild(c);const m=h.offsetTop,g=parseFloat(d.lineHeight||"16"),b=Math.round(m/g);return document.body.removeChild(c),b},[]),n=S.useCallback(s=>{const a=e(s),c=window.getComputedStyle(s);let d=s.value;(d.endsWith(`
78
+ `)||d==="")&&(d+="​"),a.textContent=d,document.body.appendChild(a);const h=a.offsetHeight,m=parseFloat(c.lineHeight||"16"),g=Math.round(h/m);return document.body.removeChild(a),g},[]),r=S.useCallback(s=>t(s)===0,[t]),i=S.useCallback(s=>{const a=t(s),c=n(s);return a===c-1},[t,n]);return{isCaretInFirstLine:r,isCaretInLastLine:i}}const aG=({followupMessages:e,submit:t,stopAnswering:n,isLoading:r,formProps:i,inputProps:s,sendButtonProps:a,customSendIcon:c,customStopIcon:d,history:h,isDisabled:m=!1})=>{const[g,b]=S.useState(""),[x,k]=S.useState([]),P=S.useRef(null),T=S.useRef(null),{isCaretInFirstLine:_,isCaretInLastLine:A}=sG(),M=S.useRef(Math.max(x.length-1,0)),F=S.useCallback(()=>{const G=x[M.current];b(G)},[x]),j=S.useCallback(()=>{M.current=Math.max(M.current-1,0),F()},[F]),$=S.useCallback(()=>{M.current=Math.min(x.length-1,M.current+1),F()},[x,F]),Y=S.useCallback(G=>{!g&&!G||m||(n(),t(G??g),k(ee=>{const H=ee.slice(0,-1);return H.push(G??g),H}),b(""),T?.current?.focus())},[g,n,t,m]),te=S.useCallback(G=>{G.target===P.current&&(G.preventDefault(),Y())},[Y]),ie=S.useCallback(G=>{if(T.current){if(G.key==="ArrowUp"){if(!_(T.current))return;G.preventDefault(),j()}if(G.key==="ArrowDown"){if(!A(T.current))return;G.preventDefault(),$()}G.key==="Enter"&&!G.shiftKey&&(G.preventDefault(),Y())}},[Y,_,A,$,j]),B=S.useCallback(()=>{n(),T?.current?.focus()},[n]),W=S.useCallback(G=>{k(ee=>{const H=[...ee];return H[M.current]=G,H}),b(G)},[]);return S.useEffect(()=>{const G=(h??[]).filter(ee=>ee.role===kf.User).map(ee=>ee.content);x.length-1!==G.length&&(G.push(""),M.current=Math.max(G.length-1,0),k(G))},[h,x.length]),L.jsxs("div",{className:"rounded-medium",children:[L.jsx(oG,{isVisible:!!e,actions:e??[],sendMessage:G=>Y(G)}),L.jsxs(H6,{className:"rounded-medium bg-default-100 dark:bg-default-100 flex w-full flex-row items-center pr-2 pl-0",validationBehavior:"native",onSubmit:te,ref:P,...i,children:[L.jsx(iG,{ref:T,"aria-label":"Message to the chat",classNames:{input:"text-medium text-default-foreground",inputWrapper:"!bg-transparent shadow-none group-data-[focus-visible=true]:ring-0 group-data-[focus-visible=true]:ring-offset-0 py-4"},name:"message",placeholder:m?"Please respond to pending confirmation...":"Enter a message here",autoFocus:!0,maxRows:16,minRows:1,value:g,onKeyDown:ie,onValueChange:W,"data-testid":"prompt-input-input","data-value":g,isDisabled:m,...s}),L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsx(el,{plugin:z2,component:"ChatOptionsForm",skeletonSize:{width:"40px",height:"40px"}}),L.jsx(wr,{isIconOnly:!0,"aria-label":r?"Stop answering":"Send message to the chat",color:!r&&!g?"default":"primary",isDisabled:!r&&(!g||m),radius:"full",size:"sm",type:r?"button":"submit",onPress:r?B:void 0,"data-testid":"send-message",...a,children:L.jsxs(L.Fragment,{children:[!r&&(c??L.jsx(ui,{className:yn(g?"text-primary-foreground":"text-default-600"),icon:"heroicons:arrow-up","data-testid":"prompt-input-send-icon",width:20})),r&&(d??L.jsx(ui,{className:"text-primary-foreground",icon:"heroicons:stop","data-testid":"prompt-input-stop-icon",width:20}))]})})]})]})]})};function lG({...e}){const t=HH();return L.jsx(aG,{...e,history:t})}function rx(){const{config:{customization:e}}=aw(),t=WH(),n=Za($=>$.lastMessageId),r=S$(n),i=Za($=>$.isLoading),s=Za($=>$.followupMessages),a=GH(),{sendMessage:c,stopAnswering:d}=Ow(),[h,m]=S.useState(!1),[g,b]=S.useState(!0),x=S.useRef(null),k=S.useMemo(()=>t.length>0,[t.length]),{client:P}=nw(),T=$=>{c($,P)},_=S.useCallback(()=>{if(!x.current)return;const te=x.current,ie=te.scrollHeight-te.scrollTop-te.clientHeight;m(ie>100),b(!1),ie>25?b(!1):b(!0)},[]);S.useEffect(()=>{b(!0),t.length===0&&m(!1)},[t.length]),S.useEffect(()=>{if(x.current&&g){const $=x.current;$.scrollTop=$.scrollHeight}},[_,r,g]),S.useEffect(()=>{const $=x.current;return $?.addEventListener("scroll",_),()=>{$?.removeEventListener("scroll",_)}},[_,k]);const A=S.useCallback(()=>{x.current&&(x.current.scrollTo({top:x.current.scrollHeight,behavior:"smooth"}),b(!0))},[]),M=S.useMemo(()=>L.jsx(g2,{className:"relative flex h-full flex-col gap-6 pb-8",ref:x,children:t.map($=>L.jsx(rG,{messageId:$},$))}),[t]),F=L.jsx("div",{className:"flex h-full w-full items-center justify-center",children:L.jsxs("div",{className:"flex w-full max-w-[600px] flex-col gap-4",children:[e?.welcome_message&&L.jsx(Hp,{className:"text-large text-default-900 text-center",remarkPlugins:[Gp],children:e?.welcome_message}),L.jsx("div",{className:"text-small text-default-500 text-center",children:"You can start a conversation by typing in the input box below."})]})}),j=k?M:F;return L.jsxs("div",{className:"relative flex h-full flex-col overflow-y-auto p-6 pb-8",children:[j,L.jsxs("div",{className:"relative mt-auto flex max-w-full flex-col gap-2 px-6",children:[L.jsx(wr,{variant:"solid",onPress:A,className:yn("absolute -top-16 left-1/2 z-10 -translate-x-1/2 transition-all duration-200 ease-out",h&&k?"opacity-100":"pointer-events-none opacity-0"),tabIndex:-1,startContent:L.jsx(ui,{icon:"heroicons:arrow-down"}),children:"Scroll to bottom"}),L.jsx(lG,{isLoading:i,submit:T,stopAnswering:d,followupMessages:s,isDisabled:a})]})]})}function uG(){const t=uI().conversationId;if(!t||typeof t!="string")throw new Error("HistoryRoute expects `conversationId` param to be present in the URL.");return L.jsx(rx,{})}function cG(e){return`/conversation/${e}`}function fG({children:e}){const t=hw(),n=hs(Ih(c=>Object.keys(c.conversations))),{selectConversation:r}=Ow(),s=uI().conversationId,a=s&&typeof s=="string"&&n.includes(s);return S.useEffect(()=>{if(a){r(s);return}const c=n.at(-1);if(!c)throw new Error("No conversation to navigate to");r(c),t(cG(c),{replace:!0})},[n,a,t,r,s]),e}const zw="ChatHistoryPlugin",P$={name:zw,components:{ChatHistory:S.lazy(()=>fi(()=>import("./ChatHistory-B2hLBYMJ.js"),__vite__mapDeps([10,3,4,2])))},routes:[{target:"/",path:"/conversation/:conversationId",element:L.jsx(uG,{})}],routeWrappers:[{target:"/",wrapper:e=>L.jsx(fG,{children:e})}]},jw="CredentialsLoginPlugin",T$={name:jw,components:{CredentialsLogin:S.lazy(()=>fi(()=>import("./CredentialsLogin-0g5-w2vR.js"),__vite__mapDeps([11,12,13,2])))}},_$="OAuth2LoginPlugin",dG=(e,t,n)=>({name:`${_$}_${e}`,components:{OAuth2Login:S.lazy(()=>fi(()=>import("./OAuth2Login-EmJ39PUe.js"),[]))},metadata:{provider:e,displayName:t,visualConfig:n}}),pG=S.lazy(()=>fi(()=>import("./Login-DSW_CNFu.js"),[]));function hG(){const e=Fw(jw),t=Pn.getActivePlugins().filter(r=>r.name.startsWith(_$)),n=e&&t.length>0;return L.jsx(S.Suspense,{children:L.jsxs(pG,{children:[L.jsx(el,{plugin:T$,component:"CredentialsLogin",disableSkeleton:!0}),n&&L.jsxs("div",{className:"my-2 flex items-center gap-2",children:[L.jsx("div",{className:"border-divider flex-1 border-t"}),L.jsx("span",{className:"text-small text-default-500",children:"or"}),L.jsx("div",{className:"border-divider flex-1 border-t"})]}),t.map((r,i)=>{const s=r.metadata?.provider,a=r.metadata?.displayName,c=r.metadata?.visualConfig;return L.jsxs("div",{children:[i>0&&L.jsx("div",{className:"my-2"}),L.jsx(el,{plugin:r,component:"OAuth2Login",componentProps:{provider:s,displayName:a,visualConfig:c},disableSkeleton:!0})]},r.name)})]})})}const mG=S.lazy(()=>fi(()=>import("./AuthGuard-Bq7UOJ7y.js"),__vite__mapDeps([14,12,13])));function gG({children:e}){return L.jsx(S.Suspense,{children:L.jsx(mG,{children:e})})}const I$="AuthPlugin",$$={name:I$,components:{LogoutButton:S.lazy(()=>fi(()=>import("./LogoutButton-BQE8NNsg.js"),__vite__mapDeps([15,12])))},routes:[{path:"/login",element:L.jsx(hG,{})}],routeWrappers:[{target:"global",wrapper:e=>L.jsx(gG,{children:e})}]};function vG(){return L.jsx("div",{className:yn("bg-background flex h-screen w-screen items-start justify-center"),children:L.jsxs("div",{className:"text-default-900 m-auto flex flex-col items-center gap-4",children:[L.jsx("p",{className:"text-large",children:"Something went wrong during chat initialization."}),L.jsx("p",{className:"text-small text-default-500",children:"Try refreshing the page."})]})})}function yG({children:e}){const{call:t,...n}=Qz("/api/config"),r=S.useMemo(()=>n.data?{config:n.data}:null,[n.data]);return S.useEffect(()=>{if(!n.data)return;const{feedback:i,user_settings:s,conversation_history:a,authentication:c,show_usage:d}=n.data;(i.like.enabled||i.dislike.enabled)&&Pn.activate(N2),s.form&&Pn.activate(F2),a&&Pn.activate(zw),c.enabled&&(Pn.activate(I$),c.auth_types.includes("credentials")&&Pn.activate(jw),c.auth_types.includes("oauth2")&&c.oauth2_providers&&c.oauth2_providers.forEach(h=>{const m=dG(h.name,h.display_name||h.name,{color:h.color,buttonColor:h.button_color,textColor:h.text_color,iconSvg:h.icon_svg});Pn.register(m),Pn.activate(m.name)})),d&&Pn.activate(k$),Pn.activate(B2)},[n.data]),!n.data&&!n.error&&!n.isLoading&&t(),S.useEffect(()=>{document.title=t8},[]),n.isLoading?L.jsx(tI,{}):n.error||!r?L.jsx(vG,{}):L.jsx(j2.Provider,{value:r,children:L.jsx(X7,{shouldStoreHistory:r.config.conversation_history,children:e})})}function bG(e,t){return kh(e,n=>{for(const r of t)for(const i of r.routes??[]){if(!i.target){n.push(i);continue}const s=A$(n,i.target);if(!s){console.warn(`Target route "${i.target}" not found`);continue}s.children||(s.children=[]),s.children.push({path:i.path,element:i.element,children:i.children})}})}function A$(e,t){for(const n of e){if(n.path===t)return n;if(n.children){const r=A$(n.children,t);if(r)return r}}}function xG(e,t){const n=r=>r.map(i=>{const s=i.path??"",a=t.filter(h=>h.target==="global"||h.target===s);let c=i.element;for(const{wrapper:h}of a)c=h(c);const d={...i,element:c};return i.children&&(d.children=n(i.children)),d});return n(e)}function wG(){const e=n=>Pn.subscribe(n),t=()=>Pn.getActivePlugins();return S.useSyncExternalStore(e,t)}function SG(){const e=S.useContext(b2);if(!e)throw new Error("useThemeContext must be used within a ThemeContextProvider");return e}const kG=e=>typeof e=="boolean"||e instanceof Boolean,CG=e=>typeof e=="number"||e instanceof Number,EG=e=>typeof e=="bigint"||e instanceof BigInt,R$=e=>!!e&&e instanceof Date,PG=e=>typeof e=="string"||e instanceof String,TG=e=>Array.isArray(e),_G=e=>typeof e=="object"&&e!==null,L$=e=>!!e&&e instanceof Object&&typeof e=="function";function fv(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function IG(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function M$(e){let{field:t,value:n,data:r,lastElement:i,openBracket:s,closeBracket:a,level:c,style:d,shouldExpandNode:h,clickToExpandNode:m,outerRef:g,beforeExpandChange:b}=e;const x=S.useRef(!1),[k,P]=S.useState(()=>h(c,n,t)),T=S.useRef(null);S.useEffect(()=>{x.current?P(h(c,n,t)):x.current=!0},[h]);const _=S.useId();if(r.length===0)return $G({field:t,openBracket:s,closeBracket:a,lastElement:i,style:d});const A=k?d.collapseIcon:d.expandIcon,M=k?d.ariaLables.collapseJson:d.ariaLables.expandJson,F=c+1,j=r.length-1,$=ie=>{k!==ie&&(!b||b({level:c,value:n,field:t,newExpandValue:ie}))&&P(ie)},Y=ie=>{if(ie.key==="ArrowRight"||ie.key==="ArrowLeft")ie.preventDefault(),$(ie.key==="ArrowRight");else if(ie.key==="ArrowUp"||ie.key==="ArrowDown"){ie.preventDefault();const B=ie.key==="ArrowUp"?-1:1;if(!g.current)return;const W=g.current.querySelectorAll("[role=button]");let G=-1;for(let H=0;H<W.length;H++)if(W[H].tabIndex===0){G=H;break}if(G<0)return;const ee=(G+B+W.length)%W.length;W[G].tabIndex=-1,W[ee].tabIndex=0,W[ee].focus()}},te=()=>{var ie;$(!k);const B=T.current;if(!B)return;const W=(ie=g.current)===null||ie===void 0?void 0:ie.querySelector('[role=button][tabindex="0"]');W&&(W.tabIndex=-1),B.tabIndex=0,B.focus()};return S.createElement("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":k,"aria-selected":void 0},S.createElement("span",{className:A,onClick:te,onKeyDown:Y,role:"button","aria-label":M,"aria-expanded":k,"aria-controls":k?_:void 0,ref:T,tabIndex:c===0?0:-1}),(t||t==="")&&(m?S.createElement("span",{className:d.clickableLabel,onClick:te,onKeyDown:Y},fv(t,d.quotesForFieldNames),":"):S.createElement("span",{className:d.label},fv(t,d.quotesForFieldNames),":")),S.createElement("span",{className:d.punctuation},s),k?S.createElement("ul",{id:_,role:"group",className:d.childFieldsContainer},r.map((ie,B)=>S.createElement(D$,{key:ie[0]||B,field:ie[0],value:ie[1],style:d,lastElement:B===j,level:F,shouldExpandNode:h,clickToExpandNode:m,outerRef:g}))):S.createElement("span",{className:d.collapsedContent,onClick:te,onKeyDown:Y}),S.createElement("span",{className:d.punctuation},a),!i&&S.createElement("span",{className:d.punctuation},","))}function $G(e){let{field:t,openBracket:n,closeBracket:r,lastElement:i,style:s}=e;return S.createElement("div",{className:s.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&S.createElement("span",{className:s.label},fv(t,s.quotesForFieldNames),":"),S.createElement("span",{className:s.punctuation},n),S.createElement("span",{className:s.punctuation},r),!i&&S.createElement("span",{className:s.punctuation},","))}function AG(e){let{field:t,value:n,style:r,lastElement:i,shouldExpandNode:s,clickToExpandNode:a,level:c,outerRef:d,beforeExpandChange:h}=e;return M$({field:t,value:n,lastElement:i||!1,level:c,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:s,clickToExpandNode:a,data:Object.keys(n).map(m=>[m,n[m]]),outerRef:d,beforeExpandChange:h})}function RG(e){let{field:t,value:n,style:r,lastElement:i,level:s,shouldExpandNode:a,clickToExpandNode:c,outerRef:d,beforeExpandChange:h}=e;return M$({field:t,value:n,lastElement:i||!1,level:s,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:a,clickToExpandNode:c,data:n.map(m=>[void 0,m]),outerRef:d,beforeExpandChange:h})}function LG(e){let{field:t,value:n,style:r,lastElement:i}=e,s,a=r.otherValue;return n===null?(s="null",a=r.nullValue):n===void 0?(s="undefined",a=r.undefinedValue):PG(n)?(s=IG(n,!r.noQuotesForStringValues,r.stringifyStringValues),a=r.stringValue):kG(n)?(s=n?"true":"false",a=r.booleanValue):CG(n)?(s=n.toString(),a=r.numberValue):EG(n)?(s=`${n.toString()}n`,a=r.numberValue):R$(n)?s=n.toISOString():L$(n)?s="function() { }":s=n.toString(),S.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&S.createElement("span",{className:r.label},fv(t,r.quotesForFieldNames),":"),S.createElement("span",{className:a},s),!i&&S.createElement("span",{className:r.punctuation},","))}function D$(e){const t=e.value;return TG(t)?S.createElement(RG,Object.assign({},e)):_G(t)&&!R$(t)&&!L$(t)?S.createElement(AG,Object.assign({},e)):S.createElement(LG,Object.assign({},e))}var Nr={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti"};const MG={collapseJson:"collapse JSON",expandJson:"expand JSON"},eo={container:Nr["container-light"],basicChildStyle:Nr["basic-element-style"],childFieldsContainer:Nr["child-fields-container"],label:Nr["label-light"],clickableLabel:Nr["clickable-label-light"],nullValue:Nr["value-null-light"],undefinedValue:Nr["value-undefined-light"],stringValue:Nr["value-string-light"],booleanValue:Nr["value-boolean-light"],numberValue:Nr["value-number-light"],otherValue:Nr["value-other-light"],punctuation:Nr["punctuation-light"],collapseIcon:Nr["collapse-icon-light"],expandIcon:Nr["expand-icon-light"],collapsedContent:Nr["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:MG,stringifyStringValues:!1},Mp=()=>!0,Tg=e=>{let{data:t,style:n=eo,shouldExpandNode:r=Mp,clickToExpandNode:i=!1,beforeExpandChange:s,...a}=e;const c=S.useRef(null);return S.createElement("div",Object.assign({"aria-label":"JSON view"},a,{className:n.container,ref:c,role:"tree"}),S.createElement(D$,{value:t,style:{...eo,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:i,outerRef:c,beforeExpandChange:s}))};function DG(e){return typeof e=="string"?e:`map:${String(e)}`}function Ja(e,t=new WeakSet){if(e===null||typeof e!="object")return typeof e=="bigint"?e.toString():typeof e>"u"||typeof e=="function"?void 0:e;if(t.has(e))return"[Circular]";if(t.add(e),e instanceof Date)return e.toISOString();if(e instanceof Map){const r={};for(const[i,s]of e.entries())r[DG(i)]=Ja(s,t);return r}if(e instanceof Set)return Array.from(e).map(r=>Ja(r,t));if(Array.isArray(e))return e.map(r=>Ja(r,t));const n={};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=Ja(e[r],t);i!==void 0&&(n[r]=i)}return n}const _g={container:"max-w-full overflow-auto rounded bg-default p-2 font-mono font-normal",label:`${eo.label} !text-default-900`,collapseIcon:`${eo.collapseIcon} !text-default-900`,expandIcon:`${eo.expandIcon} !text-default-900`,collapsedContent:`${eo.collapsedContent} !text-default-900`,punctuation:"!text-default-900",stringValue:`${eo.stringValue} !text-green-600`,otherValue:`${eo.otherValue} !text-purple-500`,numberValue:`${eo.numberValue}`,nullValue:`${eo.nullValue}`,booleanValue:`${eo.booleanValue} !text-yellow-600`,undefinedValue:`${eo.undefinedValue}`};function NG({isOpen:e}){const t=Za(s=>s.history),n=Za(s=>s.followupMessages),r=Za(s=>s.eventsLog),i=hs(Ih(s=>s.computed.getContext()));return L.jsx(sl,{children:e&&L.jsx(Zs.div,{initial:{scale:.6,opacity:0,width:0},animate:{scale:1,opacity:1,width:"100%"},exit:{scale:.6,opacity:0,width:0},className:"w-full max-w-[33%] overflow-hidden px-4",children:L.jsxs("div",{className:"rounded-medium border-small border-divider mr-4 h-full overflow-auto","data-testid":"debug-panel",children:[L.jsx("div",{className:"border-b-small border-divider min-h-16 p-4 text-lg font-bold",children:L.jsx("span",{children:"Debug"})}),L.jsxs(Lk,{className:"max-h-full",children:[L.jsx(bp,{"aria-label":"Context",title:"Context",children:L.jsx("div",{className:"max-h-[664px] overflow-auto",children:L.jsx(Tg,{data:Ja(i)??{},shouldExpandNode:Mp,style:_g})})},"context"),L.jsx(bp,{"aria-label":"History",title:"History",children:L.jsx("div",{className:"max-h-[664px] overflow-auto",children:L.jsx(Tg,{data:Ja(t)??{},shouldExpandNode:Mp,style:_g})})},"history"),L.jsx(bp,{"aria-label":"Followup messages",title:"Followup messages",children:L.jsx("div",{className:"max-h-[664px] overflow-auto",children:L.jsx(Tg,{data:Ja(n)??{},shouldExpandNode:Mp,style:_g})})},"folowup-messages"),L.jsx(bp,{"aria-label":"Events",title:"Events",children:r.length===0?L.jsx("p",{children:"No events in the log"}):L.jsx(Lk,{children:r.map((s,a)=>L.jsx(bp,{"aria-label":`Events for response number ${a+1}`,title:`Events for response number ${a+1}`,children:L.jsx(Tg,{data:Ja(s)??{},shouldExpandNode:Mp,style:_g})},`events-${a+1}`))})},"events")]})]})})})}function N$(e){return OG(e)?!0:zG(e)&&FG(e)}function OG(e){try{return new URL(e),!0}catch{return!1}}function FG(e){try{const t="http://base.local";return new URL(e,t),!0}catch{return!1}}function zG(e){return/^[./~\w%-][\w./~%-]*$/.test(e)}function jG({children:e,title:t,subTitle:n,logo:r,classNames:i}){const s=Fw(zw),{config:a}=aw(),{newConversation:c,stopAnswering:d}=Ow(),{setTheme:h,theme:m}=SG(),[g,b]=S.useState(!1),x=()=>{h(m===To.DARK?To.LIGHT:To.DARK)},k=S.useCallback(()=>{d(),c()},[c,d]),P=s?.isActivated;return L.jsxs("div",{className:"flex h-full min-h-[48rem] justify-center py-4",children:[L.jsx(el,{plugin:P$,component:"ChatHistory",disableSkeleton:!0}),L.jsxs("div",{className:yn("flex grow flex-col px-4 sm:max-w-[1200px]",P&&"pl-0"),children:[L.jsxs("header",{className:yn("border-small border-divider flex h-16 min-h-16 items-center justify-between gap-2 rounded-none px-4 py-3",i?.header,P?"rounded-tr-medium":"rounded-t-medium"),children:[L.jsxs("div",{className:"flex w-full items-center gap-2",children:[N$(r)?L.jsx("img",{src:r,className:"h-8 w-8",width:32,height:32}):L.jsx("div",{className:"bg-foreground flex h-8 w-8 items-center justify-center rounded-full",children:r}),L.jsxs("div",{className:"w-full min-w-[120px] sm:w-auto",children:[L.jsx("div",{className:yn("text-small text-foreground truncate leading-5 font-semibold",i?.title),children:t}),L.jsx("div",{className:yn("text-small text-default-500 truncate leading-5 font-normal",i?.subTitle),children:n})]})]}),L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsx(el,{plugin:$$,component:"LogoutButton",skeletonSize:{width:"40px",height:"40px"}}),L.jsx(el,{plugin:V2,component:"ShareButton",skeletonSize:{width:"40px",height:"40px"}}),!P&&L.jsx(jg,{content:"Clear chat",placement:"bottom",children:L.jsx(wr,{isIconOnly:!0,"aria-label":"Clear chat",variant:"ghost",onPress:k,"data-testid":"layout-clear-chat-button",children:L.jsx(ui,{icon:"heroicons:arrow-path"})})}),L.jsx(jg,{content:"Change theme",placement:"bottom",children:L.jsx(wr,{isIconOnly:!0,"aria-label":`Change theme to ${m===To.DARK?"light":"dark"}`,variant:"ghost",onPress:x,"data-testid":"layout-toggle-theme-button",children:m===To.DARK?L.jsx(ui,{icon:"heroicons:sun"}):L.jsx(ui,{icon:"heroicons:moon"})})}),a.debug_mode&&L.jsx(jg,{content:"Toggle debug panel",placement:"bottom",children:L.jsxs(wr,{isIconOnly:!0,"aria-label":`${g?"Open":"Close"} debug panel`,variant:"ghost",onPress:()=>b(T=>!T),"data-testid":"layout-debug-button",children:[L.jsx(ui,{icon:"heroicons:bug-ant"}),g&&L.jsx("div",{className:"bg-default-500 absolute top-1/2 right-0 left-0 h-0.5 -rotate-45"})]})})]})]}),L.jsx("main",{className:"flex h-full overflow-hidden",children:L.jsx("div",{className:yn("border-divider flex h-full w-full flex-col gap-4 rounded-none border-0 border-r border-b border-l py-3",i?.container,P?"rounded-br-medium":"rounded-b-medium"),children:e})})]}),L.jsx(NG,{isOpen:g})]})}const hE="generated-favicon";function BG(){const{config:{customization:e}}=aw(),t=S.useMemo(()=>e?.header?.logo??Jz,[e?.header?.logo]),n=S.useMemo(()=>e?.header?.title??Zz,[e?.header?.title]),r=S.useMemo(()=>e?.header?.subtitle??e8,[e?.header?.subtitle]),i=S.useMemo(()=>e?.meta?.favicon??t,[e?.meta?.favicon,t]),s=S.useMemo(()=>e?.meta?.page_title??n,[e?.meta?.page_title,n]);S.useLayoutEffect(()=>{document.title=s},[s]);const a=c=>{const d=document.createElement("link");d.rel="icon",d.href=c,d.id=hE,document.head.appendChild(d)};return S.useLayoutEffect(()=>{if(document.querySelectorAll("link[rel*='icon']").forEach(d=>d.remove()),N$(i))a(i);else{const d=`
79
+ <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64">
80
+ <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle"
81
+ font-family="sans-serif" font-size="48">${i}</text>
82
+ </svg>
83
+ `,h=new TextEncoder().encode(d),m=Array.from(h).map(x=>String.fromCharCode(x)).join(""),b=`data:image/svg+xml;base64,${btoa(m)}`;a(b)}return()=>{document.querySelector(`#${hE}`)?.remove()}},[i]),L.jsx("div",{className:"bg-background flex h-screen w-screen items-start justify-center",children:L.jsx("div",{className:"h-full w-full max-w-full",children:L.jsx(jG,{subTitle:r,title:n,logo:t,children:L.jsx(Bj,{})})})})}const VG=[{path:"/",element:L.jsx(BG,{}),children:[{index:!0,element:L.jsx(rx,{})},{path:"*",element:L.jsx(rx,{})}]}];function UG(){const e=wG(),t=S.useMemo(()=>{const n=bG(VG,e),r=e.flatMap(i=>i.routeWrappers??[]);return xG(n,r)},[e]);return _j(t)}Pn.register(O2);Pn.register(z2);Pn.register(V2);Pn.register(P$);Pn.register($$);Pn.register(C$);Pn.register(T$);A2(["heroicons:check","heroicons:clipboard","heroicons:arrow-path","heroicons:sun","heroicons:moon","heroicons:arrow-down","heroicons:arrow-up","heroicons:chevron-down","heroicons:cog-6-tooth","heroicons:bug-ant","heroicons:trash"]);pL.createRoot(document.getElementById("root")).render(L.jsx(S.StrictMode,{children:L.jsx(_O,{children:L.jsx(Xz,{baseUrl:x2,children:L.jsx(i8,{children:L.jsx(yG,{children:L.jsx(fB,{children:L.jsx(UG,{})})})})})})}));export{Iz as $,DM as A,ZF as B,P$ as C,jg as D,XF as E,rq as F,B6 as G,Au as H,ui as I,Tn as J,Pf as K,$f as L,Tf as M,H5 as N,ci as O,ew as P,oa as Q,$i as R,Sh as S,Zg as T,ol as U,U_ as V,Tu as W,Pu as X,QG as Y,Bt as Z,fi as _,Ow as a,m6 as a$,ds as a0,mO as a1,Ae as a2,Ef as a3,tv as a4,He as a5,kO as a6,Q_ as a7,u6 as a8,e6 as a9,RT as aA,g6 as aB,rO as aC,bE as aD,hw as aE,Ih as aF,Zs as aG,pC as aH,cG as aI,_5 as aJ,p6 as aK,i2 as aL,$5 as aM,k6 as aN,vk as aO,r2 as aP,eq as aQ,Mk as aR,yE as aS,XL as aT,nl as aU,ph as aV,U2 as aW,sn as aX,Js as aY,ZG as aZ,h6 as a_,kv as aa,Z_ as ab,W0 as ac,Su as ad,_E as ae,qx as af,qG as ag,WG as ah,w6 as ai,vL as aj,bk as ak,bL as al,F_ as am,R6 as an,g2 as ao,CO as ap,sl as aq,dv as ar,D2 as as,yn as at,n2 as au,oq as av,Ja as aw,pv as ax,ux as ay,X5 as az,aw as b,Tk as b0,Bn as b1,XG as b2,hh as b3,JF as b4,Eu as b5,T1 as b6,DE as b7,HG as b8,xh as b9,lx as ba,GG as bb,KG as bc,zE as bd,c2 as be,cx as bf,Dt as bg,cO as bh,JG as bi,ku as bj,Pk as bk,hp as bl,kh as bm,cz as bn,ll as bo,Xz as bp,x2 as bq,tI as br,iq as bs,eI as bt,oC as bu,C7 as bv,g5 as bw,nN as bx,$4 as by,Qz as c,wr as d,jz as e,Rz as f,ig as g,Za as h,hs as i,L as j,wh as k,jr as l,Uz as m,Af as n,TO as o,Pn as p,uk as q,S as r,S6 as s,er as t,Kz as u,nn as v,a6 as w,d6 as x,Jx as y,Zx as z};