@learnpack/learnpack 5.0.186 → 5.0.191

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.
@@ -0,0 +1,273 @@
1
+ var lw=Object.defineProperty;var ow=(e,t,i)=>t in e?lw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var nh=(e,t,i)=>ow(e,typeof t!="symbol"?t+"":t,i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(l){if(l.ep)return;l.ep=!0;const u=i(l);fetch(l.href,u)}})();function Bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ih={exports:{}},Ds={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var U0;function uw(){if(U0)return Ds;U0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,l,u){var c=null;if(u!==void 0&&(c=""+u),l.key!==void 0&&(c=""+l.key),"key"in l){u={};for(var f in l)f!=="key"&&(u[f]=l[f])}else u=l;return l=u.ref,{$$typeof:e,type:a,key:c,ref:l!==void 0?l:null,props:u}}return Ds.Fragment=t,Ds.jsx=i,Ds.jsxs=i,Ds}var V0;function cw(){return V0||(V0=1,ih.exports=uw()),ih.exports}var A=cw(),rh={exports:{}},Ee={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var H0;function fw(){if(H0)return Ee;H0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function v(S){return S===null||typeof S!="object"?null:(S=y&&S[y]||S["@@iterator"],typeof S=="function"?S:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function R(S,X,te){this.props=S,this.context=X,this.refs=E,this.updater=te||b}R.prototype.isReactComponent={},R.prototype.setState=function(S,X){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,X,"setState")},R.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function C(){}C.prototype=R.prototype;function M(S,X,te){this.props=S,this.context=X,this.refs=E,this.updater=te||b}var O=M.prototype=new C;O.constructor=M,w(O,R.prototype),O.isPureReactComponent=!0;var V=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},L=Object.prototype.hasOwnProperty;function Z(S,X,te,k,oe,Te){return te=Te.ref,{$$typeof:e,type:S,key:X,ref:te!==void 0?te:null,props:Te}}function Q(S,X){return Z(S.type,X,void 0,void 0,void 0,S.props)}function ee(S){return typeof S=="object"&&S!==null&&S.$$typeof===e}function fe(S){var X={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(te){return X[te]})}var ie=/\/+/g;function ne(S,X){return typeof S=="object"&&S!==null&&S.key!=null?fe(""+S.key):X.toString(36)}function ue(){}function ae(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ue,ue):(S.status="pending",S.then(function(X){S.status==="pending"&&(S.status="fulfilled",S.value=X)},function(X){S.status==="pending"&&(S.status="rejected",S.reason=X)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function le(S,X,te,k,oe){var Te=typeof S;(Te==="undefined"||Te==="boolean")&&(S=null);var ce=!1;if(S===null)ce=!0;else switch(Te){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(S.$$typeof){case e:case t:ce=!0;break;case m:return ce=S._init,le(ce(S._payload),X,te,k,oe)}}if(ce)return oe=oe(S),ce=k===""?"."+ne(S,0):k,V(oe)?(te="",ce!=null&&(te=ce.replace(ie,"$&/")+"/"),le(oe,X,te,"",function(_t){return _t})):oe!=null&&(ee(oe)&&(oe=Q(oe,te+(oe.key==null||S&&S.key===oe.key?"":(""+oe.key).replace(ie,"$&/")+"/")+ce)),X.push(oe)),1;ce=0;var ct=k===""?".":k+":";if(V(S))for(var De=0;De<S.length;De++)k=S[De],Te=ct+ne(k,De),ce+=le(k,X,te,Te,oe);else if(De=v(S),typeof De=="function")for(S=De.call(S),De=0;!(k=S.next()).done;)k=k.value,Te=ct+ne(k,De++),ce+=le(k,X,te,Te,oe);else if(Te==="object"){if(typeof S.then=="function")return le(ae(S),X,te,k,oe);throw X=String(S),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ce}function q(S,X,te){if(S==null)return S;var k=[],oe=0;return le(S,k,"","",function(Te){return X.call(te,Te,oe++)}),k}function $(S){if(S._status===-1){var X=S._result;X=X(),X.then(function(te){(S._status===0||S._status===-1)&&(S._status=1,S._result=te)},function(te){(S._status===0||S._status===-1)&&(S._status=2,S._result=te)}),S._status===-1&&(S._status=0,S._result=X)}if(S._status===1)return S._result.default;throw S._result}var re=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)};function we(){}return Ee.Children={map:q,forEach:function(S,X,te){q(S,function(){X.apply(this,arguments)},te)},count:function(S){var X=0;return q(S,function(){X++}),X},toArray:function(S){return q(S,function(X){return X})||[]},only:function(S){if(!ee(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},Ee.Component=R,Ee.Fragment=i,Ee.Profiler=l,Ee.PureComponent=M,Ee.StrictMode=a,Ee.Suspense=p,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(S){return B.H.useMemoCache(S)}},Ee.cache=function(S){return function(){return S.apply(null,arguments)}},Ee.cloneElement=function(S,X,te){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var k=w({},S.props),oe=S.key,Te=void 0;if(X!=null)for(ce in X.ref!==void 0&&(Te=void 0),X.key!==void 0&&(oe=""+X.key),X)!L.call(X,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&X.ref===void 0||(k[ce]=X[ce]);var ce=arguments.length-2;if(ce===1)k.children=te;else if(1<ce){for(var ct=Array(ce),De=0;De<ce;De++)ct[De]=arguments[De+2];k.children=ct}return Z(S.type,oe,void 0,void 0,Te,k)},Ee.createContext=function(S){return S={$$typeof:c,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:u,_context:S},S},Ee.createElement=function(S,X,te){var k,oe={},Te=null;if(X!=null)for(k in X.key!==void 0&&(Te=""+X.key),X)L.call(X,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(oe[k]=X[k]);var ce=arguments.length-2;if(ce===1)oe.children=te;else if(1<ce){for(var ct=Array(ce),De=0;De<ce;De++)ct[De]=arguments[De+2];oe.children=ct}if(S&&S.defaultProps)for(k in ce=S.defaultProps,ce)oe[k]===void 0&&(oe[k]=ce[k]);return Z(S,Te,void 0,void 0,null,oe)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(S){return{$$typeof:f,render:S}},Ee.isValidElement=ee,Ee.lazy=function(S){return{$$typeof:m,_payload:{_status:-1,_result:S},_init:$}},Ee.memo=function(S,X){return{$$typeof:d,type:S,compare:X===void 0?null:X}},Ee.startTransition=function(S){var X=B.T,te={};B.T=te;try{var k=S(),oe=B.S;oe!==null&&oe(te,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(we,re)}catch(Te){re(Te)}finally{B.T=X}},Ee.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Ee.use=function(S){return B.H.use(S)},Ee.useActionState=function(S,X,te){return B.H.useActionState(S,X,te)},Ee.useCallback=function(S,X){return B.H.useCallback(S,X)},Ee.useContext=function(S){return B.H.useContext(S)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(S,X){return B.H.useDeferredValue(S,X)},Ee.useEffect=function(S,X,te){var k=B.H;if(typeof te=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return k.useEffect(S,X)},Ee.useId=function(){return B.H.useId()},Ee.useImperativeHandle=function(S,X,te){return B.H.useImperativeHandle(S,X,te)},Ee.useInsertionEffect=function(S,X){return B.H.useInsertionEffect(S,X)},Ee.useLayoutEffect=function(S,X){return B.H.useLayoutEffect(S,X)},Ee.useMemo=function(S,X){return B.H.useMemo(S,X)},Ee.useOptimistic=function(S,X){return B.H.useOptimistic(S,X)},Ee.useReducer=function(S,X,te){return B.H.useReducer(S,X,te)},Ee.useRef=function(S){return B.H.useRef(S)},Ee.useState=function(S){return B.H.useState(S)},Ee.useSyncExternalStore=function(S,X,te){return B.H.useSyncExternalStore(S,X,te)},Ee.useTransition=function(){return B.H.useTransition()},Ee.version="19.1.0",Ee}var P0;function zd(){return P0||(P0=1,rh.exports=fw()),rh.exports}var _=zd();const qh=Bd(_);var ah={exports:{}},Ms={},sh={exports:{}},lh={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var q0;function hw(){return q0||(q0=1,function(e){function t(q,$){var re=q.length;q.push($);e:for(;0<re;){var we=re-1>>>1,S=q[we];if(0<l(S,$))q[we]=$,q[re]=S,re=we;else break e}}function i(q){return q.length===0?null:q[0]}function a(q){if(q.length===0)return null;var $=q[0],re=q.pop();if(re!==$){q[0]=re;e:for(var we=0,S=q.length,X=S>>>1;we<X;){var te=2*(we+1)-1,k=q[te],oe=te+1,Te=q[oe];if(0>l(k,re))oe<S&&0>l(Te,k)?(q[we]=Te,q[oe]=re,we=oe):(q[we]=k,q[te]=re,we=te);else if(oe<S&&0>l(Te,re))q[we]=Te,q[oe]=re,we=oe;else break e}}return $}function l(q,$){var re=q.sortIndex-$.sortIndex;return re!==0?re:q.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],d=[],m=1,y=null,v=3,b=!1,w=!1,E=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function V(q){for(var $=i(d);$!==null;){if($.callback===null)a(d);else if($.startTime<=q)a(d),$.sortIndex=$.expirationTime,t(p,$);else break;$=i(d)}}function B(q){if(E=!1,V(q),!w)if(i(p)!==null)w=!0,L||(L=!0,ne());else{var $=i(d);$!==null&&le(B,$.startTime-q)}}var L=!1,Z=-1,Q=5,ee=-1;function fe(){return R?!0:!(e.unstable_now()-ee<Q)}function ie(){if(R=!1,L){var q=e.unstable_now();ee=q;var $=!0;try{e:{w=!1,E&&(E=!1,M(Z),Z=-1),b=!0;var re=v;try{t:{for(V(q),y=i(p);y!==null&&!(y.expirationTime>q&&fe());){var we=y.callback;if(typeof we=="function"){y.callback=null,v=y.priorityLevel;var S=we(y.expirationTime<=q);if(q=e.unstable_now(),typeof S=="function"){y.callback=S,V(q),$=!0;break t}y===i(p)&&a(p),V(q)}else a(p);y=i(p)}if(y!==null)$=!0;else{var X=i(d);X!==null&&le(B,X.startTime-q),$=!1}}break e}finally{y=null,v=re,b=!1}$=void 0}}finally{$?ne():L=!1}}}var ne;if(typeof O=="function")ne=function(){O(ie)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,ae=ue.port2;ue.port1.onmessage=ie,ne=function(){ae.postMessage(null)}}else ne=function(){C(ie,0)};function le(q,$){Z=C(function(){q(e.unstable_now())},$)}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(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(q){switch(v){case 1:case 2:case 3:var $=3;break;default:$=v}var re=v;v=$;try{return q()}finally{v=re}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(q,$){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var re=v;v=q;try{return $()}finally{v=re}},e.unstable_scheduleCallback=function(q,$,re){var we=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?we+re:we):re=we,q){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=re+S,q={id:m++,callback:$,priorityLevel:q,startTime:re,expirationTime:S,sortIndex:-1},re>we?(q.sortIndex=re,t(d,q),i(p)===null&&q===i(d)&&(E?(M(Z),Z=-1):E=!0,le(B,re-we))):(q.sortIndex=S,t(p,q),w||b||(w=!0,L||(L=!0,ne()))),q},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function(q){var $=v;return function(){var re=v;v=$;try{return q.apply(this,arguments)}finally{v=re}}}}(lh)),lh}var F0;function dw(){return F0||(F0=1,sh.exports=hw()),sh.exports}var oh={exports:{}},Tt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var I0;function pw(){if(I0)return Tt;I0=1;var e=zd();function t(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");function u(p,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:p,containerInfo:d,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Tt.createPortal=function(p,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return u(p,d,null,m)},Tt.flushSync=function(p){var d=c.T,m=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=d,a.p=m,a.d.f()}},Tt.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,a.d.C(p,d))},Tt.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},Tt.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?a.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:b}):m==="script"&&a.d.X(p,{crossOrigin:y,integrity:v,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Tt.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=f(d.as,d.crossOrigin);a.d.M(p,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&a.d.M(p)},Tt.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin);a.d.L(p,m,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Tt.preloadModule=function(p,d){if(typeof p=="string")if(d){var m=f(d.as,d.crossOrigin);a.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else a.d.m(p)},Tt.requestFormReset=function(p){a.d.r(p)},Tt.unstable_batchedUpdates=function(p,d){return p(d)},Tt.useFormState=function(p,d,m){return c.H.useFormState(p,d,m)},Tt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Tt.version="19.1.0",Tt}var Y0;function mw(){if(Y0)return oh.exports;Y0=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(),oh.exports=pw(),oh.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var G0;function gw(){if(G0)return Ms;G0=1;var e=dw(),t=zd(),i=mw();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function u(n){var r=n,s=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(s=r.return),n=r.return;while(n)}return r.tag===3?s:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(u(n)!==n)throw Error(a(188))}function p(n){var r=n.alternate;if(!r){if(r=u(n),r===null)throw Error(a(188));return r!==n?null:n}for(var s=n,o=r;;){var h=s.return;if(h===null)break;var g=h.alternate;if(g===null){if(o=h.return,o!==null){s=o;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===s)return f(h),n;if(g===o)return f(h),r;g=g.sibling}throw Error(a(188))}if(s.return!==o.return)s=h,o=g;else{for(var x=!1,T=h.child;T;){if(T===s){x=!0,s=h,o=g;break}if(T===o){x=!0,o=h,s=g;break}T=T.sibling}if(!x){for(T=g.child;T;){if(T===s){x=!0,s=g,o=h;break}if(T===o){x=!0,o=g,s=h;break}T=T.sibling}if(!x)throw Error(a(189))}}if(s.alternate!==o)throw Error(a(190))}if(s.tag!==3)throw Error(a(188));return s.stateNode.current===s?n:r}function d(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=d(n),r!==null)return r;n=n.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),O=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function ne(n){return n===null||typeof n!="object"?null:(n=ie&&n[ie]||n["@@iterator"],typeof n=="function"?n:null)}var ue=Symbol.for("react.client.reference");function ae(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ue?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case w:return"Fragment";case R:return"Profiler";case E:return"StrictMode";case B:return"Suspense";case L:return"SuspenseList";case ee:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case b:return"Portal";case O:return(n.displayName||"Context")+".Provider";case M:return(n._context.displayName||"Context")+".Consumer";case V:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Z:return r=n.displayName||null,r!==null?r:ae(n.type)||"Memo";case Q:r=n._payload,n=n._init;try{return ae(n(r))}catch{}}return null}var le=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},we=[],S=-1;function X(n){return{current:n}}function te(n){0>S||(n.current=we[S],we[S]=null,S--)}function k(n,r){S++,we[S]=n.current,n.current=r}var oe=X(null),Te=X(null),ce=X(null),ct=X(null);function De(n,r){switch(k(ce,r),k(Te,n),k(oe,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?h0(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=h0(r),n=d0(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}te(oe),k(oe,n)}function _t(){te(oe),te(Te),te(ce)}function An(n){n.memoizedState!==null&&k(ct,n);var r=oe.current,s=d0(r,n.type);r!==s&&(k(Te,n),k(oe,s))}function Fn(n){Te.current===n&&(te(oe),te(Te)),ct.current===n&&(te(ct),As._currentValue=re)}var Da=Object.prototype.hasOwnProperty,Ma=e.unstable_scheduleCallback,Na=e.unstable_cancelCallback,Tl=e.unstable_shouldYield,Cl=e.unstable_requestPaint,It=e.unstable_now,Hu=e.unstable_getCurrentPriorityLevel,La=e.unstable_ImmediatePriority,ja=e.unstable_UserBlockingPriority,xr=e.unstable_NormalPriority,Pu=e.unstable_LowPriority,Al=e.unstable_IdlePriority,qu=e.log,Fu=e.unstable_setDisableYieldValue,I=null,J=null;function de(n){if(typeof qu=="function"&&Fu(n),J&&typeof J.setStrictMode=="function")try{J.setStrictMode(I,n)}catch{}}var ge=Math.clz32?Math.clz32:In,je=Math.log,Yt=Math.LN2;function In(n){return n>>>=0,n===0?32:31-(je(n)/Yt|0)|0}var Nt=256,Rn=4194304;function Gt(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function dt(n,r,s){var o=n.pendingLanes;if(o===0)return 0;var h=0,g=n.suspendedLanes,x=n.pingedLanes;n=n.warmLanes;var T=o&134217727;return T!==0?(o=T&~g,o!==0?h=Gt(o):(x&=T,x!==0?h=Gt(x):s||(s=T&~n,s!==0&&(h=Gt(s))))):(T=o&~g,T!==0?h=Gt(T):x!==0?h=Gt(x):s||(s=o&~n,s!==0&&(h=Gt(s)))),h===0?0:r!==0&&r!==h&&(r&g)===0&&(g=h&-h,s=r&-r,g>=s||g===32&&(s&4194048)!==0)?r:h}function rn(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function bn(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zp(){var n=Nt;return Nt<<=1,(Nt&4194048)===0&&(Nt=256),n}function $p(){var n=Rn;return Rn<<=1,(Rn&62914560)===0&&(Rn=4194304),n}function Iu(n){for(var r=[],s=0;31>s;s++)r.push(n);return r}function Ba(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Z3(n,r,s,o,h,g){var x=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var T=n.entanglements,D=n.expirationTimes,U=n.hiddenUpdates;for(s=x&~s;0<s;){var Y=31-ge(s),K=1<<Y;T[Y]=0,D[Y]=-1;var H=U[Y];if(H!==null)for(U[Y]=null,Y=0;Y<H.length;Y++){var P=H[Y];P!==null&&(P.lane&=-536870913)}s&=~K}o!==0&&Qp(n,o,0),g!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=g&~(x&~r))}function Qp(n,r,s){n.pendingLanes|=r,n.suspendedLanes&=~r;var o=31-ge(r);n.entangledLanes|=r,n.entanglements[o]=n.entanglements[o]|1073741824|s&4194090}function Jp(n,r){var s=n.entangledLanes|=r;for(n=n.entanglements;s;){var o=31-ge(s),h=1<<o;h&r|n[o]&r&&(n[o]|=r),s&=~h}}function Yu(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Gu(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Wp(){var n=$.p;return n!==0?n:(n=window.event,n===void 0?32:M0(n.type))}function $3(n,r){var s=$.p;try{return $.p=n,r()}finally{$.p=s}}var di=Math.random().toString(36).slice(2),wt="__reactFiber$"+di,Lt="__reactProps$"+di,Sr="__reactContainer$"+di,Xu="__reactEvents$"+di,Q3="__reactListeners$"+di,J3="__reactHandles$"+di,em="__reactResources$"+di,za="__reactMarker$"+di;function Ku(n){delete n[wt],delete n[Lt],delete n[Xu],delete n[Q3],delete n[J3]}function wr(n){var r=n[wt];if(r)return r;for(var s=n.parentNode;s;){if(r=s[Sr]||s[wt]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(n=y0(n);n!==null;){if(s=n[wt])return s;n=y0(n)}return r}n=s,s=n.parentNode}return null}function Er(n){if(n=n[wt]||n[Sr]){var r=n.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return n}return null}function Ua(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function Tr(n){var r=n[em];return r||(r=n[em]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function pt(n){n[za]=!0}var tm=new Set,nm={};function Yi(n,r){Cr(n,r),Cr(n+"Capture",r)}function Cr(n,r){for(nm[n]=r,n=0;n<r.length;n++)tm.add(r[n])}var W3=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),im={},rm={};function eS(n){return Da.call(rm,n)?!0:Da.call(im,n)?!1:W3.test(n)?rm[n]=!0:(im[n]=!0,!1)}function Rl(n,r,s){if(eS(r))if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var o=r.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+s)}}function kl(n,r,s){if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+s)}}function Yn(n,r,s,o){if(o===null)n.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(r,s,""+o)}}var Zu,am;function Ar(n){if(Zu===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);Zu=r&&r[1]||"",am=-1<s.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Zu+n+am}var $u=!1;function Qu(n,r){if(!n||$u)return"";$u=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(r){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(P){var H=P}Reflect.construct(n,[],K)}else{try{K.call()}catch(P){H=P}n.call(K.prototype)}}else{try{throw Error()}catch(P){H=P}(K=n())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(P){if(P&&H&&typeof P.stack=="string")return[P.stack,H.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=o.DetermineComponentFrameRoot(),x=g[0],T=g[1];if(x&&T){var D=x.split(`
44
+ `),U=T.split(`
45
+ `);for(h=o=0;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;for(;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;if(o===D.length||h===U.length)for(o=D.length-1,h=U.length-1;1<=o&&0<=h&&D[o]!==U[h];)h--;for(;1<=o&&0<=h;o--,h--)if(D[o]!==U[h]){if(o!==1||h!==1)do if(o--,h--,0>h||D[o]!==U[h]){var Y=`
46
+ `+D[o].replace(" at new "," at ");return n.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",n.displayName)),Y}while(1<=o&&0<=h);break}}}finally{$u=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?Ar(s):""}function tS(n){switch(n.tag){case 26:case 27:case 5:return Ar(n.type);case 16:return Ar("Lazy");case 13:return Ar("Suspense");case 19:return Ar("SuspenseList");case 0:case 15:return Qu(n.type,!1);case 11:return Qu(n.type.render,!1);case 1:return Qu(n.type,!0);case 31:return Ar("Activity");default:return""}}function sm(n){try{var r="";do r+=tS(n),n=n.return;while(n);return r}catch(s){return`
47
+ Error generating stack: `+s.message+`
48
+ `+s.stack}}function an(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function lm(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function nS(n){var r=lm(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,r),o=""+n[r];if(!n.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,g=s.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return h.call(this)},set:function(x){o=""+x,g.call(this,x)}}),Object.defineProperty(n,r,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Ol(n){n._valueTracker||(n._valueTracker=nS(n))}function om(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var s=r.getValue(),o="";return n&&(o=lm(n)?n.checked?"true":"false":n.value),n=o,n!==s?(r.setValue(n),!0):!1}function _l(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var iS=/[\n"\\]/g;function sn(n){return n.replace(iS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ju(n,r,s,o,h,g,x,T){n.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.type=x:n.removeAttribute("type"),r!=null?x==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+an(r)):n.value!==""+an(r)&&(n.value=""+an(r)):x!=="submit"&&x!=="reset"||n.removeAttribute("value"),r!=null?Wu(n,x,an(r)):s!=null?Wu(n,x,an(s)):o!=null&&n.removeAttribute("value"),h==null&&g!=null&&(n.defaultChecked=!!g),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.name=""+an(T):n.removeAttribute("name")}function um(n,r,s,o,h,g,x,T){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),r!=null||s!=null){if(!(g!=="submit"&&g!=="reset"||r!=null))return;s=s!=null?""+an(s):"",r=r!=null?""+an(r):s,T||r===n.value||(n.value=r),n.defaultValue=r}o=o??h,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=T?n.checked:!!o,n.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(n.name=x)}function Wu(n,r,s){r==="number"&&_l(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function Rr(n,r,s,o){if(n=n.options,r){r={};for(var h=0;h<s.length;h++)r["$"+s[h]]=!0;for(s=0;s<n.length;s++)h=r.hasOwnProperty("$"+n[s].value),n[s].selected!==h&&(n[s].selected=h),h&&o&&(n[s].defaultSelected=!0)}else{for(s=""+an(s),r=null,h=0;h<n.length;h++){if(n[h].value===s){n[h].selected=!0,o&&(n[h].defaultSelected=!0);return}r!==null||n[h].disabled||(r=n[h])}r!==null&&(r.selected=!0)}}function cm(n,r,s){if(r!=null&&(r=""+an(r),r!==n.value&&(n.value=r),s==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=s!=null?""+an(s):""}function fm(n,r,s,o){if(r==null){if(o!=null){if(s!=null)throw Error(a(92));if(le(o)){if(1<o.length)throw Error(a(93));o=o[0]}s=o}s==null&&(s=""),r=s}s=an(r),n.defaultValue=s,o=n.textContent,o===s&&o!==""&&o!==null&&(n.value=o)}function kr(n,r){if(r){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=r;return}}n.textContent=r}var rS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hm(n,r,s){var o=r.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?o?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":o?n.setProperty(r,s):typeof s!="number"||s===0||rS.has(r)?r==="float"?n.cssFloat=s:n[r]=(""+s).trim():n[r]=s+"px"}function dm(n,r,s){if(r!=null&&typeof r!="object")throw Error(a(62));if(n=n.style,s!=null){for(var o in s)!s.hasOwnProperty(o)||r!=null&&r.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var h in r)o=r[h],r.hasOwnProperty(h)&&s[h]!==o&&hm(n,h,o)}else for(var g in r)r.hasOwnProperty(g)&&hm(n,g,r[g])}function ec(n){if(n.indexOf("-")===-1)return!1;switch(n){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 aS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Dl(n){return sS.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var tc=null;function nc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Or=null,_r=null;function pm(n){var r=Er(n);if(r&&(n=r.stateNode)){var s=n[Lt]||null;e:switch(n=r.stateNode,r.type){case"input":if(Ju(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),r=s.name,s.type==="radio"&&r!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+sn(""+r)+'"][type="radio"]'),r=0;r<s.length;r++){var o=s[r];if(o!==n&&o.form===n.form){var h=o[Lt]||null;if(!h)throw Error(a(90));Ju(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<s.length;r++)o=s[r],o.form===n.form&&om(o)}break e;case"textarea":cm(n,s.value,s.defaultValue);break e;case"select":r=s.value,r!=null&&Rr(n,!!s.multiple,r,!1)}}}var ic=!1;function mm(n,r,s){if(ic)return n(r,s);ic=!0;try{var o=n(r);return o}finally{if(ic=!1,(Or!==null||_r!==null)&&(yo(),Or&&(r=Or,n=_r,_r=Or=null,pm(r),n)))for(r=0;r<n.length;r++)pm(n[r])}}function Va(n,r){var s=n.stateNode;if(s===null)return null;var o=s[Lt]||null;if(o===null)return null;s=o[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(a(231,r,typeof s));return s}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rc=!1;if(Gn)try{var Ha={};Object.defineProperty(Ha,"passive",{get:function(){rc=!0}}),window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{rc=!1}var pi=null,ac=null,Ml=null;function gm(){if(Ml)return Ml;var n,r=ac,s=r.length,o,h="value"in pi?pi.value:pi.textContent,g=h.length;for(n=0;n<s&&r[n]===h[n];n++);var x=s-n;for(o=1;o<=x&&r[s-o]===h[g-o];o++);return Ml=h.slice(n,1<o?1-o:void 0)}function Nl(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Ll(){return!0}function ym(){return!1}function jt(n){function r(s,o,h,g,x){this._reactName=s,this._targetInst=h,this.type=o,this.nativeEvent=g,this.target=x,this.currentTarget=null;for(var T in n)n.hasOwnProperty(T)&&(s=n[T],this[T]=s?s(g):g[T]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ll:ym,this.isPropagationStopped=ym,this}return m(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),r}var Gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jl=jt(Gi),Pa=m({},Gi,{view:0,detail:0}),lS=jt(Pa),sc,lc,qa,Bl=m({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==qa&&(qa&&n.type==="mousemove"?(sc=n.screenX-qa.screenX,lc=n.screenY-qa.screenY):lc=sc=0,qa=n),sc)},movementY:function(n){return"movementY"in n?n.movementY:lc}}),vm=jt(Bl),oS=m({},Bl,{dataTransfer:0}),uS=jt(oS),cS=m({},Pa,{relatedTarget:0}),oc=jt(cS),fS=m({},Gi,{animationName:0,elapsedTime:0,pseudoElement:0}),hS=jt(fS),dS=m({},Gi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),pS=jt(dS),mS=m({},Gi,{data:0}),bm=jt(mS),gS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yS={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"},vS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bS(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=vS[n])?!!r[n]:!1}function uc(){return bS}var xS=m({},Pa,{key:function(n){if(n.key){var r=gS[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Nl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?yS[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(n){return n.type==="keypress"?Nl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Nl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),SS=jt(xS),wS=m({},Bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=jt(wS),ES=m({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),TS=jt(ES),CS=m({},Gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),AS=jt(CS),RS=m({},Bl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),kS=jt(RS),OS=m({},Gi,{newState:0,oldState:0}),_S=jt(OS),DS=[9,13,27,32],cc=Gn&&"CompositionEvent"in window,Fa=null;Gn&&"documentMode"in document&&(Fa=document.documentMode);var MS=Gn&&"TextEvent"in window&&!Fa,Sm=Gn&&(!cc||Fa&&8<Fa&&11>=Fa),wm=" ",Em=!1;function Tm(n,r){switch(n){case"keyup":return DS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Dr=!1;function NS(n,r){switch(n){case"compositionend":return Cm(r);case"keypress":return r.which!==32?null:(Em=!0,wm);case"textInput":return n=r.data,n===wm&&Em?null:n;default:return null}}function LS(n,r){if(Dr)return n==="compositionend"||!cc&&Tm(n,r)?(n=gm(),Ml=ac=pi=null,Dr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Sm&&r.locale!=="ko"?null:r.data;default:return null}}var jS={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 Am(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!jS[n.type]:r==="textarea"}function Rm(n,r,s,o){Or?_r?_r.push(o):_r=[o]:Or=o,r=Eo(r,"onChange"),0<r.length&&(s=new jl("onChange","change",null,s,o),n.push({event:s,listeners:r}))}var Ia=null,Ya=null;function BS(n){l0(n,0)}function zl(n){var r=Ua(n);if(om(r))return n}function km(n,r){if(n==="change")return r}var Om=!1;if(Gn){var fc;if(Gn){var hc="oninput"in document;if(!hc){var _m=document.createElement("div");_m.setAttribute("oninput","return;"),hc=typeof _m.oninput=="function"}fc=hc}else fc=!1;Om=fc&&(!document.documentMode||9<document.documentMode)}function Dm(){Ia&&(Ia.detachEvent("onpropertychange",Mm),Ya=Ia=null)}function Mm(n){if(n.propertyName==="value"&&zl(Ya)){var r=[];Rm(r,Ya,n,nc(n)),mm(BS,r)}}function zS(n,r,s){n==="focusin"?(Dm(),Ia=r,Ya=s,Ia.attachEvent("onpropertychange",Mm)):n==="focusout"&&Dm()}function US(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return zl(Ya)}function VS(n,r){if(n==="click")return zl(r)}function HS(n,r){if(n==="input"||n==="change")return zl(r)}function PS(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Xt=typeof Object.is=="function"?Object.is:PS;function Ga(n,r){if(Xt(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var s=Object.keys(n),o=Object.keys(r);if(s.length!==o.length)return!1;for(o=0;o<s.length;o++){var h=s[o];if(!Da.call(r,h)||!Xt(n[h],r[h]))return!1}return!0}function Nm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Lm(n,r){var s=Nm(n);n=0;for(var o;s;){if(s.nodeType===3){if(o=n+s.textContent.length,n<=r&&o>=r)return{node:s,offset:r-n};n=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Nm(s)}}function jm(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?jm(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function Bm(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=_l(n.document);r instanceof n.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)n=r.contentWindow;else break;r=_l(n.document)}return r}function dc(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var qS=Gn&&"documentMode"in document&&11>=document.documentMode,Mr=null,pc=null,Xa=null,mc=!1;function zm(n,r,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;mc||Mr==null||Mr!==_l(o)||(o=Mr,"selectionStart"in o&&dc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Xa&&Ga(Xa,o)||(Xa=o,o=Eo(pc,"onSelect"),0<o.length&&(r=new jl("onSelect","select",null,r,s),n.push({event:r,listeners:o}),r.target=Mr)))}function Xi(n,r){var s={};return s[n.toLowerCase()]=r.toLowerCase(),s["Webkit"+n]="webkit"+r,s["Moz"+n]="moz"+r,s}var Nr={animationend:Xi("Animation","AnimationEnd"),animationiteration:Xi("Animation","AnimationIteration"),animationstart:Xi("Animation","AnimationStart"),transitionrun:Xi("Transition","TransitionRun"),transitionstart:Xi("Transition","TransitionStart"),transitioncancel:Xi("Transition","TransitionCancel"),transitionend:Xi("Transition","TransitionEnd")},gc={},Um={};Gn&&(Um=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);function Ki(n){if(gc[n])return gc[n];if(!Nr[n])return n;var r=Nr[n],s;for(s in r)if(r.hasOwnProperty(s)&&s in Um)return gc[n]=r[s];return n}var Vm=Ki("animationend"),Hm=Ki("animationiteration"),Pm=Ki("animationstart"),FS=Ki("transitionrun"),IS=Ki("transitionstart"),YS=Ki("transitioncancel"),qm=Ki("transitionend"),Fm=new Map,yc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");yc.push("scrollEnd");function xn(n,r){Fm.set(n,r),Yi(r,[n])}var Im=new WeakMap;function ln(n,r){if(typeof n=="object"&&n!==null){var s=Im.get(n);return s!==void 0?s:(r={value:n,source:r,stack:sm(r)},Im.set(n,r),r)}return{value:n,source:r,stack:sm(r)}}var on=[],Lr=0,vc=0;function Ul(){for(var n=Lr,r=vc=Lr=0;r<n;){var s=on[r];on[r++]=null;var o=on[r];on[r++]=null;var h=on[r];on[r++]=null;var g=on[r];if(on[r++]=null,o!==null&&h!==null){var x=o.pending;x===null?h.next=h:(h.next=x.next,x.next=h),o.pending=h}g!==0&&Ym(s,h,g)}}function Vl(n,r,s,o){on[Lr++]=n,on[Lr++]=r,on[Lr++]=s,on[Lr++]=o,vc|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function bc(n,r,s,o){return Vl(n,r,s,o),Hl(n)}function jr(n,r){return Vl(n,null,null,r),Hl(n)}function Ym(n,r,s){n.lanes|=s;var o=n.alternate;o!==null&&(o.lanes|=s);for(var h=!1,g=n.return;g!==null;)g.childLanes|=s,o=g.alternate,o!==null&&(o.childLanes|=s),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(h=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,h&&r!==null&&(h=31-ge(s),n=g.hiddenUpdates,o=n[h],o===null?n[h]=[r]:o.push(r),r.lane=s|536870912),g):null}function Hl(n){if(50<vs)throw vs=0,Af=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var Br={};function GS(n,r,s,o){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(n,r,s,o){return new GS(n,r,s,o)}function xc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Xn(n,r){var s=n.alternate;return s===null?(s=Kt(n.tag,r,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=r,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,r=n.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function Gm(n,r){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,r=s.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function Pl(n,r,s,o,h,g){var x=0;if(o=n,typeof n=="function")xc(n)&&(x=1);else if(typeof n=="string")x=K4(n,s,oe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case ee:return n=Kt(31,s,r,h),n.elementType=ee,n.lanes=g,n;case w:return Zi(s.children,h,g,r);case E:x=8,h|=24;break;case R:return n=Kt(12,s,r,h|2),n.elementType=R,n.lanes=g,n;case B:return n=Kt(13,s,r,h),n.elementType=B,n.lanes=g,n;case L:return n=Kt(19,s,r,h),n.elementType=L,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:case O:x=10;break e;case M:x=9;break e;case V:x=11;break e;case Z:x=14;break e;case Q:x=16,o=null;break e}x=29,s=Error(a(130,n===null?"null":typeof n,"")),o=null}return r=Kt(x,s,r,h),r.elementType=n,r.type=o,r.lanes=g,r}function Zi(n,r,s,o){return n=Kt(7,n,o,r),n.lanes=s,n}function Sc(n,r,s){return n=Kt(6,n,null,r),n.lanes=s,n}function wc(n,r,s){return r=Kt(4,n.children!==null?n.children:[],n.key,r),r.lanes=s,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var zr=[],Ur=0,ql=null,Fl=0,un=[],cn=0,$i=null,Kn=1,Zn="";function Qi(n,r){zr[Ur++]=Fl,zr[Ur++]=ql,ql=n,Fl=r}function Xm(n,r,s){un[cn++]=Kn,un[cn++]=Zn,un[cn++]=$i,$i=n;var o=Kn;n=Zn;var h=32-ge(o)-1;o&=~(1<<h),s+=1;var g=32-ge(r)+h;if(30<g){var x=h-h%5;g=(o&(1<<x)-1).toString(32),o>>=x,h-=x,Kn=1<<32-ge(r)+h|s<<h|o,Zn=g+n}else Kn=1<<g|s<<h|o,Zn=n}function Ec(n){n.return!==null&&(Qi(n,1),Xm(n,1,0))}function Tc(n){for(;n===ql;)ql=zr[--Ur],zr[Ur]=null,Fl=zr[--Ur],zr[Ur]=null;for(;n===$i;)$i=un[--cn],un[cn]=null,Zn=un[--cn],un[cn]=null,Kn=un[--cn],un[cn]=null}var Dt=null,Je=null,Ne=!1,Ji=null,kn=!1,Cc=Error(a(519));function Wi(n){var r=Error(a(418,""));throw $a(ln(r,n)),Cc}function Km(n){var r=n.stateNode,s=n.type,o=n.memoizedProps;switch(r[wt]=n,r[Lt]=o,s){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(s=0;s<xs.length;s++)ke(xs[s],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":ke("invalid",r),um(r,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),Ol(r);break;case"select":ke("invalid",r);break;case"textarea":ke("invalid",r),fm(r,o.value,o.defaultValue,o.children),Ol(r)}s=o.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||r.textContent===""+s||o.suppressHydrationWarning===!0||f0(r.textContent,s)?(o.popover!=null&&(ke("beforetoggle",r),ke("toggle",r)),o.onScroll!=null&&ke("scroll",r),o.onScrollEnd!=null&&ke("scrollend",r),o.onClick!=null&&(r.onclick=To),r=!0):r=!1,r||Wi(n)}function Zm(n){for(Dt=n.return;Dt;)switch(Dt.tag){case 5:case 13:kn=!1;return;case 27:case 3:kn=!0;return;default:Dt=Dt.return}}function Ka(n){if(n!==Dt)return!1;if(!Ne)return Zm(n),Ne=!0,!1;var r=n.tag,s;if((s=r!==3&&r!==27)&&((s=r===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||qf(n.type,n.memoizedProps)),s=!s),s&&Je&&Wi(n),Zm(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));e:{for(n=n.nextSibling,r=0;n;){if(n.nodeType===8)if(s=n.data,s==="/$"){if(r===0){Je=wn(n.nextSibling);break e}r--}else s!=="$"&&s!=="$!"&&s!=="$?"||r++;n=n.nextSibling}Je=null}}else r===27?(r=Je,_i(n.type)?(n=Gf,Gf=null,Je=n):Je=r):Je=Dt?wn(n.stateNode.nextSibling):null;return!0}function Za(){Je=Dt=null,Ne=!1}function $m(){var n=Ji;return n!==null&&(Ut===null?Ut=n:Ut.push.apply(Ut,n),Ji=null),n}function $a(n){Ji===null?Ji=[n]:Ji.push(n)}var Ac=X(null),er=null,$n=null;function mi(n,r,s){k(Ac,r._currentValue),r._currentValue=s}function Qn(n){n._currentValue=Ac.current,te(Ac)}function Rc(n,r,s){for(;n!==null;){var o=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,o!==null&&(o.childLanes|=r)):o!==null&&(o.childLanes&r)!==r&&(o.childLanes|=r),n===s)break;n=n.return}}function kc(n,r,s,o){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var g=h.dependencies;if(g!==null){var x=h.child;g=g.firstContext;e:for(;g!==null;){var T=g;g=h;for(var D=0;D<r.length;D++)if(T.context===r[D]){g.lanes|=s,T=g.alternate,T!==null&&(T.lanes|=s),Rc(g.return,s,n),o||(x=null);break e}g=T.next}}else if(h.tag===18){if(x=h.return,x===null)throw Error(a(341));x.lanes|=s,g=x.alternate,g!==null&&(g.lanes|=s),Rc(x,s,n),x=null}else x=h.child;if(x!==null)x.return=h;else for(x=h;x!==null;){if(x===n){x=null;break}if(h=x.sibling,h!==null){h.return=x.return,x=h;break}x=x.return}h=x}}function Qa(n,r,s,o){n=null;for(var h=r,g=!1;h!==null;){if(!g){if((h.flags&524288)!==0)g=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var x=h.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var T=h.type;Xt(h.pendingProps.value,x.value)||(n!==null?n.push(T):n=[T])}}else if(h===ct.current){if(x=h.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(As):n=[As])}h=h.return}n!==null&&kc(r,n,s,o),r.flags|=262144}function Il(n){for(n=n.firstContext;n!==null;){if(!Xt(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function tr(n){er=n,$n=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Et(n){return Qm(er,n)}function Yl(n,r){return er===null&&tr(n),Qm(n,r)}function Qm(n,r){var s=r._currentValue;if(r={context:r,memoizedValue:s,next:null},$n===null){if(n===null)throw Error(a(308));$n=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else $n=$n.next=r;return s}var XS=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(s,o){n.push(o)}};this.abort=function(){r.aborted=!0,n.forEach(function(s){return s()})}},KS=e.unstable_scheduleCallback,ZS=e.unstable_NormalPriority,ft={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oc(){return{controller:new XS,data:new Map,refCount:0}}function Ja(n){n.refCount--,n.refCount===0&&KS(ZS,function(){n.controller.abort()})}var Wa=null,_c=0,Vr=0,Hr=null;function $S(n,r){if(Wa===null){var s=Wa=[];_c=0,Vr=Nf(),Hr={status:"pending",value:void 0,then:function(o){s.push(o)}}}return _c++,r.then(Jm,Jm),r}function Jm(){if(--_c===0&&Wa!==null){Hr!==null&&(Hr.status="fulfilled");var n=Wa;Wa=null,Vr=0,Hr=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function QS(n,r){var s=[],o={status:"pending",value:null,reason:null,then:function(h){s.push(h)}};return n.then(function(){o.status="fulfilled",o.value=r;for(var h=0;h<s.length;h++)(0,s[h])(r)},function(h){for(o.status="rejected",o.reason=h,h=0;h<s.length;h++)(0,s[h])(void 0)}),o}var Wm=q.S;q.S=function(n,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&$S(n,r),Wm!==null&&Wm(n,r)};var nr=X(null);function Dc(){var n=nr.current;return n!==null?n:Fe.pooledCache}function Gl(n,r){r===null?k(nr,nr.current):k(nr,r.pool)}function eg(){var n=Dc();return n===null?null:{parent:ft._currentValue,pool:n}}var es=Error(a(460)),tg=Error(a(474)),Xl=Error(a(542)),Mc={then:function(){}};function ng(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Kl(){}function ig(n,r,s){switch(s=n[s],s===void 0?n.push(r):s!==r&&(r.then(Kl,Kl),r=s),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,ag(n),n;default:if(typeof r.status=="string")r.then(Kl,Kl);else{if(n=Fe,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=r,n.status="pending",n.then(function(o){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=o}},function(o){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=o}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,ag(n),n}throw ts=r,es}}var ts=null;function rg(){if(ts===null)throw Error(a(459));var n=ts;return ts=null,n}function ag(n){if(n===es||n===Xl)throw Error(a(483))}var gi=!1;function Nc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lc(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function yi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function vi(n,r,s){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(Be&2)!==0){var h=o.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),o.pending=r,r=Hl(n),Ym(n,null,s),r}return Vl(n,o,r,s),Hl(n)}function ns(n,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194048)!==0)){var o=r.lanes;o&=n.pendingLanes,s|=o,r.lanes=s,Jp(n,s)}}function jc(n,r){var s=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var h=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};g===null?h=g=x:g=g.next=x,s=s.next}while(s!==null);g===null?h=g=r:g=g.next=r}else h=g=r;s={baseState:o.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:o.shared,callbacks:o.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=r:n.next=r,s.lastBaseUpdate=r}var Bc=!1;function is(){if(Bc){var n=Hr;if(n!==null)throw n}}function rs(n,r,s,o){Bc=!1;var h=n.updateQueue;gi=!1;var g=h.firstBaseUpdate,x=h.lastBaseUpdate,T=h.shared.pending;if(T!==null){h.shared.pending=null;var D=T,U=D.next;D.next=null,x===null?g=U:x.next=U,x=D;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,T=Y.lastBaseUpdate,T!==x&&(T===null?Y.firstBaseUpdate=U:T.next=U,Y.lastBaseUpdate=D))}if(g!==null){var K=h.baseState;x=0,Y=U=D=null,T=g;do{var H=T.lane&-536870913,P=H!==T.lane;if(P?(_e&H)===H:(o&H)===H){H!==0&&H===Vr&&(Bc=!0),Y!==null&&(Y=Y.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var ye=n,pe=T;H=r;var He=s;switch(pe.tag){case 1:if(ye=pe.payload,typeof ye=="function"){K=ye.call(He,K,H);break e}K=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=pe.payload,H=typeof ye=="function"?ye.call(He,K,H):ye,H==null)break e;K=m({},K,H);break e;case 2:gi=!0}}H=T.callback,H!==null&&(n.flags|=64,P&&(n.flags|=8192),P=h.callbacks,P===null?h.callbacks=[H]:P.push(H))}else P={lane:H,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Y===null?(U=Y=P,D=K):Y=Y.next=P,x|=H;if(T=T.next,T===null){if(T=h.shared.pending,T===null)break;P=T,T=P.next,P.next=null,h.lastBaseUpdate=P,h.shared.pending=null}}while(!0);Y===null&&(D=K),h.baseState=D,h.firstBaseUpdate=U,h.lastBaseUpdate=Y,g===null&&(h.shared.lanes=0),Ai|=x,n.lanes=x,n.memoizedState=K}}function sg(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function lg(n,r){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)sg(s[n],r)}var Pr=X(null),Zl=X(0);function og(n,r){n=ri,k(Zl,n),k(Pr,r),ri=n|r.baseLanes}function zc(){k(Zl,ri),k(Pr,Pr.current)}function Uc(){ri=Zl.current,te(Pr),te(Zl)}var bi=0,Ce=null,Ue=null,at=null,$l=!1,qr=!1,ir=!1,Ql=0,as=0,Fr=null,JS=0;function tt(){throw Error(a(321))}function Vc(n,r){if(r===null)return!1;for(var s=0;s<r.length&&s<n.length;s++)if(!Xt(n[s],r[s]))return!1;return!0}function Hc(n,r,s,o,h,g){return bi=g,Ce=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,q.H=n===null||n.memoizedState===null?Yg:Gg,ir=!1,g=s(o,h),ir=!1,qr&&(g=cg(r,s,o,h)),ug(n),g}function ug(n){q.H=io;var r=Ue!==null&&Ue.next!==null;if(bi=0,at=Ue=Ce=null,$l=!1,as=0,Fr=null,r)throw Error(a(300));n===null||mt||(n=n.dependencies,n!==null&&Il(n)&&(mt=!0))}function cg(n,r,s,o){Ce=n;var h=0;do{if(qr&&(Fr=null),as=0,qr=!1,25<=h)throw Error(a(301));if(h+=1,at=Ue=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}q.H=a4,g=r(s,o)}while(qr);return g}function WS(){var n=q.H,r=n.useState()[0];return r=typeof r.then=="function"?ss(r):r,n=n.useState()[0],(Ue!==null?Ue.memoizedState:null)!==n&&(Ce.flags|=1024),r}function Pc(){var n=Ql!==0;return Ql=0,n}function qc(n,r,s){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~s}function Fc(n){if($l){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}$l=!1}bi=0,at=Ue=Ce=null,qr=!1,as=Ql=0,Fr=null}function Bt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?Ce.memoizedState=at=n:at=at.next=n,at}function st(){if(Ue===null){var n=Ce.alternate;n=n!==null?n.memoizedState:null}else n=Ue.next;var r=at===null?Ce.memoizedState:at.next;if(r!==null)at=r,Ue=n;else{if(n===null)throw Ce.alternate===null?Error(a(467)):Error(a(310));Ue=n,n={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},at===null?Ce.memoizedState=at=n:at=at.next=n}return at}function Ic(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(n){var r=as;return as+=1,Fr===null&&(Fr=[]),n=ig(Fr,n,r),r=Ce,(at===null?r.memoizedState:at.next)===null&&(r=r.alternate,q.H=r===null||r.memoizedState===null?Yg:Gg),n}function Jl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ss(n);if(n.$$typeof===O)return Et(n)}throw Error(a(438,String(n)))}function Yc(n){var r=null,s=Ce.updateQueue;if(s!==null&&(r=s.memoCache),r==null){var o=Ce.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(r={data:o.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),s===null&&(s=Ic(),Ce.updateQueue=s),s.memoCache=r,s=r.data[r.index],s===void 0)for(s=r.data[r.index]=Array(n),o=0;o<n;o++)s[o]=fe;return r.index++,s}function Jn(n,r){return typeof r=="function"?r(n):r}function Wl(n){var r=st();return Gc(r,Ue,n)}function Gc(n,r,s){var o=n.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=s;var h=n.baseQueue,g=o.pending;if(g!==null){if(h!==null){var x=h.next;h.next=g.next,g.next=x}r.baseQueue=h=g,o.pending=null}if(g=n.baseState,h===null)n.memoizedState=g;else{r=h.next;var T=x=null,D=null,U=r,Y=!1;do{var K=U.lane&-536870913;if(K!==U.lane?(_e&K)===K:(bi&K)===K){var H=U.revertLane;if(H===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),K===Vr&&(Y=!0);else if((bi&H)===H){U=U.next,H===Vr&&(Y=!0);continue}else K={lane:0,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(T=D=K,x=g):D=D.next=K,Ce.lanes|=H,Ai|=H;K=U.action,ir&&s(g,K),g=U.hasEagerState?U.eagerState:s(g,K)}else H={lane:K,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(T=D=H,x=g):D=D.next=H,Ce.lanes|=K,Ai|=K;U=U.next}while(U!==null&&U!==r);if(D===null?x=g:D.next=T,!Xt(g,n.memoizedState)&&(mt=!0,Y&&(s=Hr,s!==null)))throw s;n.memoizedState=g,n.baseState=x,n.baseQueue=D,o.lastRenderedState=g}return h===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Xc(n){var r=st(),s=r.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=n;var o=s.dispatch,h=s.pending,g=r.memoizedState;if(h!==null){s.pending=null;var x=h=h.next;do g=n(g,x.action),x=x.next;while(x!==h);Xt(g,r.memoizedState)||(mt=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),s.lastRenderedState=g}return[g,o]}function fg(n,r,s){var o=Ce,h=st(),g=Ne;if(g){if(s===void 0)throw Error(a(407));s=s()}else s=r();var x=!Xt((Ue||h).memoizedState,s);x&&(h.memoizedState=s,mt=!0),h=h.queue;var T=pg.bind(null,o,h,n);if(ls(2048,8,T,[n]),h.getSnapshot!==r||x||at!==null&&at.memoizedState.tag&1){if(o.flags|=2048,Ir(9,eo(),dg.bind(null,o,h,s,r),null),Fe===null)throw Error(a(349));g||(bi&124)!==0||hg(o,r,s)}return s}function hg(n,r,s){n.flags|=16384,n={getSnapshot:r,value:s},r=Ce.updateQueue,r===null?(r=Ic(),Ce.updateQueue=r,r.stores=[n]):(s=r.stores,s===null?r.stores=[n]:s.push(n))}function dg(n,r,s,o){r.value=s,r.getSnapshot=o,mg(r)&&gg(n)}function pg(n,r,s){return s(function(){mg(r)&&gg(n)})}function mg(n){var r=n.getSnapshot;n=n.value;try{var s=r();return!Xt(n,s)}catch{return!0}}function gg(n){var r=jr(n,2);r!==null&&Wt(r,n,2)}function Kc(n){var r=Bt();if(typeof n=="function"){var s=n;if(n=s(),ir){de(!0);try{s()}finally{de(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:n},r}function yg(n,r,s,o){return n.baseState=s,Gc(n,Ue,typeof o=="function"?o:Jn)}function e4(n,r,s,o,h){if(no(n))throw Error(a(485));if(n=r.action,n!==null){var g={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){g.listeners.push(x)}};q.T!==null?s(!0):g.isTransition=!1,o(g),s=r.pending,s===null?(g.next=r.pending=g,vg(r,g)):(g.next=s.next,r.pending=s.next=g)}}function vg(n,r){var s=r.action,o=r.payload,h=n.state;if(r.isTransition){var g=q.T,x={};q.T=x;try{var T=s(h,o),D=q.S;D!==null&&D(x,T),bg(n,r,T)}catch(U){Zc(n,r,U)}finally{q.T=g}}else try{g=s(h,o),bg(n,r,g)}catch(U){Zc(n,r,U)}}function bg(n,r,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(o){xg(n,r,o)},function(o){return Zc(n,r,o)}):xg(n,r,s)}function xg(n,r,s){r.status="fulfilled",r.value=s,Sg(r),n.state=s,r=n.pending,r!==null&&(s=r.next,s===r?n.pending=null:(s=s.next,r.next=s,vg(n,s)))}function Zc(n,r,s){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do r.status="rejected",r.reason=s,Sg(r),r=r.next;while(r!==o)}n.action=null}function Sg(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function wg(n,r){return r}function Eg(n,r){if(Ne){var s=Fe.formState;if(s!==null){e:{var o=Ce;if(Ne){if(Je){t:{for(var h=Je,g=kn;h.nodeType!==8;){if(!g){h=null;break t}if(h=wn(h.nextSibling),h===null){h=null;break t}}g=h.data,h=g==="F!"||g==="F"?h:null}if(h){Je=wn(h.nextSibling),o=h.data==="F!";break e}}Wi(o)}o=!1}o&&(r=s[0])}}return s=Bt(),s.memoizedState=s.baseState=r,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wg,lastRenderedState:r},s.queue=o,s=qg.bind(null,Ce,o),o.dispatch=s,o=Kc(!1),g=ef.bind(null,Ce,!1,o.queue),o=Bt(),h={state:r,dispatch:null,action:n,pending:null},o.queue=h,s=e4.bind(null,Ce,h,g,s),h.dispatch=s,o.memoizedState=n,[r,s,!1]}function Tg(n){var r=st();return Cg(r,Ue,n)}function Cg(n,r,s){if(r=Gc(n,r,wg)[0],n=Wl(Jn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var o=ss(r)}catch(x){throw x===es?Xl:x}else o=r;r=st();var h=r.queue,g=h.dispatch;return s!==r.memoizedState&&(Ce.flags|=2048,Ir(9,eo(),t4.bind(null,h,s),null)),[o,g,n]}function t4(n,r){n.action=r}function Ag(n){var r=st(),s=Ue;if(s!==null)return Cg(r,s,n);st(),r=r.memoizedState,s=st();var o=s.queue.dispatch;return s.memoizedState=n,[r,o,!1]}function Ir(n,r,s,o){return n={tag:n,create:s,deps:o,inst:r,next:null},r=Ce.updateQueue,r===null&&(r=Ic(),Ce.updateQueue=r),s=r.lastEffect,s===null?r.lastEffect=n.next=n:(o=s.next,s.next=n,n.next=o,r.lastEffect=n),n}function eo(){return{destroy:void 0,resource:void 0}}function Rg(){return st().memoizedState}function to(n,r,s,o){var h=Bt();o=o===void 0?null:o,Ce.flags|=n,h.memoizedState=Ir(1|r,eo(),s,o)}function ls(n,r,s,o){var h=st();o=o===void 0?null:o;var g=h.memoizedState.inst;Ue!==null&&o!==null&&Vc(o,Ue.memoizedState.deps)?h.memoizedState=Ir(r,g,s,o):(Ce.flags|=n,h.memoizedState=Ir(1|r,g,s,o))}function kg(n,r){to(8390656,8,n,r)}function Og(n,r){ls(2048,8,n,r)}function _g(n,r){return ls(4,2,n,r)}function Dg(n,r){return ls(4,4,n,r)}function Mg(n,r){if(typeof r=="function"){n=n();var s=r(n);return function(){typeof s=="function"?s():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Ng(n,r,s){s=s!=null?s.concat([n]):null,ls(4,4,Mg.bind(null,r,n),s)}function $c(){}function Lg(n,r){var s=st();r=r===void 0?null:r;var o=s.memoizedState;return r!==null&&Vc(r,o[1])?o[0]:(s.memoizedState=[n,r],n)}function jg(n,r){var s=st();r=r===void 0?null:r;var o=s.memoizedState;if(r!==null&&Vc(r,o[1]))return o[0];if(o=n(),ir){de(!0);try{n()}finally{de(!1)}}return s.memoizedState=[o,r],o}function Qc(n,r,s){return s===void 0||(bi&1073741824)!==0?n.memoizedState=r:(n.memoizedState=s,n=Uy(),Ce.lanes|=n,Ai|=n,s)}function Bg(n,r,s,o){return Xt(s,r)?s:Pr.current!==null?(n=Qc(n,s,o),Xt(n,r)||(mt=!0),n):(bi&42)===0?(mt=!0,n.memoizedState=s):(n=Uy(),Ce.lanes|=n,Ai|=n,r)}function zg(n,r,s,o,h){var g=$.p;$.p=g!==0&&8>g?g:8;var x=q.T,T={};q.T=T,ef(n,!1,r,s);try{var D=h(),U=q.S;if(U!==null&&U(T,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var Y=QS(D,o);os(n,r,Y,Jt(n))}else os(n,r,o,Jt(n))}catch(K){os(n,r,{then:function(){},status:"rejected",reason:K},Jt())}finally{$.p=g,q.T=x}}function n4(){}function Jc(n,r,s,o){if(n.tag!==5)throw Error(a(476));var h=Ug(n).queue;zg(n,h,r,re,s===null?n4:function(){return Vg(n),s(o)})}function Ug(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:re},next:null};var s={};return r.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:s},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Vg(n){var r=Ug(n).next.queue;os(n,r,{},Jt())}function Wc(){return Et(As)}function Hg(){return st().memoizedState}function Pg(){return st().memoizedState}function i4(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var s=Jt();n=yi(s);var o=vi(r,n,s);o!==null&&(Wt(o,r,s),ns(o,r,s)),r={cache:Oc()},n.payload=r;return}r=r.return}}function r4(n,r,s){var o=Jt();s={lane:o,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},no(n)?Fg(r,s):(s=bc(n,r,s,o),s!==null&&(Wt(s,n,o),Ig(s,r,o)))}function qg(n,r,s){var o=Jt();os(n,r,s,o)}function os(n,r,s,o){var h={lane:o,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(no(n))Fg(r,h);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var x=r.lastRenderedState,T=g(x,s);if(h.hasEagerState=!0,h.eagerState=T,Xt(T,x))return Vl(n,r,h,0),Fe===null&&Ul(),!1}catch{}finally{}if(s=bc(n,r,h,o),s!==null)return Wt(s,n,o),Ig(s,r,o),!0}return!1}function ef(n,r,s,o){if(o={lane:2,revertLane:Nf(),action:o,hasEagerState:!1,eagerState:null,next:null},no(n)){if(r)throw Error(a(479))}else r=bc(n,s,o,2),r!==null&&Wt(r,n,2)}function no(n){var r=n.alternate;return n===Ce||r!==null&&r===Ce}function Fg(n,r){qr=$l=!0;var s=n.pending;s===null?r.next=r:(r.next=s.next,s.next=r),n.pending=r}function Ig(n,r,s){if((s&4194048)!==0){var o=r.lanes;o&=n.pendingLanes,s|=o,r.lanes=s,Jp(n,s)}}var io={readContext:Et,use:Jl,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt},Yg={readContext:Et,use:Jl,useCallback:function(n,r){return Bt().memoizedState=[n,r===void 0?null:r],n},useContext:Et,useEffect:kg,useImperativeHandle:function(n,r,s){s=s!=null?s.concat([n]):null,to(4194308,4,Mg.bind(null,r,n),s)},useLayoutEffect:function(n,r){return to(4194308,4,n,r)},useInsertionEffect:function(n,r){to(4,2,n,r)},useMemo:function(n,r){var s=Bt();r=r===void 0?null:r;var o=n();if(ir){de(!0);try{n()}finally{de(!1)}}return s.memoizedState=[o,r],o},useReducer:function(n,r,s){var o=Bt();if(s!==void 0){var h=s(r);if(ir){de(!0);try{s(r)}finally{de(!1)}}}else h=r;return o.memoizedState=o.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},o.queue=n,n=n.dispatch=r4.bind(null,Ce,n),[o.memoizedState,n]},useRef:function(n){var r=Bt();return n={current:n},r.memoizedState=n},useState:function(n){n=Kc(n);var r=n.queue,s=qg.bind(null,Ce,r);return r.dispatch=s,[n.memoizedState,s]},useDebugValue:$c,useDeferredValue:function(n,r){var s=Bt();return Qc(s,n,r)},useTransition:function(){var n=Kc(!1);return n=zg.bind(null,Ce,n.queue,!0,!1),Bt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,s){var o=Ce,h=Bt();if(Ne){if(s===void 0)throw Error(a(407));s=s()}else{if(s=r(),Fe===null)throw Error(a(349));(_e&124)!==0||hg(o,r,s)}h.memoizedState=s;var g={value:s,getSnapshot:r};return h.queue=g,kg(pg.bind(null,o,g,n),[n]),o.flags|=2048,Ir(9,eo(),dg.bind(null,o,g,s,r),null),s},useId:function(){var n=Bt(),r=Fe.identifierPrefix;if(Ne){var s=Zn,o=Kn;s=(o&~(1<<32-ge(o)-1)).toString(32)+s,r="«"+r+"R"+s,s=Ql++,0<s&&(r+="H"+s.toString(32)),r+="»"}else s=JS++,r="«"+r+"r"+s.toString(32)+"»";return n.memoizedState=r},useHostTransitionStatus:Wc,useFormState:Eg,useActionState:Eg,useOptimistic:function(n){var r=Bt();r.memoizedState=r.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=s,r=ef.bind(null,Ce,!0,s),s.dispatch=r,[n,r]},useMemoCache:Yc,useCacheRefresh:function(){return Bt().memoizedState=i4.bind(null,Ce)}},Gg={readContext:Et,use:Jl,useCallback:Lg,useContext:Et,useEffect:Og,useImperativeHandle:Ng,useInsertionEffect:_g,useLayoutEffect:Dg,useMemo:jg,useReducer:Wl,useRef:Rg,useState:function(){return Wl(Jn)},useDebugValue:$c,useDeferredValue:function(n,r){var s=st();return Bg(s,Ue.memoizedState,n,r)},useTransition:function(){var n=Wl(Jn)[0],r=st().memoizedState;return[typeof n=="boolean"?n:ss(n),r]},useSyncExternalStore:fg,useId:Hg,useHostTransitionStatus:Wc,useFormState:Tg,useActionState:Tg,useOptimistic:function(n,r){var s=st();return yg(s,Ue,n,r)},useMemoCache:Yc,useCacheRefresh:Pg},a4={readContext:Et,use:Jl,useCallback:Lg,useContext:Et,useEffect:Og,useImperativeHandle:Ng,useInsertionEffect:_g,useLayoutEffect:Dg,useMemo:jg,useReducer:Xc,useRef:Rg,useState:function(){return Xc(Jn)},useDebugValue:$c,useDeferredValue:function(n,r){var s=st();return Ue===null?Qc(s,n,r):Bg(s,Ue.memoizedState,n,r)},useTransition:function(){var n=Xc(Jn)[0],r=st().memoizedState;return[typeof n=="boolean"?n:ss(n),r]},useSyncExternalStore:fg,useId:Hg,useHostTransitionStatus:Wc,useFormState:Ag,useActionState:Ag,useOptimistic:function(n,r){var s=st();return Ue!==null?yg(s,Ue,n,r):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:Yc,useCacheRefresh:Pg},Yr=null,us=0;function ro(n){var r=us;return us+=1,Yr===null&&(Yr=[]),ig(Yr,n,r)}function cs(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function ao(n,r){throw r.$$typeof===y?Error(a(525)):(n=Object.prototype.toString.call(r),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function Xg(n){var r=n._init;return r(n._payload)}function Kg(n){function r(j,N){if(n){var z=j.deletions;z===null?(j.deletions=[N],j.flags|=16):z.push(N)}}function s(j,N){if(!n)return null;for(;N!==null;)r(j,N),N=N.sibling;return null}function o(j){for(var N=new Map;j!==null;)j.key!==null?N.set(j.key,j):N.set(j.index,j),j=j.sibling;return N}function h(j,N){return j=Xn(j,N),j.index=0,j.sibling=null,j}function g(j,N,z){return j.index=z,n?(z=j.alternate,z!==null?(z=z.index,z<N?(j.flags|=67108866,N):z):(j.flags|=67108866,N)):(j.flags|=1048576,N)}function x(j){return n&&j.alternate===null&&(j.flags|=67108866),j}function T(j,N,z,G){return N===null||N.tag!==6?(N=Sc(z,j.mode,G),N.return=j,N):(N=h(N,z),N.return=j,N)}function D(j,N,z,G){var se=z.type;return se===w?Y(j,N,z.props.children,G,z.key):N!==null&&(N.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===Q&&Xg(se)===N.type)?(N=h(N,z.props),cs(N,z),N.return=j,N):(N=Pl(z.type,z.key,z.props,null,j.mode,G),cs(N,z),N.return=j,N)}function U(j,N,z,G){return N===null||N.tag!==4||N.stateNode.containerInfo!==z.containerInfo||N.stateNode.implementation!==z.implementation?(N=wc(z,j.mode,G),N.return=j,N):(N=h(N,z.children||[]),N.return=j,N)}function Y(j,N,z,G,se){return N===null||N.tag!==7?(N=Zi(z,j.mode,G,se),N.return=j,N):(N=h(N,z),N.return=j,N)}function K(j,N,z){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Sc(""+N,j.mode,z),N.return=j,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return z=Pl(N.type,N.key,N.props,null,j.mode,z),cs(z,N),z.return=j,z;case b:return N=wc(N,j.mode,z),N.return=j,N;case Q:var G=N._init;return N=G(N._payload),K(j,N,z)}if(le(N)||ne(N))return N=Zi(N,j.mode,z,null),N.return=j,N;if(typeof N.then=="function")return K(j,ro(N),z);if(N.$$typeof===O)return K(j,Yl(j,N),z);ao(j,N)}return null}function H(j,N,z,G){var se=N!==null?N.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return se!==null?null:T(j,N,""+z,G);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case v:return z.key===se?D(j,N,z,G):null;case b:return z.key===se?U(j,N,z,G):null;case Q:return se=z._init,z=se(z._payload),H(j,N,z,G)}if(le(z)||ne(z))return se!==null?null:Y(j,N,z,G,null);if(typeof z.then=="function")return H(j,N,ro(z),G);if(z.$$typeof===O)return H(j,N,Yl(j,z),G);ao(j,z)}return null}function P(j,N,z,G,se){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return j=j.get(z)||null,T(N,j,""+G,se);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case v:return j=j.get(G.key===null?z:G.key)||null,D(N,j,G,se);case b:return j=j.get(G.key===null?z:G.key)||null,U(N,j,G,se);case Q:var Ae=G._init;return G=Ae(G._payload),P(j,N,z,G,se)}if(le(G)||ne(G))return j=j.get(z)||null,Y(N,j,G,se,null);if(typeof G.then=="function")return P(j,N,z,ro(G),se);if(G.$$typeof===O)return P(j,N,z,Yl(N,G),se);ao(N,G)}return null}function ye(j,N,z,G){for(var se=null,Ae=null,he=N,me=N=0,yt=null;he!==null&&me<z.length;me++){he.index>me?(yt=he,he=null):yt=he.sibling;var Me=H(j,he,z[me],G);if(Me===null){he===null&&(he=yt);break}n&&he&&Me.alternate===null&&r(j,he),N=g(Me,N,me),Ae===null?se=Me:Ae.sibling=Me,Ae=Me,he=yt}if(me===z.length)return s(j,he),Ne&&Qi(j,me),se;if(he===null){for(;me<z.length;me++)he=K(j,z[me],G),he!==null&&(N=g(he,N,me),Ae===null?se=he:Ae.sibling=he,Ae=he);return Ne&&Qi(j,me),se}for(he=o(he);me<z.length;me++)yt=P(he,j,me,z[me],G),yt!==null&&(n&&yt.alternate!==null&&he.delete(yt.key===null?me:yt.key),N=g(yt,N,me),Ae===null?se=yt:Ae.sibling=yt,Ae=yt);return n&&he.forEach(function(ji){return r(j,ji)}),Ne&&Qi(j,me),se}function pe(j,N,z,G){if(z==null)throw Error(a(151));for(var se=null,Ae=null,he=N,me=N=0,yt=null,Me=z.next();he!==null&&!Me.done;me++,Me=z.next()){he.index>me?(yt=he,he=null):yt=he.sibling;var ji=H(j,he,Me.value,G);if(ji===null){he===null&&(he=yt);break}n&&he&&ji.alternate===null&&r(j,he),N=g(ji,N,me),Ae===null?se=ji:Ae.sibling=ji,Ae=ji,he=yt}if(Me.done)return s(j,he),Ne&&Qi(j,me),se;if(he===null){for(;!Me.done;me++,Me=z.next())Me=K(j,Me.value,G),Me!==null&&(N=g(Me,N,me),Ae===null?se=Me:Ae.sibling=Me,Ae=Me);return Ne&&Qi(j,me),se}for(he=o(he);!Me.done;me++,Me=z.next())Me=P(he,j,me,Me.value,G),Me!==null&&(n&&Me.alternate!==null&&he.delete(Me.key===null?me:Me.key),N=g(Me,N,me),Ae===null?se=Me:Ae.sibling=Me,Ae=Me);return n&&he.forEach(function(sw){return r(j,sw)}),Ne&&Qi(j,me),se}function He(j,N,z,G){if(typeof z=="object"&&z!==null&&z.type===w&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case v:e:{for(var se=z.key;N!==null;){if(N.key===se){if(se=z.type,se===w){if(N.tag===7){s(j,N.sibling),G=h(N,z.props.children),G.return=j,j=G;break e}}else if(N.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===Q&&Xg(se)===N.type){s(j,N.sibling),G=h(N,z.props),cs(G,z),G.return=j,j=G;break e}s(j,N);break}else r(j,N);N=N.sibling}z.type===w?(G=Zi(z.props.children,j.mode,G,z.key),G.return=j,j=G):(G=Pl(z.type,z.key,z.props,null,j.mode,G),cs(G,z),G.return=j,j=G)}return x(j);case b:e:{for(se=z.key;N!==null;){if(N.key===se)if(N.tag===4&&N.stateNode.containerInfo===z.containerInfo&&N.stateNode.implementation===z.implementation){s(j,N.sibling),G=h(N,z.children||[]),G.return=j,j=G;break e}else{s(j,N);break}else r(j,N);N=N.sibling}G=wc(z,j.mode,G),G.return=j,j=G}return x(j);case Q:return se=z._init,z=se(z._payload),He(j,N,z,G)}if(le(z))return ye(j,N,z,G);if(ne(z)){if(se=ne(z),typeof se!="function")throw Error(a(150));return z=se.call(z),pe(j,N,z,G)}if(typeof z.then=="function")return He(j,N,ro(z),G);if(z.$$typeof===O)return He(j,N,Yl(j,z),G);ao(j,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,N!==null&&N.tag===6?(s(j,N.sibling),G=h(N,z),G.return=j,j=G):(s(j,N),G=Sc(z,j.mode,G),G.return=j,j=G),x(j)):s(j,N)}return function(j,N,z,G){try{us=0;var se=He(j,N,z,G);return Yr=null,se}catch(he){if(he===es||he===Xl)throw he;var Ae=Kt(29,he,null,j.mode);return Ae.lanes=G,Ae.return=j,Ae}finally{}}}var Gr=Kg(!0),Zg=Kg(!1),fn=X(null),On=null;function xi(n){var r=n.alternate;k(ht,ht.current&1),k(fn,n),On===null&&(r===null||Pr.current!==null||r.memoizedState!==null)&&(On=n)}function $g(n){if(n.tag===22){if(k(ht,ht.current),k(fn,n),On===null){var r=n.alternate;r!==null&&r.memoizedState!==null&&(On=n)}}else Si()}function Si(){k(ht,ht.current),k(fn,fn.current)}function Wn(n){te(fn),On===n&&(On=null),te(ht)}var ht=X(0);function so(n){for(var r=n;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||Yf(s)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function tf(n,r,s,o){r=n.memoizedState,s=s(o,r),s=s==null?r:m({},r,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var nf={enqueueSetState:function(n,r,s){n=n._reactInternals;var o=Jt(),h=yi(o);h.payload=r,s!=null&&(h.callback=s),r=vi(n,h,o),r!==null&&(Wt(r,n,o),ns(r,n,o))},enqueueReplaceState:function(n,r,s){n=n._reactInternals;var o=Jt(),h=yi(o);h.tag=1,h.payload=r,s!=null&&(h.callback=s),r=vi(n,h,o),r!==null&&(Wt(r,n,o),ns(r,n,o))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var s=Jt(),o=yi(s);o.tag=2,r!=null&&(o.callback=r),r=vi(n,o,s),r!==null&&(Wt(r,n,s),ns(r,n,s))}};function Qg(n,r,s,o,h,g,x){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,g,x):r.prototype&&r.prototype.isPureReactComponent?!Ga(s,o)||!Ga(h,g):!0}function Jg(n,r,s,o){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,o),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,o),r.state!==n&&nf.enqueueReplaceState(r,r.state,null)}function rr(n,r){var s=r;if("ref"in r){s={};for(var o in r)o!=="ref"&&(s[o]=r[o])}if(n=n.defaultProps){s===r&&(s=m({},s));for(var h in n)s[h]===void 0&&(s[h]=n[h])}return s}var lo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Wg(n){lo(n)}function ey(n){console.error(n)}function ty(n){lo(n)}function oo(n,r){try{var s=n.onUncaughtError;s(r.value,{componentStack:r.stack})}catch(o){setTimeout(function(){throw o})}}function ny(n,r,s){try{var o=n.onCaughtError;o(s.value,{componentStack:s.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function rf(n,r,s){return s=yi(s),s.tag=3,s.payload={element:null},s.callback=function(){oo(n,r)},s}function iy(n){return n=yi(n),n.tag=3,n}function ry(n,r,s,o){var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var g=o.value;n.payload=function(){return h(g)},n.callback=function(){ny(r,s,o)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(n.callback=function(){ny(r,s,o),typeof h!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var T=o.stack;this.componentDidCatch(o.value,{componentStack:T!==null?T:""})})}function s4(n,r,s,o,h){if(s.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(r=s.alternate,r!==null&&Qa(r,s,h,!0),s=fn.current,s!==null){switch(s.tag){case 13:return On===null?kf():s.alternate===null&&We===0&&(We=3),s.flags&=-257,s.flags|=65536,s.lanes=h,o===Mc?s.flags|=16384:(r=s.updateQueue,r===null?s.updateQueue=new Set([o]):r.add(o),_f(n,o,h)),!1;case 22:return s.flags|=65536,o===Mc?s.flags|=16384:(r=s.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([o])},s.updateQueue=r):(s=r.retryQueue,s===null?r.retryQueue=new Set([o]):s.add(o)),_f(n,o,h)),!1}throw Error(a(435,s.tag))}return _f(n,o,h),kf(),!1}if(Ne)return r=fn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,o!==Cc&&(n=Error(a(422),{cause:o}),$a(ln(n,s)))):(o!==Cc&&(r=Error(a(423),{cause:o}),$a(ln(r,s))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,o=ln(o,s),h=rf(n.stateNode,o,h),jc(n,h),We!==4&&(We=2)),!1;var g=Error(a(520),{cause:o});if(g=ln(g,s),ys===null?ys=[g]:ys.push(g),We!==4&&(We=2),r===null)return!0;o=ln(o,s),s=r;do{switch(s.tag){case 3:return s.flags|=65536,n=h&-h,s.lanes|=n,n=rf(s.stateNode,o,n),jc(s,n),!1;case 1:if(r=s.type,g=s.stateNode,(s.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ri===null||!Ri.has(g))))return s.flags|=65536,h&=-h,s.lanes|=h,h=iy(h),ry(h,n,s,o),jc(s,h),!1}s=s.return}while(s!==null);return!1}var ay=Error(a(461)),mt=!1;function vt(n,r,s,o){r.child=n===null?Zg(r,null,s,o):Gr(r,n.child,s,o)}function sy(n,r,s,o,h){s=s.render;var g=r.ref;if("ref"in o){var x={};for(var T in o)T!=="ref"&&(x[T]=o[T])}else x=o;return tr(r),o=Hc(n,r,s,x,g,h),T=Pc(),n!==null&&!mt?(qc(n,r,h),ei(n,r,h)):(Ne&&T&&Ec(r),r.flags|=1,vt(n,r,o,h),r.child)}function ly(n,r,s,o,h){if(n===null){var g=s.type;return typeof g=="function"&&!xc(g)&&g.defaultProps===void 0&&s.compare===null?(r.tag=15,r.type=g,oy(n,r,g,o,h)):(n=Pl(s.type,null,o,r,r.mode,h),n.ref=r.ref,n.return=r,r.child=n)}if(g=n.child,!hf(n,h)){var x=g.memoizedProps;if(s=s.compare,s=s!==null?s:Ga,s(x,o)&&n.ref===r.ref)return ei(n,r,h)}return r.flags|=1,n=Xn(g,o),n.ref=r.ref,n.return=r,r.child=n}function oy(n,r,s,o,h){if(n!==null){var g=n.memoizedProps;if(Ga(g,o)&&n.ref===r.ref)if(mt=!1,r.pendingProps=o=g,hf(n,h))(n.flags&131072)!==0&&(mt=!0);else return r.lanes=n.lanes,ei(n,r,h)}return af(n,r,s,o,h)}function uy(n,r,s){var o=r.pendingProps,h=o.children,g=n!==null?n.memoizedState:null;if(o.mode==="hidden"){if((r.flags&128)!==0){if(o=g!==null?g.baseLanes|s:s,n!==null){for(h=r.child=n.child,g=0;h!==null;)g=g|h.lanes|h.childLanes,h=h.sibling;r.childLanes=g&~o}else r.childLanes=0,r.child=null;return cy(n,r,o,s)}if((s&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&Gl(r,g!==null?g.cachePool:null),g!==null?og(r,g):zc(),$g(r);else return r.lanes=r.childLanes=536870912,cy(n,r,g!==null?g.baseLanes|s:s,s)}else g!==null?(Gl(r,g.cachePool),og(r,g),Si(),r.memoizedState=null):(n!==null&&Gl(r,null),zc(),Si());return vt(n,r,h,s),r.child}function cy(n,r,s,o){var h=Dc();return h=h===null?null:{parent:ft._currentValue,pool:h},r.memoizedState={baseLanes:s,cachePool:h},n!==null&&Gl(r,null),zc(),$g(r),n!==null&&Qa(n,r,o,!0),null}function uo(n,r){var s=r.ref;if(s===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(a(284));(n===null||n.ref!==s)&&(r.flags|=4194816)}}function af(n,r,s,o,h){return tr(r),s=Hc(n,r,s,o,void 0,h),o=Pc(),n!==null&&!mt?(qc(n,r,h),ei(n,r,h)):(Ne&&o&&Ec(r),r.flags|=1,vt(n,r,s,h),r.child)}function fy(n,r,s,o,h,g){return tr(r),r.updateQueue=null,s=cg(r,o,s,h),ug(n),o=Pc(),n!==null&&!mt?(qc(n,r,g),ei(n,r,g)):(Ne&&o&&Ec(r),r.flags|=1,vt(n,r,s,g),r.child)}function hy(n,r,s,o,h){if(tr(r),r.stateNode===null){var g=Br,x=s.contextType;typeof x=="object"&&x!==null&&(g=Et(x)),g=new s(o,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=nf,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=o,g.state=r.memoizedState,g.refs={},Nc(r),x=s.contextType,g.context=typeof x=="object"&&x!==null?Et(x):Br,g.state=r.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(tf(r,s,x,o),g.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&nf.enqueueReplaceState(g,g.state,null),rs(r,o,g,h),is(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),o=!0}else if(n===null){g=r.stateNode;var T=r.memoizedProps,D=rr(s,T);g.props=D;var U=g.context,Y=s.contextType;x=Br,typeof Y=="object"&&Y!==null&&(x=Et(Y));var K=s.getDerivedStateFromProps;Y=typeof K=="function"||typeof g.getSnapshotBeforeUpdate=="function",T=r.pendingProps!==T,Y||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T||U!==x)&&Jg(r,g,o,x),gi=!1;var H=r.memoizedState;g.state=H,rs(r,o,g,h),is(),U=r.memoizedState,T||H!==U||gi?(typeof K=="function"&&(tf(r,s,K,o),U=r.memoizedState),(D=gi||Qg(r,s,D,o,H,U,x))?(Y||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=o,r.memoizedState=U),g.props=o,g.state=U,g.context=x,o=D):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),o=!1)}else{g=r.stateNode,Lc(n,r),x=r.memoizedProps,Y=rr(s,x),g.props=Y,K=r.pendingProps,H=g.context,U=s.contextType,D=Br,typeof U=="object"&&U!==null&&(D=Et(U)),T=s.getDerivedStateFromProps,(U=typeof T=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x!==K||H!==D)&&Jg(r,g,o,D),gi=!1,H=r.memoizedState,g.state=H,rs(r,o,g,h),is();var P=r.memoizedState;x!==K||H!==P||gi||n!==null&&n.dependencies!==null&&Il(n.dependencies)?(typeof T=="function"&&(tf(r,s,T,o),P=r.memoizedState),(Y=gi||Qg(r,s,Y,o,H,P,D)||n!==null&&n.dependencies!==null&&Il(n.dependencies))?(U||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(o,P,D),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(o,P,D)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||x===n.memoizedProps&&H===n.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&H===n.memoizedState||(r.flags|=1024),r.memoizedProps=o,r.memoizedState=P),g.props=o,g.state=P,g.context=D,o=Y):(typeof g.componentDidUpdate!="function"||x===n.memoizedProps&&H===n.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&H===n.memoizedState||(r.flags|=1024),o=!1)}return g=o,uo(n,r),o=(r.flags&128)!==0,g||o?(g=r.stateNode,s=o&&typeof s.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,n!==null&&o?(r.child=Gr(r,n.child,null,h),r.child=Gr(r,null,s,h)):vt(n,r,s,h),r.memoizedState=g.state,n=r.child):n=ei(n,r,h),n}function dy(n,r,s,o){return Za(),r.flags|=256,vt(n,r,s,o),r.child}var sf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lf(n){return{baseLanes:n,cachePool:eg()}}function of(n,r,s){return n=n!==null?n.childLanes&~s:0,r&&(n|=hn),n}function py(n,r,s){var o=r.pendingProps,h=!1,g=(r.flags&128)!==0,x;if((x=g)||(x=n!==null&&n.memoizedState===null?!1:(ht.current&2)!==0),x&&(h=!0,r.flags&=-129),x=(r.flags&32)!==0,r.flags&=-33,n===null){if(Ne){if(h?xi(r):Si(),Ne){var T=Je,D;if(D=T){e:{for(D=T,T=kn;D.nodeType!==8;){if(!T){T=null;break e}if(D=wn(D.nextSibling),D===null){T=null;break e}}T=D}T!==null?(r.memoizedState={dehydrated:T,treeContext:$i!==null?{id:Kn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},D=Kt(18,null,null,0),D.stateNode=T,D.return=r,r.child=D,Dt=r,Je=null,D=!0):D=!1}D||Wi(r)}if(T=r.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return Yf(T)?r.lanes=32:r.lanes=536870912,null;Wn(r)}return T=o.children,o=o.fallback,h?(Si(),h=r.mode,T=co({mode:"hidden",children:T},h),o=Zi(o,h,s,null),T.return=r,o.return=r,T.sibling=o,r.child=T,h=r.child,h.memoizedState=lf(s),h.childLanes=of(n,x,s),r.memoizedState=sf,o):(xi(r),uf(r,T))}if(D=n.memoizedState,D!==null&&(T=D.dehydrated,T!==null)){if(g)r.flags&256?(xi(r),r.flags&=-257,r=cf(n,r,s)):r.memoizedState!==null?(Si(),r.child=n.child,r.flags|=128,r=null):(Si(),h=o.fallback,T=r.mode,o=co({mode:"visible",children:o.children},T),h=Zi(h,T,s,null),h.flags|=2,o.return=r,h.return=r,o.sibling=h,r.child=o,Gr(r,n.child,null,s),o=r.child,o.memoizedState=lf(s),o.childLanes=of(n,x,s),r.memoizedState=sf,r=h);else if(xi(r),Yf(T)){if(x=T.nextSibling&&T.nextSibling.dataset,x)var U=x.dgst;x=U,o=Error(a(419)),o.stack="",o.digest=x,$a({value:o,source:null,stack:null}),r=cf(n,r,s)}else if(mt||Qa(n,r,s,!1),x=(s&n.childLanes)!==0,mt||x){if(x=Fe,x!==null&&(o=s&-s,o=(o&42)!==0?1:Yu(o),o=(o&(x.suspendedLanes|s))!==0?0:o,o!==0&&o!==D.retryLane))throw D.retryLane=o,jr(n,o),Wt(x,n,o),ay;T.data==="$?"||kf(),r=cf(n,r,s)}else T.data==="$?"?(r.flags|=192,r.child=n.child,r=null):(n=D.treeContext,Je=wn(T.nextSibling),Dt=r,Ne=!0,Ji=null,kn=!1,n!==null&&(un[cn++]=Kn,un[cn++]=Zn,un[cn++]=$i,Kn=n.id,Zn=n.overflow,$i=r),r=uf(r,o.children),r.flags|=4096);return r}return h?(Si(),h=o.fallback,T=r.mode,D=n.child,U=D.sibling,o=Xn(D,{mode:"hidden",children:o.children}),o.subtreeFlags=D.subtreeFlags&65011712,U!==null?h=Xn(U,h):(h=Zi(h,T,s,null),h.flags|=2),h.return=r,o.return=r,o.sibling=h,r.child=o,o=h,h=r.child,T=n.child.memoizedState,T===null?T=lf(s):(D=T.cachePool,D!==null?(U=ft._currentValue,D=D.parent!==U?{parent:U,pool:U}:D):D=eg(),T={baseLanes:T.baseLanes|s,cachePool:D}),h.memoizedState=T,h.childLanes=of(n,x,s),r.memoizedState=sf,o):(xi(r),s=n.child,n=s.sibling,s=Xn(s,{mode:"visible",children:o.children}),s.return=r,s.sibling=null,n!==null&&(x=r.deletions,x===null?(r.deletions=[n],r.flags|=16):x.push(n)),r.child=s,r.memoizedState=null,s)}function uf(n,r){return r=co({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function co(n,r){return n=Kt(22,n,null,r),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function cf(n,r,s){return Gr(r,n.child,null,s),n=uf(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function my(n,r,s){n.lanes|=r;var o=n.alternate;o!==null&&(o.lanes|=r),Rc(n.return,r,s)}function ff(n,r,s,o,h){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:h}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=o,g.tail=s,g.tailMode=h)}function gy(n,r,s){var o=r.pendingProps,h=o.revealOrder,g=o.tail;if(vt(n,r,o.children,s),o=ht.current,(o&2)!==0)o=o&1|2,r.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&my(n,s,r);else if(n.tag===19)my(n,s,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}o&=1}switch(k(ht,o),h){case"forwards":for(s=r.child,h=null;s!==null;)n=s.alternate,n!==null&&so(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=r.child,r.child=null):(h=s.sibling,s.sibling=null),ff(r,!1,h,s,g);break;case"backwards":for(s=null,h=r.child,r.child=null;h!==null;){if(n=h.alternate,n!==null&&so(n)===null){r.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}ff(r,!0,s,null,g);break;case"together":ff(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function ei(n,r,s){if(n!==null&&(r.dependencies=n.dependencies),Ai|=r.lanes,(s&r.childLanes)===0)if(n!==null){if(Qa(n,r,s,!1),(s&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(a(153));if(r.child!==null){for(n=r.child,s=Xn(n,n.pendingProps),r.child=s,s.return=r;n.sibling!==null;)n=n.sibling,s=s.sibling=Xn(n,n.pendingProps),s.return=r;s.sibling=null}return r.child}function hf(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&Il(n)))}function l4(n,r,s){switch(r.tag){case 3:De(r,r.stateNode.containerInfo),mi(r,ft,n.memoizedState.cache),Za();break;case 27:case 5:An(r);break;case 4:De(r,r.stateNode.containerInfo);break;case 10:mi(r,r.type,r.memoizedProps.value);break;case 13:var o=r.memoizedState;if(o!==null)return o.dehydrated!==null?(xi(r),r.flags|=128,null):(s&r.child.childLanes)!==0?py(n,r,s):(xi(r),n=ei(n,r,s),n!==null?n.sibling:null);xi(r);break;case 19:var h=(n.flags&128)!==0;if(o=(s&r.childLanes)!==0,o||(Qa(n,r,s,!1),o=(s&r.childLanes)!==0),h){if(o)return gy(n,r,s);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),k(ht,ht.current),o)break;return null;case 22:case 23:return r.lanes=0,uy(n,r,s);case 24:mi(r,ft,n.memoizedState.cache)}return ei(n,r,s)}function yy(n,r,s){if(n!==null)if(n.memoizedProps!==r.pendingProps)mt=!0;else{if(!hf(n,s)&&(r.flags&128)===0)return mt=!1,l4(n,r,s);mt=(n.flags&131072)!==0}else mt=!1,Ne&&(r.flags&1048576)!==0&&Xm(r,Fl,r.index);switch(r.lanes=0,r.tag){case 16:e:{n=r.pendingProps;var o=r.elementType,h=o._init;if(o=h(o._payload),r.type=o,typeof o=="function")xc(o)?(n=rr(o,n),r.tag=1,r=hy(null,r,o,n,s)):(r.tag=0,r=af(null,r,o,n,s));else{if(o!=null){if(h=o.$$typeof,h===V){r.tag=11,r=sy(null,r,o,n,s);break e}else if(h===Z){r.tag=14,r=ly(null,r,o,n,s);break e}}throw r=ae(o)||o,Error(a(306,r,""))}}return r;case 0:return af(n,r,r.type,r.pendingProps,s);case 1:return o=r.type,h=rr(o,r.pendingProps),hy(n,r,o,h,s);case 3:e:{if(De(r,r.stateNode.containerInfo),n===null)throw Error(a(387));o=r.pendingProps;var g=r.memoizedState;h=g.element,Lc(n,r),rs(r,o,null,s);var x=r.memoizedState;if(o=x.cache,mi(r,ft,o),o!==g.cache&&kc(r,[ft],s,!0),is(),o=x.element,g.isDehydrated)if(g={element:o,isDehydrated:!1,cache:x.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=dy(n,r,o,s);break e}else if(o!==h){h=ln(Error(a(424)),r),$a(h),r=dy(n,r,o,s);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Je=wn(n.firstChild),Dt=r,Ne=!0,Ji=null,kn=!0,s=Zg(r,null,o,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Za(),o===h){r=ei(n,r,s);break e}vt(n,r,o,s)}r=r.child}return r;case 26:return uo(n,r),n===null?(s=S0(r.type,null,r.pendingProps,null))?r.memoizedState=s:Ne||(s=r.type,n=r.pendingProps,o=Co(ce.current).createElement(s),o[wt]=r,o[Lt]=n,xt(o,s,n),pt(o),r.stateNode=o):r.memoizedState=S0(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return An(r),n===null&&Ne&&(o=r.stateNode=v0(r.type,r.pendingProps,ce.current),Dt=r,kn=!0,h=Je,_i(r.type)?(Gf=h,Je=wn(o.firstChild)):Je=h),vt(n,r,r.pendingProps.children,s),uo(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&Ne&&((h=o=Je)&&(o=j4(o,r.type,r.pendingProps,kn),o!==null?(r.stateNode=o,Dt=r,Je=wn(o.firstChild),kn=!1,h=!0):h=!1),h||Wi(r)),An(r),h=r.type,g=r.pendingProps,x=n!==null?n.memoizedProps:null,o=g.children,qf(h,g)?o=null:x!==null&&qf(h,x)&&(r.flags|=32),r.memoizedState!==null&&(h=Hc(n,r,WS,null,null,s),As._currentValue=h),uo(n,r),vt(n,r,o,s),r.child;case 6:return n===null&&Ne&&((n=s=Je)&&(s=B4(s,r.pendingProps,kn),s!==null?(r.stateNode=s,Dt=r,Je=null,n=!0):n=!1),n||Wi(r)),null;case 13:return py(n,r,s);case 4:return De(r,r.stateNode.containerInfo),o=r.pendingProps,n===null?r.child=Gr(r,null,o,s):vt(n,r,o,s),r.child;case 11:return sy(n,r,r.type,r.pendingProps,s);case 7:return vt(n,r,r.pendingProps,s),r.child;case 8:return vt(n,r,r.pendingProps.children,s),r.child;case 12:return vt(n,r,r.pendingProps.children,s),r.child;case 10:return o=r.pendingProps,mi(r,r.type,o.value),vt(n,r,o.children,s),r.child;case 9:return h=r.type._context,o=r.pendingProps.children,tr(r),h=Et(h),o=o(h),r.flags|=1,vt(n,r,o,s),r.child;case 14:return ly(n,r,r.type,r.pendingProps,s);case 15:return oy(n,r,r.type,r.pendingProps,s);case 19:return gy(n,r,s);case 31:return o=r.pendingProps,s=r.mode,o={mode:o.mode,children:o.children},n===null?(s=co(o,s),s.ref=r.ref,r.child=s,s.return=r,r=s):(s=Xn(n.child,o),s.ref=r.ref,r.child=s,s.return=r,r=s),r;case 22:return uy(n,r,s);case 24:return tr(r),o=Et(ft),n===null?(h=Dc(),h===null&&(h=Fe,g=Oc(),h.pooledCache=g,g.refCount++,g!==null&&(h.pooledCacheLanes|=s),h=g),r.memoizedState={parent:o,cache:h},Nc(r),mi(r,ft,h)):((n.lanes&s)!==0&&(Lc(n,r),rs(r,null,null,s),is()),h=n.memoizedState,g=r.memoizedState,h.parent!==o?(h={parent:o,cache:o},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),mi(r,ft,o)):(o=g.cache,mi(r,ft,o),o!==h.cache&&kc(r,[ft],s,!0))),vt(n,r,r.pendingProps.children,s),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function ti(n){n.flags|=4}function vy(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!A0(r)){if(r=fn.current,r!==null&&((_e&4194048)===_e?On!==null:(_e&62914560)!==_e&&(_e&536870912)===0||r!==On))throw ts=Mc,tg;n.flags|=8192}}function fo(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?$p():536870912,n.lanes|=r,$r|=r)}function fs(n,r){if(!Ne)switch(n.tailMode){case"hidden":r=n.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function Ke(n){var r=n.alternate!==null&&n.alternate.child===n.child,s=0,o=0;if(r)for(var h=n.child;h!==null;)s|=h.lanes|h.childLanes,o|=h.subtreeFlags&65011712,o|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)s|=h.lanes|h.childLanes,o|=h.subtreeFlags,o|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=o,n.childLanes=s,r}function o4(n,r,s){var o=r.pendingProps;switch(Tc(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(r),null;case 1:return Ke(r),null;case 3:return s=r.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Qn(ft),_t(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Ka(r)?ti(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,$m())),Ke(r),null;case 26:return s=r.memoizedState,n===null?(ti(r),s!==null?(Ke(r),vy(r,s)):(Ke(r),r.flags&=-16777217)):s?s!==n.memoizedState?(ti(r),Ke(r),vy(r,s)):(Ke(r),r.flags&=-16777217):(n.memoizedProps!==o&&ti(r),Ke(r),r.flags&=-16777217),null;case 27:Fn(r),s=ce.current;var h=r.type;if(n!==null&&r.stateNode!=null)n.memoizedProps!==o&&ti(r);else{if(!o){if(r.stateNode===null)throw Error(a(166));return Ke(r),null}n=oe.current,Ka(r)?Km(r):(n=v0(h,o,s),r.stateNode=n,ti(r))}return Ke(r),null;case 5:if(Fn(r),s=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==o&&ti(r);else{if(!o){if(r.stateNode===null)throw Error(a(166));return Ke(r),null}if(n=oe.current,Ka(r))Km(r);else{switch(h=Co(ce.current),n){case 1:n=h.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:n=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":n=h.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":n=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":n=h.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?h.createElement("select",{is:o.is}):h.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?h.createElement(s,{is:o.is}):h.createElement(s)}}n[wt]=r,n[Lt]=o;e:for(h=r.child;h!==null;){if(h.tag===5||h.tag===6)n.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===r)break e;for(;h.sibling===null;){if(h.return===null||h.return===r)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}r.stateNode=n;e:switch(xt(n,s,o),s){case"button":case"input":case"select":case"textarea":n=!!o.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ti(r)}}return Ke(r),r.flags&=-16777217,null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==o&&ti(r);else{if(typeof o!="string"&&r.stateNode===null)throw Error(a(166));if(n=ce.current,Ka(r)){if(n=r.stateNode,s=r.memoizedProps,o=null,h=Dt,h!==null)switch(h.tag){case 27:case 5:o=h.memoizedProps}n[wt]=r,n=!!(n.nodeValue===s||o!==null&&o.suppressHydrationWarning===!0||f0(n.nodeValue,s)),n||Wi(r)}else n=Co(n).createTextNode(o),n[wt]=r,r.stateNode=n}return Ke(r),null;case 13:if(o=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=Ka(r),o!==null&&o.dehydrated!==null){if(n===null){if(!h)throw Error(a(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[wt]=r}else Za(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ke(r),h=!1}else h=$m(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(Wn(r),r):(Wn(r),null)}if(Wn(r),(r.flags&128)!==0)return r.lanes=s,r;if(s=o!==null,n=n!==null&&n.memoizedState!==null,s){o=r.child,h=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(h=o.alternate.memoizedState.cachePool.pool);var g=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(g=o.memoizedState.cachePool.pool),g!==h&&(o.flags|=2048)}return s!==n&&s&&(r.child.flags|=8192),fo(r,r.updateQueue),Ke(r),null;case 4:return _t(),n===null&&zf(r.stateNode.containerInfo),Ke(r),null;case 10:return Qn(r.type),Ke(r),null;case 19:if(te(ht),h=r.memoizedState,h===null)return Ke(r),null;if(o=(r.flags&128)!==0,g=h.rendering,g===null)if(o)fs(h,!1);else{if(We!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(g=so(n),g!==null){for(r.flags|=128,fs(h,!1),n=g.updateQueue,r.updateQueue=n,fo(r,n),r.subtreeFlags=0,n=s,s=r.child;s!==null;)Gm(s,n),s=s.sibling;return k(ht,ht.current&1|2),r.child}n=n.sibling}h.tail!==null&&It()>mo&&(r.flags|=128,o=!0,fs(h,!1),r.lanes=4194304)}else{if(!o)if(n=so(g),n!==null){if(r.flags|=128,o=!0,n=n.updateQueue,r.updateQueue=n,fo(r,n),fs(h,!0),h.tail===null&&h.tailMode==="hidden"&&!g.alternate&&!Ne)return Ke(r),null}else 2*It()-h.renderingStartTime>mo&&s!==536870912&&(r.flags|=128,o=!0,fs(h,!1),r.lanes=4194304);h.isBackwards?(g.sibling=r.child,r.child=g):(n=h.last,n!==null?n.sibling=g:r.child=g,h.last=g)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=It(),r.sibling=null,n=ht.current,k(ht,o?n&1|2:n&1),r):(Ke(r),null);case 22:case 23:return Wn(r),Uc(),o=r.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(r.flags|=8192):o&&(r.flags|=8192),o?(s&536870912)!==0&&(r.flags&128)===0&&(Ke(r),r.subtreeFlags&6&&(r.flags|=8192)):Ke(r),s=r.updateQueue,s!==null&&fo(r,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==s&&(r.flags|=2048),n!==null&&te(nr),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),Qn(ft),Ke(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function u4(n,r){switch(Tc(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Qn(ft),_t(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return Fn(r),null;case 13:if(Wn(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));Za()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return te(ht),null;case 4:return _t(),null;case 10:return Qn(r.type),null;case 22:case 23:return Wn(r),Uc(),n!==null&&te(nr),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Qn(ft),null;case 25:return null;default:return null}}function by(n,r){switch(Tc(r),r.tag){case 3:Qn(ft),_t();break;case 26:case 27:case 5:Fn(r);break;case 4:_t();break;case 13:Wn(r);break;case 19:te(ht);break;case 10:Qn(r.type);break;case 22:case 23:Wn(r),Uc(),n!==null&&te(nr);break;case 24:Qn(ft)}}function hs(n,r){try{var s=r.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var h=o.next;s=h;do{if((s.tag&n)===n){o=void 0;var g=s.create,x=s.inst;o=g(),x.destroy=o}s=s.next}while(s!==h)}}catch(T){qe(r,r.return,T)}}function wi(n,r,s){try{var o=r.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var g=h.next;o=g;do{if((o.tag&n)===n){var x=o.inst,T=x.destroy;if(T!==void 0){x.destroy=void 0,h=r;var D=s,U=T;try{U()}catch(Y){qe(h,D,Y)}}}o=o.next}while(o!==g)}}catch(Y){qe(r,r.return,Y)}}function xy(n){var r=n.updateQueue;if(r!==null){var s=n.stateNode;try{lg(r,s)}catch(o){qe(n,n.return,o)}}}function Sy(n,r,s){s.props=rr(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(o){qe(n,r,o)}}function ds(n,r){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof s=="function"?n.refCleanup=s(o):s.current=o}}catch(h){qe(n,r,h)}}function _n(n,r){var s=n.ref,o=n.refCleanup;if(s!==null)if(typeof o=="function")try{o()}catch(h){qe(n,r,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(h){qe(n,r,h)}else s.current=null}function wy(n){var r=n.type,s=n.memoizedProps,o=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":s.autoFocus&&o.focus();break e;case"img":s.src?o.src=s.src:s.srcSet&&(o.srcset=s.srcSet)}}catch(h){qe(n,n.return,h)}}function df(n,r,s){try{var o=n.stateNode;_4(o,n.type,s,r),o[Lt]=r}catch(h){qe(n,n.return,h)}}function Ey(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&_i(n.type)||n.tag===4}function pf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Ey(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&_i(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function mf(n,r,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,r?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,r):(r=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,r.appendChild(n),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=To));else if(o!==4&&(o===27&&_i(n.type)&&(s=n.stateNode,r=null),n=n.child,n!==null))for(mf(n,r,s),n=n.sibling;n!==null;)mf(n,r,s),n=n.sibling}function ho(n,r,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,r?s.insertBefore(n,r):s.appendChild(n);else if(o!==4&&(o===27&&_i(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(ho(n,r,s),n=n.sibling;n!==null;)ho(n,r,s),n=n.sibling}function Ty(n){var r=n.stateNode,s=n.memoizedProps;try{for(var o=n.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);xt(r,o,s),r[wt]=n,r[Lt]=s}catch(g){qe(n,n.return,g)}}var ni=!1,nt=!1,gf=!1,Cy=typeof WeakSet=="function"?WeakSet:Set,gt=null;function c4(n,r){if(n=n.containerInfo,Hf=Do,n=Bm(n),dc(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var h=o.anchorOffset,g=o.focusNode;o=o.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var x=0,T=-1,D=-1,U=0,Y=0,K=n,H=null;t:for(;;){for(var P;K!==s||h!==0&&K.nodeType!==3||(T=x+h),K!==g||o!==0&&K.nodeType!==3||(D=x+o),K.nodeType===3&&(x+=K.nodeValue.length),(P=K.firstChild)!==null;)H=K,K=P;for(;;){if(K===n)break t;if(H===s&&++U===h&&(T=x),H===g&&++Y===o&&(D=x),(P=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=P}s=T===-1||D===-1?null:{start:T,end:D}}else s=null}s=s||{start:0,end:0}}else s=null;for(Pf={focusedElem:n,selectionRange:s},Do=!1,gt=r;gt!==null;)if(r=gt,n=r.child,(r.subtreeFlags&1024)!==0&&n!==null)n.return=r,gt=n;else for(;gt!==null;){switch(r=gt,g=r.alternate,n=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,s=r,h=g.memoizedProps,g=g.memoizedState,o=s.stateNode;try{var ye=rr(s.type,h,s.elementType===s.type);n=o.getSnapshotBeforeUpdate(ye,g),o.__reactInternalSnapshotBeforeUpdate=n}catch(pe){qe(s,s.return,pe)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,s=n.nodeType,s===9)If(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":If(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=r.sibling,n!==null){n.return=r.return,gt=n;break}gt=r.return}}function Ay(n,r,s){var o=s.flags;switch(s.tag){case 0:case 11:case 15:Ei(n,s),o&4&&hs(5,s);break;case 1:if(Ei(n,s),o&4)if(n=s.stateNode,r===null)try{n.componentDidMount()}catch(x){qe(s,s.return,x)}else{var h=rr(s.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(h,r,n.__reactInternalSnapshotBeforeUpdate)}catch(x){qe(s,s.return,x)}}o&64&&xy(s),o&512&&ds(s,s.return);break;case 3:if(Ei(n,s),o&64&&(n=s.updateQueue,n!==null)){if(r=null,s.child!==null)switch(s.child.tag){case 27:case 5:r=s.child.stateNode;break;case 1:r=s.child.stateNode}try{lg(n,r)}catch(x){qe(s,s.return,x)}}break;case 27:r===null&&o&4&&Ty(s);case 26:case 5:Ei(n,s),r===null&&o&4&&wy(s),o&512&&ds(s,s.return);break;case 12:Ei(n,s);break;case 13:Ei(n,s),o&4&&Oy(n,s),o&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=b4.bind(null,s),z4(n,s))));break;case 22:if(o=s.memoizedState!==null||ni,!o){r=r!==null&&r.memoizedState!==null||nt,h=ni;var g=nt;ni=o,(nt=r)&&!g?Ti(n,s,(s.subtreeFlags&8772)!==0):Ei(n,s),ni=h,nt=g}break;case 30:break;default:Ei(n,s)}}function Ry(n){var r=n.alternate;r!==null&&(n.alternate=null,Ry(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&Ku(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Ge=null,zt=!1;function ii(n,r,s){for(s=s.child;s!==null;)ky(n,r,s),s=s.sibling}function ky(n,r,s){if(J&&typeof J.onCommitFiberUnmount=="function")try{J.onCommitFiberUnmount(I,s)}catch{}switch(s.tag){case 26:nt||_n(s,r),ii(n,r,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:nt||_n(s,r);var o=Ge,h=zt;_i(s.type)&&(Ge=s.stateNode,zt=!1),ii(n,r,s),ws(s.stateNode),Ge=o,zt=h;break;case 5:nt||_n(s,r);case 6:if(o=Ge,h=zt,Ge=null,ii(n,r,s),Ge=o,zt=h,Ge!==null)if(zt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(s.stateNode)}catch(g){qe(s,r,g)}else try{Ge.removeChild(s.stateNode)}catch(g){qe(s,r,g)}break;case 18:Ge!==null&&(zt?(n=Ge,g0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),_s(n)):g0(Ge,s.stateNode));break;case 4:o=Ge,h=zt,Ge=s.stateNode.containerInfo,zt=!0,ii(n,r,s),Ge=o,zt=h;break;case 0:case 11:case 14:case 15:nt||wi(2,s,r),nt||wi(4,s,r),ii(n,r,s);break;case 1:nt||(_n(s,r),o=s.stateNode,typeof o.componentWillUnmount=="function"&&Sy(s,r,o)),ii(n,r,s);break;case 21:ii(n,r,s);break;case 22:nt=(o=nt)||s.memoizedState!==null,ii(n,r,s),nt=o;break;default:ii(n,r,s)}}function Oy(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{_s(n)}catch(s){qe(r,r.return,s)}}function f4(n){switch(n.tag){case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Cy),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Cy),r;default:throw Error(a(435,n.tag))}}function yf(n,r){var s=f4(n);r.forEach(function(o){var h=x4.bind(null,n,o);s.has(o)||(s.add(o),o.then(h,h))})}function Zt(n,r){var s=r.deletions;if(s!==null)for(var o=0;o<s.length;o++){var h=s[o],g=n,x=r,T=x;e:for(;T!==null;){switch(T.tag){case 27:if(_i(T.type)){Ge=T.stateNode,zt=!1;break e}break;case 5:Ge=T.stateNode,zt=!1;break e;case 3:case 4:Ge=T.stateNode.containerInfo,zt=!0;break e}T=T.return}if(Ge===null)throw Error(a(160));ky(g,x,h),Ge=null,zt=!1,g=h.alternate,g!==null&&(g.return=null),h.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)_y(r,n),r=r.sibling}var Sn=null;function _y(n,r){var s=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Zt(r,n),$t(n),o&4&&(wi(3,n,n.return),hs(3,n),wi(5,n,n.return));break;case 1:Zt(r,n),$t(n),o&512&&(nt||s===null||_n(s,s.return)),o&64&&ni&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?o:s.concat(o))));break;case 26:var h=Sn;if(Zt(r,n),$t(n),o&512&&(nt||s===null||_n(s,s.return)),o&4){var g=s!==null?s.memoizedState:null;if(o=n.memoizedState,s===null)if(o===null)if(n.stateNode===null){e:{o=n.type,s=n.memoizedProps,h=h.ownerDocument||h;t:switch(o){case"title":g=h.getElementsByTagName("title")[0],(!g||g[za]||g[wt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=h.createElement(o),h.head.insertBefore(g,h.querySelector("head > title"))),xt(g,o,s),g[wt]=n,pt(g),o=g;break e;case"link":var x=T0("link","href",h).get(o+(s.href||""));if(x){for(var T=0;T<x.length;T++)if(g=x[T],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(T,1);break t}}g=h.createElement(o),xt(g,o,s),h.head.appendChild(g);break;case"meta":if(x=T0("meta","content",h).get(o+(s.content||""))){for(T=0;T<x.length;T++)if(g=x[T],g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(T,1);break t}}g=h.createElement(o),xt(g,o,s),h.head.appendChild(g);break;default:throw Error(a(468,o))}g[wt]=n,pt(g),o=g}n.stateNode=o}else C0(h,n.type,n.stateNode);else n.stateNode=E0(h,o,n.memoizedProps);else g!==o?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,o===null?C0(h,n.type,n.stateNode):E0(h,o,n.memoizedProps)):o===null&&n.stateNode!==null&&df(n,n.memoizedProps,s.memoizedProps)}break;case 27:Zt(r,n),$t(n),o&512&&(nt||s===null||_n(s,s.return)),s!==null&&o&4&&df(n,n.memoizedProps,s.memoizedProps);break;case 5:if(Zt(r,n),$t(n),o&512&&(nt||s===null||_n(s,s.return)),n.flags&32){h=n.stateNode;try{kr(h,"")}catch(P){qe(n,n.return,P)}}o&4&&n.stateNode!=null&&(h=n.memoizedProps,df(n,h,s!==null?s.memoizedProps:h)),o&1024&&(gf=!0);break;case 6:if(Zt(r,n),$t(n),o&4){if(n.stateNode===null)throw Error(a(162));o=n.memoizedProps,s=n.stateNode;try{s.nodeValue=o}catch(P){qe(n,n.return,P)}}break;case 3:if(ko=null,h=Sn,Sn=Ao(r.containerInfo),Zt(r,n),Sn=h,$t(n),o&4&&s!==null&&s.memoizedState.isDehydrated)try{_s(r.containerInfo)}catch(P){qe(n,n.return,P)}gf&&(gf=!1,Dy(n));break;case 4:o=Sn,Sn=Ao(n.stateNode.containerInfo),Zt(r,n),$t(n),Sn=o;break;case 12:Zt(r,n),$t(n);break;case 13:Zt(r,n),$t(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Ef=It()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,yf(n,o)));break;case 22:h=n.memoizedState!==null;var D=s!==null&&s.memoizedState!==null,U=ni,Y=nt;if(ni=U||h,nt=Y||D,Zt(r,n),nt=Y,ni=U,$t(n),o&8192)e:for(r=n.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(s===null||D||ni||nt||ar(n)),s=null,r=n;;){if(r.tag===5||r.tag===26){if(s===null){D=s=r;try{if(g=D.stateNode,h)x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{T=D.stateNode;var K=D.memoizedProps.style,H=K!=null&&K.hasOwnProperty("display")?K.display:null;T.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(P){qe(D,D.return,P)}}}else if(r.tag===6){if(s===null){D=r;try{D.stateNode.nodeValue=h?"":D.memoizedProps}catch(P){qe(D,D.return,P)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;s===r&&(s=null),r=r.return}s===r&&(s=null),r.sibling.return=r.return,r=r.sibling}o&4&&(o=n.updateQueue,o!==null&&(s=o.retryQueue,s!==null&&(o.retryQueue=null,yf(n,s))));break;case 19:Zt(r,n),$t(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,yf(n,o)));break;case 30:break;case 21:break;default:Zt(r,n),$t(n)}}function $t(n){var r=n.flags;if(r&2){try{for(var s,o=n.return;o!==null;){if(Ey(o)){s=o;break}o=o.return}if(s==null)throw Error(a(160));switch(s.tag){case 27:var h=s.stateNode,g=pf(n);ho(n,g,h);break;case 5:var x=s.stateNode;s.flags&32&&(kr(x,""),s.flags&=-33);var T=pf(n);ho(n,T,x);break;case 3:case 4:var D=s.stateNode.containerInfo,U=pf(n);mf(n,U,D);break;default:throw Error(a(161))}}catch(Y){qe(n,n.return,Y)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Dy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Dy(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function Ei(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Ay(n,r.alternate,r),r=r.sibling}function ar(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:wi(4,r,r.return),ar(r);break;case 1:_n(r,r.return);var s=r.stateNode;typeof s.componentWillUnmount=="function"&&Sy(r,r.return,s),ar(r);break;case 27:ws(r.stateNode);case 26:case 5:_n(r,r.return),ar(r);break;case 22:r.memoizedState===null&&ar(r);break;case 30:ar(r);break;default:ar(r)}n=n.sibling}}function Ti(n,r,s){for(s=s&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var o=r.alternate,h=n,g=r,x=g.flags;switch(g.tag){case 0:case 11:case 15:Ti(h,g,s),hs(4,g);break;case 1:if(Ti(h,g,s),o=g,h=o.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(U){qe(o,o.return,U)}if(o=g,h=o.updateQueue,h!==null){var T=o.stateNode;try{var D=h.shared.hiddenCallbacks;if(D!==null)for(h.shared.hiddenCallbacks=null,h=0;h<D.length;h++)sg(D[h],T)}catch(U){qe(o,o.return,U)}}s&&x&64&&xy(g),ds(g,g.return);break;case 27:Ty(g);case 26:case 5:Ti(h,g,s),s&&o===null&&x&4&&wy(g),ds(g,g.return);break;case 12:Ti(h,g,s);break;case 13:Ti(h,g,s),s&&x&4&&Oy(h,g);break;case 22:g.memoizedState===null&&Ti(h,g,s),ds(g,g.return);break;case 30:break;default:Ti(h,g,s)}r=r.sibling}}function vf(n,r){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Ja(s))}function bf(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Ja(n))}function Dn(n,r,s,o){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)My(n,r,s,o),r=r.sibling}function My(n,r,s,o){var h=r.flags;switch(r.tag){case 0:case 11:case 15:Dn(n,r,s,o),h&2048&&hs(9,r);break;case 1:Dn(n,r,s,o);break;case 3:Dn(n,r,s,o),h&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Ja(n)));break;case 12:if(h&2048){Dn(n,r,s,o),n=r.stateNode;try{var g=r.memoizedProps,x=g.id,T=g.onPostCommit;typeof T=="function"&&T(x,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(D){qe(r,r.return,D)}}else Dn(n,r,s,o);break;case 13:Dn(n,r,s,o);break;case 23:break;case 22:g=r.stateNode,x=r.alternate,r.memoizedState!==null?g._visibility&2?Dn(n,r,s,o):ps(n,r):g._visibility&2?Dn(n,r,s,o):(g._visibility|=2,Xr(n,r,s,o,(r.subtreeFlags&10256)!==0)),h&2048&&vf(x,r);break;case 24:Dn(n,r,s,o),h&2048&&bf(r.alternate,r);break;default:Dn(n,r,s,o)}}function Xr(n,r,s,o,h){for(h=h&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var g=n,x=r,T=s,D=o,U=x.flags;switch(x.tag){case 0:case 11:case 15:Xr(g,x,T,D,h),hs(8,x);break;case 23:break;case 22:var Y=x.stateNode;x.memoizedState!==null?Y._visibility&2?Xr(g,x,T,D,h):ps(g,x):(Y._visibility|=2,Xr(g,x,T,D,h)),h&&U&2048&&vf(x.alternate,x);break;case 24:Xr(g,x,T,D,h),h&&U&2048&&bf(x.alternate,x);break;default:Xr(g,x,T,D,h)}r=r.sibling}}function ps(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var s=n,o=r,h=o.flags;switch(o.tag){case 22:ps(s,o),h&2048&&vf(o.alternate,o);break;case 24:ps(s,o),h&2048&&bf(o.alternate,o);break;default:ps(s,o)}r=r.sibling}}var ms=8192;function Kr(n){if(n.subtreeFlags&ms)for(n=n.child;n!==null;)Ny(n),n=n.sibling}function Ny(n){switch(n.tag){case 26:Kr(n),n.flags&ms&&n.memoizedState!==null&&$4(Sn,n.memoizedState,n.memoizedProps);break;case 5:Kr(n);break;case 3:case 4:var r=Sn;Sn=Ao(n.stateNode.containerInfo),Kr(n),Sn=r;break;case 22:n.memoizedState===null&&(r=n.alternate,r!==null&&r.memoizedState!==null?(r=ms,ms=16777216,Kr(n),ms=r):Kr(n));break;default:Kr(n)}}function Ly(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function gs(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var o=r[s];gt=o,By(o,n)}Ly(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)jy(n),n=n.sibling}function jy(n){switch(n.tag){case 0:case 11:case 15:gs(n),n.flags&2048&&wi(9,n,n.return);break;case 3:gs(n);break;case 12:gs(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,po(n)):gs(n);break;default:gs(n)}}function po(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var o=r[s];gt=o,By(o,n)}Ly(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:wi(8,r,r.return),po(r);break;case 22:s=r.stateNode,s._visibility&2&&(s._visibility&=-3,po(r));break;default:po(r)}n=n.sibling}}function By(n,r){for(;gt!==null;){var s=gt;switch(s.tag){case 0:case 11:case 15:wi(8,s,r);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var o=s.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ja(s.memoizedState.cache)}if(o=s.child,o!==null)o.return=s,gt=o;else e:for(s=n;gt!==null;){o=gt;var h=o.sibling,g=o.return;if(Ry(o),o===s){gt=null;break e}if(h!==null){h.return=g,gt=h;break e}gt=g}}}var h4={getCacheForType:function(n){var r=Et(ft),s=r.data.get(n);return s===void 0&&(s=n(),r.data.set(n,s)),s}},d4=typeof WeakMap=="function"?WeakMap:Map,Be=0,Fe=null,Re=null,_e=0,ze=0,Qt=null,Ci=!1,Zr=!1,xf=!1,ri=0,We=0,Ai=0,sr=0,Sf=0,hn=0,$r=0,ys=null,Ut=null,wf=!1,Ef=0,mo=1/0,go=null,Ri=null,bt=0,ki=null,Qr=null,Jr=0,Tf=0,Cf=null,zy=null,vs=0,Af=null;function Jt(){if((Be&2)!==0&&_e!==0)return _e&-_e;if(q.T!==null){var n=Vr;return n!==0?n:Nf()}return Wp()}function Uy(){hn===0&&(hn=(_e&536870912)===0||Ne?Zp():536870912);var n=fn.current;return n!==null&&(n.flags|=32),hn}function Wt(n,r,s){(n===Fe&&(ze===2||ze===9)||n.cancelPendingCommit!==null)&&(Wr(n,0),Oi(n,_e,hn,!1)),Ba(n,s),((Be&2)===0||n!==Fe)&&(n===Fe&&((Be&2)===0&&(sr|=s),We===4&&Oi(n,_e,hn,!1)),Mn(n))}function Vy(n,r,s){if((Be&6)!==0)throw Error(a(327));var o=!s&&(r&124)===0&&(r&n.expiredLanes)===0||rn(n,r),h=o?g4(n,r):Of(n,r,!0),g=o;do{if(h===0){Zr&&!o&&Oi(n,r,0,!1);break}else{if(s=n.current.alternate,g&&!p4(s)){h=Of(n,r,!1),g=!1;continue}if(h===2){if(g=r,n.errorRecoveryDisabledLanes&g)var x=0;else x=n.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){r=x;e:{var T=n;h=ys;var D=T.current.memoizedState.isDehydrated;if(D&&(Wr(T,x).flags|=256),x=Of(T,x,!1),x!==2){if(xf&&!D){T.errorRecoveryDisabledLanes|=g,sr|=g,h=4;break e}g=Ut,Ut=h,g!==null&&(Ut===null?Ut=g:Ut.push.apply(Ut,g))}h=x}if(g=!1,h!==2)continue}}if(h===1){Wr(n,0),Oi(n,r,0,!0);break}e:{switch(o=n,g=h,g){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:Oi(o,r,hn,!Ci);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(h=Ef+300-It(),10<h)){if(Oi(o,r,hn,!Ci),dt(o,0,!0)!==0)break e;o.timeoutHandle=p0(Hy.bind(null,o,s,Ut,go,wf,r,hn,sr,$r,Ci,g,2,-0,0),h);break e}Hy(o,s,Ut,go,wf,r,hn,sr,$r,Ci,g,0,-0,0)}}break}while(!0);Mn(n)}function Hy(n,r,s,o,h,g,x,T,D,U,Y,K,H,P){if(n.timeoutHandle=-1,K=r.subtreeFlags,(K&8192||(K&16785408)===16785408)&&(Cs={stylesheets:null,count:0,unsuspend:Z4},Ny(r),K=Q4(),K!==null)){n.cancelPendingCommit=K(Xy.bind(null,n,r,g,s,o,h,x,T,D,Y,1,H,P)),Oi(n,g,x,!U);return}Xy(n,r,g,s,o,h,x,T,D)}function p4(n){for(var r=n;;){var s=r.tag;if((s===0||s===11||s===15)&&r.flags&16384&&(s=r.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var o=0;o<s.length;o++){var h=s[o],g=h.getSnapshot;h=h.value;try{if(!Xt(g(),h))return!1}catch{return!1}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Oi(n,r,s,o){r&=~Sf,r&=~sr,n.suspendedLanes|=r,n.pingedLanes&=~r,o&&(n.warmLanes|=r),o=n.expirationTimes;for(var h=r;0<h;){var g=31-ge(h),x=1<<g;o[g]=-1,h&=~x}s!==0&&Qp(n,s,r)}function yo(){return(Be&6)===0?(bs(0),!1):!0}function Rf(){if(Re!==null){if(ze===0)var n=Re.return;else n=Re,$n=er=null,Fc(n),Yr=null,us=0,n=Re;for(;n!==null;)by(n.alternate,n),n=n.return;Re=null}}function Wr(n,r){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,M4(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Rf(),Fe=n,Re=s=Xn(n.current,null),_e=r,ze=0,Qt=null,Ci=!1,Zr=rn(n,r),xf=!1,$r=hn=Sf=sr=Ai=We=0,Ut=ys=null,wf=!1,(r&8)!==0&&(r|=r&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=r;0<o;){var h=31-ge(o),g=1<<h;r|=n[h],o&=~g}return ri=r,Ul(),s}function Py(n,r){Ce=null,q.H=io,r===es||r===Xl?(r=rg(),ze=3):r===tg?(r=rg(),ze=4):ze=r===ay?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Qt=r,Re===null&&(We=1,oo(n,ln(r,n.current)))}function qy(){var n=q.H;return q.H=io,n===null?io:n}function Fy(){var n=q.A;return q.A=h4,n}function kf(){We=4,Ci||(_e&4194048)!==_e&&fn.current!==null||(Zr=!0),(Ai&134217727)===0&&(sr&134217727)===0||Fe===null||Oi(Fe,_e,hn,!1)}function Of(n,r,s){var o=Be;Be|=2;var h=qy(),g=Fy();(Fe!==n||_e!==r)&&(go=null,Wr(n,r)),r=!1;var x=We;e:do try{if(ze!==0&&Re!==null){var T=Re,D=Qt;switch(ze){case 8:Rf(),x=6;break e;case 3:case 2:case 9:case 6:fn.current===null&&(r=!0);var U=ze;if(ze=0,Qt=null,ea(n,T,D,U),s&&Zr){x=0;break e}break;default:U=ze,ze=0,Qt=null,ea(n,T,D,U)}}m4(),x=We;break}catch(Y){Py(n,Y)}while(!0);return r&&n.shellSuspendCounter++,$n=er=null,Be=o,q.H=h,q.A=g,Re===null&&(Fe=null,_e=0,Ul()),x}function m4(){for(;Re!==null;)Iy(Re)}function g4(n,r){var s=Be;Be|=2;var o=qy(),h=Fy();Fe!==n||_e!==r?(go=null,mo=It()+500,Wr(n,r)):Zr=rn(n,r);e:do try{if(ze!==0&&Re!==null){r=Re;var g=Qt;t:switch(ze){case 1:ze=0,Qt=null,ea(n,r,g,1);break;case 2:case 9:if(ng(g)){ze=0,Qt=null,Yy(r);break}r=function(){ze!==2&&ze!==9||Fe!==n||(ze=7),Mn(n)},g.then(r,r);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:ng(g)?(ze=0,Qt=null,Yy(r)):(ze=0,Qt=null,ea(n,r,g,7));break;case 5:var x=null;switch(Re.tag){case 26:x=Re.memoizedState;case 5:case 27:var T=Re;if(!x||A0(x)){ze=0,Qt=null;var D=T.sibling;if(D!==null)Re=D;else{var U=T.return;U!==null?(Re=U,vo(U)):Re=null}break t}}ze=0,Qt=null,ea(n,r,g,5);break;case 6:ze=0,Qt=null,ea(n,r,g,6);break;case 8:Rf(),We=6;break e;default:throw Error(a(462))}}y4();break}catch(Y){Py(n,Y)}while(!0);return $n=er=null,q.H=o,q.A=h,Be=s,Re!==null?0:(Fe=null,_e=0,Ul(),We)}function y4(){for(;Re!==null&&!Tl();)Iy(Re)}function Iy(n){var r=yy(n.alternate,n,ri);n.memoizedProps=n.pendingProps,r===null?vo(n):Re=r}function Yy(n){var r=n,s=r.alternate;switch(r.tag){case 15:case 0:r=fy(s,r,r.pendingProps,r.type,void 0,_e);break;case 11:r=fy(s,r,r.pendingProps,r.type.render,r.ref,_e);break;case 5:Fc(r);default:by(s,r),r=Re=Gm(r,ri),r=yy(s,r,ri)}n.memoizedProps=n.pendingProps,r===null?vo(n):Re=r}function ea(n,r,s,o){$n=er=null,Fc(r),Yr=null,us=0;var h=r.return;try{if(s4(n,h,r,s,_e)){We=1,oo(n,ln(s,n.current)),Re=null;return}}catch(g){if(h!==null)throw Re=h,g;We=1,oo(n,ln(s,n.current)),Re=null;return}r.flags&32768?(Ne||o===1?n=!0:Zr||(_e&536870912)!==0?n=!1:(Ci=n=!0,(o===2||o===9||o===3||o===6)&&(o=fn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Gy(r,n)):vo(r)}function vo(n){var r=n;do{if((r.flags&32768)!==0){Gy(r,Ci);return}n=r.return;var s=o4(r.alternate,r,ri);if(s!==null){Re=s;return}if(r=r.sibling,r!==null){Re=r;return}Re=r=n}while(r!==null);We===0&&(We=5)}function Gy(n,r){do{var s=u4(n.alternate,n);if(s!==null){s.flags&=32767,Re=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!r&&(n=n.sibling,n!==null)){Re=n;return}Re=n=s}while(n!==null);We=6,Re=null}function Xy(n,r,s,o,h,g,x,T,D){n.cancelPendingCommit=null;do bo();while(bt!==0);if((Be&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(g=r.lanes|r.childLanes,g|=vc,Z3(n,s,g,x,T,D),n===Fe&&(Re=Fe=null,_e=0),Qr=r,ki=n,Jr=s,Tf=g,Cf=h,zy=o,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,S4(xr,function(){return Jy(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||o){o=q.T,q.T=null,h=$.p,$.p=2,x=Be,Be|=4;try{c4(n,r,s)}finally{Be=x,$.p=h,q.T=o}}bt=1,Ky(),Zy(),$y()}}function Ky(){if(bt===1){bt=0;var n=ki,r=Qr,s=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||s){s=q.T,q.T=null;var o=$.p;$.p=2;var h=Be;Be|=4;try{_y(r,n);var g=Pf,x=Bm(n.containerInfo),T=g.focusedElem,D=g.selectionRange;if(x!==T&&T&&T.ownerDocument&&jm(T.ownerDocument.documentElement,T)){if(D!==null&&dc(T)){var U=D.start,Y=D.end;if(Y===void 0&&(Y=U),"selectionStart"in T)T.selectionStart=U,T.selectionEnd=Math.min(Y,T.value.length);else{var K=T.ownerDocument||document,H=K&&K.defaultView||window;if(H.getSelection){var P=H.getSelection(),ye=T.textContent.length,pe=Math.min(D.start,ye),He=D.end===void 0?pe:Math.min(D.end,ye);!P.extend&&pe>He&&(x=He,He=pe,pe=x);var j=Lm(T,pe),N=Lm(T,He);if(j&&N&&(P.rangeCount!==1||P.anchorNode!==j.node||P.anchorOffset!==j.offset||P.focusNode!==N.node||P.focusOffset!==N.offset)){var z=K.createRange();z.setStart(j.node,j.offset),P.removeAllRanges(),pe>He?(P.addRange(z),P.extend(N.node,N.offset)):(z.setEnd(N.node,N.offset),P.addRange(z))}}}}for(K=[],P=T;P=P.parentNode;)P.nodeType===1&&K.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<K.length;T++){var G=K[T];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Do=!!Hf,Pf=Hf=null}finally{Be=h,$.p=o,q.T=s}}n.current=r,bt=2}}function Zy(){if(bt===2){bt=0;var n=ki,r=Qr,s=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||s){s=q.T,q.T=null;var o=$.p;$.p=2;var h=Be;Be|=4;try{Ay(n,r.alternate,r)}finally{Be=h,$.p=o,q.T=s}}bt=3}}function $y(){if(bt===4||bt===3){bt=0,Cl();var n=ki,r=Qr,s=Jr,o=zy;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?bt=5:(bt=0,Qr=ki=null,Qy(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(Ri=null),Gu(s),r=r.stateNode,J&&typeof J.onCommitFiberRoot=="function")try{J.onCommitFiberRoot(I,r,void 0,(r.current.flags&128)===128)}catch{}if(o!==null){r=q.T,h=$.p,$.p=2,q.T=null;try{for(var g=n.onRecoverableError,x=0;x<o.length;x++){var T=o[x];g(T.value,{componentStack:T.stack})}}finally{q.T=r,$.p=h}}(Jr&3)!==0&&bo(),Mn(n),h=n.pendingLanes,(s&4194090)!==0&&(h&42)!==0?n===Af?vs++:(vs=0,Af=n):vs=0,bs(0)}}function Qy(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,Ja(r)))}function bo(n){return Ky(),Zy(),$y(),Jy()}function Jy(){if(bt!==5)return!1;var n=ki,r=Tf;Tf=0;var s=Gu(Jr),o=q.T,h=$.p;try{$.p=32>s?32:s,q.T=null,s=Cf,Cf=null;var g=ki,x=Jr;if(bt=0,Qr=ki=null,Jr=0,(Be&6)!==0)throw Error(a(331));var T=Be;if(Be|=4,jy(g.current),My(g,g.current,x,s),Be=T,bs(0,!1),J&&typeof J.onPostCommitFiberRoot=="function")try{J.onPostCommitFiberRoot(I,g)}catch{}return!0}finally{$.p=h,q.T=o,Qy(n,r)}}function Wy(n,r,s){r=ln(s,r),r=rf(n.stateNode,r,2),n=vi(n,r,2),n!==null&&(Ba(n,2),Mn(n))}function qe(n,r,s){if(n.tag===3)Wy(n,n,s);else for(;r!==null;){if(r.tag===3){Wy(r,n,s);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ri===null||!Ri.has(o))){n=ln(s,n),s=iy(2),o=vi(r,s,2),o!==null&&(ry(s,o,r,n),Ba(o,2),Mn(o));break}}r=r.return}}function _f(n,r,s){var o=n.pingCache;if(o===null){o=n.pingCache=new d4;var h=new Set;o.set(r,h)}else h=o.get(r),h===void 0&&(h=new Set,o.set(r,h));h.has(s)||(xf=!0,h.add(s),n=v4.bind(null,n,r,s),r.then(n,n))}function v4(n,r,s){var o=n.pingCache;o!==null&&o.delete(r),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,Fe===n&&(_e&s)===s&&(We===4||We===3&&(_e&62914560)===_e&&300>It()-Ef?(Be&2)===0&&Wr(n,0):Sf|=s,$r===_e&&($r=0)),Mn(n)}function e0(n,r){r===0&&(r=$p()),n=jr(n,r),n!==null&&(Ba(n,r),Mn(n))}function b4(n){var r=n.memoizedState,s=0;r!==null&&(s=r.retryLane),e0(n,s)}function x4(n,r){var s=0;switch(n.tag){case 13:var o=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(r),e0(n,s)}function S4(n,r){return Ma(n,r)}var xo=null,ta=null,Df=!1,So=!1,Mf=!1,lr=0;function Mn(n){n!==ta&&n.next===null&&(ta===null?xo=ta=n:ta=ta.next=n),So=!0,Df||(Df=!0,E4())}function bs(n,r){if(!Mf&&So){Mf=!0;do for(var s=!1,o=xo;o!==null;){if(n!==0){var h=o.pendingLanes;if(h===0)var g=0;else{var x=o.suspendedLanes,T=o.pingedLanes;g=(1<<31-ge(42|n)+1)-1,g&=h&~(x&~T),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(s=!0,r0(o,g))}else g=_e,g=dt(o,o===Fe?g:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(g&3)===0||rn(o,g)||(s=!0,r0(o,g));o=o.next}while(s);Mf=!1}}function w4(){t0()}function t0(){So=Df=!1;var n=0;lr!==0&&(D4()&&(n=lr),lr=0);for(var r=It(),s=null,o=xo;o!==null;){var h=o.next,g=n0(o,r);g===0?(o.next=null,s===null?xo=h:s.next=h,h===null&&(ta=s)):(s=o,(n!==0||(g&3)!==0)&&(So=!0)),o=h}bs(n)}function n0(n,r){for(var s=n.suspendedLanes,o=n.pingedLanes,h=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var x=31-ge(g),T=1<<x,D=h[x];D===-1?((T&s)===0||(T&o)!==0)&&(h[x]=bn(T,r)):D<=r&&(n.expiredLanes|=T),g&=~T}if(r=Fe,s=_e,s=dt(n,n===r?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,s===0||n===r&&(ze===2||ze===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&Na(o),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||rn(n,s)){if(r=s&-s,r===n.callbackPriority)return r;switch(o!==null&&Na(o),Gu(s)){case 2:case 8:s=ja;break;case 32:s=xr;break;case 268435456:s=Al;break;default:s=xr}return o=i0.bind(null,n),s=Ma(s,o),n.callbackPriority=r,n.callbackNode=s,r}return o!==null&&o!==null&&Na(o),n.callbackPriority=2,n.callbackNode=null,2}function i0(n,r){if(bt!==0&&bt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(bo()&&n.callbackNode!==s)return null;var o=_e;return o=dt(n,n===Fe?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(Vy(n,o,r),n0(n,It()),n.callbackNode!=null&&n.callbackNode===s?i0.bind(null,n):null)}function r0(n,r){if(bo())return null;Vy(n,r,!0)}function E4(){N4(function(){(Be&6)!==0?Ma(La,w4):t0()})}function Nf(){return lr===0&&(lr=Zp()),lr}function a0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Dl(""+n)}function s0(n,r){var s=r.ownerDocument.createElement("input");return s.name=r.name,s.value=r.value,n.id&&s.setAttribute("form",n.id),r.parentNode.insertBefore(s,r),n=new FormData(n),s.parentNode.removeChild(s),n}function T4(n,r,s,o,h){if(r==="submit"&&s&&s.stateNode===h){var g=a0((h[Lt]||null).action),x=o.submitter;x&&(r=(r=x[Lt]||null)?a0(r.formAction):x.getAttribute("formAction"),r!==null&&(g=r,x=null));var T=new jl("action","action",null,o,h);n.push({event:T,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(lr!==0){var D=x?s0(h,x):new FormData(h);Jc(s,{pending:!0,data:D,method:h.method,action:g},null,D)}}else typeof g=="function"&&(T.preventDefault(),D=x?s0(h,x):new FormData(h),Jc(s,{pending:!0,data:D,method:h.method,action:g},g,D))},currentTarget:h}]})}}for(var Lf=0;Lf<yc.length;Lf++){var jf=yc[Lf],C4=jf.toLowerCase(),A4=jf[0].toUpperCase()+jf.slice(1);xn(C4,"on"+A4)}xn(Vm,"onAnimationEnd"),xn(Hm,"onAnimationIteration"),xn(Pm,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(FS,"onTransitionRun"),xn(IS,"onTransitionStart"),xn(YS,"onTransitionCancel"),xn(qm,"onTransitionEnd"),Cr("onMouseEnter",["mouseout","mouseover"]),Cr("onMouseLeave",["mouseout","mouseover"]),Cr("onPointerEnter",["pointerout","pointerover"]),Cr("onPointerLeave",["pointerout","pointerover"]),Yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xs="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(" "),R4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xs));function l0(n,r){r=(r&4)!==0;for(var s=0;s<n.length;s++){var o=n[s],h=o.event;o=o.listeners;e:{var g=void 0;if(r)for(var x=o.length-1;0<=x;x--){var T=o[x],D=T.instance,U=T.currentTarget;if(T=T.listener,D!==g&&h.isPropagationStopped())break e;g=T,h.currentTarget=U;try{g(h)}catch(Y){lo(Y)}h.currentTarget=null,g=D}else for(x=0;x<o.length;x++){if(T=o[x],D=T.instance,U=T.currentTarget,T=T.listener,D!==g&&h.isPropagationStopped())break e;g=T,h.currentTarget=U;try{g(h)}catch(Y){lo(Y)}h.currentTarget=null,g=D}}}}function ke(n,r){var s=r[Xu];s===void 0&&(s=r[Xu]=new Set);var o=n+"__bubble";s.has(o)||(o0(r,n,2,!1),s.add(o))}function Bf(n,r,s){var o=0;r&&(o|=4),o0(s,n,o,r)}var wo="_reactListening"+Math.random().toString(36).slice(2);function zf(n){if(!n[wo]){n[wo]=!0,tm.forEach(function(s){s!=="selectionchange"&&(R4.has(s)||Bf(s,!1,n),Bf(s,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[wo]||(r[wo]=!0,Bf("selectionchange",!1,r))}}function o0(n,r,s,o){switch(M0(r)){case 2:var h=ew;break;case 8:h=tw;break;default:h=Qf}s=h.bind(null,r,s,n),h=void 0,!rc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),o?h!==void 0?n.addEventListener(r,s,{capture:!0,passive:h}):n.addEventListener(r,s,!0):h!==void 0?n.addEventListener(r,s,{passive:h}):n.addEventListener(r,s,!1)}function Uf(n,r,s,o,h){var g=o;if((r&1)===0&&(r&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var T=o.stateNode.containerInfo;if(T===h)break;if(x===4)for(x=o.return;x!==null;){var D=x.tag;if((D===3||D===4)&&x.stateNode.containerInfo===h)return;x=x.return}for(;T!==null;){if(x=wr(T),x===null)return;if(D=x.tag,D===5||D===6||D===26||D===27){o=g=x;continue e}T=T.parentNode}}o=o.return}mm(function(){var U=g,Y=nc(s),K=[];e:{var H=Fm.get(n);if(H!==void 0){var P=jl,ye=n;switch(n){case"keypress":if(Nl(s)===0)break e;case"keydown":case"keyup":P=SS;break;case"focusin":ye="focus",P=oc;break;case"focusout":ye="blur",P=oc;break;case"beforeblur":case"afterblur":P=oc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=vm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=uS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=TS;break;case Vm:case Hm:case Pm:P=hS;break;case qm:P=AS;break;case"scroll":case"scrollend":P=lS;break;case"wheel":P=kS;break;case"copy":case"cut":case"paste":P=pS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=xm;break;case"toggle":case"beforetoggle":P=_S}var pe=(r&4)!==0,He=!pe&&(n==="scroll"||n==="scrollend"),j=pe?H!==null?H+"Capture":null:H;pe=[];for(var N=U,z;N!==null;){var G=N;if(z=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||z===null||j===null||(G=Va(N,j),G!=null&&pe.push(Ss(N,G,z))),He)break;N=N.return}0<pe.length&&(H=new P(H,ye,null,s,Y),K.push({event:H,listeners:pe}))}}if((r&7)===0){e:{if(H=n==="mouseover"||n==="pointerover",P=n==="mouseout"||n==="pointerout",H&&s!==tc&&(ye=s.relatedTarget||s.fromElement)&&(wr(ye)||ye[Sr]))break e;if((P||H)&&(H=Y.window===Y?Y:(H=Y.ownerDocument)?H.defaultView||H.parentWindow:window,P?(ye=s.relatedTarget||s.toElement,P=U,ye=ye?wr(ye):null,ye!==null&&(He=u(ye),pe=ye.tag,ye!==He||pe!==5&&pe!==27&&pe!==6)&&(ye=null)):(P=null,ye=U),P!==ye)){if(pe=vm,G="onMouseLeave",j="onMouseEnter",N="mouse",(n==="pointerout"||n==="pointerover")&&(pe=xm,G="onPointerLeave",j="onPointerEnter",N="pointer"),He=P==null?H:Ua(P),z=ye==null?H:Ua(ye),H=new pe(G,N+"leave",P,s,Y),H.target=He,H.relatedTarget=z,G=null,wr(Y)===U&&(pe=new pe(j,N+"enter",ye,s,Y),pe.target=z,pe.relatedTarget=He,G=pe),He=G,P&&ye)t:{for(pe=P,j=ye,N=0,z=pe;z;z=na(z))N++;for(z=0,G=j;G;G=na(G))z++;for(;0<N-z;)pe=na(pe),N--;for(;0<z-N;)j=na(j),z--;for(;N--;){if(pe===j||j!==null&&pe===j.alternate)break t;pe=na(pe),j=na(j)}pe=null}else pe=null;P!==null&&u0(K,H,P,pe,!1),ye!==null&&He!==null&&u0(K,He,ye,pe,!0)}}e:{if(H=U?Ua(U):window,P=H.nodeName&&H.nodeName.toLowerCase(),P==="select"||P==="input"&&H.type==="file")var se=km;else if(Am(H))if(Om)se=HS;else{se=US;var Ae=zS}else P=H.nodeName,!P||P.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&ec(U.elementType)&&(se=km):se=VS;if(se&&(se=se(n,U))){Rm(K,se,s,Y);break e}Ae&&Ae(n,H,U),n==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&Wu(H,"number",H.value)}switch(Ae=U?Ua(U):window,n){case"focusin":(Am(Ae)||Ae.contentEditable==="true")&&(Mr=Ae,pc=U,Xa=null);break;case"focusout":Xa=pc=Mr=null;break;case"mousedown":mc=!0;break;case"contextmenu":case"mouseup":case"dragend":mc=!1,zm(K,s,Y);break;case"selectionchange":if(qS)break;case"keydown":case"keyup":zm(K,s,Y)}var he;if(cc)e:{switch(n){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Dr?Tm(n,s)&&(me="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(me="onCompositionStart");me&&(Sm&&s.locale!=="ko"&&(Dr||me!=="onCompositionStart"?me==="onCompositionEnd"&&Dr&&(he=gm()):(pi=Y,ac="value"in pi?pi.value:pi.textContent,Dr=!0)),Ae=Eo(U,me),0<Ae.length&&(me=new bm(me,n,null,s,Y),K.push({event:me,listeners:Ae}),he?me.data=he:(he=Cm(s),he!==null&&(me.data=he)))),(he=MS?NS(n,s):LS(n,s))&&(me=Eo(U,"onBeforeInput"),0<me.length&&(Ae=new bm("onBeforeInput","beforeinput",null,s,Y),K.push({event:Ae,listeners:me}),Ae.data=he)),T4(K,n,U,s,Y)}l0(K,r)})}function Ss(n,r,s){return{instance:n,listener:r,currentTarget:s}}function Eo(n,r){for(var s=r+"Capture",o=[];n!==null;){var h=n,g=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||g===null||(h=Va(n,s),h!=null&&o.unshift(Ss(n,h,g)),h=Va(n,r),h!=null&&o.push(Ss(n,h,g))),n.tag===3)return o;n=n.return}return[]}function na(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function u0(n,r,s,o,h){for(var g=r._reactName,x=[];s!==null&&s!==o;){var T=s,D=T.alternate,U=T.stateNode;if(T=T.tag,D!==null&&D===o)break;T!==5&&T!==26&&T!==27||U===null||(D=U,h?(U=Va(s,g),U!=null&&x.unshift(Ss(s,U,D))):h||(U=Va(s,g),U!=null&&x.push(Ss(s,U,D)))),s=s.return}x.length!==0&&n.push({event:r,listeners:x})}var k4=/\r\n?/g,O4=/\u0000|\uFFFD/g;function c0(n){return(typeof n=="string"?n:""+n).replace(k4,`
49
+ `).replace(O4,"")}function f0(n,r){return r=c0(r),c0(n)===r}function To(){}function Ve(n,r,s,o,h,g){switch(s){case"children":typeof o=="string"?r==="body"||r==="textarea"&&o===""||kr(n,o):(typeof o=="number"||typeof o=="bigint")&&r!=="body"&&kr(n,""+o);break;case"className":kl(n,"class",o);break;case"tabIndex":kl(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":kl(n,s,o);break;case"style":dm(n,o,g);break;case"data":if(r!=="object"){kl(n,"data",o);break}case"src":case"href":if(o===""&&(r!=="a"||s!=="href")){n.removeAttribute(s);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(s);break}o=Dl(""+o),n.setAttribute(s,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(s==="formAction"?(r!=="input"&&Ve(n,r,"name",h.name,h,null),Ve(n,r,"formEncType",h.formEncType,h,null),Ve(n,r,"formMethod",h.formMethod,h,null),Ve(n,r,"formTarget",h.formTarget,h,null)):(Ve(n,r,"encType",h.encType,h,null),Ve(n,r,"method",h.method,h,null),Ve(n,r,"target",h.target,h,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(s);break}o=Dl(""+o),n.setAttribute(s,o);break;case"onClick":o!=null&&(n.onclick=To);break;case"onScroll":o!=null&&ke("scroll",n);break;case"onScrollEnd":o!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(s=o.__html,s!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){n.removeAttribute("xlink:href");break}s=Dl(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,""+o):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":o===!0?n.setAttribute(s,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,o):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(s,o):n.removeAttribute(s);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(s):n.setAttribute(s,o);break;case"popover":ke("beforetoggle",n),ke("toggle",n),Rl(n,"popover",o);break;case"xlinkActuate":Yn(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Yn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Yn(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Yn(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Yn(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Yn(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Yn(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Yn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Yn(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Rl(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=aS.get(s)||s,Rl(n,s,o))}}function Vf(n,r,s,o,h,g){switch(s){case"style":dm(n,o,g);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(s=o.__html,s!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"children":typeof o=="string"?kr(n,o):(typeof o=="number"||typeof o=="bigint")&&kr(n,""+o);break;case"onScroll":o!=null&&ke("scroll",n);break;case"onScrollEnd":o!=null&&ke("scrollend",n);break;case"onClick":o!=null&&(n.onclick=To);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nm.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(h=s.endsWith("Capture"),r=s.slice(2,h?s.length-7:void 0),g=n[Lt]||null,g=g!=null?g[s]:null,typeof g=="function"&&n.removeEventListener(r,g,h),typeof o=="function")){typeof g!="function"&&g!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(r,o,h);break e}s in n?n[s]=o:o===!0?n.setAttribute(s,""):Rl(n,s,o)}}}function xt(n,r,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var o=!1,h=!1,g;for(g in s)if(s.hasOwnProperty(g)){var x=s[g];if(x!=null)switch(g){case"src":o=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Ve(n,r,g,x,s,null)}}h&&Ve(n,r,"srcSet",s.srcSet,s,null),o&&Ve(n,r,"src",s.src,s,null);return;case"input":ke("invalid",n);var T=g=x=h=null,D=null,U=null;for(o in s)if(s.hasOwnProperty(o)){var Y=s[o];if(Y!=null)switch(o){case"name":h=Y;break;case"type":x=Y;break;case"checked":D=Y;break;case"defaultChecked":U=Y;break;case"value":g=Y;break;case"defaultValue":T=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(a(137,r));break;default:Ve(n,r,o,Y,s,null)}}um(n,g,T,D,U,x,h,!1),Ol(n);return;case"select":ke("invalid",n),o=x=g=null;for(h in s)if(s.hasOwnProperty(h)&&(T=s[h],T!=null))switch(h){case"value":g=T;break;case"defaultValue":x=T;break;case"multiple":o=T;default:Ve(n,r,h,T,s,null)}r=g,s=x,n.multiple=!!o,r!=null?Rr(n,!!o,r,!1):s!=null&&Rr(n,!!o,s,!0);return;case"textarea":ke("invalid",n),g=h=o=null;for(x in s)if(s.hasOwnProperty(x)&&(T=s[x],T!=null))switch(x){case"value":o=T;break;case"defaultValue":h=T;break;case"children":g=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:Ve(n,r,x,T,s,null)}fm(n,o,h,g),Ol(n);return;case"option":for(D in s)if(s.hasOwnProperty(D)&&(o=s[D],o!=null))switch(D){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ve(n,r,D,o,s,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(o=0;o<xs.length;o++)ke(xs[o],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in s)if(s.hasOwnProperty(U)&&(o=s[U],o!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Ve(n,r,U,o,s,null)}return;default:if(ec(r)){for(Y in s)s.hasOwnProperty(Y)&&(o=s[Y],o!==void 0&&Vf(n,r,Y,o,s,void 0));return}}for(T in s)s.hasOwnProperty(T)&&(o=s[T],o!=null&&Ve(n,r,T,o,s,null))}function _4(n,r,s,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,x=null,T=null,D=null,U=null,Y=null;for(P in s){var K=s[P];if(s.hasOwnProperty(P)&&K!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":D=K;default:o.hasOwnProperty(P)||Ve(n,r,P,null,o,K)}}for(var H in o){var P=o[H];if(K=s[H],o.hasOwnProperty(H)&&(P!=null||K!=null))switch(H){case"type":g=P;break;case"name":h=P;break;case"checked":U=P;break;case"defaultChecked":Y=P;break;case"value":x=P;break;case"defaultValue":T=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(137,r));break;default:P!==K&&Ve(n,r,H,P,o,K)}}Ju(n,x,T,D,U,Y,g,h);return;case"select":P=x=T=H=null;for(g in s)if(D=s[g],s.hasOwnProperty(g)&&D!=null)switch(g){case"value":break;case"multiple":P=D;default:o.hasOwnProperty(g)||Ve(n,r,g,null,o,D)}for(h in o)if(g=o[h],D=s[h],o.hasOwnProperty(h)&&(g!=null||D!=null))switch(h){case"value":H=g;break;case"defaultValue":T=g;break;case"multiple":x=g;default:g!==D&&Ve(n,r,h,g,o,D)}r=T,s=x,o=P,H!=null?Rr(n,!!s,H,!1):!!o!=!!s&&(r!=null?Rr(n,!!s,r,!0):Rr(n,!!s,s?[]:"",!1));return;case"textarea":P=H=null;for(T in s)if(h=s[T],s.hasOwnProperty(T)&&h!=null&&!o.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Ve(n,r,T,null,o,h)}for(x in o)if(h=o[x],g=s[x],o.hasOwnProperty(x)&&(h!=null||g!=null))switch(x){case"value":H=h;break;case"defaultValue":P=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==g&&Ve(n,r,x,h,o,g)}cm(n,H,P);return;case"option":for(var ye in s)if(H=s[ye],s.hasOwnProperty(ye)&&H!=null&&!o.hasOwnProperty(ye))switch(ye){case"selected":n.selected=!1;break;default:Ve(n,r,ye,null,o,H)}for(D in o)if(H=o[D],P=s[D],o.hasOwnProperty(D)&&H!==P&&(H!=null||P!=null))switch(D){case"selected":n.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ve(n,r,D,H,o,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in s)H=s[pe],s.hasOwnProperty(pe)&&H!=null&&!o.hasOwnProperty(pe)&&Ve(n,r,pe,null,o,H);for(U in o)if(H=o[U],P=s[U],o.hasOwnProperty(U)&&H!==P&&(H!=null||P!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,r));break;default:Ve(n,r,U,H,o,P)}return;default:if(ec(r)){for(var He in s)H=s[He],s.hasOwnProperty(He)&&H!==void 0&&!o.hasOwnProperty(He)&&Vf(n,r,He,void 0,o,H);for(Y in o)H=o[Y],P=s[Y],!o.hasOwnProperty(Y)||H===P||H===void 0&&P===void 0||Vf(n,r,Y,H,o,P);return}}for(var j in s)H=s[j],s.hasOwnProperty(j)&&H!=null&&!o.hasOwnProperty(j)&&Ve(n,r,j,null,o,H);for(K in o)H=o[K],P=s[K],!o.hasOwnProperty(K)||H===P||H==null&&P==null||Ve(n,r,K,H,o,P)}var Hf=null,Pf=null;function Co(n){return n.nodeType===9?n:n.ownerDocument}function h0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d0(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function qf(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Ff=null;function D4(){var n=window.event;return n&&n.type==="popstate"?n===Ff?!1:(Ff=n,!0):(Ff=null,!1)}var p0=typeof setTimeout=="function"?setTimeout:void 0,M4=typeof clearTimeout=="function"?clearTimeout:void 0,m0=typeof Promise=="function"?Promise:void 0,N4=typeof queueMicrotask=="function"?queueMicrotask:typeof m0<"u"?function(n){return m0.resolve(null).then(n).catch(L4)}:p0;function L4(n){setTimeout(function(){throw n})}function _i(n){return n==="head"}function g0(n,r){var s=r,o=0,h=0;do{var g=s.nextSibling;if(n.removeChild(s),g&&g.nodeType===8)if(s=g.data,s==="/$"){if(0<o&&8>o){s=o;var x=n.ownerDocument;if(s&1&&ws(x.documentElement),s&2&&ws(x.body),s&4)for(s=x.head,ws(s),x=s.firstChild;x;){var T=x.nextSibling,D=x.nodeName;x[za]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&x.rel.toLowerCase()==="stylesheet"||s.removeChild(x),x=T}}if(h===0){n.removeChild(g),_s(r);return}h--}else s==="$"||s==="$?"||s==="$!"?h++:o=s.charCodeAt(0)-48;else o=0;s=g}while(s);_s(r)}function If(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var s=r;switch(r=r.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":If(s),Ku(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function j4(n,r,s,o){for(;n.nodeType===1;){var h=s;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[za])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=wn(n.nextSibling),n===null)break}return null}function B4(n,r,s){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=wn(n.nextSibling),n===null))return null;return n}function Yf(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function z4(n,r){var s=n.ownerDocument;if(n.data!=="$?"||s.readyState==="complete")r();else{var o=function(){r(),s.removeEventListener("DOMContentLoaded",o)};s.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function wn(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return n}var Gf=null;function y0(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(r===0)return n;r--}else s==="/$"&&r++}n=n.previousSibling}return null}function v0(n,r,s){switch(r=Co(s),n){case"html":if(n=r.documentElement,!n)throw Error(a(452));return n;case"head":if(n=r.head,!n)throw Error(a(453));return n;case"body":if(n=r.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function ws(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);Ku(n)}var dn=new Map,b0=new Set;function Ao(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ai=$.d;$.d={f:U4,r:V4,D:H4,C:P4,L:q4,m:F4,X:Y4,S:I4,M:G4};function U4(){var n=ai.f(),r=yo();return n||r}function V4(n){var r=Er(n);r!==null&&r.tag===5&&r.type==="form"?Vg(r):ai.r(n)}var ia=typeof document>"u"?null:document;function x0(n,r,s){var o=ia;if(o&&typeof r=="string"&&r){var h=sn(r);h='link[rel="'+n+'"][href="'+h+'"]',typeof s=="string"&&(h+='[crossorigin="'+s+'"]'),b0.has(h)||(b0.add(h),n={rel:n,crossOrigin:s,href:r},o.querySelector(h)===null&&(r=o.createElement("link"),xt(r,"link",n),pt(r),o.head.appendChild(r)))}}function H4(n){ai.D(n),x0("dns-prefetch",n,null)}function P4(n,r){ai.C(n,r),x0("preconnect",n,r)}function q4(n,r,s){ai.L(n,r,s);var o=ia;if(o&&n&&r){var h='link[rel="preload"][as="'+sn(r)+'"]';r==="image"&&s&&s.imageSrcSet?(h+='[imagesrcset="'+sn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(h+='[imagesizes="'+sn(s.imageSizes)+'"]')):h+='[href="'+sn(n)+'"]';var g=h;switch(r){case"style":g=ra(n);break;case"script":g=aa(n)}dn.has(g)||(n=m({rel:"preload",href:r==="image"&&s&&s.imageSrcSet?void 0:n,as:r},s),dn.set(g,n),o.querySelector(h)!==null||r==="style"&&o.querySelector(Es(g))||r==="script"&&o.querySelector(Ts(g))||(r=o.createElement("link"),xt(r,"link",n),pt(r),o.head.appendChild(r)))}}function F4(n,r){ai.m(n,r);var s=ia;if(s&&n){var o=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+sn(o)+'"][href="'+sn(n)+'"]',g=h;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=aa(n)}if(!dn.has(g)&&(n=m({rel:"modulepreload",href:n},r),dn.set(g,n),s.querySelector(h)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Ts(g)))return}o=s.createElement("link"),xt(o,"link",n),pt(o),s.head.appendChild(o)}}}function I4(n,r,s){ai.S(n,r,s);var o=ia;if(o&&n){var h=Tr(o).hoistableStyles,g=ra(n);r=r||"default";var x=h.get(g);if(!x){var T={loading:0,preload:null};if(x=o.querySelector(Es(g)))T.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":r},s),(s=dn.get(g))&&Xf(n,s);var D=x=o.createElement("link");pt(D),xt(D,"link",n),D._p=new Promise(function(U,Y){D.onload=U,D.onerror=Y}),D.addEventListener("load",function(){T.loading|=1}),D.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Ro(x,r,o)}x={type:"stylesheet",instance:x,count:1,state:T},h.set(g,x)}}}function Y4(n,r){ai.X(n,r);var s=ia;if(s&&n){var o=Tr(s).hoistableScripts,h=aa(n),g=o.get(h);g||(g=s.querySelector(Ts(h)),g||(n=m({src:n,async:!0},r),(r=dn.get(h))&&Kf(n,r),g=s.createElement("script"),pt(g),xt(g,"link",n),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},o.set(h,g))}}function G4(n,r){ai.M(n,r);var s=ia;if(s&&n){var o=Tr(s).hoistableScripts,h=aa(n),g=o.get(h);g||(g=s.querySelector(Ts(h)),g||(n=m({src:n,async:!0,type:"module"},r),(r=dn.get(h))&&Kf(n,r),g=s.createElement("script"),pt(g),xt(g,"link",n),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},o.set(h,g))}}function S0(n,r,s,o){var h=(h=ce.current)?Ao(h):null;if(!h)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(r=ra(s.href),s=Tr(h).hoistableStyles,o=s.get(r),o||(o={type:"style",instance:null,count:0,state:null},s.set(r,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=ra(s.href);var g=Tr(h).hoistableStyles,x=g.get(n);if(x||(h=h.ownerDocument||h,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,x),(g=h.querySelector(Es(n)))&&!g._p&&(x.instance=g,x.state.loading=5),dn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},dn.set(n,s),g||X4(h,n,s,x.state))),r&&o===null)throw Error(a(528,""));return x}if(r&&o!==null)throw Error(a(529,""));return null;case"script":return r=s.async,s=s.src,typeof s=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=aa(s),s=Tr(h).hoistableScripts,o=s.get(r),o||(o={type:"script",instance:null,count:0,state:null},s.set(r,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function ra(n){return'href="'+sn(n)+'"'}function Es(n){return'link[rel="stylesheet"]['+n+"]"}function w0(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function X4(n,r,s,o){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?o.loading=1:(r=n.createElement("link"),o.preload=r,r.addEventListener("load",function(){return o.loading|=1}),r.addEventListener("error",function(){return o.loading|=2}),xt(r,"link",s),pt(r),n.head.appendChild(r))}function aa(n){return'[src="'+sn(n)+'"]'}function Ts(n){return"script[async]"+n}function E0(n,r,s){if(r.count++,r.instance===null)switch(r.type){case"style":var o=n.querySelector('style[data-href~="'+sn(s.href)+'"]');if(o)return r.instance=o,pt(o),o;var h=m({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),pt(o),xt(o,"style",h),Ro(o,s.precedence,n),r.instance=o;case"stylesheet":h=ra(s.href);var g=n.querySelector(Es(h));if(g)return r.state.loading|=4,r.instance=g,pt(g),g;o=w0(s),(h=dn.get(h))&&Xf(o,h),g=(n.ownerDocument||n).createElement("link"),pt(g);var x=g;return x._p=new Promise(function(T,D){x.onload=T,x.onerror=D}),xt(g,"link",o),r.state.loading|=4,Ro(g,s.precedence,n),r.instance=g;case"script":return g=aa(s.src),(h=n.querySelector(Ts(g)))?(r.instance=h,pt(h),h):(o=s,(h=dn.get(g))&&(o=m({},s),Kf(o,h)),n=n.ownerDocument||n,h=n.createElement("script"),pt(h),xt(h,"link",o),n.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(o=r.instance,r.state.loading|=4,Ro(o,s.precedence,n));return r.instance}function Ro(n,r,s){for(var o=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=o.length?o[o.length-1]:null,g=h,x=0;x<o.length;x++){var T=o[x];if(T.dataset.precedence===r)g=T;else if(g!==h)break}g?g.parentNode.insertBefore(n,g.nextSibling):(r=s.nodeType===9?s.head:s,r.insertBefore(n,r.firstChild))}function Xf(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function Kf(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var ko=null;function T0(n,r,s){if(ko===null){var o=new Map,h=ko=new Map;h.set(s,o)}else h=ko,o=h.get(s),o||(o=new Map,h.set(s,o));if(o.has(n))return o;for(o.set(n,null),s=s.getElementsByTagName(n),h=0;h<s.length;h++){var g=s[h];if(!(g[za]||g[wt]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var x=g.getAttribute(r)||"";x=n+x;var T=o.get(x);T?T.push(g):o.set(x,[g])}}return o}function C0(n,r,s){n=n.ownerDocument||n,n.head.insertBefore(s,r==="title"?n.querySelector("head > title"):null)}function K4(n,r,s){if(s===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function A0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Cs=null;function Z4(){}function $4(n,r,s){if(Cs===null)throw Error(a(475));var o=Cs;if(r.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var h=ra(s.href),g=n.querySelector(Es(h));if(g){n=g._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=Oo.bind(o),n.then(o,o)),r.state.loading|=4,r.instance=g,pt(g);return}g=n.ownerDocument||n,s=w0(s),(h=dn.get(h))&&Xf(s,h),g=g.createElement("link"),pt(g);var x=g;x._p=new Promise(function(T,D){x.onload=T,x.onerror=D}),xt(g,"link",s),r.instance=g}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(o.count++,r=Oo.bind(o),n.addEventListener("load",r),n.addEventListener("error",r))}}function Q4(){if(Cs===null)throw Error(a(475));var n=Cs;return n.stylesheets&&n.count===0&&Zf(n,n.stylesheets),0<n.count?function(r){var s=setTimeout(function(){if(n.stylesheets&&Zf(n,n.stylesheets),n.unsuspend){var o=n.unsuspend;n.unsuspend=null,o()}},6e4);return n.unsuspend=r,function(){n.unsuspend=null,clearTimeout(s)}}:null}function Oo(){if(this.count--,this.count===0){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var _o=null;function Zf(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,_o=new Map,r.forEach(J4,n),_o=null,Oo.call(n))}function J4(n,r){if(!(r.state.loading&4)){var s=_o.get(n);if(s)var o=s.get(null);else{s=new Map,_o.set(n,s);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var x=h[g];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),o=x)}o&&s.set(null,o)}h=r.instance,x=h.getAttribute("data-precedence"),g=s.get(x)||o,g===o&&s.set(null,h),s.set(x,h),this.count++,o=Oo.bind(this),h.addEventListener("load",o),h.addEventListener("error",o),g?g.parentNode.insertBefore(h,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),r.state.loading|=4}}var As={$$typeof:O,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function W4(n,r,s,o,h,g,x,T){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.hiddenUpdates=Iu(null),this.identifierPrefix=o,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function R0(n,r,s,o,h,g,x,T,D,U,Y,K){return n=new W4(n,r,s,x,T,D,U,K),r=1,g===!0&&(r|=24),g=Kt(3,null,null,r),n.current=g,g.stateNode=n,r=Oc(),r.refCount++,n.pooledCache=r,r.refCount++,g.memoizedState={element:o,isDehydrated:s,cache:r},Nc(g),n}function k0(n){return n?(n=Br,n):Br}function O0(n,r,s,o,h,g){h=k0(h),o.context===null?o.context=h:o.pendingContext=h,o=yi(r),o.payload={element:s},g=g===void 0?null:g,g!==null&&(o.callback=g),s=vi(n,o,r),s!==null&&(Wt(s,n,r),ns(s,n,r))}function _0(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<r?s:r}}function $f(n,r){_0(n,r),(n=n.alternate)&&_0(n,r)}function D0(n){if(n.tag===13){var r=jr(n,67108864);r!==null&&Wt(r,n,67108864),$f(n,67108864)}}var Do=!0;function ew(n,r,s,o){var h=q.T;q.T=null;var g=$.p;try{$.p=2,Qf(n,r,s,o)}finally{$.p=g,q.T=h}}function tw(n,r,s,o){var h=q.T;q.T=null;var g=$.p;try{$.p=8,Qf(n,r,s,o)}finally{$.p=g,q.T=h}}function Qf(n,r,s,o){if(Do){var h=Jf(o);if(h===null)Uf(n,r,o,Mo,s),N0(n,o);else if(iw(h,n,r,s,o))o.stopPropagation();else if(N0(n,o),r&4&&-1<nw.indexOf(n)){for(;h!==null;){var g=Er(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var x=Gt(g.pendingLanes);if(x!==0){var T=g;for(T.pendingLanes|=2,T.entangledLanes|=2;x;){var D=1<<31-ge(x);T.entanglements[1]|=D,x&=~D}Mn(g),(Be&6)===0&&(mo=It()+500,bs(0))}}break;case 13:T=jr(g,2),T!==null&&Wt(T,g,2),yo(),$f(g,2)}if(g=Jf(o),g===null&&Uf(n,r,o,Mo,s),g===h)break;h=g}h!==null&&o.stopPropagation()}else Uf(n,r,o,null,s)}}function Jf(n){return n=nc(n),Wf(n)}var Mo=null;function Wf(n){if(Mo=null,n=wr(n),n!==null){var r=u(n);if(r===null)n=null;else{var s=r.tag;if(s===13){if(n=c(r),n!==null)return n;n=null}else if(s===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Mo=n,null}function M0(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Hu()){case La:return 2;case ja:return 8;case xr:case Pu:return 32;case Al:return 268435456;default:return 32}default:return 32}}var eh=!1,Di=null,Mi=null,Ni=null,Rs=new Map,ks=new Map,Li=[],nw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function N0(n,r){switch(n){case"focusin":case"focusout":Di=null;break;case"dragenter":case"dragleave":Mi=null;break;case"mouseover":case"mouseout":Ni=null;break;case"pointerover":case"pointerout":Rs.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":ks.delete(r.pointerId)}}function Os(n,r,s,o,h,g){return n===null||n.nativeEvent!==g?(n={blockedOn:r,domEventName:s,eventSystemFlags:o,nativeEvent:g,targetContainers:[h]},r!==null&&(r=Er(r),r!==null&&D0(r)),n):(n.eventSystemFlags|=o,r=n.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),n)}function iw(n,r,s,o,h){switch(r){case"focusin":return Di=Os(Di,n,r,s,o,h),!0;case"dragenter":return Mi=Os(Mi,n,r,s,o,h),!0;case"mouseover":return Ni=Os(Ni,n,r,s,o,h),!0;case"pointerover":var g=h.pointerId;return Rs.set(g,Os(Rs.get(g)||null,n,r,s,o,h)),!0;case"gotpointercapture":return g=h.pointerId,ks.set(g,Os(ks.get(g)||null,n,r,s,o,h)),!0}return!1}function L0(n){var r=wr(n.target);if(r!==null){var s=u(r);if(s!==null){if(r=s.tag,r===13){if(r=c(s),r!==null){n.blockedOn=r,$3(n.priority,function(){if(s.tag===13){var o=Jt();o=Yu(o);var h=jr(s,o);h!==null&&Wt(h,s,o),$f(s,o)}});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function No(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var s=Jf(n.nativeEvent);if(s===null){s=n.nativeEvent;var o=new s.constructor(s.type,s);tc=o,s.target.dispatchEvent(o),tc=null}else return r=Er(s),r!==null&&D0(r),n.blockedOn=s,!1;r.shift()}return!0}function j0(n,r,s){No(n)&&s.delete(r)}function rw(){eh=!1,Di!==null&&No(Di)&&(Di=null),Mi!==null&&No(Mi)&&(Mi=null),Ni!==null&&No(Ni)&&(Ni=null),Rs.forEach(j0),ks.forEach(j0)}function Lo(n,r){n.blockedOn===r&&(n.blockedOn=null,eh||(eh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rw)))}var jo=null;function B0(n){jo!==n&&(jo=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){jo===n&&(jo=null);for(var r=0;r<n.length;r+=3){var s=n[r],o=n[r+1],h=n[r+2];if(typeof o!="function"){if(Wf(o||s)===null)continue;break}var g=Er(s);g!==null&&(n.splice(r,3),r-=3,Jc(g,{pending:!0,data:h,method:s.method,action:o},o,h))}}))}function _s(n){function r(D){return Lo(D,n)}Di!==null&&Lo(Di,n),Mi!==null&&Lo(Mi,n),Ni!==null&&Lo(Ni,n),Rs.forEach(r),ks.forEach(r);for(var s=0;s<Li.length;s++){var o=Li[s];o.blockedOn===n&&(o.blockedOn=null)}for(;0<Li.length&&(s=Li[0],s.blockedOn===null);)L0(s),s.blockedOn===null&&Li.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(o=0;o<s.length;o+=3){var h=s[o],g=s[o+1],x=h[Lt]||null;if(typeof g=="function")x||B0(s);else if(x){var T=null;if(g&&g.hasAttribute("formAction")){if(h=g,x=g[Lt]||null)T=x.formAction;else if(Wf(h)!==null)continue}else T=x.action;typeof T=="function"?s[o+1]=T:(s.splice(o,3),o-=3),B0(s)}}}function th(n){this._internalRoot=n}Bo.prototype.render=th.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var s=r.current,o=Jt();O0(s,o,n,r,null,null)},Bo.prototype.unmount=th.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;O0(n.current,2,null,n,null,null),yo(),r[Sr]=null}};function Bo(n){this._internalRoot=n}Bo.prototype.unstable_scheduleHydration=function(n){if(n){var r=Wp();n={blockedOn:null,target:n,priority:r};for(var s=0;s<Li.length&&r!==0&&r<Li[s].priority;s++);Li.splice(s,0,n),s===0&&L0(n)}};var z0=t.version;if(z0!=="19.1.0")throw Error(a(527,z0,"19.1.0"));$.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=p(r),n=n!==null?d(n):null,n=n===null?null:n.stateNode,n};var aw={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zo.isDisabled&&zo.supportsFiber)try{I=zo.inject(aw),J=zo}catch{}}return Ms.createRoot=function(n,r){if(!l(n))throw Error(a(299));var s=!1,o="",h=Wg,g=ey,x=ty,T=null;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(x=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(T=r.unstable_transitionCallbacks)),r=R0(n,1,!1,null,null,s,o,h,g,x,T,null),n[Sr]=r.current,zf(n),new th(r)},Ms.hydrateRoot=function(n,r,s){if(!l(n))throw Error(a(299));var o=!1,h="",g=Wg,x=ey,T=ty,D=null,U=null;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(D=s.unstable_transitionCallbacks),s.formState!==void 0&&(U=s.formState)),r=R0(n,1,!0,r,s??null,o,h,g,x,T,D,U),r.context=k0(null),s=r.current,o=Jt(),o=Yu(o),h=yi(o),h.callback=null,vi(s,h,o),s=o,r.current.lanes=s,Ba(r,s),Mn(r),n[Sr]=r.current,zf(n),new Bo(r)},Ms.version="19.1.0",Ms}var X0;function yw(){if(X0)return ah.exports;X0=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(),ah.exports=gw(),ah.exports}var vw=yw(),Ns={},K0;function bw(){if(K0)return Ns;K0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.parse=c,Ns.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,l=Object.prototype.toString,u=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function c(v,b){const w=new u,E=v.length;if(E<2)return w;const R=(b==null?void 0:b.decode)||m;let C=0;do{const M=v.indexOf("=",C);if(M===-1)break;const O=v.indexOf(";",C),V=O===-1?E:O;if(M>V){C=v.lastIndexOf(";",M-1)+1;continue}const B=f(v,C,M),L=p(v,M,B),Z=v.slice(B,L);if(w[Z]===void 0){let Q=f(v,M+1,V),ee=p(v,V,Q);const fe=R(v.slice(Q,ee));w[Z]=fe}C=V+1}while(C<E);return w}function f(v,b,w){do{const E=v.charCodeAt(b);if(E!==32&&E!==9)return b}while(++b<w);return w}function p(v,b,w){for(;b>w;){const E=v.charCodeAt(--b);if(E!==32&&E!==9)return b+1}return w}function d(v,b,w){const E=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const R=E(b);if(!t.test(R))throw new TypeError(`argument val is invalid: ${b}`);let C=v+"="+R;if(!w)return C;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);C+="; Max-Age="+w.maxAge}if(w.domain){if(!i.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);C+="; Domain="+w.domain}if(w.path){if(!a.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);C+="; Path="+w.path}if(w.expires){if(!y(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);C+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(C+="; HttpOnly"),w.secure&&(C+="; Secure"),w.partitioned&&(C+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return C}function m(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function y(v){return l.call(v)==="[object Date]"}return Ns}bw();/**
50
+ * react-router v7.5.0
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var Z0="popstate";function xw(e={}){function t(a,l){let{pathname:u,search:c,hash:f}=a.location;return Fh("",{pathname:u,search:c,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function i(a,l){return typeof l=="string"?l:tl(l)}return ww(t,i,null,e)}function $e(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sw(){return Math.random().toString(36).substring(2,10)}function $0(e,t){return{usr:e.state,key:e.key,idx:t}}function Fh(e,t,i=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?xa(t):t,state:i,key:t&&t.key||a||Sw()}}function tl({pathname:e="/",search:t="",hash:i=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function xa(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substring(i),e=e.substring(0,i));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function ww(e,t,i,a={}){let{window:l=document.defaultView,v5Compat:u=!1}=a,c=l.history,f="POP",p=null,d=m();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function m(){return(c.state||{idx:null}).idx}function y(){f="POP";let R=m(),C=R==null?null:R-d;d=R,p&&p({action:f,location:E.location,delta:C})}function v(R,C){f="PUSH";let M=Fh(E.location,R,C);d=m()+1;let O=$0(M,d),V=E.createHref(M);try{c.pushState(O,"",V)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;l.location.assign(V)}u&&p&&p({action:f,location:E.location,delta:1})}function b(R,C){f="REPLACE";let M=Fh(E.location,R,C);d=m();let O=$0(M,d),V=E.createHref(M);c.replaceState(O,"",V),u&&p&&p({action:f,location:E.location,delta:0})}function w(R){let C=l.location.origin!=="null"?l.location.origin:l.location.href,M=typeof R=="string"?R:tl(R);return M=M.replace(/ $/,"%20"),$e(C,`No window.location.(origin|href) available to create URL for href: ${M}`),new URL(M,C)}let E={get action(){return f},get location(){return e(l,c)},listen(R){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(Z0,y),p=R,()=>{l.removeEventListener(Z0,y),p=null}},createHref(R){return t(l,R)},createURL:w,encodeLocation(R){let C=w(R);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:v,replace:b,go(R){return c.go(R)}};return E}function Cv(e,t,i="/"){return Ew(e,t,i,!1)}function Ew(e,t,i,a){let l=typeof t=="string"?xa(t):t,u=oi(l.pathname||"/",i);if(u==null)return null;let c=Av(e);Tw(c);let f=null;for(let p=0;f==null&&p<c.length;++p){let d=jw(u);f=Nw(c[p],d,a)}return f}function Av(e,t=[],i=[],a=""){let l=(u,c,f)=>{let p={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:c,route:u};p.relativePath.startsWith("/")&&($e(p.relativePath.startsWith(a),`Absolute route path "${p.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(a.length));let d=li([a,p.relativePath]),m=i.concat(p);u.children&&u.children.length>0&&($e(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Av(u.children,t,m,d)),!(u.path==null&&!u.index)&&t.push({path:d,score:Dw(d,u.index),routesMeta:m})};return e.forEach((u,c)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))l(u,c);else for(let p of Rv(u.path))l(u,c,p)}),t}function Rv(e){let t=e.split("/");if(t.length===0)return[];let[i,...a]=t,l=i.endsWith("?"),u=i.replace(/\?$/,"");if(a.length===0)return l?[u,""]:[u];let c=Rv(a.join("/")),f=[];return f.push(...c.map(p=>p===""?u:[u,p].join("/"))),l&&f.push(...c),f.map(p=>e.startsWith("/")&&p===""?"/":p)}function Tw(e){e.sort((t,i)=>t.score!==i.score?i.score-t.score:Mw(t.routesMeta.map(a=>a.childrenIndex),i.routesMeta.map(a=>a.childrenIndex)))}var Cw=/^:[\w-]+$/,Aw=3,Rw=2,kw=1,Ow=10,_w=-2,Q0=e=>e==="*";function Dw(e,t){let i=e.split("/"),a=i.length;return i.some(Q0)&&(a+=_w),t&&(a+=Rw),i.filter(l=>!Q0(l)).reduce((l,u)=>l+(Cw.test(u)?Aw:u===""?kw:Ow),a)}function Mw(e,t){return e.length===t.length&&e.slice(0,-1).every((a,l)=>a===t[l])?e[e.length-1]-t[t.length-1]:0}function Nw(e,t,i=!1){let{routesMeta:a}=e,l={},u="/",c=[];for(let f=0;f<a.length;++f){let p=a[f],d=f===a.length-1,m=u==="/"?t:t.slice(u.length)||"/",y=fu({path:p.relativePath,caseSensitive:p.caseSensitive,end:d},m),v=p.route;if(!y&&d&&i&&!a[a.length-1].route.index&&(y=fu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},m)),!y)return null;Object.assign(l,y.params),c.push({params:l,pathname:li([u,y.pathname]),pathnameBase:Vw(li([u,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(u=li([u,y.pathnameBase]))}return c}function fu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,a]=Lw(e.path,e.caseSensitive,e.end),l=t.match(i);if(!l)return null;let u=l[0],c=u.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:a.reduce((d,{paramName:m,isOptional:y},v)=>{if(m==="*"){let w=f[v]||"";c=u.slice(0,u.length-w.length).replace(/(.)\/+$/,"$1")}const b=f[v];return y&&!b?d[m]=void 0:d[m]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:u,pathnameBase:c,pattern:e}}function Lw(e,t=!1,i=!0){Vn(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 a=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,p)=>(a.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),a]}function jw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vn(!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 oi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,a=e.charAt(i);return a&&a!=="/"?null:e.slice(i)||"/"}function Bw(e,t="/"){let{pathname:i,search:a="",hash:l=""}=typeof e=="string"?xa(e):e;return{pathname:i?i.startsWith("/")?i:zw(i,t):t,search:Hw(a),hash:Pw(l)}}function zw(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?i.length>1&&i.pop():l!=="."&&i.push(l)}),i.length>1?i.join("/"):"/"}function uh(e,t,i,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Uw(e){return e.filter((t,i)=>i===0||t.route.path&&t.route.path.length>0)}function kv(e){let t=Uw(e);return t.map((i,a)=>a===t.length-1?i.pathname:i.pathnameBase)}function Ov(e,t,i,a=!1){let l;typeof e=="string"?l=xa(e):(l={...e},$e(!l.pathname||!l.pathname.includes("?"),uh("?","pathname","search",l)),$e(!l.pathname||!l.pathname.includes("#"),uh("#","pathname","hash",l)),$e(!l.search||!l.search.includes("#"),uh("#","search","hash",l)));let u=e===""||l.pathname==="",c=u?"/":l.pathname,f;if(c==null)f=i;else{let y=t.length-1;if(!a&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),y-=1;l.pathname=v.join("/")}f=y>=0?t[y]:"/"}let p=Bw(l,f),d=c&&c!=="/"&&c.endsWith("/"),m=(u||c===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(d||m)&&(p.pathname+="/"),p}var li=e=>e.join("/").replace(/\/\/+/g,"/"),Vw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Hw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var _v=["POST","PUT","PATCH","DELETE"];new Set(_v);var Fw=["GET",..._v];new Set(Fw);var Sa=_.createContext(null);Sa.displayName="DataRouter";var wu=_.createContext(null);wu.displayName="DataRouterState";var Dv=_.createContext({isTransitioning:!1});Dv.displayName="ViewTransition";var Iw=_.createContext(new Map);Iw.displayName="Fetchers";var Yw=_.createContext(null);Yw.displayName="Await";var qn=_.createContext(null);qn.displayName="Navigation";var hl=_.createContext(null);hl.displayName="Location";var hi=_.createContext({outlet:null,matches:[],isDataRoute:!1});hi.displayName="Route";var Ud=_.createContext(null);Ud.displayName="RouteError";function Gw(e,{relative:t}={}){$e(dl(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:a}=_.useContext(qn),{hash:l,pathname:u,search:c}=pl(e,{relative:t}),f=u;return i!=="/"&&(f=u==="/"?i:li([i,u])),a.createHref({pathname:f,search:c,hash:l})}function dl(){return _.useContext(hl)!=null}function yr(){return $e(dl(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(hl).location}var Mv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nv(e){_.useContext(qn).static||_.useLayoutEffect(e)}function Vd(){let{isDataRoute:e}=_.useContext(hi);return e?a6():Xw()}function Xw(){$e(dl(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(Sa),{basename:t,navigator:i}=_.useContext(qn),{matches:a}=_.useContext(hi),{pathname:l}=yr(),u=JSON.stringify(kv(a)),c=_.useRef(!1);return Nv(()=>{c.current=!0}),_.useCallback((p,d={})=>{if(Vn(c.current,Mv),!c.current)return;if(typeof p=="number"){i.go(p);return}let m=Ov(p,JSON.parse(u),l,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:li([t,m.pathname])),(d.replace?i.replace:i.push)(m,d.state,d)},[t,i,u,l,e])}_.createContext(null);function pl(e,{relative:t}={}){let{matches:i}=_.useContext(hi),{pathname:a}=yr(),l=JSON.stringify(kv(i));return _.useMemo(()=>Ov(e,JSON.parse(l),a,t==="path"),[e,l,a,t])}function Kw(e,t){return Lv(e,t)}function Lv(e,t,i,a){var M;$e(dl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l,static:u}=_.useContext(qn),{matches:c}=_.useContext(hi),f=c[c.length-1],p=f?f.params:{},d=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let O=y&&y.path||"";jv(d,!y||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${O}">) 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.
59
+
60
+ Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let v=yr(),b;if(t){let O=typeof t=="string"?xa(t):t;$e(m==="/"||((M=O.pathname)==null?void 0:M.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${O.pathname}" was given in the \`location\` prop.`),b=O}else b=v;let w=b.pathname||"/",E=w;if(m!=="/"){let O=m.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(O.length).join("/")}let R=!u&&i&&i.matches&&i.matches.length>0?i.matches:Cv(e,{pathname:E});Vn(y||R!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Vn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.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.`);let C=Ww(R&&R.map(O=>Object.assign({},O,{params:Object.assign({},p,O.params),pathname:li([m,l.encodeLocation?l.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?m:li([m,l.encodeLocation?l.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),c,i,a);return t&&C?_.createElement(hl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},C):C}function Zw(){let e=r6(),t=qw(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:a},u={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:u},"ErrorBoundary")," or"," ",_.createElement("code",{style:u},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),i?_.createElement("pre",{style:l},i):null,c)}var $w=_.createElement(Zw,null),Qw=class extends _.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?_.createElement(hi.Provider,{value:this.props.routeContext},_.createElement(Ud.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Jw({routeContext:e,match:t,children:i}){let a=_.useContext(Sa);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(hi.Provider,{value:e},i)}function Ww(e,t=[],i=null,a=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let l=e,u=i==null?void 0:i.errors;if(u!=null){let p=l.findIndex(d=>d.route.id&&(u==null?void 0:u[d.route.id])!==void 0);$e(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),l=l.slice(0,Math.min(l.length,p+1))}let c=!1,f=-1;if(i)for(let p=0;p<l.length;p++){let d=l[p];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(f=p),d.route.id){let{loaderData:m,errors:y}=i,v=d.route.loader&&!m.hasOwnProperty(d.route.id)&&(!y||y[d.route.id]===void 0);if(d.route.lazy||v){c=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((p,d,m)=>{let y,v=!1,b=null,w=null;i&&(y=u&&d.route.id?u[d.route.id]:void 0,b=d.route.errorElement||$w,c&&(f<0&&m===0?(jv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,w=null):f===m&&(v=!0,w=d.route.hydrateFallbackElement||null)));let E=t.concat(l.slice(0,m+1)),R=()=>{let C;return y?C=b:v?C=w:d.route.Component?C=_.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=p,_.createElement(Jw,{match:d,routeContext:{outlet:p,matches:E,isDataRoute:i!=null},children:C})};return i&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?_.createElement(Qw,{location:i.location,revalidation:i.revalidation,component:b,error:y,children:R(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):R()},null)}function Hd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function e6(e){let t=_.useContext(Sa);return $e(t,Hd(e)),t}function t6(e){let t=_.useContext(wu);return $e(t,Hd(e)),t}function n6(e){let t=_.useContext(hi);return $e(t,Hd(e)),t}function Pd(e){let t=n6(e),i=t.matches[t.matches.length-1];return $e(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function i6(){return Pd("useRouteId")}function r6(){var a;let e=_.useContext(Ud),t=t6("useRouteError"),i=Pd("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[i]}function a6(){let{router:e}=e6("useNavigate"),t=Pd("useNavigate"),i=_.useRef(!1);return Nv(()=>{i.current=!0}),_.useCallback(async(l,u={})=>{Vn(i.current,Mv),i.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...u}))},[e,t])}var J0={};function jv(e,t,i){!t&&!J0[e]&&(J0[e]=!0,Vn(!1,i))}_.memo(s6);function s6({routes:e,future:t,state:i}){return Lv(e,void 0,i,t)}function Ih(e){$e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function l6({basename:e="/",children:t=null,location:i,navigationType:a="POP",navigator:l,static:u=!1}){$e(!dl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=_.useMemo(()=>({basename:c,navigator:l,static:u,future:{}}),[c,l,u]);typeof i=="string"&&(i=xa(i));let{pathname:p="/",search:d="",hash:m="",state:y=null,key:v="default"}=i,b=_.useMemo(()=>{let w=oi(p,c);return w==null?null:{location:{pathname:w,search:d,hash:m,state:y,key:v},navigationType:a}},[c,p,d,m,y,v,a]);return Vn(b!=null,`<Router basename="${c}"> is not able to match the URL "${p}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:_.createElement(qn.Provider,{value:f},_.createElement(hl.Provider,{children:t,value:b}))}function o6({children:e,location:t}){return Kw(Yh(e),t)}function Yh(e,t=[]){let i=[];return _.Children.forEach(e,(a,l)=>{if(!_.isValidElement(a))return;let u=[...t,l];if(a.type===_.Fragment){i.push.apply(i,Yh(a.props.children,u));return}$e(a.type===Ih,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),$e(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||u.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=Yh(a.props.children,u)),i.push(c)}),i}var Zo="get",$o="application/x-www-form-urlencoded";function Eu(e){return e!=null&&typeof e.tagName=="string"}function u6(e){return Eu(e)&&e.tagName.toLowerCase()==="button"}function c6(e){return Eu(e)&&e.tagName.toLowerCase()==="form"}function f6(e){return Eu(e)&&e.tagName.toLowerCase()==="input"}function h6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function d6(e,t){return e.button===0&&(!t||t==="_self")&&!h6(e)}var Uo=null;function p6(){if(Uo===null)try{new FormData(document.createElement("form"),0),Uo=!1}catch{Uo=!0}return Uo}var m6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ch(e){return e!=null&&!m6.has(e)?(Vn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$o}"`),null):e}function g6(e,t){let i,a,l,u,c;if(c6(e)){let f=e.getAttribute("action");a=f?oi(f,t):null,i=e.getAttribute("method")||Zo,l=ch(e.getAttribute("enctype"))||$o,u=new FormData(e)}else if(u6(e)||f6(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||f.getAttribute("action");if(a=p?oi(p,t):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||Zo,l=ch(e.getAttribute("formenctype"))||ch(f.getAttribute("enctype"))||$o,u=new FormData(f,e),!p6()){let{name:d,type:m,value:y}=e;if(m==="image"){let v=d?`${d}.`:"";u.append(`${v}x`,"0"),u.append(`${v}y`,"0")}else d&&u.append(d,y)}}else{if(Eu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Zo,a=null,l=$o,c=e}return u&&l==="text/plain"&&(c=u,u=void 0),{action:a,method:i.toLowerCase(),encType:l,formData:u,body:c}}function qd(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function y6(e,t){if(e.id in t)return t[e.id];try{let i=await import(e.module);return t[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function v6(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 b6(e,t,i){let a=await Promise.all(e.map(async l=>{let u=t.routes[l.route.id];if(u){let c=await y6(u,i);return c.links?c.links():[]}return[]}));return E6(a.flat(1).filter(v6).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function W0(e,t,i,a,l,u){let c=(p,d)=>i[d]?p.route.id!==i[d].route.id:!0,f=(p,d)=>{var m;return i[d].pathname!==p.pathname||((m=i[d].route.path)==null?void 0:m.endsWith("*"))&&i[d].params["*"]!==p.params["*"]};return u==="assets"?t.filter((p,d)=>c(p,d)||f(p,d)):u==="data"?t.filter((p,d)=>{var y;let m=a.routes[p.route.id];if(!m||!m.hasLoader)return!1;if(c(p,d)||f(p,d))return!0;if(p.route.shouldRevalidate){let v=p.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((y=i[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function x6(e,t,{includeHydrateFallback:i}={}){return S6(e.map(a=>{let l=t.routes[a.route.id];if(!l)return[];let u=[l.module];return l.clientActionModule&&(u=u.concat(l.clientActionModule)),l.clientLoaderModule&&(u=u.concat(l.clientLoaderModule)),i&&l.hydrateFallbackModule&&(u=u.concat(l.hydrateFallbackModule)),l.imports&&(u=u.concat(l.imports)),u}).flat(1))}function S6(e){return[...new Set(e)]}function w6(e){let t={},i=Object.keys(e).sort();for(let a of i)t[a]=e[a];return t}function E6(e,t){let i=new Set;return new Set(t),e.reduce((a,l)=>{let u=JSON.stringify(w6(l));return i.has(u)||(i.add(u),a.push({key:u,link:l})),a},[])}function T6(e,t){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname="_root.data":t&&oi(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function Bv(){let e=_.useContext(Sa);return qd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function C6(){let e=_.useContext(wu);return qd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Fd=_.createContext(void 0);Fd.displayName="FrameworkContext";function zv(){let e=_.useContext(Fd);return qd(e,"You must render this element inside a <HydratedRouter> element"),e}function A6(e,t){let i=_.useContext(Fd),[a,l]=_.useState(!1),[u,c]=_.useState(!1),{onFocus:f,onBlur:p,onMouseEnter:d,onMouseLeave:m,onTouchStart:y}=t,v=_.useRef(null);_.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let E=C=>{C.forEach(M=>{c(M.isIntersecting)})},R=new IntersectionObserver(E,{threshold:.5});return v.current&&R.observe(v.current),()=>{R.disconnect()}}},[e]),_.useEffect(()=>{if(a){let E=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(E)}}},[a]);let b=()=>{l(!0)},w=()=>{l(!1),c(!1)};return i?e!=="intent"?[u,v,{}]:[u,v,{onFocus:Ls(f,b),onBlur:Ls(p,w),onMouseEnter:Ls(d,b),onMouseLeave:Ls(m,w),onTouchStart:Ls(y,b)}]:[!1,v,{}]}function Ls(e,t){return i=>{e&&e(i),i.defaultPrevented||t(i)}}function R6({page:e,...t}){let{router:i}=Bv(),a=_.useMemo(()=>Cv(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?_.createElement(O6,{page:e,matches:a,...t}):null}function k6(e){let{manifest:t,routeModules:i}=zv(),[a,l]=_.useState([]);return _.useEffect(()=>{let u=!1;return b6(e,t,i).then(c=>{u||l(c)}),()=>{u=!0}},[e,t,i]),a}function O6({page:e,matches:t,...i}){let a=yr(),{manifest:l,routeModules:u}=zv(),{basename:c}=Bv(),{loaderData:f,matches:p}=C6(),d=_.useMemo(()=>W0(e,t,p,l,a,"data"),[e,t,p,l,a]),m=_.useMemo(()=>W0(e,t,p,l,a,"assets"),[e,t,p,l,a]),y=_.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let w=new Set,E=!1;if(t.forEach(C=>{var O;let M=l.routes[C.route.id];!M||!M.hasLoader||(!d.some(V=>V.route.id===C.route.id)&&C.route.id in f&&((O=u[C.route.id])!=null&&O.shouldRevalidate)||M.hasClientLoader?E=!0:w.add(C.route.id))}),w.size===0)return[];let R=T6(e,c);return E&&w.size>0&&R.searchParams.set("_routes",t.filter(C=>w.has(C.route.id)).map(C=>C.route.id).join(",")),[R.pathname+R.search]},[c,f,a,l,d,t,e,u]),v=_.useMemo(()=>x6(m,l),[m,l]),b=k6(m);return _.createElement(_.Fragment,null,y.map(w=>_.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...i})),v.map(w=>_.createElement("link",{key:w,rel:"modulepreload",href:w,...i})),b.map(({key:w,link:E})=>_.createElement("link",{key:w,...E})))}function _6(...e){return t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&(i.current=t)})}}var Uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Uv&&(window.__reactRouterVersion="7.5.0")}catch{}function D6({basename:e,children:t,window:i}){let a=_.useRef();a.current==null&&(a.current=xw({window:i,v5Compat:!0}));let l=a.current,[u,c]=_.useState({action:l.action,location:l.location}),f=_.useCallback(p=>{_.startTransition(()=>c(p))},[c]);return _.useLayoutEffect(()=>l.listen(f),[l,f]),_.createElement(l6,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:l})}var Vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hv=_.forwardRef(function({onClick:t,discover:i="render",prefetch:a="none",relative:l,reloadDocument:u,replace:c,state:f,target:p,to:d,preventScrollReset:m,viewTransition:y,...v},b){let{basename:w}=_.useContext(qn),E=typeof d=="string"&&Vv.test(d),R,C=!1;if(typeof d=="string"&&E&&(R=d,Uv))try{let ee=new URL(window.location.href),fe=d.startsWith("//")?new URL(ee.protocol+d):new URL(d),ie=oi(fe.pathname,w);fe.origin===ee.origin&&ie!=null?d=ie+fe.search+fe.hash:C=!0}catch{Vn(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=Gw(d,{relative:l}),[O,V,B]=A6(a,v),L=j6(d,{replace:c,state:f,target:p,preventScrollReset:m,relative:l,viewTransition:y});function Z(ee){t&&t(ee),ee.defaultPrevented||L(ee)}let Q=_.createElement("a",{...v,...B,href:R||M,onClick:C||u?t:Z,ref:_6(b,V),target:p,"data-discover":!E&&i==="render"?"true":void 0});return O&&!E?_.createElement(_.Fragment,null,Q,_.createElement(R6,{page:M})):Q});Hv.displayName="Link";var M6=_.forwardRef(function({"aria-current":t="page",caseSensitive:i=!1,className:a="",end:l=!1,style:u,to:c,viewTransition:f,children:p,...d},m){let y=pl(c,{relative:d.relative}),v=yr(),b=_.useContext(wu),{navigator:w,basename:E}=_.useContext(qn),R=b!=null&&H6(y)&&f===!0,C=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,M=v.pathname,O=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(M=M.toLowerCase(),O=O?O.toLowerCase():null,C=C.toLowerCase()),O&&E&&(O=oi(O,E)||O);const V=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let B=M===C||!l&&M.startsWith(C)&&M.charAt(V)==="/",L=O!=null&&(O===C||!l&&O.startsWith(C)&&O.charAt(C.length)==="/"),Z={isActive:B,isPending:L,isTransitioning:R},Q=B?t:void 0,ee;typeof a=="function"?ee=a(Z):ee=[a,B?"active":null,L?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let fe=typeof u=="function"?u(Z):u;return _.createElement(Hv,{...d,"aria-current":Q,className:ee,ref:m,style:fe,to:c,viewTransition:f},typeof p=="function"?p(Z):p)});M6.displayName="NavLink";var N6=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:i,reloadDocument:a,replace:l,state:u,method:c=Zo,action:f,onSubmit:p,relative:d,preventScrollReset:m,viewTransition:y,...v},b)=>{let w=U6(),E=V6(f,{relative:d}),R=c.toLowerCase()==="get"?"get":"post",C=typeof f=="string"&&Vv.test(f),M=O=>{if(p&&p(O),O.defaultPrevented)return;O.preventDefault();let V=O.nativeEvent.submitter,B=(V==null?void 0:V.getAttribute("formmethod"))||c;w(V||O.currentTarget,{fetcherKey:t,method:B,navigate:i,replace:l,state:u,relative:d,preventScrollReset:m,viewTransition:y})};return _.createElement("form",{ref:b,method:R,action:E,onSubmit:a?p:M,...v,"data-discover":!C&&e==="render"?"true":void 0})});N6.displayName="Form";function L6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pv(e){let t=_.useContext(Sa);return $e(t,L6(e)),t}function j6(e,{target:t,replace:i,state:a,preventScrollReset:l,relative:u,viewTransition:c}={}){let f=Vd(),p=yr(),d=pl(e,{relative:u});return _.useCallback(m=>{if(d6(m,t)){m.preventDefault();let y=i!==void 0?i:tl(p)===tl(d);f(e,{replace:y,state:a,preventScrollReset:l,relative:u,viewTransition:c})}},[p,f,d,i,a,t,e,l,u,c])}var B6=0,z6=()=>`__${String(++B6)}__`;function U6(){let{router:e}=Pv("useSubmit"),{basename:t}=_.useContext(qn),i=i6();return _.useCallback(async(a,l={})=>{let{action:u,method:c,encType:f,formData:p,body:d}=g6(a,t);if(l.navigate===!1){let m=l.fetcherKey||z6();await e.fetch(m,i,l.action||u,{preventScrollReset:l.preventScrollReset,formData:p,body:d,formMethod:l.method||c,formEncType:l.encType||f,flushSync:l.flushSync})}else await e.navigate(l.action||u,{preventScrollReset:l.preventScrollReset,formData:p,body:d,formMethod:l.method||c,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:i,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,t,i])}function V6(e,{relative:t}={}){let{basename:i}=_.useContext(qn),a=_.useContext(hi);$e(a,"useFormAction must be used inside a RouteContext");let[l]=a.matches.slice(-1),u={...pl(e||".",{relative:t})},c=yr();if(e==null){u.search=c.search;let f=new URLSearchParams(u.search),p=f.getAll("index");if(p.some(m=>m==="")){f.delete("index"),p.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();u.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(u.pathname=u.pathname==="/"?i:li([i,u.pathname])),tl(u)}function H6(e,t={}){let i=_.useContext(Dv);$e(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Pv("useViewTransitionState"),l=pl(e,{relative:t.relative});if(!i.isTransitioning)return!1;let u=oi(i.currentLocation.pathname,a)||i.currentLocation.pathname,c=oi(i.nextLocation.pathname,a)||i.nextLocation.pathname;return fu(l.pathname,c)!=null||fu(l.pathname,u)!=null}new TextEncoder;const rt={pen:A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M0 11.0829V14H2.91707L11.5244 5.39269L8.60731 2.47562L0 11.0829ZM13.7725 3.1446C14.0758 2.84123 14.0758 2.34727 13.7725 2.0439L11.9561 0.227532C11.6527 -0.0758439 11.1588 -0.0758439 10.8554 0.227532L9.43187 1.65106L12.3489 4.56813L13.7725 3.1446Z",fill:"#3A3A3A"})}),trash:A.jsxs("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8368 5.39163C13.1297 5.44167 13.3254 5.71297 13.2739 5.99759L11.8416 13.9136C11.8416 13.9136 11.8416 13.9136 11.8416 13.9136C11.6757 14.831 10.8556 15.5 9.89714 15.5H4.10289C3.14437 15.5 2.32434 14.831 2.15836 13.9136L0.726084 5.99759C0.674586 5.71297 0.870274 5.44167 1.16317 5.39163C1.45606 5.34158 1.73524 5.53174 1.78674 5.81637L3.21902 13.7324C3.29447 14.1494 3.66722 14.4535 4.10289 14.4535H9.89714C10.3328 14.4535 10.7055 14.1494 10.781 13.7324L12.2133 5.81636C12.2648 5.53174 12.5439 5.34158 12.8368 5.39163Z",fill:"#EB5757"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.01282 1.54651C5.51718 1.54651 5.11538 1.93696 5.11538 2.4186V3.2907H8.88462V2.4186C8.88462 1.93696 8.48284 1.54651 7.98718 1.54651H6.01282ZM4.03846 3.2907V2.4186C4.03846 1.35899 4.92241 0.5 6.01282 0.5H7.98718C9.07761 0.5 9.96154 1.35899 9.96154 2.4186V3.2907H13.4615C13.7589 3.2907 14 3.52497 14 3.81395C14 4.10294 13.7589 4.33721 13.4615 4.33721H0.538462C0.241077 4.33721 0 4.10294 0 3.81395C0 3.52497 0.241077 3.2907 0.538462 3.2907H4.03846Z",fill:"#EB5757"})]}),github:A.jsxs("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[A.jsx("title",{children:"github [#142]"}),A.jsx("desc",{children:"Created with Sketch."}),A.jsx("defs",{}),A.jsx("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:A.jsx("g",{id:"Dribbble-Light-Preview",transform:"translate(-140.000000, -7559.000000)",fill:"#000000",children:A.jsx("g",{id:"icons",transform:"translate(56.000000, 160.000000)",children:A.jsx("path",{d:"M94,7399 C99.523,7399 104,7403.59 104,7409.253 C104,7413.782 101.138,7417.624 97.167,7418.981 C96.66,7419.082 96.48,7418.762 96.48,7418.489 C96.48,7418.151 96.492,7417.047 96.492,7415.675 C96.492,7414.719 96.172,7414.095 95.813,7413.777 C98.04,7413.523 100.38,7412.656 100.38,7408.718 C100.38,7407.598 99.992,7406.684 99.35,7405.966 C99.454,7405.707 99.797,7404.664 99.252,7403.252 C99.252,7403.252 98.414,7402.977 96.505,7404.303 C95.706,7404.076 94.85,7403.962 94,7403.958 C93.15,7403.962 92.295,7404.076 91.497,7404.303 C89.586,7402.977 88.746,7403.252 88.746,7403.252 C88.203,7404.664 88.546,7405.707 88.649,7405.966 C88.01,7406.684 87.619,7407.598 87.619,7408.718 C87.619,7412.646 89.954,7413.526 92.175,7413.785 C91.889,7414.041 91.63,7414.493 91.54,7415.156 C90.97,7415.418 89.522,7415.871 88.63,7414.304 C88.63,7414.304 88.101,7413.319 87.097,7413.247 C87.097,7413.247 86.122,7413.234 87.029,7413.87 C87.029,7413.87 87.684,7414.185 88.139,7415.37 C88.139,7415.37 88.726,7417.2 91.508,7416.58 C91.513,7417.437 91.522,7418.245 91.522,7418.489 C91.522,7418.76 91.338,7419.077 90.839,7418.982 C86.865,7417.627 84,7413.783 84,7409.253 C84,7403.59 88.478,7399 94,7399",id:"github-[#142]"})})})})]}),rigoSoftBlue:A.jsxs("svg",{width:"25",height:"15",viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M17.1812 3.46636H16.7418V3.32743C16.7418 2.09446 15.7417 1.09375 14.51 1.09375H13.3627L13.7718 1.85133C14.2502 1.94685 14.642 2.28548 14.8195 2.73699H2.64959C2.86173 2.20299 3.37477 1.82529 3.97439 1.82529H11.54L11.934 1.09592H2.96131C1.72743 1.09375 0.727339 2.09228 0.727339 3.32743V3.46636H0.287905C0.127717 3.46636 0 3.59443 0 3.75289V7.56252C0 7.72098 0.129882 7.84905 0.287905 7.84905H1.82051V7.99015C1.82051 8.13125 1.8703 8.26366 1.95256 8.36569C1.96338 8.38088 1.97637 8.39391 1.98936 8.40693C2.01533 8.43298 2.04348 8.45686 2.07378 8.47857C2.11924 8.51113 2.17119 8.535 2.22531 8.55237C2.27943 8.56974 2.33787 8.57842 2.39632 8.57842H2.54785H7.58078L8.27997 6.38815L8.59386 5.40047C8.63931 5.25721 8.83197 5.25721 8.87743 5.40047L9.19131 6.38815L9.89051 8.57842H14.9234H15.075C15.1637 8.57842 15.2481 8.55671 15.3239 8.51981C15.365 8.4981 15.404 8.47422 15.4408 8.44383C15.4689 8.41996 15.4949 8.39391 15.5187 8.36352C15.536 8.34181 15.5534 8.31793 15.5664 8.29405C15.6183 8.20505 15.6508 8.10086 15.6508 7.98798V7.84688H17.1812C17.3414 7.84688 17.4691 7.71881 17.4691 7.56035V3.75072C17.4691 3.59226 17.3392 3.46418 17.1812 3.46418V3.46636ZM15.2958 7.82301C15.2958 8.04008 15.1204 8.21374 14.9061 8.21374H10.0723L9.61992 6.96991L8.85578 4.87082C8.81466 4.75577 8.6523 4.75577 8.60901 4.87082L7.84487 6.96991L7.39245 8.21374H2.563C2.34653 8.21374 2.17336 8.03791 2.17336 7.82301V3.46853C2.17336 3.25145 2.3487 3.07779 2.563 3.07779H14.9061C15.1226 3.07779 15.2958 3.25362 15.2958 3.46853V7.82084V7.82301Z",fill:"url(#paint0_linear_1485_1767)"}),A.jsx("path",{d:"M2.6496 2.73592C2.86174 2.20193 3.37477 1.82422 3.97439 1.82422H11.54H3.97656C3.37694 1.82422 2.8639 2.20193 2.65176 2.73592H2.6496Z",fill:"#080B16"}),A.jsx("path",{d:"M14.8196 2.73722C14.6421 2.28788 14.2502 1.94707 13.7719 1.85156C14.2502 1.94707 14.6421 2.28571 14.8196 2.73722Z",fill:"#080B16"}),A.jsx("path",{d:"M13.0033 8.57837H9.89045L9.19125 6.3881L8.87737 5.40042C8.83191 5.25715 8.63925 5.25715 8.5938 5.40042L8.27991 6.3881L7.58072 8.57837H2.54779V9.49441C2.54779 10.2976 3.18638 10.951 3.97649 10.951H8.11973C13.7934 10.8403 13.0119 8.59573 13.0055 8.57837H13.0033Z",fill:"#B0EFFF"}),A.jsx("path",{d:"M8.11768 10.9507H13.4948C14.2827 10.9507 14.9235 10.2995 14.9235 9.49417V8.57812H13.0034C13.0099 8.59549 13.7914 10.84 8.11768 10.9507Z",fill:"url(#paint1_linear_1485_1767)"}),A.jsx("path",{d:"M13.0445 2.7362H14.8195C14.642 2.28469 14.2502 1.94606 13.7718 1.85055L13.3627 1.09296L12.8259 0.100939C12.7523 -0.0336463 12.5444 -0.0336463 12.473 0.100939L12.1028 0.784718L12.6224 1.8614C13.2718 2.26298 13.0488 2.72752 13.0445 2.7362Z",fill:"url(#paint2_linear_1485_1767)"}),A.jsx("path",{d:"M2.65176 2.73664H13.0445C13.0445 2.73664 13.2696 2.26342 12.6224 1.86184C12.6029 1.84881 12.5812 1.83579 12.5596 1.82493L12.1028 0.785156L11.9362 1.09557L11.5422 1.82493H3.97439C3.37477 1.82493 2.86174 2.20264 2.6496 2.73664H2.65176Z",fill:"#B0EFFF"}),A.jsx("path",{d:"M12.6202 1.86184L12.1007 0.785156L12.5575 1.82493C12.5791 1.83796 12.6008 1.84881 12.6202 1.86184Z",fill:"#C7F3FD"}),A.jsx("path",{d:"M14.9062 3.07812H2.56305C2.34658 3.07812 2.1734 3.25395 2.1734 3.46886V7.82117C2.1734 8.03824 2.34874 8.2119 2.56305 8.2119H7.39465L7.84708 6.96807L8.61122 4.86898C8.65234 4.75393 8.8147 4.75393 8.85799 4.86898L9.62213 6.96807L10.0746 8.2119H14.9083C15.1248 8.2119 15.298 8.03607 15.298 7.82117V3.46886C15.298 3.25178 15.1226 3.07812 14.9083 3.07812H14.9062ZM5.27758 3.82268V6.38414V7.30453C5.27758 7.50207 5.11523 7.6627 4.91391 7.6627C4.71259 7.6627 4.55024 7.50207 4.55024 7.30453V3.82268C4.55024 3.62515 4.71259 3.46451 4.91391 3.46451C5.11523 3.46451 5.27758 3.62515 5.27758 3.82268ZM12.9233 3.82268V6.38414V7.30453C12.9233 7.50207 12.7609 7.6627 12.5596 7.6627C12.3583 7.6627 12.196 7.50207 12.196 7.30453V3.82268C12.196 3.62515 12.3583 3.46451 12.5596 3.46451C12.7609 3.46451 12.9233 3.62515 12.9233 3.82268Z",fill:"#080B16"}),A.jsx("path",{d:"M4.91384 3.46484C4.71252 3.46484 4.55017 3.62548 4.55017 3.82301V7.30486C4.55017 7.5024 4.71252 7.66303 4.91384 7.66303C5.11516 7.66303 5.27751 7.5024 5.27751 7.30486V6.38664V3.82301C5.27751 3.62548 5.11516 3.46484 4.91384 3.46484Z",fill:"#E95B17"}),A.jsx("path",{d:"M12.5574 3.46484C12.3561 3.46484 12.1937 3.62548 12.1937 3.82301V7.30486C12.1937 7.5024 12.3561 7.66303 12.5574 7.66303C12.7587 7.66303 12.9211 7.5024 12.9211 7.30486V6.38664V3.82301C12.9211 3.62548 12.7587 3.46484 12.5574 3.46484Z",fill:"#0084FF"}),A.jsxs("defs",{children:[A.jsxs("linearGradient",{id:"paint0_linear_1485_1767",x1:"10.5789",y1:"0.294922",x2:"7.57889",y2:"8.97052",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#080B16"}),A.jsx("stop",{offset:"1",stopColor:"#161F2C"})]}),A.jsxs("linearGradient",{id:"paint1_linear_1485_1767",x1:"8.11768",y1:"9.76334",x2:"14.9235",y2:"9.76334",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#B0EFFF"}),A.jsx("stop",{offset:"0.44",stopColor:"#ADECFE"}),A.jsx("stop",{offset:"0.67",stopColor:"#A5E4FE"}),A.jsx("stop",{offset:"0.85",stopColor:"#98D7FD"}),A.jsx("stop",{offset:"1",stopColor:"#86C5FD"})]}),A.jsxs("linearGradient",{id:"paint2_linear_1485_1767",x1:"11.2543",y1:"1.91784",x2:"13.5278",y2:"1.41473",gradientUnits:"userSpaceOnUse",children:[A.jsx("stop",{stopColor:"#B0EFFF"}),A.jsx("stop",{offset:"0.44",stopColor:"#ADECFE"}),A.jsx("stop",{offset:"0.67",stopColor:"#A5E4FE"}),A.jsx("stop",{offset:"0.85",stopColor:"#98D7FD"}),A.jsx("stop",{offset:"1",stopColor:"#86C5FD"})]})]})]}),send:A.jsx("svg",{width:"12",height:"15",viewBox:"0 0 12 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M6.12812 3.64814L0.384343 0.0378137C0.213539 -0.0696296 0 0.0647108 0 0.279307V5.34833C0 5.47075 0.0733163 5.57892 0.18082 5.61498L2.90314 6.52715L5.01075 7.23331C5.25193 7.31415 5.25193 7.68577 5.01075 7.76646L2.90314 8.47262L0.18082 9.38509C0.0733163 9.42114 0 9.52931 0 9.65173V14.7206C0 14.9354 0.213539 15.0695 0.384343 14.9622L6.12812 11.3519L11.8719 7.7416C12.0427 7.6343 12.0427 7.36576 11.8719 7.25847L6.12812 3.64814Z",fill:"var(--four-geeks-blue)"})}),clip:A.jsxs("svg",{fill:"var(--four-geeks-blue)",width:"20",height:"20",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("title",{children:"clip"}),A.jsx("path",{d:"M5.469 16.688l8.75-8.75c0.094-0.094 0.844-0.844 2.031-1.25 1.656-0.531 3.344-0.094 4.688 1.25 1.375 1.344 1.781 3 1.25 4.656-0.375 1.188-1.156 2-1.25 2.094l-9.406 9.406c-1.625 1.625-5.688 3.719-9.438 0-3.719-3.719-1.594-7.813 0-9.406l10.094-10.125c0.375-0.375 0.969-0.375 1.344 0s0.375 0.969 0 1.344l-10.063 10.125c-0.156 0.125-3.313 3.406 0 6.719 3.219 3.219 6.375 0.344 6.719 0l9.406-9.438s0.531-0.531 0.781-1.281c0.313-1 0.094-1.875-0.781-2.75-1.875-1.875-3.688-0.313-4.031 0l-8.75 8.719c-0.313 0.313-0.531 0.844 0 1.375s1.031 0.281 1.344 0l6.063-6.063c0.375-0.344 1-0.344 1.344 0 0.375 0.375 0.375 1 0 1.375l-6.063 6.031c-0.844 0.813-2.563 1.469-4.031 0-1.5-1.469-0.844-3.219 0-4.031z"})]}),user:A.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("circle",{cx:"12",cy:"6",r:"4",stroke:"#1C398E",strokeWidth:"1.5"}),A.jsx("path",{d:"M20 17.5C20 19.9853 20 22 12 22C4 22 4 19.9853 4 17.5C4 15.0147 7.58172 13 12 13C16.4183 13 20 15.0147 20 17.5Z",stroke:"#1C398E",strokeWidth:"1.5"})]}),downArrow:A.jsx("svg",{width:"7",height:"6",viewBox:"0 0 7 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.100496 1.0705C0.22866 0.950272 0.430019 0.956708 0.550243 1.08487L3.5 4.2294L6.44976 1.08487C6.56998 0.956708 6.77134 0.950272 6.8995 1.0705C7.02767 1.19072 7.0341 1.39208 6.91388 1.52024L3.73206 4.91216C3.67191 4.97628 3.58792 5.01266 3.5 5.01266C3.41208 5.01266 3.32809 4.97628 3.26794 4.91216L0.086122 1.52024C-0.0341029 1.39208 -0.0276674 1.19072 0.100496 1.0705Z",fill:"#0084FF"})}),undo:A.jsxs("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M12 20.75C10.078 20.7474 8.23546 19.9827 6.8764 18.6236C5.51733 17.2645 4.75265 15.422 4.75 13.5C4.75 13.3011 4.82902 13.1103 4.96967 12.9697C5.11032 12.829 5.30109 12.75 5.5 12.75C5.69891 12.75 5.88968 12.829 6.03033 12.9697C6.17098 13.1103 6.25 13.3011 6.25 13.5C6.25 14.6372 6.58723 15.7489 7.21905 16.6945C7.85087 17.6401 8.74889 18.3771 9.79957 18.8123C10.8502 19.2475 12.0064 19.3614 13.1218 19.1395C14.2372 18.9177 15.2617 18.37 16.0659 17.5659C16.87 16.7617 17.4177 15.7372 17.6395 14.6218C17.8614 13.5064 17.7475 12.3502 17.3123 11.2996C16.8771 10.2489 16.1401 9.35087 15.1945 8.71905C14.2489 8.08723 13.1372 7.75 12 7.75H9.5C9.30109 7.75 9.11032 7.67098 8.96967 7.53033C8.82902 7.38968 8.75 7.19891 8.75 7C8.75 6.80109 8.82902 6.61032 8.96967 6.46967C9.11032 6.32902 9.30109 6.25 9.5 6.25H12C13.9228 6.25 15.7669 7.01384 17.1265 8.37348C18.4862 9.73311 19.25 11.5772 19.25 13.5C19.25 15.4228 18.4862 17.2669 17.1265 18.6265C15.7669 19.9862 13.9228 20.75 12 20.75Z",fill:"#000000"}),A.jsx("path",{d:"M12 10.75C11.9015 10.7505 11.8038 10.7313 11.7128 10.6935C11.6218 10.6557 11.5393 10.6001 11.47 10.53L8.47001 7.53003C8.32956 7.38941 8.25067 7.19878 8.25067 7.00003C8.25067 6.80128 8.32956 6.61066 8.47001 6.47003L11.47 3.47003C11.5387 3.39634 11.6215 3.33724 11.7135 3.29625C11.8055 3.25526 11.9048 3.23322 12.0055 3.23144C12.1062 3.22966 12.2062 3.24819 12.2996 3.28591C12.393 3.32363 12.4778 3.37977 12.549 3.45099C12.6203 3.52221 12.6764 3.60705 12.7141 3.70043C12.7519 3.79382 12.7704 3.89385 12.7686 3.99455C12.7668 4.09526 12.7448 4.19457 12.7038 4.28657C12.6628 4.37857 12.6037 4.46137 12.53 4.53003L10.06 7.00003L12.53 9.47003C12.6705 9.61066 12.7494 9.80128 12.7494 10C12.7494 10.1988 12.6705 10.3894 12.53 10.53C12.4608 10.6001 12.3782 10.6557 12.2872 10.6935C12.1962 10.7313 12.0986 10.7505 12 10.75Z",fill:"#000000"})]}),redClose:A.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M5.875 5.19922L9.8125 1.26172C10.0625 1.01172 10.0625 0.636719 9.8125 0.386719C9.5625 0.136719 9.1875 0.136719 8.9375 0.386719L5 4.32422L1.0625 0.386719C0.8125 0.136719 0.4375 0.136719 0.1875 0.386719C-0.0624999 0.636719 -0.0624999 1.01172 0.1875 1.26172L4.125 5.19922L0.1875 9.13672C0.0625001 9.26172 0 9.38672 0 9.57422C0 9.94922 0.25 10.1992 0.625 10.1992C0.8125 10.1992 0.9375 10.1367 1.0625 10.0117L5 6.07422L8.9375 10.0117C9.0625 10.1367 9.1875 10.1992 9.375 10.1992C9.5625 10.1992 9.6875 10.1367 9.8125 10.0117C10.0625 9.76172 10.0625 9.38672 9.8125 9.13672L5.875 5.19922Z",fill:"#EB5757"})}),contentTable:A.jsx("svg",{width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M12.668 7.31052L9.52511 10.4368L8.28702 9.20525C7.90606 8.82631 7.33464 8.82631 6.95368 9.20525C6.57273 9.5842 6.57273 10.1526 6.95368 10.5316L8.85844 12.4263C9.04892 12.6158 9.2394 12.7105 9.52511 12.7105C9.81083 12.7105 10.0013 12.6158 10.1918 12.4263L14.0013 8.63683C14.3823 8.25788 14.3823 7.68946 14.0013 7.31052C13.6203 6.93157 13.0489 6.93157 12.668 7.31052ZM12.668 13.9421L9.52511 17.0684L8.28702 15.8368C7.90606 15.4579 7.33464 15.4579 6.95368 15.8368C6.57273 16.2158 6.57273 16.7842 6.95368 17.1631L8.85844 19.0579C9.04892 19.2474 9.2394 19.3421 9.52511 19.3421C9.81083 19.3421 10.0013 19.2474 10.1918 19.0579L14.0013 15.2684C14.3823 14.8895 14.3823 14.321 14.0013 13.9421C13.6203 13.5631 13.0489 13.5631 12.668 13.9421ZM12.668 20.5737L9.52511 23.7L8.28702 22.4684C7.90606 22.0895 7.33464 22.0895 6.95368 22.4684C6.57273 22.8474 6.57273 23.4158 6.95368 23.7947L8.85844 25.6895C9.04892 25.8789 9.2394 25.9737 9.52511 25.9737C9.81083 25.9737 10.0013 25.8789 10.1918 25.6895L14.0013 21.9C14.3823 21.521 14.3823 20.9526 14.0013 20.5737C13.6203 20.1947 13.0489 20.1947 12.668 20.5737ZM18.0965 11.7631H25.7156C26.287 11.7631 26.668 11.3842 26.668 10.8158C26.668 10.2474 26.287 9.86841 25.7156 9.86841H18.0965C17.5251 9.86841 17.1442 10.2474 17.1442 10.8158C17.1442 11.3842 17.5251 11.7631 18.0965 11.7631ZM25.7156 16.5H18.0965C17.5251 16.5 17.1442 16.8789 17.1442 17.4474C17.1442 18.0158 17.5251 18.3947 18.0965 18.3947H25.7156C26.287 18.3947 26.668 18.0158 26.668 17.4474C26.668 16.8789 26.287 16.5 25.7156 16.5ZM25.7156 23.1316H18.0965C17.5251 23.1316 17.1442 23.5105 17.1442 24.0789C17.1442 24.6474 17.5251 25.0263 18.0965 25.0263H25.7156C26.287 25.0263 26.668 24.6474 26.668 24.0789C26.668 23.5105 26.287 23.1316 25.7156 23.1316Z",fill:"#0084FF"})}),pdf:A.jsx("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M27.5 14.1667H27V8.56667C27 8.56667 27 8.56667 27 8.53867C26.9975 8.49737 26.9891 8.45656 26.975 8.41733V8.37533C26.952 8.3254 26.9199 8.2796 26.88 8.24L20.88 2.64C20.8376 2.60279 20.7885 2.57278 20.735 2.55133H20.69C20.6402 2.52586 20.5861 2.5085 20.53 2.5H5.5C5.36739 2.5 5.24021 2.54917 5.14645 2.63668C5.05268 2.7242 5 2.8429 5 2.96667V14.1667H4.5C4.36739 14.1667 4.24021 14.2158 4.14645 14.3033C4.05268 14.3909 4 14.5096 4 14.6333V23.9667C4 24.0904 4.05268 24.2091 4.14645 24.2966C4.24021 24.3842 4.36739 24.4333 4.5 24.4333H5V30.0333C5 30.1571 5.05268 30.2758 5.14645 30.3633C5.24021 30.4508 5.36739 30.5 5.5 30.5H26.5C26.6326 30.5 26.7598 30.4508 26.8536 30.3633C26.9473 30.2758 27 30.1571 27 30.0333V24.4333H27.5C27.6326 24.4333 27.7598 24.3842 27.8536 24.2966C27.9473 24.2091 28 24.0904 28 23.9667V14.6333C28 14.5096 27.9473 14.3909 27.8536 14.3033C27.7598 14.2158 27.6326 14.1667 27.5 14.1667ZM21 4.09133L25.295 8.1H21V4.09133ZM26 29.5667H6V24.4333H26V29.5667ZM10.535 22.4827V16.2527H12.12C12.3368 16.2437 12.5532 16.2777 12.7549 16.3526C12.9565 16.4274 13.1389 16.5412 13.29 16.6867C13.5656 16.9764 13.7107 17.3542 13.695 17.7413V18.6467C13.6985 18.8423 13.6595 19.0366 13.5805 19.2179C13.5014 19.3991 13.3839 19.5636 13.235 19.7013C13.092 19.8427 12.919 19.9547 12.727 20.0303C12.535 20.1058 12.3283 20.1432 12.12 20.14H11.545V22.4733L10.535 22.4827ZM14.505 22.4827V16.248H16.085C16.2941 16.2442 16.5018 16.2812 16.6947 16.3568C16.8876 16.4323 17.0614 16.5447 17.205 16.6867C17.3537 16.8236 17.4712 16.9872 17.5503 17.1677C17.6293 17.3481 17.6684 17.5417 17.665 17.7367V21.0033C17.6681 21.1994 17.6285 21.3939 17.5486 21.5752C17.4686 21.7565 17.35 21.9208 17.2 22.058C17.0564 22.2 16.8826 22.3123 16.6897 22.3879C16.4968 22.4634 16.2891 22.5005 16.08 22.4967L14.505 22.4827ZM20.92 18.894V19.8273H19.56V22.4733H18.56V16.248H21.425V17.1813H19.56V18.88L20.92 18.894ZM26 14.1667H6V3.43333H20V8.56667C20 8.69043 20.0527 8.80913 20.1464 8.89665C20.2402 8.98417 20.3674 9.03333 20.5 9.03333H26V14.1667Z",fill:"#EB5757"})}),youtube:A.jsxs("svg",{width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.3483 8.95829C30.9895 7.61238 29.9277 6.55075 28.5769 6.18687C26.1345 5.53381 16.3347 5.53381 16.3347 5.53381C16.3347 5.53381 6.53991 5.53381 4.09244 6.18687C2.74666 6.54572 1.6849 7.60748 1.32102 8.95829C0.667969 11.4007 0.667969 16.5 0.667969 16.5C0.667969 16.5 0.667969 21.5993 1.32102 24.0418C1.67988 25.3877 2.74164 26.4493 4.09244 26.8132C6.53991 27.4662 16.3347 27.4662 16.3347 27.4662C16.3347 27.4662 26.1345 27.4662 28.5769 26.8132C29.9228 26.4543 30.9845 25.3926 31.3483 24.0418C32.0014 21.5993 32.0014 16.5001 32.0014 16.5001C32.0014 16.5001 32.0014 11.4007 31.3483 8.95829Z",fill:"#FF0000"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2031 21.2001L21.343 16.4995L13.2031 11.7991V21.2001Z",fill:"white"})]}),google:A.jsxs("svg",{width:"20px",height:"20px",viewBox:"-0.5 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[A.jsx("title",{children:"Google-color"}),A.jsx("desc",{children:"Created with Sketch."}),A.jsx("defs",{}),A.jsx("g",{id:"Icons",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:A.jsx("g",{id:"Color-",transform:"translate(-401.000000, -860.000000)",children:A.jsxs("g",{id:"Google",transform:"translate(401.000000, 860.000000)",children:[A.jsx("path",{d:"M9.82727273,24 C9.82727273,22.4757333 10.0804318,21.0144 10.5322727,19.6437333 L2.62345455,13.6042667 C1.08206818,16.7338667 0.213636364,20.2602667 0.213636364,24 C0.213636364,27.7365333 1.081,31.2608 2.62025,34.3882667 L10.5247955,28.3370667 C10.0772273,26.9728 9.82727273,25.5168 9.82727273,24",id:"Fill-1",fill:"#FBBC05"}),A.jsx("path",{d:"M23.7136364,10.1333333 C27.025,10.1333333 30.0159091,11.3066667 32.3659091,13.2266667 L39.2022727,6.4 C35.0363636,2.77333333 29.6954545,0.533333333 23.7136364,0.533333333 C14.4268636,0.533333333 6.44540909,5.84426667 2.62345455,13.6042667 L10.5322727,19.6437333 C12.3545909,14.112 17.5491591,10.1333333 23.7136364,10.1333333",id:"Fill-2",fill:"#EB4335"}),A.jsx("path",{d:"M23.7136364,37.8666667 C17.5491591,37.8666667 12.3545909,33.888 10.5322727,28.3562667 L2.62345455,34.3946667 C6.44540909,42.1557333 14.4268636,47.4666667 23.7136364,47.4666667 C29.4455,47.4666667 34.9177955,45.4314667 39.0249545,41.6181333 L31.5177727,35.8144 C29.3995682,37.1488 26.7323182,37.8666667 23.7136364,37.8666667",id:"Fill-3",fill:"#34A853"}),A.jsx("path",{d:"M46.1454545,24 C46.1454545,22.6133333 45.9318182,21.12 45.6113636,19.7333333 L23.7136364,19.7333333 L23.7136364,28.8 L36.3181818,28.8 C35.6879545,31.8912 33.9724545,34.2677333 31.5177727,35.8144 L39.0249545,41.6181333 C43.3393409,37.6138667 46.1454545,31.6490667 46.1454545,24",id:"Fill-4",fill:"#4285F4"})]})})})]})};let P6={data:""},q6=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||P6,F6=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,I6=/\/\*[^]*?\*\/| +/g,e1=/\n+/g,Ui=(e,t)=>{let i="",a="",l="";for(let u in e){let c=e[u];u[0]=="@"?u[1]=="i"?i=u+" "+c+";":a+=u[1]=="f"?Ui(c,u):u+"{"+Ui(c,u[1]=="k"?"":t)+"}":typeof c=="object"?a+=Ui(c,t?t.replace(/([^,])+/g,f=>u.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,f):f?f+" "+p:p)):u):c!=null&&(u=/^--/.test(u)?u:u.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=Ui.p?Ui.p(u,c):u+":"+c+";")}return i+(t&&l?t+"{"+l+"}":l)+a},si={},qv=e=>{if(typeof e=="object"){let t="";for(let i in e)t+=i+qv(e[i]);return t}return e},Y6=(e,t,i,a,l)=>{let u=qv(e),c=si[u]||(si[u]=(p=>{let d=0,m=11;for(;d<p.length;)m=101*m+p.charCodeAt(d++)>>>0;return"go"+m})(u));if(!si[c]){let p=u!==e?e:(d=>{let m,y,v=[{}];for(;m=F6.exec(d.replace(I6,""));)m[4]?v.shift():m[3]?(y=m[3].replace(e1," ").trim(),v.unshift(v[0][y]=v[0][y]||{})):v[0][m[1]]=m[2].replace(e1," ").trim();return v[0]})(e);si[c]=Ui(l?{["@keyframes "+c]:p}:p,i?"":"."+c)}let f=i&&si.g?si.g:null;return i&&(si.g=si[c]),((p,d,m,y)=>{y?d.data=d.data.replace(y,p):d.data.indexOf(p)===-1&&(d.data=m?p+d.data:d.data+p)})(si[c],t,a,f),c},G6=(e,t,i)=>e.reduce((a,l,u)=>{let c=t[u];if(c&&c.call){let f=c(i),p=f&&f.props&&f.props.className||/^go/.test(f)&&f;c=p?"."+p:f&&typeof f=="object"?f.props?"":Ui(f,""):f===!1?"":f}return a+l+(c??"")},"");function Tu(e){let t=this||{},i=e.call?e(t.p):e;return Y6(i.unshift?i.raw?G6(i,[].slice.call(arguments,1),t.p):i.reduce((a,l)=>Object.assign(a,l&&l.call?l(t.p):l),{}):i,q6(t.target),t.g,t.o,t.k)}let Fv,Gh,Xh;Tu.bind({g:1});let ui=Tu.bind({k:1});function X6(e,t,i,a){Ui.p=t,Fv=e,Gh=i,Xh=a}function qi(e,t){let i=this||{};return function(){let a=arguments;function l(u,c){let f=Object.assign({},u),p=f.className||l.className;i.p=Object.assign({theme:Gh&&Gh()},f),i.o=/ *go\d+/.test(p),f.className=Tu.apply(i,a)+(p?" "+p:"");let d=e;return e[0]&&(d=f.as||e,delete f.as),Xh&&d[0]&&Xh(f),Fv(d,f)}return l}}var K6=e=>typeof e=="function",hu=(e,t)=>K6(e)?e(t):e,Z6=(()=>{let e=0;return()=>(++e).toString()})(),Iv=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),$6=20,Yv=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,$6)};case 1:return{...e,toasts:e.toasts.map(u=>u.id===t.toast.id?{...u,...t.toast}:u)};case 2:let{toast:i}=t;return Yv(e,{type:e.toasts.find(u=>u.id===i.id)?1:0,toast:i});case 3:let{toastId:a}=t;return{...e,toasts:e.toasts.map(u=>u.id===a||a===void 0?{...u,dismissed:!0,visible:!1}:u)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(u=>u.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let l=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(u=>({...u,pauseDuration:u.pauseDuration+l}))}}},Qo=[],cr={toasts:[],pausedAt:void 0},vr=e=>{cr=Yv(cr,e),Qo.forEach(t=>{t(cr)})},Q6={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},J6=(e={})=>{let[t,i]=_.useState(cr),a=_.useRef(cr);_.useEffect(()=>(a.current!==cr&&i(cr),Qo.push(i),()=>{let u=Qo.indexOf(i);u>-1&&Qo.splice(u,1)}),[]);let l=t.toasts.map(u=>{var c,f,p;return{...e,...e[u.type],...u,removeDelay:u.removeDelay||((c=e[u.type])==null?void 0:c.removeDelay)||(e==null?void 0:e.removeDelay),duration:u.duration||((f=e[u.type])==null?void 0:f.duration)||(e==null?void 0:e.duration)||Q6[u.type],style:{...e.style,...(p=e[u.type])==null?void 0:p.style,...u.style}}});return{...t,toasts:l}},W6=(e,t="blank",i)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...i,id:(i==null?void 0:i.id)||Z6()}),ml=e=>(t,i)=>{let a=W6(t,e,i);return vr({type:2,toast:a}),a.id},At=(e,t)=>ml("blank")(e,t);At.error=ml("error");At.success=ml("success");At.loading=ml("loading");At.custom=ml("custom");At.dismiss=e=>{vr({type:3,toastId:e})};At.remove=e=>vr({type:4,toastId:e});At.promise=(e,t,i)=>{let a=At.loading(t.loading,{...i,...i==null?void 0:i.loading});return typeof e=="function"&&(e=e()),e.then(l=>{let u=t.success?hu(t.success,l):void 0;return u?At.success(u,{id:a,...i,...i==null?void 0:i.success}):At.dismiss(a),l}).catch(l=>{let u=t.error?hu(t.error,l):void 0;u?At.error(u,{id:a,...i,...i==null?void 0:i.error}):At.dismiss(a)}),e};var e5=(e,t)=>{vr({type:1,toast:{id:e,height:t}})},t5=()=>{vr({type:5,time:Date.now()})},Gs=new Map,n5=1e3,i5=(e,t=n5)=>{if(Gs.has(e))return;let i=setTimeout(()=>{Gs.delete(e),vr({type:4,toastId:e})},t);Gs.set(e,i)},r5=e=>{let{toasts:t,pausedAt:i}=J6(e);_.useEffect(()=>{if(i)return;let u=Date.now(),c=t.map(f=>{if(f.duration===1/0)return;let p=(f.duration||0)+f.pauseDuration-(u-f.createdAt);if(p<0){f.visible&&At.dismiss(f.id);return}return setTimeout(()=>At.dismiss(f.id),p)});return()=>{c.forEach(f=>f&&clearTimeout(f))}},[t,i]);let a=_.useCallback(()=>{i&&vr({type:6,time:Date.now()})},[i]),l=_.useCallback((u,c)=>{let{reverseOrder:f=!1,gutter:p=8,defaultPosition:d}=c||{},m=t.filter(b=>(b.position||d)===(u.position||d)&&b.height),y=m.findIndex(b=>b.id===u.id),v=m.filter((b,w)=>w<y&&b.visible).length;return m.filter(b=>b.visible).slice(...f?[v+1]:[0,v]).reduce((b,w)=>b+(w.height||0)+p,0)},[t]);return _.useEffect(()=>{t.forEach(u=>{if(u.dismissed)i5(u.id,u.removeDelay);else{let c=Gs.get(u.id);c&&(clearTimeout(c),Gs.delete(u.id))}})},[t]),{toasts:t,handlers:{updateHeight:e5,startPause:t5,endPause:a,calculateOffset:l}}},a5=ui`
61
+ from {
62
+ transform: scale(0) rotate(45deg);
63
+ opacity: 0;
64
+ }
65
+ to {
66
+ transform: scale(1) rotate(45deg);
67
+ opacity: 1;
68
+ }`,s5=ui`
69
+ from {
70
+ transform: scale(0);
71
+ opacity: 0;
72
+ }
73
+ to {
74
+ transform: scale(1);
75
+ opacity: 1;
76
+ }`,l5=ui`
77
+ from {
78
+ transform: scale(0) rotate(90deg);
79
+ opacity: 0;
80
+ }
81
+ to {
82
+ transform: scale(1) rotate(90deg);
83
+ opacity: 1;
84
+ }`,o5=qi("div")`
85
+ width: 20px;
86
+ opacity: 0;
87
+ height: 20px;
88
+ border-radius: 10px;
89
+ background: ${e=>e.primary||"#ff4b4b"};
90
+ position: relative;
91
+ transform: rotate(45deg);
92
+
93
+ animation: ${a5} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
94
+ forwards;
95
+ animation-delay: 100ms;
96
+
97
+ &:after,
98
+ &:before {
99
+ content: '';
100
+ animation: ${s5} 0.15s ease-out forwards;
101
+ animation-delay: 150ms;
102
+ position: absolute;
103
+ border-radius: 3px;
104
+ opacity: 0;
105
+ background: ${e=>e.secondary||"#fff"};
106
+ bottom: 9px;
107
+ left: 4px;
108
+ height: 2px;
109
+ width: 12px;
110
+ }
111
+
112
+ &:before {
113
+ animation: ${l5} 0.15s ease-out forwards;
114
+ animation-delay: 180ms;
115
+ transform: rotate(90deg);
116
+ }
117
+ `,u5=ui`
118
+ from {
119
+ transform: rotate(0deg);
120
+ }
121
+ to {
122
+ transform: rotate(360deg);
123
+ }
124
+ `,c5=qi("div")`
125
+ width: 12px;
126
+ height: 12px;
127
+ box-sizing: border-box;
128
+ border: 2px solid;
129
+ border-radius: 100%;
130
+ border-color: ${e=>e.secondary||"#e0e0e0"};
131
+ border-right-color: ${e=>e.primary||"#616161"};
132
+ animation: ${u5} 1s linear infinite;
133
+ `,f5=ui`
134
+ from {
135
+ transform: scale(0) rotate(45deg);
136
+ opacity: 0;
137
+ }
138
+ to {
139
+ transform: scale(1) rotate(45deg);
140
+ opacity: 1;
141
+ }`,h5=ui`
142
+ 0% {
143
+ height: 0;
144
+ width: 0;
145
+ opacity: 0;
146
+ }
147
+ 40% {
148
+ height: 0;
149
+ width: 6px;
150
+ opacity: 1;
151
+ }
152
+ 100% {
153
+ opacity: 1;
154
+ height: 10px;
155
+ }`,d5=qi("div")`
156
+ width: 20px;
157
+ opacity: 0;
158
+ height: 20px;
159
+ border-radius: 10px;
160
+ background: ${e=>e.primary||"#61d345"};
161
+ position: relative;
162
+ transform: rotate(45deg);
163
+
164
+ animation: ${f5} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
165
+ forwards;
166
+ animation-delay: 100ms;
167
+ &:after {
168
+ content: '';
169
+ box-sizing: border-box;
170
+ animation: ${h5} 0.2s ease-out forwards;
171
+ opacity: 0;
172
+ animation-delay: 200ms;
173
+ position: absolute;
174
+ border-right: 2px solid;
175
+ border-bottom: 2px solid;
176
+ border-color: ${e=>e.secondary||"#fff"};
177
+ bottom: 6px;
178
+ left: 6px;
179
+ height: 10px;
180
+ width: 6px;
181
+ }
182
+ `,p5=qi("div")`
183
+ position: absolute;
184
+ `,m5=qi("div")`
185
+ position: relative;
186
+ display: flex;
187
+ justify-content: center;
188
+ align-items: center;
189
+ min-width: 20px;
190
+ min-height: 20px;
191
+ `,g5=ui`
192
+ from {
193
+ transform: scale(0.6);
194
+ opacity: 0.4;
195
+ }
196
+ to {
197
+ transform: scale(1);
198
+ opacity: 1;
199
+ }`,y5=qi("div")`
200
+ position: relative;
201
+ transform: scale(0.6);
202
+ opacity: 0.4;
203
+ min-width: 20px;
204
+ animation: ${g5} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
205
+ forwards;
206
+ `,v5=({toast:e})=>{let{icon:t,type:i,iconTheme:a}=e;return t!==void 0?typeof t=="string"?_.createElement(y5,null,t):t:i==="blank"?null:_.createElement(m5,null,_.createElement(c5,{...a}),i!=="loading"&&_.createElement(p5,null,i==="error"?_.createElement(o5,{...a}):_.createElement(d5,{...a})))},b5=e=>`
207
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
208
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
209
+ `,x5=e=>`
210
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
211
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
212
+ `,S5="0%{opacity:0;} 100%{opacity:1;}",w5="0%{opacity:1;} 100%{opacity:0;}",E5=qi("div")`
213
+ display: flex;
214
+ align-items: center;
215
+ background: #fff;
216
+ color: #363636;
217
+ line-height: 1.3;
218
+ will-change: transform;
219
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
220
+ max-width: 350px;
221
+ pointer-events: auto;
222
+ padding: 8px 10px;
223
+ border-radius: 8px;
224
+ `,T5=qi("div")`
225
+ display: flex;
226
+ justify-content: center;
227
+ margin: 4px 10px;
228
+ color: inherit;
229
+ flex: 1 1 auto;
230
+ white-space: pre-line;
231
+ `,C5=(e,t)=>{let i=e.includes("top")?1:-1,[a,l]=Iv()?[S5,w5]:[b5(i),x5(i)];return{animation:t?`${ui(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ui(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},A5=_.memo(({toast:e,position:t,style:i,children:a})=>{let l=e.height?C5(e.position||t||"top-center",e.visible):{opacity:0},u=_.createElement(v5,{toast:e}),c=_.createElement(T5,{...e.ariaProps},hu(e.message,e));return _.createElement(E5,{className:e.className,style:{...l,...i,...e.style}},typeof a=="function"?a({icon:u,message:c}):_.createElement(_.Fragment,null,u,c))});X6(_.createElement);var R5=({id:e,className:t,style:i,onHeightUpdate:a,children:l})=>{let u=_.useCallback(c=>{if(c){let f=()=>{let p=c.getBoundingClientRect().height;a(e,p)};f(),new MutationObserver(f).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return _.createElement("div",{ref:u,className:t,style:i},l)},k5=(e,t)=>{let i=e.includes("top"),a=i?{top:0}:{bottom:0},l=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Iv()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(i?1:-1)}px)`,...a,...l}},O5=Tu`
232
+ z-index: 9999;
233
+ > * {
234
+ pointer-events: auto;
235
+ }
236
+ `,Vo=16,_5=({reverseOrder:e,position:t="top-center",toastOptions:i,gutter:a,children:l,containerStyle:u,containerClassName:c})=>{let{toasts:f,handlers:p}=r5(i);return _.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Vo,left:Vo,right:Vo,bottom:Vo,pointerEvents:"none",...u},className:c,onMouseEnter:p.startPause,onMouseLeave:p.endPause},f.map(d=>{let m=d.position||t,y=p.calculateOffset(d,{reverseOrder:e,gutter:a,defaultPosition:t}),v=k5(m,y);return _.createElement(R5,{id:d.id,key:d.id,onHeightUpdate:p.updateHeight,className:d.visible?O5:"",style:v},d.type==="custom"?hu(d.message,d):l?l(d):_.createElement(A5,{toast:d,position:m}))}))},ot=At;const D5=({steps:e,formState:t,setFormState:i,onFinish:a,hideLastButton:l=!1})=>{var m,y,v,b,w;const u=t.currentStep,c=e.findIndex(E=>E.slug===u),f=e.length,p=()=>{const E=e.findIndex(R=>R.slug===u);if(e[E].required&&!e[E].isCompleted){At.error("Please fill out all required fields!");return}E<f-1&&i({...t,currentStep:e[E+1].slug})},d=()=>{const E=e.findIndex(R=>R.slug===u);E>0&&i({...t,currentStep:e[E-1].slug})};return A.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center text-center px-4",children:A.jsxs("div",{className:" rounded-xl p-8 w-full max-w-xl",children:[A.jsx("h5",{className:"text-sm text-blue-400 uppercase mb-2",children:((m=e.find(E=>E.slug===u))==null?void 0:m.subtitle)||"Setting up your tutorial"}),A.jsxs("h2",{className:"text-lg font-medium mb-6",children:[A.jsxs("span",{className:"text-blue-600 mr-1",children:[c+1,"."]}),(y=e.find(E=>E.slug===u))==null?void 0:y.title]}),((v=e.find(E=>E.slug===u))==null?void 0:v.helpText)&&A.jsxs("div",{className:"text-sm text-gray-500 bg-white p-2 rounded-md flex flex-row gap-2 align-center border border-gray-200 mb-4",children:[A.jsx("div",{className:"text-blue-500 align-center justify-center flex bg-heavy-blue p-2 flex rounded",children:rt.rigoSoftBlue}),A.jsx("div",{className:"flex flex-col gap-2 align-center justify-center",children:A.jsx("span",{className:"",children:(b=e.find(E=>E.slug===u))==null?void 0:b.helpText})})]}),A.jsx("div",{className:"flex justify-center mb-4 space-x-2",children:e.map((E,R)=>A.jsx("span",{className:`h-2 w-2 rounded-full ${R===c?"bg-blue-600":"bg-gray-300"}`},R))}),A.jsx("div",{className:"mb-6",children:(w=e.find(E=>E.slug===u))==null?void 0:w.content}),A.jsxs("div",{className:"flex justify-between",children:[A.jsx("button",{onClick:d,disabled:c===0,className:`text-sm text-gray-500 hover:text-gray-900 disabled:opacity-40 ${c===0?"cursor-not-allowed":"cursor-pointer"}`,children:"⬅ Back"}),!(l&&c===f-1)&&A.jsx("button",{onClick:c===f-1?a:p,className:`text-sm text-blue-600 hover:text-blue-800 cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed p-2 rounded-md ${c===f-1?"bg-blue-600 text-white":""}`,children:c===f-1?"Finish 🚀":"Next ➡"})]})]})})},oa=({title:e,selected:t=!1,subtitle:i="",onClick:a,className:l=""})=>A.jsxs("div",{className:`cursor-pointer bg-white rounded-lg shadow-md p-6 text-center transition-all
237
+ hover:shadow-lg border-2 ${l} ${t?"border-blue-500":"border-transparent"}`,onClick:a,children:[A.jsx("p",{className:"text-md font-medium",children:e}),i&&A.jsx("p",{className:"text-sm text-gray-600",children:i})]});function M5(e){return{all:e=e||new Map,on:function(t,i){var a=e.get(t);a?a.push(i):e.set(t,[i])},off:function(t,i){var a=e.get(t);a&&(i?a.splice(a.indexOf(i)>>>0,1):e.set(t,[]))},emit:function(t,i){var a=e.get(t);a&&a.slice().map(function(l){l(i)}),(a=e.get("*"))&&a.slice().map(function(l){l(t,i)})}}}const t1=M5(),Id=({text:e,icon:t,listeningTo:i,initialBuffer:a,minheight:l="min-h-screen"})=>{const[u,c]=_.useState(a||""),f=_.useRef(null);return _.useEffect(()=>(i&&t1.on(i,p=>{c(d=>d+`
238
+ `+p.message)}),()=>{i&&t1.off(i)}),[i]),_.useEffect(()=>{f.current&&f.current.scrollTo({top:f.current.scrollHeight,behavior:"smooth"})},[u]),A.jsxs("div",{className:`flex flex-col items-center justify-center bg-gray-50 text-center space-y-6 ${l}`,children:[A.jsx("div",{className:"text-blue-500 text-4xl animate-pulse",children:t}),A.jsx("p",{className:"text-gray-800 text-lg whitespace-pre-line px-4",children:e}),!u&&A.jsx("div",{className:"flex space-x-2 mt-2",children:[0,1,2,3].map(p=>A.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-400 opacity-30 animate-ping",style:{animationDelay:`${p*.2}s`,animationDuration:"1.2s"}},p))}),u&&A.jsx("pre",{ref:f,className:"text-gray-800 text-sm border border-blue-200 rounded-md p-3 font-sans max-h-[300px] overflow-y-auto w-full max-w-[700px] text-left",style:{scrollbarWidth:"none"},children:u.trim()})]})},n1=e=>Symbol.iterator in e,i1=e=>"entries"in e,r1=(e,t)=>{const i=e instanceof Map?e:new Map(e.entries()),a=t instanceof Map?t:new Map(t.entries());if(i.size!==a.size)return!1;for(const[l,u]of i)if(!Object.is(u,a.get(l)))return!1;return!0},N5=(e,t)=>{const i=e[Symbol.iterator](),a=t[Symbol.iterator]();let l=i.next(),u=a.next();for(;!l.done&&!u.done;){if(!Object.is(l.value,u.value))return!1;l=i.next(),u=a.next()}return!!l.done&&!!u.done};function L5(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:!n1(e)||!n1(t)?r1({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)}):i1(e)&&i1(t)?r1(e,t):N5(e,t)}function Yd(e){const t=qh.useRef(void 0);return i=>{const a=e(i);return L5(t.current,a)?t.current:t.current=a}}const a1=e=>{let t;const i=new Set,a=(d,m)=>{const y=typeof d=="function"?d(t):d;if(!Object.is(y,t)){const v=t;t=m??(typeof y!="object"||y===null)?y:Object.assign({},t,y),i.forEach(b=>b(t,v))}},l=()=>t,f={setState:a,getState:l,getInitialState:()=>p,subscribe:d=>(i.add(d),()=>i.delete(d))},p=t=e(a,l,f);return f},j5=e=>e?a1(e):a1,B5=e=>e;function z5(e,t=B5){const i=qh.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return qh.useDebugValue(i),i}const U5=e=>{const t=j5(e),i=a=>z5(t,a);return Object.assign(i,t),i},V5=e=>U5;function H5(e,t){let i;try{i=e()}catch{return}return{getItem:l=>{var u;const c=p=>p===null?null:JSON.parse(p,void 0),f=(u=i.getItem(l))!=null?u:null;return f instanceof Promise?f.then(c):c(f)},setItem:(l,u)=>i.setItem(l,JSON.stringify(u,void 0)),removeItem:l=>i.removeItem(l)}}const Kh=e=>t=>{try{const i=e(t);return i instanceof Promise?i:{then(a){return Kh(a)(i)},catch(a){return this}}}catch(i){return{then(a){return this},catch(a){return Kh(a)(i)}}}},P5=(e,t)=>(i,a,l)=>{let u={storage:H5(()=>localStorage),partialize:E=>E,version:0,merge:(E,R)=>({...R,...E}),...t},c=!1;const f=new Set,p=new Set;let d=u.storage;if(!d)return e((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),i(...E)},a,l);const m=()=>{const E=u.partialize({...a()});return d.setItem(u.name,{state:E,version:u.version})},y=l.setState;l.setState=(E,R)=>{y(E,R),m()};const v=e((...E)=>{i(...E),m()},a,l);l.getInitialState=()=>v;let b;const w=()=>{var E,R;if(!d)return;c=!1,f.forEach(M=>{var O;return M((O=a())!=null?O:v)});const C=((R=u.onRehydrateStorage)==null?void 0:R.call(u,(E=a())!=null?E:v))||void 0;return Kh(d.getItem.bind(d))(u.name).then(M=>{if(M)if(typeof M.version=="number"&&M.version!==u.version){if(u.migrate){const O=u.migrate(M.state,M.version);return O instanceof Promise?O.then(V=>[!0,V]):[!0,O]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var O;const[V,B]=M;if(b=u.merge(B,(O=a())!=null?O:v),i(b,!0),V)return m()}).then(()=>{C==null||C(b,void 0),b=a(),c=!0,p.forEach(M=>M(b))}).catch(M=>{C==null||C(void 0,M)})};return l.persist={setOptions:E=>{u={...u,...E},E.storage&&(d=E.storage)},clearStorage:()=>{d==null||d.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>w(),hasHydrated:()=>c,onHydrate:E=>(f.add(E),()=>{f.delete(E)}),onFinishHydration:E=>(p.add(E),()=>{p.delete(E)})},u.skipHydration||w(),b||v},q5=P5,Xe=V5()(q5(e=>({auth:{bcToken:"",rigoToken:"",userId:"",user:null,publicToken:""},planToRedirect:"learnpack-creator",setPlanToRedirect:t=>e({planToRedirect:t}),formState:{description:"",duration:0,targetAudience:"",hasContentIndex:!1,contentIndex:"",purpose:"",isCompleted:!1,currentStep:"description",variables:["description","duration","purpose","hasContentIndex","verifyHuman"]},setFormState:t=>e(i=>({formState:{...i.formState,...t}})),resetFormState:()=>e({formState:{currentStep:"description",description:"",duration:0,targetAudience:"",hasContentIndex:!1,contentIndex:"",purpose:"",isCompleted:!1,variables:["description","duration","purpose","hasContentIndex","verifyHuman"]}}),setUploadedFiles:t=>e(()=>({uploadedFiles:[...t]})),uploadedFiles:[],history:[],push:t=>{e(i=>({history:[...i.history,t]}))},undo:()=>{e(t=>({history:t.history.slice(0,-1)}))},cleanHistory:()=>{e(()=>({history:[]}))},consumables:{},setConsumables:t=>e(i=>{const a=Object.fromEntries(Object.entries(t).map(([l,u])=>[l,u??0]));return{consumables:{...i.consumables,...a}}}),setAuth:t=>e({auth:t}),mode:"student",setMode:t=>e({mode:t})}),{name:"syllabus-storage"})),F5=!1,wa="https://rigobot.herokuapp.com",pa="https://breathecode.herokuapp.com",Gv="https://raw.githubusercontent.com/learnpack/ide/20ed3f4c3ead9b33d5d6acb20154dcd93a0ec4af/public/rigo-float.gif";function Xv(e,t){return function(){return e.apply(t,arguments)}}const{toString:I5}=Object.prototype,{getPrototypeOf:Gd}=Object,Cu=(e=>t=>{const i=I5.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Cn=e=>(e=e.toLowerCase(),t=>Cu(t)===e),Au=e=>t=>typeof t===e,{isArray:Ea}=Array,nl=Au("undefined");function Y5(e){return e!==null&&!nl(e)&&e.constructor!==null&&!nl(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kv=Cn("ArrayBuffer");function G5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kv(e.buffer),t}const X5=Au("string"),nn=Au("function"),Zv=Au("number"),Ru=e=>e!==null&&typeof e=="object",K5=e=>e===!0||e===!1,Jo=e=>{if(Cu(e)!=="object")return!1;const t=Gd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Z5=Cn("Date"),$5=Cn("File"),Q5=Cn("Blob"),J5=Cn("FileList"),W5=e=>Ru(e)&&nn(e.pipe),eE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||nn(e.append)&&((t=Cu(e))==="formdata"||t==="object"&&nn(e.toString)&&e.toString()==="[object FormData]"))},tE=Cn("URLSearchParams"),[nE,iE,rE,aE]=["ReadableStream","Request","Response","Headers"].map(Cn),sE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gl(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let a,l;if(typeof e!="object"&&(e=[e]),Ea(e))for(a=0,l=e.length;a<l;a++)t.call(null,e[a],a,e);else{const u=i?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;let f;for(a=0;a<c;a++)f=u[a],t.call(null,e[f],f,e)}}function $v(e,t){t=t.toLowerCase();const i=Object.keys(e);let a=i.length,l;for(;a-- >0;)if(l=i[a],t===l.toLowerCase())return l;return null}const fr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qv=e=>!nl(e)&&e!==fr;function Zh(){const{caseless:e}=Qv(this)&&this||{},t={},i=(a,l)=>{const u=e&&$v(t,l)||l;Jo(t[u])&&Jo(a)?t[u]=Zh(t[u],a):Jo(a)?t[u]=Zh({},a):Ea(a)?t[u]=a.slice():t[u]=a};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&gl(arguments[a],i);return t}const lE=(e,t,i,{allOwnKeys:a}={})=>(gl(t,(l,u)=>{i&&nn(l)?e[u]=Xv(l,i):e[u]=l},{allOwnKeys:a}),e),oE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uE=(e,t,i,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},cE=(e,t,i,a)=>{let l,u,c;const f={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),u=l.length;u-- >0;)c=l[u],(!a||a(c,e,t))&&!f[c]&&(t[c]=e[c],f[c]=!0);e=i!==!1&&Gd(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},fE=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const a=e.indexOf(t,i);return a!==-1&&a===i},hE=e=>{if(!e)return null;if(Ea(e))return e;let t=e.length;if(!Zv(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},dE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gd(Uint8Array)),pE=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=a.next())&&!l.done;){const u=l.value;t.call(e,u[0],u[1])}},mE=(e,t)=>{let i;const a=[];for(;(i=e.exec(t))!==null;)a.push(i);return a},gE=Cn("HTMLFormElement"),yE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,a,l){return a.toUpperCase()+l}),s1=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),vE=Cn("RegExp"),Jv=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),a={};gl(i,(l,u)=>{let c;(c=t(l,u,e))!==!1&&(a[u]=c||l)}),Object.defineProperties(e,a)},bE=e=>{Jv(e,(t,i)=>{if(nn(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const a=e[i];if(nn(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},xE=(e,t)=>{const i={},a=l=>{l.forEach(u=>{i[u]=!0})};return Ea(e)?a(e):a(String(e).split(t)),i},SE=()=>{},wE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function EE(e){return!!(e&&nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const TE=e=>{const t=new Array(10),i=(a,l)=>{if(Ru(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[l]=a;const u=Ea(a)?[]:{};return gl(a,(c,f)=>{const p=i(c,l+1);!nl(p)&&(u[f]=p)}),t[l]=void 0,u}}return a};return i(e,0)},CE=Cn("AsyncFunction"),AE=e=>e&&(Ru(e)||nn(e))&&nn(e.then)&&nn(e.catch),Wv=((e,t)=>e?setImmediate:t?((i,a)=>(fr.addEventListener("message",({source:l,data:u})=>{l===fr&&u===i&&a.length&&a.shift()()},!1),l=>{a.push(l),fr.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",nn(fr.postMessage)),RE=typeof queueMicrotask<"u"?queueMicrotask.bind(fr):typeof process<"u"&&process.nextTick||Wv,F={isArray:Ea,isArrayBuffer:Kv,isBuffer:Y5,isFormData:eE,isArrayBufferView:G5,isString:X5,isNumber:Zv,isBoolean:K5,isObject:Ru,isPlainObject:Jo,isReadableStream:nE,isRequest:iE,isResponse:rE,isHeaders:aE,isUndefined:nl,isDate:Z5,isFile:$5,isBlob:Q5,isRegExp:vE,isFunction:nn,isStream:W5,isURLSearchParams:tE,isTypedArray:dE,isFileList:J5,forEach:gl,merge:Zh,extend:lE,trim:sE,stripBOM:oE,inherits:uE,toFlatObject:cE,kindOf:Cu,kindOfTest:Cn,endsWith:fE,toArray:hE,forEachEntry:pE,matchAll:mE,isHTMLForm:gE,hasOwnProperty:s1,hasOwnProp:s1,reduceDescriptors:Jv,freezeMethods:bE,toObjectSet:xE,toCamelCase:yE,noop:SE,toFiniteNumber:wE,findKey:$v,global:fr,isContextDefined:Qv,isSpecCompliantForm:EE,toJSONObject:TE,isAsyncFn:CE,isThenable:AE,setImmediate:Wv,asap:RE};function Se(e,t,i,a,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),a&&(this.request=a),l&&(this.response=l,this.status=l.status?l.status:null)}F.inherits(Se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.status}}});const eb=Se.prototype,tb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tb[e]={value:e}});Object.defineProperties(Se,tb);Object.defineProperty(eb,"isAxiosError",{value:!0});Se.from=(e,t,i,a,l,u)=>{const c=Object.create(eb);return F.toFlatObject(e,c,function(p){return p!==Error.prototype},f=>f!=="isAxiosError"),Se.call(c,e.message,t,i,a,l),c.cause=e,c.name=e.name,u&&Object.assign(c,u),c};const kE=null;function $h(e){return F.isPlainObject(e)||F.isArray(e)}function nb(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function l1(e,t,i){return e?e.concat(t).map(function(l,u){return l=nb(l),!i&&u?"["+l+"]":l}).join(i?".":""):t}function OE(e){return F.isArray(e)&&!e.some($h)}const _E=F.toFlatObject(F,{},null,function(t){return/^is[A-Z]/.test(t)});function ku(e,t,i){if(!F.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=F.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,R){return!F.isUndefined(R[E])});const a=i.metaTokens,l=i.visitor||m,u=i.dots,c=i.indexes,p=(i.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(l))throw new TypeError("visitor must be a function");function d(w){if(w===null)return"";if(F.isDate(w))return w.toISOString();if(!p&&F.isBlob(w))throw new Se("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(w)||F.isTypedArray(w)?p&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,E,R){let C=w;if(w&&!R&&typeof w=="object"){if(F.endsWith(E,"{}"))E=a?E:E.slice(0,-2),w=JSON.stringify(w);else if(F.isArray(w)&&OE(w)||(F.isFileList(w)||F.endsWith(E,"[]"))&&(C=F.toArray(w)))return E=nb(E),C.forEach(function(O,V){!(F.isUndefined(O)||O===null)&&t.append(c===!0?l1([E],V,u):c===null?E:E+"[]",d(O))}),!1}return $h(w)?!0:(t.append(l1(R,E,u),d(w)),!1)}const y=[],v=Object.assign(_E,{defaultVisitor:m,convertValue:d,isVisitable:$h});function b(w,E){if(!F.isUndefined(w)){if(y.indexOf(w)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(w),F.forEach(w,function(C,M){(!(F.isUndefined(C)||C===null)&&l.call(t,C,F.isString(M)?M.trim():M,E,v))===!0&&b(C,E?E.concat(M):[M])}),y.pop()}}if(!F.isObject(e))throw new TypeError("data must be an object");return b(e),t}function o1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Xd(e,t){this._pairs=[],e&&ku(e,this,t)}const ib=Xd.prototype;ib.append=function(t,i){this._pairs.push([t,i])};ib.toString=function(t){const i=t?function(a){return t.call(this,a,o1)}:o1;return this._pairs.map(function(l){return i(l[0])+"="+i(l[1])},"").join("&")};function DE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rb(e,t,i){if(!t)return e;const a=i&&i.encode||DE;F.isFunction(i)&&(i={serialize:i});const l=i&&i.serialize;let u;if(l?u=l(t,i):u=F.isURLSearchParams(t)?t.toString():new Xd(t,i).toString(a),u){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class u1{constructor(){this.handlers=[]}use(t,i,a){return this.handlers.push({fulfilled:t,rejected:i,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){F.forEach(this.handlers,function(a){a!==null&&t(a)})}}const ab={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ME=typeof URLSearchParams<"u"?URLSearchParams:Xd,NE=typeof FormData<"u"?FormData:null,LE=typeof Blob<"u"?Blob:null,jE={isBrowser:!0,classes:{URLSearchParams:ME,FormData:NE,Blob:LE},protocols:["http","https","file","blob","url","data"]},Kd=typeof window<"u"&&typeof document<"u",Qh=typeof navigator=="object"&&navigator||void 0,BE=Kd&&(!Qh||["ReactNative","NativeScript","NS"].indexOf(Qh.product)<0),zE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",UE=Kd&&window.location.href||"http://localhost",VE=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kd,hasStandardBrowserEnv:BE,hasStandardBrowserWebWorkerEnv:zE,navigator:Qh,origin:UE},Symbol.toStringTag,{value:"Module"})),Rt={...VE,...jE};function HE(e,t){return ku(e,new Rt.classes.URLSearchParams,Object.assign({visitor:function(i,a,l,u){return Rt.isNode&&F.isBuffer(i)?(this.append(a,i.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function PE(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qE(e){const t={},i=Object.keys(e);let a;const l=i.length;let u;for(a=0;a<l;a++)u=i[a],t[u]=e[u];return t}function sb(e){function t(i,a,l,u){let c=i[u++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),p=u>=i.length;return c=!c&&F.isArray(l)?l.length:c,p?(F.hasOwnProp(l,c)?l[c]=[l[c],a]:l[c]=a,!f):((!l[c]||!F.isObject(l[c]))&&(l[c]=[]),t(i,a,l[c],u)&&F.isArray(l[c])&&(l[c]=qE(l[c])),!f)}if(F.isFormData(e)&&F.isFunction(e.entries)){const i={};return F.forEachEntry(e,(a,l)=>{t(PE(a),l,i,0)}),i}return null}function FE(e,t,i){if(F.isString(e))try{return(t||JSON.parse)(e),F.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(i||JSON.stringify)(e)}const yl={transitional:ab,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const a=i.getContentType()||"",l=a.indexOf("application/json")>-1,u=F.isObject(t);if(u&&F.isHTMLForm(t)&&(t=new FormData(t)),F.isFormData(t))return l?JSON.stringify(sb(t)):t;if(F.isArrayBuffer(t)||F.isBuffer(t)||F.isStream(t)||F.isFile(t)||F.isBlob(t)||F.isReadableStream(t))return t;if(F.isArrayBufferView(t))return t.buffer;if(F.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(u){if(a.indexOf("application/x-www-form-urlencoded")>-1)return HE(t,this.formSerializer).toString();if((f=F.isFileList(t))||a.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return ku(f?{"files[]":t}:t,p&&new p,this.formSerializer)}}return u||l?(i.setContentType("application/json",!1),FE(t)):t}],transformResponse:[function(t){const i=this.transitional||yl.transitional,a=i&&i.forcedJSONParsing,l=this.responseType==="json";if(F.isResponse(t)||F.isReadableStream(t))return t;if(t&&F.isString(t)&&(a&&!this.responseType||l)){const c=!(i&&i.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(f){if(c)throw f.name==="SyntaxError"?Se.from(f,Se.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],e=>{yl.headers[e]={}});const IE=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),YE=e=>{const t={};let i,a,l;return e&&e.split(`
239
+ `).forEach(function(c){l=c.indexOf(":"),i=c.substring(0,l).trim().toLowerCase(),a=c.substring(l+1).trim(),!(!i||t[i]&&IE[i])&&(i==="set-cookie"?t[i]?t[i].push(a):t[i]=[a]:t[i]=t[i]?t[i]+", "+a:a)}),t},c1=Symbol("internals");function js(e){return e&&String(e).trim().toLowerCase()}function Wo(e){return e===!1||e==null?e:F.isArray(e)?e.map(Wo):String(e)}function GE(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=i.exec(e);)t[a[1]]=a[2];return t}const XE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fh(e,t,i,a,l){if(F.isFunction(a))return a.call(this,t,i);if(l&&(t=i),!!F.isString(t)){if(F.isString(a))return t.indexOf(a)!==-1;if(F.isRegExp(a))return a.test(t)}}function KE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,a)=>i.toUpperCase()+a)}function ZE(e,t){const i=F.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+i,{value:function(l,u,c){return this[a].call(this,t,l,u,c)},configurable:!0})})}let Pt=class{constructor(t){t&&this.set(t)}set(t,i,a){const l=this;function u(f,p,d){const m=js(p);if(!m)throw new Error("header name must be a non-empty string");const y=F.findKey(l,m);(!y||l[y]===void 0||d===!0||d===void 0&&l[y]!==!1)&&(l[y||p]=Wo(f))}const c=(f,p)=>F.forEach(f,(d,m)=>u(d,m,p));if(F.isPlainObject(t)||t instanceof this.constructor)c(t,i);else if(F.isString(t)&&(t=t.trim())&&!XE(t))c(YE(t),i);else if(F.isHeaders(t))for(const[f,p]of t.entries())u(p,f,a);else t!=null&&u(i,t,a);return this}get(t,i){if(t=js(t),t){const a=F.findKey(this,t);if(a){const l=this[a];if(!i)return l;if(i===!0)return GE(l);if(F.isFunction(i))return i.call(this,l,a);if(F.isRegExp(i))return i.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=js(t),t){const a=F.findKey(this,t);return!!(a&&this[a]!==void 0&&(!i||fh(this,this[a],a,i)))}return!1}delete(t,i){const a=this;let l=!1;function u(c){if(c=js(c),c){const f=F.findKey(a,c);f&&(!i||fh(a,a[f],f,i))&&(delete a[f],l=!0)}}return F.isArray(t)?t.forEach(u):u(t),l}clear(t){const i=Object.keys(this);let a=i.length,l=!1;for(;a--;){const u=i[a];(!t||fh(this,this[u],u,t,!0))&&(delete this[u],l=!0)}return l}normalize(t){const i=this,a={};return F.forEach(this,(l,u)=>{const c=F.findKey(a,u);if(c){i[c]=Wo(l),delete i[u];return}const f=t?KE(u):String(u).trim();f!==u&&delete i[u],i[f]=Wo(l),a[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return F.forEach(this,(a,l)=>{a!=null&&a!==!1&&(i[l]=t&&F.isArray(a)?a.join(", "):a)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(`
240
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const a=new this(t);return i.forEach(l=>a.set(l)),a}static accessor(t){const a=(this[c1]=this[c1]={accessors:{}}).accessors,l=this.prototype;function u(c){const f=js(c);a[f]||(ZE(l,c),a[f]=!0)}return F.isArray(t)?t.forEach(u):u(t),this}};Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(Pt.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[i]=a}}});F.freezeMethods(Pt);function hh(e,t){const i=this||yl,a=t||i,l=Pt.from(a.headers);let u=a.data;return F.forEach(e,function(f){u=f.call(i,u,l.normalize(),t?t.status:void 0)}),l.normalize(),u}function lb(e){return!!(e&&e.__CANCEL__)}function Ta(e,t,i){Se.call(this,e??"canceled",Se.ERR_CANCELED,t,i),this.name="CanceledError"}F.inherits(Ta,Se,{__CANCEL__:!0});function ob(e,t,i){const a=i.config.validateStatus;!i.status||!a||a(i.status)?e(i):t(new Se("Request failed with status code "+i.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function $E(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function QE(e,t){e=e||10;const i=new Array(e),a=new Array(e);let l=0,u=0,c;return t=t!==void 0?t:1e3,function(p){const d=Date.now(),m=a[u];c||(c=d),i[l]=p,a[l]=d;let y=u,v=0;for(;y!==l;)v+=i[y++],y=y%e;if(l=(l+1)%e,l===u&&(u=(u+1)%e),d-c<t)return;const b=m&&d-m;return b?Math.round(v*1e3/b):void 0}}function JE(e,t){let i=0,a=1e3/t,l,u;const c=(d,m=Date.now())=>{i=m,l=null,u&&(clearTimeout(u),u=null),e.apply(null,d)};return[(...d)=>{const m=Date.now(),y=m-i;y>=a?c(d,m):(l=d,u||(u=setTimeout(()=>{u=null,c(l)},a-y)))},()=>l&&c(l)]}const du=(e,t,i=3)=>{let a=0;const l=QE(50,250);return JE(u=>{const c=u.loaded,f=u.lengthComputable?u.total:void 0,p=c-a,d=l(p),m=c<=f;a=c;const y={loaded:c,total:f,progress:f?c/f:void 0,bytes:p,rate:d||void 0,estimated:d&&f&&m?(f-c)/d:void 0,event:u,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(y)},i)},f1=(e,t)=>{const i=e!=null;return[a=>t[0]({lengthComputable:i,total:e,loaded:a}),t[1]]},h1=e=>(...t)=>F.asap(()=>e(...t)),WE=Rt.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,Rt.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(Rt.origin),Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent)):()=>!0,eT=Rt.hasStandardBrowserEnv?{write(e,t,i,a,l,u){const c=[e+"="+encodeURIComponent(t)];F.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),F.isString(a)&&c.push("path="+a),F.isString(l)&&c.push("domain="+l),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ub(e,t,i){let a=!tT(t);return e&&(a||i==!1)?nT(e,t):t}const d1=e=>e instanceof Pt?{...e}:e;function gr(e,t){t=t||{};const i={};function a(d,m,y,v){return F.isPlainObject(d)&&F.isPlainObject(m)?F.merge.call({caseless:v},d,m):F.isPlainObject(m)?F.merge({},m):F.isArray(m)?m.slice():m}function l(d,m,y,v){if(F.isUndefined(m)){if(!F.isUndefined(d))return a(void 0,d,y,v)}else return a(d,m,y,v)}function u(d,m){if(!F.isUndefined(m))return a(void 0,m)}function c(d,m){if(F.isUndefined(m)){if(!F.isUndefined(d))return a(void 0,d)}else return a(void 0,m)}function f(d,m,y){if(y in t)return a(d,m);if(y in e)return a(void 0,d)}const p={url:u,method:u,data:u,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:f,headers:(d,m,y)=>l(d1(d),d1(m),y,!0)};return F.forEach(Object.keys(Object.assign({},e,t)),function(m){const y=p[m]||l,v=y(e[m],t[m],m);F.isUndefined(v)&&y!==f||(i[m]=v)}),i}const cb=e=>{const t=gr({},e);let{data:i,withXSRFToken:a,xsrfHeaderName:l,xsrfCookieName:u,headers:c,auth:f}=t;t.headers=c=Pt.from(c),t.url=rb(ub(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let p;if(F.isFormData(i)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((p=c.getContentType())!==!1){const[d,...m]=p?p.split(";").map(y=>y.trim()).filter(Boolean):[];c.setContentType([d||"multipart/form-data",...m].join("; "))}}if(Rt.hasStandardBrowserEnv&&(a&&F.isFunction(a)&&(a=a(t)),a||a!==!1&&WE(t.url))){const d=l&&u&&eT.read(u);d&&c.set(l,d)}return t},iT=typeof XMLHttpRequest<"u",rT=iT&&function(e){return new Promise(function(i,a){const l=cb(e);let u=l.data;const c=Pt.from(l.headers).normalize();let{responseType:f,onUploadProgress:p,onDownloadProgress:d}=l,m,y,v,b,w;function E(){b&&b(),w&&w(),l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let R=new XMLHttpRequest;R.open(l.method.toUpperCase(),l.url,!0),R.timeout=l.timeout;function C(){if(!R)return;const O=Pt.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),B={data:!f||f==="text"||f==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:O,config:e,request:R};ob(function(Z){i(Z),E()},function(Z){a(Z),E()},B),R=null}"onloadend"in R?R.onloadend=C:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(C)},R.onabort=function(){R&&(a(new Se("Request aborted",Se.ECONNABORTED,e,R)),R=null)},R.onerror=function(){a(new Se("Network Error",Se.ERR_NETWORK,e,R)),R=null},R.ontimeout=function(){let V=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const B=l.transitional||ab;l.timeoutErrorMessage&&(V=l.timeoutErrorMessage),a(new Se(V,B.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,e,R)),R=null},u===void 0&&c.setContentType(null),"setRequestHeader"in R&&F.forEach(c.toJSON(),function(V,B){R.setRequestHeader(B,V)}),F.isUndefined(l.withCredentials)||(R.withCredentials=!!l.withCredentials),f&&f!=="json"&&(R.responseType=l.responseType),d&&([v,w]=du(d,!0),R.addEventListener("progress",v)),p&&R.upload&&([y,b]=du(p),R.upload.addEventListener("progress",y),R.upload.addEventListener("loadend",b)),(l.cancelToken||l.signal)&&(m=O=>{R&&(a(!O||O.type?new Ta(null,e,R):O),R.abort(),R=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const M=$E(l.url);if(M&&Rt.protocols.indexOf(M)===-1){a(new Se("Unsupported protocol "+M+":",Se.ERR_BAD_REQUEST,e));return}R.send(u||null)})},aT=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let a=new AbortController,l;const u=function(d){if(!l){l=!0,f();const m=d instanceof Error?d:this.reason;a.abort(m instanceof Se?m:new Ta(m instanceof Error?m.message:m))}};let c=t&&setTimeout(()=>{c=null,u(new Se(`timeout ${t} of ms exceeded`,Se.ETIMEDOUT))},t);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(u):d.removeEventListener("abort",u)}),e=null)};e.forEach(d=>d.addEventListener("abort",u));const{signal:p}=a;return p.unsubscribe=()=>F.asap(f),p}},sT=function*(e,t){let i=e.byteLength;if(i<t){yield e;return}let a=0,l;for(;a<i;)l=a+t,yield e.slice(a,l),a=l},lT=async function*(e,t){for await(const i of oT(e))yield*sT(i,t)},oT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:i,value:a}=await t.read();if(i)break;yield a}}finally{await t.cancel()}},p1=(e,t,i,a)=>{const l=lT(e,t);let u=0,c,f=p=>{c||(c=!0,a&&a(p))};return new ReadableStream({async pull(p){try{const{done:d,value:m}=await l.next();if(d){f(),p.close();return}let y=m.byteLength;if(i){let v=u+=y;i(v)}p.enqueue(new Uint8Array(m))}catch(d){throw f(d),d}},cancel(p){return f(p),l.return()}},{highWaterMark:2})},Ou=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fb=Ou&&typeof ReadableStream=="function",uT=Ou&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),hb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cT=fb&&hb(()=>{let e=!1;const t=new Request(Rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),m1=64*1024,Jh=fb&&hb(()=>F.isReadableStream(new Response("").body)),pu={stream:Jh&&(e=>e.body)};Ou&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pu[t]&&(pu[t]=F.isFunction(e[t])?i=>i[t]():(i,a)=>{throw new Se(`Response type '${t}' is not supported`,Se.ERR_NOT_SUPPORT,a)})})})(new Response);const fT=async e=>{if(e==null)return 0;if(F.isBlob(e))return e.size;if(F.isSpecCompliantForm(e))return(await new Request(Rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(F.isArrayBufferView(e)||F.isArrayBuffer(e))return e.byteLength;if(F.isURLSearchParams(e)&&(e=e+""),F.isString(e))return(await uT(e)).byteLength},hT=async(e,t)=>{const i=F.toFiniteNumber(e.getContentLength());return i??fT(t)},dT=Ou&&(async e=>{let{url:t,method:i,data:a,signal:l,cancelToken:u,timeout:c,onDownloadProgress:f,onUploadProgress:p,responseType:d,headers:m,withCredentials:y="same-origin",fetchOptions:v}=cb(e);d=d?(d+"").toLowerCase():"text";let b=aT([l,u&&u.toAbortSignal()],c),w;const E=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let R;try{if(p&&cT&&i!=="get"&&i!=="head"&&(R=await hT(m,a))!==0){let B=new Request(t,{method:"POST",body:a,duplex:"half"}),L;if(F.isFormData(a)&&(L=B.headers.get("content-type"))&&m.setContentType(L),B.body){const[Z,Q]=f1(R,du(h1(p)));a=p1(B.body,m1,Z,Q)}}F.isString(y)||(y=y?"include":"omit");const C="credentials"in Request.prototype;w=new Request(t,{...v,signal:b,method:i.toUpperCase(),headers:m.normalize().toJSON(),body:a,duplex:"half",credentials:C?y:void 0});let M=await fetch(w);const O=Jh&&(d==="stream"||d==="response");if(Jh&&(f||O&&E)){const B={};["status","statusText","headers"].forEach(ee=>{B[ee]=M[ee]});const L=F.toFiniteNumber(M.headers.get("content-length")),[Z,Q]=f&&f1(L,du(h1(f),!0))||[];M=new Response(p1(M.body,m1,Z,()=>{Q&&Q(),E&&E()}),B)}d=d||"text";let V=await pu[F.findKey(pu,d)||"text"](M,e);return!O&&E&&E(),await new Promise((B,L)=>{ob(B,L,{data:V,headers:Pt.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:w})})}catch(C){throw E&&E(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Se("Network Error",Se.ERR_NETWORK,e,w),{cause:C.cause||C}):Se.from(C,C&&C.code,e,w)}}),Wh={http:kE,xhr:rT,fetch:dT};F.forEach(Wh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const g1=e=>`- ${e}`,pT=e=>F.isFunction(e)||e===null||e===!1,db={getAdapter:e=>{e=F.isArray(e)?e:[e];const{length:t}=e;let i,a;const l={};for(let u=0;u<t;u++){i=e[u];let c;if(a=i,!pT(i)&&(a=Wh[(c=String(i)).toLowerCase()],a===void 0))throw new Se(`Unknown adapter '${c}'`);if(a)break;l[c||"#"+u]=a}if(!a){const u=Object.entries(l).map(([f,p])=>`adapter ${f} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=t?u.length>1?`since :
241
+ `+u.map(g1).join(`
242
+ `):" "+g1(u[0]):"as no adapter specified";throw new Se("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return a},adapters:Wh};function dh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ta(null,e)}function y1(e){return dh(e),e.headers=Pt.from(e.headers),e.data=hh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),db.getAdapter(e.adapter||yl.adapter)(e).then(function(a){return dh(e),a.data=hh.call(e,e.transformResponse,a),a.headers=Pt.from(a.headers),a},function(a){return lb(a)||(dh(e),a&&a.response&&(a.response.data=hh.call(e,e.transformResponse,a.response),a.response.headers=Pt.from(a.response.headers))),Promise.reject(a)})}const pb="1.8.4",_u={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_u[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const v1={};_u.transitional=function(t,i,a){function l(u,c){return"[Axios v"+pb+"] Transitional option '"+u+"'"+c+(a?". "+a:"")}return(u,c,f)=>{if(t===!1)throw new Se(l(c," has been removed"+(i?" in "+i:"")),Se.ERR_DEPRECATED);return i&&!v1[c]&&(v1[c]=!0,console.warn(l(c," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(u,c,f):!0}};_u.spelling=function(t){return(i,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function mT(e,t,i){if(typeof e!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let l=a.length;for(;l-- >0;){const u=a[l],c=t[u];if(c){const f=e[u],p=f===void 0||c(f,u,e);if(p!==!0)throw new Se("option "+u+" must be "+p,Se.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Se("Unknown option "+u,Se.ERR_BAD_OPTION)}}const eu={assertOptions:mT,validators:_u},Nn=eu.validators;let pr=class{constructor(t){this.defaults=t,this.interceptors={request:new u1,response:new u1}}async request(t,i){try{return await this._request(t,i)}catch(a){if(a instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const u=l.stack?l.stack.replace(/^.+\n/,""):"";try{a.stack?u&&!String(a.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(a.stack+=`
243
+ `+u):a.stack=u}catch{}}throw a}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=gr(this.defaults,i);const{transitional:a,paramsSerializer:l,headers:u}=i;a!==void 0&&eu.assertOptions(a,{silentJSONParsing:Nn.transitional(Nn.boolean),forcedJSONParsing:Nn.transitional(Nn.boolean),clarifyTimeoutError:Nn.transitional(Nn.boolean)},!1),l!=null&&(F.isFunction(l)?i.paramsSerializer={serialize:l}:eu.assertOptions(l,{encode:Nn.function,serialize:Nn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),eu.assertOptions(i,{baseUrl:Nn.spelling("baseURL"),withXsrfToken:Nn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let c=u&&F.merge(u.common,u[i.method]);u&&F.forEach(["delete","get","head","post","put","patch","common"],w=>{delete u[w]}),i.headers=Pt.concat(c,u);const f=[];let p=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(i)===!1||(p=p&&E.synchronous,f.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let m,y=0,v;if(!p){const w=[y1.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,d),v=w.length,m=Promise.resolve(i);y<v;)m=m.then(w[y++],w[y++]);return m}v=f.length;let b=i;for(y=0;y<v;){const w=f[y++],E=f[y++];try{b=w(b)}catch(R){E.call(this,R);break}}try{m=y1.call(this,b)}catch(w){return Promise.reject(w)}for(y=0,v=d.length;y<v;)m=m.then(d[y++],d[y++]);return m}getUri(t){t=gr(this.defaults,t);const i=ub(t.baseURL,t.url,t.allowAbsoluteUrls);return rb(i,t.params,t.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(t){pr.prototype[t]=function(i,a){return this.request(gr(a||{},{method:t,url:i,data:(a||{}).data}))}});F.forEach(["post","put","patch"],function(t){function i(a){return function(u,c,f){return this.request(gr(f||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:u,data:c}))}}pr.prototype[t]=i(),pr.prototype[t+"Form"]=i(!0)});let gT=class mb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(u){i=u});const a=this;this.promise.then(l=>{if(!a._listeners)return;let u=a._listeners.length;for(;u-- >0;)a._listeners[u](l);a._listeners=null}),this.promise.then=l=>{let u;const c=new Promise(f=>{a.subscribe(f),u=f}).then(l);return c.cancel=function(){a.unsubscribe(u)},c},t(function(u,c,f){a.reason||(a.reason=new Ta(u,c,f),i(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const t=new AbortController,i=a=>{t.abort(a)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let t;return{token:new mb(function(l){t=l}),cancel:t}}};function yT(e){return function(i){return e.apply(null,i)}}function vT(e){return F.isObject(e)&&e.isAxiosError===!0}const ed={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ed).forEach(([e,t])=>{ed[t]=e});function gb(e){const t=new pr(e),i=Xv(pr.prototype.request,t);return F.extend(i,pr.prototype,t,{allOwnKeys:!0}),F.extend(i,t,null,{allOwnKeys:!0}),i.create=function(l){return gb(gr(e,l))},i}const Pe=gb(yl);Pe.Axios=pr;Pe.CanceledError=Ta;Pe.CancelToken=gT;Pe.isCancel=lb;Pe.VERSION=pb;Pe.toFormData=ku;Pe.AxiosError=Se;Pe.Cancel=Pe.CanceledError;Pe.all=function(t){return Promise.all(t)};Pe.spread=yT;Pe.isAxiosError=vT;Pe.mergeConfig=gr;Pe.AxiosHeaders=Pt;Pe.formToJSON=e=>sb(F.isHTMLForm(e)?new FormData(e):e);Pe.getAdapter=db.getAdapter;Pe.HttpStatusCode=ed;Pe.default=Pe;const{Axios:WD,AxiosError:eM,CanceledError:tM,isCancel:nM,CancelToken:iM,VERSION:rM,all:aM,Cancel:sM,isAxiosError:lM,spread:oM,toFormData:uM,AxiosHeaders:cM,HttpStatusCode:fM,formToJSON:hM,getAdapter:dM,mergeConfig:pM}=Pe,yb=async(e,t,i,a=!0)=>{var l;try{return(await Pe.post(`${wa}/v1/prompting${a?"/public":""}/completion/${F5?"39":"390"}/`,{inputs:e,include_purpose_objective:!0,execute_async:!1,purpose_slug:i},{headers:{"Content-Type":"application/json",Authorization:`Token ${t}`}})).data}catch(u){const c=u;return console.log("error",c),((l=c.response)==null?void 0:l.status)===403?ot.error("You've reached the limit. Please log in to continue."):ot.error("Something went wrong while generating the course."),null}},bT=async e=>{try{const t={access_token:e},i=await Pe.post(`${wa}/v1/auth/verify/humanity`,t,{headers:{"Content-Type":"application/json"}});return{human:i.status===200,message:i.data.message,token:i.data.public_access_token}}catch(t){return console.error(t),{human:!1,message:t,token:null}}},b1=e=>e.toLowerCase().replace(/ /g,"-").replace(/[^\w.-]+/g,""),vb=()=>Math.random().toString(36).substring(2,15);function bb(e,t){const i=/^([\d.]+)\s*-\s*(.*?)\s*\[(\w+):\s*(.+)\]$/,a=e.match(i);if(!a)return null;const[,l,u,c,f]=a,p=t.findIndex(d=>d.id===l&&d.title===u);return p!==-1?{id:l,uid:t[p].uid,title:u.trim(),type:c.trim().toUpperCase(),description:f.trim(),duration:t[p].duration}:{id:l,title:u.trim(),type:c.trim().toUpperCase(),description:f.trim(),duration:2,uid:vb()}}const td=e=>{const t=new URLSearchParams(window.location.search),i={};return e.forEach(a=>{const l=t.get(a);l!==null&&(i[a]=l)}),i};async function xT(e){const t=`${pa}/v1/payments/me/service/consumable?virtual=true`,i={Authorization:`Token ${e}`};try{return(await Pe.get(t,{headers:i})).data}catch(a){throw console.error("Error fetching consumables:",a),a}}const x1=e=>{const t={};return e.forEach(i=>{const a=i.items.length?Math.max(...i.items.map(l=>l.how_many)):0;t[i.slug]=a}),t},Zd=async e=>{const t=`${wa}/v1/auth/me/token?breathecode_token=${e}`,i=await fetch(t);if(!i.ok)throw new Error("Unable to obtain Rigobot token");return await i.json()},$d=async e=>{const t={method:"GET",headers:{"Content-Type":"application/json",Authorization:`Token ${e}`}},i=await fetch(`${pa}/v1/auth/user/me`,t);if(!i.ok)return console.log("ERROR",i),null;const a=await i.json();return"roles"in a&&delete a.roles,"permissions"in a&&delete a.permissions,"settings"in a&&delete a.settings,a},ST=async e=>{const t=`${pa}/v1/auth/login/`,i=await fetch(t,{body:JSON.stringify(e),method:"post",headers:{"Content-Type":"application/json"}});if(!i.ok)throw Error("Unable to login with provided credentials");const a=await i.json(),l=await Zd(a.token),u=await $d(a.token);return{...a,rigobot:{...l},user:u}},xb=async e=>{const t=await Zd(e),i=await $d(e);return{rigobot:{...t},...i}},wT=async(e,t)=>{const i=await $d(e);if(console.log("USER",i),!i)return!1;const a=await Zd(e);return a?(t(a.key),!0):!1},ET=async(e,t,i)=>(await Pe.post("/actions/create-course",{syllabus:e},{headers:{"x-breathecode-token":i,"x-rigo-token":t}})).data,TT=async e=>{try{const t=`${wa}/v1/learnpack/check-slug-availability?slug=${encodeURIComponent(e)}`;return(await Pe.get(t)).data.available}catch(t){throw console.error("Error checking slug availability:",t),t}},CT=async(e,t)=>{try{const i=await Pe.post(`${wa}/v1/prompting/completion/1050/`,{inputs:{current_title:e},include_purpose_objective:!1,execute_async:!1},{headers:{"Content-Type":"application/json",Authorization:"Token "+t}});return console.log("RESPONSE",i.data),i.data.parsed.newTitle}catch(i){return console.error("Error rewriting title:",i),`${e} ${Math.random().toString(36).substring(2,6)}`}};async function AT(e,t,i){var u,c,f;const a=new FormData;a.append("1_first_name",e),a.append("1_last_name",t),a.append("1_email",i);const l=["$K1",{user_agent:navigator.userAgent,landing_url:"www.learnpack.co/my-tutorials",conversion_url:"app.learnpack.co/login",translations:"$undefined",utm_placement:"$undefined",utm_referrer:"$undefined",utm_medium:"$undefined",utm_source:"$undefined",utm_term:"$undefined",utm_content:"$undefined",utm_campaign:"$undefined",internal_cta_placement:"$undefined",internal_cta_content:"$undefined",internal_cta_campaign:"$undefined"}];a.append("0",JSON.stringify(l));try{return(await Pe.post("https://www.learnpack.co/register",a,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(p){return console.error(p,"ERROR REGISTERING IN LEARNPACK"),{success:!1,message:((c=(u=p==null?void 0:p.response)==null?void 0:u.data)==null?void 0:c.detail)||"Registration error",data:((f=p==null?void 0:p.response)==null?void 0:f.data)||null}}}const tu=({description:e,icon:t,className:i="",children:a,onClick:l,onDragOver:u,onDrop:c,onDragEnter:f,onDragLeave:p})=>A.jsxs("div",{className:`flex flex-col items-center justify-center gap-2 bg-white card p-4 rounded-lg shadow-md min-w-[250px] w-full h-[150px] cursor-pointer transition border border-gray-200 hover:shadow-lg ${i}`,onClick:l,onDragOver:u,onDrop:c,onDragEnter:f,onDragLeave:p,children:[A.jsx("div",{className:"text-blue-500 flex justify-center items-center",children:t}),A.jsx("span",{className:"text-sm text-center text-gray-700",children:e}),a]}),RT=e=>btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),kT=({onResult:e})=>{const[t,i]=_.useState(""),[a,l]=_.useState(!1),[u,c]=_.useState(null),f=async()=>{const p=t.trim();if(!p)return c("Please enter a URL.");c(null),l(!0);try{const d=RT(p),m=await fetch(`/actions/fetch/${d}`);if(!m.ok)throw new Error(`HTTP ${m.status}`);const y=await m.json();e(y),i("")}catch(d){console.error(d),c(d.message||"Failed to fetch link.")}finally{l(!1)}};return A.jsxs("div",{className:"max-w-md mx-auto p-6 bg-white rounded-xl shadow-lg",children:[A.jsxs("div",{className:"flex space-x-2",children:[A.jsx("input",{type:"url",value:t,onChange:p=>i(p.target.value),onKeyDown:p=>p.key==="Enter"&&f(),disabled:a,placeholder:"Paste your link here…",className:"flex-1 px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-200 transition disabled:bg-gray-100"}),A.jsx("button",{onClick:f,disabled:a,className:`w-12 h-12 flex items-center justify-center rounded-lg text-white transition ${a?"bg-gray-400 cursor-not-allowed":"bg-learnpack hover:bg-opacity-90"}`,children:a?A.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[A.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),A.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4l3.5-3.5L12 0v4a8 8 0 100 16v-4l-3.5 3.5L4 12z"})]}):A.jsx("span",{className:"text-2xl leading-none",children:"+"})})]}),u&&A.jsx("p",{className:"mt-3 text-sm text-red-600 bg-red-50 p-2 rounded",children:u})]})},Hn=Object.create(null);Hn.open="0";Hn.close="1";Hn.ping="2";Hn.pong="3";Hn.message="4";Hn.upgrade="5";Hn.noop="6";const nu=Object.create(null);Object.keys(Hn).forEach(e=>{nu[Hn[e]]=e});const nd={type:"error",data:"parser error"},Sb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",wb=typeof ArrayBuffer=="function",Eb=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Qd=({type:e,data:t},i,a)=>Sb&&t instanceof Blob?i?a(t):S1(t,a):wb&&(t instanceof ArrayBuffer||Eb(t))?i?a(t):S1(new Blob([t]),a):a(Hn[e]+(t||"")),S1=(e,t)=>{const i=new FileReader;return i.onload=function(){const a=i.result.split(",")[1];t("b"+(a||""))},i.readAsDataURL(e)};function w1(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ph;function OT(e,t){if(Sb&&e.data instanceof Blob)return e.data.arrayBuffer().then(w1).then(t);if(wb&&(e.data instanceof ArrayBuffer||Eb(e.data)))return t(w1(e.data));Qd(e,!1,i=>{ph||(ph=new TextEncoder),t(ph.encode(i))})}const E1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<E1.length;e++)Fs[E1.charCodeAt(e)]=e;const _T=e=>{let t=e.length*.75,i=e.length,a,l=0,u,c,f,p;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const d=new ArrayBuffer(t),m=new Uint8Array(d);for(a=0;a<i;a+=4)u=Fs[e.charCodeAt(a)],c=Fs[e.charCodeAt(a+1)],f=Fs[e.charCodeAt(a+2)],p=Fs[e.charCodeAt(a+3)],m[l++]=u<<2|c>>4,m[l++]=(c&15)<<4|f>>2,m[l++]=(f&3)<<6|p&63;return d},DT=typeof ArrayBuffer=="function",Jd=(e,t)=>{if(typeof e!="string")return{type:"message",data:Tb(e,t)};const i=e.charAt(0);return i==="b"?{type:"message",data:MT(e.substring(1),t)}:nu[i]?e.length>1?{type:nu[i],data:e.substring(1)}:{type:nu[i]}:nd},MT=(e,t)=>{if(DT){const i=_T(e);return Tb(i,t)}else return{base64:!0,data:e}},Tb=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Cb="",NT=(e,t)=>{const i=e.length,a=new Array(i);let l=0;e.forEach((u,c)=>{Qd(u,!1,f=>{a[c]=f,++l===i&&t(a.join(Cb))})})},LT=(e,t)=>{const i=e.split(Cb),a=[];for(let l=0;l<i.length;l++){const u=Jd(i[l],t);if(a.push(u),u.type==="error")break}return a};function jT(){return new TransformStream({transform(e,t){OT(e,i=>{const a=i.length;let l;if(a<126)l=new Uint8Array(1),new DataView(l.buffer).setUint8(0,a);else if(a<65536){l=new Uint8Array(3);const u=new DataView(l.buffer);u.setUint8(0,126),u.setUint16(1,a)}else{l=new Uint8Array(9);const u=new DataView(l.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(a))}e.data&&typeof e.data!="string"&&(l[0]|=128),t.enqueue(l),t.enqueue(i)})}})}let mh;function Ho(e){return e.reduce((t,i)=>t+i.length,0)}function Po(e,t){if(e[0].length===t)return e.shift();const i=new Uint8Array(t);let a=0;for(let l=0;l<t;l++)i[l]=e[0][a++],a===e[0].length&&(e.shift(),a=0);return e.length&&a<e[0].length&&(e[0]=e[0].slice(a)),i}function BT(e,t){mh||(mh=new TextDecoder);const i=[];let a=0,l=-1,u=!1;return new TransformStream({transform(c,f){for(i.push(c);;){if(a===0){if(Ho(i)<1)break;const p=Po(i,1);u=(p[0]&128)===128,l=p[0]&127,l<126?a=3:l===126?a=1:a=2}else if(a===1){if(Ho(i)<2)break;const p=Po(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),a=3}else if(a===2){if(Ho(i)<8)break;const p=Po(i,8),d=new DataView(p.buffer,p.byteOffset,p.length),m=d.getUint32(0);if(m>Math.pow(2,21)-1){f.enqueue(nd);break}l=m*Math.pow(2,32)+d.getUint32(4),a=3}else{if(Ho(i)<l)break;const p=Po(i,l);f.enqueue(Jd(u?p:mh.decode(p),t)),a=0}if(l===0||l>e){f.enqueue(nd);break}}}})}const Ab=4;function ut(e){if(e)return zT(e)}function zT(e){for(var t in ut.prototype)e[t]=ut.prototype[t];return e}ut.prototype.on=ut.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ut.prototype.once=function(e,t){function i(){this.off(e,i),t.apply(this,arguments)}return i.fn=t,this.on(e,i),this};ut.prototype.off=ut.prototype.removeListener=ut.prototype.removeAllListeners=ut.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+e];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,l=0;l<i.length;l++)if(a=i[l],a===t||a.fn===t){i.splice(l,1);break}return i.length===0&&delete this._callbacks["$"+e],this};ut.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),i=this._callbacks["$"+e],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(i){i=i.slice(0);for(var a=0,l=i.length;a<l;++a)i[a].apply(this,t)}return this};ut.prototype.emitReserved=ut.prototype.emit;ut.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ut.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Du=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,i)=>i(t,0),gn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),UT="arraybuffer";function Rb(e,...t){return t.reduce((i,a)=>(e.hasOwnProperty(a)&&(i[a]=e[a]),i),{})}const VT=gn.setTimeout,HT=gn.clearTimeout;function Mu(e,t){t.useNativeTimers?(e.setTimeoutFn=VT.bind(gn),e.clearTimeoutFn=HT.bind(gn)):(e.setTimeoutFn=gn.setTimeout.bind(gn),e.clearTimeoutFn=gn.clearTimeout.bind(gn))}const PT=1.33;function qT(e){return typeof e=="string"?FT(e):Math.ceil((e.byteLength||e.size)*PT)}function FT(e){let t=0,i=0;for(let a=0,l=e.length;a<l;a++)t=e.charCodeAt(a),t<128?i+=1:t<2048?i+=2:t<55296||t>=57344?i+=3:(a++,i+=4);return i}function kb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function IT(e){let t="";for(let i in e)e.hasOwnProperty(i)&&(t.length&&(t+="&"),t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return t}function YT(e){let t={},i=e.split("&");for(let a=0,l=i.length;a<l;a++){let u=i[a].split("=");t[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return t}class GT extends Error{constructor(t,i,a){super(t),this.description=i,this.context=a,this.type="TransportError"}}class Wd extends ut{constructor(t){super(),this.writable=!1,Mu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,i,a){return super.emitReserved("error",new GT(t,i,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const i=Jd(t,this.socket.binaryType);this.onPacket(i)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,i={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const i=IT(t);return i.length?"?"+i:""}}class XT extends Wd{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const i=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||i()})),this.writable||(a++,this.once("drain",function(){--a||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const i=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};LT(t,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,NT(t,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=kb()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(t,i)}}let Ob=!1;try{Ob=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const KT=Ob;function ZT(){}class $T extends XT{constructor(t){if(super(t),typeof location<"u"){const i=location.protocol==="https:";let a=location.port;a||(a=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||a!==t.port}}doWrite(t,i){const a=this.request({method:"POST",data:t});a.on("success",i),a.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(i,a)=>{this.onError("xhr poll error",i,a)}),this.pollXhr=t}}let ma=class iu extends ut{constructor(t,i,a){super(),this.createRequest=t,Mu(this,a),this._opts=a,this._method=a.method||"GET",this._uri=i,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var t;const i=Rb(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(i);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let l in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(l)&&a.setRequestHeader(l,this._opts.extraHeaders[l])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var l;a.readyState===3&&((l=this._opts.cookieJar)===null||l===void 0||l.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(l){this.setTimeoutFn(()=>{this._onError(l)},0);return}typeof document<"u"&&(this._index=iu.requestsCount++,iu.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ZT,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete iu.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};ma.requestsCount=0;ma.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",T1);else if(typeof addEventListener=="function"){const e="onpagehide"in gn?"pagehide":"unload";addEventListener(e,T1,!1)}}function T1(){for(let e in ma.requests)ma.requests.hasOwnProperty(e)&&ma.requests[e].abort()}const QT=function(){const e=_b({xdomain:!1});return e&&e.responseType!==null}();class JT extends $T{constructor(t){super(t);const i=t&&t.forceBase64;this.supportsBinary=QT&&!i}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ma(_b,this.uri(),t)}}function _b(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||KT))return new XMLHttpRequest}catch{}if(!t)try{return new gn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Db=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WT extends Wd{get name(){return"websocket"}doOpen(){const t=this.uri(),i=this.opts.protocols,a=Db?{}:Rb(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,i,a)}catch(l){return this.emitReserved("error",l)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let i=0;i<t.length;i++){const a=t[i],l=i===t.length-1;Qd(a,this.supportsBinary,u=>{try{this.doWrite(a,u)}catch{}l&&Du(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=kb()),this.supportsBinary||(i.b64=1),this.createUri(t,i)}}const gh=gn.WebSocket||gn.MozWebSocket;class eC extends WT{createSocket(t,i,a){return Db?new gh(t,i,a):i?new gh(t,i):new gh(t)}doWrite(t,i){this.ws.send(i)}}class tC extends Wd{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const i=BT(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=t.readable.pipeThrough(i).getReader(),l=jT();l.readable.pipeTo(t.writable),this._writer=l.writable.getWriter();const u=()=>{a.read().then(({done:f,value:p})=>{f||(this.onPacket(p),u())}).catch(f=>{})};u();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let i=0;i<t.length;i++){const a=t[i],l=i===t.length-1;this._writer.write(a).then(()=>{l&&Du(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const nC={websocket:eC,webtransport:tC,polling:JT},iC=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rC=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function id(e){if(e.length>8e3)throw"URI too long";const t=e,i=e.indexOf("["),a=e.indexOf("]");i!=-1&&a!=-1&&(e=e.substring(0,i)+e.substring(i,a).replace(/:/g,";")+e.substring(a,e.length));let l=iC.exec(e||""),u={},c=14;for(;c--;)u[rC[c]]=l[c]||"";return i!=-1&&a!=-1&&(u.source=t,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=aC(u,u.path),u.queryKey=sC(u,u.query),u}function aC(e,t){const i=/\/{2,9}/g,a=t.replace(i,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&a.splice(0,1),t.slice(-1)=="/"&&a.splice(a.length-1,1),a}function sC(e,t){const i={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,l,u){l&&(i[l]=u)}),i}const rd=typeof addEventListener=="function"&&typeof removeEventListener=="function",ru=[];rd&&addEventListener("offline",()=>{ru.forEach(e=>e())},!1);class Vi extends ut{constructor(t,i){if(super(),this.binaryType=UT,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(i=t,t=null),t){const a=id(t);i.hostname=a.host,i.secure=a.protocol==="https"||a.protocol==="wss",i.port=a.port,a.query&&(i.query=a.query)}else i.host&&(i.hostname=id(i.host).host);Mu(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(a=>{const l=a.prototype.name;this.transports.push(l),this._transportsByName[l]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=YT(this.opts.query)),rd&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ru.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const i=Object.assign({},this.opts.query);i.EIO=Ab,i.transport=t,this.id&&(i.sid=this.id);const a=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Vi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(t);i.open(),this.setTransport(i)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Vi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=t.data,this._onError(i);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let a=0;a<this.writeBuffer.length;a++){const l=this.writeBuffer[a].data;if(l&&(i+=qT(l)),a>0&&i>this._maxPayload)return this.writeBuffer.slice(0,a);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Du(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,i,a){return this._sendPacket("message",t,i,a),this}send(t,i,a){return this._sendPacket("message",t,i,a),this}_sendPacket(t,i,a,l){if(typeof i=="function"&&(l=i,i=void 0),typeof a=="function"&&(l=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const u={type:t,data:i,options:a};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),t()},a=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():t()}):this.upgrading?a():t()),this}_onError(t){if(Vi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),rd&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=ru.indexOf(this._offlineEventListener);a!==-1&&ru.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,i),this.writeBuffer=[],this._prevBufferLen=0}}}Vi.protocol=Ab;class lC extends Vi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let i=this.createTransport(t),a=!1;Vi.priorWebsocketSuccess=!1;const l=()=>{a||(i.send([{type:"ping",data:"probe"}]),i.once("packet",y=>{if(!a)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Vi.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(m(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=i.name,this.emitReserved("upgradeError",v)}}))};function u(){a||(a=!0,m(),i.close(),i=null)}const c=y=>{const v=new Error("probe error: "+y);v.transport=i.name,u(),this.emitReserved("upgradeError",v)};function f(){c("transport closed")}function p(){c("socket closed")}function d(y){i&&y.name!==i.name&&u()}const m=()=>{i.removeListener("open",l),i.removeListener("error",c),i.removeListener("close",f),this.off("close",p),this.off("upgrading",d)};i.once("open",l),i.once("error",c),i.once("close",f),this.once("close",p),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{a||i.open()},200):i.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const i=[];for(let a=0;a<t.length;a++)~this.transports.indexOf(t[a])&&i.push(t[a]);return i}}let oC=class extends lC{constructor(t,i={}){const a=typeof t=="object"?t:i;(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(l=>nC[l]).filter(l=>!!l)),super(t,a)}};function uC(e,t="",i){let a=e;i=i||typeof location<"u"&&location,e==null&&(e=i.protocol+"//"+i.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=i.protocol+e:e=i.host+e),/^(https?|wss?):\/\//.test(e)||(typeof i<"u"?e=i.protocol+"//"+e:e="https://"+e),a=id(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const u=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+u+":"+a.port+t,a.href=a.protocol+"://"+u+(i&&i.port===a.port?"":":"+a.port),a}const cC=typeof ArrayBuffer=="function",fC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Mb=Object.prototype.toString,hC=typeof Blob=="function"||typeof Blob<"u"&&Mb.call(Blob)==="[object BlobConstructor]",dC=typeof File=="function"||typeof File<"u"&&Mb.call(File)==="[object FileConstructor]";function ep(e){return cC&&(e instanceof ArrayBuffer||fC(e))||hC&&e instanceof Blob||dC&&e instanceof File}function au(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,a=e.length;i<a;i++)if(au(e[i]))return!0;return!1}if(ep(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return au(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&au(e[i]))return!0;return!1}function pC(e){const t=[],i=e.data,a=e;return a.data=ad(i,t),a.attachments=t.length,{packet:a,buffers:t}}function ad(e,t){if(!e)return e;if(ep(e)){const i={_placeholder:!0,num:t.length};return t.push(e),i}else if(Array.isArray(e)){const i=new Array(e.length);for(let a=0;a<e.length;a++)i[a]=ad(e[a],t);return i}else if(typeof e=="object"&&!(e instanceof Date)){const i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=ad(e[a],t));return i}return e}function mC(e,t){return e.data=sd(e.data,t),delete e.attachments,e}function sd(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let i=0;i<e.length;i++)e[i]=sd(e[i],t);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=sd(e[i],t));return e}const gC=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],yC=5;var Oe;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Oe||(Oe={}));class vC{constructor(t){this.replacer=t}encode(t){return(t.type===Oe.EVENT||t.type===Oe.ACK)&&au(t)?this.encodeAsBinary({type:t.type===Oe.EVENT?Oe.BINARY_EVENT:Oe.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let i=""+t.type;return(t.type===Oe.BINARY_EVENT||t.type===Oe.BINARY_ACK)&&(i+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(i+=t.nsp+","),t.id!=null&&(i+=t.id),t.data!=null&&(i+=JSON.stringify(t.data,this.replacer)),i}encodeAsBinary(t){const i=pC(t),a=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(a),l}}function C1(e){return Object.prototype.toString.call(e)==="[object Object]"}class tp extends ut{constructor(t){super(),this.reviver=t}add(t){let i;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(t);const a=i.type===Oe.BINARY_EVENT;a||i.type===Oe.BINARY_ACK?(i.type=a?Oe.EVENT:Oe.ACK,this.reconstructor=new bC(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(ep(t)||t.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(t),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let i=0;const a={type:Number(t.charAt(0))};if(Oe[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===Oe.BINARY_EVENT||a.type===Oe.BINARY_ACK){const u=i+1;for(;t.charAt(++i)!=="-"&&i!=t.length;);const c=t.substring(u,i);if(c!=Number(c)||t.charAt(i)!=="-")throw new Error("Illegal attachments");a.attachments=Number(c)}if(t.charAt(i+1)==="/"){const u=i+1;for(;++i&&!(t.charAt(i)===","||i===t.length););a.nsp=t.substring(u,i)}else a.nsp="/";const l=t.charAt(i+1);if(l!==""&&Number(l)==l){const u=i+1;for(;++i;){const c=t.charAt(i);if(c==null||Number(c)!=c){--i;break}if(i===t.length)break}a.id=Number(t.substring(u,i+1))}if(t.charAt(++i)){const u=this.tryParse(t.substr(i));if(tp.isPayloadValid(a.type,u))a.data=u;else throw new Error("invalid payload")}return a}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,i){switch(t){case Oe.CONNECT:return C1(i);case Oe.DISCONNECT:return i===void 0;case Oe.CONNECT_ERROR:return typeof i=="string"||C1(i);case Oe.EVENT:case Oe.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&gC.indexOf(i[0])===-1);case Oe.ACK:case Oe.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class bC{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const i=mC(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const xC=Object.freeze(Object.defineProperty({__proto__:null,Decoder:tp,Encoder:vC,get PacketType(){return Oe},protocol:yC},Symbol.toStringTag,{value:"Module"}));function Tn(e,t,i){return e.on(t,i),function(){e.off(t,i)}}const SC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Nb extends ut{constructor(t,i,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=i,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Tn(t,"open",this.onopen.bind(this)),Tn(t,"packet",this.onpacket.bind(this)),Tn(t,"error",this.onerror.bind(this)),Tn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...i){var a,l,u;if(SC.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(i.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const c={type:Oe.EVENT,data:i};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const m=this.ids++,y=i.pop();this._registerAckCallback(m,y),c.id=m}const f=(l=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||l===void 0?void 0:l.writable,p=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!f||(p?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(t,i){var a;const l=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(l===void 0){this.acks[t]=i;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===t&&this.sendBuffer.splice(f,1);i.call(this,new Error("operation has timed out"))},l),c=(...f)=>{this.io.clearTimeoutFn(u),i.apply(this,f)};c.withError=!0,this.acks[t]=c}emitWithAck(t,...i){return new Promise((a,l)=>{const u=(c,f)=>c?l(c):a(f);u.withError=!0,i.push(u),this.emit(t,...i)})}_addToQueue(t){let i;typeof t[t.length-1]=="function"&&(i=t.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((l,...u)=>a!==this._queue[0]?void 0:(l!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(l)):(this._queue.shift(),i&&i(null,...u)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!t||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Oe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(a=>String(a.id)===t)){const a=this.acks[t];delete this.acks[t],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Oe.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Oe.EVENT:case Oe.BINARY_EVENT:this.onevent(t);break;case Oe.ACK:case Oe.BINARY_ACK:this.onack(t);break;case Oe.DISCONNECT:this.ondisconnect();break;case Oe.CONNECT_ERROR:this.destroy();const a=new Error(t.data.message);a.data=t.data.data,this.emitReserved("connect_error",a);break}}onevent(t){const i=t.data||[];t.id!=null&&i.push(this.ack(t.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const a of i)a.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const i=this;let a=!1;return function(...l){a||(a=!0,i.packet({type:Oe.ACK,id:t,data:l}))}}onack(t){const i=this.acks[t.id];typeof i=="function"&&(delete this.acks[t.id],i.withError&&t.data.unshift(null),i.apply(this,t.data))}onconnect(t,i){this.id=t,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Oe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const i=this._anyListeners;for(let a=0;a<i.length;a++)if(t===i[a])return i.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const i=this._anyOutgoingListeners;for(let a=0;a<i.length;a++)if(t===i[a])return i.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const a of i)a.apply(this,t.data)}}}function Ca(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ca.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),i=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-i:e+i}return Math.min(e,this.max)|0};Ca.prototype.reset=function(){this.attempts=0};Ca.prototype.setMin=function(e){this.ms=e};Ca.prototype.setMax=function(e){this.max=e};Ca.prototype.setJitter=function(e){this.jitter=e};class ld extends ut{constructor(t,i){var a;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(i=t,t=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Mu(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((a=i.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new Ca({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=t;const l=i.parser||xC;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var i;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(i=this.backoff)===null||i===void 0||i.setMin(t),this)}randomizationFactor(t){var i;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(i=this.backoff)===null||i===void 0||i.setJitter(t),this)}reconnectionDelayMax(t){var i;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(i=this.backoff)===null||i===void 0||i.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new oC(this.uri,this.opts);const i=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const l=Tn(i,"open",function(){a.onopen(),t&&t()}),u=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},c=Tn(i,"error",u);if(this._timeout!==!1){const f=this._timeout,p=this.setTimeoutFn(()=>{l(),u(new Error("timeout")),i.close()},f);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(l),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Tn(t,"ping",this.onping.bind(this)),Tn(t,"data",this.ondata.bind(this)),Tn(t,"error",this.onerror.bind(this)),Tn(t,"close",this.onclose.bind(this)),Tn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(i){this.onclose("parse error",i)}}ondecoded(t){Du(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,i){let a=this.nsps[t];return a?this._autoConnect&&!a.active&&a.connect():(a=new Nb(this,t,i),this.nsps[t]=a),a}_destroy(t){const i=Object.keys(this.nsps);for(const a of i)if(this.nsps[a].active)return;this._close()}_packet(t){const i=this.encoder.encode(t);for(let a=0;a<i.length;a++)this.engine.write(i[a],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,i){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(l=>{l?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",l)):t.onreconnect()}))},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Bs={};function su(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const i=uC(e,t.path||"/socket.io"),a=i.source,l=i.id,u=i.path,c=Bs[l]&&u in Bs[l].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||c;let p;return f?p=new ld(a,t):(Bs[l]||(Bs[l]=new ld(a,t)),p=Bs[l]),i.query&&!t.query&&(t.query=i.queryKey),p.socket(i.path,t)}Object.assign(su,{Manager:ld,Socket:Nb,io:su,connect:su});class wC{constructor(t){nh(this,"socket",null);nh(this,"url");this.url=t}connect(){this.socket||(this.socket=su(this.url,{autoConnect:!1,path:"/sockete"}),this.socket.connect())}disconnect(){this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){var t;return!!((t=this.socket)!=null&&t.connected)}on(t,i){var a;(a=this.socket)==null||a.on(t,i)}emit(t,...i){var a;(a=this.socket)==null||a.emit(t,...i)}off(t,i){var a;(a=this.socket)==null||a.off(t,i)}}const zs=new wC(""),EC=["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain","text/markdown"],TC=({idx:e,file:t})=>{const i=Xe(u=>u.setUploadedFiles),a=Xe(u=>u.uploadedFiles),l=u=>{u.text?i(a.map((c,f)=>f===e?{...c,status:"SUCCESS",text:u.text}:c)):i(a.map((c,f)=>f===e?{...c,status:"ERROR"}:c))};return _.useEffect(()=>{if(t.status!=="SUCCESS")return console.log("CONNECTING TO SOCKET",t.notificationId),zs.connect(),zs.on(t.notificationId,l),zs.emit("registerNotification",{notificationId:t.notificationId}),()=>{zs.off(t.notificationId,l),zs.disconnect()}},[]),A.jsxs("div",{className:"p-3 rounded-md shadow-sm text-sm text-gray-800 text-left flex items-center gap-2"+(t.status==="PROCESSING"?" bg-gray-100":t.status==="ERROR"?" bg-red-100":" bg-white"),title:t.name,children:[t.status==="PROCESSING"&&A.jsx("div",{className:"w-4 h-4 border-2 border-blue-500 border-t-transparent rounded-full animate-spin"}),t.status==="ERROR"&&A.jsx("span",{className:"text-red-500 font-bold",children:"Error!"}),A.jsxs("strong",{className:"truncate",children:[t.name.slice(0,20),"..."]}),A.jsx("button",{className:"ml-auto cursor-pointer transition-colors "+(t.status==="PROCESSING"?"text-gray-400 cursor-not-allowed":"text-gray-600 hover:text-red-500"),onClick:()=>i(a.filter((u,c)=>c!==e)),children:rt.trash})]})},Lb=({styledAs:e="button",onFinish:t})=>{const i=Xe(w=>w.auth.publicToken),a=_.useRef(null),l=Xe(w=>w.uploadedFiles),u=Xe(w=>w.setUploadedFiles),[c,f]=_.useState(!1),[p,d]=_.useState(!1),m=async w=>{const{type:E,name:R}=w;if(E==="text/plain"||E==="text/markdown"){const B=await w.text();return{name:R,text:B,status:"SUCCESS",notificationId:""}}const C=new FormData;C.append("file",w);const M=`document-read-${Date.now()}-${Math.floor(Math.random()*1e6)}`,O=`${window.location.origin}/notifications/${M}`;C.append("webhook_callback_url",O);const V=ot.loading(`Processing ${w.name}...`);try{const B=await Pe.post(`${wa}/v1/learnpack/public/tools/read-document`,C,{headers:{Authorization:`Token ${i.trim()}`}});if(B.status>=300)throw new Error(`Failed to read ${w.name}`);const L=B.data;return ot.success(`Processing ${w.name}`,{id:V}),{name:R,text:"",status:L.status,notificationId:M}}catch(B){return ot.error(`❌ ${w.name} failed: ${B.message}`,{id:V}),{name:R,text:"",status:"ERROR",notificationId:""}}},y=async w=>{const E=Array.from(w).filter(M=>EC.includes(M.type));if(E.length===0){ot.error("No valid files selected");return}d(!0);const R=await Promise.all(E.map(m)),C=[...l,...R];u(C.filter(M=>M.status!=="ERROR")),d(!1)},v=async w=>{w.target.files&&await y(w.target.files)},b=w=>{w.preventDefault(),f(!1),w.dataTransfer.files.length>0&&y(w.dataTransfer.files)};return A.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[l.length>0&&e==="card"&&A.jsx("div",{className:"w-full flex flex-row gap-2 flex-wrap justify-center items-center",children:l.map((w,E)=>A.jsx(TC,{idx:E,file:w},E))}),e==="button"&&A.jsx("div",{className:"flex items-center justify-end gap-2 w-100",children:A.jsx("button",{type:"button",className:"cursor-pointer blue-on-hover flex items-center justify-center w-6 h-6",onClick:()=>{var w;return(w=a.current)==null?void 0:w.click()},children:p?A.jsx("div",{className:"loader w-4 h-4 border-2 border-blue-500 border-t-transparent rounded-full animate-spin"}):rt.clip})}),e==="card"&&A.jsxs(A.Fragment,{children:[A.jsx(tu,{description:c?"Drop it here":p?"Processing...":"Upload a PDF or DOCX file or drag it here",icon:c?rt.clip:rt.pdf,onClick:()=>{var w;return(w=a.current)==null?void 0:w.click()},onDragOver:w=>{w.preventDefault(),f(!0)},onDragLeave:()=>f(!1),onDrop:b,className:c?"border-blue-600 bg-blue-50":""}),A.jsx("button",{disabled:l.some(w=>w.status!=="SUCCESS"),className:"bg-blue-500 text-white px-4 py-2 rounded-md cursor-pointer disabled:opacity-50",onClick:()=>{t==null||t(l)},children:"🚀 Finish"})]}),A.jsx("input",{ref:a,type:"file",multiple:!0,accept:".pdf,.docx,.txt,.md",onChange:v,style:{display:"none"}})]})},CC=({onFinish:e})=>{const[t,i]=_.useState("");return A.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[A.jsx("textarea",{className:"mt-4 p-2 border rounded w-full bg-white border-heavy-blue",placeholder:"Add your text here...",value:t,onChange:a=>i(a.target.value)}),A.jsx("button",{className:"mt-4 p-2 border rounded w-full bg-learnpack text-white",onClick:()=>e(t),children:"Finish"})]})},AC=({onFinish:e})=>{const[t,i]=_.useState(null),a=l=>{i(l)};return A.jsxs("div",{className:"flex flex-col md:flex-row gap-2 justify-center items-center",children:[!t&&A.jsxs(A.Fragment,{children:[A.jsx(tu,{description:"Write or paste a content table",icon:rt.contentTable,onClick:()=>a("text")}),A.jsx(tu,{description:"Upload files",icon:rt.pdf,onClick:()=>a("files")}),A.jsx(tu,{description:"Share a Youtube link",icon:rt.youtube,onClick:()=>a("youtube")})]}),t==="text"&&A.jsx(CC,{onFinish:e}),t==="files"&&A.jsx(Lb,{styledAs:"card",onFinish:l=>{const u=l.filter(c=>c.status==="SUCCESS").map(c=>`<FILE name="${c.name}">${c.text}</FILE>`).join(`
244
+ `);e(u)}}),t==="youtube"&&A.jsx(kT,{onResult:l=>{e(`The following information comes from a Youtube video uploaded by the user. Use the transcript to create the course: ${JSON.stringify(l)}`)}})]})},jb=()=>{const e=Xe(t=>t.setMode);return _.useEffect(()=>{const i=new URLSearchParams(window.location.search).get("mode");i&&["teacher","student"].includes(i.toLowerCase())&&(console.log("Setting mode to ",i.toLowerCase()),e(i.toLowerCase()))},[]),A.jsx(A.Fragment,{})},RC=({siteKey:e,onSuccess:t,onError:i,autoStart:a=!0})=>{const l="cf-turnstile-container",u=_.useRef(null),[c,f]=_.useState(!1);return _.useEffect(()=>{const p=()=>{if(!window.turnstile||!document.getElementById(l)||u.current)return;const m=window.turnstile.render(`#${l}`,{sitekey:e,callback:y=>{t(y)},"error-callback":()=>{i==null||i()},"refresh-callback":()=>{console.log("refresh callback CALLEd")}});u.current=m,f(!0)},d=setInterval(()=>{window.turnstile&&document.getElementById(l)&&(clearInterval(d),a&&p())},200);return()=>clearInterval(d)},[e,a,t,i]),A.jsxs("div",{className:"",children:[A.jsx("div",{id:l,"data-refresh-timeout":"auto"}),!c&&A.jsx("p",{className:"",children:"..."})]})};function kC({onContinue:e,onStartOver:t}){return A.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:A.jsxs("div",{className:"bg-white shadow-xl rounded-lg p-8 max-w-md w-full animate-fade-in",children:[A.jsx("h2",{className:"text-xl font-bold text-gray-800 mb-3 text-center",children:"You have an unfinished course"}),A.jsxs("p",{className:"text-gray-600 mb-6 text-center",children:["You didn't finish creating your previous course.",A.jsx("br",{}),"What would you like to do?"]}),A.jsxs("div",{className:"flex flex-col gap-4",children:[A.jsx("button",{onClick:e,className:"w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-md font-semibold transition cursor-pointer",children:"Continue previous course"}),A.jsx("button",{onClick:t,className:"w-full border border-blue-600 text-blue-700 py-2 rounded-md font-semibold hover:bg-blue-50 transition cursor-pointer",children:"Erase previous answers and start a new course"})]})]})})}const OC=["learnpack-lesson-writer","homework-and-exam-preparation-aid","skill-building-facilitator","certification-preparation-specialist"],_C=[{slug:"learnpack-lesson-writer",label:"Understand a new topic",description:"Learn about a new concept (e.g., ISO 27001 or exponential decay)."},{slug:"homework-and-exam-preparation-aid",label:"Practice for an exam or homework",description:"Solve math problems or certification questions."},{slug:"skill-building-facilitator",label:"Build real-world skills",description:"Apply concepts to projects, data science, or security audits."},{slug:"certification-preparation-specialist",label:"Prepare for a certification",description:"Get ready for exams like ISO 27001 Lead Auditor."}],DC=({onFinish:e})=>{const t=Xe(i=>i.formState);return A.jsx("div",{className:"w-full",children:A.jsx("ul",{className:"flex flex-row gap-4 flex-wrap",children:_C.map(i=>A.jsx(oa,{title:i.label,selected:t.purpose===i.slug,subtitle:i.description,onClick:()=>e(i.slug),className:"w-full"},i.slug))})})};function MC(){const e=Vd(),{formState:t,setFormState:i,setAuth:a,push:l,cleanHistory:u,setPlanToRedirect:c,history:f,uploadedFiles:p,auth:d,resetFormState:m}=Xe(Yd(E=>({formState:E.formState,setFormState:E.setFormState,setAuth:E.setAuth,push:E.push,history:E.history,cleanHistory:E.cleanHistory,setPlanToRedirect:E.setPlanToRedirect,uploadedFiles:E.uploadedFiles,auth:E.auth,resetFormState:E.resetFormState})));_.useEffect(()=>{t.isCompleted&&b()},[t]),_.useEffect(()=>{y(),v()},[]);const y=async()=>{const{token:E}=td(["token"]);if(E){const R=await xb(E);a({bcToken:E,userId:R.id,rigoToken:R.rigobot.key,user:R,publicToken:""})}},v=()=>{const{description:E,duration:R,plan:C,purpose:M}=td(["description","duration","plan","purpose"]);if(E&&(console.log("description",E),i({description:E,currentStep:"duration"})),R&&E&&!isNaN(parseInt(R)))if(["30","60","120"].includes(R)){const O=parseInt(R);console.log("duration",O),i({duration:O,currentStep:"hasContentIndex"})}else console.log("Invalid duration received in params",R);C?c(C):console.debug("No plan received in params"),M&&M.length>0&&OC.includes(M)&&i({purpose:M,currentStep:"hasContentIndex"})},b=async()=>{try{u();const E=await yb({courseInfo:`${JSON.stringify(t)} `,prevInteractions:""},d.rigoToken?d.rigoToken:d.publicToken,t.purpose||"learnpack-lesson-writer",!d.rigoToken),R=E.parsed.listOfSteps.map(C=>bb(C,[]));console.log("RES FROM RIGO",E),l({lessons:R,courseInfo:{...t,title:E.parsed.title,description:E.parsed.description},messages:[{type:"assistant",content:E.parsed.aiMessage}]}),e("/creator/syllabus"),i({isCompleted:!1,currentStep:"description"})}catch(E){console.error(E,"ERROR CREATING TUTORIAL"),ot.error("Something went wrong. Please try again."),i({isCompleted:!1,currentStep:"hasContentIndex"})}},w=()=>{var R;return[{title:"What do you want to learn?",slug:"description",isCompleted:t.description.length>0,required:!0,content:A.jsx("textarea",{required:!0,placeholder:"Describe your course",className:"w-full h-24 border-2 border-gray-300 rounded-md p-2 bg-white",value:t.description,onChange:C=>{i({description:C.target.value})}})},{title:"What is the estimated duration for this tutorial?",slug:"duration",isCompleted:t.duration>0,required:!0,content:A.jsxs("div",{className:"flex flex-col md:flex-row gap-2",children:[A.jsx(oa,{title:"Around 30 minutes",onClick:()=>{i({duration:30,currentStep:"purpose"})},selected:t.duration===30}),A.jsx(oa,{title:"Around 1 hour",onClick:()=>{i({duration:60,currentStep:"purpose"})},selected:t.duration===60}),A.jsx(oa,{title:"Around 2 hours",onClick:()=>{i({duration:120,currentStep:"purpose"})},selected:t.duration===120})]})},{title:"How would you like to use learnpack?",slug:"purpose",isCompleted:((R=t==null?void 0:t.purpose)==null?void 0:R.length)>0,required:!0,content:A.jsx(DC,{onFinish:C=>{i({purpose:C,currentStep:"verifyHuman"})}})},{title:"Please verify you are a human",slug:"verifyHuman",isCompleted:!1,content:A.jsx(RC,{siteKey:"0x4AAAAAABeZ9tjEevGBsJFU",onSuccess:async C=>{const{human:M,message:O,token:V}=await bT(C);M?(ot.success("You are a human! 👌🏻"),console.log("JWT TOKEN received",V),a({...d,publicToken:V}),i({currentStep:"hasContentIndex"})):(ot.error(O),i({currentStep:"purpose"}))}})},{title:"Any materials to get this course started?",slug:"hasContentIndex",isCompleted:!1,content:A.jsx(A.Fragment,{children:A.jsxs("div",{className:"flex flex-col md:flex-row gap-2 justify-center",children:[A.jsx(oa,{title:"❌ No, help me create one",onClick:()=>{i({hasContentIndex:!1,variables:[...t.variables.filter(C=>C!=="contentIndex")],isCompleted:!0})}}),A.jsx(oa,{title:"✅ Yes",onClick:()=>{i({hasContentIndex:!0,currentStep:"contentIndex",variables:[...t.variables,"contentIndex"]})}})]})})},{title:"Any materials to get this course started?",slug:"contentIndex",helpText:"It could be just text, paste an URL or even upload a document.",isCompleted:t.contentIndex.length>0||p.length>0,required:!0,content:A.jsx(AC,{onFinish:C=>{i({contentIndex:C,isCompleted:!0})}})}].filter(C=>t.variables.includes(C.slug)||C.slug===t.currentStep)};return A.jsxs(A.Fragment,{children:[A.jsx(jb,{}),t.isCompleted&&f.length===0?A.jsx(Id,{text:"Learnpack is setting up your tutorial. It may take a moment...",icon:A.jsx("img",{src:Gv,alt:"rigo",className:"w-20 h-20"})}):A.jsxs(A.Fragment,{children:[f.length>0&&A.jsx(kC,{onContinue:()=>{e("/creator/syllabus")},onStartOver:()=>{m(),u()}}),A.jsx(D5,{hideLastButton:!0,formState:t,steps:w(),setFormState:i,onFinish:()=>{i({isCompleted:!0})}})]})]})}const NC=()=>{const e=Xe(l=>l.auth),t=Xe(l=>l.setAuth),i=Xe(l=>l.setConsumables);_.useEffect(()=>{e.bcToken&&a()},[e]);const a=async()=>{try{const l=await xT(e.bcToken);console.log("CONSUMABLES",x1(l.voids)),i(x1(l.voids))}catch{t({...e,bcToken:"",rigoToken:""})}};return A.jsx(A.Fragment,{})};function LC(e){const t=parseFloat(e);return Number.isInteger(t)?Math.floor(t).toString().padStart(2,"0"):t.toString()}function jC(e){const t=parseFloat(e);return Number.isNaN(t)?!1:t%1>0}const BC=({lesson:e,onChange:t,onRemove:i,isNew:a})=>{const l=Xe(p=>p.mode),u=_.useRef(null),[c,f]=_.useState(!1);return A.jsxs("div",{className:`flex items-center space-x-2 relative rounded-md p-3 ${a?"border border-learnpack-blue appear":"border border-gray-200"} ${jC(e.id.toString()||"0")?"ml-6":""}`,children:[a&&A.jsx("span",{className:"red-ball"}),l==="teacher"&&A.jsxs(A.Fragment,{children:[A.jsx("span",{className:"index-circle",children:LC(e.id)}),A.jsxs("span",{className:"text-gray-500 text-sm",children:[e.type[0]+e.type.slice(1).toLowerCase()," ●"]})]}),c?A.jsx("input",{defaultValue:e.title,ref:u,onBlur:()=>{u.current&&t(e.uid,u.current.value)},autoFocus:!0,className:"flex-1 bg-white border border-gray-300 rounded-md px-2 py-1 text-sm"}):A.jsx("span",{className:"flex-1 text-sm text-gray-800",children:e.title}),A.jsxs("span",{className:"text-sm text-gray-600 bg-blue-100 px-2 py-1 rounded-full",children:[e.duration," min"]}),l==="teacher"&&A.jsxs(A.Fragment,{children:[A.jsx("button",{onClick:()=>{f(!c),u.current&&t(e.uid,u.current.value)},className:"text-gray-500 hover:text-blue-500 cursor-pointer ",children:rt.pen}),A.jsx("button",{onClick:()=>i(),className:"text-red-500 hover:text-red-700 cursor-pointer",children:rt.trash})]})]})},np=_.createContext({});function ip(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const rp=typeof window<"u",Bb=rp?_.useLayoutEffect:_.useEffect,Nu=_.createContext(null),ap=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class zC extends _.Component{getSnapshotBeforeUpdate(t){const i=this.props.childRef.current;if(i&&t.isPresent&&!this.props.isPresent){const a=i.offsetParent,l=a instanceof HTMLElement&&a.offsetWidth||0,u=this.props.sizeRef.current;u.height=i.offsetHeight||0,u.width=i.offsetWidth||0,u.top=i.offsetTop,u.left=i.offsetLeft,u.right=l-u.width-u.left}return null}componentDidUpdate(){}render(){return this.props.children}}function UC({children:e,isPresent:t,anchorX:i}){const a=_.useId(),l=_.useRef(null),u=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=_.useContext(ap);return _.useInsertionEffect(()=>{const{width:f,height:p,top:d,left:m,right:y}=u.current;if(t||!l.current||!f||!p)return;const v=i==="left"?`left: ${m}`:`right: ${y}`;l.current.dataset.motionPopId=a;const b=document.createElement("style");return c&&(b.nonce=c),document.head.appendChild(b),b.sheet&&b.sheet.insertRule(`
245
+ [data-motion-pop-id="${a}"] {
246
+ position: absolute !important;
247
+ width: ${f}px !important;
248
+ height: ${p}px !important;
249
+ ${v}px !important;
250
+ top: ${d}px !important;
251
+ }
252
+ `),()=>{document.head.removeChild(b)}},[t]),A.jsx(zC,{isPresent:t,childRef:l,sizeRef:u,children:_.cloneElement(e,{ref:l})})}const VC=({children:e,initial:t,isPresent:i,onExitComplete:a,custom:l,presenceAffectsLayout:u,mode:c,anchorX:f})=>{const p=ip(HC),d=_.useId();let m=!0,y=_.useMemo(()=>(m=!1,{id:d,initial:t,isPresent:i,custom:l,onExitComplete:v=>{p.set(v,!0);for(const b of p.values())if(!b)return;a&&a()},register:v=>(p.set(v,!1),()=>p.delete(v))}),[i,p,a]);return u&&m&&(y={...y}),_.useMemo(()=>{p.forEach((v,b)=>p.set(b,!1))},[i]),_.useEffect(()=>{!i&&!p.size&&a&&a()},[i]),c==="popLayout"&&(e=A.jsx(UC,{isPresent:i,anchorX:f,children:e})),A.jsx(Nu.Provider,{value:y,children:e})};function HC(){return new Map}function zb(e=!0){const t=_.useContext(Nu);if(t===null)return[!0,null];const{isPresent:i,onExitComplete:a,register:l}=t,u=_.useId();_.useEffect(()=>{if(e)return l(u)},[e]);const c=_.useCallback(()=>e&&a&&a(u),[u,a,e]);return!i&&a?[!1,c]:[!0]}const qo=e=>e.key||"";function A1(e){const t=[];return _.Children.forEach(e,i=>{_.isValidElement(i)&&t.push(i)}),t}const Ub=({children:e,custom:t,initial:i=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync",propagate:c=!1,anchorX:f="left"})=>{const[p,d]=zb(c),m=_.useMemo(()=>A1(e),[e]),y=c&&!p?[]:m.map(qo),v=_.useRef(!0),b=_.useRef(m),w=ip(()=>new Map),[E,R]=_.useState(m),[C,M]=_.useState(m);Bb(()=>{v.current=!1,b.current=m;for(let B=0;B<C.length;B++){const L=qo(C[B]);y.includes(L)?w.delete(L):w.get(L)!==!0&&w.set(L,!1)}},[C,y.length,y.join("-")]);const O=[];if(m!==E){let B=[...m];for(let L=0;L<C.length;L++){const Z=C[L],Q=qo(Z);y.includes(Q)||(B.splice(L,0,Z),O.push(Z))}return u==="wait"&&O.length&&(B=O),M(A1(B)),R(m),null}const{forceRender:V}=_.useContext(np);return A.jsx(A.Fragment,{children:C.map(B=>{const L=qo(B),Z=c&&!p?!1:m===C||y.includes(L),Q=()=>{if(w.has(L))w.set(L,!0);else return;let ee=!0;w.forEach(fe=>{fe||(ee=!1)}),ee&&(V==null||V(),M(b.current),c&&(d==null||d()),a&&a())};return A.jsx(VC,{isPresent:Z,initial:!v.current||i?void 0:!1,custom:t,presenceAffectsLayout:l,mode:u,onExitComplete:Z?void 0:Q,anchorX:f,children:B},L)})})};function sp(e,t){e.indexOf(t)===-1&&e.push(t)}function lp(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const ci=(e,t,i)=>i>t?t:i<e?e:i;let op=()=>{};const fi={},Vb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Hb=e=>/^0[^.\s]+$/u.test(e);function up(e){let t;return()=>(t===void 0&&(t=e()),t)}const vn=e=>e,PC=(e,t)=>i=>t(e(i)),vl=(...e)=>e.reduce(PC),il=(e,t,i)=>{const a=t-e;return a===0?1:(i-e)/a};class cp{constructor(){this.subscriptions=[]}add(t){return sp(this.subscriptions,t),()=>lp(this.subscriptions,t)}notify(t,i,a){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](t,i,a);else for(let u=0;u<l;u++){const c=this.subscriptions[u];c&&c(t,i,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Bn=e=>e*1e3,zn=e=>e/1e3;function Pb(e,t){return t?e*(1e3/t):0}const qb=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,qC=1e-7,FC=12;function IC(e,t,i,a,l){let u,c,f=0;do c=t+(i-t)/2,u=qb(c,a,l)-e,u>0?i=c:t=c;while(Math.abs(u)>qC&&++f<FC);return c}function bl(e,t,i,a){if(e===t&&i===a)return vn;const l=u=>IC(u,0,1,e,i);return u=>u===0||u===1?u:qb(l(u),t,a)}const Fb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ib=e=>t=>1-e(1-t),Yb=bl(.33,1.53,.69,.99),fp=Ib(Yb),Gb=Fb(fp),Xb=e=>(e*=2)<1?.5*fp(e):.5*(2-Math.pow(2,-10*(e-1))),hp=e=>1-Math.sin(Math.acos(e)),Kb=Ib(hp),Zb=Fb(hp),YC=bl(.42,0,1,1),GC=bl(0,0,.58,1),$b=bl(.42,0,.58,1),XC=e=>Array.isArray(e)&&typeof e[0]!="number",Qb=e=>Array.isArray(e)&&typeof e[0]=="number",KC={linear:vn,easeIn:YC,easeInOut:$b,easeOut:GC,circIn:hp,circInOut:Zb,circOut:Kb,backIn:fp,backInOut:Gb,backOut:Yb,anticipate:Xb},ZC=e=>typeof e=="string",R1=e=>{if(Qb(e)){op(e.length===4);const[t,i,a,l]=e;return bl(t,i,a,l)}else if(ZC(e))return KC[e];return e},Fo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],k1={value:null};function $C(e,t){let i=new Set,a=new Set,l=!1,u=!1;const c=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1},p=0;function d(y){c.has(y)&&(m.schedule(y),e()),p++,y(f)}const m={schedule:(y,v=!1,b=!1)=>{const E=b&&l?i:a;return v&&c.add(y),E.has(y)||E.add(y),y},cancel:y=>{a.delete(y),c.delete(y)},process:y=>{if(f=y,l){u=!0;return}l=!0,[i,a]=[a,i],i.forEach(d),t&&k1.value&&k1.value.frameloop[t].push(p),p=0,i.clear(),l=!1,u&&(u=!1,m.process(y))}};return m}const QC=40;function Jb(e,t){let i=!1,a=!0;const l={delta:0,timestamp:0,isProcessing:!1},u=()=>i=!0,c=Fo.reduce((O,V)=>(O[V]=$C(u,t?V:void 0),O),{}),{setup:f,read:p,resolveKeyframes:d,preUpdate:m,update:y,preRender:v,render:b,postRender:w}=c,E=()=>{const O=fi.useManualTiming?l.timestamp:performance.now();i=!1,fi.useManualTiming||(l.delta=a?1e3/60:Math.max(Math.min(O-l.timestamp,QC),1)),l.timestamp=O,l.isProcessing=!0,f.process(l),p.process(l),d.process(l),m.process(l),y.process(l),v.process(l),b.process(l),w.process(l),l.isProcessing=!1,i&&t&&(a=!1,e(E))},R=()=>{i=!0,a=!0,l.isProcessing||e(E)};return{schedule:Fo.reduce((O,V)=>{const B=c[V];return O[V]=(L,Z=!1,Q=!1)=>(i||R(),B.schedule(L,Z,Q)),O},{}),cancel:O=>{for(let V=0;V<Fo.length;V++)c[Fo[V]].cancel(O)},state:l,steps:c}}const{schedule:Qe,cancel:Hi,state:St,steps:yh}=Jb(typeof requestAnimationFrame<"u"?requestAnimationFrame:vn,!0);let lu;function JC(){lu=void 0}const Ht={now:()=>(lu===void 0&&Ht.set(St.isProcessing||fi.useManualTiming?St.timestamp:performance.now()),lu),set:e=>{lu=e,queueMicrotask(JC)}},Wb=e=>t=>typeof t=="string"&&t.startsWith(e),dp=Wb("--"),WC=Wb("var(--"),pp=e=>WC(e)?e7.test(e.split("/*")[0].trim()):!1,e7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Aa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rl={...Aa,transform:e=>ci(0,1,e)},Io={...Aa,default:1},Xs=e=>Math.round(e*1e5)/1e5,mp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function t7(e){return e==null}const n7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gp=(e,t)=>i=>!!(typeof i=="string"&&n7.test(i)&&i.startsWith(e)||t&&!t7(i)&&Object.prototype.hasOwnProperty.call(i,t)),ex=(e,t,i)=>a=>{if(typeof a!="string")return a;const[l,u,c,f]=a.match(mp);return{[e]:parseFloat(l),[t]:parseFloat(u),[i]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},i7=e=>ci(0,255,e),vh={...Aa,transform:e=>Math.round(i7(e))},hr={test:gp("rgb","red"),parse:ex("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:a=1})=>"rgba("+vh.transform(e)+", "+vh.transform(t)+", "+vh.transform(i)+", "+Xs(rl.transform(a))+")"};function r7(e){let t="",i="",a="",l="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),a=e.substring(5,7),l=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),a=e.substring(3,4),l=e.substring(4,5),t+=t,i+=i,a+=a,l+=l),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(a,16),alpha:l?parseInt(l,16)/255:1}}const od={test:gp("#"),parse:r7,transform:hr.transform},xl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zi=xl("deg"),Un=xl("%"),ve=xl("px"),a7=xl("vh"),s7=xl("vw"),O1={...Un,parse:e=>Un.parse(e)/100,transform:e=>Un.transform(e*100)},ua={test:gp("hsl","hue"),parse:ex("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:a=1})=>"hsla("+Math.round(e)+", "+Un.transform(Xs(t))+", "+Un.transform(Xs(i))+", "+Xs(rl.transform(a))+")"},Ct={test:e=>hr.test(e)||od.test(e)||ua.test(e),parse:e=>hr.test(e)?hr.parse(e):ua.test(e)?ua.parse(e):od.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?hr.transform(e):ua.transform(e)},l7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o7(e){var t,i;return isNaN(e)&&typeof e=="string"&&(((t=e.match(mp))==null?void 0:t.length)||0)+(((i=e.match(l7))==null?void 0:i.length)||0)>0}const tx="number",nx="color",u7="var",c7="var(",_1="${}",f7=/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 al(e){const t=e.toString(),i=[],a={color:[],number:[],var:[]},l=[];let u=0;const f=t.replace(f7,p=>(Ct.test(p)?(a.color.push(u),l.push(nx),i.push(Ct.parse(p))):p.startsWith(c7)?(a.var.push(u),l.push(u7),i.push(p)):(a.number.push(u),l.push(tx),i.push(parseFloat(p))),++u,_1)).split(_1);return{values:i,split:f,indexes:a,types:l}}function ix(e){return al(e).values}function rx(e){const{split:t,types:i}=al(e),a=t.length;return l=>{let u="";for(let c=0;c<a;c++)if(u+=t[c],l[c]!==void 0){const f=i[c];f===tx?u+=Xs(l[c]):f===nx?u+=Ct.transform(l[c]):u+=l[c]}return u}}const h7=e=>typeof e=="number"?0:e;function d7(e){const t=ix(e);return rx(e)(t.map(h7))}const Pi={test:o7,parse:ix,createTransformer:rx,getAnimatableNone:d7};function bh(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function p7({hue:e,saturation:t,lightness:i,alpha:a}){e/=360,t/=100,i/=100;let l=0,u=0,c=0;if(!t)l=u=c=i;else{const f=i<.5?i*(1+t):i+t-i*t,p=2*i-f;l=bh(p,f,e+1/3),u=bh(p,f,e),c=bh(p,f,e-1/3)}return{red:Math.round(l*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:a}}function mu(e,t){return i=>i>0?t:e}const Ze=(e,t,i)=>e+(t-e)*i,xh=(e,t,i)=>{const a=e*e,l=i*(t*t-a)+a;return l<0?0:Math.sqrt(l)},m7=[od,hr,ua],g7=e=>m7.find(t=>t.test(e));function D1(e){const t=g7(e);if(!t)return!1;let i=t.parse(e);return t===ua&&(i=p7(i)),i}const M1=(e,t)=>{const i=D1(e),a=D1(t);if(!i||!a)return mu(e,t);const l={...i};return u=>(l.red=xh(i.red,a.red,u),l.green=xh(i.green,a.green,u),l.blue=xh(i.blue,a.blue,u),l.alpha=Ze(i.alpha,a.alpha,u),hr.transform(l))},ud=new Set(["none","hidden"]);function y7(e,t){return ud.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}function v7(e,t){return i=>Ze(e,t,i)}function yp(e){return typeof e=="number"?v7:typeof e=="string"?pp(e)?mu:Ct.test(e)?M1:S7:Array.isArray(e)?ax:typeof e=="object"?Ct.test(e)?M1:b7:mu}function ax(e,t){const i=[...e],a=i.length,l=e.map((u,c)=>yp(u)(u,t[c]));return u=>{for(let c=0;c<a;c++)i[c]=l[c](u);return i}}function b7(e,t){const i={...e,...t},a={};for(const l in i)e[l]!==void 0&&t[l]!==void 0&&(a[l]=yp(e[l])(e[l],t[l]));return l=>{for(const u in a)i[u]=a[u](l);return i}}function x7(e,t){const i=[],a={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const u=t.types[l],c=e.indexes[u][a[u]],f=e.values[c]??0;i[l]=f,a[u]++}return i}const S7=(e,t)=>{const i=Pi.createTransformer(t),a=al(e),l=al(t);return a.indexes.var.length===l.indexes.var.length&&a.indexes.color.length===l.indexes.color.length&&a.indexes.number.length>=l.indexes.number.length?ud.has(e)&&!l.values.length||ud.has(t)&&!a.values.length?y7(e,t):vl(ax(x7(a,l),l.values),i):mu(e,t)};function sx(e,t,i){return typeof e=="number"&&typeof t=="number"&&typeof i=="number"?Ze(e,t,i):yp(e)(e,t)}const w7=e=>{const t=({timestamp:i})=>e(i);return{start:()=>Qe.update(t,!0),stop:()=>Hi(t),now:()=>St.isProcessing?St.timestamp:Ht.now()}},lx=(e,t,i=10)=>{let a="";const l=Math.max(Math.round(t/i),2);for(let u=0;u<l;u++)a+=e(u/(l-1))+", ";return`linear(${a.substring(0,a.length-2)})`},gu=2e4;function vp(e){let t=0;const i=50;let a=e.next(t);for(;!a.done&&t<gu;)t+=i,a=e.next(t);return t>=gu?1/0:t}function E7(e,t=100,i){const a=i({...e,keyframes:[0,t]}),l=Math.min(vp(a),gu);return{type:"keyframes",ease:u=>a.next(l*u).value/t,duration:zn(l)}}const T7=5;function ox(e,t,i){const a=Math.max(t-T7,0);return Pb(i-e(a),t-a)}const et={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},N1=.001;function C7({duration:e=et.duration,bounce:t=et.bounce,velocity:i=et.velocity,mass:a=et.mass}){let l,u,c=1-t;c=ci(et.minDamping,et.maxDamping,c),e=ci(et.minDuration,et.maxDuration,zn(e)),c<1?(l=d=>{const m=d*c,y=m*e,v=m-i,b=cd(d,c),w=Math.exp(-y);return N1-v/b*w},u=d=>{const y=d*c*e,v=y*i+i,b=Math.pow(c,2)*Math.pow(d,2)*e,w=Math.exp(-y),E=cd(Math.pow(d,2),c);return(-l(d)+N1>0?-1:1)*((v-b)*w)/E}):(l=d=>{const m=Math.exp(-d*e),y=(d-i)*e+1;return-.001+m*y},u=d=>{const m=Math.exp(-d*e),y=(i-d)*(e*e);return m*y});const f=5/e,p=R7(l,u,f);if(e=Bn(e),isNaN(p))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const d=Math.pow(p,2)*a;return{stiffness:d,damping:c*2*Math.sqrt(a*d),duration:e}}}const A7=12;function R7(e,t,i){let a=i;for(let l=1;l<A7;l++)a=a-e(a)/t(a);return a}function cd(e,t){return e*Math.sqrt(1-t*t)}const k7=["duration","bounce"],O7=["stiffness","damping","mass"];function L1(e,t){return t.some(i=>e[i]!==void 0)}function _7(e){let t={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!L1(e,O7)&&L1(e,k7))if(e.visualDuration){const i=e.visualDuration,a=2*Math.PI/(i*1.2),l=a*a,u=2*ci(.05,1,1-(e.bounce||0))*Math.sqrt(l);t={...t,mass:et.mass,stiffness:l,damping:u}}else{const i=C7(e);t={...t,...i,mass:et.mass},t.isResolvedFromDuration=!0}return t}function yu(e=et.visualDuration,t=et.bounce){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:l}=i;const u=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],f={done:!1,value:u},{stiffness:p,damping:d,mass:m,duration:y,velocity:v,isResolvedFromDuration:b}=_7({...i,velocity:-zn(i.velocity||0)}),w=v||0,E=d/(2*Math.sqrt(p*m)),R=c-u,C=zn(Math.sqrt(p/m)),M=Math.abs(R)<5;a||(a=M?et.restSpeed.granular:et.restSpeed.default),l||(l=M?et.restDelta.granular:et.restDelta.default);let O;if(E<1){const B=cd(C,E);O=L=>{const Z=Math.exp(-E*C*L);return c-Z*((w+E*C*R)/B*Math.sin(B*L)+R*Math.cos(B*L))}}else if(E===1)O=B=>c-Math.exp(-C*B)*(R+(w+C*R)*B);else{const B=C*Math.sqrt(E*E-1);O=L=>{const Z=Math.exp(-E*C*L),Q=Math.min(B*L,300);return c-Z*((w+E*C*R)*Math.sinh(Q)+B*R*Math.cosh(Q))/B}}const V={calculatedDuration:b&&y||null,next:B=>{const L=O(B);if(b)f.done=B>=y;else{let Z=B===0?w:0;E<1&&(Z=B===0?Bn(w):ox(O,B,L));const Q=Math.abs(Z)<=a,ee=Math.abs(c-L)<=l;f.done=Q&&ee}return f.value=f.done?c:L,f},toString:()=>{const B=Math.min(vp(V),gu),L=lx(Z=>V.next(B*Z).value,B,30);return B+"ms "+L},toTransition:()=>{}};return V}yu.applyToOptions=e=>{const t=E7(e,100,yu);return e.ease=t.ease,e.duration=Bn(t.duration),e.type="keyframes",e};function fd({keyframes:e,velocity:t=0,power:i=.8,timeConstant:a=325,bounceDamping:l=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:p,restDelta:d=.5,restSpeed:m}){const y=e[0],v={done:!1,value:y},b=Q=>f!==void 0&&Q<f||p!==void 0&&Q>p,w=Q=>f===void 0?p:p===void 0||Math.abs(f-Q)<Math.abs(p-Q)?f:p;let E=i*t;const R=y+E,C=c===void 0?R:c(R);C!==R&&(E=C-y);const M=Q=>-E*Math.exp(-Q/a),O=Q=>C+M(Q),V=Q=>{const ee=M(Q),fe=O(Q);v.done=Math.abs(ee)<=d,v.value=v.done?C:fe};let B,L;const Z=Q=>{b(v.value)&&(B=Q,L=yu({keyframes:[v.value,w(v.value)],velocity:ox(O,Q,v.value),damping:l,stiffness:u,restDelta:d,restSpeed:m}))};return Z(0),{calculatedDuration:null,next:Q=>{let ee=!1;return!L&&B===void 0&&(ee=!0,V(Q),Z(Q)),B!==void 0&&Q>=B?L.next(Q-B):(!ee&&V(Q),v)}}}function D7(e,t,i){const a=[],l=i||fi.mix||sx,u=e.length-1;for(let c=0;c<u;c++){let f=l(e[c],e[c+1]);if(t){const p=Array.isArray(t)?t[c]||vn:t;f=vl(p,f)}a.push(f)}return a}function M7(e,t,{clamp:i=!0,ease:a,mixer:l}={}){const u=e.length;if(op(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=D7(t,a,l),p=f.length,d=m=>{if(c&&m<e[0])return t[0];let y=0;if(p>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const v=il(e[y],e[y+1],m);return f[y](v)};return i?m=>d(ci(e[0],e[u-1],m)):d}function N7(e,t){const i=e[e.length-1];for(let a=1;a<=t;a++){const l=il(0,t,a);e.push(Ze(i,1,l))}}function L7(e){const t=[0];return N7(t,e.length-1),t}function j7(e,t){return e.map(i=>i*t)}function B7(e,t){return e.map(()=>t||$b).splice(0,e.length-1)}function Ks({duration:e=300,keyframes:t,times:i,ease:a="easeInOut"}){const l=XC(a)?a.map(R1):R1(a),u={done:!1,value:t[0]},c=j7(i&&i.length===t.length?i:L7(t),e),f=M7(c,t,{ease:Array.isArray(l)?l:B7(t,l)});return{calculatedDuration:e,next:p=>(u.value=f(p),u.done=p>=e,u)}}const z7=e=>e!==null;function bp(e,{repeat:t,repeatType:i="loop"},a,l=1){const u=e.filter(z7),f=l<0||t&&i!=="loop"&&t%2===1?0:u.length-1;return!f||a===void 0?u[f]:a}const U7={decay:fd,inertia:fd,tween:Ks,keyframes:Ks,spring:yu};function ux(e){typeof e.type=="string"&&(e.type=U7[e.type])}class xp{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,i){return this.finished.then(t,i)}}const V7=e=>e/100;class cx extends xp{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:i}=this.options;if(i&&i.updatedAt!==Ht.now()&&this.tick(Ht.now()),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ux(t);const{type:i=Ks,repeat:a=0,repeatDelay:l=0,repeatType:u,velocity:c=0}=t;let{keyframes:f}=t;const p=i||Ks;p!==Ks&&typeof f[0]!="number"&&(this.mixKeyframes=vl(V7,sx(f[0],f[1])),f=[0,100]);const d=p({...t,keyframes:f});u==="mirror"&&(this.mirroredGenerator=p({...t,keyframes:[...f].reverse(),velocity:-c})),d.calculatedDuration===null&&(d.calculatedDuration=vp(d));const{calculatedDuration:m}=d;this.calculatedDuration=m,this.resolvedDuration=m+l,this.totalDuration=this.resolvedDuration*(a+1)-l,this.generator=d}updateTime(t){const i=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(t,i=!1){const{generator:a,totalDuration:l,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:f,calculatedDuration:p}=this;if(this.startTime===null)return a.next(0);const{delay:d=0,keyframes:m,repeat:y,repeatType:v,repeatDelay:b,type:w,onUpdate:E,finalKeyframe:R}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-l/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),M=this.playbackSpeed>=0?C<0:C>l;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let O=this.currentTime,V=a;if(y){const Q=Math.min(this.currentTime,l)/f;let ee=Math.floor(Q),fe=Q%1;!fe&&Q>=1&&(fe=1),fe===1&&ee--,ee=Math.min(ee,y+1),!!(ee%2)&&(v==="reverse"?(fe=1-fe,b&&(fe-=b/f)):v==="mirror"&&(V=c)),O=ci(0,1,fe)*f}const B=M?{done:!1,value:m[0]}:V.next(O);u&&(B.value=u(B.value));let{done:L}=B;!M&&p!==null&&(L=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const Z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return Z&&w!==fd&&(B.value=bp(m,this.options,R,this.speed)),E&&E(B.value),Z&&this.finish(),B}then(t,i){return this.finished.then(t,i)}get duration(){return zn(this.calculatedDuration)}get time(){return zn(this.currentTime)}set time(t){t=Bn(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)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ht.now());const i=this.playbackSpeed!==t;this.playbackSpeed=t,i&&(this.time=zn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=w7,onPlay:i,startTime:a}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),i&&i();const l=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=l):this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime||(this.startTime=a??l),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(Ht.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),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()),t.observe(this)}}function H7(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const dr=e=>e*180/Math.PI,hd=e=>{const t=dr(Math.atan2(e[1],e[0]));return dd(t)},P7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:hd,rotateZ:hd,skewX:e=>dr(Math.atan(e[1])),skewY:e=>dr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},dd=e=>(e=e%360,e<0&&(e+=360),e),j1=hd,B1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),z1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),q7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:B1,scaleY:z1,scale:e=>(B1(e)+z1(e))/2,rotateX:e=>dd(dr(Math.atan2(e[6],e[5]))),rotateY:e=>dd(dr(Math.atan2(-e[2],e[0]))),rotateZ:j1,rotate:j1,skewX:e=>dr(Math.atan(e[4])),skewY:e=>dr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function U1(e){return e.includes("scale")?1:0}function pd(e,t){if(!e||e==="none")return U1(t);const i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,l;if(i)a=q7,l=i;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=P7,l=f}if(!l)return U1(t);const u=a[t],c=l[1].split(",").map(I7);return typeof u=="function"?u(c):c[u]}const F7=(e,t)=>{const{transform:i="none"}=getComputedStyle(e);return pd(i,t)};function I7(e){return parseFloat(e.trim())}const Ra=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ka=new Set(Ra),V1=e=>e===Aa||e===ve,Y7=new Set(["x","y","z"]),G7=Ra.filter(e=>!Y7.has(e));function X7(e){const t=[];return G7.forEach(i=>{const a=e.getValue(i);a!==void 0&&(t.push([i,a.get()]),a.set(i.startsWith("scale")?1:0))}),t}const va={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),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})=>pd(t,"x"),y:(e,{transform:t})=>pd(t,"y")};va.translateX=va.x;va.translateY=va.y;const mr=new Set;let md=!1,gd=!1,yd=!1;function fx(){if(gd){const e=Array.from(mr).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),i=new Map;t.forEach(a=>{const l=X7(a);l.length&&(i.set(a,l),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const l=i.get(a);l&&l.forEach(([u,c])=>{var f;(f=a.getValue(u))==null||f.set(c)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}gd=!1,md=!1,mr.forEach(e=>e.complete(yd)),mr.clear()}function hx(){mr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(gd=!0)})}function K7(){yd=!0,hx(),fx(),yd=!1}class Sp{constructor(t,i,a,l,u,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=i,this.name=a,this.motionValue=l,this.element=u,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(mr.add(this),md||(md=!0,Qe.read(hx),Qe.resolveKeyframes(fx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:i,element:a,motionValue:l}=this;if(t[0]===null){const u=l==null?void 0:l.get(),c=t[t.length-1];if(u!==void 0)t[0]=u;else if(a&&i){const f=a.readValue(i,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),l&&u===void 0&&l.set(t[0])}H7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),mr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,mr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Z7=e=>e.startsWith("--");function $7(e,t,i){Z7(t)?e.style.setProperty(t,i):e.style[t]=i}const Q7=up(()=>window.ScrollTimeline!==void 0),J7={};function W7(e,t){const i=up(e);return()=>J7[t]??i()}const dx=W7(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Is=([e,t,i,a])=>`cubic-bezier(${e}, ${t}, ${i}, ${a})`,H1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Is([0,.65,.55,1]),circOut:Is([.55,0,1,.45]),backIn:Is([.31,.01,.66,-.59]),backOut:Is([.33,1.53,.69,.99])};function px(e,t){if(e)return typeof e=="function"?dx()?lx(e,t):"ease-out":Qb(e)?Is(e):Array.isArray(e)?e.map(i=>px(i,t)||H1.easeOut):H1[e]}function e8(e,t,i,{delay:a=0,duration:l=300,repeat:u=0,repeatType:c="loop",ease:f="easeOut",times:p}={},d=void 0){const m={[t]:i};p&&(m.offset=p);const y=px(f,l);Array.isArray(y)&&(m.easing=y);const v={delay:a,duration:l,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return d&&(v.pseudoElement=d),e.animate(m,v)}function mx(e){return typeof e=="function"&&"applyToOptions"in e}function t8({type:e,...t}){return mx(e)&&dx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class n8 extends xp{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:i,name:a,keyframes:l,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:f,onComplete:p}=t;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=t,op(typeof t.type!="string");const d=t8(t);this.animation=e8(i,a,l,d,u),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const m=bp(l,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(m):$7(i,a,m),this.animation.cancel()}p==null||p(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,i;(i=(t=this.animation).finish)==null||i.call(t)}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(){var t,i;this.isPseudoElement||(i=(t=this.animation).commitStyles)==null||i.call(t)}get duration(){var i,a;const t=((a=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:a.call(i).duration)||0;return zn(Number(t))}get time(){return zn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Bn(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:i}){var a;return this.allowFlatten&&((a=this.animation.effect)==null||a.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Q7()?(this.animation.timeline=t,vn):i(this)}}const gx={anticipate:Xb,backInOut:Gb,circInOut:Zb};function i8(e){return e in gx}function r8(e){typeof e.ease=="string"&&i8(e.ease)&&(e.ease=gx[e.ease])}const P1=10;class a8 extends n8{constructor(t){r8(t),ux(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:i,onUpdate:a,onComplete:l,element:u,...c}=this.options;if(!i)return;if(t!==void 0){i.set(t);return}const f=new cx({...c,autoplay:!1}),p=Bn(this.finishedTime??this.time);i.setWithVelocity(f.sample(p-P1).value,f.sample(p).value,P1),f.stop()}}const q1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pi.test(e)||e==="0")&&!e.startsWith("url("));function s8(e){const t=e[0];if(e.length===1)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}function l8(e,t,i,a){const l=e[0];if(l===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],c=q1(l,t),f=q1(u,t);return!c||!f?!1:s8(e)||(i==="spring"||mx(i))&&a}const o8=new Set(["opacity","clipPath","filter","transform"]),u8=up(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function c8(e){const{motionValue:t,name:i,repeatDelay:a,repeatType:l,damping:u,type:c}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=t.owner.getProps();return u8()&&i&&o8.has(i)&&(i!=="transform"||!p)&&!f&&!a&&l!=="mirror"&&u!==0&&c!=="inertia"}const f8=40;class h8 extends xp{constructor({autoplay:t=!0,delay:i=0,type:a="keyframes",repeat:l=0,repeatDelay:u=0,repeatType:c="loop",keyframes:f,name:p,motionValue:d,element:m,...y}){var w;super(),this.stop=()=>{var E,R;this._animation?(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)):(R=this.keyframeResolver)==null||R.cancel()},this.createdAt=Ht.now();const v={autoplay:t,delay:i,type:a,repeat:l,repeatDelay:u,repeatType:c,name:p,motionValue:d,element:m,...y},b=(m==null?void 0:m.KeyframeResolver)||Sp;this.keyframeResolver=new b(f,(E,R,C)=>this.onKeyframesResolved(E,R,v,!C),p,d,m),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,i,a,l){this.keyframeResolver=void 0;const{name:u,type:c,velocity:f,delay:p,isHandoff:d,onUpdate:m}=a;this.resolvedAt=Ht.now(),l8(t,u,c,f)||((fi.instantAnimations||!p)&&(m==null||m(bp(t,a,i))),t[0]=t[t.length-1],a.duration=0,a.repeat=0);const v={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>f8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...a,keyframes:t},b=!d&&c8(v)?new a8({...v,element:v.motionValue.owner.current}):new cx(v);b.finished.then(()=>this.notifyFinished()).catch(vn),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,i){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||K7(),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.cancel()}}const d8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function p8(e){const t=d8.exec(e);if(!t)return[,];const[,i,a,l]=t;return[`--${i??a}`,l]}function yx(e,t,i=1){const[a,l]=p8(e);if(!a)return;const u=window.getComputedStyle(t).getPropertyValue(a);if(u){const c=u.trim();return Vb(c)?parseFloat(c):c}return pp(l)?yx(l,t,i+1):l}function wp(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const vx=new Set(["width","height","top","left","right","bottom",...Ra]),m8={test:e=>e==="auto",parse:e=>e},bx=e=>t=>t.test(e),xx=[Aa,ve,Un,zi,s7,a7,m8],F1=e=>xx.find(bx(e));function g8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Hb(e):!0}const y8=new Set(["brightness","contrast","saturate","opacity"]);function v8(e){const[t,i]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=i.match(mp)||[];if(!a)return e;const l=i.replace(a,"");let u=y8.has(t)?1:0;return a!==i&&(u*=100),t+"("+u+l+")"}const b8=/\b([a-z-]*)\(.*?\)/gu,vd={...Pi,getAnimatableNone:e=>{const t=e.match(b8);return t?t.map(v8).join(" "):e}},I1={...Aa,transform:Math.round},x8={rotate:zi,rotateX:zi,rotateY:zi,rotateZ:zi,scale:Io,scaleX:Io,scaleY:Io,scaleZ:Io,skew:zi,skewX:zi,skewY:zi,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:rl,originX:O1,originY:O1,originZ:ve},Ep={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,radius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,backgroundPositionX:ve,backgroundPositionY:ve,...x8,zIndex:I1,fillOpacity:rl,strokeOpacity:rl,numOctaves:I1},S8={...Ep,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:vd,WebkitFilter:vd},Sx=e=>S8[e];function wx(e,t){let i=Sx(e);return i!==vd&&(i=Pi),i.getAnimatableNone?i.getAnimatableNone(t):void 0}const w8=new Set(["auto","none","0"]);function E8(e,t,i){let a=0,l;for(;a<e.length&&!l;){const u=e[a];typeof u=="string"&&!w8.has(u)&&al(u).values.length&&(l=e[a]),a++}if(l&&i)for(const u of t)e[u]=wx(i,l)}class T8 extends Sp{constructor(t,i,a,l,u){super(t,i,a,l,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:i,name:a}=this;if(!i||!i.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let d=t[p];if(typeof d=="string"&&(d=d.trim(),pp(d))){const m=yx(d,i.current);m!==void 0&&(t[p]=m),p===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!vx.has(a)||t.length!==2)return;const[l,u]=t,c=F1(l),f=F1(u);if(c!==f)if(V1(c)&&V1(f))for(let p=0;p<t.length;p++){const d=t[p];typeof d=="string"&&(t[p]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:i}=this,a=[];for(let l=0;l<t.length;l++)(t[l]===null||g8(t[l]))&&a.push(l);a.length&&E8(t,a,i)}measureInitialState(){const{element:t,unresolvedKeyframes:i,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=va[a](t.measureViewportBox(),window.getComputedStyle(t.current)),i[0]=this.measuredOrigin;const l=i[i.length-1];l!==void 0&&t.getValue(a,l).jump(l,!1)}measureEndState(){var f;const{element:t,name:i,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const l=t.getValue(i);l&&l.jump(this.measuredOrigin,!1);const u=a.length-1,c=a[u];a[u]=va[i](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(f=this.removedTransforms)!=null&&f.length&&this.removedTransforms.forEach(([p,d])=>{t.getValue(p).set(d)}),this.resolveNoneKeyframes()}}function C8(e,t,i){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const l=(i==null?void 0:i[e])??a.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}const{schedule:Tp}=Jb(queueMicrotask,!1),En={x:!1,y:!1};function Ex(){return En.x||En.y}function A8(e){return e==="x"||e==="y"?En[e]?null:(En[e]=!0,()=>{En[e]=!1}):En.x||En.y?null:(En.x=En.y=!0,()=>{En.x=En.y=!1})}function Tx(e,t){const i=C8(e),a=new AbortController,l={passive:!0,...t,signal:a.signal};return[i,l,()=>a.abort()]}function Y1(e){return!(e.pointerType==="touch"||Ex())}function R8(e,t,i={}){const[a,l,u]=Tx(e,i),c=f=>{if(!Y1(f))return;const{target:p}=f,d=t(p,f);if(typeof d!="function"||!p)return;const m=y=>{Y1(y)&&(d(y),p.removeEventListener("pointerleave",m))};p.addEventListener("pointerleave",m,l)};return a.forEach(f=>{f.addEventListener("pointerenter",c,l)}),u}const Cx=(e,t)=>t?e===t?!0:Cx(e,t.parentElement):!1,Cp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,k8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function O8(e){return k8.has(e.tagName)||e.tabIndex!==-1}const Ys=new WeakSet;function G1(e){return t=>{t.key==="Enter"&&e(t)}}function Sh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _8=(e,t)=>{const i=e.currentTarget;if(!i)return;const a=G1(()=>{if(Ys.has(i))return;Sh(i,"down");const l=G1(()=>{Sh(i,"up")}),u=()=>Sh(i,"cancel");i.addEventListener("keyup",l,t),i.addEventListener("blur",u,t)});i.addEventListener("keydown",a,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",a),t)};function X1(e){return Cp(e)&&!Ex()}function D8(e,t,i={}){const[a,l,u]=Tx(e,i),c=f=>{const p=f.currentTarget;if(!X1(f)||Ys.has(p))return;Ys.add(p);const d=t(p,f),m=(b,w)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),!(!X1(b)||!Ys.has(p))&&(Ys.delete(p),typeof d=="function"&&d(b,{success:w}))},y=b=>{m(b,p===window||p===document||i.useGlobalTarget||Cx(p,b.target))},v=b=>{m(b,!1)};window.addEventListener("pointerup",y,l),window.addEventListener("pointercancel",v,l)};return a.forEach(f=>{(i.useGlobalTarget?window:f).addEventListener("pointerdown",c,l),f instanceof HTMLElement&&(f.addEventListener("focus",d=>_8(d,l)),!O8(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),u}const K1=30,M8=e=>!isNaN(parseFloat(e));class N8{constructor(t,i={}){this.version="12.9.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,l=!0)=>{var c,f;const u=Ht.now();this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current)),l&&((f=this.events.renderRequest)==null||f.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=i.owner}setCurrent(t){this.current=t,this.updatedAt=Ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=M8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,i){this.events[t]||(this.events[t]=new cp);const a=this.events[t].add(i);return t==="change"?()=>{a(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,i){this.passiveEffect=t,this.stopPassiveEffect=i}set(t,i=!0){!i||!this.passiveEffect?this.updateAndNotify(t,i):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,i,a){this.set(i),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,i=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>K1)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,K1);return Pb(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(t){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=t(i),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(){var t;(t=this.events.destroy)==null||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function sl(e,t){return new N8(e,t)}const L8=[...xx,Ct,Pi],j8=e=>L8.find(bx(e)),Ax=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Rx=_.createContext({strict:!1}),Z1={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"]},ba={};for(const e in Z1)ba[e]={isEnabled:t=>Z1[e].some(i=>!!t[i])};function B8(e){for(const t in e)ba[t]={...ba[t],...e[t]}}const z8=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 vu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||z8.has(e)}let kx=e=>!vu(e);function U8(e){e&&(kx=t=>t.startsWith("on")?!vu(t):e(t))}try{U8(require("@emotion/is-prop-valid").default)}catch{}function V8(e,t,i){const a={};for(const l in e)l==="values"&&typeof e.values=="object"||(kx(l)||i===!0&&vu(l)||!t&&!vu(l)||e.draggable&&l.startsWith("onDrag"))&&(a[l]=e[l]);return a}function H8(e){if(typeof Proxy>"u")return e;const t=new Map,i=(...a)=>e(...a);return new Proxy(i,{get:(a,l)=>l==="create"?e:(t.has(l)||t.set(l,e(l)),t.get(l))})}const Lu=_.createContext({});function ju(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ll(e){return typeof e=="string"||Array.isArray(e)}const Ap=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rp=["initial",...Ap];function Bu(e){return ju(e.animate)||Rp.some(t=>ll(e[t]))}function Ox(e){return!!(Bu(e)||e.variants)}function P8(e,t){if(Bu(e)){const{initial:i,animate:a}=e;return{initial:i===!1||ll(i)?i:void 0,animate:ll(a)?a:void 0}}return e.inherit!==!1?t:{}}function q8(e){const{initial:t,animate:i}=P8(e,_.useContext(Lu));return _.useMemo(()=>({initial:t,animate:i}),[$1(t),$1(i)])}function $1(e){return Array.isArray(e)?e.join(" "):e}const F8=Symbol.for("motionComponentSymbol");function ca(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function I8(e,t,i){return _.useCallback(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),i&&(typeof i=="function"?i(a):ca(i)&&(i.current=a))},[t])}const kp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Y8="framerAppearId",_x="data-"+kp(Y8),Dx=_.createContext({});function G8(e,t,i,a,l){var E,R;const{visualElement:u}=_.useContext(Lu),c=_.useContext(Rx),f=_.useContext(Nu),p=_.useContext(ap).reducedMotion,d=_.useRef(null);a=a||c.renderer,!d.current&&a&&(d.current=a(e,{visualState:t,parent:u,props:i,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:p}));const m=d.current,y=_.useContext(Dx);m&&!m.projection&&l&&(m.type==="html"||m.type==="svg")&&X8(d.current,i,l,y);const v=_.useRef(!1);_.useInsertionEffect(()=>{m&&v.current&&m.update(i,f)});const b=i[_x],w=_.useRef(!!b&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,b))&&((R=window.MotionHasOptimisedAnimation)==null?void 0:R.call(window,b)));return Bb(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Tp.render(m.render),w.current&&m.animationState&&m.animationState.animateChanges())}),_.useEffect(()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1))}),m}function X8(e,t,i,a){const{layoutId:l,layout:u,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:d,layoutCrossfade:m}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:Mx(e.parent)),e.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||f&&ca(f),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:a,crossfade:m,layoutScroll:p,layoutRoot:d})}function Mx(e){if(e)return e.options.allowProjection!==!1?e.projection:Mx(e.parent)}function K8({preloadedFeatures:e,createVisualElement:t,useRender:i,useVisualState:a,Component:l}){e&&B8(e);function u(f,p){let d;const m={..._.useContext(ap),...f,layoutId:Z8(f)},{isStatic:y}=m,v=q8(f),b=a(f,y);if(!y&&rp){$8();const w=Q8(m);d=w.MeasureLayout,v.visualElement=G8(l,b,m,t,w.ProjectionNode)}return A.jsxs(Lu.Provider,{value:v,children:[d&&v.visualElement?A.jsx(d,{visualElement:v.visualElement,...m}):null,i(l,f,I8(b,v.visualElement,p),b,y,v.visualElement)]})}u.displayName=`motion.${typeof l=="string"?l:`create(${l.displayName??l.name??""})`}`;const c=_.forwardRef(u);return c[F8]=l,c}function Z8({layoutId:e}){const t=_.useContext(np).id;return t&&e!==void 0?t+"-"+e:e}function $8(e,t){_.useContext(Rx).strict}function Q8(e){const{drag:t,layout:i}=ba;if(!t&&!i)return{};const a={...t,...i};return{MeasureLayout:t!=null&&t.isEnabled(e)||i!=null&&i.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const ol={};function J8(e){for(const t in e)ol[t]=e[t],dp(t)&&(ol[t].isCSSVariable=!0)}function Nx(e,{layout:t,layoutId:i}){return ka.has(e)||e.startsWith("origin")||(t||i!==void 0)&&(!!ol[e]||e==="opacity")}const kt=e=>!!(e&&e.getVelocity),W8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eA=Ra.length;function tA(e,t,i){let a="",l=!0;for(let u=0;u<eA;u++){const c=Ra[u],f=e[c];if(f===void 0)continue;let p=!0;if(typeof f=="number"?p=f===(c.startsWith("scale")?1:0):p=parseFloat(f)===0,!p||i){const d=Ax(f,Ep[c]);if(!p){l=!1;const m=W8[c]||c;a+=`${m}(${d}) `}i&&(t[c]=d)}}return a=a.trim(),i?a=i(t,l?"":a):l&&(a="none"),a}function Op(e,t,i){const{style:a,vars:l,transformOrigin:u}=e;let c=!1,f=!1;for(const p in t){const d=t[p];if(ka.has(p)){c=!0;continue}else if(dp(p)){l[p]=d;continue}else{const m=Ax(d,Ep[p]);p.startsWith("origin")?(f=!0,u[p]=m):a[p]=m}}if(t.transform||(c||i?a.transform=tA(t,e.transform,i):a.transform&&(a.transform="none")),f){const{originX:p="50%",originY:d="50%",originZ:m=0}=u;a.transformOrigin=`${p} ${d} ${m}`}}const _p=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lx(e,t,i){for(const a in t)!kt(t[a])&&!Nx(a,i)&&(e[a]=t[a])}function nA({transformTemplate:e},t){return _.useMemo(()=>{const i=_p();return Op(i,t,e),Object.assign({},i.vars,i.style)},[t])}function iA(e,t){const i=e.style||{},a={};return Lx(a,i,e),Object.assign(a,nA(e,t)),a}function rA(e,t){const i={},a=iA(e,t);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i}const aA=["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 Dp(e){return typeof e!="string"||e.includes("-")?!1:!!(aA.indexOf(e)>-1||/[A-Z]/u.test(e))}const sA={offset:"stroke-dashoffset",array:"stroke-dasharray"},lA={offset:"strokeDashoffset",array:"strokeDasharray"};function oA(e,t,i=1,a=0,l=!0){e.pathLength=1;const u=l?sA:lA;e[u.offset]=ve.transform(-a);const c=ve.transform(t),f=ve.transform(i);e[u.array]=`${c} ${f}`}function jx(e,{attrX:t,attrY:i,attrScale:a,pathLength:l,pathSpacing:u=1,pathOffset:c=0,...f},p,d){if(Op(e,f,d),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y}=e;m.transform&&(y.transform=m.transform,delete m.transform),(y.transform||m.transformOrigin)&&(y.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),y.transform&&(y.transformBox="fill-box",delete m.transformBox),t!==void 0&&(m.x=t),i!==void 0&&(m.y=i),a!==void 0&&(m.scale=a),l!==void 0&&oA(m,l,u,c,!1)}const Bx=()=>({..._p(),attrs:{}}),zx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uA(e,t,i,a){const l=_.useMemo(()=>{const u=Bx();return jx(u,t,zx(a),e.transformTemplate),{...u.attrs,style:{...u.style}}},[t]);if(e.style){const u={};Lx(u,e.style,e),l.style={...u,...l.style}}return l}function cA(e=!1){return(i,a,l,{latestValues:u},c)=>{const p=(Dp(i)?uA:rA)(a,u,c,i),d=V8(a,typeof i=="string",e),m=i!==_.Fragment?{...d,...p,ref:l}:{},{children:y}=a,v=_.useMemo(()=>kt(y)?y.get():y,[y]);return _.createElement(i,{...m,children:v})}}function Q1(e){const t=[{},{}];return e==null||e.values.forEach((i,a)=>{t[0][a]=i.get(),t[1][a]=i.getVelocity()}),t}function Mp(e,t,i,a){if(typeof t=="function"){const[l,u]=Q1(a);t=t(i!==void 0?i:e.custom,l,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[l,u]=Q1(a);t=t(i!==void 0?i:e.custom,l,u)}return t}function ou(e){return kt(e)?e.get():e}function fA({scrapeMotionValuesFromProps:e,createRenderState:t},i,a,l){return{latestValues:hA(i,a,l,e),renderState:t()}}const Ux=e=>(t,i)=>{const a=_.useContext(Lu),l=_.useContext(Nu),u=()=>fA(e,t,a,l);return i?u():ip(u)};function hA(e,t,i,a){const l={},u=a(e,{});for(const v in u)l[v]=ou(u[v]);let{initial:c,animate:f}=e;const p=Bu(e),d=Ox(e);t&&d&&!p&&e.inherit!==!1&&(c===void 0&&(c=t.initial),f===void 0&&(f=t.animate));let m=i?i.initial===!1:!1;m=m||c===!1;const y=m?f:c;if(y&&typeof y!="boolean"&&!ju(y)){const v=Array.isArray(y)?y:[y];for(let b=0;b<v.length;b++){const w=Mp(e,v[b]);if(w){const{transitionEnd:E,transition:R,...C}=w;for(const M in C){let O=C[M];if(Array.isArray(O)){const V=m?O.length-1:0;O=O[V]}O!==null&&(l[M]=O)}for(const M in E)l[M]=E[M]}}}return l}function Np(e,t,i){var u;const{style:a}=e,l={};for(const c in a)(kt(a[c])||t.style&&kt(t.style[c])||Nx(c,e)||((u=i==null?void 0:i.getValue(c))==null?void 0:u.liveStyle)!==void 0)&&(l[c]=a[c]);return l}const dA={useVisualState:Ux({scrapeMotionValuesFromProps:Np,createRenderState:_p})};function Vx(e,t,i){const a=Np(e,t,i);for(const l in e)if(kt(e[l])||kt(t[l])){const u=Ra.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;a[u]=e[l]}return a}const pA={useVisualState:Ux({scrapeMotionValuesFromProps:Vx,createRenderState:Bx})};function mA(e,t){return function(a,{forwardMotionProps:l}={forwardMotionProps:!1}){const c={...Dp(a)?pA:dA,preloadedFeatures:e,useRender:cA(l),createVisualElement:t,Component:a};return K8(c)}}function ul(e,t,i){const a=e.getProps();return Mp(a,t,i!==void 0?i:a.custom,e)}const bd=e=>Array.isArray(e);function gA(e,t,i){e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,sl(i))}function yA(e){return bd(e)?e[e.length-1]||0:e}function vA(e,t){const i=ul(e,t);let{transitionEnd:a={},transition:l={},...u}=i||{};u={...u,...a};for(const c in u){const f=yA(u[c]);gA(e,c,f)}}function bA(e){return!!(kt(e)&&e.add)}function xd(e,t){const i=e.getValue("willChange");if(bA(i))return i.add(t);if(!i&&fi.WillChange){const a=new fi.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function Hx(e){return e.props[_x]}const xA=e=>e!==null;function SA(e,{repeat:t,repeatType:i="loop"},a){const l=e.filter(xA),u=t&&i!=="loop"&&t%2===1?0:l.length-1;return l[u]}const wA={type:"spring",stiffness:500,damping:25,restSpeed:10},EA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TA={type:"keyframes",duration:.8},CA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AA=(e,{keyframes:t})=>t.length>2?TA:ka.has(e)?e.startsWith("scale")?EA(t[1]):wA:CA;function RA({when:e,delay:t,delayChildren:i,staggerChildren:a,staggerDirection:l,repeat:u,repeatType:c,repeatDelay:f,from:p,elapsed:d,...m}){return!!Object.keys(m).length}const Lp=(e,t,i,a={},l,u)=>c=>{const f=wp(a,e)||{},p=f.delay||a.delay||0;let{elapsed:d=0}=a;d=d-Bn(p);const m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-d,onUpdate:v=>{t.set(v),f.onUpdate&&f.onUpdate(v)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:u?void 0:l};RA(f)||Object.assign(m,AA(e,m)),m.duration&&(m.duration=Bn(m.duration)),m.repeatDelay&&(m.repeatDelay=Bn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(y=!0)),(fi.instantAnimations||fi.skipAnimations)&&(y=!0,m.duration=0,m.delay=0),m.allowFlatten=!f.type&&!f.ease,y&&!u&&t.get()!==void 0){const v=SA(m.keyframes,f);if(v!==void 0){Qe.update(()=>{m.onUpdate(v),m.onComplete()});return}}return new h8(m)};function kA({protectedKeys:e,needsAnimating:t},i){const a=e.hasOwnProperty(i)&&t[i]!==!0;return t[i]=!1,a}function Px(e,t,{delay:i=0,transitionOverride:a,type:l}={}){let{transition:u=e.getDefaultTransition(),transitionEnd:c,...f}=t;a&&(u=a);const p=[],d=l&&e.animationState&&e.animationState.getState()[l];for(const m in f){const y=e.getValue(m,e.latestValues[m]??null),v=f[m];if(v===void 0||d&&kA(d,m))continue;const b={delay:i,...wp(u||{},m)},w=y.get();if(w!==void 0&&!y.isAnimating&&!Array.isArray(v)&&v===w&&!b.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const C=Hx(e);if(C){const M=window.MotionHandoffAnimation(C,m,Qe);M!==null&&(b.startTime=M,E=!0)}}xd(e,m),y.start(Lp(m,y,v,e.shouldReduceMotion&&vx.has(m)?{type:!1}:b,e,E));const R=y.animation;R&&p.push(R)}return c&&Promise.all(p).then(()=>{Qe.update(()=>{c&&vA(e,c)})}),p}function Sd(e,t,i={}){var p;const a=ul(e,t,i.type==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=a||{};i.transitionOverride&&(l=i.transitionOverride);const u=a?()=>Promise.all(Px(e,a,i)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:v}=l;return OA(e,t,m+d,y,v,i)}:()=>Promise.resolve(),{when:f}=l;if(f){const[d,m]=f==="beforeChildren"?[u,c]:[c,u];return d().then(()=>m())}else return Promise.all([u(),c(i.delay)])}function OA(e,t,i=0,a=0,l=1,u){const c=[],f=(e.variantChildren.size-1)*a,p=l===1?(d=0)=>d*a:(d=0)=>f-d*a;return Array.from(e.variantChildren).sort(_A).forEach((d,m)=>{d.notify("AnimationStart",t),c.push(Sd(d,t,{...u,delay:i+p(m)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(c)}function _A(e,t){return e.sortNodePosition(t)}function DA(e,t,i={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const l=t.map(u=>Sd(e,u,i));a=Promise.all(l)}else if(typeof t=="string")a=Sd(e,t,i);else{const l=typeof t=="function"?ul(e,t,i.custom):t;a=Promise.all(Px(e,l,i))}return a.then(()=>{e.notify("AnimationComplete",t)})}function qx(e,t){if(!Array.isArray(t))return!1;const i=t.length;if(i!==e.length)return!1;for(let a=0;a<i;a++)if(t[a]!==e[a])return!1;return!0}const MA=Rp.length;function Fx(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?Fx(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const t={};for(let i=0;i<MA;i++){const a=Rp[i],l=e.props[a];(ll(l)||l===!1)&&(t[a]=l)}return t}const NA=[...Ap].reverse(),LA=Ap.length;function jA(e){return t=>Promise.all(t.map(({animation:i,options:a})=>DA(e,i,a)))}function BA(e){let t=jA(e),i=J1(),a=!0;const l=p=>(d,m)=>{var v;const y=ul(e,m,p==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(y){const{transition:b,transitionEnd:w,...E}=y;d={...d,...E,...w}}return d};function u(p){t=p(e)}function c(p){const{props:d}=e,m=Fx(e.parent)||{},y=[],v=new Set;let b={},w=1/0;for(let R=0;R<LA;R++){const C=NA[R],M=i[C],O=d[C]!==void 0?d[C]:m[C],V=ll(O),B=C===p?M.isActive:null;B===!1&&(w=R);let L=O===m[C]&&O!==d[C]&&V;if(L&&a&&e.manuallyAnimateOnMount&&(L=!1),M.protectedKeys={...b},!M.isActive&&B===null||!O&&!M.prevProp||ju(O)||typeof O=="boolean")continue;const Z=zA(M.prevProp,O);let Q=Z||C===p&&M.isActive&&!L&&V||R>w&&V,ee=!1;const fe=Array.isArray(O)?O:[O];let ie=fe.reduce(l(C),{});B===!1&&(ie={});const{prevResolvedValues:ne={}}=M,ue={...ne,...ie},ae=$=>{Q=!0,v.has($)&&(ee=!0,v.delete($)),M.needsAnimating[$]=!0;const re=e.getValue($);re&&(re.liveStyle=!1)};for(const $ in ue){const re=ie[$],we=ne[$];if(b.hasOwnProperty($))continue;let S=!1;bd(re)&&bd(we)?S=!qx(re,we):S=re!==we,S?re!=null?ae($):v.add($):re!==void 0&&v.has($)?ae($):M.protectedKeys[$]=!0}M.prevProp=O,M.prevResolvedValues=ie,M.isActive&&(b={...b,...ie}),a&&e.blockInitialAnimation&&(Q=!1),Q&&(!(L&&Z)||ee)&&y.push(...fe.map($=>({animation:$,options:{type:C}})))}if(v.size){const R={};if(typeof d.initial!="boolean"){const C=ul(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(R.transition=C.transition)}v.forEach(C=>{const M=e.getBaseTarget(C),O=e.getValue(C);O&&(O.liveStyle=!0),R[C]=M??null}),y.push({animation:R})}let E=!!y.length;return a&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(E=!1),a=!1,E?t(y):Promise.resolve()}function f(p,d){var y;if(i[p].isActive===d)return Promise.resolve();(y=e.variantChildren)==null||y.forEach(v=>{var b;return(b=v.animationState)==null?void 0:b.setActive(p,d)}),i[p].isActive=d;const m=c(p);for(const v in i)i[v].protectedKeys={};return m}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>i,reset:()=>{i=J1(),a=!0}}}function zA(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qx(t,e):!1}function or(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function J1(){return{animate:or(!0),whileInView:or(),whileHover:or(),whileTap:or(),whileDrag:or(),whileFocus:or(),exit:or()}}class Fi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class UA extends Fi{constructor(t){super(t),t.animationState||(t.animationState=BA(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ju(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:i}=this.node.prevProps||{};t!==i&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let VA=0;class HA extends Fi{constructor(){super(...arguments),this.id=VA++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;const l=this.node.animationState.setActive("exit",!t);i&&!t&&l.then(()=>{i(this.id)})}mount(){const{register:t,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const PA={animation:{Feature:UA},exit:{Feature:HA}};function cl(e,t,i,a={passive:!0}){return e.addEventListener(t,i,a),()=>e.removeEventListener(t,i)}function Sl(e){return{point:{x:e.pageX,y:e.pageY}}}const qA=e=>t=>Cp(t)&&e(t,Sl(t));function Zs(e,t,i,a){return cl(e,t,qA(i),a)}function Ix({top:e,left:t,right:i,bottom:a}){return{x:{min:t,max:i},y:{min:e,max:a}}}function FA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function IA(e,t){if(!t)return e;const i=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:a.y,right:a.x}}const Yx=1e-4,YA=1-Yx,GA=1+Yx,Gx=.01,XA=0-Gx,KA=0+Gx;function Mt(e){return e.max-e.min}function ZA(e,t,i){return Math.abs(e-t)<=i}function W1(e,t,i,a=.5){e.origin=a,e.originPoint=Ze(t.min,t.max,e.origin),e.scale=Mt(i)/Mt(t),e.translate=Ze(i.min,i.max,e.origin)-e.originPoint,(e.scale>=YA&&e.scale<=GA||isNaN(e.scale))&&(e.scale=1),(e.translate>=XA&&e.translate<=KA||isNaN(e.translate))&&(e.translate=0)}function $s(e,t,i,a){W1(e.x,t.x,i.x,a?a.originX:void 0),W1(e.y,t.y,i.y,a?a.originY:void 0)}function e2(e,t,i){e.min=i.min+t.min,e.max=e.min+Mt(t)}function $A(e,t,i){e2(e.x,t.x,i.x),e2(e.y,t.y,i.y)}function t2(e,t,i){e.min=t.min-i.min,e.max=e.min+Mt(t)}function Qs(e,t,i){t2(e.x,t.x,i.x),t2(e.y,t.y,i.y)}const n2=()=>({translate:0,scale:1,origin:0,originPoint:0}),fa=()=>({x:n2(),y:n2()}),i2=()=>({min:0,max:0}),it=()=>({x:i2(),y:i2()});function mn(e){return[e("x"),e("y")]}function wh(e){return e===void 0||e===1}function wd({scale:e,scaleX:t,scaleY:i}){return!wh(e)||!wh(t)||!wh(i)}function ur(e){return wd(e)||Xx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Xx(e){return r2(e.x)||r2(e.y)}function r2(e){return e&&e!=="0%"}function bu(e,t,i){const a=e-i,l=t*a;return i+l}function a2(e,t,i,a,l){return l!==void 0&&(e=bu(e,l,a)),bu(e,i,a)+t}function Ed(e,t=0,i=1,a,l){e.min=a2(e.min,t,i,a,l),e.max=a2(e.max,t,i,a,l)}function Kx(e,{x:t,y:i}){Ed(e.x,t.translate,t.scale,t.originPoint),Ed(e.y,i.translate,i.scale,i.originPoint)}const s2=.999999999999,l2=1.0000000000001;function QA(e,t,i,a=!1){const l=i.length;if(!l)return;t.x=t.y=1;let u,c;for(let f=0;f<l;f++){u=i[f],c=u.projectionDelta;const{visualElement:p}=u.options;p&&p.props.style&&p.props.style.display==="contents"||(a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&da(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,Kx(e,c)),a&&ur(u.latestValues)&&da(e,u.latestValues))}t.x<l2&&t.x>s2&&(t.x=1),t.y<l2&&t.y>s2&&(t.y=1)}function ha(e,t){e.min=e.min+t,e.max=e.max+t}function o2(e,t,i,a,l=.5){const u=Ze(e.min,e.max,l);Ed(e,t,i,u,a)}function da(e,t){o2(e.x,t.x,t.scaleX,t.scale,t.originX),o2(e.y,t.y,t.scaleY,t.scale,t.originY)}function Zx(e,t){return Ix(IA(e.getBoundingClientRect(),t))}function JA(e,t,i){const a=Zx(e,i),{scroll:l}=t;return l&&(ha(a.x,l.offset.x),ha(a.y,l.offset.y)),a}const $x=({current:e})=>e?e.ownerDocument.defaultView:null,u2=(e,t)=>Math.abs(e-t);function WA(e,t){const i=u2(e.x,t.x),a=u2(e.y,t.y);return Math.sqrt(i**2+a**2)}class Qx{constructor(t,i,{transformPagePoint:a,contextWindow:l,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Th(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,b=WA(y.offset,{x:0,y:0})>=3;if(!v&&!b)return;const{point:w}=y,{timestamp:E}=St;this.history.push({...w,timestamp:E});const{onStart:R,onMove:C}=this.handlers;v||(R&&R(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,y)},this.handlePointerMove=(y,v)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Eh(v,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(y,v)=>{this.end();const{onEnd:b,onSessionEnd:w,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=Th(y.type==="pointercancel"?this.lastMoveEventInfo:Eh(v,this.transformPagePoint),this.history);this.startEvent&&b&&b(y,R),w&&w(y,R)},!Cp(t))return;this.dragSnapToOrigin=u,this.handlers=i,this.transformPagePoint=a,this.contextWindow=l||window;const c=Sl(t),f=Eh(c,this.transformPagePoint),{point:p}=f,{timestamp:d}=St;this.history=[{...p,timestamp:d}];const{onSessionStart:m}=i;m&&m(t,Th(f,this.history)),this.removeListeners=vl(Zs(this.contextWindow,"pointermove",this.handlePointerMove),Zs(this.contextWindow,"pointerup",this.handlePointerUp),Zs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Hi(this.updatePoint)}}function Eh(e,t){return t?{point:t(e.point)}:e}function c2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Th({point:e},t){return{point:e,delta:c2(e,Jx(t)),offset:c2(e,e9(t)),velocity:t9(t,.1)}}function e9(e){return e[0]}function Jx(e){return e[e.length-1]}function t9(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,a=null;const l=Jx(e);for(;i>=0&&(a=e[i],!(l.timestamp-a.timestamp>Bn(t)));)i--;if(!a)return{x:0,y:0};const u=zn(l.timestamp-a.timestamp);if(u===0)return{x:0,y:0};const c={x:(l.x-a.x)/u,y:(l.y-a.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function n9(e,{min:t,max:i},a){return t!==void 0&&e<t?e=a?Ze(t,e,a.min):Math.max(e,t):i!==void 0&&e>i&&(e=a?Ze(i,e,a.max):Math.min(e,i)),e}function f2(e,t,i){return{min:t!==void 0?e.min+t:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function i9(e,{top:t,left:i,bottom:a,right:l}){return{x:f2(e.x,i,l),y:f2(e.y,t,a)}}function h2(e,t){let i=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,a]=[a,i]),{min:i,max:a}}function r9(e,t){return{x:h2(e.x,t.x),y:h2(e.y,t.y)}}function a9(e,t){let i=.5;const a=Mt(e),l=Mt(t);return l>a?i=il(t.min,t.max-a,e.min):a>l&&(i=il(e.min,e.max-l,t.min)),ci(0,1,i)}function s9(e,t){const i={};return t.min!==void 0&&(i.min=t.min-e.min),t.max!==void 0&&(i.max=t.max-e.min),i}const Td=.35;function l9(e=Td){return e===!1?e=0:e===!0&&(e=Td),{x:d2(e,"left","right"),y:d2(e,"top","bottom")}}function d2(e,t,i){return{min:p2(e,t),max:p2(e,i)}}function p2(e,t){return typeof e=="number"?e:e[t]||0}const o9=new WeakMap;class u9{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=it(),this.visualElement=t}start(t,{snapToCursor:i=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=m=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(Sl(m).point)},u=(m,y)=>{const{drag:v,dragPropagation:b,onDragStart:w}=this.getProps();if(v&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=A8(v),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mn(R=>{let C=this.getAxisMotionValue(R).get()||0;if(Un.test(C)){const{projection:M}=this.visualElement;if(M&&M.layout){const O=M.layout.layoutBox[R];O&&(C=Mt(O)*(parseFloat(C)/100))}}this.originPoint[R]=C}),w&&Qe.postRender(()=>w(m,y)),xd(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},c=(m,y)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:w,onDrag:E}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:R}=y;if(b&&this.currentDirection===null){this.currentDirection=c9(R),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",y.point,R),this.updateAxis("y",y.point,R),this.visualElement.render(),E&&E(m,y)},f=(m,y)=>this.stop(m,y),p=()=>mn(m=>{var y;return this.getAnimationState(m)==="paused"&&((y=this.getAxisMotionValue(m).animation)==null?void 0:y.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Qx(t,{onSessionStart:l,onStart:u,onMove:c,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:$x(this.visualElement)})}stop(t,i){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&Qe.postRender(()=>u(t,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:i}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(t,i,a){const{drag:l}=this.getProps();if(!a||!Yo(t,l,this.currentDirection))return;const u=this.getAxisMotionValue(t);let c=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(c=n9(c,this.constraints[t],this.elastic[t])),u.set(c)}resolveConstraints(){var u;const{dragConstraints:t,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,l=this.constraints;t&&ca(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=i9(a.layoutBox,t):this.constraints=!1,this.elastic=l9(i),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&mn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=s9(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!ca(t))return!1;const a=t.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const u=JA(a,l.root,this.visualElement.getTransformPagePoint());let c=r9(l.layout.layoutBox,u);if(i){const f=i(FA(c));this.hasMutatedConstraints=!!f,f&&(c=Ix(f))}return c}startAnimation(t){const{drag:i,dragMomentum:a,dragElastic:l,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),p=this.constraints||{},d=mn(m=>{if(!Yo(m,i,this.currentDirection))return;let y=p&&p[m]||{};c&&(y={min:0,max:0});const v=l?200:1e6,b=l?40:1e7,w={type:"inertia",velocity:a?t[m]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...u,...y};return this.startAxisValueAnimation(m,w)});return Promise.all(d).then(f)}startAxisValueAnimation(t,i){const a=this.getAxisMotionValue(t);return xd(this.visualElement,t),a.start(Lp(t,a,0,i,this.visualElement,!1))}stopAnimation(){mn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){mn(t=>{var i;return(i=this.getAxisMotionValue(t).animation)==null?void 0:i.pause()})}getAnimationState(t){var i;return(i=this.getAxisMotionValue(t).animation)==null?void 0:i.state}getAxisMotionValue(t){const i=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),l=a[i];return l||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){mn(i=>{const{drag:a}=this.getProps();if(!Yo(i,a,this.currentDirection))return;const{projection:l}=this.visualElement,u=this.getAxisMotionValue(i);if(l&&l.layout){const{min:c,max:f}=l.layout.layoutBox[i];u.set(t[i]-Ze(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:i}=this.getProps(),{projection:a}=this.visualElement;if(!ca(i)||!a||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};mn(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const p=f.get();l[c]=a9({min:p,max:p},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),mn(c=>{if(!Yo(c,t,null))return;const f=this.getAxisMotionValue(c),{min:p,max:d}=this.constraints[c];f.set(Ze(p,d,l[c]))})}addListeners(){if(!this.visualElement.current)return;o9.set(this.visualElement,this);const t=this.visualElement.current,i=Zs(t,"pointerdown",p=>{const{drag:d,dragListener:m=!0}=this.getProps();d&&m&&this.start(p)}),a=()=>{const{dragConstraints:p}=this.getProps();ca(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,u=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),Qe.read(a);const c=cl(window,"resize",()=>this.scalePositionWithinConstraints()),f=l.addEventListener("didUpdate",({delta:p,hasLayoutChanged:d})=>{this.isDragging&&d&&(mn(m=>{const y=this.getAxisMotionValue(m);y&&(this.originPoint[m]+=p[m].translate,y.set(y.get()+p[m].translate))}),this.visualElement.render())});return()=>{c(),i(),u(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:a=!1,dragPropagation:l=!1,dragConstraints:u=!1,dragElastic:c=Td,dragMomentum:f=!0}=t;return{...t,drag:i,dragDirectionLock:a,dragPropagation:l,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function Yo(e,t,i){return(t===!0||t===e)&&(i===null||i===e)}function c9(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}class f9 extends Fi{constructor(t){super(t),this.removeGroupControls=vn,this.removeListeners=vn,this.controls=new u9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vn}unmount(){this.removeGroupControls(),this.removeListeners()}}const m2=e=>(t,i)=>{e&&Qe.postRender(()=>e(t,i))};class h9 extends Fi{constructor(){super(...arguments),this.removePointerDownListener=vn}onPointerDown(t){this.session=new Qx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$x(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:i,onPan:a,onPanEnd:l}=this.node.getProps();return{onSessionStart:m2(t),onStart:m2(i),onMove:a,onEnd:(u,c)=>{delete this.session,l&&Qe.postRender(()=>l(u,c))}}}mount(){this.removePointerDownListener=Zs(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 uu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function g2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Us={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ve.test(e))e=parseFloat(e);else return e;const i=g2(e,t.target.x),a=g2(e,t.target.y);return`${i}% ${a}%`}},d9={correct:(e,{treeScale:t,projectionDelta:i})=>{const a=e,l=Pi.parse(e);if(l.length>5)return a;const u=Pi.createTransformer(e),c=typeof l[0]!="number"?1:0,f=i.x.scale*t.x,p=i.y.scale*t.y;l[0+c]/=f,l[1+c]/=p;const d=Ze(f,p,.5);return typeof l[2+c]=="number"&&(l[2+c]/=d),typeof l[3+c]=="number"&&(l[3+c]/=d),u(l)}};class p9 extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:a,layoutId:l}=this.props,{projection:u}=t;J8(m9),u&&(i.group&&i.group.add(u),a&&a.register&&l&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),uu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:i,visualElement:a,drag:l,isPresent:u}=this.props,c=a.projection;return c&&(c.isPresent=u,l||t.layoutDependency!==i||i===void 0||t.isPresent!==u?c.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?c.promote():c.relegate()||Qe.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Tp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:a}=this.props,{projection:l}=t;l&&(l.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(l),a&&a.deregister&&a.deregister(l))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wx(e){const[t,i]=zb(),a=_.useContext(np);return A.jsx(p9,{...e,layoutGroup:a,switchLayoutGroup:_.useContext(Dx),isPresent:t,safeToRemove:i})}const m9={borderRadius:{...Us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Us,borderTopRightRadius:Us,borderBottomLeftRadius:Us,borderBottomRightRadius:Us,boxShadow:d9};function g9(e,t,i){const a=kt(e)?e:sl(e);return a.start(Lp("",a,t,i)),a.animation}function y9(e){return e instanceof SVGElement&&e.tagName!=="svg"}const v9=(e,t)=>e.depth-t.depth;class b9{constructor(){this.children=[],this.isDirty=!1}add(t){sp(this.children,t),this.isDirty=!0}remove(t){lp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(v9),this.isDirty=!1,this.children.forEach(t)}}function x9(e,t){const i=Ht.now(),a=({timestamp:l})=>{const u=l-i;u>=t&&(Hi(a),e(u-t))};return Qe.setup(a,!0),()=>Hi(a)}const e3=["TopLeft","TopRight","BottomLeft","BottomRight"],S9=e3.length,y2=e=>typeof e=="string"?parseFloat(e):e,v2=e=>typeof e=="number"||ve.test(e);function w9(e,t,i,a,l,u){l?(e.opacity=Ze(0,i.opacity??1,E9(a)),e.opacityExit=Ze(t.opacity??1,0,T9(a))):u&&(e.opacity=Ze(t.opacity??1,i.opacity??1,a));for(let c=0;c<S9;c++){const f=`border${e3[c]}Radius`;let p=b2(t,f),d=b2(i,f);if(p===void 0&&d===void 0)continue;p||(p=0),d||(d=0),p===0||d===0||v2(p)===v2(d)?(e[f]=Math.max(Ze(y2(p),y2(d),a),0),(Un.test(d)||Un.test(p))&&(e[f]+="%")):e[f]=d}(t.rotate||i.rotate)&&(e.rotate=Ze(t.rotate||0,i.rotate||0,a))}function b2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const E9=t3(0,.5,Kb),T9=t3(.5,.95,vn);function t3(e,t,i){return a=>a<e?0:a>t?1:i(il(e,t,a))}function x2(e,t){e.min=t.min,e.max=t.max}function pn(e,t){x2(e.x,t.x),x2(e.y,t.y)}function S2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function w2(e,t,i,a,l){return e-=t,e=bu(e,1/i,a),l!==void 0&&(e=bu(e,1/l,a)),e}function C9(e,t=0,i=1,a=.5,l,u=e,c=e){if(Un.test(t)&&(t=parseFloat(t),t=Ze(c.min,c.max,t/100)-c.min),typeof t!="number")return;let f=Ze(u.min,u.max,a);e===u&&(f-=t),e.min=w2(e.min,t,i,f,l),e.max=w2(e.max,t,i,f,l)}function E2(e,t,[i,a,l],u,c){C9(e,t[i],t[a],t[l],t.scale,u,c)}const A9=["x","scaleX","originX"],R9=["y","scaleY","originY"];function T2(e,t,i,a){E2(e.x,t,A9,i?i.x:void 0,a?a.x:void 0),E2(e.y,t,R9,i?i.y:void 0,a?a.y:void 0)}function C2(e){return e.translate===0&&e.scale===1}function n3(e){return C2(e.x)&&C2(e.y)}function A2(e,t){return e.min===t.min&&e.max===t.max}function k9(e,t){return A2(e.x,t.x)&&A2(e.y,t.y)}function R2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function i3(e,t){return R2(e.x,t.x)&&R2(e.y,t.y)}function k2(e){return Mt(e.x)/Mt(e.y)}function O2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class O9{constructor(){this.members=[]}add(t){sp(this.members,t),t.scheduleRender()}remove(t){if(lp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(t){const i=this.members.findIndex(l=>t===l);if(i===0)return!1;let a;for(let l=i;l>=0;l--){const u=this.members[l];if(u.isPresent!==!1){a=u;break}}return a?(this.promote(a),!0):!1}promote(t,i){const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.instance&&a.scheduleRender(),t.scheduleRender(),t.resumeFrom=a,i&&(t.resumeFrom.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:l}=t.options;l===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:i,resumingFrom:a}=t;i.onExitComplete&&i.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _9(e,t,i){let a="";const l=e.x.translate/t.x,u=e.y.translate/t.y,c=(i==null?void 0:i.z)||0;if((l||u||c)&&(a=`translate3d(${l}px, ${u}px, ${c}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),i){const{transformPerspective:d,rotate:m,rotateX:y,rotateY:v,skewX:b,skewY:w}=i;d&&(a=`perspective(${d}px) ${a}`),m&&(a+=`rotate(${m}deg) `),y&&(a+=`rotateX(${y}deg) `),v&&(a+=`rotateY(${v}deg) `),b&&(a+=`skewX(${b}deg) `),w&&(a+=`skewY(${w}deg) `)}const f=e.x.scale*t.x,p=e.y.scale*t.y;return(f!==1||p!==1)&&(a+=`scale(${f}, ${p})`),a||"none"}const Ch=["","X","Y","Z"],D9={visibility:"hidden"},_2=1e3;let M9=0;function Ah(e,t,i,a){const{latestValues:l}=t;l[e]&&(i[e]=l[e],t.setStaticValue(e,0),a&&(a[e]=0))}function r3(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const i=Hx(t);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:l,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",Qe,!(l||u))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&r3(a)}function a3({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:a,resetTransform:l}){return class{constructor(c={},f=t==null?void 0:t()){this.id=M9++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(j9),this.nodes.forEach(H9),this.nodes.forEach(P9),this.nodes.forEach(B9)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new b9)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new cp),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const p=this.eventHandlers.get(c);p&&p.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=y9(c),this.instance=c;const{layoutId:p,layout:d,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(d||p)&&(this.isLayoutDirty=!0),e){let y;const v=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=x9(v,250),uu.hasAnimatedSinceResize&&(uu.hasAnimatedSinceResize=!1,this.nodes.forEach(M2))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||d)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||m.getDefaultTransition()||G9,{onLayoutAnimationStart:R,onLayoutAnimationComplete:C}=m.getProps(),M=!this.targetLayout||!i3(this.targetLayout,w),O=!v&&b;if(this.options.layoutRoot||this.resumeFrom||O||v&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,O);const V={...wp(E,"layout"),onPlay:R,onComplete:C};(m.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V)}else v||M2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Hi(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(q9),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&r3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:p}=this.options;if(f===void 0&&!p)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(D2);return}this.isUpdating||this.nodes.forEach(U9),this.isUpdating=!1,this.nodes.forEach(V9),this.nodes.forEach(N9),this.nodes.forEach(L9),this.clearAllSnapshots();const f=Ht.now();St.delta=ci(0,1e3/60,f-St.timestamp),St.timestamp=f,St.isProcessing=!0,yh.update.process(St),yh.preRender.process(St),yh.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(z9),this.sharedNodes.forEach(F9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Mt(this.snapshot.measuredBox.x)&&!Mt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=it(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f){const p=a(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:p,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!l)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!n3(this.projectionDelta),p=this.getTransformTemplate(),d=p?p(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;c&&(f||ur(this.latestValues)||m)&&(l(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let p=this.removeElementScroll(f);return c&&(p=this.removeTransform(p)),X9(p),{animationId:this.root.animationId,measuredBox:f,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:c}=this.options;if(!c)return it();const f=c.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(K9))){const{scroll:m}=this.root;m&&(ha(f.x,m.offset.x),ha(f.y,m.offset.y))}return f}removeElementScroll(c){var p;const f=it();if(pn(f,c),(p=this.scroll)!=null&&p.wasRoot)return f;for(let d=0;d<this.path.length;d++){const m=this.path[d],{scroll:y,options:v}=m;m!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&pn(f,c),ha(f.x,y.offset.x),ha(f.y,y.offset.y))}return f}applyTransform(c,f=!1){const p=it();pn(p,c);for(let d=0;d<this.path.length;d++){const m=this.path[d];!f&&m.options.layoutScroll&&m.scroll&&m!==m.root&&da(p,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),ur(m.latestValues)&&da(p,m.latestValues)}return ur(this.latestValues)&&da(p,this.latestValues),p}removeTransform(c){const f=it();pn(f,c);for(let p=0;p<this.path.length;p++){const d=this.path[p];if(!d.instance||!ur(d.latestValues))continue;wd(d.latestValues)&&d.updateSnapshot();const m=it(),y=d.measurePageBox();pn(m,y),T2(f,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,m)}return ur(this.latestValues)&&T2(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var v;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(c||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!(!this.layout||!(m||y))){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=it(),this.relativeTargetOrigin=it(),Qs(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=it(),this.targetWithTransforms=it()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$A(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pn(this.target,this.layout.layoutBox),Kx(this.target,this.targetDelta)):pn(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=it(),this.relativeTargetOrigin=it(),Qs(this.relativeTargetOrigin,this.target,b.target),pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||wd(this.parent.latestValues)||Xx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var w;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===St.timestamp&&(p=!1),p)return;const{layout:d,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||!(d||m))return;pn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,v=this.treeScale.y;QA(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=it());const{target:b}=c;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(S2(this.prevProjectionDelta.x,this.projectionDelta.x),S2(this.prevProjectionDelta.y,this.projectionDelta.y)),$s(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==v||!O2(this.projectionDelta.x,this.prevProjectionDelta.x)||!O2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var f;if((f=this.options.visualElement)==null||f.scheduleRender(),c){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fa(),this.projectionDelta=fa(),this.projectionDeltaWithTransform=fa()}setAnimationOrigin(c,f=!1){const p=this.snapshot,d=p?p.latestValues:{},m={...this.latestValues},y=fa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const v=it(),b=p?p.source:void 0,w=this.layout?this.layout.source:void 0,E=b!==w,R=this.getStack(),C=!R||R.members.length<=1,M=!!(E&&!C&&this.options.crossfade===!0&&!this.path.some(Y9));this.animationProgress=0;let O;this.mixTargetDelta=V=>{const B=V/1e3;N2(y.x,c.x,B),N2(y.y,c.y,B),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qs(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),I9(this.relativeTarget,this.relativeTargetOrigin,v,B),O&&k9(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=it()),pn(O,this.relativeTarget)),E&&(this.animationValues=m,w9(m,d,this.latestValues,B,M,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=B},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Hi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{uu.hasAnimatedSinceResize=!0,this.currentAnimation=g9(0,_2,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:p,layout:d,latestValues:m}=c;if(!(!f||!p||!d)){if(this!==c&&this.layout&&d&&s3(this.options.animationType,this.layout.layoutBox,d.layoutBox)){p=this.target||it();const y=Mt(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+y;const v=Mt(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+v}pn(f,p),da(f,m),$s(this.projectionDeltaWithTransform,this.layoutCorrected,f,m)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new O9),this.sharedNodes.get(c).add(f);const d=f.options.initialPromotionConfig;f.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var f;const{layoutId:c}=this.options;return c?((f=this.getStack())==null?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:c}=this.options;return c?(f=this.getStack())==null?void 0:f.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:p}={}){const d=this.getStack();d&&d.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(f=!0),!f)return;const d={};p.z&&Ah("z",c,d,this.animationValues);for(let m=0;m<Ch.length;m++)Ah(`rotate${Ch[m]}`,c,d,this.animationValues),Ah(`skew${Ch[m]}`,c,d,this.animationValues);c.render();for(const m in d)c.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);c.scheduleRender()}getProjectionStyles(c){if(!this.instance||this.isSVG)return;if(!this.isVisible)return D9;const f={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=ou(c==null?void 0:c.pointerEvents)||"",f.transform=p?p(this.latestValues,""):"none",f;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=ou(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!ur(this.latestValues)&&(b.transform=p?p({},""):"none",this.hasProjected=!1),b}const m=d.animationValues||d.latestValues;this.applyTransformsToTarget(),f.transform=_9(this.projectionDeltaWithTransform,this.treeScale,m),p&&(f.transform=p(m,f.transform));const{x:y,y:v}=this.projectionDelta;f.transformOrigin=`${y.origin*100}% ${v.origin*100}% 0`,d.animationValues?f.opacity=d===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:f.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const b in ol){if(m[b]===void 0)continue;const{correct:w,applyTo:E,isCSSVariable:R}=ol[b],C=f.transform==="none"?m[b]:w(m[b],d);if(E){const M=E.length;for(let O=0;O<M;O++)f[E[O]]=C}else R?this.options.visualElement.renderState.vars[b]=C:f[b]=C}return this.options.layoutId&&(f.pointerEvents=d===this?ou(c==null?void 0:c.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var f;return(f=c.currentAnimation)==null?void 0:f.stop()}),this.root.nodes.forEach(D2),this.root.sharedNodes.clear()}}}function N9(e){e.updateLayout()}function L9(e){var i;const t=((i=e.resumeFrom)==null?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:l}=e.layout,{animationType:u}=e.options,c=t.source!==e.layout.source;u==="size"?mn(y=>{const v=c?t.measuredBox[y]:t.layoutBox[y],b=Mt(v);v.min=a[y].min,v.max=v.min+b}):s3(u,t.layoutBox,a)&&mn(y=>{const v=c?t.measuredBox[y]:t.layoutBox[y],b=Mt(a[y]);v.max=v.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+b)});const f=fa();$s(f,a,t.layoutBox);const p=fa();c?$s(p,e.applyTransform(l,!0),t.measuredBox):$s(p,a,t.layoutBox);const d=!n3(f);let m=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:b}=y;if(v&&b){const w=it();Qs(w,t.layoutBox,v.layoutBox);const E=it();Qs(E,a,b.layoutBox),i3(w,E)||(m=!0),y.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=w,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:p,layoutDelta:f,hasLayoutChanged:d,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function j9(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 B9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function z9(e){e.clearSnapshot()}function D2(e){e.clearMeasurements()}function U9(e){e.isLayoutDirty=!1}function V9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function M2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function H9(e){e.resolveTargetDelta()}function P9(e){e.calcProjection()}function q9(e){e.resetSkewAndRotation()}function F9(e){e.removeLeadSnapshot()}function N2(e,t,i){e.translate=Ze(t.translate,0,i),e.scale=Ze(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function L2(e,t,i,a){e.min=Ze(t.min,i.min,a),e.max=Ze(t.max,i.max,a)}function I9(e,t,i,a){L2(e.x,t.x,i.x,a),L2(e.y,t.y,i.y,a)}function Y9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const G9={duration:.45,ease:[.4,0,.1,1]},j2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),B2=j2("applewebkit/")&&!j2("chrome/")?Math.round:vn;function z2(e){e.min=B2(e.min),e.max=B2(e.max)}function X9(e){z2(e.x),z2(e.y)}function s3(e,t,i){return e==="position"||e==="preserve-aspect"&&!ZA(k2(t),k2(i),.2)}function K9(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Z9=a3({attachResizeListener:(e,t)=>cl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Rh={current:void 0},l3=a3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rh.current){const e=new Z9({});e.mount(window),e.setOptions({layoutScroll:!0}),Rh.current=e}return Rh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$9={pan:{Feature:h9},drag:{Feature:f9,ProjectionNode:l3,MeasureLayout:Wx}};function U2(e,t,i){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",i==="Start");const l="onHover"+i,u=a[l];u&&Qe.postRender(()=>u(t,Sl(t)))}class Q9 extends Fi{mount(){const{current:t}=this.node;t&&(this.unmount=R8(t,(i,a)=>(U2(this.node,a,"Start"),l=>U2(this.node,l,"End"))))}unmount(){}}class J9 extends Fi{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=vl(cl(this.node.current,"focus",()=>this.onFocus()),cl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function V2(e,t,i){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",i==="Start");const l="onTap"+(i==="End"?"":i),u=a[l];u&&Qe.postRender(()=>u(t,Sl(t)))}class W9 extends Fi{mount(){const{current:t}=this.node;t&&(this.unmount=D8(t,(i,a)=>(V2(this.node,a,"Start"),(l,{success:u})=>V2(this.node,l,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cd=new WeakMap,kh=new WeakMap,eR=e=>{const t=Cd.get(e.target);t&&t(e)},tR=e=>{e.forEach(eR)};function nR({root:e,...t}){const i=e||document;kh.has(i)||kh.set(i,{});const a=kh.get(i),l=JSON.stringify(t);return a[l]||(a[l]=new IntersectionObserver(tR,{root:e,...t})),a[l]}function iR(e,t,i){const a=nR(t);return Cd.set(e,i),a.observe(e),()=>{Cd.delete(e),a.unobserve(e)}}const rR={some:0,all:1};class aR extends Fi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:i,margin:a,amount:l="some",once:u}=t,c={root:i?i.current:void 0,rootMargin:a,threshold:typeof l=="number"?l:rR[l]},f=p=>{const{isIntersecting:d}=p;if(this.isInView===d||(this.isInView=d,u&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),v=d?m:y;v&&v(p)};return iR(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:i}=this.node;["amount","margin","root"].some(sR(t,i))&&this.startObserver()}unmount(){}}function sR({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}const lR={inView:{Feature:aR},tap:{Feature:W9},focus:{Feature:J9},hover:{Feature:Q9}},oR={layout:{ProjectionNode:l3,MeasureLayout:Wx}},Ad={current:null},o3={current:!1};function uR(){if(o3.current=!0,!!rp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ad.current=e.matches;e.addListener(t),t()}else Ad.current=!1}const cR=new WeakMap;function fR(e,t,i){for(const a in t){const l=t[a],u=i[a];if(kt(l))e.addValue(a,l);else if(kt(u))e.addValue(a,sl(l,{owner:e}));else if(u!==l)if(e.hasValue(a)){const c=e.getValue(a);c.liveStyle===!0?c.jump(l):c.hasAnimated||c.set(l)}else{const c=e.getStaticValue(a);e.addValue(a,sl(c!==void 0?c:l,{owner:e}))}}for(const a in i)t[a]===void 0&&e.removeValue(a);return t}const H2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class hR{scrapeMotionValuesFromProps(t,i,a){return{}}constructor({parent:t,props:i,presenceContext:a,reducedMotionConfig:l,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Ht.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Qe.render(this.render,!1,!0))};const{latestValues:p,renderState:d}=c;this.latestValues=p,this.baseTarget={...p},this.initialValues=i.initial?{...p}:{},this.renderState=d,this.parent=t,this.props=i,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=l,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=Bu(i),this.isVariantNode=Ox(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...y}=this.scrapeMotionValuesFromProps(i,{},this);for(const v in y){const b=y[v];p[v]!==void 0&&kt(b)&&b.set(p[v],!1)}}mount(t){this.current=t,cR.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((i,a)=>this.bindToMotionValue(a,i)),o3.current||uR(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ad.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Hi(this.notifyUpdate),Hi(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 i=this.features[t];i&&(i.unmount(),i.isMounted=!1)}this.current=null}bindToMotionValue(t,i){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const a=ka.has(t);a&&this.onBindTransform&&this.onBindTransform();const l=i.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),u=i.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,i)),this.valueSubscriptions.set(t,()=>{l(),u(),c&&c(),i.owner&&i.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 ba){const i=ba[t];if(!i)continue;const{isEnabled:a,Feature:l}=i;if(!this.features[t]&&l&&a(this.props)&&(this.features[t]=new l(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):it()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,i){this.latestValues[t]=i}update(t,i){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let a=0;a<H2.length;a++){const l=H2[a];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const u="on"+l,c=t[u];c&&(this.propEventSubscriptions[l]=this.on(l,c))}this.prevMotionValues=fR(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 i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(t),()=>i.variantChildren.delete(t)}addValue(t,i){const a=this.values.get(t);i!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,i),this.values.set(t,i),this.latestValues[t]=i.get())}removeValue(t){this.values.delete(t);const i=this.valueSubscriptions.get(t);i&&(i(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,i){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&i!==void 0&&(a=sl(i===null?void 0:i,{owner:this}),this.addValue(t,a)),a}readValue(t,i){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(Vb(a)||Hb(a))?a=parseFloat(a):!j8(a)&&Pi.test(i)&&(a=wx(t,i)),this.setBaseTarget(t,kt(a)?a.get():a)),kt(a)?a.get():a}setBaseTarget(t,i){this.baseTarget[t]=i}getBaseTarget(t){var u;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const c=Mp(this.props,i,(u=this.presenceContext)==null?void 0:u.custom);c&&(a=c[t])}if(i&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!kt(l)?l:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,i){return this.events[t]||(this.events[t]=new cp),this.events[t].add(i)}notify(t,...i){this.events[t]&&this.events[t].notify(...i)}}class u3 extends hR{constructor(){super(...arguments),this.KeyframeResolver=T8}sortInstanceNodePosition(t,i){return t.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(t,i){return t.style?t.style[i]:void 0}removeValueFromRenderState(t,{vars:i,style:a}){delete i[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kt(t)&&(this.childSubscription=t.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function c3(e,{style:t,vars:i},a,l){Object.assign(e.style,t,l&&l.getProjectionStyles(a));for(const u in i)e.style.setProperty(u,i[u])}function dR(e){return window.getComputedStyle(e)}class pR extends u3{constructor(){super(...arguments),this.type="html",this.renderInstance=c3}readValueFromInstance(t,i){if(ka.has(i))return F7(t,i);{const a=dR(t),l=(dp(i)?a.getPropertyValue(i):a[i])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(t,{transformPagePoint:i}){return Zx(t,i)}build(t,i,a){Op(t,i,a.transformTemplate)}scrapeMotionValuesFromProps(t,i,a){return Np(t,i,a)}}const f3=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 mR(e,t,i,a){c3(e,t,void 0,a);for(const l in t.attrs)e.setAttribute(f3.has(l)?l:kp(l),t.attrs[l])}class gR extends u3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=it}getBaseTargetFromProps(t,i){return t[i]}readValueFromInstance(t,i){if(ka.has(i)){const a=Sx(i);return a&&a.default||0}return i=f3.has(i)?i:kp(i),t.getAttribute(i)}scrapeMotionValuesFromProps(t,i,a){return Vx(t,i,a)}build(t,i,a){jx(t,i,this.isSVGTag,a.transformTemplate)}renderInstance(t,i,a,l){mR(t,i,a,l)}mount(t){this.isSVGTag=zx(t.tagName),super.mount(t)}}const yR=(e,t)=>Dp(e)?new gR(t):new pR(t,{allowProjection:e!==_.Fragment}),vR=mA({...PA,...lR,...$9,...oR},yR),h3=H8(vR),bR=({messages:e,syllabus:t})=>{const a=e.filter(l=>l.type==="assistant"&&l.content.length>0).length===2?`I've created a detailed structure for your course: ${t.courseInfo.title}`:"I've updated the structure based on your feedback.";return A.jsx("div",{className:"mt-2 ",children:A.jsx(Ub,{mode:"wait",children:A.jsx(h3.h2,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},className:"text-lg font-semibold sm:text-lg md:text-xl xl:text-2xl",children:a},a)})})},xR=({messages:e})=>{const i=e.filter(a=>a.type==="assistant"&&a.content.length>0).length===2?`It includes a mix of reading, coding exercises, and quizzes. Give
253
+ it a look and let me know if it aligns with your expectations or if
254
+ there are any changes you'd like to make.`:"Based on your input, here is the new syllabus, updates are highlighted in yellow";return A.jsx(Ub,{mode:"wait",children:A.jsx(h3.p,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,delay:.1},className:"text-sm sm:text-md md:text-lg text-gray-600 mb-5",children:i},i)})},SR=({handleSubmit:e,openLogin:t})=>{const i=Xe(f=>f.history),a=Xe(f=>f.undo),l=Xe(f=>f.auth),u=Xe(f=>f.setAuth),c=i[i.length-2];return A.jsxs("div",{children:[A.jsxs("div",{className:"flex flex-col space-y-2 sm:flex-row sm:space-y-0 sm:space-x-4 justify-end mt-6",children:[c&&c.lessons.length>0&&A.jsxs("button",{onClick:()=>{a(),ot.success("Changes reverted!")},className:"w-full sm:w-auto text-gray-500 bg-gray-200 rounded px-4 py-2 hover:bg-gray-300 flex items-center justify-center gap-2 cursor-pointer",children:[rt.undo,"Revert changes"]}),A.jsxs("button",{onClick:e,className:"w-full sm:w-auto bg-blue-600 text-white rounded px-4 py-2 hover:bg-blue-700 flex items-center justify-center gap-2 cursor-pointer",children:[A.jsx("span",{children:"I'm ready. Create the course for me!"}),rt.rigoSoftBlue]})]}),A.jsx("div",{className:"mt-2 justify-end flex",children:l.user&&A.jsxs("div",{className:"text-sm text-gray-500 rounded px-4 py-2 flex items-center justify-center gap-1 ",children:[A.jsxs("span",{children:["Creating the course as ",A.jsx("strong",{children:l.user.first_name})," or"]}),A.jsx("button",{className:"text-sm rounded items-center justify-center cursor-pointer text-blue-600",onClick:()=>{u({rigoToken:"",bcToken:"",userId:"",user:null,publicToken:""}),t()},children:"login as someone else"})]})})]})},wR=({handleSubmit:e,messages:t,isThinking:i,openLogin:a})=>{const l=Xe(R=>R.history),u=Xe(R=>R.push),c=Xe(R=>R.mode),f=_.useRef(null),[p,d]=_.useState(!1),m=l[l.length-1],y=l[l.length-2]||null,v=R=>{u({...m,lessons:m.lessons.filter(C=>C.uid!==R.uid)})},b=(R,C)=>{u({...m,lessons:m.lessons.map(M=>M.uid===R?{...M,title:C}:M)})},w=(R,C)=>{const M={id:(parseFloat(C)+.1).toFixed(1),title:"Hello World",uid:vb(),type:"READ",duration:2,description:"Hello World"},O=[...m.lessons];O.splice(R+1,0,M),u({...m,lessons:O})};_.useEffect(()=>{const R=f.current,C=()=>{if(R){const M=R.scrollHeight>R.clientHeight+R.scrollTop+100;d(M)}};return C(),R==null||R.addEventListener("scroll",C),()=>R==null?void 0:R.removeEventListener("scroll",C)},[m.lessons]);const E=R=>{{const C=f.current;C&&C.scrollTo({top:C.scrollHeight,behavior:"smooth"})}};return A.jsxs("div",{className:"relative w-full p-2 sm:p-4 md:p-6 lg:p-8 space-y-6",children:[A.jsx(bR,{messages:t,syllabus:m}),A.jsx("div",{ref:f,className:"space-y-3 overflow-y-auto max-h-[78vh] pr-2 scrollbar-hide relative pb-20",children:i?A.jsx(Id,{text:"Thinking...",minheight:"min-h-[69vh]"}):A.jsxs(A.Fragment,{children:[A.jsx(xR,{messages:t}),m.lessons.map((R,C)=>A.jsxs("div",{children:[A.jsx(BC,{lesson:R,onChange:b,onRemove:()=>v(R),isNew:!!(y&&y&&y.lessons&&y.lessons.length>0&&!y.lessons.some(M=>M.uid===R.uid))},R.uid),c==="teacher"&&A.jsx("div",{className:"relative h-6",children:A.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 -top-3",children:A.jsx("button",{onClick:()=>w(C,R.id),className:"w-6 h-6 flex items-center justify-center bg-blue-100 text-blue-600 rounded hover:bg-blue-200 shadow-sm text-sm font-semibold cursor-pointer",children:"+"})})})]},R.uid+C)),m.lessons.length>0&&A.jsx(SR,{handleSubmit:e,openLogin:a})]})}),p&&!i&&A.jsxs("div",{className:"pointer-events-none relative",children:[A.jsx("div",{className:"absolute bottom-0 left-0 w-full h-60 bg-gradient-to-t from-white to-transparent z-10"}),A.jsx("div",{className:"absolute bottom-10 left-0 w-full flex justify-center z-31",children:A.jsxs("button",{style:{color:"#0084FF"},onClick:()=>E(),className:"px-4 py-1 bg-white text-sm rounded hover:bg-blue-50 cursor-pointer pointer-events-auto font-bold flex items-center gap-2 ",children:["Continue scrolling",rt.downArrow]})})]})]})},ER=({text:e,svg:t})=>A.jsxs("div",{className:"loader",children:[A.jsx("div",{className:"loader-icon",children:t}),A.jsx("div",{className:"loader-text",children:e})]});function TR(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const CR=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,AR=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,RR={};function P2(e,t){return(RR.jsx?AR:CR).test(e)}const kR=/[ \t\n\f\r]/g;function OR(e){return typeof e=="object"?e.type==="text"?q2(e.value):!1:q2(e)}function q2(e){return e.replace(kR,"")===""}class wl{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}wl.prototype.normal={};wl.prototype.property={};wl.prototype.space=void 0;function d3(e,t){const i={},a={};for(const l of e)Object.assign(i,l.property),Object.assign(a,l.normal);return new wl(i,a,t)}function Rd(e){return e.toLowerCase()}class Ft{constructor(t,i){this.attribute=i,this.property=t}}Ft.prototype.attribute="";Ft.prototype.booleanish=!1;Ft.prototype.boolean=!1;Ft.prototype.commaOrSpaceSeparated=!1;Ft.prototype.commaSeparated=!1;Ft.prototype.defined=!1;Ft.prototype.mustUseProperty=!1;Ft.prototype.number=!1;Ft.prototype.overloadedBoolean=!1;Ft.prototype.property="";Ft.prototype.spaceSeparated=!1;Ft.prototype.space=void 0;let _R=0;const xe=br(),lt=br(),p3=br(),W=br(),Ie=br(),ga=br(),en=br();function br(){return 2**++_R}const kd=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:lt,commaOrSpaceSeparated:en,commaSeparated:ga,number:W,overloadedBoolean:p3,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Oh=Object.keys(kd);class jp extends Ft{constructor(t,i,a,l){let u=-1;if(super(t,i),F2(this,"space",l),typeof a=="number")for(;++u<Oh.length;){const c=Oh[u];F2(this,Oh[u],(a&kd[c])===kd[c])}}}jp.prototype.defined=!0;function F2(e,t,i){i&&(e[t]=i)}function Oa(e){const t={},i={};for(const[a,l]of Object.entries(e.properties)){const u=new jp(a,e.transform(e.attributes||{},a),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),t[a]=u,i[Rd(a)]=a,i[Rd(u.attribute)]=a}return new wl(t,i,e.space)}const m3=Oa({properties:{ariaActiveDescendant:null,ariaAtomic:lt,ariaAutoComplete:null,ariaBusy:lt,ariaChecked:lt,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:lt,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:lt,ariaFlowTo:Ie,ariaGrabbed:lt,ariaHasPopup:null,ariaHidden:lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:W,ariaLive:null,ariaModal:lt,ariaMultiLine:lt,ariaMultiSelectable:lt,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:lt,ariaReadOnly:lt,ariaRelevant:null,ariaRequired:lt,ariaRoleDescription:Ie,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:lt,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function g3(e,t){return t in e?e[t]:t}function y3(e,t){return g3(e,t.toLowerCase())}const DR=Oa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ga,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:Ie,autoFocus:xe,autoPlay:xe,blocking:Ie,capture:null,charSet:null,checked:xe,cite:null,className:Ie,cols:W,colSpan:null,content:null,contentEditable:lt,controls:xe,controlsList:Ie,coords:W|ga,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:p3,draggable:lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:Ie,height:W,hidden:xe,high:W,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:xe,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,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:xe,optimum:W,pattern:null,ping:Ie,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:Ie,required:xe,reversed:xe,rows:W,rowSpan:W,sandbox:Ie,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:lt,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:lt,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xe,disableRemotePlayback:xe,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:y3}),MR=Oa({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:en,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Ie,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:ga,g2:ga,glyphName:ga,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:en,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,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:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:en,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:en,rev:en,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:en,requiredFeatures:en,requiredFonts:en,requiredFormats:en,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:en,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:en,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:en,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:g3}),v3=Oa({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()}}),b3=Oa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:y3}),x3=Oa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),NR={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"},LR=/[A-Z]/g,I2=/-[a-z]/g,jR=/^data[-\w.:]+$/i;function BR(e,t){const i=Rd(t);let a=t,l=Ft;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&jR.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(I2,UR);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!I2.test(u)){let c=u.replace(LR,zR);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=jp}return new l(a,t)}function zR(e){return"-"+e.toLowerCase()}function UR(e){return e.charAt(1).toUpperCase()}const VR=d3([m3,DR,v3,b3,x3],"html"),Bp=d3([m3,MR,v3,b3,x3],"svg");function HR(e){return e.join(" ").trim()}var sa={},_h,Y2;function PR(){if(Y2)return _h;Y2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
255
+ `,d="/",m="*",y="",v="comment",b="declaration";_h=function(E,R){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];R=R||{};var C=1,M=1;function O(ue){var ae=ue.match(t);ae&&(C+=ae.length);var le=ue.lastIndexOf(p);M=~le?ue.length-le:M+ue.length}function V(){var ue={line:C,column:M};return function(ae){return ae.position=new B(ue),Q(),ae}}function B(ue){this.start=ue,this.end={line:C,column:M},this.source=R.source}B.prototype.content=E;function L(ue){var ae=new Error(R.source+":"+C+":"+M+": "+ue);if(ae.reason=ue,ae.filename=R.source,ae.line=C,ae.column=M,ae.source=E,!R.silent)throw ae}function Z(ue){var ae=ue.exec(E);if(ae){var le=ae[0];return O(le),E=E.slice(le.length),ae}}function Q(){Z(i)}function ee(ue){var ae;for(ue=ue||[];ae=fe();)ae!==!1&&ue.push(ae);return ue}function fe(){var ue=V();if(!(d!=E.charAt(0)||m!=E.charAt(1))){for(var ae=2;y!=E.charAt(ae)&&(m!=E.charAt(ae)||d!=E.charAt(ae+1));)++ae;if(ae+=2,y===E.charAt(ae-1))return L("End of comment missing");var le=E.slice(2,ae-2);return M+=2,O(le),E=E.slice(ae),M+=2,ue({type:v,comment:le})}}function ie(){var ue=V(),ae=Z(a);if(ae){if(fe(),!Z(l))return L("property missing ':'");var le=Z(u),q=ue({type:b,property:w(ae[0].replace(e,y)),value:le?w(le[0].replace(e,y)):y});return Z(c),q}}function ne(){var ue=[];ee(ue);for(var ae;ae=ie();)ae!==!1&&(ue.push(ae),ee(ue));return ue}return Q(),ne()};function w(E){return E?E.replace(f,y):y}return _h}var G2;function qR(){if(G2)return sa;G2=1;var e=sa&&sa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=i;var t=e(PR());function i(a,l){var u=null;if(!a||typeof a!="string")return u;var c=(0,t.default)(a),f=typeof l=="function";return c.forEach(function(p){if(p.type==="declaration"){var d=p.property,m=p.value;f?l(d,m,p):m&&(u=u||{},u[d]=m)}}),u}return sa}var Vs={},X2;function FR(){if(X2)return Vs;X2=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,u=function(d){return!d||i.test(d)||e.test(d)},c=function(d,m){return m.toUpperCase()},f=function(d,m){return"".concat(m,"-")},p=function(d,m){return m===void 0&&(m={}),u(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(l,f):d=d.replace(a,f),d.replace(t,c))};return Vs.camelCase=p,Vs}var Hs,K2;function IR(){if(K2)return Hs;K2=1;var e=Hs&&Hs.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(qR()),i=FR();function a(l,u){var c={};return!l||typeof l!="string"||(0,t.default)(l,function(f,p){f&&p&&(c[(0,i.camelCase)(f,u)]=p)}),c}return a.default=a,Hs=a,Hs}var YR=IR();const GR=Bd(YR),S3=w3("end"),zp=w3("start");function w3(e){return t;function t(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function XR(e){const t=zp(e),i=S3(e);if(t&&i)return{start:t,end:i}}function Js(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Z2(e.position):"start"in e||"end"in e?Z2(e):"line"in e||"column"in e?Od(e):""}function Od(e){return $2(e&&e.line)+":"+$2(e&&e.column)}function Z2(e){return Od(e&&e.start)+"-"+Od(e&&e.end)}function $2(e){return e&&typeof e=="number"?e:1}class Ot extends Error{constructor(t,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let l="",u={},c=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof t=="string"?l=t:!u.cause&&t&&(c=!0,l=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?u.ruleId=a:(u.source=a.slice(0,p),u.ruleId=a.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=f?f.line:void 0,this.name=Js(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ot.prototype.file="";Ot.prototype.name="";Ot.prototype.reason="";Ot.prototype.message="";Ot.prototype.stack="";Ot.prototype.column=void 0;Ot.prototype.line=void 0;Ot.prototype.ancestors=void 0;Ot.prototype.cause=void 0;Ot.prototype.fatal=void 0;Ot.prototype.place=void 0;Ot.prototype.ruleId=void 0;Ot.prototype.source=void 0;const Up={}.hasOwnProperty,KR=new Map,ZR=/[A-Z]/g,$R=new Set(["table","tbody","thead","tfoot","tr"]),QR=new Set(["td","th"]),E3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function JR(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=sk(i,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");a=ak(i,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Bp:VR,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=T3(l,e,void 0);return u&&typeof u!="string"?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}function T3(e,t,i){if(t.type==="element")return WR(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ek(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return nk(e,t,i);if(t.type==="mdxjsEsm")return tk(e,t);if(t.type==="root")return ik(e,t,i);if(t.type==="text")return rk(e,t)}function WR(e,t,i){const a=e.schema;let l=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(l=Bp,e.schema=l),e.ancestors.push(t);const u=A3(e,t.tagName,!1),c=lk(e,t);let f=Hp(e,t);return $R.has(t.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!OR(p):!0})),C3(e,c,u,t),Vp(c,f),e.ancestors.pop(),e.schema=a,e.create(t,u,c,i)}function ek(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}fl(e,t.position)}function tk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fl(e,t.position)}function nk(e,t,i){const a=e.schema;let l=a;t.name==="svg"&&a.space==="html"&&(l=Bp,e.schema=l),e.ancestors.push(t);const u=t.name===null?e.Fragment:A3(e,t.name,!0),c=ok(e,t),f=Hp(e,t);return C3(e,c,u,t),Vp(c,f),e.ancestors.pop(),e.schema=a,e.create(t,u,c,i)}function ik(e,t,i){const a={};return Vp(a,Hp(e,t)),e.create(t,e.Fragment,a,i)}function rk(e,t){return t.value}function C3(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function Vp(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function ak(e,t,i){return a;function a(l,u,c,f){const d=Array.isArray(c.children)?i:t;return f?d(u,c,f):d(u,c)}}function sk(e,t){return i;function i(a,l,u,c){const f=Array.isArray(u.children),p=zp(a);return t(l,u,c,f,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function lk(e,t){const i={};let a,l;for(l in t.properties)if(l!=="children"&&Up.call(t.properties,l)){const u=uk(e,l,t.properties[l]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&QR.has(t.tagName)?a=f:i[c]=f}}if(a){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function ok(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else fl(e,t.position);else{const l=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else fl(e,t.position);else u=a.value===null?!0:a.value;i[l]=u}return i}function Hp(e,t){const i=[];let a=-1;const l=e.passKeys?new Map:KR;for(;++a<t.children.length;){const u=t.children[a];let c;if(e.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const d=l.get(p)||0;c=p+"-"+d,l.set(p,d+1)}}const f=T3(e,u,c);f!==void 0&&i.push(f)}return i}function uk(e,t,i){const a=BR(e.schema,t);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?TR(i):HR(i)),a.property==="style"){let l=typeof i=="object"?i:ck(e,String(i));return e.stylePropertyNameCase==="css"&&(l=fk(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&a.space?NR[a.property]||a.property:a.attribute,i]}}function ck(e,t){try{return GR(t,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const a=i,l=new Ot("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=E3+"#cannot-parse-style-attribute",l}}function A3(e,t,i){let a;if(!i)a={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let u=-1,c;for(;++u<l.length;){const f=P2(l[u])?{type:"Identifier",name:l[u]}:{type:"Literal",value:l[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}a=c}else a=P2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const l=a.value;return Up.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(a);fl(e)}function fl(e,t){const i=new Ot("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=E3+"#cannot-handle-mdx-estrees-without-createevaluater",i}function fk(e){const t={};let i;for(i in e)Up.call(e,i)&&(t[hk(i)]=e[i]);return t}function hk(e){let t=e.replace(ZR,dk);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function dk(e){return"-"+e.toLowerCase()}const Dh={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"]},pk={};function mk(e,t){const i=pk,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,l=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return R3(e,a,l)}function R3(e,t,i){if(gk(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Q2(e.children,t,i)}return Array.isArray(e)?Q2(e,t,i):""}function Q2(e,t,i){const a=[];let l=-1;for(;++l<e.length;)a[l]=R3(e[l],t,i);return a.join("")}function gk(e){return!!(e&&typeof e=="object")}const J2=document.createElement("i");function Pp(e){const t="&"+e+";";J2.innerHTML=t;const i=J2.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===t?!1:i}function Pn(e,t,i,a){const l=e.length;let u=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(t,i),e.splice(...c);else for(i&&e.splice(t,i);u<a.length;)c=a.slice(u,u+1e4),c.unshift(t,0),e.splice(...c),u+=1e4,t+=1e4}function yn(e,t){return e.length>0?(Pn(e,e.length,0,t),e):t}const W2={}.hasOwnProperty;function yk(e){const t={};let i=-1;for(;++i<e.length;)vk(t,e[i]);return t}function vk(e,t){let i;for(i in t){const l=(W2.call(e,i)?e[i]:void 0)||(e[i]={}),u=t[i];let c;if(u)for(c in u){W2.call(l,c)||(l[c]=[]);const f=u[c];bk(l[c],Array.isArray(f)?f:f?[f]:[])}}}function bk(e,t){let i=-1;const a=[];for(;++i<t.length;)(t[i].add==="after"?e:a).push(t[i]);Pn(e,0,0,a)}function k3(e,t){const i=Number.parseInt(e,t);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function ya(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jn=Ii(/[A-Za-z]/),tn=Ii(/[\dA-Za-z]/),xk=Ii(/[#-'*+\--9=?A-Z^-~]/);function _d(e){return e!==null&&(e<32||e===127)}const Dd=Ii(/\d/),Sk=Ii(/[\dA-Fa-f]/),wk=Ii(/[!-/:-@[-`{-~]/);function be(e){return e!==null&&e<-2}function qt(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}const Ek=Ii(new RegExp("\\p{P}|\\p{S}","u")),Tk=Ii(/\s/);function Ii(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function _a(e){const t=[];let i=-1,a=0,l=0;for(;++i<e.length;){const u=e.charCodeAt(i);let c="";if(u===37&&tn(e.charCodeAt(i+1))&&tn(e.charCodeAt(i+2)))l=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(i+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),l=1):c="�"}else c=String.fromCharCode(u);c&&(t.push(e.slice(a,i),encodeURIComponent(c)),a=i+l+1,c=""),l&&(i+=l,l=0)}return t.join("")+e.slice(a)}function Ye(e,t,i,a){const l=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return Le(p)?(e.enter(i),f(p)):t(p)}function f(p){return Le(p)&&u++<l?(e.consume(p),f):(e.exit(i),t(p))}}const Ck={tokenize:Ak};function Ak(e){const t=e.attempt(this.parser.constructs.contentInitial,a,l);let i;return t;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ye(e,t,"linePrefix")}function l(f){return e.enter("paragraph"),u(f)}function u(f){const p=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return be(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const Rk={tokenize:kk},ev={tokenize:Ok};function kk(e){const t=this,i=[];let a=0,l,u,c;return f;function f(O){if(a<i.length){const V=i[a];return t.containerState=V[1],e.attempt(V[0].continuation,p,d)(O)}return d(O)}function p(O){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&M();const V=t.events.length;let B=V,L;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){L=t.events[B][1].end;break}C(a);let Z=V;for(;Z<t.events.length;)t.events[Z][1].end={...L},Z++;return Pn(t.events,B+1,0,t.events.slice(V)),t.events.length=Z,d(O)}return f(O)}function d(O){if(a===i.length){if(!l)return v(O);if(l.currentConstruct&&l.currentConstruct.concrete)return w(O);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ev,m,y)(O)}function m(O){return l&&M(),C(a),v(O)}function y(O){return t.parser.lazy[t.now().line]=a!==i.length,c=t.now().offset,w(O)}function v(O){return t.containerState={},e.attempt(ev,b,w)(O)}function b(O){return a++,i.push([t.currentConstruct,t.containerState]),v(O)}function w(O){if(O===null){l&&M(),C(0),e.consume(O);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:u}),E(O)}function E(O){if(O===null){R(e.exit("chunkFlow"),!0),C(0),e.consume(O);return}return be(O)?(e.consume(O),R(e.exit("chunkFlow")),a=0,t.interrupt=void 0,f):(e.consume(O),E)}function R(O,V){const B=t.sliceStream(O);if(V&&B.push(null),O.previous=u,u&&(u.next=O),u=O,l.defineSkip(O.start),l.write(B),t.parser.lazy[O.start.line]){let L=l.events.length;for(;L--;)if(l.events[L][1].start.offset<c&&(!l.events[L][1].end||l.events[L][1].end.offset>c))return;const Z=t.events.length;let Q=Z,ee,fe;for(;Q--;)if(t.events[Q][0]==="exit"&&t.events[Q][1].type==="chunkFlow"){if(ee){fe=t.events[Q][1].end;break}ee=!0}for(C(a),L=Z;L<t.events.length;)t.events[L][1].end={...fe},L++;Pn(t.events,Q+1,0,t.events.slice(Z)),t.events.length=L}}function C(O){let V=i.length;for(;V-- >O;){const B=i[V];t.containerState=B[1],B[0].exit.call(t,e)}i.length=O}function M(){l.write([null]),u=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Ok(e,t,i){return Ye(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tv(e){if(e===null||qt(e)||Tk(e))return 1;if(Ek(e))return 2}function qp(e,t,i){const a=[];let l=-1;for(;++l<e.length;){const u=e[l].resolveAll;u&&!a.includes(u)&&(t=u(t,i),a.push(u))}return t}const Md={name:"attention",resolveAll:_k,tokenize:Dk};function _k(e,t){let i=-1,a,l,u,c,f,p,d,m;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(a=i;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[a][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;p=e[a][1].end.offset-e[a][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const y={...e[a][1].end},v={...e[i][1].start};nv(y,-p),nv(v,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...e[a][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:v},u={type:p>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},l={type:p>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[a][1].end={...c.start},e[i][1].start={...f.end},d=[],e[a][1].end.offset-e[a][1].start.offset&&(d=yn(d,[["enter",e[a][1],t],["exit",e[a][1],t]])),d=yn(d,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",u,t]]),d=yn(d,qp(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),d=yn(d,[["exit",u,t],["enter",f,t],["exit",f,t],["exit",l,t]]),e[i][1].end.offset-e[i][1].start.offset?(m=2,d=yn(d,[["enter",e[i][1],t],["exit",e[i][1],t]])):m=0,Pn(e,a-1,i-a+3,d),i=a+d.length-m-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function Dk(e,t){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,l=tv(a);let u;return c;function c(p){return u=p,e.enter("attentionSequence"),f(p)}function f(p){if(p===u)return e.consume(p),f;const d=e.exit("attentionSequence"),m=tv(p),y=!m||m===2&&l||i.includes(p),v=!l||l===2&&m||i.includes(a);return d._open=!!(u===42?y:y&&(l||!v)),d._close=!!(u===42?v:v&&(m||!y)),t(p)}}function nv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Mk={name:"autolink",tokenize:Nk};function Nk(e,t,i){let a=0;return l;function l(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(b){return jn(b)?(e.consume(b),c):b===64?i(b):d(b)}function c(b){return b===43||b===45||b===46||tn(b)?(a=1,f(b)):d(b)}function f(b){return b===58?(e.consume(b),a=0,p):(b===43||b===45||b===46||tn(b))&&a++<32?(e.consume(b),f):(a=0,d(b))}function p(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||_d(b)?i(b):(e.consume(b),p)}function d(b){return b===64?(e.consume(b),m):xk(b)?(e.consume(b),d):i(b)}function m(b){return tn(b)?y(b):i(b)}function y(b){return b===46?(e.consume(b),a=0,m):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):v(b)}function v(b){if((b===45||tn(b))&&a++<63){const w=b===45?v:y;return e.consume(b),w}return i(b)}}const zu={partial:!0,tokenize:Lk};function Lk(e,t,i){return a;function a(u){return Le(u)?Ye(e,l,"linePrefix")(u):l(u)}function l(u){return u===null||be(u)?t(u):i(u)}}const O3={continuation:{tokenize:Bk},exit:zk,name:"blockQuote",tokenize:jk};function jk(e,t,i){const a=this;return l;function l(c){if(c===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return i(c)}function u(c){return Le(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function Bk(e,t,i){const a=this;return l;function l(c){return Le(c)?Ye(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(O3,t,i)(c)}}function zk(e){e.exit("blockQuote")}const _3={name:"characterEscape",tokenize:Uk};function Uk(e,t,i){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),l}function l(u){return wk(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):i(u)}}const D3={name:"characterReference",tokenize:Vk};function Vk(e,t,i){const a=this;let l=0,u,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),p}function p(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),u=31,c=tn,m(y))}function d(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=Sk,m):(e.enter("characterReferenceValue"),u=7,c=Dd,m(y))}function m(y){if(y===59&&l){const v=e.exit("characterReferenceValue");return c===tn&&!Pp(a.sliceSerialize(v))?i(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(y)&&l++<u?(e.consume(y),m):i(y)}}const iv={partial:!0,tokenize:Pk},rv={concrete:!0,name:"codeFenced",tokenize:Hk};function Hk(e,t,i){const a=this,l={partial:!0,tokenize:B};let u=0,c=0,f;return p;function p(L){return d(L)}function d(L){const Z=a.events[a.events.length-1];return u=Z&&Z[1].type==="linePrefix"?Z[2].sliceSerialize(Z[1],!0).length:0,f=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(L)}function m(L){return L===f?(c++,e.consume(L),m):c<3?i(L):(e.exit("codeFencedFenceSequence"),Le(L)?Ye(e,y,"whitespace")(L):y(L))}function y(L){return L===null||be(L)?(e.exit("codeFencedFence"),a.interrupt?t(L):e.check(iv,E,V)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||be(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(L)):Le(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ye(e,b,"whitespace")(L)):L===96&&L===f?i(L):(e.consume(L),v)}function b(L){return L===null||be(L)?y(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||be(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(L)):L===96&&L===f?i(L):(e.consume(L),w)}function E(L){return e.attempt(l,V,R)(L)}function R(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),C}function C(L){return u>0&&Le(L)?Ye(e,M,"linePrefix",u+1)(L):M(L)}function M(L){return L===null||be(L)?e.check(iv,E,V)(L):(e.enter("codeFlowValue"),O(L))}function O(L){return L===null||be(L)?(e.exit("codeFlowValue"),M(L)):(e.consume(L),O)}function V(L){return e.exit("codeFenced"),t(L)}function B(L,Z,Q){let ee=0;return fe;function fe(le){return L.enter("lineEnding"),L.consume(le),L.exit("lineEnding"),ie}function ie(le){return L.enter("codeFencedFence"),Le(le)?Ye(L,ne,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(le):ne(le)}function ne(le){return le===f?(L.enter("codeFencedFenceSequence"),ue(le)):Q(le)}function ue(le){return le===f?(ee++,L.consume(le),ue):ee>=c?(L.exit("codeFencedFenceSequence"),Le(le)?Ye(L,ae,"whitespace")(le):ae(le)):Q(le)}function ae(le){return le===null||be(le)?(L.exit("codeFencedFence"),Z(le)):Q(le)}}}function Pk(e,t,i){const a=this;return l;function l(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}const Mh={name:"codeIndented",tokenize:Fk},qk={partial:!0,tokenize:Ik};function Fk(e,t,i){const a=this;return l;function l(d){return e.enter("codeIndented"),Ye(e,u,"linePrefix",5)(d)}function u(d){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(d):i(d)}function c(d){return d===null?p(d):be(d)?e.attempt(qk,c,p)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||be(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function p(d){return e.exit("codeIndented"),t(d)}}function Ik(e,t,i){const a=this;return l;function l(c){return a.parser.lazy[a.now().line]?i(c):be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Ye(e,u,"linePrefix",5)(c)}function u(c){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(c):be(c)?l(c):i(c)}}const Yk={name:"codeText",previous:Xk,resolve:Gk,tokenize:Kk};function Gk(e){let t=e.length-4,i=3,a,l;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=i;++a<t;)if(e[a][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[t][1].type="codeTextPadding",i+=2,t-=2;break}}for(a=i-1,t++;++a<=t;)l===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(l=a):(a===t||e[a][1].type==="lineEnding")&&(e[l][1].type="codeTextData",a!==l+2&&(e[l][1].end=e[a-1][1].end,e.splice(l+2,a-l-2),t-=a-l-2,a=l+2),l=void 0);return e}function Xk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kk(e,t,i){let a=0,l,u;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),a++,f):(e.exit("codeTextSequence"),p(y))}function p(y){return y===null?i(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),p):y===96?(u=e.enter("codeTextSequence"),l=0,m(y)):be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||be(y)?(e.exit("codeTextData"),p(y)):(e.consume(y),d)}function m(y){return y===96?(e.consume(y),l++,m):l===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(u.type="codeTextData",d(y))}}class Zk{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,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,i,a){const l=i||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return a&&Ps(this.left,a),u.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),Ps(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ps(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 i=this.left.splice(t,Number.POSITIVE_INFINITY);Ps(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ps(this.left,i.reverse())}}}function Ps(e,t){let i=0;if(t.length<1e4)e.push(...t);else for(;i<t.length;)e.push(...t.slice(i,i+1e4)),i+=1e4}function M3(e){const t={};let i=-1,a,l,u,c,f,p,d;const m=new Zk(e);for(;++i<m.length;){for(;i in t;)i=t[i];if(a=m.get(i),i&&a[1].type==="chunkFlow"&&m.get(i-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,$k(m,i)),i=t[i],d=!0);else if(a[1]._container){for(u=i,l=void 0;u--;)if(c=m.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(a[1].end={...m.get(l)[1].start},f=m.slice(l,i),f.unshift(a),m.splice(l,i-l+1,f))}}return Pn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function $k(e,t){const i=e.get(t)[1],a=e.get(t)[2];let l=t-1;const u=[];let c=i._tokenizer;c||(c=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,p=[],d={};let m,y,v=-1,b=i,w=0,E=0;const R=[E];for(;b;){for(;e.get(++l)[1]!==b;);u.push(l),b._tokenizer||(m=a.sliceStream(b),b.next||m.push(null),y&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=i;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(E=v+1,R.push(E),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):R.pop(),v=R.length;v--;){const C=f.slice(R[v],R[v+1]),M=u.pop();p.push([M,M+C.length-1]),e.splice(M,2,C)}for(p.reverse(),v=-1;++v<p.length;)d[w+p[v][0]]=w+p[v][1],w+=p[v][1]-p[v][0]-1;return d}const Qk={resolve:Wk,tokenize:eO},Jk={partial:!0,tokenize:tO};function Wk(e){return M3(e),e}function eO(e,t){let i;return a;function a(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?u(f):be(f)?e.check(Jk,c,u)(f):(e.consume(f),l)}function u(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function c(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,l}}function tO(e,t,i){const a=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ye(e,u,"linePrefix")}function u(c){if(c===null||be(c))return i(c);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(c):e.interrupt(a.parser.constructs.flow,i,t)(c)}}function N3(e,t,i,a,l,u,c,f,p){const d=p||Number.POSITIVE_INFINITY;let m=0;return y;function y(C){return C===60?(e.enter(a),e.enter(l),e.enter(u),e.consume(C),e.exit(u),v):C===null||C===32||C===41||_d(C)?i(C):(e.enter(a),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),E(C))}function v(C){return C===62?(e.enter(u),e.consume(C),e.exit(u),e.exit(l),e.exit(a),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===62?(e.exit("chunkString"),e.exit(f),v(C)):C===null||C===60||be(C)?i(C):(e.consume(C),C===92?w:b)}function w(C){return C===60||C===62||C===92?(e.consume(C),b):b(C)}function E(C){return!m&&(C===null||C===41||qt(C))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(a),t(C)):m<d&&C===40?(e.consume(C),m++,E):C===41?(e.consume(C),m--,E):C===null||C===32||C===40||_d(C)?i(C):(e.consume(C),C===92?R:E)}function R(C){return C===40||C===41||C===92?(e.consume(C),E):E(C)}}function L3(e,t,i,a,l,u){const c=this;let f=0,p;return d;function d(b){return e.enter(a),e.enter(l),e.consume(b),e.exit(l),e.enter(u),m}function m(b){return f>999||b===null||b===91||b===93&&!p||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(e.exit(u),e.enter(l),e.consume(b),e.exit(l),e.exit(a),t):be(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||be(b)||f++>999?(e.exit("chunkString"),m(b)):(e.consume(b),p||(p=!Le(b)),b===92?v:y)}function v(b){return b===91||b===92||b===93?(e.consume(b),f++,y):y(b)}}function j3(e,t,i,a,l,u){let c;return f;function f(v){return v===34||v===39||v===40?(e.enter(a),e.enter(l),e.consume(v),e.exit(l),c=v===40?41:v,p):i(v)}function p(v){return v===c?(e.enter(l),e.consume(v),e.exit(l),e.exit(a),t):(e.enter(u),d(v))}function d(v){return v===c?(e.exit(u),p(c)):v===null?i(v):be(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Ye(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===c||v===null||be(v)?(e.exit("chunkString"),d(v)):(e.consume(v),v===92?y:m)}function y(v){return v===c||v===92?(e.consume(v),m):m(v)}}function Ws(e,t){let i;return a;function a(l){return be(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i=!0,a):Le(l)?Ye(e,a,i?"linePrefix":"lineSuffix")(l):t(l)}}const nO={name:"definition",tokenize:rO},iO={partial:!0,tokenize:aO};function rO(e,t,i){const a=this;let l;return u;function u(b){return e.enter("definition"),c(b)}function c(b){return L3.call(a,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return l=ya(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),p):i(b)}function p(b){return qt(b)?Ws(e,d)(b):d(b)}function d(b){return N3(e,m,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function m(b){return e.attempt(iO,y,y)(b)}function y(b){return Le(b)?Ye(e,v,"whitespace")(b):v(b)}function v(b){return b===null||be(b)?(e.exit("definition"),a.parser.defined.push(l),t(b)):i(b)}}function aO(e,t,i){return a;function a(f){return qt(f)?Ws(e,l)(f):i(f)}function l(f){return j3(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Le(f)?Ye(e,c,"whitespace")(f):c(f)}function c(f){return f===null||be(f)?t(f):i(f)}}const sO={name:"hardBreakEscape",tokenize:lO};function lO(e,t,i){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),l}function l(u){return be(u)?(e.exit("hardBreakEscape"),t(u)):i(u)}}const oO={name:"headingAtx",resolve:uO,tokenize:cO};function uO(e,t){let i=e.length-2,a=3,l,u;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(l={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},u={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Pn(e,a,i-a+1,[["enter",l,t],["enter",u,t],["exit",u,t],["exit",l,t]])),e}function cO(e,t,i){let a=0;return l;function l(m){return e.enter("atxHeading"),u(m)}function u(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&a++<6?(e.consume(m),c):m===null||qt(m)?(e.exit("atxHeadingSequence"),f(m)):i(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),p(m)):m===null||be(m)?(e.exit("atxHeading"),t(m)):Le(m)?Ye(e,f,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function p(m){return m===35?(e.consume(m),p):(e.exit("atxHeadingSequence"),f(m))}function d(m){return m===null||m===35||qt(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),d)}}const fO=["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"],av=["pre","script","style","textarea"],hO={concrete:!0,name:"htmlFlow",resolveTo:mO,tokenize:gO},dO={partial:!0,tokenize:vO},pO={partial:!0,tokenize:yO};function mO(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 gO(e,t,i){const a=this;let l,u,c,f,p;return d;function d(k){return m(k)}function m(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),y}function y(k){return k===33?(e.consume(k),v):k===47?(e.consume(k),u=!0,E):k===63?(e.consume(k),l=3,a.interrupt?t:S):jn(k)?(e.consume(k),c=String.fromCharCode(k),R):i(k)}function v(k){return k===45?(e.consume(k),l=2,b):k===91?(e.consume(k),l=5,f=0,w):jn(k)?(e.consume(k),l=4,a.interrupt?t:S):i(k)}function b(k){return k===45?(e.consume(k),a.interrupt?t:S):i(k)}function w(k){const oe="CDATA[";return k===oe.charCodeAt(f++)?(e.consume(k),f===oe.length?a.interrupt?t:ne:w):i(k)}function E(k){return jn(k)?(e.consume(k),c=String.fromCharCode(k),R):i(k)}function R(k){if(k===null||k===47||k===62||qt(k)){const oe=k===47,Te=c.toLowerCase();return!oe&&!u&&av.includes(Te)?(l=1,a.interrupt?t(k):ne(k)):fO.includes(c.toLowerCase())?(l=6,oe?(e.consume(k),C):a.interrupt?t(k):ne(k)):(l=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(k):u?M(k):O(k))}return k===45||tn(k)?(e.consume(k),c+=String.fromCharCode(k),R):i(k)}function C(k){return k===62?(e.consume(k),a.interrupt?t:ne):i(k)}function M(k){return Le(k)?(e.consume(k),M):fe(k)}function O(k){return k===47?(e.consume(k),fe):k===58||k===95||jn(k)?(e.consume(k),V):Le(k)?(e.consume(k),O):fe(k)}function V(k){return k===45||k===46||k===58||k===95||tn(k)?(e.consume(k),V):B(k)}function B(k){return k===61?(e.consume(k),L):Le(k)?(e.consume(k),B):O(k)}function L(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(e.consume(k),p=k,Z):Le(k)?(e.consume(k),L):Q(k)}function Z(k){return k===p?(e.consume(k),p=null,ee):k===null||be(k)?i(k):(e.consume(k),Z)}function Q(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||qt(k)?B(k):(e.consume(k),Q)}function ee(k){return k===47||k===62||Le(k)?O(k):i(k)}function fe(k){return k===62?(e.consume(k),ie):i(k)}function ie(k){return k===null||be(k)?ne(k):Le(k)?(e.consume(k),ie):i(k)}function ne(k){return k===45&&l===2?(e.consume(k),q):k===60&&l===1?(e.consume(k),$):k===62&&l===4?(e.consume(k),X):k===63&&l===3?(e.consume(k),S):k===93&&l===5?(e.consume(k),we):be(k)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(dO,te,ue)(k)):k===null||be(k)?(e.exit("htmlFlowData"),ue(k)):(e.consume(k),ne)}function ue(k){return e.check(pO,ae,te)(k)}function ae(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),le}function le(k){return k===null||be(k)?ue(k):(e.enter("htmlFlowData"),ne(k))}function q(k){return k===45?(e.consume(k),S):ne(k)}function $(k){return k===47?(e.consume(k),c="",re):ne(k)}function re(k){if(k===62){const oe=c.toLowerCase();return av.includes(oe)?(e.consume(k),X):ne(k)}return jn(k)&&c.length<8?(e.consume(k),c+=String.fromCharCode(k),re):ne(k)}function we(k){return k===93?(e.consume(k),S):ne(k)}function S(k){return k===62?(e.consume(k),X):k===45&&l===2?(e.consume(k),S):ne(k)}function X(k){return k===null||be(k)?(e.exit("htmlFlowData"),te(k)):(e.consume(k),X)}function te(k){return e.exit("htmlFlow"),t(k)}}function yO(e,t,i){const a=this;return l;function l(c){return be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):i(c)}function u(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}function vO(e,t,i){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(zu,t,i)}}const bO={name:"htmlText",tokenize:xO};function xO(e,t,i){const a=this;let l,u,c;return f;function f(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),p}function p(S){return S===33?(e.consume(S),d):S===47?(e.consume(S),B):S===63?(e.consume(S),O):jn(S)?(e.consume(S),Q):i(S)}function d(S){return S===45?(e.consume(S),m):S===91?(e.consume(S),u=0,w):jn(S)?(e.consume(S),M):i(S)}function m(S){return S===45?(e.consume(S),b):i(S)}function y(S){return S===null?i(S):S===45?(e.consume(S),v):be(S)?(c=y,$(S)):(e.consume(S),y)}function v(S){return S===45?(e.consume(S),b):y(S)}function b(S){return S===62?q(S):S===45?v(S):y(S)}function w(S){const X="CDATA[";return S===X.charCodeAt(u++)?(e.consume(S),u===X.length?E:w):i(S)}function E(S){return S===null?i(S):S===93?(e.consume(S),R):be(S)?(c=E,$(S)):(e.consume(S),E)}function R(S){return S===93?(e.consume(S),C):E(S)}function C(S){return S===62?q(S):S===93?(e.consume(S),C):E(S)}function M(S){return S===null||S===62?q(S):be(S)?(c=M,$(S)):(e.consume(S),M)}function O(S){return S===null?i(S):S===63?(e.consume(S),V):be(S)?(c=O,$(S)):(e.consume(S),O)}function V(S){return S===62?q(S):O(S)}function B(S){return jn(S)?(e.consume(S),L):i(S)}function L(S){return S===45||tn(S)?(e.consume(S),L):Z(S)}function Z(S){return be(S)?(c=Z,$(S)):Le(S)?(e.consume(S),Z):q(S)}function Q(S){return S===45||tn(S)?(e.consume(S),Q):S===47||S===62||qt(S)?ee(S):i(S)}function ee(S){return S===47?(e.consume(S),q):S===58||S===95||jn(S)?(e.consume(S),fe):be(S)?(c=ee,$(S)):Le(S)?(e.consume(S),ee):q(S)}function fe(S){return S===45||S===46||S===58||S===95||tn(S)?(e.consume(S),fe):ie(S)}function ie(S){return S===61?(e.consume(S),ne):be(S)?(c=ie,$(S)):Le(S)?(e.consume(S),ie):ee(S)}function ne(S){return S===null||S===60||S===61||S===62||S===96?i(S):S===34||S===39?(e.consume(S),l=S,ue):be(S)?(c=ne,$(S)):Le(S)?(e.consume(S),ne):(e.consume(S),ae)}function ue(S){return S===l?(e.consume(S),l=void 0,le):S===null?i(S):be(S)?(c=ue,$(S)):(e.consume(S),ue)}function ae(S){return S===null||S===34||S===39||S===60||S===61||S===96?i(S):S===47||S===62||qt(S)?ee(S):(e.consume(S),ae)}function le(S){return S===47||S===62||qt(S)?ee(S):i(S)}function q(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):i(S)}function $(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),re}function re(S){return Le(S)?Ye(e,we,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):we(S)}function we(S){return e.enter("htmlTextData"),c(S)}}const Fp={name:"labelEnd",resolveAll:TO,resolveTo:CO,tokenize:AO},SO={tokenize:RO},wO={tokenize:kO},EO={tokenize:OO};function TO(e){let t=-1;const i=[];for(;++t<e.length;){const a=e[t][1];if(i.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const l=a.type==="labelImage"?4:2;a.type="data",t+=l}}return e.length!==i.length&&Pn(e,0,e.length,i),e}function CO(e,t){let i=e.length,a=0,l,u,c,f;for(;i--;)if(l=e[i][1],u){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[i][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(u=i,l.type!=="labelLink")){a=2;break}}else l.type==="labelEnd"&&(c=i);const p={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",p,t],["enter",d,t]],f=yn(f,e.slice(u+1,u+a+3)),f=yn(f,[["enter",m,t]]),f=yn(f,qp(t.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),t)),f=yn(f,[["exit",m,t],e[c-2],e[c-1],["exit",d,t]]),f=yn(f,e.slice(c+1)),f=yn(f,[["exit",p,t]]),Pn(e,u,e.length,f),e}function AO(e,t,i){const a=this;let l=a.events.length,u,c;for(;l--;)if((a.events[l][1].type==="labelImage"||a.events[l][1].type==="labelLink")&&!a.events[l][1]._balanced){u=a.events[l][1];break}return f;function f(v){return u?u._inactive?y(v):(c=a.parser.defined.includes(ya(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),p):i(v)}function p(v){return v===40?e.attempt(SO,m,c?m:y)(v):v===91?e.attempt(wO,m,c?d:y)(v):c?m(v):y(v)}function d(v){return e.attempt(EO,m,y)(v)}function m(v){return t(v)}function y(v){return u._balanced=!0,i(v)}}function RO(e,t,i){return a;function a(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return qt(y)?Ws(e,u)(y):u(y)}function u(y){return y===41?m(y):N3(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return qt(y)?Ws(e,p)(y):m(y)}function f(y){return i(y)}function p(y){return y===34||y===39||y===40?j3(e,d,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function d(y){return qt(y)?Ws(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):i(y)}}function kO(e,t,i){const a=this;return l;function l(f){return L3.call(a,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return a.parser.defined.includes(ya(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(f):i(f)}function c(f){return i(f)}}function OO(e,t,i){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),l}function l(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):i(u)}}const _O={name:"labelStartImage",resolveAll:Fp.resolveAll,tokenize:DO};function DO(e,t,i){const a=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):i(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(f):t(f)}}const MO={name:"labelStartLink",resolveAll:Fp.resolveAll,tokenize:NO};function NO(e,t,i){const a=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(c):t(c)}}const Nh={name:"lineEnding",tokenize:LO};function LO(e,t){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ye(e,t,"linePrefix")}}const cu={name:"thematicBreak",tokenize:jO};function jO(e,t,i){let a=0,l;return u;function u(d){return e.enter("thematicBreak"),c(d)}function c(d){return l=d,f(d)}function f(d){return d===l?(e.enter("thematicBreakSequence"),p(d)):a>=3&&(d===null||be(d))?(e.exit("thematicBreak"),t(d)):i(d)}function p(d){return d===l?(e.consume(d),a++,p):(e.exit("thematicBreakSequence"),Le(d)?Ye(e,f,"whitespace")(d):f(d))}}const Vt={continuation:{tokenize:VO},exit:PO,name:"list",tokenize:UO},BO={partial:!0,tokenize:qO},zO={partial:!0,tokenize:HO};function UO(e,t,i){const a=this,l=a.events[a.events.length-1];let u=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return f;function f(b){const w=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:Dd(b)){if(a.containerState.type||(a.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(cu,i,d)(b):d(b);if(!a.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(b)}return i(b)}function p(b){return Dd(b)&&++c<10?(e.consume(b),p):(!a.interrupt||c<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),d(b)):i(b)}function d(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,e.check(zu,a.interrupt?i:m,e.attempt(BO,v,y))}function m(b){return a.containerState.initialBlankLine=!0,u++,v(b)}function y(b){return Le(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),v):i(b)}function v(b){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function VO(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(zu,l,u);function l(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ye(e,t,"listItemIndent",a.containerState.size+1)(f)}function u(f){return a.containerState.furtherBlankLines||!Le(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(zO,t,c)(f))}function c(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ye(e,e.attempt(Vt,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function HO(e,t,i){const a=this;return Ye(e,l,"listItemIndent",a.containerState.size+1);function l(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?t(u):i(u)}}function PO(e){e.exit(this.containerState.type)}function qO(e,t,i){const a=this;return Ye(e,l,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(u){const c=a.events[a.events.length-1];return!Le(u)&&c&&c[1].type==="listItemPrefixWhitespace"?t(u):i(u)}}const sv={name:"setextUnderline",resolveTo:FO,tokenize:IO};function FO(e,t){let i=e.length,a,l,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(l=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",u?(e.splice(l,0,["enter",c,t]),e.splice(u+1,0,["exit",e[a][1],t]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function IO(e,t,i){const a=this;let l;return u;function u(d){let m=a.events.length,y;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){y=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(e.enter("setextHeadingLine"),l=d,c(d)):i(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===l?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),Le(d)?Ye(e,p,"lineSuffix")(d):p(d))}function p(d){return d===null||be(d)?(e.exit("setextHeadingLine"),t(d)):i(d)}}const YO={tokenize:GO};function GO(e){const t=this,i=e.attempt(zu,a,e.attempt(this.parser.constructs.flowInitial,l,Ye(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Qk,l)),"linePrefix")));return i;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function l(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const XO={resolveAll:z3()},KO=B3("string"),ZO=B3("text");function B3(e){return{resolveAll:z3(e==="text"?$O:void 0),tokenize:t};function t(i){const a=this,l=this.parser.constructs[e],u=i.attempt(l,c,f);return c;function c(m){return d(m)?u(m):f(m)}function f(m){if(m===null){i.consume(m);return}return i.enter("data"),i.consume(m),p}function p(m){return d(m)?(i.exit("data"),u(m)):(i.consume(m),p)}function d(m){if(m===null)return!0;const y=l[m];let v=-1;if(y)for(;++v<y.length;){const b=y[v];if(!b.previous||b.previous.call(a,a.previous))return!0}return!1}}}function z3(e){return t;function t(i,a){let l=-1,u;for(;++l<=i.length;)u===void 0?i[l]&&i[l][1].type==="data"&&(u=l,l++):(!i[l]||i[l][1].type!=="data")&&(l!==u+2&&(i[u][1].end=i[l-1][1].end,i.splice(u+2,l-u-2),l=u+2),u=void 0);return e?e(i,a):i}}function $O(e,t){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],l=t.sliceStream(a);let u=l.length,c=-1,f=0,p;for(;u--;){const d=l[u];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(d===-2)p=!0,f++;else if(d!==-1){u++;break}}if(t._contentTypeTextTrailing&&i===e.length&&(f=0),f){const d={type:i===e.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...d.start},a.start.offset===a.end.offset?Object.assign(a,d):(e.splice(i,0,["enter",d,t],["exit",d,t]),i+=2)}i++}return e}const QO={42:Vt,43:Vt,45:Vt,48:Vt,49:Vt,50:Vt,51:Vt,52:Vt,53:Vt,54:Vt,55:Vt,56:Vt,57:Vt,62:O3},JO={91:nO},WO={[-2]:Mh,[-1]:Mh,32:Mh},e_={35:oO,42:cu,45:[sv,cu],60:hO,61:sv,95:cu,96:rv,126:rv},t_={38:D3,92:_3},n_={[-5]:Nh,[-4]:Nh,[-3]:Nh,33:_O,38:D3,42:Md,60:[Mk,bO],91:MO,92:[sO,_3],93:Fp,95:Md,96:Yk},i_={null:[Md,XO]},r_={null:[42,95]},a_={null:[]},s_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:r_,contentInitial:JO,disable:a_,document:QO,flow:e_,flowInitial:WO,insideSpan:i_,string:t_,text:n_},Symbol.toStringTag,{value:"Module"}));function l_(e,t,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const l={},u=[];let c=[],f=[];const p={attempt:Z(B),check:Z(L),consume:M,enter:O,exit:V,interrupt:Z(L,{interrupt:!0})},d={code:null,containerState:{},defineSkip:E,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:b,write:y};let m=t.tokenize.call(d,p);return t.resolveAll&&u.push(t),d;function y(ie){return c=yn(c,ie),R(),c[c.length-1]!==null?[]:(Q(t,0),d.events=qp(u,d.events,d),d.events)}function v(ie,ne){return u_(b(ie),ne)}function b(ie){return o_(c,ie)}function w(){const{_bufferIndex:ie,_index:ne,line:ue,column:ae,offset:le}=a;return{_bufferIndex:ie,_index:ne,line:ue,column:ae,offset:le}}function E(ie){l[ie.line]=ie.column,fe()}function R(){let ie;for(;a._index<c.length;){const ne=c[a._index];if(typeof ne=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<ne.length;)C(ne.charCodeAt(a._bufferIndex));else C(ne)}}function C(ie){m=m(ie)}function M(ie){be(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,fe()):ie!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),d.previous=ie}function O(ie,ne){const ue=ne||{};return ue.type=ie,ue.start=w(),d.events.push(["enter",ue,d]),f.push(ue),ue}function V(ie){const ne=f.pop();return ne.end=w(),d.events.push(["exit",ne,d]),ne}function B(ie,ne){Q(ie,ne.from)}function L(ie,ne){ne.restore()}function Z(ie,ne){return ue;function ue(ae,le,q){let $,re,we,S;return Array.isArray(ae)?te(ae):"tokenize"in ae?te([ae]):X(ae);function X(ce){return ct;function ct(De){const _t=De!==null&&ce[De],An=De!==null&&ce.null,Fn=[...Array.isArray(_t)?_t:_t?[_t]:[],...Array.isArray(An)?An:An?[An]:[]];return te(Fn)(De)}}function te(ce){return $=ce,re=0,ce.length===0?q:k(ce[re])}function k(ce){return ct;function ct(De){return S=ee(),we=ce,ce.partial||(d.currentConstruct=ce),ce.name&&d.parser.constructs.disable.null.includes(ce.name)?Te():ce.tokenize.call(ne?Object.assign(Object.create(d),ne):d,p,oe,Te)(De)}}function oe(ce){return ie(we,S),le}function Te(ce){return S.restore(),++re<$.length?k($[re]):q}}}function Q(ie,ne){ie.resolveAll&&!u.includes(ie)&&u.push(ie),ie.resolve&&Pn(d.events,ne,d.events.length-ne,ie.resolve(d.events.slice(ne),d)),ie.resolveTo&&(d.events=ie.resolveTo(d.events,d))}function ee(){const ie=w(),ne=d.previous,ue=d.currentConstruct,ae=d.events.length,le=Array.from(f);return{from:ae,restore:q};function q(){a=ie,d.previous=ne,d.currentConstruct=ue,d.events.length=ae,f=le,fe()}}function fe(){a.line in l&&a.column<2&&(a.column=l[a.line],a.offset+=l[a.line]-1)}}function o_(e,t){const i=t.start._index,a=t.start._bufferIndex,l=t.end._index,u=t.end._bufferIndex;let c;if(i===l)c=[e[i].slice(a,u)];else{if(c=e.slice(i,l),a>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(a):c.shift()}u>0&&c.push(e[l].slice(0,u))}return c}function u_(e,t){let i=-1;const a=[];let l;for(;++i<e.length;){const u=e[i];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
256
+ `;break}case-3:{c=`\r
257
+ `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(u)}l=u===-2,a.push(c)}return a.join("")}function c_(e){const a={constructs:yk([s_,...(e||{}).extensions||[]]),content:l(Ck),defined:[],document:l(Rk),flow:l(YO),lazy:{},string:l(KO),text:l(ZO)};return a;function l(u){return c;function c(f){return l_(a,u,f)}}}function f_(e){for(;!M3(e););return e}const lv=/[\0\t\n\r]/g;function h_(){let e=1,t="",i=!0,a;return l;function l(u,c,f){const p=[];let d,m,y,v,b;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,t="",i&&(u.charCodeAt(0)===65279&&y++,i=void 0);y<u.length;){if(lv.lastIndex=y,d=lv.exec(u),v=d&&d.index!==void 0?d.index:u.length,b=u.charCodeAt(v),!d){t=u.slice(y);break}if(b===10&&y===v&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),y<v&&(p.push(u.slice(y,v)),e+=v-y),b){case 0:{p.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,p.push(-2);e++<m;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}y=v+1}return f&&(a&&p.push(-5),t&&p.push(t),p.push(null)),p}}const d_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function p_(e){return e.replace(d_,m_)}function m_(e,t,i){if(t)return t;if(i.charCodeAt(0)===35){const l=i.charCodeAt(1),u=l===120||l===88;return k3(i.slice(u?2:1),u?16:10)}return Pp(i)||e}const U3={}.hasOwnProperty;function g_(e,t,i){return typeof t!="string"&&(i=t,t=void 0),y_(i)(f_(c_(i).document().write(h_()(e,t,!0))))}function y_(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(La),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:u(Tl),blockQuote:u(An),characterEscape:ee,characterReference:ee,codeFenced:u(Fn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Fn,c),codeText:u(Da,c),codeTextData:ee,data:ee,codeFlowValue:ee,definition:u(Ma),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Na),hardBreakEscape:u(Cl),hardBreakTrailing:u(Cl),htmlFlow:u(It,c),htmlFlowData:ee,htmlText:u(It,c),htmlTextData:ee,image:u(Hu),label:c,link:u(La),listItem:u(xr),listItemValue:v,listOrdered:u(ja,y),listUnordered:u(ja),paragraph:u(Pu),reference:k,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Tl),strong:u(Al),thematicBreak:u(Fu)},exit:{atxHeading:p(),atxHeadingSequence:B,autolink:p(),autolinkEmail:_t,autolinkProtocol:De,blockQuote:p(),characterEscapeValue:fe,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:ce,characterReference:ct,codeFenced:p(R),codeFencedFence:E,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:fe,codeIndented:p(C),codeText:p(le),codeTextData:fe,data:fe,definition:p(),definitionDestinationString:V,definitionLabelString:M,definitionTitleString:O,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(ue),htmlFlowData:fe,htmlText:p(ae),htmlTextData:fe,image:p($),label:we,labelText:re,lineEnding:ie,link:p(q),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:oe,resourceDestinationString:S,resourceTitleString:X,resource:te,setextHeading:p(Q),setextHeadingLineSequence:Z,setextHeadingText:L,strong:p(),thematicBreak:p()}};V3(t,(e||{}).mdastExtensions||[]);const i={};return a;function a(I){let J={type:"root",children:[]};const de={stack:[J],tokenStack:[],config:t,enter:f,exit:d,buffer:c,resume:m,data:i},ge=[];let je=-1;for(;++je<I.length;)if(I[je][1].type==="listOrdered"||I[je][1].type==="listUnordered")if(I[je][0]==="enter")ge.push(je);else{const Yt=ge.pop();je=l(I,Yt,je)}for(je=-1;++je<I.length;){const Yt=t[I[je][0]];U3.call(Yt,I[je][1].type)&&Yt[I[je][1].type].call(Object.assign({sliceSerialize:I[je][2].sliceSerialize},de),I[je][1])}if(de.tokenStack.length>0){const Yt=de.tokenStack[de.tokenStack.length-1];(Yt[1]||ov).call(de,void 0,Yt[0])}for(J.position={start:Bi(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:Bi(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je<t.transforms.length;)J=t.transforms[je](J)||J;return J}function l(I,J,de){let ge=J-1,je=-1,Yt=!1,In,Nt,Rn,Gt;for(;++ge<=de;){const dt=I[ge];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?je++:je--,Gt=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&(In&&!Gt&&!je&&!Rn&&(Rn=ge),Gt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gt=void 0}if(!je&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||je===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if(In){let rn=ge;for(Nt=void 0;rn--;){const bn=I[rn];if(bn[1].type==="lineEnding"||bn[1].type==="lineEndingBlank"){if(bn[0]==="exit")continue;Nt&&(I[Nt][1].type="lineEndingBlank",Yt=!0),bn[1].type="lineEnding",Nt=rn}else if(!(bn[1].type==="linePrefix"||bn[1].type==="blockQuotePrefix"||bn[1].type==="blockQuotePrefixWhitespace"||bn[1].type==="blockQuoteMarker"||bn[1].type==="listItemIndent"))break}Rn&&(!Nt||Rn<Nt)&&(In._spread=!0),In.end=Object.assign({},Nt?I[Nt][1].start:dt[1].end),I.splice(Nt||ge,0,["exit",In,dt[2]]),ge++,de++}if(dt[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};In=rn,I.splice(ge,0,["enter",rn,dt[2]]),ge++,de++,Rn=void 0,Gt=!0}}}return I[J][1]._spread=Yt,de}function u(I,J){return de;function de(ge){f.call(this,I(ge),ge),J&&J.call(this,ge)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(I,J,de){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([J,de||void 0]),I.position={start:Bi(J.start),end:void 0}}function p(I){return J;function J(de){I&&I.call(this,de),d.call(this,de)}}function d(I,J){const de=this.stack.pop(),ge=this.tokenStack.pop();if(ge)ge[0].type!==I.type&&(J?J.call(this,I,ge[0]):(ge[1]||ov).call(this,I,ge[0]));else throw new Error("Cannot close `"+I.type+"` ("+Js({start:I.start,end:I.end})+"): it’s not open");de.position.end=Bi(I.end)}function m(){return mk(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(I){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function b(){const I=this.resume(),J=this.stack[this.stack.length-1];J.lang=I}function w(){const I=this.resume(),J=this.stack[this.stack.length-1];J.meta=I}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const I=this.resume(),J=this.stack[this.stack.length-1];J.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const I=this.resume(),J=this.stack[this.stack.length-1];J.value=I.replace(/(\r?\n|\r)$/g,"")}function M(I){const J=this.resume(),de=this.stack[this.stack.length-1];de.label=J,de.identifier=ya(this.sliceSerialize(I)).toLowerCase()}function O(){const I=this.resume(),J=this.stack[this.stack.length-1];J.title=I}function V(){const I=this.resume(),J=this.stack[this.stack.length-1];J.url=I}function B(I){const J=this.stack[this.stack.length-1];if(!J.depth){const de=this.sliceSerialize(I).length;J.depth=de}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function Z(I){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function Q(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(I){const de=this.stack[this.stack.length-1].children;let ge=de[de.length-1];(!ge||ge.type!=="text")&&(ge=qu(),ge.position={start:Bi(I.start),end:void 0},de.push(ge)),this.stack.push(ge)}function fe(I){const J=this.stack.pop();J.value+=this.sliceSerialize(I),J.position.end=Bi(I.end)}function ie(I){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=J.children[J.children.length-1];de.position.end=Bi(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(J.type)&&(ee.call(this,I),fe.call(this,I))}function ne(){this.data.atHardBreak=!0}function ue(){const I=this.resume(),J=this.stack[this.stack.length-1];J.value=I}function ae(){const I=this.resume(),J=this.stack[this.stack.length-1];J.value=I}function le(){const I=this.resume(),J=this.stack[this.stack.length-1];J.value=I}function q(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=J,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function $(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=J,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function re(I){const J=this.sliceSerialize(I),de=this.stack[this.stack.length-2];de.label=p_(J),de.identifier=ya(J).toLowerCase()}function we(){const I=this.stack[this.stack.length-1],J=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const ge=I.children;de.children=ge}else de.alt=J}function S(){const I=this.resume(),J=this.stack[this.stack.length-1];J.url=I}function X(){const I=this.resume(),J=this.stack[this.stack.length-1];J.title=I}function te(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function oe(I){const J=this.resume(),de=this.stack[this.stack.length-1];de.label=J,de.identifier=ya(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function Te(I){this.data.characterReferenceType=I.type}function ce(I){const J=this.sliceSerialize(I),de=this.data.characterReferenceType;let ge;de?(ge=k3(J,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ge=Pp(J);const je=this.stack[this.stack.length-1];je.value+=ge}function ct(I){const J=this.stack.pop();J.position.end=Bi(I.end)}function De(I){fe.call(this,I);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(I)}function _t(I){fe.call(this,I);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(I)}function An(){return{type:"blockquote",children:[]}}function Fn(){return{type:"code",lang:null,meta:null,value:""}}function Da(){return{type:"inlineCode",value:""}}function Ma(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Na(){return{type:"emphasis",children:[]}}function Tl(){return{type:"heading",depth:0,children:[]}}function Cl(){return{type:"break"}}function It(){return{type:"html",value:""}}function Hu(){return{type:"image",title:null,url:"",alt:null}}function La(){return{type:"link",title:null,url:"",children:[]}}function ja(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function xr(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function Pu(){return{type:"paragraph",children:[]}}function Al(){return{type:"strong",children:[]}}function qu(){return{type:"text",value:""}}function Fu(){return{type:"thematicBreak"}}}function Bi(e){return{line:e.line,column:e.column,offset:e.offset}}function V3(e,t){let i=-1;for(;++i<t.length;){const a=t[i];Array.isArray(a)?V3(e,a):v_(e,a)}}function v_(e,t){let i;for(i in t)if(U3.call(t,i))switch(i){case"canContainEols":{const a=t[i];a&&e[i].push(...a);break}case"transforms":{const a=t[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=t[i];a&&Object.assign(e[i],a);break}}}function ov(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Js({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Js({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Js({start:t.start,end:t.end})+") is still open")}function b_(e){const t=this;t.parser=i;function i(a){return g_(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function x_(e,t){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,i),e.applyData(t,i)}function S_(e,t){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,i),[e.applyData(t,i),{type:"text",value:`
258
+ `}]}function w_(e,t){const i=t.value?t.value+`
259
+ `:"",a={};t.lang&&(a.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function E_(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function T_(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function C_(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),l=_a(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let c,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(a,f);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+l,id:i+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,p);const d={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,d),e.applyData(t,d)}function A_(e,t){const i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function R_(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function H3(e,t){const i=t.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const l=e.all(t),u=l[0];u&&u.type==="text"?u.value="["+u.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=a:l.push({type:"text",value:a}),l}function k_(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return H3(e,t);const l={src:_a(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(l.title=a.title);const u={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,u),e.applyData(t,u)}function O_(e,t){const i={src:_a(t.url)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function __(e,t){const i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,a),e.applyData(t,a)}function D_(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return H3(e,t);const l={href:_a(a.url||"")};a.title!==null&&a.title!==void 0&&(l.title=a.title);const u={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function M_(e,t){const i={href:_a(t.url)};t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function N_(e,t,i){const a=e.all(t),l=i?L_(i):P3(t),u={},c=[];if(typeof t.checked=="boolean"){const m=a[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},a.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const m=a[f];(l||f!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
260
+ `}),m.type==="element"&&m.tagName==="p"&&!l?c.push(...m.children):c.push(m)}const p=a[a.length-1];p&&(l||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
261
+ `});const d={type:"element",tagName:"li",properties:u,children:c};return e.patch(t,d),e.applyData(t,d)}function L_(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const i=e.children;let a=-1;for(;!t&&++a<i.length;)t=P3(i[a])}return t}function P3(e){const t=e.spread;return t??e.children.length>1}function j_(e,t){const i={},a=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(i.start=t.start);++l<a.length;){const c=a[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:i,children:e.wrap(a,!0)};return e.patch(t,u),e.applyData(t,u)}function B_(e,t){const i={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function z_(e,t){const i={type:"root",children:e.wrap(e.all(t))};return e.patch(t,i),e.applyData(t,i)}function U_(e,t){const i={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function V_(e,t){const i=e.all(t),a=i.shift(),l=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],c),l.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=zp(t.children[1]),p=S3(t.children[t.children.length-1]);f&&p&&(c.position={start:f,end:p}),l.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}function H_(e,t,i){const a=i?i.children:void 0,u=(a?a.indexOf(t):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:t.children.length;let p=-1;const d=[];for(;++p<f;){const y=t.children[p],v={},b=c?c[p]:void 0;b&&(v.align=b);let w={type:"element",tagName:u,properties:v,children:[]};y&&(w.children=e.all(y),e.patch(y,w),w=e.applyData(y,w)),d.push(w)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,m),e.applyData(t,m)}function P_(e,t){const i={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}const uv=9,cv=32;function q_(e){const t=String(e),i=/\r?\n|\r/g;let a=i.exec(t),l=0;const u=[];for(;a;)u.push(fv(t.slice(l,a.index),l>0,!0),a[0]),l=a.index+a[0].length,a=i.exec(t);return u.push(fv(t.slice(l),l>0,!1)),u.join("")}function fv(e,t,i){let a=0,l=e.length;if(t){let u=e.codePointAt(a);for(;u===uv||u===cv;)a++,u=e.codePointAt(a)}if(i){let u=e.codePointAt(l-1);for(;u===uv||u===cv;)l--,u=e.codePointAt(l-1)}return l>a?e.slice(a,l):""}function F_(e,t){const i={type:"text",value:q_(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function I_(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const Y_={blockquote:x_,break:S_,code:w_,delete:E_,emphasis:T_,footnoteReference:C_,heading:A_,html:R_,imageReference:k_,image:O_,inlineCode:__,linkReference:D_,link:M_,listItem:N_,list:j_,paragraph:B_,root:z_,strong:U_,table:V_,tableCell:P_,tableRow:H_,text:F_,thematicBreak:I_,toml:Go,yaml:Go,definition:Go,footnoteDefinition:Go};function Go(){}const q3=-1,Uu=0,el=1,xu=2,Ip=3,Yp=4,Gp=5,Xp=6,F3=7,I3=8,hv=typeof self=="object"?self:globalThis,G_=(e,t)=>{const i=(l,u)=>(e.set(u,l),l),a=l=>{if(e.has(l))return e.get(l);const[u,c]=t[l];switch(u){case Uu:case q3:return i(c,l);case el:{const f=i([],l);for(const p of c)f.push(a(p));return f}case xu:{const f=i({},l);for(const[p,d]of c)f[a(p)]=a(d);return f}case Ip:return i(new Date(c),l);case Yp:{const{source:f,flags:p}=c;return i(new RegExp(f,p),l)}case Gp:{const f=i(new Map,l);for(const[p,d]of c)f.set(a(p),a(d));return f}case Xp:{const f=i(new Set,l);for(const p of c)f.add(a(p));return f}case F3:{const{name:f,message:p}=c;return i(new hv[f](p),l)}case I3:return i(BigInt(c),l);case"BigInt":return i(Object(BigInt(c)),l);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return i(new DataView(f),c)}}return i(new hv[u](c),l)};return a},dv=e=>G_(new Map,e)(0),la="",{toString:X_}={},{keys:K_}=Object,qs=e=>{const t=typeof e;if(t!=="object"||!e)return[Uu,t];const i=X_.call(e).slice(8,-1);switch(i){case"Array":return[el,la];case"Object":return[xu,la];case"Date":return[Ip,la];case"RegExp":return[Yp,la];case"Map":return[Gp,la];case"Set":return[Xp,la];case"DataView":return[el,i]}return i.includes("Array")?[el,i]:i.includes("Error")?[F3,i]:[xu,i]},Xo=([e,t])=>e===Uu&&(t==="function"||t==="symbol"),Z_=(e,t,i,a)=>{const l=(c,f)=>{const p=a.push(c)-1;return i.set(f,p),p},u=c=>{if(i.has(c))return i.get(c);let[f,p]=qs(c);switch(f){case Uu:{let m=c;switch(p){case"bigint":f=I3,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);m=null;break;case"undefined":return l([q3],c)}return l([f,m],c)}case el:{if(p){let v=c;return p==="DataView"?v=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(c)),l([p,[...v]],c)}const m=[],y=l([f,m],c);for(const v of c)m.push(u(v));return y}case xu:{if(p)switch(p){case"BigInt":return l([p,c.toString()],c);case"Boolean":case"Number":case"String":return l([p,c.valueOf()],c)}if(t&&"toJSON"in c)return u(c.toJSON());const m=[],y=l([f,m],c);for(const v of K_(c))(e||!Xo(qs(c[v])))&&m.push([u(v),u(c[v])]);return y}case Ip:return l([f,c.toISOString()],c);case Yp:{const{source:m,flags:y}=c;return l([f,{source:m,flags:y}],c)}case Gp:{const m=[],y=l([f,m],c);for(const[v,b]of c)(e||!(Xo(qs(v))||Xo(qs(b))))&&m.push([u(v),u(b)]);return y}case Xp:{const m=[],y=l([f,m],c);for(const v of c)(e||!Xo(qs(v)))&&m.push(u(v));return y}}const{message:d}=c;return l([f,{name:p,message:d}],c)};return u},pv=(e,{json:t,lossy:i}={})=>{const a=[];return Z_(!(t||i),!!t,new Map,a)(e),a},Su=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?dv(pv(e,t)):structuredClone(e):(e,t)=>dv(pv(e,t));function $_(e,t){const i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function Q_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function J_(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||$_,a=e.options.footnoteBackLabel||Q_,l=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let p=-1;for(;++p<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[p]);if(!d)continue;const m=e.all(d),y=String(d.identifier).toUpperCase(),v=_a(y.toLowerCase());let b=0;const w=[],E=e.footnoteCounts.get(y);for(;E!==void 0&&++b<=E;){w.length>0&&w.push({type:"text",value:" "});let M=typeof i=="string"?i:i(p,b);typeof M=="string"&&(M={type:"text",value:M}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,b),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const R=m[m.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const M=R.children[R.children.length-1];M&&M.type==="text"?M.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...w)}else m.push(...w);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(d,C),f.push(C)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Su(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
262
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
263
+ `}]}}const Y3=function(e){if(e==null)return nD;if(typeof e=="function")return Vu(e);if(typeof e=="object")return Array.isArray(e)?W_(e):eD(e);if(typeof e=="string")return tD(e);throw new Error("Expected function, string, or object as test")};function W_(e){const t=[];let i=-1;for(;++i<e.length;)t[i]=Y3(e[i]);return Vu(a);function a(...l){let u=-1;for(;++u<t.length;)if(t[u].apply(this,l))return!0;return!1}}function eD(e){const t=e;return Vu(i);function i(a){const l=a;let u;for(u in e)if(l[u]!==t[u])return!1;return!0}}function tD(e){return Vu(t);function t(i){return i&&i.type===e}}function Vu(e){return t;function t(i,a,l){return!!(iD(i)&&e.call(this,i,typeof a=="number"?a:void 0,l||void 0))}}function nD(){return!0}function iD(e){return e!==null&&typeof e=="object"&&"type"in e}const G3=[],rD=!0,mv=!1,aD="skip";function sD(e,t,i,a){let l;typeof t=="function"&&typeof i!="function"?(a=i,i=t):l=t;const u=Y3(l),c=a?-1:1;f(e,void 0,[])();function f(p,d,m){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const b=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(b?"<"+b+">":""))+")"})}return v;function v(){let b=G3,w,E,R;if((!t||u(p,d,m[m.length-1]||void 0))&&(b=lD(i(p,m)),b[0]===mv))return b;if("children"in p&&p.children){const C=p;if(C.children&&b[0]!==aD)for(E=(a?C.children.length:-1)+c,R=m.concat(C);E>-1&&E<C.children.length;){const M=C.children[E];if(w=f(M,E,R)(),w[0]===mv)return w;E=typeof w[1]=="number"?w[1]:E+c}}return b}}}function lD(e){return Array.isArray(e)?e:typeof e=="number"?[rD,e]:e==null?G3:[e]}function X3(e,t,i,a){let l,u,c;typeof t=="function"?(u=void 0,c=t,l=i):(u=t,c=i,l=a),sD(e,u,f,l);function f(p,d){const m=d[d.length-1],y=m?m.children.indexOf(p):void 0;return c(p,y,m)}}const Nd={}.hasOwnProperty,oD={};function uD(e,t){const i=t||oD,a=new Map,l=new Map,u=new Map,c={...Y_,...i.handlers},f={all:d,applyData:fD,definitionById:a,footnoteById:l,footnoteCounts:u,footnoteOrder:[],handlers:c,one:p,options:i,patch:cD,wrap:dD};return X3(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?a:l,v=String(m.identifier).toUpperCase();y.has(v)||y.set(v,m)}}),f;function p(m,y){const v=m.type,b=f.handlers[v];if(Nd.call(f.handlers,v)&&b)return b(f,m,y);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in m){const{children:E,...R}=m,C=Su(R);return C.children=f.all(m),C}return Su(m)}return(f.options.unknownHandler||hD)(f,m,y)}function d(m){const y=[];if("children"in m){const v=m.children;let b=-1;for(;++b<v.length;){const w=f.one(v[b],m);if(w){if(b&&v[b-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=gv(w.value)),!Array.isArray(w)&&w.type==="element")){const E=w.children[0];E&&E.type==="text"&&(E.value=gv(E.value))}Array.isArray(w)?y.push(...w):y.push(w)}}}return y}}function cD(e,t){e.position&&(t.position=XR(e))}function fD(e,t){let i=t;if(e&&e.data){const a=e.data.hName,l=e.data.hChildren,u=e.data.hProperties;if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const c="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:c}}i.type==="element"&&u&&Object.assign(i.properties,Su(u)),"children"in i&&i.children&&l!==null&&l!==void 0&&(i.children=l)}return i}function hD(e,t){const i=t.data||{},a="value"in t&&!(Nd.call(i,"hProperties")||Nd.call(i,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function dD(e,t){const i=[];let a=-1;for(t&&i.push({type:"text",value:`
264
+ `});++a<e.length;)a&&i.push({type:"text",value:`
265
+ `}),i.push(e[a]);return t&&e.length>0&&i.push({type:"text",value:`
266
+ `}),i}function gv(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function yv(e,t){const i=uD(e,t),a=i.one(e,void 0),l=J_(i),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return l&&u.children.push({type:"text",value:`
267
+ `},l),u}function pD(e,t){return e&&"run"in e?async function(i,a){const l=yv(i,{file:a,...t});await e.run(l,a)}:function(i,a){return yv(i,{file:a,...e||t})}}function vv(e){if(e)throw e}var Lh,bv;function mD(){if(bv)return Lh;bv=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},u=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!y)return!1;var v;for(v in d);return typeof v>"u"||e.call(d,v)},c=function(d,m){i&&m.name==="__proto__"?i(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},f=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(a)return a(d,m).value}else return;return d[m]};return Lh=function p(){var d,m,y,v,b,w,E=arguments[0],R=1,C=arguments.length,M=!1;for(typeof E=="boolean"&&(M=E,E=arguments[1]||{},R=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});R<C;++R)if(d=arguments[R],d!=null)for(m in d)y=f(E,m),v=f(d,m),E!==v&&(M&&v&&(u(v)||(b=l(v)))?(b?(b=!1,w=y&&l(y)?y:[]):w=y&&u(y)?y:{},c(E,{name:m,newValue:p(M,w,v)})):typeof v<"u"&&c(E,{name:m,newValue:v}));return E},Lh}var gD=mD();const jh=Bd(gD);function Ld(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 yD(){const e=[],t={run:i,use:a};return t;function i(...l){let u=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...l);function f(p,...d){const m=e[++u];let y=-1;if(p){c(p);return}for(;++y<l.length;)(d[y]===null||d[y]===void 0)&&(d[y]=l[y]);l=d,m?vD(m,f)(...d):c(null,...d)}}function a(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function vD(e,t){let i;return a;function a(...c){const f=e.length>c.length;let p;f&&c.push(l);try{p=e.apply(this,c)}catch(d){const m=d;if(f&&i)throw m;return l(m)}f||(p&&p.then&&typeof p.then=="function"?p.then(u,l):p instanceof Error?l(p):u(p))}function l(c,...f){i||(i=!0,t(c,...f))}function u(c){l(null,c)}}const Ln={basename:bD,dirname:xD,extname:SD,join:wD,sep:"/"};function bD(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');El(e);let i=0,a=-1,l=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){i=l+1;break}}else a<0&&(u=!0,a=l+1);return a<0?"":e.slice(i,a)}if(t===e)return"";let c=-1,f=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){i=l+1;break}}else c<0&&(u=!0,c=l+1),f>-1&&(e.codePointAt(l)===t.codePointAt(f--)?f<0&&(a=l):(f=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function xD(e){if(El(e),e.length===0)return".";let t=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){t=i;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function SD(e){El(e);let t=e.length,i=-1,a=0,l=-1,u=0,c;for(;t--;){const f=e.codePointAt(t);if(f===47){if(c){a=t+1;break}continue}i<0&&(c=!0,i=t+1),f===46?l<0?l=t:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||i<0||u===0||u===1&&l===i-1&&l===a+1?"":e.slice(l,i)}function wD(...e){let t=-1,i;for(;++t<e.length;)El(e[t]),e[t]&&(i=i===void 0?e[t]:i+"/"+e[t]);return i===void 0?".":ED(i)}function ED(e){El(e);const t=e.codePointAt(0)===47;let i=TD(e,!t);return i.length===0&&!t&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function TD(e,t){let i="",a=0,l=-1,u=0,c=-1,f,p;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(l===c-1||u===1))if(l!==c-1&&u===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",a=0):(i=i.slice(0,p),a=i.length-1-i.lastIndexOf("/")),l=c,u=0;continue}}else if(i.length>0){i="",a=0,l=c,u=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(l+1,c):i=e.slice(l+1,c),a=c-l-1;l=c,u=0}else f===46&&u>-1?u++:u=-1}return i}function El(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const CD={cwd:AD};function AD(){return"/"}function jd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function RD(e){if(typeof e=="string")e=new URL(e);else if(!jd(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 kD(e)}function kD(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let i=-1;for(;++i<t.length;)if(t.codePointAt(i)===37&&t.codePointAt(i+1)===50){const a=t.codePointAt(i+2);if(a===70||a===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Bh=["history","path","basename","stem","extname","dirname"];class K3{constructor(t){let i;t?jd(t)?i={path:t}:typeof t=="string"||OD(t)?i={value:t}:i=t:i={},this.cwd="cwd"in i?"":CD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Bh.length;){const u=Bh[a];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let l;for(l in i)Bh.includes(l)||(this[l]=i[l])}get basename(){return typeof this.path=="string"?Ln.basename(this.path):void 0}set basename(t){Uh(t,"basename"),zh(t,"basename"),this.path=Ln.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ln.dirname(this.path):void 0}set dirname(t){xv(this.basename,"dirname"),this.path=Ln.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ln.extname(this.path):void 0}set extname(t){if(zh(t,"extname"),xv(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=Ln.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){jd(t)&&(t=RD(t)),Uh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ln.basename(this.path,this.extname):void 0}set stem(t){Uh(t,"stem"),zh(t,"stem"),this.path=Ln.join(this.dirname||"",t+(this.extname||""))}fail(t,i,a){const l=this.message(t,i,a);throw l.fatal=!0,l}info(t,i,a){const l=this.message(t,i,a);return l.fatal=void 0,l}message(t,i,a){const l=new Ot(t,i,a);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function zh(e,t){if(e&&e.includes(Ln.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ln.sep+"`")}function Uh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xv(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function OD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _D=function(e){const a=this.constructor.prototype,l=a[e],u=function(){return l.apply(u,arguments)};return Object.setPrototypeOf(u,a),u},DD={}.hasOwnProperty;class Kp extends _D{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=yD()}copy(){const t=new Kp;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];t.use(...a)}return t.data(jh(!0,{},this.namespace)),t}data(t,i){return typeof t=="string"?arguments.length===2?(Ph("data",this.frozen),this.namespace[t]=i,this):DD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ph("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[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const l=i.call(t,...a);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const i=Ko(t),a=this.parser||this.Parser;return Vh("parse",a),a(String(i),i)}process(t,i){const a=this;return this.freeze(),Vh("process",this.parser||this.Parser),Hh("process",this.compiler||this.Compiler),i?l(void 0,i):new Promise(l);function l(u,c){const f=Ko(t),p=a.parse(f);a.run(p,f,function(m,y,v){if(m||!y||!v)return d(m);const b=y,w=a.stringify(b,v);LD(w)?v.value=w:v.result=w,d(m,v)});function d(m,y){m||!y?c(m):u?u(y):i(void 0,y)}}}processSync(t){let i=!1,a;return this.freeze(),Vh("processSync",this.parser||this.Parser),Hh("processSync",this.compiler||this.Compiler),this.process(t,l),wv("processSync","process",i),a;function l(u,c){i=!0,vv(u),a=c}}run(t,i,a){Sv(t),this.freeze();const l=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?u(void 0,a):new Promise(u);function u(c,f){const p=Ko(i);l.run(t,p,d);function d(m,y,v){const b=y||t;m?f(m):c?c(b):a(void 0,b,v)}}}runSync(t,i){let a=!1,l;return this.run(t,i,u),wv("runSync","run",a),l;function u(c,f){vv(c),l=f,a=!0}}stringify(t,i){this.freeze();const a=Ko(i),l=this.compiler||this.Compiler;return Hh("stringify",l),Sv(t),l(t,a)}use(t,...i){const a=this.attachers,l=this.namespace;if(Ph("use",this.frozen),t!=null)if(typeof t=="function")p(t,i);else if(typeof t=="object")Array.isArray(t)?f(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(d){if(typeof d=="function")p(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...y]=d;p(m,y)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))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");f(d.plugins),d.settings&&(l.settings=jh(!0,l.settings,d.settings))}function f(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const y=d[m];u(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function p(d,m){let y=-1,v=-1;for(;++y<a.length;)if(a[y][0]===d){v=y;break}if(v===-1)a.push([d,...m]);else if(m.length>0){let[b,...w]=m;const E=a[v][1];Ld(E)&&Ld(b)&&(b=jh(!0,E,b)),a[v]=[d,b,...w]}}}}const MD=new Kp().freeze();function Vh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ph(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 Sv(e){if(!Ld(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function wv(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ko(e){return ND(e)?e:new K3(e)}function ND(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function LD(e){return typeof e=="string"||jD(e)}function jD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const BD="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ev=[],Tv={allowDangerousHtml:!0},zD=/^(https?|ircs?|mailto|xmpp)$/i,UD=[{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:"className",id:"remove-classname"},{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 VD(e){const t=HD(e),i=PD(e);return qD(t.runSync(t.parse(i),i),e)}function HD(e){const t=e.rehypePlugins||Ev,i=e.remarkPlugins||Ev,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Tv}:Tv;return MD().use(b_).use(i).use(pD,a).use(t)}function PD(e){const t=e.children||"",i=new K3;return typeof t=="string"&&(i.value=t),i}function qD(e,t){const i=t.allowedElements,a=t.allowElement,l=t.components,u=t.disallowedElements,c=t.skipHtml,f=t.unwrapDisallowed,p=t.urlTransform||FD;for(const m of UD)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+BD+m.id,void 0);return X3(e,d),JR(e,{Fragment:A.Fragment,components:l,ignoreInvalidStyle:!0,jsx:A.jsx,jsxs:A.jsxs,passKeys:!0,passNode:!0});function d(m,y,v){if(m.type==="raw"&&v&&typeof y=="number")return c?v.children.splice(y,1):v.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let b;for(b in Dh)if(Object.hasOwn(Dh,b)&&Object.hasOwn(m.properties,b)){const w=m.properties[b],E=Dh[b];(E===null||E.includes(m.tagName))&&(m.properties[b]=p(String(w||""),b,m))}}if(m.type==="element"){let b=i?!i.includes(m.tagName):u?u.includes(m.tagName):!1;if(!b&&a&&typeof y=="number"&&(b=!a(m,y,v)),b&&v&&typeof y=="number")return f&&m.children?v.children.splice(y,1,...m.children):v.children.splice(y,1),y}}}function FD(e){const t=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||i!==-1&&t>i||a!==-1&&t>a||zD.test(e.slice(0,t))?e:""}const ID=({content:e})=>A.jsx("div",{className:"markdown-renderer",children:A.jsx(VD,{children:e})}),YD=({type:e,content:t})=>{var u,c;const i=Xe(f=>f.auth.user),a=e==="assistant";return a&&!t?A.jsx(ER,{text:"Thinking...",svg:A.jsx("img",{src:"rigo-float.gif"})}):A.jsxs("div",{className:`flex items-start space-x-2 p-3 rounded-md border ${a?"bg-gray-50 border-gray-300 text-gray-800":"bg-blue-50 border-blue-200 text-blue-900"}`,children:[a?A.jsx("span",{className:"mt-1",children:rt.rigoSoftBlue}):(u=i==null?void 0:i.profile)!=null&&u.avatar_url?A.jsx("img",{src:(c=i==null?void 0:i.profile)==null?void 0:c.avatar_url,className:"w-6 h-6 rounded-full"}):A.jsx("span",{className:"mt-1",children:rt.user}),A.jsx("div",{className:"w-full break-words overflow-x-auto ",children:A.jsx(ID,{content:t})})]})},GD=({file:e,handleRemove:t})=>A.jsxs("div",{className:"flex items-center justify-between bg-white shadow-sm p-2 rounded-lg w-[100px]",children:[A.jsx("span",{title:e.name,className:"text-xs text-gray-800 truncate",children:e.name}),A.jsx("button",{onClick:t,className:"p-1 text-red-500 hover:text-red-700 transition-colors cursor-pointer ",children:rt.trash})]}),XD=({messages:e,sendPrompt:t,handleSubmit:i})=>{const a=_.useRef(null),l=_.useRef(null),u=Xe(y=>y.uploadedFiles),c=Xe(y=>y.setUploadedFiles),[f,p]=_.useState(!0),[d,m]=_.useState(!1);return _.useEffect(()=>{const y=v=>{d&&a.current&&!a.current.contains(v.target)&&m(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[d]),A.jsxs(A.Fragment,{children:[!d&&A.jsxs("div",{className:"fixed bottom-5 left-2 z-30 lg:hidden",children:[f&&A.jsxs("div",{className:"flex flex-row gap-3 cloudy bg-white rounded-md p-2 shadow-md bg-learnpack-blue duration-500 border-2 border-blue-600 mb-4",children:[A.jsx("span",{className:"w-[280px]",children:"Chat with me to update the course content"}),A.jsx("button",{className:" text-red-500 cursor-pointer bg-learnpack-blue p-2 rounded-md",onClick:()=>p(!1),children:rt.redClose})]}),A.jsx("button",{className:"p-1 shadow-md cursor-pointer p-2 w-15 h-15 flex items-center justify-center bg-blue-600 rounded-[50%] fluid-svg",onClick:()=>m(!0),children:rt.rigoSoftBlue})]}),A.jsxs("div",{ref:a,className:`fixed z-30 top-0 left-0 h-full w-4/5 max-w-sm bg-learnpack-blue text-sm text-gray-700 border-r border-C8DBFC overflow-y-auto scrollbar-hide p-6 transition-transform duration-300 ease-in-out lg:relative lg:transform-none lg:w-1/3 ${d?"translate-x-0":"-translate-x-full lg:translate-x-0"}`,children:[d&&A.jsx("button",{className:"lg:hidden bg-white p-1 rounded shadow-md mb-4 cursor-pointer absolute top-2 left-2",onClick:()=>m(!1),children:"✕"}),A.jsx("div",{className:"space-y-2 pb-32 h-[85%] overflow-y-auto scrollbar-hide",children:e.map((y,v)=>A.jsx(YD,{type:y.type,content:y.content},v))}),A.jsxs("div",{className:"relative w-full rounded-md bg-white text-gray-700 h-24",children:[(u==null?void 0:u.length)>0&&A.jsx("div",{className:"absolute bottom-[100%] flex gap-2 w-full pb-1 rounded-md overflow-x-auto scrollbar-hide",children:u.map((y,v)=>A.jsx(GD,{file:y,handleRemove:()=>{const b=[...u];b.splice(v,1),c(b)}},v))}),A.jsx("textarea",{ref:l,style:{resize:"none"},className:"w-full h-full p-2 outline-blue rounded",placeholder:"How can Learnpack help you?",autoFocus:!0,onKeyUp:y=>{var v;if(y.key==="Enter"&&!y.shiftKey){y.preventDefault();const b=((v=l.current)==null?void 0:v.value.trim())||"";b.toLowerCase()==="ok"?i():t(b),l.current.value=""}}}),A.jsxs("div",{className:"absolute bottom-2 right-2 flex gap-1 items-center",children:[A.jsx(Lb,{}),A.jsx("button",{className:"cursor-pointer blue-on-hover flex items-center justify-center w-6 h-6",onClick:()=>{var y,v;if((y=l.current)!=null&&y.value){const b=((v=l.current)==null?void 0:v.value.trim())||"";b.toLowerCase()==="ok"?i():t(b),l.current.value=""}},children:rt.send})]})]})]})]})};function KD({onFinish:e}){const[t,i]=_.useState(""),[a,l]=_.useState(""),[u,c]=_.useState(!1),[f,p]=_.useState(!1),[d,m]=_.useState(!1),[y,v]=_.useState({firstName:"",lastName:"",email:""}),{setAuth:b}=Xe(Yd(V=>({setAuth:V.setAuth}))),w=async V=>{V.preventDefault(),c(!0);const B=ot.loading("Logging in…");try{if(!t||!a){c(!1),ot.error("Please fill all fields",{id:B});return}const L=await ST({email:t,password:a});if(!L){c(!1),ot.error("Invalid credentials",{id:B});return}ot.success("Logged in successfully",{id:B}),b({bcToken:L.token,userId:L.user.id,rigoToken:L.rigobot.key,user:L.user,publicToken:""}),c(!1),e()}catch(L){console.error(L),ot.error("Invalid credentials",{id:B}),c(!1)}},E=async V=>{V.preventDefault(),c(!0);const B=ot.loading("Creating account…"),{firstName:L,lastName:Z,email:Q}=y;if(!L||!Z||!Q){c(!1),ot.error("Please fill all fields",{id:B});return}try{await AT(L,Z,Q),ot.success("Account created! Check your email.",{id:B}),m(!1),p(!0),i(Q)}catch{ot.error("Registration failed. Try again.",{id:B})}finally{c(!1)}};function R(V){return btoa(unescape(encodeURIComponent(V)))}function C(){return window.location.href}const M=()=>{const V=R(C());window.location.href=`${pa}/v1/auth/github/?url=${V}`},O=()=>{const V=R(C());window.location.href=`${pa}/v1/auth/google?url=${V}`};return A.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-1000",onClick:e,children:A.jsx("div",{className:"bg-white p-8 rounded-xl shadow-md max-w-sm w-full",onClick:V=>V.stopPropagation(),children:d?A.jsxs(A.Fragment,{children:[A.jsx("h2",{className:"mb-4 text-xl font-semibold text-center",children:"Create your account"}),A.jsxs("form",{className:"space-y-3",onSubmit:E,children:[A.jsx("input",{type:"text",placeholder:"First name",className:"w-full border border-gray-300 px-3 py-2 rounded-md",value:y.firstName,onChange:V=>v({...y,firstName:V.target.value})}),A.jsx("input",{type:"text",placeholder:"Last name",className:"w-full border border-gray-300 px-3 py-2 rounded-md",value:y.lastName,onChange:V=>v({...y,lastName:V.target.value})}),A.jsx("input",{type:"email",placeholder:"Email",className:"w-full border border-gray-300 px-3 py-2 rounded-md",value:y.email,onChange:V=>v({...y,email:V.target.value})}),A.jsx("button",{type:"submit",className:"w-full bg-blue-600 text-white py-2 rounded-md font-semibold cursor-pointer",disabled:u,children:u?"Creating...":"Sign up"})]}),A.jsxs("div",{className:"mt-4 text-sm text-center",children:["Already have an account?"," ",A.jsx("button",{className:"text-blue-600 font-medium",onClick:()=>{m(!1),p(!0)},children:"Log in here"})]})]}):A.jsxs(A.Fragment,{children:[A.jsx("p",{className:"mb-4 text-center text-gray-700",children:"You need to have a 4Geeks account with a creator plan to create a tutorial."}),A.jsxs("button",{onClick:M,className:"w-full border border-gray-300 py-2 rounded-md font-semibold flex items-center justify-center gap-2 mb-4 cursor-pointer",children:[rt.github," LOGIN WITH GITHUB"]}),A.jsxs("button",{onClick:O,className:"w-full border border-gray-300 py-2 rounded-md font-semibold flex items-center justify-center gap-2 mb-4 cursor-pointer",children:[rt.google," LOGIN WITH GOOGLE"]}),A.jsxs("div",{className:"flex items-center mb-4",children:[A.jsx("hr",{className:"flex-grow border-gray-300"}),A.jsx("span",{className:"mx-2 text-gray-400 text-sm",children:"or"}),A.jsx("hr",{className:"flex-grow border-gray-300"})]}),f?A.jsxs("form",{className:"space-y-3",onSubmit:w,children:[A.jsx("input",{type:"email",placeholder:"Email",className:"w-full border border-gray-300 px-3 py-2 rounded-md",value:t,onChange:V=>i(V.target.value)}),A.jsx("input",{type:"password",placeholder:"Password",className:"w-full border border-gray-300 px-3 py-2 rounded-md",value:a,onChange:V=>l(V.target.value)}),A.jsxs("div",{className:"flex gap-2 mt-4",children:[A.jsx("button",{type:"submit",className:"flex-1 bg-blue-500 text-white py-2 rounded-md font-semibold cursor-pointer",children:u?"Logging in...":"Log in"}),A.jsx("button",{type:"button",onClick:()=>p(!1),className:"flex-1 border border-blue-500 text-blue-600 py-2 rounded-md font-semibold cursor-pointer",children:"Skip"})]}),A.jsxs("div",{className:"text-sm text-gray-600 mt-2",children:["Forgot your password?"," ",A.jsx("a",{href:`${pa}/v1/auth/password/reset?url=${C()}`,className:"text-blue-600 font-medium",children:"Recover it here."})]})]}):A.jsx("button",{onClick:()=>p(!0),className:"w-full bg-blue-600 text-white py-2 rounded-md font-semibold cursor-pointer",children:"Login with Email"}),A.jsx("div",{className:"flex justify-between items-center mt-4",children:A.jsxs("div",{className:"bg-blue-50 text-sm p-2 rounded text-left",children:[A.jsx("p",{className:"text-gray-700 m-0",children:"You don't have an account?"}),A.jsx("a",{href:"https://www.learnpack.co/register",target:"_blank",className:"text-blue-600 font-medium",children:"Register here."})]})})]})})})}const ZD=()=>{const e=Vd(),{history:t,auth:i,setAuth:a,push:l,cleanHistory:u,formState:c}=Xe(Yd(O=>({history:O.history,auth:O.auth,setAuth:O.setAuth,push:O.push,cleanHistory:O.cleanHistory,formState:O.formState}))),[f,p]=_.useState([{type:"assistant",content:"If you're satisfied, type 'OK' in the chat."},{type:"assistant",content:`If not, what would you like me to change? You can sat things like:
268
+ - Add more exercises
269
+ - Make it more difficult
270
+ - Remove step 1.1 and replace it with a new step that explains the concept of X `}]),[d,m]=_.useState(!1),[y,v]=_.useState(!1),[b,w]=_.useState(!1),E=t[t.length-1];_.useEffect(()=>{E||e("/creator",{replace:!0})},[E,e]),_.useEffect(()=>{console.log(c.description,"DESCRIPTION"),c.description&&p(O=>{if(O.length===0||O[0].type!=="user")return[{type:"user",content:c.description},...O];{const[,...V]=O;return[{type:"user",content:c.description},...V]}})},[c.description]),_.useEffect(()=>{(async()=>{const{token:O}=td(["token"]);if(O){const V=await xb(O);V&&a({bcToken:O,userId:V.id,rigoToken:V.rigobot.key,user:V,publicToken:""})}})(),R()},[]);const R=async()=>{const O=b1(E.courseInfo.title||"");if(!await TT(O)){const B=await CT(E.courseInfo.title||"",i.rigoToken);l({...E,courseInfo:{...E.courseInfo,title:B}})}},C=async O=>{var V;w(!0);try{p([...f,{type:"user",content:O},{type:"assistant",content:""}]);const B=await yb({courseInfo:JSON.stringify(E.courseInfo),prevInteractions:f.map(Z=>`${Z.type}: ${Z.content}`).join(`
271
+ `)+`
272
+ USER: ${O}`},i.rigoToken?i.rigoToken:i.publicToken,((V=E==null?void 0:E.courseInfo)==null?void 0:V.purpose)||"learnpack-lesson-writer",!i.rigoToken),L=B.parsed.listOfSteps.map(Z=>bb(Z,E.lessons));l({...E,lessons:L,courseInfo:{...E.courseInfo,title:B.parsed.title||E.courseInfo.title,description:B.parsed.description||E.courseInfo.description}}),p(Z=>{const Q=[...Z];return Q[Q.length-1].content=B.parsed.aiMessage,Q}),w(!1)}catch(B){console.error(B),p(L=>{const Z=[...L];return Z.pop(),Z}),w(!1)}},M=async()=>{if(!i.bcToken||!i.rigoToken){v(!0);return}if(!E.courseInfo.title){ot.error("Please provide a title for the course");return}let O=i.rigoToken;const V=L=>{a({...i,rigoToken:L}),O=L};if(!await wT(i.bcToken,V)){v(!0);return}console.log(E),m(!0),ET(E,O,i.bcToken),setTimeout(()=>{u(),m(!1),window.location.href=`/preview/${b1(E.courseInfo.title||"")}?token=${i.bcToken}`},3e3)};return E?d?A.jsx(A.Fragment,{children:A.jsx(Id,{listeningTo:"course-generation",icon:A.jsx("img",{src:Gv,alt:"rigo",className:"w-20 h-20"}),initialBuffer:"🚀 Starting course generation...",text:`Learnpack is setting up your tutorial.\r
273
+ It may take a moment...`})}):A.jsxs("div",{className:"flex w-full bg-white rounded-md shadow-md overflow-hidden h-screen ",children:[A.jsx(jb,{}),y&&A.jsx(KD,{onFinish:()=>{v(!1)}}),A.jsx(NC,{}),A.jsx(XD,{messages:f,sendPrompt:C,handleSubmit:M}),A.jsx(wR,{handleSubmit:M,messages:f,isThinking:b,openLogin:()=>{v(!0)}})]}):null};vw.createRoot(document.getElementById("root")).render(A.jsxs(_.StrictMode,{children:[A.jsx(_5,{}),A.jsx(D6,{children:A.jsxs(o6,{children:[A.jsx(Ih,{path:"/creator",element:A.jsx(MC,{})}),A.jsx(Ih,{path:"/creator/syllabus",element:A.jsx(ZD,{})})]})})]}));