mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-08 03:18:28 +03:00
373 lines
746 KiB
HTML
373 lines
746 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="initial-scale=1, width=device-width" />
|
||
<!-- Fonts to support Material Design -->
|
||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||
<link
|
||
rel="stylesheet"
|
||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
|
||
/>
|
||
<title>Auto Archiver Settings</title>
|
||
<script type="module" crossorigin>var cT=Object.defineProperty;var fT=(e,t,n)=>t in e?cT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qs=(e,t,n)=>fT(e,typeof t!="symbol"?t+"":t,n);function dT(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(i,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xp={exports:{}},Zs={};/**
|
||
* @license React
|
||
* react-jsx-runtime.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var g0;function pT(){if(g0)return Zs;g0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,l){var u=null;if(l!==void 0&&(u=""+l),o.key!==void 0&&(u=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:i,key:u,ref:o!==void 0?o:null,props:l}}return Zs.Fragment=t,Zs.jsx=n,Zs.jsxs=n,Zs}var y0;function hT(){return y0||(y0=1,Xp.exports=pT()),Xp.exports}var $=hT(),Wp={exports:{}},Pe={};/**
|
||
* @license React
|
||
* react.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var b0;function mT(){if(b0)return Pe;b0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(C){return C===null||typeof C!="object"?null:(C=g&&C[g]||C["@@iterator"],typeof C=="function"?C:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function k(C,X,de){this.props=C,this.context=X,this.refs=S,this.updater=de||b}k.prototype.isReactComponent={},k.prototype.setState=function(C,X){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,X,"setState")},k.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function A(){}A.prototype=k.prototype;function N(C,X,de){this.props=C,this.context=X,this.refs=S,this.updater=de||b}var _=N.prototype=new A;_.constructor=N,w(_,k.prototype),_.isPureReactComponent=!0;var O=Array.isArray,R={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function B(C,X,de,L,ie,ue){return de=ue.ref,{$$typeof:e,type:C,key:X,ref:de!==void 0?de:null,props:ue}}function I(C,X){return B(C.type,X,void 0,void 0,void 0,C.props)}function P(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function E(C){var X={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(de){return X[de]})}var j=/\/+/g;function U(C,X){return typeof C=="object"&&C!==null&&C.key!=null?E(""+C.key):X.toString(36)}function G(){}function Y(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(G,G):(C.status="pending",C.then(function(X){C.status==="pending"&&(C.status="fulfilled",C.value=X)},function(X){C.status==="pending"&&(C.status="rejected",C.reason=X)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function V(C,X,de,L,ie){var ue=typeof C;(ue==="undefined"||ue==="boolean")&&(C=null);var fe=!1;if(C===null)fe=!0;else switch(ue){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(C.$$typeof){case e:case t:fe=!0;break;case m:return fe=C._init,V(fe(C._payload),X,de,L,ie)}}if(fe)return ie=ie(C),fe=L===""?"."+U(C,0):L,O(ie)?(de="",fe!=null&&(de=fe.replace(j,"$&/")+"/"),V(ie,X,de,"",function(ye){return ye})):ie!=null&&(P(ie)&&(ie=I(ie,de+(ie.key==null||C&&C.key===ie.key?"":(""+ie.key).replace(j,"$&/")+"/")+fe)),X.push(ie)),1;fe=0;var _e=L===""?".":L+":";if(O(C))for(var ge=0;ge<C.length;ge++)L=C[ge],ue=_e+U(L,ge),fe+=V(L,X,de,ue,ie);else if(ge=v(C),typeof ge=="function")for(C=ge.call(C),ge=0;!(L=C.next()).done;)L=L.value,ue=_e+U(L,ge++),fe+=V(L,X,de,ue,ie);else if(ue==="object"){if(typeof C.then=="function")return V(Y(C),X,de,L,ie);throw X=String(C),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return fe}function H(C,X,de){if(C==null)return C;var L=[],ie=0;return V(C,L,"","",function(ue){return X.call(de,ue,ie++)}),L}function Z(C){if(C._status===-1){var X=C._result;X=X(),X.then(function(de){(C._status===0||C._status===-1)&&(C._status=1,C._result=de)},function(de){(C._status===0||C._status===-1)&&(C._status=2,C._result=de)}),C._status===-1&&(C._status=0,C._result=X)}if(C._status===1)return C._result.default;throw C._result}var ae=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function J(){}return Pe.Children={map:H,forEach:function(C,X,de){H(C,function(){X.apply(this,arguments)},de)},count:function(C){var X=0;return H(C,function(){X++}),X},toArray:function(C){return H(C,function(X){return X})||[]},only:function(C){if(!P(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Pe.Component=k,Pe.Fragment=n,Pe.Profiler=o,Pe.PureComponent=N,Pe.StrictMode=i,Pe.Suspense=d,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Pe.act=function(){throw Error("act(...) is not supported in production builds of React.")},Pe.cache=function(C){return function(){return C.apply(null,arguments)}},Pe.cloneElement=function(C,X,de){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var L=w({},C.props),ie=C.key,ue=void 0;if(X!=null)for(fe in X.ref!==void 0&&(ue=void 0),X.key!==void 0&&(ie=""+X.key),X)!M.call(X,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&X.ref===void 0||(L[fe]=X[fe]);var fe=arguments.length-2;if(fe===1)L.children=de;else if(1<fe){for(var _e=Array(fe),ge=0;ge<fe;ge++)_e[ge]=arguments[ge+2];L.children=_e}return B(C.type,ie,void 0,void 0,ue,L)},Pe.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:l,_context:C},C},Pe.createElement=function(C,X,de){var L,ie={},ue=null;if(X!=null)for(L in X.key!==void 0&&(ue=""+X.key),X)M.call(X,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(ie[L]=X[L]);var fe=arguments.length-2;if(fe===1)ie.children=de;else if(1<fe){for(var _e=Array(fe),ge=0;ge<fe;ge++)_e[ge]=arguments[ge+2];ie.children=_e}if(C&&C.defaultProps)for(L in fe=C.defaultProps,fe)ie[L]===void 0&&(ie[L]=fe[L]);return B(C,ue,void 0,void 0,null,ie)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(C){return{$$typeof:f,render:C}},Pe.isValidElement=P,Pe.lazy=function(C){return{$$typeof:m,_payload:{_status:-1,_result:C},_init:Z}},Pe.memo=function(C,X){return{$$typeof:p,type:C,compare:X===void 0?null:X}},Pe.startTransition=function(C){var X=R.T,de={};R.T=de;try{var L=C(),ie=R.S;ie!==null&&ie(de,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(J,ae)}catch(ue){ae(ue)}finally{R.T=X}},Pe.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Pe.use=function(C){return R.H.use(C)},Pe.useActionState=function(C,X,de){return R.H.useActionState(C,X,de)},Pe.useCallback=function(C,X){return R.H.useCallback(C,X)},Pe.useContext=function(C){return R.H.useContext(C)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(C,X){return R.H.useDeferredValue(C,X)},Pe.useEffect=function(C,X){return R.H.useEffect(C,X)},Pe.useId=function(){return R.H.useId()},Pe.useImperativeHandle=function(C,X,de){return R.H.useImperativeHandle(C,X,de)},Pe.useInsertionEffect=function(C,X){return R.H.useInsertionEffect(C,X)},Pe.useLayoutEffect=function(C,X){return R.H.useLayoutEffect(C,X)},Pe.useMemo=function(C,X){return R.H.useMemo(C,X)},Pe.useOptimistic=function(C,X){return R.H.useOptimistic(C,X)},Pe.useReducer=function(C,X,de){return R.H.useReducer(C,X,de)},Pe.useRef=function(C){return R.H.useRef(C)},Pe.useState=function(C){return R.H.useState(C)},Pe.useSyncExternalStore=function(C,X,de){return R.H.useSyncExternalStore(C,X,de)},Pe.useTransition=function(){return R.H.useTransition()},Pe.version="19.0.0",Pe}var v0;function Tm(){return v0||(v0=1,Wp.exports=mT()),Wp.exports}var T=Tm();const it=rf(T),$h=dT({__proto__:null,default:it},[T]);var Qp={exports:{}},Js={},Zp={exports:{}},Jp={};/**
|
||
* @license React
|
||
* scheduler.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var S0;function gT(){return S0||(S0=1,function(e){function t(H,Z){var ae=H.length;H.push(Z);e:for(;0<ae;){var J=ae-1>>>1,C=H[J];if(0<o(C,Z))H[J]=Z,H[ae]=C,ae=J;else break e}}function n(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var Z=H[0],ae=H.pop();if(ae!==Z){H[0]=ae;e:for(var J=0,C=H.length,X=C>>>1;J<X;){var de=2*(J+1)-1,L=H[de],ie=de+1,ue=H[ie];if(0>o(L,ae))ie<C&&0>o(ue,L)?(H[J]=ue,H[ie]=ae,J=ie):(H[J]=L,H[de]=ae,J=de);else if(ie<C&&0>o(ue,ae))H[J]=ue,H[ie]=ae,J=ie;else break e}}return Z}function o(H,Z){var ae=H.sortIndex-Z.sortIndex;return ae!==0?ae:H.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],p=[],m=1,g=null,v=3,b=!1,w=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function _(H){for(var Z=n(p);Z!==null;){if(Z.callback===null)i(p);else if(Z.startTime<=H)i(p),Z.sortIndex=Z.expirationTime,t(d,Z);else break;Z=n(p)}}function O(H){if(S=!1,_(H),!w)if(n(d)!==null)w=!0,Y();else{var Z=n(p);Z!==null&&V(O,Z.startTime-H)}}var R=!1,M=-1,B=5,I=-1;function P(){return!(e.unstable_now()-I<B)}function E(){if(R){var H=e.unstable_now();I=H;var Z=!0;try{e:{w=!1,S&&(S=!1,A(M),M=-1),b=!0;var ae=v;try{t:{for(_(H),g=n(d);g!==null&&!(g.expirationTime>H&&P());){var J=g.callback;if(typeof J=="function"){g.callback=null,v=g.priorityLevel;var C=J(g.expirationTime<=H);if(H=e.unstable_now(),typeof C=="function"){g.callback=C,_(H),Z=!0;break t}g===n(d)&&i(d),_(H)}else i(d);g=n(d)}if(g!==null)Z=!0;else{var X=n(p);X!==null&&V(O,X.startTime-H),Z=!1}}break e}finally{g=null,v=ae,b=!1}Z=void 0}}finally{Z?j():R=!1}}}var j;if(typeof N=="function")j=function(){N(E)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,G=U.port2;U.port1.onmessage=E,j=function(){G.postMessage(null)}}else j=function(){k(E,0)};function Y(){R||(R=!0,j())}function V(H,Z){M=k(function(){H(e.unstable_now())},Z)}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(H){H.callback=null},e.unstable_continueExecution=function(){w||b||(w=!0,Y())},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(H){switch(v){case 1:case 2:case 3:var Z=3;break;default:Z=v}var ae=v;v=Z;try{return H()}finally{v=ae}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ae=v;v=H;try{return Z()}finally{v=ae}},e.unstable_scheduleCallback=function(H,Z,ae){var J=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?J+ae:J):ae=J,H){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ae+C,H={id:m++,callback:Z,priorityLevel:H,startTime:ae,expirationTime:C,sortIndex:-1},ae>J?(H.sortIndex=ae,t(p,H),n(d)===null&&H===n(p)&&(S?(A(M),M=-1):S=!0,V(O,ae-J))):(H.sortIndex=C,t(d,H),w||b||(w=!0,Y())),H},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(H){var Z=v;return function(){var ae=v;v=Z;try{return H.apply(this,arguments)}finally{v=ae}}}}(Jp)),Jp}var w0;function yT(){return w0||(w0=1,Zp.exports=gT()),Zp.exports}var eh={exports:{}},gn={};/**
|
||
* @license React
|
||
* react-dom.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var x0;function bT(){if(x0)return gn;x0=1;var e=Tm();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(d,p,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:d,containerInfo:p,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,gn.createPortal=function(d,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return l(d,p,null,m)},gn.flushSync=function(d){var p=u.T,m=i.p;try{if(u.T=null,i.p=2,d)return d()}finally{u.T=p,i.p=m,i.d.f()}},gn.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(d,p))},gn.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},gn.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var m=p.as,g=f(m,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?i.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):m==="script"&&i.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},gn.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=f(p.as,p.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(d)},gn.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,g=f(m,p.crossOrigin);i.d.L(d,m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},gn.preloadModule=function(d,p){if(typeof d=="string")if(p){var m=f(p.as,p.crossOrigin);i.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(d)},gn.requestFormReset=function(d){i.d.r(d)},gn.unstable_batchedUpdates=function(d,p){return d(p)},gn.useFormState=function(d,p,m){return u.H.useFormState(d,p,m)},gn.useFormStatus=function(){return u.H.useHostTransitionStatus()},gn.version="19.0.0",gn}var C0;function G1(){if(C0)return eh.exports;C0=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(),eh.exports=bT(),eh.exports}/**
|
||
* @license React
|
||
* react-dom-client.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var k0;function vT(){if(k0)return Js;k0=1;var e=yT(),t=Tm(),n=G1();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}var l=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),O=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function M(r){return r===null||typeof r!="object"?null:(r=R&&r[R]||r["@@iterator"],typeof r=="function"?r:null)}var B=Symbol.for("react.client.reference");function I(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===B?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case d:return"Fragment";case f:return"Portal";case m:return"Profiler";case p:return"StrictMode";case S:return"Suspense";case k:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case b:return(r.displayName||"Context")+".Provider";case v:return(r._context.displayName||"Context")+".Consumer";case w:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case A:return a=r.displayName||null,a!==null?a:I(r.type)||"Memo";case N:a=r._payload,r=r._init;try{return I(r(a))}catch{}}return null}var P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Object.assign,j,U;function G(r){if(j===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);j=a&&a[1]||"",U=-1<s.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+j+r+U}var Y=!1;function V(r,a){if(!r||Y)return"";Y=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ne){var Q=ne}Reflect.construct(r,[],ce)}else{try{ce.call()}catch(ne){Q=ne}r.call(ce.prototype)}}else{try{throw Error()}catch(ne){Q=ne}(ce=r())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ne){if(ne&&Q&&typeof ne.stack=="string")return[ne.stack,Q.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),x=y[0],D=y[1];if(x&&D){var z=x.split(`
|
||
`),F=D.split(`
|
||
`);for(h=c=0;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;for(;h<F.length&&!F[h].includes("DetermineComponentFrameRoot");)h++;if(c===z.length||h===F.length)for(c=z.length-1,h=F.length-1;1<=c&&0<=h&&z[c]!==F[h];)h--;for(;1<=c&&0<=h;c--,h--)if(z[c]!==F[h]){if(c!==1||h!==1)do if(c--,h--,0>h||z[c]!==F[h]){var re=`
|
||
`+z[c].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),re}while(1<=c&&0<=h);break}}}finally{Y=!1,Error.prepareStackTrace=s}return(s=r?r.displayName||r.name:"")?G(s):""}function H(r){switch(r.tag){case 26:case 27:case 5:return G(r.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 15:return r=V(r.type,!1),r;case 11:return r=V(r.type.render,!1),r;case 1:return r=V(r.type,!0),r;default:return""}}function Z(r){try{var a="";do a+=H(r),r=r.return;while(r);return a}catch(s){return`
|
||
Error generating stack: `+s.message+`
|
||
`+s.stack}}function ae(r){var a=r,s=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(s=a.return),r=a.return;while(r)}return a.tag===3?s:null}function J(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function C(r){if(ae(r)!==r)throw Error(i(188))}function X(r){var a=r.alternate;if(!a){if(a=ae(r),a===null)throw Error(i(188));return a!==r?null:r}for(var s=r,c=a;;){var h=s.return;if(h===null)break;var y=h.alternate;if(y===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===s)return C(h),r;if(y===c)return C(h),a;y=y.sibling}throw Error(i(188))}if(s.return!==c.return)s=h,c=y;else{for(var x=!1,D=h.child;D;){if(D===s){x=!0,s=h,c=y;break}if(D===c){x=!0,c=h,s=y;break}D=D.sibling}if(!x){for(D=y.child;D;){if(D===s){x=!0,s=y,c=h;break}if(D===c){x=!0,c=y,s=h;break}D=D.sibling}if(!x)throw Error(i(189))}}if(s.alternate!==c)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?r:a}function de(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=de(r),a!==null)return a;r=r.sibling}return null}var L=Array.isArray,ie=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},fe=[],_e=-1;function ge(r){return{current:r}}function ye(r){0>_e||(r.current=fe[_e],fe[_e]=null,_e--)}function le(r,a){_e++,fe[_e]=r.current,r.current=a}var we=ge(null),Ce=ge(null),$e=ge(null),ke=ge(null);function Ie(r,a){switch(le($e,a),le(Ce,r),le(we,null),r=a.nodeType,r){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?Vv(a):0;break;default:if(r=r===8?a.parentNode:a,a=r.tagName,r=r.namespaceURI)r=Vv(r),a=Gv(r,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}ye(we),le(we,a)}function Ze(){ye(we),ye(Ce),ye($e)}function qe(r){r.memoizedState!==null&&le(ke,r);var a=we.current,s=Gv(a,r.type);a!==s&&(le(Ce,r),le(we,s))}function Je(r){Ce.current===r&&(ye(we),ye(Ce)),ke.current===r&&(ye(ke),Gs._currentValue=ue)}var yt=Object.prototype.hasOwnProperty,tt=e.unstable_scheduleCallback,nt=e.unstable_cancelCallback,Se=e.unstable_shouldYield,pn=e.unstable_requestPaint,rt=e.unstable_now,Sn=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,se=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,be=e.unstable_LowPriority,De=e.unstable_IdlePriority,Te=e.log,ft=e.unstable_setDisableYieldValue,_t=null,Tt=null;function Ee(r){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(_t,r,void 0,(r.current.flags&128)===128)}catch{}}function Me(r){if(typeof Te=="function"&&ft(r),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(_t,r)}catch{}}var Ue=Math.clz32?Math.clz32:Ff,It=Math.log,Da=Math.LN2;function Ff(r){return r>>>=0,r===0?32:31-(It(r)/Da|0)|0}var La=128,jt=4194304;function $t(r){var a=r&42;if(a!==0)return a;switch(r&-r){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: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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function en(r,a){var s=r.pendingLanes;if(s===0)return 0;var c=0,h=r.suspendedLanes,y=r.pingedLanes,x=r.warmLanes;r=r.finishedLanes!==0;var D=s&134217727;return D!==0?(s=D&~h,s!==0?c=$t(s):(y&=D,y!==0?c=$t(y):r||(x=D&~x,x!==0&&(c=$t(x))))):(D=s&~h,D!==0?c=$t(D):y!==0?c=$t(y):r||(x=s&~x,x!==0&&(c=$t(x)))),c===0?0:a!==0&&a!==c&&(a&h)===0&&(h=c&-c,x=a&-a,h>=x||h===32&&(x&4194176)!==0)?a:c}function An(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function _n(r,a){switch(r){case 1:case 2:case 4:case 8:return a+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+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 hn(){var r=La;return La<<=1,(La&4194176)===0&&(La=128),r}function jn(){var r=jt;return jt<<=1,(jt&62914560)===0&&(jt=4194304),r}function Ar(r){for(var a=[],s=0;31>s;s++)a.push(r);return a}function Rt(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function _r(r,a,s,c,h,y){var x=r.pendingLanes;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=s,r.entangledLanes&=s,r.errorRecoveryDisabledLanes&=s,r.shellSuspendCounter=0;var D=r.entanglements,z=r.expirationTimes,F=r.hiddenUpdates;for(s=x&~s;0<s;){var re=31-Ue(s),ce=1<<re;D[re]=0,z[re]=-1;var Q=F[re];if(Q!==null)for(F[re]=null,re=0;re<Q.length;re++){var ne=Q[re];ne!==null&&(ne.lane&=-536870913)}s&=~ce}c!==0&&$n(r,c,0),y!==0&&h===0&&r.tag!==0&&(r.suspendedLanes|=y&~(x&~a))}function $n(r,a,s){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-Ue(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|s&4194218}function Xn(r,a){var s=r.entangledLanes|=a;for(r=r.entanglements;s;){var c=31-Ue(s),h=1<<c;h&a|r[c]&a&&(r[c]|=a),s&=~h}}function bi(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function vi(){var r=ie.p;return r!==0?r:(r=window.event,r===void 0?32:c0(r.type))}function Rr(r,a){var s=ie.p;try{return ie.p=r,a()}finally{ie.p=s}}var Rn=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Rn,On="__reactProps$"+Rn,za="__reactContainer$"+Rn,Vf="__reactEvents$"+Rn,tk="__reactListeners$"+Rn,nk="__reactHandles$"+Rn,qg="__reactResources$"+Rn,is="__reactMarker$"+Rn;function Gf(r){delete r[Vt],delete r[On],delete r[Vf],delete r[tk],delete r[nk]}function Wi(r){var a=r[Vt];if(a)return a;for(var s=r.parentNode;s;){if(a=s[za]||s[Vt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(r=Xv(r);r!==null;){if(s=r[Vt])return s;r=Xv(r)}return a}r=s,s=r.parentNode}return null}function Ba(r){if(r=r[Vt]||r[za]){var a=r.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return r}return null}function as(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Ia(r){var a=r[qg];return a||(a=r[qg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function tn(r){r[is]=!0}var Fg=new Set,Vg={};function Qi(r,a){ja(r,a),ja(r+"Capture",a)}function ja(r,a){for(Vg[r]=a,r=0;r<a.length;r++)Fg.add(a[r])}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rk=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]*$"),Gg={},Kg={};function ik(r){return yt.call(Kg,r)?!0:yt.call(Gg,r)?!1:rk.test(r)?Kg[r]=!0:(Gg[r]=!0,!1)}function ru(r,a,s){if(ik(a))if(s===null)r.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+s)}}function iu(r,a,s){if(s===null)r.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+s)}}function Xr(r,a,s,c){if(c===null)r.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttributeNS(a,s,""+c)}}function Wn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Yg(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ak(r){var a=Yg(r)?"checked":"value",s=Object.getOwnPropertyDescriptor(r.constructor.prototype,a),c=""+r[a];if(!r.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,y=s.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return h.call(this)},set:function(x){c=""+x,y.call(this,x)}}),Object.defineProperty(r,a,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function au(r){r._valueTracker||(r._valueTracker=ak(r))}function Xg(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var s=a.getValue(),c="";return r&&(c=Yg(r)?r.checked?"true":"false":r.value),r=c,r!==s?(a.setValue(r),!0):!1}function ou(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var ok=/[\n"\\]/g;function Qn(r){return r.replace(ok,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Kf(r,a,s,c,h,y,x,D){r.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?r.type=x:r.removeAttribute("type"),a!=null?x==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Wn(a)):r.value!==""+Wn(a)&&(r.value=""+Wn(a)):x!=="submit"&&x!=="reset"||r.removeAttribute("value"),a!=null?Yf(r,x,Wn(a)):s!=null?Yf(r,x,Wn(s)):c!=null&&r.removeAttribute("value"),h==null&&y!=null&&(r.defaultChecked=!!y),h!=null&&(r.checked=h&&typeof h!="function"&&typeof h!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?r.name=""+Wn(D):r.removeAttribute("name")}function Wg(r,a,s,c,h,y,x,D){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),a!=null||s!=null){if(!(y!=="submit"&&y!=="reset"||a!=null))return;s=s!=null?""+Wn(s):"",a=a!=null?""+Wn(a):s,D||a===r.value||(r.value=a),r.defaultValue=a}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=D?r.checked:!!c,r.defaultChecked=!!c,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.name=x)}function Yf(r,a,s){a==="number"&&ou(r.ownerDocument)===r||r.defaultValue===""+s||(r.defaultValue=""+s)}function $a(r,a,s,c){if(r=r.options,a){a={};for(var h=0;h<s.length;h++)a["$"+s[h]]=!0;for(s=0;s<r.length;s++)h=a.hasOwnProperty("$"+r[s].value),r[s].selected!==h&&(r[s].selected=h),h&&c&&(r[s].defaultSelected=!0)}else{for(s=""+Wn(s),a=null,h=0;h<r.length;h++){if(r[h].value===s){r[h].selected=!0,c&&(r[h].defaultSelected=!0);return}a!==null||r[h].disabled||(a=r[h])}a!==null&&(a.selected=!0)}}function Qg(r,a,s){if(a!=null&&(a=""+Wn(a),a!==r.value&&(r.value=a),s==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=s!=null?""+Wn(s):""}function Zg(r,a,s,c){if(a==null){if(c!=null){if(s!=null)throw Error(i(92));if(L(c)){if(1<c.length)throw Error(i(93));c=c[0]}s=c}s==null&&(s=""),a=s}s=Wn(a),r.defaultValue=s,c=r.textContent,c===s&&c!==""&&c!==null&&(r.value=c)}function Pa(r,a){if(a){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===3){s.nodeValue=a;return}}r.textContent=a}var sk=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 Jg(r,a,s){var c=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":c?r.setProperty(a,s):typeof s!="number"||s===0||sk.has(a)?a==="float"?r.cssFloat=s:r[a]=(""+s).trim():r[a]=s+"px"}function ey(r,a,s){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var h in a)c=a[h],a.hasOwnProperty(h)&&s[h]!==c&&Jg(r,h,c)}else for(var y in a)a.hasOwnProperty(y)&&Jg(r,y,a[y])}function Xf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 lk=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"]]),uk=/^[\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 su(r){return uk.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}var Wf=null;function Qf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ua=null,Ha=null;function ty(r){var a=Ba(r);if(a&&(r=a.stateNode)){var s=r[On]||null;e:switch(r=a.stateNode,a.type){case"input":if(Kf(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=r;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Qn(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var c=s[a];if(c!==r&&c.form===r.form){var h=c[On]||null;if(!h)throw Error(i(90));Kf(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(a=0;a<s.length;a++)c=s[a],c.form===r.form&&Xg(c)}break e;case"textarea":Qg(r,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&$a(r,!!s.multiple,a,!1)}}}var Zf=!1;function ny(r,a,s){if(Zf)return r(a,s);Zf=!0;try{var c=r(a);return c}finally{if(Zf=!1,(Ua!==null||Ha!==null)&&(Fu(),Ua&&(a=Ua,r=Ha,Ha=Ua=null,ty(a),r)))for(a=0;a<r.length;a++)ty(r[a])}}function os(r,a){var s=r.stateNode;if(s===null)return null;var c=s[On]||null;if(c===null)return null;s=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(s&&typeof s!="function")throw Error(i(231,a,typeof s));return s}var Jf=!1;if(Yr)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){Jf=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Jf=!1}var Si=null,ed=null,lu=null;function ry(){if(lu)return lu;var r,a=ed,s=a.length,c,h="value"in Si?Si.value:Si.textContent,y=h.length;for(r=0;r<s&&a[r]===h[r];r++);var x=s-r;for(c=1;c<=x&&a[s-c]===h[y-c];c++);return lu=h.slice(r,1<c?1-c:void 0)}function uu(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function cu(){return!0}function iy(){return!1}function Mn(r){function a(s,c,h,y,x){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=y,this.target=x,this.currentTarget=null;for(var D in r)r.hasOwnProperty(D)&&(s=r[D],this[D]=s?s(y):y[D]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?cu:iy,this.isPropagationStopped=iy,this}return E(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=cu)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=cu)},persist:function(){},isPersistent:cu}),a}var Zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fu=Mn(Zi),ls=E({},Zi,{view:0,detail:0}),ck=Mn(ls),td,nd,us,du=E({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==us&&(us&&r.type==="mousemove"?(td=r.screenX-us.screenX,nd=r.screenY-us.screenY):nd=td=0,us=r),td)},movementY:function(r){return"movementY"in r?r.movementY:nd}}),ay=Mn(du),fk=E({},du,{dataTransfer:0}),dk=Mn(fk),pk=E({},ls,{relatedTarget:0}),rd=Mn(pk),hk=E({},Zi,{animationName:0,elapsedTime:0,pseudoElement:0}),mk=Mn(hk),gk=E({},Zi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),yk=Mn(gk),bk=E({},Zi,{data:0}),oy=Mn(bk),vk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sk={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"},wk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xk(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=wk[r])?!!a[r]:!1}function id(){return xk}var Ck=E({},ls,{key:function(r){if(r.key){var a=vk[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=uu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Sk[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(r){return r.type==="keypress"?uu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?uu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),kk=Mn(Ck),Ek=E({},du,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sy=Mn(Ek),Tk=E({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),Ak=Mn(Tk),_k=E({},Zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rk=Mn(_k),Ok=E({},du,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Mk=Mn(Ok),Nk=E({},Zi,{newState:0,oldState:0}),Dk=Mn(Nk),Lk=[9,13,27,32],ad=Yr&&"CompositionEvent"in window,cs=null;Yr&&"documentMode"in document&&(cs=document.documentMode);var zk=Yr&&"TextEvent"in window&&!cs,ly=Yr&&(!ad||cs&&8<cs&&11>=cs),uy=" ",cy=!1;function fy(r,a){switch(r){case"keyup":return Lk.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dy(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var qa=!1;function Bk(r,a){switch(r){case"compositionend":return dy(a);case"keypress":return a.which!==32?null:(cy=!0,uy);case"textInput":return r=a.data,r===uy&&cy?null:r;default:return null}}function Ik(r,a){if(qa)return r==="compositionend"||!ad&&fy(r,a)?(r=ry(),lu=ed=Si=null,qa=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return ly&&a.locale!=="ko"?null:a.data;default:return null}}var jk={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 py(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!jk[r.type]:a==="textarea"}function hy(r,a,s,c){Ua?Ha?Ha.push(c):Ha=[c]:Ua=c,a=Xu(a,"onChange"),0<a.length&&(s=new fu("onChange","change",null,s,c),r.push({event:s,listeners:a}))}var fs=null,ds=null;function $k(r){Pv(r,0)}function pu(r){var a=as(r);if(Xg(a))return r}function my(r,a){if(r==="change")return a}var gy=!1;if(Yr){var od;if(Yr){var sd="oninput"in document;if(!sd){var yy=document.createElement("div");yy.setAttribute("oninput","return;"),sd=typeof yy.oninput=="function"}od=sd}else od=!1;gy=od&&(!document.documentMode||9<document.documentMode)}function by(){fs&&(fs.detachEvent("onpropertychange",vy),ds=fs=null)}function vy(r){if(r.propertyName==="value"&&pu(ds)){var a=[];hy(a,ds,r,Qf(r)),ny($k,a)}}function Pk(r,a,s){r==="focusin"?(by(),fs=a,ds=s,fs.attachEvent("onpropertychange",vy)):r==="focusout"&&by()}function Uk(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return pu(ds)}function Hk(r,a){if(r==="click")return pu(a)}function qk(r,a){if(r==="input"||r==="change")return pu(a)}function Fk(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Pn=typeof Object.is=="function"?Object.is:Fk;function ps(r,a){if(Pn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var s=Object.keys(r),c=Object.keys(a);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!yt.call(a,h)||!Pn(r[h],a[h]))return!1}return!0}function Sy(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function wy(r,a){var s=Sy(r);r=0;for(var c;s;){if(s.nodeType===3){if(c=r+s.textContent.length,r<=a&&c>=a)return{node:s,offset:a-r};r=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Sy(s)}}function xy(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?xy(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Cy(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=ou(r.document);a instanceof r.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)r=a.contentWindow;else break;a=ou(r.document)}return a}function ld(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function Vk(r,a){var s=Cy(a);a=r.focusedElem;var c=r.selectionRange;if(s!==a&&a&&a.ownerDocument&&xy(a.ownerDocument.documentElement,a)){if(c!==null&&ld(a)){if(r=c.start,s=c.end,s===void 0&&(s=r),"selectionStart"in a)a.selectionStart=r,a.selectionEnd=Math.min(s,a.value.length);else if(s=(r=a.ownerDocument||document)&&r.defaultView||window,s.getSelection){s=s.getSelection();var h=a.textContent.length,y=Math.min(c.start,h);c=c.end===void 0?y:Math.min(c.end,h),!s.extend&&y>c&&(h=c,c=y,y=h),h=wy(a,y);var x=wy(a,c);h&&x&&(s.rangeCount!==1||s.anchorNode!==h.node||s.anchorOffset!==h.offset||s.focusNode!==x.node||s.focusOffset!==x.offset)&&(r=r.createRange(),r.setStart(h.node,h.offset),s.removeAllRanges(),y>c?(s.addRange(r),s.extend(x.node,x.offset)):(r.setEnd(x.node,x.offset),s.addRange(r)))}}for(r=[],s=a;s=s.parentNode;)s.nodeType===1&&r.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<r.length;a++)s=r[a],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var Gk=Yr&&"documentMode"in document&&11>=document.documentMode,Fa=null,ud=null,hs=null,cd=!1;function ky(r,a,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;cd||Fa==null||Fa!==ou(c)||(c=Fa,"selectionStart"in c&&ld(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),hs&&ps(hs,c)||(hs=c,c=Xu(ud,"onSelect"),0<c.length&&(a=new fu("onSelect","select",null,a,s),r.push({event:a,listeners:c}),a.target=Fa)))}function Ji(r,a){var s={};return s[r.toLowerCase()]=a.toLowerCase(),s["Webkit"+r]="webkit"+a,s["Moz"+r]="moz"+a,s}var Va={animationend:Ji("Animation","AnimationEnd"),animationiteration:Ji("Animation","AnimationIteration"),animationstart:Ji("Animation","AnimationStart"),transitionrun:Ji("Transition","TransitionRun"),transitionstart:Ji("Transition","TransitionStart"),transitioncancel:Ji("Transition","TransitionCancel"),transitionend:Ji("Transition","TransitionEnd")},fd={},Ey={};Yr&&(Ey=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function ea(r){if(fd[r])return fd[r];if(!Va[r])return r;var a=Va[r],s;for(s in a)if(a.hasOwnProperty(s)&&s in Ey)return fd[r]=a[s];return r}var Ty=ea("animationend"),Ay=ea("animationiteration"),_y=ea("animationstart"),Kk=ea("transitionrun"),Yk=ea("transitionstart"),Xk=ea("transitioncancel"),Ry=ea("transitionend"),Oy=new Map,My="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 scrollEnd toggle touchMove waiting wheel".split(" ");function gr(r,a){Oy.set(r,a),Qi(a,[r])}var Zn=[],Ga=0,dd=0;function hu(){for(var r=Ga,a=dd=Ga=0;a<r;){var s=Zn[a];Zn[a++]=null;var c=Zn[a];Zn[a++]=null;var h=Zn[a];Zn[a++]=null;var y=Zn[a];if(Zn[a++]=null,c!==null&&h!==null){var x=c.pending;x===null?h.next=h:(h.next=x.next,x.next=h),c.pending=h}y!==0&&Ny(s,h,y)}}function mu(r,a,s,c){Zn[Ga++]=r,Zn[Ga++]=a,Zn[Ga++]=s,Zn[Ga++]=c,dd|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function pd(r,a,s,c){return mu(r,a,s,c),gu(r)}function wi(r,a){return mu(r,null,null,a),gu(r)}function Ny(r,a,s){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s);for(var h=!1,y=r.return;y!==null;)y.childLanes|=s,c=y.alternate,c!==null&&(c.childLanes|=s),y.tag===22&&(r=y.stateNode,r===null||r._visibility&1||(h=!0)),r=y,y=y.return;h&&a!==null&&r.tag===3&&(y=r.stateNode,h=31-Ue(s),y=y.hiddenUpdates,r=y[h],r===null?y[h]=[a]:r.push(a),a.lane=s|536870912)}function gu(r){if(50<$s)throw $s=0,vp=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Ka={},Dy=new WeakMap;function Jn(r,a){if(typeof r=="object"&&r!==null){var s=Dy.get(r);return s!==void 0?s:(a={value:r,source:a,stack:Z(a)},Dy.set(r,a),a)}return{value:r,source:a,stack:Z(a)}}var Ya=[],Xa=0,yu=null,bu=0,er=[],tr=0,ta=null,Wr=1,Qr="";function na(r,a){Ya[Xa++]=bu,Ya[Xa++]=yu,yu=r,bu=a}function Ly(r,a,s){er[tr++]=Wr,er[tr++]=Qr,er[tr++]=ta,ta=r;var c=Wr;r=Qr;var h=32-Ue(c)-1;c&=~(1<<h),s+=1;var y=32-Ue(a)+h;if(30<y){var x=h-h%5;y=(c&(1<<x)-1).toString(32),c>>=x,h-=x,Wr=1<<32-Ue(a)+h|s<<h|c,Qr=y+r}else Wr=1<<y|s<<h|c,Qr=r}function hd(r){r.return!==null&&(na(r,1),Ly(r,1,0))}function md(r){for(;r===yu;)yu=Ya[--Xa],Ya[Xa]=null,bu=Ya[--Xa],Ya[Xa]=null;for(;r===ta;)ta=er[--tr],er[tr]=null,Qr=er[--tr],er[tr]=null,Wr=er[--tr],er[tr]=null}var wn=null,ln=null,at=!1,yr=null,Or=!1,gd=Error(i(519));function ra(r){var a=Error(i(418,""));throw ys(Jn(a,r)),gd}function zy(r){var a=r.stateNode,s=r.type,c=r.memoizedProps;switch(a[Vt]=r,a[On]=c,s){case"dialog":We("cancel",a),We("close",a);break;case"iframe":case"object":case"embed":We("load",a);break;case"video":case"audio":for(s=0;s<Us.length;s++)We(Us[s],a);break;case"source":We("error",a);break;case"img":case"image":case"link":We("error",a),We("load",a);break;case"details":We("toggle",a);break;case"input":We("invalid",a),Wg(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),au(a);break;case"select":We("invalid",a);break;case"textarea":We("invalid",a),Zg(a,c.value,c.defaultValue,c.children),au(a)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||c.suppressHydrationWarning===!0||Fv(a.textContent,s)?(c.popover!=null&&(We("beforetoggle",a),We("toggle",a)),c.onScroll!=null&&We("scroll",a),c.onScrollEnd!=null&&We("scrollend",a),c.onClick!=null&&(a.onclick=Wu),a=!0):a=!1,a||ra(r)}function By(r){for(wn=r.return;wn;)switch(wn.tag){case 3:case 27:Or=!0;return;case 5:case 13:Or=!1;return;default:wn=wn.return}}function ms(r){if(r!==wn)return!1;if(!at)return By(r),at=!0,!1;var a=!1,s;if((s=r.tag!==3&&r.tag!==27)&&((s=r.tag===5)&&(s=r.type,s=!(s!=="form"&&s!=="button")||Bp(r.type,r.memoizedProps)),s=!s),s&&(a=!0),a&&ln&&ra(r),By(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));e:{for(r=r.nextSibling,a=0;r;){if(r.nodeType===8)if(s=r.data,s==="/$"){if(a===0){ln=vr(r.nextSibling);break e}a--}else s!=="$"&&s!=="$!"&&s!=="$?"||a++;r=r.nextSibling}ln=null}}else ln=wn?vr(r.stateNode.nextSibling):null;return!0}function gs(){ln=wn=null,at=!1}function ys(r){yr===null?yr=[r]:yr.push(r)}var bs=Error(i(460)),Iy=Error(i(474)),yd={then:function(){}};function jy(r){return r=r.status,r==="fulfilled"||r==="rejected"}function vu(){}function $y(r,a,s){switch(s=r[s],s===void 0?r.push(a):s!==a&&(a.then(vu,vu),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,r===bs?Error(i(483)):r;default:if(typeof a.status=="string")a.then(vu,vu);else{if(r=wt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(c){if(a.status==="pending"){var h=a;h.status="fulfilled",h.value=c}},function(c){if(a.status==="pending"){var h=a;h.status="rejected",h.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,r===bs?Error(i(483)):r}throw vs=a,bs}}var vs=null;function Py(){if(vs===null)throw Error(i(459));var r=vs;return vs=null,r}var Wa=null,Ss=0;function Su(r){var a=Ss;return Ss+=1,Wa===null&&(Wa=[]),$y(Wa,r,a)}function ws(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function wu(r,a){throw a.$$typeof===l?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Uy(r){var a=r._init;return a(r._payload)}function Hy(r){function a(K,q){if(r){var W=K.deletions;W===null?(K.deletions=[q],K.flags|=16):W.push(q)}}function s(K,q){if(!r)return null;for(;q!==null;)a(K,q),q=q.sibling;return null}function c(K){for(var q=new Map;K!==null;)K.key!==null?q.set(K.key,K):q.set(K.index,K),K=K.sibling;return q}function h(K,q){return K=Di(K,q),K.index=0,K.sibling=null,K}function y(K,q,W){return K.index=W,r?(W=K.alternate,W!==null?(W=W.index,W<q?(K.flags|=33554434,q):W):(K.flags|=33554434,q)):(K.flags|=1048576,q)}function x(K){return r&&K.alternate===null&&(K.flags|=33554434),K}function D(K,q,W,oe){return q===null||q.tag!==6?(q=fp(W,K.mode,oe),q.return=K,q):(q=h(q,W),q.return=K,q)}function z(K,q,W,oe){var ve=W.type;return ve===d?re(K,q,W.props.children,oe,W.key):q!==null&&(q.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===N&&Uy(ve)===q.type)?(q=h(q,W.props),ws(q,W),q.return=K,q):(q=$u(W.type,W.key,W.props,null,K.mode,oe),ws(q,W),q.return=K,q)}function F(K,q,W,oe){return q===null||q.tag!==4||q.stateNode.containerInfo!==W.containerInfo||q.stateNode.implementation!==W.implementation?(q=dp(W,K.mode,oe),q.return=K,q):(q=h(q,W.children||[]),q.return=K,q)}function re(K,q,W,oe,ve){return q===null||q.tag!==7?(q=pa(W,K.mode,oe,ve),q.return=K,q):(q=h(q,W),q.return=K,q)}function ce(K,q,W){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=fp(""+q,K.mode,W),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case u:return W=$u(q.type,q.key,q.props,null,K.mode,W),ws(W,q),W.return=K,W;case f:return q=dp(q,K.mode,W),q.return=K,q;case N:var oe=q._init;return q=oe(q._payload),ce(K,q,W)}if(L(q)||M(q))return q=pa(q,K.mode,W,null),q.return=K,q;if(typeof q.then=="function")return ce(K,Su(q),W);if(q.$$typeof===b)return ce(K,Bu(K,q),W);wu(K,q)}return null}function Q(K,q,W,oe){var ve=q!==null?q.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return ve!==null?null:D(K,q,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case u:return W.key===ve?z(K,q,W,oe):null;case f:return W.key===ve?F(K,q,W,oe):null;case N:return ve=W._init,W=ve(W._payload),Q(K,q,W,oe)}if(L(W)||M(W))return ve!==null?null:re(K,q,W,oe,null);if(typeof W.then=="function")return Q(K,q,Su(W),oe);if(W.$$typeof===b)return Q(K,q,Bu(K,W),oe);wu(K,W)}return null}function ne(K,q,W,oe,ve){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return K=K.get(W)||null,D(q,K,""+oe,ve);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case u:return K=K.get(oe.key===null?W:oe.key)||null,z(q,K,oe,ve);case f:return K=K.get(oe.key===null?W:oe.key)||null,F(q,K,oe,ve);case N:var Fe=oe._init;return oe=Fe(oe._payload),ne(K,q,W,oe,ve)}if(L(oe)||M(oe))return K=K.get(W)||null,re(q,K,oe,ve,null);if(typeof oe.then=="function")return ne(K,q,W,Su(oe),ve);if(oe.$$typeof===b)return ne(K,q,W,Bu(q,oe),ve);wu(q,oe)}return null}function Ae(K,q,W,oe){for(var ve=null,Fe=null,Re=q,Ne=q=0,an=null;Re!==null&&Ne<W.length;Ne++){Re.index>Ne?(an=Re,Re=null):an=Re.sibling;var ot=Q(K,Re,W[Ne],oe);if(ot===null){Re===null&&(Re=an);break}r&&Re&&ot.alternate===null&&a(K,Re),q=y(ot,q,Ne),Fe===null?ve=ot:Fe.sibling=ot,Fe=ot,Re=an}if(Ne===W.length)return s(K,Re),at&&na(K,Ne),ve;if(Re===null){for(;Ne<W.length;Ne++)Re=ce(K,W[Ne],oe),Re!==null&&(q=y(Re,q,Ne),Fe===null?ve=Re:Fe.sibling=Re,Fe=Re);return at&&na(K,Ne),ve}for(Re=c(Re);Ne<W.length;Ne++)an=ne(Re,K,Ne,W[Ne],oe),an!==null&&(r&&an.alternate!==null&&Re.delete(an.key===null?Ne:an.key),q=y(an,q,Ne),Fe===null?ve=an:Fe.sibling=an,Fe=an);return r&&Re.forEach(function(Pi){return a(K,Pi)}),at&&na(K,Ne),ve}function ze(K,q,W,oe){if(W==null)throw Error(i(151));for(var ve=null,Fe=null,Re=q,Ne=q=0,an=null,ot=W.next();Re!==null&&!ot.done;Ne++,ot=W.next()){Re.index>Ne?(an=Re,Re=null):an=Re.sibling;var Pi=Q(K,Re,ot.value,oe);if(Pi===null){Re===null&&(Re=an);break}r&&Re&&Pi.alternate===null&&a(K,Re),q=y(Pi,q,Ne),Fe===null?ve=Pi:Fe.sibling=Pi,Fe=Pi,Re=an}if(ot.done)return s(K,Re),at&&na(K,Ne),ve;if(Re===null){for(;!ot.done;Ne++,ot=W.next())ot=ce(K,ot.value,oe),ot!==null&&(q=y(ot,q,Ne),Fe===null?ve=ot:Fe.sibling=ot,Fe=ot);return at&&na(K,Ne),ve}for(Re=c(Re);!ot.done;Ne++,ot=W.next())ot=ne(Re,K,Ne,ot.value,oe),ot!==null&&(r&&ot.alternate!==null&&Re.delete(ot.key===null?Ne:ot.key),q=y(ot,q,Ne),Fe===null?ve=ot:Fe.sibling=ot,Fe=ot);return r&&Re.forEach(function(uT){return a(K,uT)}),at&&na(K,Ne),ve}function Lt(K,q,W,oe){if(typeof W=="object"&&W!==null&&W.type===d&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case u:e:{for(var ve=W.key;q!==null;){if(q.key===ve){if(ve=W.type,ve===d){if(q.tag===7){s(K,q.sibling),oe=h(q,W.props.children),oe.return=K,K=oe;break e}}else if(q.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===N&&Uy(ve)===q.type){s(K,q.sibling),oe=h(q,W.props),ws(oe,W),oe.return=K,K=oe;break e}s(K,q);break}else a(K,q);q=q.sibling}W.type===d?(oe=pa(W.props.children,K.mode,oe,W.key),oe.return=K,K=oe):(oe=$u(W.type,W.key,W.props,null,K.mode,oe),ws(oe,W),oe.return=K,K=oe)}return x(K);case f:e:{for(ve=W.key;q!==null;){if(q.key===ve)if(q.tag===4&&q.stateNode.containerInfo===W.containerInfo&&q.stateNode.implementation===W.implementation){s(K,q.sibling),oe=h(q,W.children||[]),oe.return=K,K=oe;break e}else{s(K,q);break}else a(K,q);q=q.sibling}oe=dp(W,K.mode,oe),oe.return=K,K=oe}return x(K);case N:return ve=W._init,W=ve(W._payload),Lt(K,q,W,oe)}if(L(W))return Ae(K,q,W,oe);if(M(W)){if(ve=M(W),typeof ve!="function")throw Error(i(150));return W=ve.call(W),ze(K,q,W,oe)}if(typeof W.then=="function")return Lt(K,q,Su(W),oe);if(W.$$typeof===b)return Lt(K,q,Bu(K,W),oe);wu(K,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,q!==null&&q.tag===6?(s(K,q.sibling),oe=h(q,W),oe.return=K,K=oe):(s(K,q),oe=fp(W,K.mode,oe),oe.return=K,K=oe),x(K)):s(K,q)}return function(K,q,W,oe){try{Ss=0;var ve=Lt(K,q,W,oe);return Wa=null,ve}catch(Re){if(Re===bs)throw Re;var Fe=ar(29,Re,null,K.mode);return Fe.lanes=oe,Fe.return=K,Fe}finally{}}}var ia=Hy(!0),qy=Hy(!1),Qa=ge(null),xu=ge(0);function Fy(r,a){r=li,le(xu,r),le(Qa,a),li=r|a.baseLanes}function bd(){le(xu,li),le(Qa,Qa.current)}function vd(){li=xu.current,ye(Qa),ye(xu)}var nr=ge(null),Mr=null;function xi(r){var a=r.alternate;le(Qt,Qt.current&1),le(nr,r),Mr===null&&(a===null||Qa.current!==null||a.memoizedState!==null)&&(Mr=r)}function Vy(r){if(r.tag===22){if(le(Qt,Qt.current),le(nr,r),Mr===null){var a=r.alternate;a!==null&&a.memoizedState!==null&&(Mr=r)}}else Ci()}function Ci(){le(Qt,Qt.current),le(nr,nr.current)}function Zr(r){ye(nr),Mr===r&&(Mr=null),ye(Qt)}var Qt=ge(0);function Cu(r){for(var a=r;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Wk=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(s,c){r.push(c)}};this.abort=function(){a.aborted=!0,r.forEach(function(s){return s()})}},Qk=e.unstable_scheduleCallback,Zk=e.unstable_NormalPriority,Zt={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sd(){return{controller:new Wk,data:new Map,refCount:0}}function xs(r){r.refCount--,r.refCount===0&&Qk(Zk,function(){r.controller.abort()})}var Cs=null,wd=0,Za=0,Ja=null;function Jk(r,a){if(Cs===null){var s=Cs=[];wd=0,Za=Ap(),Ja={status:"pending",value:void 0,then:function(c){s.push(c)}}}return wd++,a.then(Gy,Gy),a}function Gy(){if(--wd===0&&Cs!==null){Ja!==null&&(Ja.status="fulfilled");var r=Cs;Cs=null,Za=0,Ja=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function eE(r,a){var s=[],c={status:"pending",value:null,reason:null,then:function(h){s.push(h)}};return r.then(function(){c.status="fulfilled",c.value=a;for(var h=0;h<s.length;h++)(0,s[h])(a)},function(h){for(c.status="rejected",c.reason=h,h=0;h<s.length;h++)(0,s[h])(void 0)}),c}var Ky=P.S;P.S=function(r,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Jk(r,a),Ky!==null&&Ky(r,a)};var aa=ge(null);function xd(){var r=aa.current;return r!==null?r:wt.pooledCache}function ku(r,a){a===null?le(aa,aa.current):le(aa,a.pool)}function Yy(){var r=xd();return r===null?null:{parent:Zt._currentValue,pool:r}}var ki=0,He=null,pt=null,Gt=null,Eu=!1,eo=!1,oa=!1,Tu=0,ks=0,to=null,tE=0;function Pt(){throw Error(i(321))}function Cd(r,a){if(a===null)return!1;for(var s=0;s<a.length&&s<r.length;s++)if(!Pn(r[s],a[s]))return!1;return!0}function kd(r,a,s,c,h,y){return ki=y,He=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,P.H=r===null||r.memoizedState===null?sa:Ei,oa=!1,y=s(c,h),oa=!1,eo&&(y=Wy(a,s,c,h)),Xy(r),y}function Xy(r){P.H=Nr;var a=pt!==null&&pt.next!==null;if(ki=0,Gt=pt=He=null,Eu=!1,ks=0,to=null,a)throw Error(i(300));r===null||nn||(r=r.dependencies,r!==null&&zu(r)&&(nn=!0))}function Wy(r,a,s,c){He=r;var h=0;do{if(eo&&(to=null),ks=0,eo=!1,25<=h)throw Error(i(301));if(h+=1,Gt=pt=null,r.updateQueue!=null){var y=r.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}P.H=la,y=a(s,c)}while(eo);return y}function nE(){var r=P.H,a=r.useState()[0];return a=typeof a.then=="function"?Es(a):a,r=r.useState()[0],(pt!==null?pt.memoizedState:null)!==r&&(He.flags|=1024),a}function Ed(){var r=Tu!==0;return Tu=0,r}function Td(r,a,s){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~s}function Ad(r){if(Eu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Eu=!1}ki=0,Gt=pt=He=null,eo=!1,ks=Tu=0,to=null}function Nn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gt===null?He.memoizedState=Gt=r:Gt=Gt.next=r,Gt}function Kt(){if(pt===null){var r=He.alternate;r=r!==null?r.memoizedState:null}else r=pt.next;var a=Gt===null?He.memoizedState:Gt.next;if(a!==null)Gt=a,pt=r;else{if(r===null)throw He.alternate===null?Error(i(467)):Error(i(310));pt=r,r={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Gt===null?He.memoizedState=Gt=r:Gt=Gt.next=r}return Gt}var Au;Au=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Es(r){var a=ks;return ks+=1,to===null&&(to=[]),r=$y(to,r,a),a=He,(Gt===null?a.memoizedState:Gt.next)===null&&(a=a.alternate,P.H=a===null||a.memoizedState===null?sa:Ei),r}function _u(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Es(r);if(r.$$typeof===b)return mn(r)}throw Error(i(438,String(r)))}function _d(r){var a=null,s=He.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var c=He.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(h){return h.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=Au(),He.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(r),c=0;c<r;c++)s[c]=O;return a.index++,s}function Jr(r,a){return typeof a=="function"?a(r):a}function Ru(r){var a=Kt();return Rd(a,pt,r)}function Rd(r,a,s){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=s;var h=r.baseQueue,y=c.pending;if(y!==null){if(h!==null){var x=h.next;h.next=y.next,y.next=x}a.baseQueue=h=y,c.pending=null}if(y=r.baseState,h===null)r.memoizedState=y;else{a=h.next;var D=x=null,z=null,F=a,re=!1;do{var ce=F.lane&-536870913;if(ce!==F.lane?(et&ce)===ce:(ki&ce)===ce){var Q=F.revertLane;if(Q===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ce===Za&&(re=!0);else if((ki&Q)===Q){F=F.next,Q===Za&&(re=!0);continue}else ce={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},z===null?(D=z=ce,x=y):z=z.next=ce,He.lanes|=Q,Li|=Q;ce=F.action,oa&&s(y,ce),y=F.hasEagerState?F.eagerState:s(y,ce)}else Q={lane:ce,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},z===null?(D=z=Q,x=y):z=z.next=Q,He.lanes|=ce,Li|=ce;F=F.next}while(F!==null&&F!==a);if(z===null?x=y:z.next=D,!Pn(y,r.memoizedState)&&(nn=!0,re&&(s=Ja,s!==null)))throw s;r.memoizedState=y,r.baseState=x,r.baseQueue=z,c.lastRenderedState=y}return h===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Od(r){var a=Kt(),s=a.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=r;var c=s.dispatch,h=s.pending,y=a.memoizedState;if(h!==null){s.pending=null;var x=h=h.next;do y=r(y,x.action),x=x.next;while(x!==h);Pn(y,a.memoizedState)||(nn=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),s.lastRenderedState=y}return[y,c]}function Qy(r,a,s){var c=He,h=Kt(),y=at;if(y){if(s===void 0)throw Error(i(407));s=s()}else s=a();var x=!Pn((pt||h).memoizedState,s);if(x&&(h.memoizedState=s,nn=!0),h=h.queue,Dd(eb.bind(null,c,h,r),[r]),h.getSnapshot!==a||x||Gt!==null&&Gt.memoizedState.tag&1){if(c.flags|=2048,no(9,Jy.bind(null,c,h,s,a),{destroy:void 0},null),wt===null)throw Error(i(349));y||(ki&60)!==0||Zy(c,a,s)}return s}function Zy(r,a,s){r.flags|=16384,r={getSnapshot:a,value:s},a=He.updateQueue,a===null?(a=Au(),He.updateQueue=a,a.stores=[r]):(s=a.stores,s===null?a.stores=[r]:s.push(r))}function Jy(r,a,s,c){a.value=s,a.getSnapshot=c,tb(a)&&nb(r)}function eb(r,a,s){return s(function(){tb(a)&&nb(r)})}function tb(r){var a=r.getSnapshot;r=r.value;try{var s=a();return!Pn(r,s)}catch{return!0}}function nb(r){var a=wi(r,2);a!==null&&xn(a,r,2)}function Md(r){var a=Nn();if(typeof r=="function"){var s=r;if(r=s(),oa){Me(!0);try{s()}finally{Me(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:r},a}function rb(r,a,s,c){return r.baseState=s,Rd(r,pt,typeof c=="function"?c:Jr)}function rE(r,a,s,c,h){if(Nu(r))throw Error(i(485));if(r=a.action,r!==null){var y={payload:h,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){y.listeners.push(x)}};P.T!==null?s(!0):y.isTransition=!1,c(y),s=a.pending,s===null?(y.next=a.pending=y,ib(a,y)):(y.next=s.next,a.pending=s.next=y)}}function ib(r,a){var s=a.action,c=a.payload,h=r.state;if(a.isTransition){var y=P.T,x={};P.T=x;try{var D=s(h,c),z=P.S;z!==null&&z(x,D),ab(r,a,D)}catch(F){Nd(r,a,F)}finally{P.T=y}}else try{y=s(h,c),ab(r,a,y)}catch(F){Nd(r,a,F)}}function ab(r,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){ob(r,a,c)},function(c){return Nd(r,a,c)}):ob(r,a,s)}function ob(r,a,s){a.status="fulfilled",a.value=s,sb(a),r.state=s,a=r.pending,a!==null&&(s=a.next,s===a?r.pending=null:(s=s.next,a.next=s,ib(r,s)))}function Nd(r,a,s){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=s,sb(a),a=a.next;while(a!==c)}r.action=null}function sb(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function lb(r,a){return a}function ub(r,a){if(at){var s=wt.formState;if(s!==null){e:{var c=He;if(at){if(ln){t:{for(var h=ln,y=Or;h.nodeType!==8;){if(!y){h=null;break t}if(h=vr(h.nextSibling),h===null){h=null;break t}}y=h.data,h=y==="F!"||y==="F"?h:null}if(h){ln=vr(h.nextSibling),c=h.data==="F!";break e}}ra(c)}c=!1}c&&(a=s[0])}}return s=Nn(),s.memoizedState=s.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lb,lastRenderedState:a},s.queue=c,s=Ab.bind(null,He,c),c.dispatch=s,c=Md(!1),y=jd.bind(null,He,!1,c.queue),c=Nn(),h={state:a,dispatch:null,action:r,pending:null},c.queue=h,s=rE.bind(null,He,h,y,s),h.dispatch=s,c.memoizedState=r,[a,s,!1]}function cb(r){var a=Kt();return fb(a,pt,r)}function fb(r,a,s){a=Rd(r,a,lb)[0],r=Ru(Jr)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?Es(a):a;var c=Kt(),h=c.queue,y=h.dispatch;return s!==c.memoizedState&&(He.flags|=2048,no(9,iE.bind(null,h,s),{destroy:void 0},null)),[a,y,r]}function iE(r,a){r.action=a}function db(r){var a=Kt(),s=pt;if(s!==null)return fb(a,s,r);Kt(),a=a.memoizedState,s=Kt();var c=s.queue.dispatch;return s.memoizedState=r,[a,c,!1]}function no(r,a,s,c){return r={tag:r,create:a,inst:s,deps:c,next:null},a=He.updateQueue,a===null&&(a=Au(),He.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=r.next=r:(c=s.next,s.next=r,r.next=c,a.lastEffect=r),r}function pb(){return Kt().memoizedState}function Ou(r,a,s,c){var h=Nn();He.flags|=r,h.memoizedState=no(1|a,s,{destroy:void 0},c===void 0?null:c)}function Mu(r,a,s,c){var h=Kt();c=c===void 0?null:c;var y=h.memoizedState.inst;pt!==null&&c!==null&&Cd(c,pt.memoizedState.deps)?h.memoizedState=no(a,s,y,c):(He.flags|=r,h.memoizedState=no(1|a,s,y,c))}function hb(r,a){Ou(8390656,8,r,a)}function Dd(r,a){Mu(2048,8,r,a)}function mb(r,a){return Mu(4,2,r,a)}function gb(r,a){return Mu(4,4,r,a)}function yb(r,a){if(typeof a=="function"){r=r();var s=a(r);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function bb(r,a,s){s=s!=null?s.concat([r]):null,Mu(4,4,yb.bind(null,a,r),s)}function Ld(){}function vb(r,a){var s=Kt();a=a===void 0?null:a;var c=s.memoizedState;return a!==null&&Cd(a,c[1])?c[0]:(s.memoizedState=[r,a],r)}function Sb(r,a){var s=Kt();a=a===void 0?null:a;var c=s.memoizedState;if(a!==null&&Cd(a,c[1]))return c[0];if(c=r(),oa){Me(!0);try{r()}finally{Me(!1)}}return s.memoizedState=[c,a],c}function zd(r,a,s){return s===void 0||(ki&1073741824)!==0?r.memoizedState=a:(r.memoizedState=s,r=xv(),He.lanes|=r,Li|=r,s)}function wb(r,a,s,c){return Pn(s,a)?s:Qa.current!==null?(r=zd(r,s,c),Pn(r,a)||(nn=!0),r):(ki&42)===0?(nn=!0,r.memoizedState=s):(r=xv(),He.lanes|=r,Li|=r,a)}function xb(r,a,s,c,h){var y=ie.p;ie.p=y!==0&&8>y?y:8;var x=P.T,D={};P.T=D,jd(r,!1,a,s);try{var z=h(),F=P.S;if(F!==null&&F(D,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var re=eE(z,c);Ts(r,a,re,Fn(r))}else Ts(r,a,c,Fn(r))}catch(ce){Ts(r,a,{then:function(){},status:"rejected",reason:ce},Fn())}finally{ie.p=y,P.T=x}}function aE(){}function Bd(r,a,s,c){if(r.tag!==5)throw Error(i(476));var h=Cb(r).queue;xb(r,h,a,ue,s===null?aE:function(){return kb(r),s(c)})}function Cb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:ue},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:s},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function kb(r){var a=Cb(r).next.queue;Ts(r,a,{},Fn())}function Id(){return mn(Gs)}function Eb(){return Kt().memoizedState}function Tb(){return Kt().memoizedState}function oE(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var s=Fn();r=_i(s);var c=Ri(a,r,s);c!==null&&(xn(c,a,s),Rs(c,a,s)),a={cache:Sd()},r.payload=a;return}a=a.return}}function sE(r,a,s){var c=Fn();s={lane:c,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},Nu(r)?_b(a,s):(s=pd(r,a,s,c),s!==null&&(xn(s,r,c),Rb(s,a,c)))}function Ab(r,a,s){var c=Fn();Ts(r,a,s,c)}function Ts(r,a,s,c){var h={lane:c,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Nu(r))_b(a,h);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var x=a.lastRenderedState,D=y(x,s);if(h.hasEagerState=!0,h.eagerState=D,Pn(D,x))return mu(r,a,h,0),wt===null&&hu(),!1}catch{}finally{}if(s=pd(r,a,h,c),s!==null)return xn(s,r,c),Rb(s,a,c),!0}return!1}function jd(r,a,s,c){if(c={lane:2,revertLane:Ap(),action:c,hasEagerState:!1,eagerState:null,next:null},Nu(r)){if(a)throw Error(i(479))}else a=pd(r,s,c,2),a!==null&&xn(a,r,2)}function Nu(r){var a=r.alternate;return r===He||a!==null&&a===He}function _b(r,a){eo=Eu=!0;var s=r.pending;s===null?a.next=a:(a.next=s.next,s.next=a),r.pending=a}function Rb(r,a,s){if((s&4194176)!==0){var c=a.lanes;c&=r.pendingLanes,s|=c,a.lanes=s,Xn(r,s)}}var Nr={readContext:mn,use:_u,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt};Nr.useCacheRefresh=Pt,Nr.useMemoCache=Pt,Nr.useHostTransitionStatus=Pt,Nr.useFormState=Pt,Nr.useActionState=Pt,Nr.useOptimistic=Pt;var sa={readContext:mn,use:_u,useCallback:function(r,a){return Nn().memoizedState=[r,a===void 0?null:a],r},useContext:mn,useEffect:hb,useImperativeHandle:function(r,a,s){s=s!=null?s.concat([r]):null,Ou(4194308,4,yb.bind(null,a,r),s)},useLayoutEffect:function(r,a){return Ou(4194308,4,r,a)},useInsertionEffect:function(r,a){Ou(4,2,r,a)},useMemo:function(r,a){var s=Nn();a=a===void 0?null:a;var c=r();if(oa){Me(!0);try{r()}finally{Me(!1)}}return s.memoizedState=[c,a],c},useReducer:function(r,a,s){var c=Nn();if(s!==void 0){var h=s(a);if(oa){Me(!0);try{s(a)}finally{Me(!1)}}}else h=a;return c.memoizedState=c.baseState=h,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:h},c.queue=r,r=r.dispatch=sE.bind(null,He,r),[c.memoizedState,r]},useRef:function(r){var a=Nn();return r={current:r},a.memoizedState=r},useState:function(r){r=Md(r);var a=r.queue,s=Ab.bind(null,He,a);return a.dispatch=s,[r.memoizedState,s]},useDebugValue:Ld,useDeferredValue:function(r,a){var s=Nn();return zd(s,r,a)},useTransition:function(){var r=Md(!1);return r=xb.bind(null,He,r.queue,!0,!1),Nn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,s){var c=He,h=Nn();if(at){if(s===void 0)throw Error(i(407));s=s()}else{if(s=a(),wt===null)throw Error(i(349));(et&60)!==0||Zy(c,a,s)}h.memoizedState=s;var y={value:s,getSnapshot:a};return h.queue=y,hb(eb.bind(null,c,y,r),[r]),c.flags|=2048,no(9,Jy.bind(null,c,y,s,a),{destroy:void 0},null),s},useId:function(){var r=Nn(),a=wt.identifierPrefix;if(at){var s=Qr,c=Wr;s=(c&~(1<<32-Ue(c)-1)).toString(32)+s,a=":"+a+"R"+s,s=Tu++,0<s&&(a+="H"+s.toString(32)),a+=":"}else s=tE++,a=":"+a+"r"+s.toString(32)+":";return r.memoizedState=a},useCacheRefresh:function(){return Nn().memoizedState=oE.bind(null,He)}};sa.useMemoCache=_d,sa.useHostTransitionStatus=Id,sa.useFormState=ub,sa.useActionState=ub,sa.useOptimistic=function(r){var a=Nn();a.memoizedState=a.baseState=r;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=jd.bind(null,He,!0,s),s.dispatch=a,[r,a]};var Ei={readContext:mn,use:_u,useCallback:vb,useContext:mn,useEffect:Dd,useImperativeHandle:bb,useInsertionEffect:mb,useLayoutEffect:gb,useMemo:Sb,useReducer:Ru,useRef:pb,useState:function(){return Ru(Jr)},useDebugValue:Ld,useDeferredValue:function(r,a){var s=Kt();return wb(s,pt.memoizedState,r,a)},useTransition:function(){var r=Ru(Jr)[0],a=Kt().memoizedState;return[typeof r=="boolean"?r:Es(r),a]},useSyncExternalStore:Qy,useId:Eb};Ei.useCacheRefresh=Tb,Ei.useMemoCache=_d,Ei.useHostTransitionStatus=Id,Ei.useFormState=cb,Ei.useActionState=cb,Ei.useOptimistic=function(r,a){var s=Kt();return rb(s,pt,r,a)};var la={readContext:mn,use:_u,useCallback:vb,useContext:mn,useEffect:Dd,useImperativeHandle:bb,useInsertionEffect:mb,useLayoutEffect:gb,useMemo:Sb,useReducer:Od,useRef:pb,useState:function(){return Od(Jr)},useDebugValue:Ld,useDeferredValue:function(r,a){var s=Kt();return pt===null?zd(s,r,a):wb(s,pt.memoizedState,r,a)},useTransition:function(){var r=Od(Jr)[0],a=Kt().memoizedState;return[typeof r=="boolean"?r:Es(r),a]},useSyncExternalStore:Qy,useId:Eb};la.useCacheRefresh=Tb,la.useMemoCache=_d,la.useHostTransitionStatus=Id,la.useFormState=db,la.useActionState=db,la.useOptimistic=function(r,a){var s=Kt();return pt!==null?rb(s,pt,r,a):(s.baseState=r,[r,s.queue.dispatch])};function $d(r,a,s,c){a=r.memoizedState,s=s(c,a),s=s==null?a:E({},a,s),r.memoizedState=s,r.lanes===0&&(r.updateQueue.baseState=s)}var Pd={isMounted:function(r){return(r=r._reactInternals)?ae(r)===r:!1},enqueueSetState:function(r,a,s){r=r._reactInternals;var c=Fn(),h=_i(c);h.payload=a,s!=null&&(h.callback=s),a=Ri(r,h,c),a!==null&&(xn(a,r,c),Rs(a,r,c))},enqueueReplaceState:function(r,a,s){r=r._reactInternals;var c=Fn(),h=_i(c);h.tag=1,h.payload=a,s!=null&&(h.callback=s),a=Ri(r,h,c),a!==null&&(xn(a,r,c),Rs(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var s=Fn(),c=_i(s);c.tag=2,a!=null&&(c.callback=a),a=Ri(r,c,s),a!==null&&(xn(a,r,s),Rs(a,r,s))}};function Ob(r,a,s,c,h,y,x){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,x):a.prototype&&a.prototype.isPureReactComponent?!ps(s,c)||!ps(h,y):!0}function Mb(r,a,s,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,c),a.state!==r&&Pd.enqueueReplaceState(a,a.state,null)}function ua(r,a){var s=a;if("ref"in a){s={};for(var c in a)c!=="ref"&&(s[c]=a[c])}if(r=r.defaultProps){s===a&&(s=E({},s));for(var h in r)s[h]===void 0&&(s[h]=r[h])}return s}var Du=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function Nb(r){Du(r)}function Db(r){console.error(r)}function Lb(r){Du(r)}function Lu(r,a){try{var s=r.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function zb(r,a,s){try{var c=r.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Ud(r,a,s){return s=_i(s),s.tag=3,s.payload={element:null},s.callback=function(){Lu(r,a)},s}function Bb(r){return r=_i(r),r.tag=3,r}function Ib(r,a,s,c){var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var y=c.value;r.payload=function(){return h(y)},r.callback=function(){zb(a,s,c)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(r.callback=function(){zb(a,s,c),typeof h!="function"&&(zi===null?zi=new Set([this]):zi.add(this));var D=c.stack;this.componentDidCatch(c.value,{componentStack:D!==null?D:""})})}function lE(r,a,s,c,h){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=s.alternate,a!==null&&_s(a,s,h,!0),s=nr.current,s!==null){switch(s.tag){case 13:return Mr===null?xp():s.alternate===null&&Dt===0&&(Dt=3),s.flags&=-257,s.flags|=65536,s.lanes=h,c===yd?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([c]):a.add(c),kp(r,c,h)),!1;case 22:return s.flags|=65536,c===yd?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([c]):s.add(c)),kp(r,c,h)),!1}throw Error(i(435,s.tag))}return kp(r,c,h),xp(),!1}if(at)return a=nr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=h,c!==gd&&(r=Error(i(422),{cause:c}),ys(Jn(r,s)))):(c!==gd&&(a=Error(i(423),{cause:c}),ys(Jn(a,s))),r=r.current.alternate,r.flags|=65536,h&=-h,r.lanes|=h,c=Jn(c,s),h=Ud(r.stateNode,c,h),np(r,h),Dt!==4&&(Dt=2)),!1;var y=Error(i(520),{cause:c});if(y=Jn(y,s),Is===null?Is=[y]:Is.push(y),Dt!==4&&(Dt=2),a===null)return!0;c=Jn(c,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,r=h&-h,s.lanes|=r,r=Ud(s.stateNode,c,r),np(s,r),!1;case 1:if(a=s.type,y=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(zi===null||!zi.has(y))))return s.flags|=65536,h&=-h,s.lanes|=h,h=Bb(h),Ib(h,r,s,c),np(s,h),!1}s=s.return}while(s!==null);return!1}var jb=Error(i(461)),nn=!1;function un(r,a,s,c){a.child=r===null?qy(a,null,s,c):ia(a,r.child,s,c)}function $b(r,a,s,c,h){s=s.render;var y=a.ref;if("ref"in c){var x={};for(var D in c)D!=="ref"&&(x[D]=c[D])}else x=c;return fa(a),c=kd(r,a,s,x,y,h),D=Ed(),r!==null&&!nn?(Td(r,a,h),ei(r,a,h)):(at&&D&&hd(a),a.flags|=1,un(r,a,c,h),a.child)}function Pb(r,a,s,c,h){if(r===null){var y=s.type;return typeof y=="function"&&!cp(y)&&y.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=y,Ub(r,a,y,c,h)):(r=$u(s.type,null,c,a,a.mode,h),r.ref=a.ref,r.return=a,a.child=r)}if(y=r.child,!Wd(r,h)){var x=y.memoizedProps;if(s=s.compare,s=s!==null?s:ps,s(x,c)&&r.ref===a.ref)return ei(r,a,h)}return a.flags|=1,r=Di(y,c),r.ref=a.ref,r.return=a,a.child=r}function Ub(r,a,s,c,h){if(r!==null){var y=r.memoizedProps;if(ps(y,c)&&r.ref===a.ref)if(nn=!1,a.pendingProps=c=y,Wd(r,h))(r.flags&131072)!==0&&(nn=!0);else return a.lanes=r.lanes,ei(r,a,h)}return Hd(r,a,s,c,h)}function Hb(r,a,s){var c=a.pendingProps,h=c.children,y=(a.stateNode._pendingVisibility&2)!==0,x=r!==null?r.memoizedState:null;if(As(r,a),c.mode==="hidden"||y){if((a.flags&128)!==0){if(c=x!==null?x.baseLanes|s:s,r!==null){for(h=a.child=r.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;a.childLanes=y&~c}else a.childLanes=0,a.child=null;return qb(r,a,c,s)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&ku(a,x!==null?x.cachePool:null),x!==null?Fy(a,x):bd(),Vy(a);else return a.lanes=a.childLanes=536870912,qb(r,a,x!==null?x.baseLanes|s:s,s)}else x!==null?(ku(a,x.cachePool),Fy(a,x),Ci(),a.memoizedState=null):(r!==null&&ku(a,null),bd(),Ci());return un(r,a,h,s),a.child}function qb(r,a,s,c){var h=xd();return h=h===null?null:{parent:Zt._currentValue,pool:h},a.memoizedState={baseLanes:s,cachePool:h},r!==null&&ku(a,null),bd(),Vy(a),r!==null&&_s(r,a,c,!0),null}function As(r,a){var s=a.ref;if(s===null)r!==null&&r.ref!==null&&(a.flags|=2097664);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(r===null||r.ref!==s)&&(a.flags|=2097664)}}function Hd(r,a,s,c,h){return fa(a),s=kd(r,a,s,c,void 0,h),c=Ed(),r!==null&&!nn?(Td(r,a,h),ei(r,a,h)):(at&&c&&hd(a),a.flags|=1,un(r,a,s,h),a.child)}function Fb(r,a,s,c,h,y){return fa(a),a.updateQueue=null,s=Wy(a,c,s,h),Xy(r),c=Ed(),r!==null&&!nn?(Td(r,a,y),ei(r,a,y)):(at&&c&&hd(a),a.flags|=1,un(r,a,s,y),a.child)}function Vb(r,a,s,c,h){if(fa(a),a.stateNode===null){var y=Ka,x=s.contextType;typeof x=="object"&&x!==null&&(y=mn(x)),y=new s(c,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Pd,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=c,y.state=a.memoizedState,y.refs={},ep(a),x=s.contextType,y.context=typeof x=="object"&&x!==null?mn(x):Ka,y.state=a.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&($d(a,s,x,c),y.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(x=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),x!==y.state&&Pd.enqueueReplaceState(y,y.state,null),Ms(a,c,y,h),Os(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){y=a.stateNode;var D=a.memoizedProps,z=ua(s,D);y.props=z;var F=y.context,re=s.contextType;x=Ka,typeof re=="object"&&re!==null&&(x=mn(re));var ce=s.getDerivedStateFromProps;re=typeof ce=="function"||typeof y.getSnapshotBeforeUpdate=="function",D=a.pendingProps!==D,re||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(D||F!==x)&&Mb(a,y,c,x),Ai=!1;var Q=a.memoizedState;y.state=Q,Ms(a,c,y,h),Os(),F=a.memoizedState,D||Q!==F||Ai?(typeof ce=="function"&&($d(a,s,ce,c),F=a.memoizedState),(z=Ai||Ob(a,s,z,c,Q,F,x))?(re||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=F),y.props=c,y.state=F,y.context=x,c=z):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{y=a.stateNode,tp(r,a),x=a.memoizedProps,re=ua(s,x),y.props=re,ce=a.pendingProps,Q=y.context,F=s.contextType,z=Ka,typeof F=="object"&&F!==null&&(z=mn(F)),D=s.getDerivedStateFromProps,(F=typeof D=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(x!==ce||Q!==z)&&Mb(a,y,c,z),Ai=!1,Q=a.memoizedState,y.state=Q,Ms(a,c,y,h),Os();var ne=a.memoizedState;x!==ce||Q!==ne||Ai||r!==null&&r.dependencies!==null&&zu(r.dependencies)?(typeof D=="function"&&($d(a,s,D,c),ne=a.memoizedState),(re=Ai||Ob(a,s,re,c,Q,ne,z)||r!==null&&r.dependencies!==null&&zu(r.dependencies))?(F||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,ne,z),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,ne,z)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||x===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=ne),y.props=c,y.state=ne,y.context=z,c=re):(typeof y.componentDidUpdate!="function"||x===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),c=!1)}return y=c,As(r,a),c=(a.flags&128)!==0,y||c?(y=a.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,r!==null&&c?(a.child=ia(a,r.child,null,h),a.child=ia(a,null,s,h)):un(r,a,s,h),a.memoizedState=y.state,r=a.child):r=ei(r,a,h),r}function Gb(r,a,s,c){return gs(),a.flags|=256,un(r,a,s,c),a.child}var qd={dehydrated:null,treeContext:null,retryLane:0};function Fd(r){return{baseLanes:r,cachePool:Yy()}}function Vd(r,a,s){return r=r!==null?r.childLanes&~s:0,a&&(r|=or),r}function Kb(r,a,s){var c=a.pendingProps,h=!1,y=(a.flags&128)!==0,x;if((x=y)||(x=r!==null&&r.memoizedState===null?!1:(Qt.current&2)!==0),x&&(h=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,r===null){if(at){if(h?xi(a):Ci(),at){var D=ln,z;if(z=D){e:{for(z=D,D=Or;z.nodeType!==8;){if(!D){D=null;break e}if(z=vr(z.nextSibling),z===null){D=null;break e}}D=z}D!==null?(a.memoizedState={dehydrated:D,treeContext:ta!==null?{id:Wr,overflow:Qr}:null,retryLane:536870912},z=ar(18,null,null,0),z.stateNode=D,z.return=a,a.child=z,wn=a,ln=null,z=!0):z=!1}z||ra(a)}if(D=a.memoizedState,D!==null&&(D=D.dehydrated,D!==null))return D.data==="$!"?a.lanes=16:a.lanes=536870912,null;Zr(a)}return D=c.children,c=c.fallback,h?(Ci(),h=a.mode,D=Kd({mode:"hidden",children:D},h),c=pa(c,h,s,null),D.return=a,c.return=a,D.sibling=c,a.child=D,h=a.child,h.memoizedState=Fd(s),h.childLanes=Vd(r,x,s),a.memoizedState=qd,c):(xi(a),Gd(a,D))}if(z=r.memoizedState,z!==null&&(D=z.dehydrated,D!==null)){if(y)a.flags&256?(xi(a),a.flags&=-257,a=Yd(r,a,s)):a.memoizedState!==null?(Ci(),a.child=r.child,a.flags|=128,a=null):(Ci(),h=c.fallback,D=a.mode,c=Kd({mode:"visible",children:c.children},D),h=pa(h,D,s,null),h.flags|=2,c.return=a,h.return=a,c.sibling=h,a.child=c,ia(a,r.child,null,s),c=a.child,c.memoizedState=Fd(s),c.childLanes=Vd(r,x,s),a.memoizedState=qd,a=h);else if(xi(a),D.data==="$!"){if(x=D.nextSibling&&D.nextSibling.dataset,x)var F=x.dgst;x=F,c=Error(i(419)),c.stack="",c.digest=x,ys({value:c,source:null,stack:null}),a=Yd(r,a,s)}else if(nn||_s(r,a,s,!1),x=(s&r.childLanes)!==0,nn||x){if(x=wt,x!==null){if(c=s&-s,(c&42)!==0)c=1;else switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=64;break;case 268435456:c=134217728;break;default:c=0}if(c=(c&(x.suspendedLanes|s))!==0?0:c,c!==0&&c!==z.retryLane)throw z.retryLane=c,wi(r,c),xn(x,r,c),jb}D.data==="$?"||xp(),a=Yd(r,a,s)}else D.data==="$?"?(a.flags|=128,a.child=r.child,a=CE.bind(null,r),D._reactRetry=a,a=null):(r=z.treeContext,ln=vr(D.nextSibling),wn=a,at=!0,yr=null,Or=!1,r!==null&&(er[tr++]=Wr,er[tr++]=Qr,er[tr++]=ta,Wr=r.id,Qr=r.overflow,ta=a),a=Gd(a,c.children),a.flags|=4096);return a}return h?(Ci(),h=c.fallback,D=a.mode,z=r.child,F=z.sibling,c=Di(z,{mode:"hidden",children:c.children}),c.subtreeFlags=z.subtreeFlags&31457280,F!==null?h=Di(F,h):(h=pa(h,D,s,null),h.flags|=2),h.return=a,c.return=a,c.sibling=h,a.child=c,c=h,h=a.child,D=r.child.memoizedState,D===null?D=Fd(s):(z=D.cachePool,z!==null?(F=Zt._currentValue,z=z.parent!==F?{parent:F,pool:F}:z):z=Yy(),D={baseLanes:D.baseLanes|s,cachePool:z}),h.memoizedState=D,h.childLanes=Vd(r,x,s),a.memoizedState=qd,c):(xi(a),s=r.child,r=s.sibling,s=Di(s,{mode:"visible",children:c.children}),s.return=a,s.sibling=null,r!==null&&(x=a.deletions,x===null?(a.deletions=[r],a.flags|=16):x.push(r)),a.child=s,a.memoizedState=null,s)}function Gd(r,a){return a=Kd({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Kd(r,a){return vv(r,a,0,null)}function Yd(r,a,s){return ia(a,r.child,null,s),r=Gd(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function Yb(r,a,s){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),Zd(r.return,a,s)}function Xd(r,a,s,c,h){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=s,y.tailMode=h)}function Xb(r,a,s){var c=a.pendingProps,h=c.revealOrder,y=c.tail;if(un(r,a,c.children,s),c=Qt.current,(c&2)!==0)c=c&1|2,a.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Yb(r,s,a);else if(r.tag===19)Yb(r,s,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}switch(le(Qt,c),h){case"forwards":for(s=a.child,h=null;s!==null;)r=s.alternate,r!==null&&Cu(r)===null&&(h=s),s=s.sibling;s=h,s===null?(h=a.child,a.child=null):(h=s.sibling,s.sibling=null),Xd(a,!1,h,s,y);break;case"backwards":for(s=null,h=a.child,a.child=null;h!==null;){if(r=h.alternate,r!==null&&Cu(r)===null){a.child=h;break}r=h.sibling,h.sibling=s,s=h,h=r}Xd(a,!0,s,null,y);break;case"together":Xd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ei(r,a,s){if(r!==null&&(a.dependencies=r.dependencies),Li|=a.lanes,(s&a.childLanes)===0)if(r!==null){if(_s(r,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,s=Di(r,r.pendingProps),a.child=s,s.return=a;r.sibling!==null;)r=r.sibling,s=s.sibling=Di(r,r.pendingProps),s.return=a;s.sibling=null}return a.child}function Wd(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&zu(r)))}function uE(r,a,s){switch(a.tag){case 3:Ie(a,a.stateNode.containerInfo),Ti(a,Zt,r.memoizedState.cache),gs();break;case 27:case 5:qe(a);break;case 4:Ie(a,a.stateNode.containerInfo);break;case 10:Ti(a,a.type,a.memoizedProps.value);break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(xi(a),a.flags|=128,null):(s&a.child.childLanes)!==0?Kb(r,a,s):(xi(a),r=ei(r,a,s),r!==null?r.sibling:null);xi(a);break;case 19:var h=(r.flags&128)!==0;if(c=(s&a.childLanes)!==0,c||(_s(r,a,s,!1),c=(s&a.childLanes)!==0),h){if(c)return Xb(r,a,s);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),le(Qt,Qt.current),c)break;return null;case 22:case 23:return a.lanes=0,Hb(r,a,s);case 24:Ti(a,Zt,r.memoizedState.cache)}return ei(r,a,s)}function Wb(r,a,s){if(r!==null)if(r.memoizedProps!==a.pendingProps)nn=!0;else{if(!Wd(r,s)&&(a.flags&128)===0)return nn=!1,uE(r,a,s);nn=(r.flags&131072)!==0}else nn=!1,at&&(a.flags&1048576)!==0&&Ly(a,bu,a.index);switch(a.lanes=0,a.tag){case 16:e:{r=a.pendingProps;var c=a.elementType,h=c._init;if(c=h(c._payload),a.type=c,typeof c=="function")cp(c)?(r=ua(c,r),a.tag=1,a=Vb(null,a,c,r,s)):(a.tag=0,a=Hd(null,a,c,r,s));else{if(c!=null){if(h=c.$$typeof,h===w){a.tag=11,a=$b(null,a,c,r,s);break e}else if(h===A){a.tag=14,a=Pb(null,a,c,r,s);break e}}throw a=I(c)||c,Error(i(306,a,""))}}return a;case 0:return Hd(r,a,a.type,a.pendingProps,s);case 1:return c=a.type,h=ua(c,a.pendingProps),Vb(r,a,c,h,s);case 3:e:{if(Ie(a,a.stateNode.containerInfo),r===null)throw Error(i(387));var y=a.pendingProps;h=a.memoizedState,c=h.element,tp(r,a),Ms(a,y,null,s);var x=a.memoizedState;if(y=x.cache,Ti(a,Zt,y),y!==h.cache&&Jd(a,[Zt],s,!0),Os(),y=x.element,h.isDehydrated)if(h={element:y,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=Gb(r,a,y,s);break e}else if(y!==c){c=Jn(Error(i(424)),a),ys(c),a=Gb(r,a,y,s);break e}else for(ln=vr(a.stateNode.containerInfo.firstChild),wn=a,at=!0,yr=null,Or=!0,s=qy(a,null,y,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(gs(),y===c){a=ei(r,a,s);break e}un(r,a,y,s)}a=a.child}return a;case 26:return As(r,a),r===null?(s=Jv(a.type,null,a.pendingProps,null))?a.memoizedState=s:at||(s=a.type,r=a.pendingProps,c=Qu($e.current).createElement(s),c[Vt]=a,c[On]=r,cn(c,s,r),tn(c),a.stateNode=c):a.memoizedState=Jv(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return qe(a),r===null&&at&&(c=a.stateNode=Wv(a.type,a.pendingProps,$e.current),wn=a,Or=!0,ln=vr(c.firstChild)),c=a.pendingProps.children,r!==null||at?un(r,a,c,s):a.child=ia(a,null,c,s),As(r,a),a.child;case 5:return r===null&&at&&((h=c=ln)&&(c=$E(c,a.type,a.pendingProps,Or),c!==null?(a.stateNode=c,wn=a,ln=vr(c.firstChild),Or=!1,h=!0):h=!1),h||ra(a)),qe(a),h=a.type,y=a.pendingProps,x=r!==null?r.memoizedProps:null,c=y.children,Bp(h,y)?c=null:x!==null&&Bp(h,x)&&(a.flags|=32),a.memoizedState!==null&&(h=kd(r,a,nE,null,null,s),Gs._currentValue=h),As(r,a),un(r,a,c,s),a.child;case 6:return r===null&&at&&((r=s=ln)&&(s=PE(s,a.pendingProps,Or),s!==null?(a.stateNode=s,wn=a,ln=null,r=!0):r=!1),r||ra(a)),null;case 13:return Kb(r,a,s);case 4:return Ie(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=ia(a,null,c,s):un(r,a,c,s),a.child;case 11:return $b(r,a,a.type,a.pendingProps,s);case 7:return un(r,a,a.pendingProps,s),a.child;case 8:return un(r,a,a.pendingProps.children,s),a.child;case 12:return un(r,a,a.pendingProps.children,s),a.child;case 10:return c=a.pendingProps,Ti(a,a.type,c.value),un(r,a,c.children,s),a.child;case 9:return h=a.type._context,c=a.pendingProps.children,fa(a),h=mn(h),c=c(h),a.flags|=1,un(r,a,c,s),a.child;case 14:return Pb(r,a,a.type,a.pendingProps,s);case 15:return Ub(r,a,a.type,a.pendingProps,s);case 19:return Xb(r,a,s);case 22:return Hb(r,a,s);case 24:return fa(a),c=mn(Zt),r===null?(h=xd(),h===null&&(h=wt,y=Sd(),h.pooledCache=y,y.refCount++,y!==null&&(h.pooledCacheLanes|=s),h=y),a.memoizedState={parent:c,cache:h},ep(a),Ti(a,Zt,h)):((r.lanes&s)!==0&&(tp(r,a),Ms(a,null,null,s),Os()),h=r.memoizedState,y=a.memoizedState,h.parent!==c?(h={parent:c,cache:c},a.memoizedState=h,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=h),Ti(a,Zt,c)):(c=y.cache,Ti(a,Zt,c),c!==h.cache&&Jd(a,[Zt],s,!0))),un(r,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}var Qd=ge(null),ca=null,ti=null;function Ti(r,a,s){le(Qd,a._currentValue),a._currentValue=s}function ni(r){r._currentValue=Qd.current,ye(Qd)}function Zd(r,a,s){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===s)break;r=r.return}}function Jd(r,a,s,c){var h=r.child;for(h!==null&&(h.return=r);h!==null;){var y=h.dependencies;if(y!==null){var x=h.child;y=y.firstContext;e:for(;y!==null;){var D=y;y=h;for(var z=0;z<a.length;z++)if(D.context===a[z]){y.lanes|=s,D=y.alternate,D!==null&&(D.lanes|=s),Zd(y.return,s,r),c||(x=null);break e}y=D.next}}else if(h.tag===18){if(x=h.return,x===null)throw Error(i(341));x.lanes|=s,y=x.alternate,y!==null&&(y.lanes|=s),Zd(x,s,r),x=null}else x=h.child;if(x!==null)x.return=h;else for(x=h;x!==null;){if(x===r){x=null;break}if(h=x.sibling,h!==null){h.return=x.return,x=h;break}x=x.return}h=x}}function _s(r,a,s,c){r=null;for(var h=a,y=!1;h!==null;){if(!y){if((h.flags&524288)!==0)y=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var x=h.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var D=h.type;Pn(h.pendingProps.value,x.value)||(r!==null?r.push(D):r=[D])}}else if(h===ke.current){if(x=h.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(r!==null?r.push(Gs):r=[Gs])}h=h.return}r!==null&&Jd(a,r,s,c),a.flags|=262144}function zu(r){for(r=r.firstContext;r!==null;){if(!Pn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function fa(r){ca=r,ti=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function mn(r){return Qb(ca,r)}function Bu(r,a){return ca===null&&fa(r),Qb(r,a)}function Qb(r,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},ti===null){if(r===null)throw Error(i(308));ti=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else ti=ti.next=a;return s}var Ai=!1;function ep(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tp(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function _i(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Ri(r,a,s){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Mt&2)!==0){var h=c.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a,a=gu(r),Ny(r,null,s),a}return mu(r,c,a,s),gu(r)}function Rs(r,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194176)!==0)){var c=a.lanes;c&=r.pendingLanes,s|=c,a.lanes=s,Xn(r,s)}}function np(r,a){var s=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,y=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};y===null?h=y=x:y=y.next=x,s=s.next}while(s!==null);y===null?h=y=a:y=y.next=a}else h=y=a;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},r.updateQueue=s;return}r=s.lastBaseUpdate,r===null?s.firstBaseUpdate=a:r.next=a,s.lastBaseUpdate=a}var rp=!1;function Os(){if(rp){var r=Ja;if(r!==null)throw r}}function Ms(r,a,s,c){rp=!1;var h=r.updateQueue;Ai=!1;var y=h.firstBaseUpdate,x=h.lastBaseUpdate,D=h.shared.pending;if(D!==null){h.shared.pending=null;var z=D,F=z.next;z.next=null,x===null?y=F:x.next=F,x=z;var re=r.alternate;re!==null&&(re=re.updateQueue,D=re.lastBaseUpdate,D!==x&&(D===null?re.firstBaseUpdate=F:D.next=F,re.lastBaseUpdate=z))}if(y!==null){var ce=h.baseState;x=0,re=F=z=null,D=y;do{var Q=D.lane&-536870913,ne=Q!==D.lane;if(ne?(et&Q)===Q:(c&Q)===Q){Q!==0&&Q===Za&&(rp=!0),re!==null&&(re=re.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Ae=r,ze=D;Q=a;var Lt=s;switch(ze.tag){case 1:if(Ae=ze.payload,typeof Ae=="function"){ce=Ae.call(Lt,ce,Q);break e}ce=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=ze.payload,Q=typeof Ae=="function"?Ae.call(Lt,ce,Q):Ae,Q==null)break e;ce=E({},ce,Q);break e;case 2:Ai=!0}}Q=D.callback,Q!==null&&(r.flags|=64,ne&&(r.flags|=8192),ne=h.callbacks,ne===null?h.callbacks=[Q]:ne.push(Q))}else ne={lane:Q,tag:D.tag,payload:D.payload,callback:D.callback,next:null},re===null?(F=re=ne,z=ce):re=re.next=ne,x|=Q;if(D=D.next,D===null){if(D=h.shared.pending,D===null)break;ne=D,D=ne.next,ne.next=null,h.lastBaseUpdate=ne,h.shared.pending=null}}while(!0);re===null&&(z=ce),h.baseState=z,h.firstBaseUpdate=F,h.lastBaseUpdate=re,y===null&&(h.shared.lanes=0),Li|=x,r.lanes=x,r.memoizedState=ce}}function Zb(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Jb(r,a){var s=r.callbacks;if(s!==null)for(r.callbacks=null,r=0;r<s.length;r++)Zb(s[r],a)}function Ns(r,a){try{var s=a.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var h=c.next;s=h;do{if((s.tag&r)===r){c=void 0;var y=s.create,x=s.inst;c=y(),x.destroy=c}s=s.next}while(s!==h)}}catch(D){bt(a,a.return,D)}}function Oi(r,a,s){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var y=h.next;c=y;do{if((c.tag&r)===r){var x=c.inst,D=x.destroy;if(D!==void 0){x.destroy=void 0,h=a;var z=s;try{D()}catch(F){bt(h,z,F)}}}c=c.next}while(c!==y)}}catch(F){bt(a,a.return,F)}}function ev(r){var a=r.updateQueue;if(a!==null){var s=r.stateNode;try{Jb(a,s)}catch(c){bt(r,r.return,c)}}}function tv(r,a,s){s.props=ua(r.type,r.memoizedProps),s.state=r.memoizedState;try{s.componentWillUnmount()}catch(c){bt(r,a,c)}}function da(r,a){try{var s=r.ref;if(s!==null){var c=r.stateNode;switch(r.tag){case 26:case 27:case 5:var h=c;break;default:h=c}typeof s=="function"?r.refCleanup=s(h):s.current=h}}catch(y){bt(r,a,y)}}function Un(r,a){var s=r.ref,c=r.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(h){bt(r,a,h)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(h){bt(r,a,h)}else s.current=null}function nv(r){var a=r.type,s=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break e;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(h){bt(r,r.return,h)}}function rv(r,a,s){try{var c=r.stateNode;LE(c,r.type,s,a),c[On]=a}catch(h){bt(r,r.return,h)}}function iv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27||r.tag===4}function ip(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||iv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==27&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function ap(r,a,s){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?s.nodeType===8?s.parentNode.insertBefore(r,a):s.insertBefore(r,a):(s.nodeType===8?(a=s.parentNode,a.insertBefore(r,s)):(a=s,a.appendChild(r)),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=Wu));else if(c!==4&&c!==27&&(r=r.child,r!==null))for(ap(r,a,s),r=r.sibling;r!==null;)ap(r,a,s),r=r.sibling}function Iu(r,a,s){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?s.insertBefore(r,a):s.appendChild(r);else if(c!==4&&c!==27&&(r=r.child,r!==null))for(Iu(r,a,s),r=r.sibling;r!==null;)Iu(r,a,s),r=r.sibling}var ri=!1,Nt=!1,op=!1,av=typeof WeakSet=="function"?WeakSet:Set,rn=null,ov=!1;function cE(r,a){if(r=r.containerInfo,Lp=rc,r=Cy(r),ld(r)){if("selectionStart"in r)var s={start:r.selectionStart,end:r.selectionEnd};else e:{s=(s=r.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{s.nodeType,y.nodeType}catch{s=null;break e}var x=0,D=-1,z=-1,F=0,re=0,ce=r,Q=null;t:for(;;){for(var ne;ce!==s||h!==0&&ce.nodeType!==3||(D=x+h),ce!==y||c!==0&&ce.nodeType!==3||(z=x+c),ce.nodeType===3&&(x+=ce.nodeValue.length),(ne=ce.firstChild)!==null;)Q=ce,ce=ne;for(;;){if(ce===r)break t;if(Q===s&&++F===h&&(D=x),Q===y&&++re===c&&(z=x),(ne=ce.nextSibling)!==null)break;ce=Q,Q=ce.parentNode}ce=ne}s=D===-1||z===-1?null:{start:D,end:z}}else s=null}s=s||{start:0,end:0}}else s=null;for(zp={focusedElem:r,selectionRange:s},rc=!1,rn=a;rn!==null;)if(a=rn,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,rn=r;else for(;rn!==null;){switch(a=rn,y=a.alternate,r=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((r&1024)!==0&&y!==null){r=void 0,s=a,h=y.memoizedProps,y=y.memoizedState,c=s.stateNode;try{var Ae=ua(s.type,h,s.elementType===s.type);r=c.getSnapshotBeforeUpdate(Ae,y),c.__reactInternalSnapshotBeforeUpdate=r}catch(ze){bt(s,s.return,ze)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,s=r.nodeType,s===9)$p(r);else if(s===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":$p(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,rn=r;break}rn=a.return}return Ae=ov,ov=!1,Ae}function sv(r,a,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:ai(r,s),c&4&&Ns(5,s);break;case 1:if(ai(r,s),c&4)if(r=s.stateNode,a===null)try{r.componentDidMount()}catch(D){bt(s,s.return,D)}else{var h=ua(s.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(h,a,r.__reactInternalSnapshotBeforeUpdate)}catch(D){bt(s,s.return,D)}}c&64&&ev(s),c&512&&da(s,s.return);break;case 3:if(ai(r,s),c&64&&(c=s.updateQueue,c!==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{Jb(c,r)}catch(D){bt(s,s.return,D)}}break;case 26:ai(r,s),c&512&&da(s,s.return);break;case 27:case 5:ai(r,s),a===null&&c&4&&nv(s),c&512&&da(s,s.return);break;case 12:ai(r,s);break;case 13:ai(r,s),c&4&&cv(r,s);break;case 22:if(h=s.memoizedState!==null||ri,!h){a=a!==null&&a.memoizedState!==null||Nt;var y=ri,x=Nt;ri=h,(Nt=a)&&!x?Mi(r,s,(s.subtreeFlags&8772)!==0):ai(r,s),ri=y,Nt=x}c&512&&(s.memoizedProps.mode==="manual"?da(s,s.return):Un(s,s.return));break;default:ai(r,s)}}function lv(r){var a=r.alternate;a!==null&&(r.alternate=null,lv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Gf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Yt=null,Hn=!1;function ii(r,a,s){for(s=s.child;s!==null;)uv(r,a,s),s=s.sibling}function uv(r,a,s){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(_t,s)}catch{}switch(s.tag){case 26:Nt||Un(s,a),ii(r,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Nt||Un(s,a);var c=Yt,h=Hn;for(Yt=s.stateNode,ii(r,a,s),s=s.stateNode,a=s.attributes;a.length;)s.removeAttributeNode(a[0]);Gf(s),Yt=c,Hn=h;break;case 5:Nt||Un(s,a);case 6:h=Yt;var y=Hn;if(Yt=null,ii(r,a,s),Yt=h,Hn=y,Yt!==null)if(Hn)try{r=Yt,c=s.stateNode,r.nodeType===8?r.parentNode.removeChild(c):r.removeChild(c)}catch(x){bt(s,a,x)}else try{Yt.removeChild(s.stateNode)}catch(x){bt(s,a,x)}break;case 18:Yt!==null&&(Hn?(a=Yt,s=s.stateNode,a.nodeType===8?jp(a.parentNode,s):a.nodeType===1&&jp(a,s),Ws(a)):jp(Yt,s.stateNode));break;case 4:c=Yt,h=Hn,Yt=s.stateNode.containerInfo,Hn=!0,ii(r,a,s),Yt=c,Hn=h;break;case 0:case 11:case 14:case 15:Nt||Oi(2,s,a),Nt||Oi(4,s,a),ii(r,a,s);break;case 1:Nt||(Un(s,a),c=s.stateNode,typeof c.componentWillUnmount=="function"&&tv(s,a,c)),ii(r,a,s);break;case 21:ii(r,a,s);break;case 22:Nt||Un(s,a),Nt=(c=Nt)||s.memoizedState!==null,ii(r,a,s),Nt=c;break;default:ii(r,a,s)}}function cv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ws(r)}catch(s){bt(a,a.return,s)}}function fE(r){switch(r.tag){case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new av),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new av),a;default:throw Error(i(435,r.tag))}}function sp(r,a){var s=fE(r);a.forEach(function(c){var h=kE.bind(null,r,c);s.has(c)||(s.add(c),c.then(h,h))})}function rr(r,a){var s=a.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c],y=r,x=a,D=x;e:for(;D!==null;){switch(D.tag){case 27:case 5:Yt=D.stateNode,Hn=!1;break e;case 3:Yt=D.stateNode.containerInfo,Hn=!0;break e;case 4:Yt=D.stateNode.containerInfo,Hn=!0;break e}D=D.return}if(Yt===null)throw Error(i(160));uv(y,x,h),Yt=null,Hn=!1,y=h.alternate,y!==null&&(y.return=null),h.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)fv(a,r),a=a.sibling}var br=null;function fv(r,a){var s=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:rr(a,r),ir(r),c&4&&(Oi(3,r,r.return),Ns(3,r),Oi(5,r,r.return));break;case 1:rr(a,r),ir(r),c&512&&(Nt||s===null||Un(s,s.return)),c&64&&ri&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(s=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var h=br;if(rr(a,r),ir(r),c&512&&(Nt||s===null||Un(s,s.return)),c&4){var y=s!==null?s.memoizedState:null;if(c=r.memoizedState,s===null)if(c===null)if(r.stateNode===null){e:{c=r.type,s=r.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":y=h.getElementsByTagName("title")[0],(!y||y[is]||y[Vt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=h.createElement(c),h.head.insertBefore(y,h.querySelector("head > title"))),cn(y,c,s),y[Vt]=r,tn(y),c=y;break e;case"link":var x=n0("link","href",h).get(c+(s.href||""));if(x){for(var D=0;D<x.length;D++)if(y=x[D],y.getAttribute("href")===(s.href==null?null:s.href)&&y.getAttribute("rel")===(s.rel==null?null:s.rel)&&y.getAttribute("title")===(s.title==null?null:s.title)&&y.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(D,1);break t}}y=h.createElement(c),cn(y,c,s),h.head.appendChild(y);break;case"meta":if(x=n0("meta","content",h).get(c+(s.content||""))){for(D=0;D<x.length;D++)if(y=x[D],y.getAttribute("content")===(s.content==null?null:""+s.content)&&y.getAttribute("name")===(s.name==null?null:s.name)&&y.getAttribute("property")===(s.property==null?null:s.property)&&y.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&y.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(D,1);break t}}y=h.createElement(c),cn(y,c,s),h.head.appendChild(y);break;default:throw Error(i(468,c))}y[Vt]=r,tn(y),c=y}r.stateNode=c}else r0(h,r.type,r.stateNode);else r.stateNode=t0(h,c,r.memoizedProps);else y!==c?(y===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):y.count--,c===null?r0(h,r.type,r.stateNode):t0(h,c,r.memoizedProps)):c===null&&r.stateNode!==null&&rv(r,r.memoizedProps,s.memoizedProps)}break;case 27:if(c&4&&r.alternate===null){h=r.stateNode,y=r.memoizedProps;try{for(var z=h.firstChild;z;){var F=z.nextSibling,re=z.nodeName;z[is]||re==="HEAD"||re==="BODY"||re==="SCRIPT"||re==="STYLE"||re==="LINK"&&z.rel.toLowerCase()==="stylesheet"||h.removeChild(z),z=F}for(var ce=r.type,Q=h.attributes;Q.length;)h.removeAttributeNode(Q[0]);cn(h,ce,y),h[Vt]=r,h[On]=y}catch(Ae){bt(r,r.return,Ae)}}case 5:if(rr(a,r),ir(r),c&512&&(Nt||s===null||Un(s,s.return)),r.flags&32){h=r.stateNode;try{Pa(h,"")}catch(Ae){bt(r,r.return,Ae)}}c&4&&r.stateNode!=null&&(h=r.memoizedProps,rv(r,h,s!==null?s.memoizedProps:h)),c&1024&&(op=!0);break;case 6:if(rr(a,r),ir(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,s=r.stateNode;try{s.nodeValue=c}catch(Ae){bt(r,r.return,Ae)}}break;case 3:if(ec=null,h=br,br=Zu(a.containerInfo),rr(a,r),br=h,ir(r),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Ws(a.containerInfo)}catch(Ae){bt(r,r.return,Ae)}op&&(op=!1,dv(r));break;case 4:c=br,br=Zu(r.stateNode.containerInfo),rr(a,r),ir(r),br=c;break;case 12:rr(a,r),ir(r);break;case 13:rr(a,r),ir(r),r.child.flags&8192&&r.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(gp=rt()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,sp(r,c)));break;case 22:if(c&512&&(Nt||s===null||Un(s,s.return)),z=r.memoizedState!==null,F=s!==null&&s.memoizedState!==null,re=ri,ce=Nt,ri=re||z,Nt=ce||F,rr(a,r),Nt=ce,ri=re,ir(r),a=r.stateNode,a._current=r,a._visibility&=-3,a._visibility|=a._pendingVisibility&2,c&8192&&(a._visibility=z?a._visibility&-2:a._visibility|1,z&&(a=ri||Nt,s===null||F||a||ro(r)),r.memoizedProps===null||r.memoizedProps.mode!=="manual"))e:for(s=null,a=r;;){if(a.tag===5||a.tag===26||a.tag===27){if(s===null){F=s=a;try{if(h=F.stateNode,z)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{x=F.stateNode,D=F.memoizedProps.style;var ne=D!=null&&D.hasOwnProperty("display")?D.display:null;x.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Ae){bt(F,F.return,Ae)}}}else if(a.tag===6){if(s===null){F=a;try{F.stateNode.nodeValue=z?"":F.memoizedProps}catch(Ae){bt(F,F.return,Ae)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=r.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,sp(r,s))));break;case 19:rr(a,r),ir(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,sp(r,c)));break;case 21:break;default:rr(a,r),ir(r)}}function ir(r){var a=r.flags;if(a&2){try{if(r.tag!==27){e:{for(var s=r.return;s!==null;){if(iv(s)){var c=s;break e}s=s.return}throw Error(i(160))}switch(c.tag){case 27:var h=c.stateNode,y=ip(r);Iu(r,y,h);break;case 5:var x=c.stateNode;c.flags&32&&(Pa(x,""),c.flags&=-33);var D=ip(r);Iu(r,D,x);break;case 3:case 4:var z=c.stateNode.containerInfo,F=ip(r);ap(r,F,z);break;default:throw Error(i(161))}}}catch(re){bt(r,r.return,re)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function dv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;dv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function ai(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)sv(r,a.alternate,a),a=a.sibling}function ro(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Oi(4,a,a.return),ro(a);break;case 1:Un(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&tv(a,a.return,s),ro(a);break;case 26:case 27:case 5:Un(a,a.return),ro(a);break;case 22:Un(a,a.return),a.memoizedState===null&&ro(a);break;default:ro(a)}r=r.sibling}}function Mi(r,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,h=r,y=a,x=y.flags;switch(y.tag){case 0:case 11:case 15:Mi(h,y,s),Ns(4,y);break;case 1:if(Mi(h,y,s),c=y,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(F){bt(c,c.return,F)}if(c=y,h=c.updateQueue,h!==null){var D=c.stateNode;try{var z=h.shared.hiddenCallbacks;if(z!==null)for(h.shared.hiddenCallbacks=null,h=0;h<z.length;h++)Zb(z[h],D)}catch(F){bt(c,c.return,F)}}s&&x&64&&ev(y),da(y,y.return);break;case 26:case 27:case 5:Mi(h,y,s),s&&c===null&&x&4&&nv(y),da(y,y.return);break;case 12:Mi(h,y,s);break;case 13:Mi(h,y,s),s&&x&4&&cv(h,y);break;case 22:y.memoizedState===null&&Mi(h,y,s),da(y,y.return);break;default:Mi(h,y,s)}a=a.sibling}}function lp(r,a){var s=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(r!=null&&r.refCount++,s!=null&&xs(s))}function up(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&xs(r))}function Ni(r,a,s,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)pv(r,a,s,c),a=a.sibling}function pv(r,a,s,c){var h=a.flags;switch(a.tag){case 0:case 11:case 15:Ni(r,a,s,c),h&2048&&Ns(9,a);break;case 3:Ni(r,a,s,c),h&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&xs(r)));break;case 12:if(h&2048){Ni(r,a,s,c),r=a.stateNode;try{var y=a.memoizedProps,x=y.id,D=y.onPostCommit;typeof D=="function"&&D(x,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(z){bt(a,a.return,z)}}else Ni(r,a,s,c);break;case 23:break;case 22:y=a.stateNode,a.memoizedState!==null?y._visibility&4?Ni(r,a,s,c):Ds(r,a):y._visibility&4?Ni(r,a,s,c):(y._visibility|=4,io(r,a,s,c,(a.subtreeFlags&10256)!==0)),h&2048&&lp(a.alternate,a);break;case 24:Ni(r,a,s,c),h&2048&&up(a.alternate,a);break;default:Ni(r,a,s,c)}}function io(r,a,s,c,h){for(h=h&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var y=r,x=a,D=s,z=c,F=x.flags;switch(x.tag){case 0:case 11:case 15:io(y,x,D,z,h),Ns(8,x);break;case 23:break;case 22:var re=x.stateNode;x.memoizedState!==null?re._visibility&4?io(y,x,D,z,h):Ds(y,x):(re._visibility|=4,io(y,x,D,z,h)),h&&F&2048&&lp(x.alternate,x);break;case 24:io(y,x,D,z,h),h&&F&2048&&up(x.alternate,x);break;default:io(y,x,D,z,h)}a=a.sibling}}function Ds(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=r,c=a,h=c.flags;switch(c.tag){case 22:Ds(s,c),h&2048&&lp(c.alternate,c);break;case 24:Ds(s,c),h&2048&&up(c.alternate,c);break;default:Ds(s,c)}a=a.sibling}}var Ls=8192;function ao(r){if(r.subtreeFlags&Ls)for(r=r.child;r!==null;)hv(r),r=r.sibling}function hv(r){switch(r.tag){case 26:ao(r),r.flags&Ls&&r.memoizedState!==null&&JE(br,r.memoizedState,r.memoizedProps);break;case 5:ao(r);break;case 3:case 4:var a=br;br=Zu(r.stateNode.containerInfo),ao(r),br=a;break;case 22:r.memoizedState===null&&(a=r.alternate,a!==null&&a.memoizedState!==null?(a=Ls,Ls=16777216,ao(r),Ls=a):ao(r));break;default:ao(r)}}function mv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function zs(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var c=a[s];rn=c,yv(c,r)}mv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)gv(r),r=r.sibling}function gv(r){switch(r.tag){case 0:case 11:case 15:zs(r),r.flags&2048&&Oi(9,r,r.return);break;case 3:zs(r);break;case 12:zs(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&4&&(r.return===null||r.return.tag!==13)?(a._visibility&=-5,ju(r)):zs(r);break;default:zs(r)}}function ju(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var c=a[s];rn=c,yv(c,r)}mv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Oi(8,a,a.return),ju(a);break;case 22:s=a.stateNode,s._visibility&4&&(s._visibility&=-5,ju(a));break;default:ju(a)}r=r.sibling}}function yv(r,a){for(;rn!==null;){var s=rn;switch(s.tag){case 0:case 11:case 15:Oi(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:xs(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,rn=c;else e:for(s=r;rn!==null;){c=rn;var h=c.sibling,y=c.return;if(lv(c),c===s){rn=null;break e}if(h!==null){h.return=y,rn=h;break e}rn=y}}}function dE(r,a,s,c){this.tag=r,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=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(r,a,s,c){return new dE(r,a,s,c)}function cp(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Di(r,a){var s=r.alternate;return s===null?(s=ar(r.tag,a,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s.alternate=r,r.alternate=s):(s.pendingProps=a,s.type=r.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=r.flags&31457280,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue,a=r.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.refCleanup=r.refCleanup,s}function bv(r,a){r.flags&=31457282;var s=r.alternate;return s===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type,a=s.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function $u(r,a,s,c,h,y){var x=0;if(c=r,typeof r=="function")cp(r)&&(x=1);else if(typeof r=="string")x=QE(r,s,we.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case d:return pa(s.children,h,y,a);case p:x=8,h|=24;break;case m:return r=ar(12,s,a,h|2),r.elementType=m,r.lanes=y,r;case S:return r=ar(13,s,a,h),r.elementType=S,r.lanes=y,r;case k:return r=ar(19,s,a,h),r.elementType=k,r.lanes=y,r;case _:return vv(s,h,y,a);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case g:case b:x=10;break e;case v:x=9;break e;case w:x=11;break e;case A:x=14;break e;case N:x=16,c=null;break e}x=29,s=Error(i(130,r===null?"null":typeof r,"")),c=null}return a=ar(x,s,a,h),a.elementType=r,a.type=c,a.lanes=y,a}function pa(r,a,s,c){return r=ar(7,r,c,a),r.lanes=s,r}function vv(r,a,s,c){r=ar(22,r,c,a),r.elementType=_,r.lanes=s;var h={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var y=h._current;if(y===null)throw Error(i(456));if((h._pendingVisibility&2)===0){var x=wi(y,2);x!==null&&(h._pendingVisibility|=2,xn(x,y,2))}},attach:function(){var y=h._current;if(y===null)throw Error(i(456));if((h._pendingVisibility&2)!==0){var x=wi(y,2);x!==null&&(h._pendingVisibility&=-3,xn(x,y,2))}}};return r.stateNode=h,r}function fp(r,a,s){return r=ar(6,r,null,a),r.lanes=s,r}function dp(r,a,s){return a=ar(4,r.children!==null?r.children:[],r.key,a),a.lanes=s,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}function oi(r){r.flags|=4}function Sv(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!i0(a)){if(a=nr.current,a!==null&&((et&4194176)===et?Mr!==null:(et&62914560)!==et&&(et&536870912)===0||a!==Mr))throw vs=yd,Iy;r.flags|=8192}}function Pu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?jn():536870912,r.lanes|=a,so|=a)}function Bs(r,a){if(!at)switch(r.tailMode){case"hidden":a=r.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?r.tail=null:s.sibling=null;break;case"collapsed":s=r.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function Ot(r){var a=r.alternate!==null&&r.alternate.child===r.child,s=0,c=0;if(a)for(var h=r.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&31457280,c|=h.flags&31457280,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=c,r.childLanes=s,a}function pE(r,a,s){var c=a.pendingProps;switch(md(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(a),null;case 1:return Ot(a),null;case 3:return s=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ni(Zt),Ze(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(r===null||r.child===null)&&(ms(a)?oi(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,yr!==null&&(Sp(yr),yr=null))),Ot(a),null;case 26:return s=a.memoizedState,r===null?(oi(a),s!==null?(Ot(a),Sv(a,s)):(Ot(a),a.flags&=-16777217)):s?s!==r.memoizedState?(oi(a),Ot(a),Sv(a,s)):(Ot(a),a.flags&=-16777217):(r.memoizedProps!==c&&oi(a),Ot(a),a.flags&=-16777217),null;case 27:Je(a),s=$e.current;var h=a.type;if(r!==null&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return Ot(a),null}r=we.current,ms(a)?zy(a):(r=Wv(h,c,s),a.stateNode=r,oi(a))}return Ot(a),null;case 5:if(Je(a),s=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return Ot(a),null}if(r=we.current,ms(a))zy(a);else{switch(h=Qu($e.current),r){case 1:r=h.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:r=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":r=h.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":r=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":r=h.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof c.is=="string"?h.createElement("select",{is:c.is}):h.createElement("select"),c.multiple?r.multiple=!0:c.size&&(r.size=c.size);break;default:r=typeof c.is=="string"?h.createElement(s,{is:c.is}):h.createElement(s)}}r[Vt]=a,r[On]=c;e:for(h=a.child;h!==null;){if(h.tag===5||h.tag===6)r.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===a)break e;for(;h.sibling===null;){if(h.return===null||h.return===a)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}a.stateNode=r;e:switch(cn(r,s,c),s){case"button":case"input":case"select":case"textarea":r=!!c.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&oi(a)}}return Ot(a),a.flags&=-16777217,null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=$e.current,ms(a)){if(r=a.stateNode,s=a.memoizedProps,c=null,h=wn,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}r[Vt]=a,r=!!(r.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||Fv(r.nodeValue,s)),r||ra(a)}else r=Qu(r).createTextNode(c),r[Vt]=a,a.stateNode=r}return Ot(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(h=ms(a),c!==null&&c.dehydrated!==null){if(r===null){if(!h)throw Error(i(318));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[Vt]=a}else gs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ot(a),h=!1}else yr!==null&&(Sp(yr),yr=null),h=!0;if(!h)return a.flags&256?(Zr(a),a):(Zr(a),null)}if(Zr(a),(a.flags&128)!==0)return a.lanes=s,a;if(s=c!==null,r=r!==null&&r.memoizedState!==null,s){c=a.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool);var y=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==h&&(c.flags|=2048)}return s!==r&&s&&(a.child.flags|=8192),Pu(a,a.updateQueue),Ot(a),null;case 4:return Ze(),r===null&&Mp(a.stateNode.containerInfo),Ot(a),null;case 10:return ni(a.type),Ot(a),null;case 19:if(ye(Qt),h=a.memoizedState,h===null)return Ot(a),null;if(c=(a.flags&128)!==0,y=h.rendering,y===null)if(c)Bs(h,!1);else{if(Dt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(y=Cu(r),y!==null){for(a.flags|=128,Bs(h,!1),r=y.updateQueue,a.updateQueue=r,Pu(a,r),a.subtreeFlags=0,r=s,s=a.child;s!==null;)bv(s,r),s=s.sibling;return le(Qt,Qt.current&1|2),a.child}r=r.sibling}h.tail!==null&&rt()>Uu&&(a.flags|=128,c=!0,Bs(h,!1),a.lanes=4194304)}else{if(!c)if(r=Cu(y),r!==null){if(a.flags|=128,c=!0,r=r.updateQueue,a.updateQueue=r,Pu(a,r),Bs(h,!0),h.tail===null&&h.tailMode==="hidden"&&!y.alternate&&!at)return Ot(a),null}else 2*rt()-h.renderingStartTime>Uu&&s!==536870912&&(a.flags|=128,c=!0,Bs(h,!1),a.lanes=4194304);h.isBackwards?(y.sibling=a.child,a.child=y):(r=h.last,r!==null?r.sibling=y:a.child=y,h.last=y)}return h.tail!==null?(a=h.tail,h.rendering=a,h.tail=a.sibling,h.renderingStartTime=rt(),a.sibling=null,r=Qt.current,le(Qt,c?r&1|2:r&1),a):(Ot(a),null);case 22:case 23:return Zr(a),vd(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(s&536870912)!==0&&(a.flags&128)===0&&(Ot(a),a.subtreeFlags&6&&(a.flags|=8192)):Ot(a),s=a.updateQueue,s!==null&&Pu(a,s.retryQueue),s=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==s&&(a.flags|=2048),r!==null&&ye(aa),null;case 24:return s=null,r!==null&&(s=r.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),ni(Zt),Ot(a),null;case 25:return null}throw Error(i(156,a.tag))}function hE(r,a){switch(md(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return ni(Zt),Ze(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Je(a),null;case 13:if(Zr(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));gs()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return ye(Qt),null;case 4:return Ze(),null;case 10:return ni(a.type),null;case 22:case 23:return Zr(a),vd(),r!==null&&ye(aa),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return ni(Zt),null;case 25:return null;default:return null}}function wv(r,a){switch(md(a),a.tag){case 3:ni(Zt),Ze();break;case 26:case 27:case 5:Je(a);break;case 4:Ze();break;case 13:Zr(a);break;case 19:ye(Qt);break;case 10:ni(a.type);break;case 22:case 23:Zr(a),vd(),r!==null&&ye(aa);break;case 24:ni(Zt)}}var mE={getCacheForType:function(r){var a=mn(Zt),s=a.data.get(r);return s===void 0&&(s=r(),a.data.set(r,s)),s}},gE=typeof WeakMap=="function"?WeakMap:Map,Mt=0,wt=null,Ge=null,et=0,xt=0,qn=null,si=!1,oo=!1,pp=!1,li=0,Dt=0,Li=0,ha=0,hp=0,or=0,so=0,Is=null,Dr=null,mp=!1,gp=0,Uu=1/0,Hu=null,zi=null,qu=!1,ma=null,js=0,yp=0,bp=null,$s=0,vp=null;function Fn(){if((Mt&2)!==0&&et!==0)return et&-et;if(P.T!==null){var r=Za;return r!==0?r:Ap()}return vi()}function xv(){or===0&&(or=(et&536870912)===0||at?hn():536870912);var r=nr.current;return r!==null&&(r.flags|=32),or}function xn(r,a,s){(r===wt&&xt===2||r.cancelPendingCommit!==null)&&(lo(r,0),ui(r,et,or,!1)),Rt(r,s),((Mt&2)===0||r!==wt)&&(r===wt&&((Mt&2)===0&&(ha|=s),Dt===4&&ui(r,et,or,!1)),Lr(r))}function Cv(r,a,s){if((Mt&6)!==0)throw Error(i(327));var c=!s&&(a&60)===0&&(a&r.expiredLanes)===0||An(r,a),h=c?vE(r,a):Cp(r,a,!0),y=c;do{if(h===0){oo&&!c&&ui(r,a,0,!1);break}else if(h===6)ui(r,a,0,!si);else{if(s=r.current.alternate,y&&!yE(s)){h=Cp(r,a,!1),y=!1;continue}if(h===2){if(y=a,r.errorRecoveryDisabledLanes&y)var x=0;else x=r.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;e:{var D=r;h=Is;var z=D.current.memoizedState.isDehydrated;if(z&&(lo(D,x).flags|=256),x=Cp(D,x,!1),x!==2){if(pp&&!z){D.errorRecoveryDisabledLanes|=y,ha|=y,h=4;break e}y=Dr,Dr=h,y!==null&&Sp(y)}h=x}if(y=!1,h!==2)continue}}if(h===1){lo(r,0),ui(r,a,0,!0);break}e:{switch(c=r,h){case 0:case 1:throw Error(i(345));case 4:if((a&4194176)===a){ui(c,a,or,!si);break e}break;case 2:Dr=null;break;case 3:case 5:break;default:throw Error(i(329))}if(c.finishedWork=s,c.finishedLanes=a,(a&62914560)===a&&(y=gp+300-rt(),10<y)){if(ui(c,a,or,!si),en(c,0)!==0)break e;c.timeoutHandle=Kv(kv.bind(null,c,s,Dr,Hu,mp,a,or,ha,so,si,2,-0,0),y);break e}kv(c,s,Dr,Hu,mp,a,or,ha,so,si,0,-0,0)}}break}while(!0);Lr(r)}function Sp(r){Dr===null?Dr=r:Dr.push.apply(Dr,r)}function kv(r,a,s,c,h,y,x,D,z,F,re,ce,Q){var ne=a.subtreeFlags;if((ne&8192||(ne&16785408)===16785408)&&(Vs={stylesheets:null,count:0,unsuspend:ZE},hv(a),a=eT(),a!==null)){r.cancelPendingCommit=a(Mv.bind(null,r,s,c,h,x,D,z,1,ce,Q)),ui(r,y,x,!F);return}Mv(r,s,c,h,x,D,z,re,ce,Q)}function yE(r){for(var a=r;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var h=s[c],y=h.getSnapshot;h=h.value;try{if(!Pn(y(),h))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ui(r,a,s,c){a&=~hp,a&=~ha,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var h=a;0<h;){var y=31-Ue(h),x=1<<y;c[y]=-1,h&=~x}s!==0&&$n(r,s,a)}function Fu(){return(Mt&6)===0?(Ps(0),!1):!0}function wp(){if(Ge!==null){if(xt===0)var r=Ge.return;else r=Ge,ti=ca=null,Ad(r),Wa=null,Ss=0,r=Ge;for(;r!==null;)wv(r.alternate,r),r=r.return;Ge=null}}function lo(r,a){r.finishedWork=null,r.finishedLanes=0;var s=r.timeoutHandle;s!==-1&&(r.timeoutHandle=-1,BE(s)),s=r.cancelPendingCommit,s!==null&&(r.cancelPendingCommit=null,s()),wp(),wt=r,Ge=s=Di(r.current,null),et=a,xt=0,qn=null,si=!1,oo=An(r,a),pp=!1,so=or=hp=ha=Li=Dt=0,Dr=Is=null,mp=!1,(a&8)!==0&&(a|=a&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=a;0<c;){var h=31-Ue(c),y=1<<h;a|=r[h],c&=~y}return li=a,hu(),s}function Ev(r,a){He=null,P.H=Nr,a===bs?(a=Py(),xt=3):a===Iy?(a=Py(),xt=4):xt=a===jb?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,qn=a,Ge===null&&(Dt=1,Lu(r,Jn(a,r.current)))}function Tv(){var r=P.H;return P.H=Nr,r===null?Nr:r}function Av(){var r=P.A;return P.A=mE,r}function xp(){Dt=4,si||(et&4194176)!==et&&nr.current!==null||(oo=!0),(Li&134217727)===0&&(ha&134217727)===0||wt===null||ui(wt,et,or,!1)}function Cp(r,a,s){var c=Mt;Mt|=2;var h=Tv(),y=Av();(wt!==r||et!==a)&&(Hu=null,lo(r,a)),a=!1;var x=Dt;e:do try{if(xt!==0&&Ge!==null){var D=Ge,z=qn;switch(xt){case 8:wp(),x=6;break e;case 3:case 2:case 6:nr.current===null&&(a=!0);var F=xt;if(xt=0,qn=null,uo(r,D,z,F),s&&oo){x=0;break e}break;default:F=xt,xt=0,qn=null,uo(r,D,z,F)}}bE(),x=Dt;break}catch(re){Ev(r,re)}while(!0);return a&&r.shellSuspendCounter++,ti=ca=null,Mt=c,P.H=h,P.A=y,Ge===null&&(wt=null,et=0,hu()),x}function bE(){for(;Ge!==null;)_v(Ge)}function vE(r,a){var s=Mt;Mt|=2;var c=Tv(),h=Av();wt!==r||et!==a?(Hu=null,Uu=rt()+500,lo(r,a)):oo=An(r,a);e:do try{if(xt!==0&&Ge!==null){a=Ge;var y=qn;t:switch(xt){case 1:xt=0,qn=null,uo(r,a,y,1);break;case 2:if(jy(y)){xt=0,qn=null,Rv(a);break}a=function(){xt===2&&wt===r&&(xt=7),Lr(r)},y.then(a,a);break e;case 3:xt=7;break e;case 4:xt=5;break e;case 7:jy(y)?(xt=0,qn=null,Rv(a)):(xt=0,qn=null,uo(r,a,y,7));break;case 5:var x=null;switch(Ge.tag){case 26:x=Ge.memoizedState;case 5:case 27:var D=Ge;if(!x||i0(x)){xt=0,qn=null;var z=D.sibling;if(z!==null)Ge=z;else{var F=D.return;F!==null?(Ge=F,Vu(F)):Ge=null}break t}}xt=0,qn=null,uo(r,a,y,5);break;case 6:xt=0,qn=null,uo(r,a,y,6);break;case 8:wp(),Dt=6;break e;default:throw Error(i(462))}}SE();break}catch(re){Ev(r,re)}while(!0);return ti=ca=null,P.H=c,P.A=h,Mt=s,Ge!==null?0:(wt=null,et=0,hu(),Dt)}function SE(){for(;Ge!==null&&!Se();)_v(Ge)}function _v(r){var a=Wb(r.alternate,r,li);r.memoizedProps=r.pendingProps,a===null?Vu(r):Ge=a}function Rv(r){var a=r,s=a.alternate;switch(a.tag){case 15:case 0:a=Fb(s,a,a.pendingProps,a.type,void 0,et);break;case 11:a=Fb(s,a,a.pendingProps,a.type.render,a.ref,et);break;case 5:Ad(a);default:wv(s,a),a=Ge=bv(a,li),a=Wb(s,a,li)}r.memoizedProps=r.pendingProps,a===null?Vu(r):Ge=a}function uo(r,a,s,c){ti=ca=null,Ad(a),Wa=null,Ss=0;var h=a.return;try{if(lE(r,h,a,s,et)){Dt=1,Lu(r,Jn(s,r.current)),Ge=null;return}}catch(y){if(h!==null)throw Ge=h,y;Dt=1,Lu(r,Jn(s,r.current)),Ge=null;return}a.flags&32768?(at||c===1?r=!0:oo||(et&536870912)!==0?r=!1:(si=r=!0,(c===2||c===3||c===6)&&(c=nr.current,c!==null&&c.tag===13&&(c.flags|=16384))),Ov(a,r)):Vu(a)}function Vu(r){var a=r;do{if((a.flags&32768)!==0){Ov(a,si);return}r=a.return;var s=pE(a.alternate,a,li);if(s!==null){Ge=s;return}if(a=a.sibling,a!==null){Ge=a;return}Ge=a=r}while(a!==null);Dt===0&&(Dt=5)}function Ov(r,a){do{var s=hE(r.alternate,r);if(s!==null){s.flags&=32767,Ge=s;return}if(s=r.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(r=r.sibling,r!==null)){Ge=r;return}Ge=r=s}while(r!==null);Dt=6,Ge=null}function Mv(r,a,s,c,h,y,x,D,z,F){var re=P.T,ce=ie.p;try{ie.p=2,P.T=null,wE(r,a,s,c,ce,h,y,x,D,z,F)}finally{P.T=re,ie.p=ce}}function wE(r,a,s,c,h,y,x,D){do co();while(ma!==null);if((Mt&6)!==0)throw Error(i(327));var z=r.finishedWork;if(c=r.finishedLanes,z===null)return null;if(r.finishedWork=null,r.finishedLanes=0,z===r.current)throw Error(i(177));r.callbackNode=null,r.callbackPriority=0,r.cancelPendingCommit=null;var F=z.lanes|z.childLanes;if(F|=dd,_r(r,c,F,y,x,D),r===wt&&(Ge=wt=null,et=0),(z.subtreeFlags&10256)===0&&(z.flags&10256)===0||qu||(qu=!0,yp=F,bp=s,EE(he,function(){return co(),null})),s=(z.flags&15990)!==0,(z.subtreeFlags&15990)!==0||s?(s=P.T,P.T=null,y=ie.p,ie.p=2,x=Mt,Mt|=4,cE(r,z),fv(z,r),Vk(zp,r.containerInfo),rc=!!Lp,zp=Lp=null,r.current=z,sv(r,z.alternate,z),pn(),Mt=x,ie.p=y,P.T=s):r.current=z,qu?(qu=!1,ma=r,js=c):Nv(r,F),F=r.pendingLanes,F===0&&(zi=null),Ee(z.stateNode),Lr(r),a!==null)for(h=r.onRecoverableError,z=0;z<a.length;z++)F=a[z],h(F.value,{componentStack:F.stack});return(js&3)!==0&&co(),F=r.pendingLanes,(c&4194218)!==0&&(F&42)!==0?r===vp?$s++:($s=0,vp=r):$s=0,Ps(0),null}function Nv(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,xs(a)))}function co(){if(ma!==null){var r=ma,a=yp;yp=0;var s=bi(js),c=P.T,h=ie.p;try{if(ie.p=32>s?32:s,P.T=null,ma===null)var y=!1;else{s=bp,bp=null;var x=ma,D=js;if(ma=null,js=0,(Mt&6)!==0)throw Error(i(331));var z=Mt;if(Mt|=4,gv(x.current),pv(x,x.current,D,s),Mt=z,Ps(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(_t,x)}catch{}y=!0}return y}finally{ie.p=h,P.T=c,Nv(r,a)}}return!1}function Dv(r,a,s){a=Jn(s,a),a=Ud(r.stateNode,a,2),r=Ri(r,a,2),r!==null&&(Rt(r,2),Lr(r))}function bt(r,a,s){if(r.tag===3)Dv(r,r,s);else for(;a!==null;){if(a.tag===3){Dv(a,r,s);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(zi===null||!zi.has(c))){r=Jn(s,r),s=Bb(2),c=Ri(a,s,2),c!==null&&(Ib(s,c,a,r),Rt(c,2),Lr(c));break}}a=a.return}}function kp(r,a,s){var c=r.pingCache;if(c===null){c=r.pingCache=new gE;var h=new Set;c.set(a,h)}else h=c.get(a),h===void 0&&(h=new Set,c.set(a,h));h.has(s)||(pp=!0,h.add(s),r=xE.bind(null,r,a,s),a.then(r,r))}function xE(r,a,s){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&s,r.warmLanes&=~s,wt===r&&(et&s)===s&&(Dt===4||Dt===3&&(et&62914560)===et&&300>rt()-gp?(Mt&2)===0&&lo(r,0):hp|=s,so===et&&(so=0)),Lr(r)}function Lv(r,a){a===0&&(a=jn()),r=wi(r,a),r!==null&&(Rt(r,a),Lr(r))}function CE(r){var a=r.memoizedState,s=0;a!==null&&(s=a.retryLane),Lv(r,s)}function kE(r,a){var s=0;switch(r.tag){case 13:var c=r.stateNode,h=r.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),Lv(r,s)}function EE(r,a){return tt(r,a)}var Gu=null,fo=null,Ep=!1,Ku=!1,Tp=!1,ga=0;function Lr(r){r!==fo&&r.next===null&&(fo===null?Gu=fo=r:fo=fo.next=r),Ku=!0,Ep||(Ep=!0,AE(TE))}function Ps(r,a){if(!Tp&&Ku){Tp=!0;do for(var s=!1,c=Gu;c!==null;){if(r!==0){var h=c.pendingLanes;if(h===0)var y=0;else{var x=c.suspendedLanes,D=c.pingedLanes;y=(1<<31-Ue(42|r)+1)-1,y&=h&~(x&~D),y=y&201326677?y&201326677|1:y?y|2:0}y!==0&&(s=!0,Iv(c,y))}else y=et,y=en(c,c===wt?y:0),(y&3)===0||An(c,y)||(s=!0,Iv(c,y));c=c.next}while(s);Tp=!1}}function TE(){Ku=Ep=!1;var r=0;ga!==0&&(zE()&&(r=ga),ga=0);for(var a=rt(),s=null,c=Gu;c!==null;){var h=c.next,y=zv(c,a);y===0?(c.next=null,s===null?Gu=h:s.next=h,h===null&&(fo=s)):(s=c,(r!==0||(y&3)!==0)&&(Ku=!0)),c=h}Ps(r)}function zv(r,a){for(var s=r.suspendedLanes,c=r.pingedLanes,h=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;){var x=31-Ue(y),D=1<<x,z=h[x];z===-1?((D&s)===0||(D&c)!==0)&&(h[x]=_n(D,a)):z<=a&&(r.expiredLanes|=D),y&=~D}if(a=wt,s=et,s=en(r,r===a?s:0),c=r.callbackNode,s===0||r===a&&xt===2||r.cancelPendingCommit!==null)return c!==null&&c!==null&&nt(c),r.callbackNode=null,r.callbackPriority=0;if((s&3)===0||An(r,s)){if(a=s&-s,a===r.callbackPriority)return a;switch(c!==null&&nt(c),bi(s)){case 2:case 8:s=se;break;case 32:s=he;break;case 268435456:s=De;break;default:s=he}return c=Bv.bind(null,r),s=tt(s,c),r.callbackPriority=a,r.callbackNode=s,a}return c!==null&&c!==null&&nt(c),r.callbackPriority=2,r.callbackNode=null,2}function Bv(r,a){var s=r.callbackNode;if(co()&&r.callbackNode!==s)return null;var c=et;return c=en(r,r===wt?c:0),c===0?null:(Cv(r,c,a),zv(r,rt()),r.callbackNode!=null&&r.callbackNode===s?Bv.bind(null,r):null)}function Iv(r,a){if(co())return null;Cv(r,a,!0)}function AE(r){IE(function(){(Mt&6)!==0?tt(ee,r):r()})}function Ap(){return ga===0&&(ga=hn()),ga}function jv(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:su(""+r)}function $v(r,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,r.id&&s.setAttribute("form",r.id),a.parentNode.insertBefore(s,a),r=new FormData(r),s.parentNode.removeChild(s),r}function _E(r,a,s,c,h){if(a==="submit"&&s&&s.stateNode===h){var y=jv((h[On]||null).action),x=c.submitter;x&&(a=(a=x[On]||null)?jv(a.formAction):x.getAttribute("formAction"),a!==null&&(y=a,x=null));var D=new fu("action","action",null,c,h);r.push({event:D,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ga!==0){var z=x?$v(h,x):new FormData(h);Bd(s,{pending:!0,data:z,method:h.method,action:y},null,z)}}else typeof y=="function"&&(D.preventDefault(),z=x?$v(h,x):new FormData(h),Bd(s,{pending:!0,data:z,method:h.method,action:y},y,z))},currentTarget:h}]})}}for(var _p=0;_p<My.length;_p++){var Rp=My[_p],RE=Rp.toLowerCase(),OE=Rp[0].toUpperCase()+Rp.slice(1);gr(RE,"on"+OE)}gr(Ty,"onAnimationEnd"),gr(Ay,"onAnimationIteration"),gr(_y,"onAnimationStart"),gr("dblclick","onDoubleClick"),gr("focusin","onFocus"),gr("focusout","onBlur"),gr(Kk,"onTransitionRun"),gr(Yk,"onTransitionStart"),gr(Xk,"onTransitionCancel"),gr(Ry,"onTransitionEnd"),ja("onMouseEnter",["mouseout","mouseover"]),ja("onMouseLeave",["mouseout","mouseover"]),ja("onPointerEnter",["pointerout","pointerover"]),ja("onPointerLeave",["pointerout","pointerover"]),Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Us="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(" "),ME=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Us));function Pv(r,a){a=(a&4)!==0;for(var s=0;s<r.length;s++){var c=r[s],h=c.event;c=c.listeners;e:{var y=void 0;if(a)for(var x=c.length-1;0<=x;x--){var D=c[x],z=D.instance,F=D.currentTarget;if(D=D.listener,z!==y&&h.isPropagationStopped())break e;y=D,h.currentTarget=F;try{y(h)}catch(re){Du(re)}h.currentTarget=null,y=z}else for(x=0;x<c.length;x++){if(D=c[x],z=D.instance,F=D.currentTarget,D=D.listener,z!==y&&h.isPropagationStopped())break e;y=D,h.currentTarget=F;try{y(h)}catch(re){Du(re)}h.currentTarget=null,y=z}}}}function We(r,a){var s=a[Vf];s===void 0&&(s=a[Vf]=new Set);var c=r+"__bubble";s.has(c)||(Uv(a,r,2,!1),s.add(c))}function Op(r,a,s){var c=0;a&&(c|=4),Uv(s,r,c,a)}var Yu="_reactListening"+Math.random().toString(36).slice(2);function Mp(r){if(!r[Yu]){r[Yu]=!0,Fg.forEach(function(s){s!=="selectionchange"&&(ME.has(s)||Op(s,!1,r),Op(s,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Yu]||(a[Yu]=!0,Op("selectionchange",!1,a))}}function Uv(r,a,s,c){switch(c0(a)){case 2:var h=rT;break;case 8:h=iT;break;default:h=Fp}s=h.bind(null,a,s,r),h=void 0,!Jf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(h=!0),c?h!==void 0?r.addEventListener(a,s,{capture:!0,passive:h}):r.addEventListener(a,s,!0):h!==void 0?r.addEventListener(a,s,{passive:h}):r.addEventListener(a,s,!1)}function Np(r,a,s,c,h){var y=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var D=c.stateNode.containerInfo;if(D===h||D.nodeType===8&&D.parentNode===h)break;if(x===4)for(x=c.return;x!==null;){var z=x.tag;if((z===3||z===4)&&(z=x.stateNode.containerInfo,z===h||z.nodeType===8&&z.parentNode===h))return;x=x.return}for(;D!==null;){if(x=Wi(D),x===null)return;if(z=x.tag,z===5||z===6||z===26||z===27){c=y=x;continue e}D=D.parentNode}}c=c.return}ny(function(){var F=y,re=Qf(s),ce=[];e:{var Q=Oy.get(r);if(Q!==void 0){var ne=fu,Ae=r;switch(r){case"keypress":if(uu(s)===0)break e;case"keydown":case"keyup":ne=kk;break;case"focusin":Ae="focus",ne=rd;break;case"focusout":Ae="blur",ne=rd;break;case"beforeblur":case"afterblur":ne=rd;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":ne=ay;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=dk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=Ak;break;case Ty:case Ay:case _y:ne=mk;break;case Ry:ne=Rk;break;case"scroll":case"scrollend":ne=ck;break;case"wheel":ne=Mk;break;case"copy":case"cut":case"paste":ne=yk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=sy;break;case"toggle":case"beforetoggle":ne=Dk}var ze=(a&4)!==0,Lt=!ze&&(r==="scroll"||r==="scrollend"),K=ze?Q!==null?Q+"Capture":null:Q;ze=[];for(var q=F,W;q!==null;){var oe=q;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||K===null||(oe=os(q,K),oe!=null&&ze.push(Hs(q,oe,W))),Lt)break;q=q.return}0<ze.length&&(Q=new ne(Q,Ae,null,s,re),ce.push({event:Q,listeners:ze}))}}if((a&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",ne=r==="mouseout"||r==="pointerout",Q&&s!==Wf&&(Ae=s.relatedTarget||s.fromElement)&&(Wi(Ae)||Ae[za]))break e;if((ne||Q)&&(Q=re.window===re?re:(Q=re.ownerDocument)?Q.defaultView||Q.parentWindow:window,ne?(Ae=s.relatedTarget||s.toElement,ne=F,Ae=Ae?Wi(Ae):null,Ae!==null&&(Lt=ae(Ae),ze=Ae.tag,Ae!==Lt||ze!==5&&ze!==27&&ze!==6)&&(Ae=null)):(ne=null,Ae=F),ne!==Ae)){if(ze=ay,oe="onMouseLeave",K="onMouseEnter",q="mouse",(r==="pointerout"||r==="pointerover")&&(ze=sy,oe="onPointerLeave",K="onPointerEnter",q="pointer"),Lt=ne==null?Q:as(ne),W=Ae==null?Q:as(Ae),Q=new ze(oe,q+"leave",ne,s,re),Q.target=Lt,Q.relatedTarget=W,oe=null,Wi(re)===F&&(ze=new ze(K,q+"enter",Ae,s,re),ze.target=W,ze.relatedTarget=Lt,oe=ze),Lt=oe,ne&&Ae)t:{for(ze=ne,K=Ae,q=0,W=ze;W;W=po(W))q++;for(W=0,oe=K;oe;oe=po(oe))W++;for(;0<q-W;)ze=po(ze),q--;for(;0<W-q;)K=po(K),W--;for(;q--;){if(ze===K||K!==null&&ze===K.alternate)break t;ze=po(ze),K=po(K)}ze=null}else ze=null;ne!==null&&Hv(ce,Q,ne,ze,!1),Ae!==null&&Lt!==null&&Hv(ce,Lt,Ae,ze,!0)}}e:{if(Q=F?as(F):window,ne=Q.nodeName&&Q.nodeName.toLowerCase(),ne==="select"||ne==="input"&&Q.type==="file")var ve=my;else if(py(Q))if(gy)ve=qk;else{ve=Uk;var Fe=Pk}else ne=Q.nodeName,!ne||ne.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?F&&Xf(F.elementType)&&(ve=my):ve=Hk;if(ve&&(ve=ve(r,F))){hy(ce,ve,s,re);break e}Fe&&Fe(r,Q,F),r==="focusout"&&F&&Q.type==="number"&&F.memoizedProps.value!=null&&Yf(Q,"number",Q.value)}switch(Fe=F?as(F):window,r){case"focusin":(py(Fe)||Fe.contentEditable==="true")&&(Fa=Fe,ud=F,hs=null);break;case"focusout":hs=ud=Fa=null;break;case"mousedown":cd=!0;break;case"contextmenu":case"mouseup":case"dragend":cd=!1,ky(ce,s,re);break;case"selectionchange":if(Gk)break;case"keydown":case"keyup":ky(ce,s,re)}var Re;if(ad)e:{switch(r){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else qa?fy(r,s)&&(Ne="onCompositionEnd"):r==="keydown"&&s.keyCode===229&&(Ne="onCompositionStart");Ne&&(ly&&s.locale!=="ko"&&(qa||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&qa&&(Re=ry()):(Si=re,ed="value"in Si?Si.value:Si.textContent,qa=!0)),Fe=Xu(F,Ne),0<Fe.length&&(Ne=new oy(Ne,r,null,s,re),ce.push({event:Ne,listeners:Fe}),Re?Ne.data=Re:(Re=dy(s),Re!==null&&(Ne.data=Re)))),(Re=zk?Bk(r,s):Ik(r,s))&&(Ne=Xu(F,"onBeforeInput"),0<Ne.length&&(Fe=new oy("onBeforeInput","beforeinput",null,s,re),ce.push({event:Fe,listeners:Ne}),Fe.data=Re)),_E(ce,r,F,s,re)}Pv(ce,a)})}function Hs(r,a,s){return{instance:r,listener:a,currentTarget:s}}function Xu(r,a){for(var s=a+"Capture",c=[];r!==null;){var h=r,y=h.stateNode;h=h.tag,h!==5&&h!==26&&h!==27||y===null||(h=os(r,s),h!=null&&c.unshift(Hs(r,h,y)),h=os(r,a),h!=null&&c.push(Hs(r,h,y))),r=r.return}return c}function po(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Hv(r,a,s,c,h){for(var y=a._reactName,x=[];s!==null&&s!==c;){var D=s,z=D.alternate,F=D.stateNode;if(D=D.tag,z!==null&&z===c)break;D!==5&&D!==26&&D!==27||F===null||(z=F,h?(F=os(s,y),F!=null&&x.unshift(Hs(s,F,z))):h||(F=os(s,y),F!=null&&x.push(Hs(s,F,z)))),s=s.return}x.length!==0&&r.push({event:a,listeners:x})}var NE=/\r\n?/g,DE=/\u0000|\uFFFD/g;function qv(r){return(typeof r=="string"?r:""+r).replace(NE,`
|
||
`).replace(DE,"")}function Fv(r,a){return a=qv(a),qv(r)===a}function Wu(){}function ht(r,a,s,c,h,y){switch(s){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Pa(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Pa(r,""+c);break;case"className":iu(r,"class",c);break;case"tabIndex":iu(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":iu(r,s,c);break;case"style":ey(r,c,y);break;case"data":if(a!=="object"){iu(r,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||s!=="href")){r.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(s);break}c=su(""+c),r.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){r.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 y=="function"&&(s==="formAction"?(a!=="input"&&ht(r,a,"name",h.name,h,null),ht(r,a,"formEncType",h.formEncType,h,null),ht(r,a,"formMethod",h.formMethod,h,null),ht(r,a,"formTarget",h.formTarget,h,null)):(ht(r,a,"encType",h.encType,h,null),ht(r,a,"method",h.method,h,null),ht(r,a,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(s);break}c=su(""+c),r.setAttribute(s,c);break;case"onClick":c!=null&&(r.onclick=Wu);break;case"onScroll":c!=null&&We("scroll",r);break;case"onScrollEnd":c!=null&&We("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(h.children!=null)throw Error(i(60));r.innerHTML=s}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}s=su(""+c),r.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":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(s,""+c):r.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":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(s,""):r.removeAttribute(s);break;case"capture":case"download":c===!0?r.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(s,c):r.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(s,c):r.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(s):r.setAttribute(s,c);break;case"popover":We("beforetoggle",r),We("toggle",r),ru(r,"popover",c);break;case"xlinkActuate":Xr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Xr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Xr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Xr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Xr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Xr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Xr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Xr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Xr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":ru(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=lk.get(s)||s,ru(r,s,c))}}function Dp(r,a,s,c,h,y){switch(s){case"style":ey(r,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(h.children!=null)throw Error(i(60));r.innerHTML=s}}break;case"children":typeof c=="string"?Pa(r,c):(typeof c=="number"||typeof c=="bigint")&&Pa(r,""+c);break;case"onScroll":c!=null&&We("scroll",r);break;case"onScrollEnd":c!=null&&We("scrollend",r);break;case"onClick":c!=null&&(r.onclick=Wu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vg.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(h=s.endsWith("Capture"),a=s.slice(2,h?s.length-7:void 0),y=r[On]||null,y=y!=null?y[s]:null,typeof y=="function"&&r.removeEventListener(a,y,h),typeof c=="function")){typeof y!="function"&&y!==null&&(s in r?r[s]=null:r.hasAttribute(s)&&r.removeAttribute(s)),r.addEventListener(a,c,h);break e}s in r?r[s]=c:c===!0?r.setAttribute(s,""):ru(r,s,c)}}}function cn(r,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":We("error",r),We("load",r);var c=!1,h=!1,y;for(y in s)if(s.hasOwnProperty(y)){var x=s[y];if(x!=null)switch(y){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,y,x,s,null)}}h&&ht(r,a,"srcSet",s.srcSet,s,null),c&&ht(r,a,"src",s.src,s,null);return;case"input":We("invalid",r);var D=y=x=h=null,z=null,F=null;for(c in s)if(s.hasOwnProperty(c)){var re=s[c];if(re!=null)switch(c){case"name":h=re;break;case"type":x=re;break;case"checked":z=re;break;case"defaultChecked":F=re;break;case"value":y=re;break;case"defaultValue":D=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:ht(r,a,c,re,s,null)}}Wg(r,y,D,z,F,x,h,!1),au(r);return;case"select":We("invalid",r),c=x=y=null;for(h in s)if(s.hasOwnProperty(h)&&(D=s[h],D!=null))switch(h){case"value":y=D;break;case"defaultValue":x=D;break;case"multiple":c=D;default:ht(r,a,h,D,s,null)}a=y,s=x,r.multiple=!!c,a!=null?$a(r,!!c,a,!1):s!=null&&$a(r,!!c,s,!0);return;case"textarea":We("invalid",r),y=h=c=null;for(x in s)if(s.hasOwnProperty(x)&&(D=s[x],D!=null))switch(x){case"value":c=D;break;case"defaultValue":h=D;break;case"children":y=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(i(91));break;default:ht(r,a,x,D,s,null)}Zg(r,c,h,y),au(r);return;case"option":for(z in s)if(s.hasOwnProperty(z)&&(c=s[z],c!=null))switch(z){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:ht(r,a,z,c,s,null)}return;case"dialog":We("cancel",r),We("close",r);break;case"iframe":case"object":We("load",r);break;case"video":case"audio":for(c=0;c<Us.length;c++)We(Us[c],r);break;case"image":We("error",r),We("load",r);break;case"details":We("toggle",r);break;case"embed":case"source":case"link":We("error",r),We("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in s)if(s.hasOwnProperty(F)&&(c=s[F],c!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,F,c,s,null)}return;default:if(Xf(a)){for(re in s)s.hasOwnProperty(re)&&(c=s[re],c!==void 0&&Dp(r,a,re,c,s,void 0));return}}for(D in s)s.hasOwnProperty(D)&&(c=s[D],c!=null&&ht(r,a,D,c,s,null))}function LE(r,a,s,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,y=null,x=null,D=null,z=null,F=null,re=null;for(ne in s){var ce=s[ne];if(s.hasOwnProperty(ne)&&ce!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":z=ce;default:c.hasOwnProperty(ne)||ht(r,a,ne,null,c,ce)}}for(var Q in c){var ne=c[Q];if(ce=s[Q],c.hasOwnProperty(Q)&&(ne!=null||ce!=null))switch(Q){case"type":y=ne;break;case"name":h=ne;break;case"checked":F=ne;break;case"defaultChecked":re=ne;break;case"value":x=ne;break;case"defaultValue":D=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,a));break;default:ne!==ce&&ht(r,a,Q,ne,c,ce)}}Kf(r,x,D,z,F,re,y,h);return;case"select":ne=x=D=Q=null;for(y in s)if(z=s[y],s.hasOwnProperty(y)&&z!=null)switch(y){case"value":break;case"multiple":ne=z;default:c.hasOwnProperty(y)||ht(r,a,y,null,c,z)}for(h in c)if(y=c[h],z=s[h],c.hasOwnProperty(h)&&(y!=null||z!=null))switch(h){case"value":Q=y;break;case"defaultValue":D=y;break;case"multiple":x=y;default:y!==z&&ht(r,a,h,y,c,z)}a=D,s=x,c=ne,Q!=null?$a(r,!!s,Q,!1):!!c!=!!s&&(a!=null?$a(r,!!s,a,!0):$a(r,!!s,s?[]:"",!1));return;case"textarea":ne=Q=null;for(D in s)if(h=s[D],s.hasOwnProperty(D)&&h!=null&&!c.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:ht(r,a,D,null,c,h)}for(x in c)if(h=c[x],y=s[x],c.hasOwnProperty(x)&&(h!=null||y!=null))switch(x){case"value":Q=h;break;case"defaultValue":ne=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(i(91));break;default:h!==y&&ht(r,a,x,h,c,y)}Qg(r,Q,ne);return;case"option":for(var Ae in s)if(Q=s[Ae],s.hasOwnProperty(Ae)&&Q!=null&&!c.hasOwnProperty(Ae))switch(Ae){case"selected":r.selected=!1;break;default:ht(r,a,Ae,null,c,Q)}for(z in c)if(Q=c[z],ne=s[z],c.hasOwnProperty(z)&&Q!==ne&&(Q!=null||ne!=null))switch(z){case"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:ht(r,a,z,Q,c,ne)}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 ze in s)Q=s[ze],s.hasOwnProperty(ze)&&Q!=null&&!c.hasOwnProperty(ze)&&ht(r,a,ze,null,c,Q);for(F in c)if(Q=c[F],ne=s[F],c.hasOwnProperty(F)&&Q!==ne&&(Q!=null||ne!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,a));break;default:ht(r,a,F,Q,c,ne)}return;default:if(Xf(a)){for(var Lt in s)Q=s[Lt],s.hasOwnProperty(Lt)&&Q!==void 0&&!c.hasOwnProperty(Lt)&&Dp(r,a,Lt,void 0,c,Q);for(re in c)Q=c[re],ne=s[re],!c.hasOwnProperty(re)||Q===ne||Q===void 0&&ne===void 0||Dp(r,a,re,Q,c,ne);return}}for(var K in s)Q=s[K],s.hasOwnProperty(K)&&Q!=null&&!c.hasOwnProperty(K)&&ht(r,a,K,null,c,Q);for(ce in c)Q=c[ce],ne=s[ce],!c.hasOwnProperty(ce)||Q===ne||Q==null&&ne==null||ht(r,a,ce,Q,c,ne)}var Lp=null,zp=null;function Qu(r){return r.nodeType===9?r:r.ownerDocument}function Vv(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gv(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Bp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Ip=null;function zE(){var r=window.event;return r&&r.type==="popstate"?r===Ip?!1:(Ip=r,!0):(Ip=null,!1)}var Kv=typeof setTimeout=="function"?setTimeout:void 0,BE=typeof clearTimeout=="function"?clearTimeout:void 0,Yv=typeof Promise=="function"?Promise:void 0,IE=typeof queueMicrotask=="function"?queueMicrotask:typeof Yv<"u"?function(r){return Yv.resolve(null).then(r).catch(jE)}:Kv;function jE(r){setTimeout(function(){throw r})}function jp(r,a){var s=a,c=0;do{var h=s.nextSibling;if(r.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(c===0){r.removeChild(h),Ws(a);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=h}while(s);Ws(a)}function $p(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":$p(s),Gf(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}r.removeChild(s)}}function $E(r,a,s,c){for(;r.nodeType===1;){var h=s;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[is])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(y=r.getAttribute("rel"),y==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(y!==h.rel||r.getAttribute("href")!==(h.href==null?null:h.href)||r.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||r.getAttribute("title")!==(h.title==null?null:h.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(y=r.getAttribute("src"),(y!==(h.src==null?null:h.src)||r.getAttribute("type")!==(h.type==null?null:h.type)||r.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&y&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var y=h.name==null?null:""+h.name;if(h.type==="hidden"&&r.getAttribute("name")===y)return r}else return r;if(r=vr(r.nextSibling),r===null)break}return null}function PE(r,a,s){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=vr(r.nextSibling),r===null))return null;return r}function vr(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return r}function Xv(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var s=r.data;if(s==="$"||s==="$!"||s==="$?"){if(a===0)return r;a--}else s==="/$"&&a++}r=r.previousSibling}return null}function Wv(r,a,s){switch(a=Qu(s),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}var sr=new Map,Qv=new Set;function Zu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.ownerDocument}var ci=ie.d;ie.d={f:UE,r:HE,D:qE,C:FE,L:VE,m:GE,X:YE,S:KE,M:XE};function UE(){var r=ci.f(),a=Fu();return r||a}function HE(r){var a=Ba(r);a!==null&&a.tag===5&&a.type==="form"?kb(a):ci.r(r)}var ho=typeof document>"u"?null:document;function Zv(r,a,s){var c=ho;if(c&&typeof a=="string"&&a){var h=Qn(a);h='link[rel="'+r+'"][href="'+h+'"]',typeof s=="string"&&(h+='[crossorigin="'+s+'"]'),Qv.has(h)||(Qv.add(h),r={rel:r,crossOrigin:s,href:a},c.querySelector(h)===null&&(a=c.createElement("link"),cn(a,"link",r),tn(a),c.head.appendChild(a)))}}function qE(r){ci.D(r),Zv("dns-prefetch",r,null)}function FE(r,a){ci.C(r,a),Zv("preconnect",r,a)}function VE(r,a,s){ci.L(r,a,s);var c=ho;if(c&&r&&a){var h='link[rel="preload"][as="'+Qn(a)+'"]';a==="image"&&s&&s.imageSrcSet?(h+='[imagesrcset="'+Qn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(h+='[imagesizes="'+Qn(s.imageSizes)+'"]')):h+='[href="'+Qn(r)+'"]';var y=h;switch(a){case"style":y=mo(r);break;case"script":y=go(r)}sr.has(y)||(r=E({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:r,as:a},s),sr.set(y,r),c.querySelector(h)!==null||a==="style"&&c.querySelector(qs(y))||a==="script"&&c.querySelector(Fs(y))||(a=c.createElement("link"),cn(a,"link",r),tn(a),c.head.appendChild(a)))}}function GE(r,a){ci.m(r,a);var s=ho;if(s&&r){var c=a&&typeof a.as=="string"?a.as:"script",h='link[rel="modulepreload"][as="'+Qn(c)+'"][href="'+Qn(r)+'"]',y=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=go(r)}if(!sr.has(y)&&(r=E({rel:"modulepreload",href:r},a),sr.set(y,r),s.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Fs(y)))return}c=s.createElement("link"),cn(c,"link",r),tn(c),s.head.appendChild(c)}}}function KE(r,a,s){ci.S(r,a,s);var c=ho;if(c&&r){var h=Ia(c).hoistableStyles,y=mo(r);a=a||"default";var x=h.get(y);if(!x){var D={loading:0,preload:null};if(x=c.querySelector(qs(y)))D.loading=5;else{r=E({rel:"stylesheet",href:r,"data-precedence":a},s),(s=sr.get(y))&&Pp(r,s);var z=x=c.createElement("link");tn(z),cn(z,"link",r),z._p=new Promise(function(F,re){z.onload=F,z.onerror=re}),z.addEventListener("load",function(){D.loading|=1}),z.addEventListener("error",function(){D.loading|=2}),D.loading|=4,Ju(x,a,c)}x={type:"stylesheet",instance:x,count:1,state:D},h.set(y,x)}}}function YE(r,a){ci.X(r,a);var s=ho;if(s&&r){var c=Ia(s).hoistableScripts,h=go(r),y=c.get(h);y||(y=s.querySelector(Fs(h)),y||(r=E({src:r,async:!0},a),(a=sr.get(h))&&Up(r,a),y=s.createElement("script"),tn(y),cn(y,"link",r),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(h,y))}}function XE(r,a){ci.M(r,a);var s=ho;if(s&&r){var c=Ia(s).hoistableScripts,h=go(r),y=c.get(h);y||(y=s.querySelector(Fs(h)),y||(r=E({src:r,async:!0,type:"module"},a),(a=sr.get(h))&&Up(r,a),y=s.createElement("script"),tn(y),cn(y,"link",r),s.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(h,y))}}function Jv(r,a,s,c){var h=(h=$e.current)?Zu(h):null;if(!h)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=mo(s.href),s=Ia(h).hoistableStyles,c=s.get(a),c||(c={type:"style",instance:null,count:0,state:null},s.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){r=mo(s.href);var y=Ia(h).hoistableStyles,x=y.get(r);if(x||(h=h.ownerDocument||h,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,x),(y=h.querySelector(qs(r)))&&!y._p&&(x.instance=y,x.state.loading=5),sr.has(r)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},sr.set(r,s),y||WE(h,r,s,x.state))),a&&c===null)throw Error(i(528,""));return x}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=go(s),s=Ia(h).hoistableScripts,c=s.get(a),c||(c={type:"script",instance:null,count:0,state:null},s.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function mo(r){return'href="'+Qn(r)+'"'}function qs(r){return'link[rel="stylesheet"]['+r+"]"}function e0(r){return E({},r,{"data-precedence":r.precedence,precedence:null})}function WE(r,a,s,c){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),cn(a,"link",s),tn(a),r.head.appendChild(a))}function go(r){return'[src="'+Qn(r)+'"]'}function Fs(r){return"script[async]"+r}function t0(r,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector('style[data-href~="'+Qn(s.href)+'"]');if(c)return a.instance=c,tn(c),c;var h=E({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),tn(c),cn(c,"style",h),Ju(c,s.precedence,r),a.instance=c;case"stylesheet":h=mo(s.href);var y=r.querySelector(qs(h));if(y)return a.state.loading|=4,a.instance=y,tn(y),y;c=e0(s),(h=sr.get(h))&&Pp(c,h),y=(r.ownerDocument||r).createElement("link"),tn(y);var x=y;return x._p=new Promise(function(D,z){x.onload=D,x.onerror=z}),cn(y,"link",c),a.state.loading|=4,Ju(y,s.precedence,r),a.instance=y;case"script":return y=go(s.src),(h=r.querySelector(Fs(y)))?(a.instance=h,tn(h),h):(c=s,(h=sr.get(y))&&(c=E({},s),Up(c,h)),r=r.ownerDocument||r,h=r.createElement("script"),tn(h),cn(h,"link",c),r.head.appendChild(h),a.instance=h);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,Ju(c,s.precedence,r));return a.instance}function Ju(r,a,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,y=h,x=0;x<c.length;x++){var D=c[x];if(D.dataset.precedence===a)y=D;else if(y!==h)break}y?y.parentNode.insertBefore(r,y.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(r,a.firstChild))}function Pp(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Up(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var ec=null;function n0(r,a,s){if(ec===null){var c=new Map,h=ec=new Map;h.set(s,c)}else h=ec,c=h.get(s),c||(c=new Map,h.set(s,c));if(c.has(r))return c;for(c.set(r,null),s=s.getElementsByTagName(r),h=0;h<s.length;h++){var y=s[h];if(!(y[is]||y[Vt]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var x=y.getAttribute(a)||"";x=r+x;var D=c.get(x);D?D.push(y):c.set(x,[y])}}return c}function r0(r,a,s){r=r.ownerDocument||r,r.head.insertBefore(s,a==="title"?r.querySelector("head > title"):null)}function QE(r,a,s){if(s===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function i0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}var Vs=null;function ZE(){}function JE(r,a,s){if(Vs===null)throw Error(i(475));var c=Vs;if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=mo(s.href),y=r.querySelector(qs(h));if(y){r=y._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(c.count++,c=tc.bind(c),r.then(c,c)),a.state.loading|=4,a.instance=y,tn(y);return}y=r.ownerDocument||r,s=e0(s),(h=sr.get(h))&&Pp(s,h),y=y.createElement("link"),tn(y);var x=y;x._p=new Promise(function(D,z){x.onload=D,x.onerror=z}),cn(y,"link",s),a.instance=y}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(c.count++,a=tc.bind(c),r.addEventListener("load",a),r.addEventListener("error",a))}}function eT(){if(Vs===null)throw Error(i(475));var r=Vs;return r.stylesheets&&r.count===0&&Hp(r,r.stylesheets),0<r.count?function(a){var s=setTimeout(function(){if(r.stylesheets&&Hp(r,r.stylesheets),r.unsuspend){var c=r.unsuspend;r.unsuspend=null,c()}},6e4);return r.unsuspend=a,function(){r.unsuspend=null,clearTimeout(s)}}:null}function tc(){if(this.count--,this.count===0){if(this.stylesheets)Hp(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var nc=null;function Hp(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,nc=new Map,a.forEach(tT,r),nc=null,tc.call(r))}function tT(r,a){if(!(a.state.loading&4)){var s=nc.get(r);if(s)var c=s.get(null);else{s=new Map,nc.set(r,s);for(var h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<h.length;y++){var x=h[y];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),c=x)}c&&s.set(null,c)}h=a.instance,x=h.getAttribute("data-precedence"),y=s.get(x)||c,y===c&&s.set(null,h),s.set(x,h),this.count++,c=tc.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),y?y.parentNode.insertBefore(h,y.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(h,r.firstChild)),a.state.loading|=4}}var Gs={$$typeof:b,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function nT(r,a,s,c,h,y,x,D){this.tag=1,this.containerInfo=r,this.finishedWork=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=Ar(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ar(0),this.hiddenUpdates=Ar(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=y,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function a0(r,a,s,c,h,y,x,D,z,F,re,ce){return r=new nT(r,a,s,x,D,z,F,ce),a=1,y===!0&&(a|=24),y=ar(3,null,null,a),r.current=y,y.stateNode=r,a=Sd(),a.refCount++,r.pooledCache=a,a.refCount++,y.memoizedState={element:c,isDehydrated:s,cache:a},ep(y),r}function o0(r){return r?(r=Ka,r):Ka}function s0(r,a,s,c,h,y){h=o0(h),c.context===null?c.context=h:c.pendingContext=h,c=_i(a),c.payload={element:s},y=y===void 0?null:y,y!==null&&(c.callback=y),s=Ri(r,c,a),s!==null&&(xn(s,r,a),Rs(s,r,a))}function l0(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var s=r.retryLane;r.retryLane=s!==0&&s<a?s:a}}function qp(r,a){l0(r,a),(r=r.alternate)&&l0(r,a)}function u0(r){if(r.tag===13){var a=wi(r,67108864);a!==null&&xn(a,r,67108864),qp(r,67108864)}}var rc=!0;function rT(r,a,s,c){var h=P.T;P.T=null;var y=ie.p;try{ie.p=2,Fp(r,a,s,c)}finally{ie.p=y,P.T=h}}function iT(r,a,s,c){var h=P.T;P.T=null;var y=ie.p;try{ie.p=8,Fp(r,a,s,c)}finally{ie.p=y,P.T=h}}function Fp(r,a,s,c){if(rc){var h=Vp(c);if(h===null)Np(r,a,c,ic,s),f0(r,c);else if(oT(h,r,a,s,c))c.stopPropagation();else if(f0(r,c),a&4&&-1<aT.indexOf(r)){for(;h!==null;){var y=Ba(h);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var x=$t(y.pendingLanes);if(x!==0){var D=y;for(D.pendingLanes|=2,D.entangledLanes|=2;x;){var z=1<<31-Ue(x);D.entanglements[1]|=z,x&=~z}Lr(y),(Mt&6)===0&&(Uu=rt()+500,Ps(0))}}break;case 13:D=wi(y,2),D!==null&&xn(D,y,2),Fu(),qp(y,2)}if(y=Vp(c),y===null&&Np(r,a,c,ic,s),y===h)break;h=y}h!==null&&c.stopPropagation()}else Np(r,a,c,null,s)}}function Vp(r){return r=Qf(r),Gp(r)}var ic=null;function Gp(r){if(ic=null,r=Wi(r),r!==null){var a=ae(r);if(a===null)r=null;else{var s=a.tag;if(s===13){if(r=J(a),r!==null)return r;r=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return ic=r,null}function c0(r){switch(r){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(Sn()){case ee:return 2;case se:return 8;case he:case be:return 32;case De:return 268435456;default:return 32}default:return 32}}var Kp=!1,Bi=null,Ii=null,ji=null,Ks=new Map,Ys=new Map,$i=[],aT="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 f0(r,a){switch(r){case"focusin":case"focusout":Bi=null;break;case"dragenter":case"dragleave":Ii=null;break;case"mouseover":case"mouseout":ji=null;break;case"pointerover":case"pointerout":Ks.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ys.delete(a.pointerId)}}function Xs(r,a,s,c,h,y){return r===null||r.nativeEvent!==y?(r={blockedOn:a,domEventName:s,eventSystemFlags:c,nativeEvent:y,targetContainers:[h]},a!==null&&(a=Ba(a),a!==null&&u0(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,h!==null&&a.indexOf(h)===-1&&a.push(h),r)}function oT(r,a,s,c,h){switch(a){case"focusin":return Bi=Xs(Bi,r,a,s,c,h),!0;case"dragenter":return Ii=Xs(Ii,r,a,s,c,h),!0;case"mouseover":return ji=Xs(ji,r,a,s,c,h),!0;case"pointerover":var y=h.pointerId;return Ks.set(y,Xs(Ks.get(y)||null,r,a,s,c,h)),!0;case"gotpointercapture":return y=h.pointerId,Ys.set(y,Xs(Ys.get(y)||null,r,a,s,c,h)),!0}return!1}function d0(r){var a=Wi(r.target);if(a!==null){var s=ae(a);if(s!==null){if(a=s.tag,a===13){if(a=J(s),a!==null){r.blockedOn=a,Rr(r.priority,function(){if(s.tag===13){var c=Fn(),h=wi(s,c);h!==null&&xn(h,s,c),qp(s,c)}});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){r.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}r.blockedOn=null}function ac(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var s=Vp(r.nativeEvent);if(s===null){s=r.nativeEvent;var c=new s.constructor(s.type,s);Wf=c,s.target.dispatchEvent(c),Wf=null}else return a=Ba(s),a!==null&&u0(a),r.blockedOn=s,!1;a.shift()}return!0}function p0(r,a,s){ac(r)&&s.delete(a)}function sT(){Kp=!1,Bi!==null&&ac(Bi)&&(Bi=null),Ii!==null&&ac(Ii)&&(Ii=null),ji!==null&&ac(ji)&&(ji=null),Ks.forEach(p0),Ys.forEach(p0)}function oc(r,a){r.blockedOn===a&&(r.blockedOn=null,Kp||(Kp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sT)))}var sc=null;function h0(r){sc!==r&&(sc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){sc===r&&(sc=null);for(var a=0;a<r.length;a+=3){var s=r[a],c=r[a+1],h=r[a+2];if(typeof c!="function"){if(Gp(c||s)===null)continue;break}var y=Ba(s);y!==null&&(r.splice(a,3),a-=3,Bd(y,{pending:!0,data:h,method:s.method,action:c},c,h))}}))}function Ws(r){function a(z){return oc(z,r)}Bi!==null&&oc(Bi,r),Ii!==null&&oc(Ii,r),ji!==null&&oc(ji,r),Ks.forEach(a),Ys.forEach(a);for(var s=0;s<$i.length;s++){var c=$i[s];c.blockedOn===r&&(c.blockedOn=null)}for(;0<$i.length&&(s=$i[0],s.blockedOn===null);)d0(s),s.blockedOn===null&&$i.shift();if(s=(r.ownerDocument||r).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var h=s[c],y=s[c+1],x=h[On]||null;if(typeof y=="function")x||h0(s);else if(x){var D=null;if(y&&y.hasAttribute("formAction")){if(h=y,x=y[On]||null)D=x.formAction;else if(Gp(h)!==null)continue}else D=x.action;typeof D=="function"?s[c+1]=D:(s.splice(c,3),c-=3),h0(s)}}}function Yp(r){this._internalRoot=r}lc.prototype.render=Yp.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var s=a.current,c=Fn();s0(s,c,r,a,null,null)},lc.prototype.unmount=Yp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;r.tag===0&&co(),s0(r.current,2,null,r,null,null),Fu(),a[za]=null}};function lc(r){this._internalRoot=r}lc.prototype.unstable_scheduleHydration=function(r){if(r){var a=vi();r={blockedOn:null,target:r,priority:a};for(var s=0;s<$i.length&&a!==0&&a<$i[s].priority;s++);$i.splice(s,0,r),s===0&&d0(r)}};var m0=t.version;if(m0!=="19.0.0")throw Error(i(527,m0,"19.0.0"));ie.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=X(a),r=r!==null?de(r):null,r=r===null?null:r.stateNode,r};var lT={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:Wi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{_t=uc.inject(lT),Tt=uc}catch{}}return Js.createRoot=function(r,a){if(!o(r))throw Error(i(299));var s=!1,c="",h=Nb,y=Db,x=Lb,D=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(D=a.unstable_transitionCallbacks)),a=a0(r,1,!1,null,null,s,c,h,y,x,D,null),r[za]=a.current,Mp(r.nodeType===8?r.parentNode:r),new Yp(a)},Js.hydrateRoot=function(r,a,s){if(!o(r))throw Error(i(299));var c=!1,h="",y=Nb,x=Db,D=Lb,z=null,F=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(D=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(z=s.unstable_transitionCallbacks),s.formState!==void 0&&(F=s.formState)),a=a0(r,1,!0,a,s??null,c,h,y,x,D,z,F),a.context=o0(null),s=a.current,c=Fn(),h=_i(c),h.callback=null,Ri(s,h,c),a.current.lanes=c,Rt(a,c),Lr(a),r[za]=a.current,Mp(r),new lc(a)},Js.version="19.0.0",Js}var E0;function ST(){if(E0)return Qp.exports;E0=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(),Qp.exports=vT(),Qp.exports}var wT=ST();function mi(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}const qr="$$material";function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jc.apply(null,arguments)}function xT(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function CT(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var kT=function(){function e(n){var i=this;this._insertTag=function(o){var l;i.tags.length===0?i.insertionPoint?l=i.insertionPoint.nextSibling:i.prepend?l=i.container.firstChild:l=i.before:l=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,l),i.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(CT(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var l=xT(o);try{l.insertRule(i,l.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e}(),yn="-ms-",$c="-moz-",st="-webkit-",K1="comm",Am="rule",_m="decl",ET="@import",Y1="@keyframes",TT="@layer",AT=Math.abs,af=String.fromCharCode,_T=Object.assign;function RT(e,t){return fn(e,0)^45?(((t<<2^fn(e,0))<<2^fn(e,1))<<2^fn(e,2))<<2^fn(e,3):0}function X1(e){return e.trim()}function OT(e,t){return(e=t.exec(e))?e[0]:e}function lt(e,t,n){return e.replace(t,n)}function Ph(e,t){return e.indexOf(t)}function fn(e,t){return e.charCodeAt(t)|0}function Tl(e,t,n){return e.slice(t,n)}function jr(e){return e.length}function Rm(e){return e.length}function cc(e,t){return t.push(e),e}function MT(e,t){return e.map(t).join("")}var of=1,Po=1,W1=0,zn=0,Wt=0,Vo="";function sf(e,t,n,i,o,l,u){return{value:e,root:t,parent:n,type:i,props:o,children:l,line:of,column:Po,length:u,return:""}}function el(e,t){return _T(sf("",null,null,"",null,null,0),e,{length:-e.length},t)}function NT(){return Wt}function DT(){return Wt=zn>0?fn(Vo,--zn):0,Po--,Wt===10&&(Po=1,of--),Wt}function Yn(){return Wt=zn<W1?fn(Vo,zn++):0,Po++,Wt===10&&(Po=1,of++),Wt}function Fr(){return fn(Vo,zn)}function Tc(){return zn}function Il(e,t){return Tl(Vo,e,t)}function Al(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Q1(e){return of=Po=1,W1=jr(Vo=e),zn=0,[]}function Z1(e){return Vo="",e}function Ac(e){return X1(Il(zn-1,Uh(e===91?e+2:e===40?e+1:e)))}function LT(e){for(;(Wt=Fr())&&Wt<33;)Yn();return Al(e)>2||Al(Wt)>3?"":" "}function zT(e,t){for(;--t&&Yn()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return Il(e,Tc()+(t<6&&Fr()==32&&Yn()==32))}function Uh(e){for(;Yn();)switch(Wt){case e:return zn;case 34:case 39:e!==34&&e!==39&&Uh(Wt);break;case 40:e===41&&Uh(e);break;case 92:Yn();break}return zn}function BT(e,t){for(;Yn()&&e+Wt!==57;)if(e+Wt===84&&Fr()===47)break;return"/*"+Il(t,zn-1)+"*"+af(e===47?e:Yn())}function IT(e){for(;!Al(Fr());)Yn();return Il(e,zn)}function jT(e){return Z1(_c("",null,null,null,[""],e=Q1(e),0,[0],e))}function _c(e,t,n,i,o,l,u,f,d){for(var p=0,m=0,g=u,v=0,b=0,w=0,S=1,k=1,A=1,N=0,_="",O=o,R=l,M=i,B=_;k;)switch(w=N,N=Yn()){case 40:if(w!=108&&fn(B,g-1)==58){Ph(B+=lt(Ac(N),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:B+=Ac(N);break;case 9:case 10:case 13:case 32:B+=LT(w);break;case 92:B+=zT(Tc()-1,7);continue;case 47:switch(Fr()){case 42:case 47:cc($T(BT(Yn(),Tc()),t,n),d);break;default:B+="/"}break;case 123*S:f[p++]=jr(B)*A;case 125*S:case 59:case 0:switch(N){case 0:case 125:k=0;case 59+m:A==-1&&(B=lt(B,/\f/g,"")),b>0&&jr(B)-g&&cc(b>32?A0(B+";",i,n,g-1):A0(lt(B," ","")+";",i,n,g-2),d);break;case 59:B+=";";default:if(cc(M=T0(B,t,n,p,m,o,f,_,O=[],R=[],g),l),N===123)if(m===0)_c(B,t,M,M,O,l,g,f,R);else switch(v===99&&fn(B,3)===110?100:v){case 100:case 108:case 109:case 115:_c(e,M,M,i&&cc(T0(e,M,M,0,0,o,f,_,o,O=[],g),R),o,R,g,f,i?O:R);break;default:_c(B,M,M,M,[""],R,0,f,R)}}p=m=b=0,S=A=1,_=B="",g=u;break;case 58:g=1+jr(B),b=w;default:if(S<1){if(N==123)--S;else if(N==125&&S++==0&&DT()==125)continue}switch(B+=af(N),N*S){case 38:A=m>0?1:(B+="\f",-1);break;case 44:f[p++]=(jr(B)-1)*A,A=1;break;case 64:Fr()===45&&(B+=Ac(Yn())),v=Fr(),m=g=jr(_=B+=IT(Tc())),N++;break;case 45:w===45&&jr(B)==2&&(S=0)}}return l}function T0(e,t,n,i,o,l,u,f,d,p,m){for(var g=o-1,v=o===0?l:[""],b=Rm(v),w=0,S=0,k=0;w<i;++w)for(var A=0,N=Tl(e,g+1,g=AT(S=u[w])),_=e;A<b;++A)(_=X1(S>0?v[A]+" "+N:lt(N,/&\f/g,v[A])))&&(d[k++]=_);return sf(e,t,n,o===0?Am:f,d,p,m)}function $T(e,t,n){return sf(e,t,n,K1,af(NT()),Tl(e,2,-2),0)}function A0(e,t,n,i){return sf(e,t,n,_m,Tl(e,0,i),Tl(e,i+1,-1),i)}function Mo(e,t){for(var n="",i=Rm(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function PT(e,t,n,i){switch(e.type){case TT:if(e.children.length)break;case ET:case _m:return e.return=e.return||e.value;case K1:return"";case Y1:return e.return=e.value+"{"+Mo(e.children,i)+"}";case Am:e.value=e.props.join(",")}return jr(n=Mo(e.children,i))?e.return=e.value+"{"+n+"}":""}function UT(e){var t=Rm(e);return function(n,i,o,l){for(var u="",f=0;f<t;f++)u+=e[f](n,i,o,l)||"";return u}}function HT(e){return function(t){t.root||(t=t.return)&&e(t)}}function J1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qT=function(t,n,i){for(var o=0,l=0;o=l,l=Fr(),o===38&&l===12&&(n[i]=1),!Al(l);)Yn();return Il(t,zn)},FT=function(t,n){var i=-1,o=44;do switch(Al(o)){case 0:o===38&&Fr()===12&&(n[i]=1),t[i]+=qT(zn-1,n,i);break;case 2:t[i]+=Ac(o);break;case 4:if(o===44){t[++i]=Fr()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=af(o)}while(o=Yn());return t},VT=function(t,n){return Z1(FT(Q1(t),n))},_0=new WeakMap,GT=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!_0.get(i))&&!o){_0.set(t,!0);for(var l=[],u=VT(n,l),f=i.props,d=0,p=0;d<u.length;d++)for(var m=0;m<f.length;m++,p++)t.props[p]=l[d]?u[d].replace(/&\f/g,f[m]):f[m]+" "+u[d]}}},KT=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ew(e,t){switch(RT(e,t)){case 5103:return st+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return st+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return st+e+$c+e+yn+e+e;case 6828:case 4268:return st+e+yn+e+e;case 6165:return st+e+yn+"flex-"+e+e;case 5187:return st+e+lt(e,/(\w+).+(:[^]+)/,st+"box-$1$2"+yn+"flex-$1$2")+e;case 5443:return st+e+yn+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return st+e+yn+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return st+e+yn+lt(e,"shrink","negative")+e;case 5292:return st+e+yn+lt(e,"basis","preferred-size")+e;case 6060:return st+"box-"+lt(e,"-grow","")+st+e+yn+lt(e,"grow","positive")+e;case 4554:return st+lt(e,/([^-])(transform)/g,"$1"+st+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,st+"$1"),/(image-set)/,st+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,st+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,st+"box-pack:$3"+yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+st+e+e;case 4095:case 3583:case 4068:case 2532:return lt(e,/(.+)-inline(.+)/,st+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jr(e)-1-t>6)switch(fn(e,t+1)){case 109:if(fn(e,t+4)!==45)break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+$c+(fn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ph(e,"stretch")?ew(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fn(e,t+1)!==115)break;case 6444:switch(fn(e,jr(e)-3-(~Ph(e,"!important")&&10))){case 107:return lt(e,":",":"+st)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+st+(fn(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+yn+"$2box$3")+e}break;case 5936:switch(fn(e,t+11)){case 114:return st+e+yn+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+yn+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+yn+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return st+e+yn+e+e}return e}var YT=function(t,n,i,o){if(t.length>-1&&!t.return)switch(t.type){case _m:t.return=ew(t.value,t.length);break;case Y1:return Mo([el(t,{value:lt(t.value,"@","@"+st)})],o);case Am:if(t.length)return MT(t.props,function(l){switch(OT(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mo([el(t,{props:[lt(l,/:(read-\w+)/,":"+$c+"$1")]})],o);case"::placeholder":return Mo([el(t,{props:[lt(l,/:(plac\w+)/,":"+st+"input-$1")]}),el(t,{props:[lt(l,/:(plac\w+)/,":"+$c+"$1")]}),el(t,{props:[lt(l,/:(plac\w+)/,yn+"input-$1")]})],o)}return""})}},XT=[YT],WT=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||XT,l={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),A=1;A<k.length;A++)l[k[A]]=!0;f.push(S)});var d,p=[GT,KT];{var m,g=[PT,HT(function(S){m.insert(S)})],v=UT(p.concat(o,g)),b=function(k){return Mo(jT(k),v)};d=function(k,A,N,_){m=N,b(k?k+"{"+A.styles+"}":A.styles),_&&(w.inserted[A.name]=!0)}}var w={key:n,sheet:new kT({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:d};return w.sheet.hydrate(f),w},th={exports:{}},ct={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var R0;function QT(){if(R0)return ct;R0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function _(R){if(typeof R=="object"&&R!==null){var M=R.$$typeof;switch(M){case t:switch(R=R.type,R){case d:case p:case i:case l:case o:case g:return R;default:switch(R=R&&R.$$typeof,R){case f:case m:case w:case b:case u:return R;default:return M}}case n:return M}}}function O(R){return _(R)===p}return ct.AsyncMode=d,ct.ConcurrentMode=p,ct.ContextConsumer=f,ct.ContextProvider=u,ct.Element=t,ct.ForwardRef=m,ct.Fragment=i,ct.Lazy=w,ct.Memo=b,ct.Portal=n,ct.Profiler=l,ct.StrictMode=o,ct.Suspense=g,ct.isAsyncMode=function(R){return O(R)||_(R)===d},ct.isConcurrentMode=O,ct.isContextConsumer=function(R){return _(R)===f},ct.isContextProvider=function(R){return _(R)===u},ct.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},ct.isForwardRef=function(R){return _(R)===m},ct.isFragment=function(R){return _(R)===i},ct.isLazy=function(R){return _(R)===w},ct.isMemo=function(R){return _(R)===b},ct.isPortal=function(R){return _(R)===n},ct.isProfiler=function(R){return _(R)===l},ct.isStrictMode=function(R){return _(R)===o},ct.isSuspense=function(R){return _(R)===g},ct.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===i||R===p||R===l||R===o||R===g||R===v||typeof R=="object"&&R!==null&&(R.$$typeof===w||R.$$typeof===b||R.$$typeof===u||R.$$typeof===f||R.$$typeof===m||R.$$typeof===k||R.$$typeof===A||R.$$typeof===N||R.$$typeof===S)},ct.typeOf=_,ct}var O0;function ZT(){return O0||(O0=1,th.exports=QT()),th.exports}var nh,M0;function JT(){if(M0)return nh;M0=1;var e=ZT(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=i,l[e.Memo]=o;function u(w){return e.isMemo(w)?o:l[w.$$typeof]||t}var f=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;function b(w,S,k){if(typeof S!="string"){if(v){var A=g(S);A&&A!==v&&b(w,A,k)}var N=d(S);p&&(N=N.concat(p(S)));for(var _=u(w),O=u(S),R=0;R<N.length;++R){var M=N[R];if(!n[M]&&!(k&&k[M])&&!(O&&O[M])&&!(_&&_[M])){var B=m(S,M);try{f(w,M,B)}catch{}}}}return w}return nh=b,nh}JT();var e2=!0;function tw(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var Om=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||e2===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Mm=function(t,n,i){Om(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var l=n;do t.insert(n===l?"."+o:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function t2(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var n2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},r2=/[A-Z]|^ms/g,i2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nw=function(t){return t.charCodeAt(1)===45},N0=function(t){return t!=null&&typeof t!="boolean"},rh=J1(function(e){return nw(e)?e:e.replace(r2,"-$&").toLowerCase()}),D0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(i2,function(i,o,l){return $r={name:o,styles:l,next:$r},o})}return n2[t]!==1&&!nw(t)&&typeof n=="number"&&n!==0?n+"px":n};function _l(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return $r={name:o.name,styles:o.styles,next:$r},o.name;var l=n;if(l.styles!==void 0){var u=l.next;if(u!==void 0)for(;u!==void 0;)$r={name:u.name,styles:u.styles,next:$r},u=u.next;var f=l.styles+";";return f}return a2(e,t,n)}case"function":{if(e!==void 0){var d=$r,p=n(e);return $r=d,_l(e,t,p)}break}}var m=n;if(t==null)return m;var g=t[m];return g!==void 0?g:m}function a2(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=_l(e,t,n[o])+";";else for(var l in n){var u=n[l];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?i+=l+"{"+t[f]+"}":N0(f)&&(i+=rh(l)+":"+D0(l,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var d=0;d<u.length;d++)N0(u[d])&&(i+=rh(l)+":"+D0(l,u[d])+";");else{var p=_l(e,t,u);switch(l){case"animation":case"animationName":{i+=rh(l)+":"+p+";";break}default:i+=l+"{"+p+"}"}}}return i}var L0=/label:\s*([^\s;{]+)\s*(;|$)/g,$r;function jl(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";$r=void 0;var l=e[0];if(l==null||l.raw===void 0)i=!1,o+=_l(n,t,l);else{var u=l;o+=u[0]}for(var f=1;f<e.length;f++)if(o+=_l(n,t,e[f]),i){var d=l;o+=d[f]}L0.lastIndex=0;for(var p="",m;(m=L0.exec(o))!==null;)p+="-"+m[1];var g=t2(o)+p;return{name:g,styles:o,next:$r}}var o2=function(t){return t()},rw=$h.useInsertionEffect?$h.useInsertionEffect:!1,iw=rw||o2,z0=rw||T.useLayoutEffect,aw=T.createContext(typeof HTMLElement<"u"?WT({key:"css"}):null);aw.Provider;var Nm=function(t){return T.forwardRef(function(n,i){var o=T.useContext(aw);return t(n,o,i)})},$l=T.createContext({}),Dm={}.hasOwnProperty,Hh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",s2=function(t,n){var i={};for(var o in n)Dm.call(n,o)&&(i[o]=n[o]);return i[Hh]=t,i},l2=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return Om(n,i,o),iw(function(){return Mm(n,i,o)}),null},u2=Nm(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Hh],l=[i],u="";typeof e.className=="string"?u=tw(t.registered,l,e.className):e.className!=null&&(u=e.className+" ");var f=jl(l,void 0,T.useContext($l));u+=t.key+"-"+f.name;var d={};for(var p in e)Dm.call(e,p)&&p!=="css"&&p!==Hh&&(d[p]=e[p]);return d.className=u,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(l2,{cache:t,serialized:f,isStringTag:typeof o=="string"}),T.createElement(o,d))}),c2=u2,B0=function(t,n){var i=arguments;if(n==null||!Dm.call(n,"css"))return T.createElement.apply(void 0,i);var o=i.length,l=new Array(o);l[0]=c2,l[1]=s2(t,n);for(var u=2;u<o;u++)l[u]=i[u];return T.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(B0||(B0={}));var f2=Nm(function(e,t){var n=e.styles,i=jl([n],void 0,T.useContext($l)),o=T.useRef();return z0(function(){var l=t.key+"-global",u=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,d=document.querySelector('style[data-emotion="'+l+" "+i.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),d!==null&&(f=!0,d.setAttribute("data-emotion",l),u.hydrate([d])),o.current=[u,f],function(){u.flush()}},[t]),z0(function(){var l=o.current,u=l[0],f=l[1];if(f){l[1]=!1;return}if(i.next!==void 0&&Mm(t,i.next,!0),u.tags.length){var d=u.tags[u.tags.length-1].nextElementSibling;u.before=d,u.flush()}t.insert("",i,u,!1)},[t,i.name]),null});function Lm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jl(t)}function Pl(){var e=Lm.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var d2=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p2=J1(function(e){return d2.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),h2=p2,m2=function(t){return t!=="theme"},I0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?h2:m2},j0=function(t,n,i){var o;if(n){var l=n.shouldForwardProp;o=t.__emotion_forwardProp&&l?function(u){return t.__emotion_forwardProp(u)&&l(u)}:l}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},g2=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return Om(n,i,o),iw(function(){return Mm(n,i,o)}),null},y2=function e(t,n){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,l,u;n!==void 0&&(l=n.label,u=n.target);var f=j0(t,n,i),d=f||I0(o),p=!d("as");return function(){var m=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&g.push("label:"+l+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var v=m[0];g.push(v[0]);for(var b=m.length,w=1;w<b;w++)g.push(m[w],v[w])}var S=Nm(function(k,A,N){var _=p&&k.as||o,O="",R=[],M=k;if(k.theme==null){M={};for(var B in k)M[B]=k[B];M.theme=T.useContext($l)}typeof k.className=="string"?O=tw(A.registered,R,k.className):k.className!=null&&(O=k.className+" ");var I=jl(g.concat(R),A.registered,M);O+=A.key+"-"+I.name,u!==void 0&&(O+=" "+u);var P=p&&f===void 0?I0(_):d,E={};for(var j in k)p&&j==="as"||P(j)&&(E[j]=k[j]);return E.className=O,N&&(E.ref=N),T.createElement(T.Fragment,null,T.createElement(g2,{cache:A,serialized:I,isStringTag:typeof _=="string"}),T.createElement(_,E))});return S.displayName=l!==void 0?l:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=g,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+u}}),S.withComponent=function(k,A){var N=e(k,jc({},n,A,{shouldForwardProp:j0(S,A,!0)}));return N.apply(void 0,g)},S}},b2=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],qh=y2.bind(null);b2.forEach(function(e){qh[e]=qh(e)});function v2(e){return e==null||Object.keys(e).length===0}function ow(e){const{styles:t,defaultTheme:n={}}=e,i=typeof t=="function"?o=>t(v2(o)?n:o):t;return $.jsx(f2,{styles:i})}/**
|
||
* @mui/styled-engine v6.4.6
|
||
*
|
||
* @license MIT
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function sw(e,t){return qh(e,t)}function S2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const $0=[];function P0(e){return $0[0]=e,jl($0)}var ih={exports:{}},mt={};/**
|
||
* @license React
|
||
* react-is.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var U0;function w2(){if(U0)return mt;U0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function w(S){if(typeof S=="object"&&S!==null){var k=S.$$typeof;switch(k){case e:switch(S=S.type,S){case n:case o:case i:case d:case p:return S;default:switch(S=S&&S.$$typeof,S){case u:case f:case g:case m:return S;case l:return S;default:return k}}case t:return k}}}return mt.ContextConsumer=l,mt.ContextProvider=u,mt.Element=e,mt.ForwardRef=f,mt.Fragment=n,mt.Lazy=g,mt.Memo=m,mt.Portal=t,mt.Profiler=o,mt.StrictMode=i,mt.Suspense=d,mt.SuspenseList=p,mt.isContextConsumer=function(S){return w(S)===l},mt.isContextProvider=function(S){return w(S)===u},mt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},mt.isForwardRef=function(S){return w(S)===f},mt.isFragment=function(S){return w(S)===n},mt.isLazy=function(S){return w(S)===g},mt.isMemo=function(S){return w(S)===m},mt.isPortal=function(S){return w(S)===t},mt.isProfiler=function(S){return w(S)===o},mt.isStrictMode=function(S){return w(S)===i},mt.isSuspense=function(S){return w(S)===d},mt.isSuspenseList=function(S){return w(S)===p},mt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===i||S===d||S===p||S===v||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===m||S.$$typeof===u||S.$$typeof===l||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},mt.typeOf=w,mt}var H0;function x2(){return H0||(H0=1,ih.exports=w2()),ih.exports}var lw=x2();function Ur(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 uw(e){if(T.isValidElement(e)||lw.isValidElementType(e)||!Ur(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=uw(e[n])}),t}function sn(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return Ur(e)&&Ur(t)&&Object.keys(t).forEach(o=>{T.isValidElement(t[o])||lw.isValidElementType(t[o])?i[o]=t[o]:Ur(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ur(e[o])?i[o]=sn(e[o],t[o],n):n.clone?i[o]=Ur(t[o])?uw(t[o]):t[o]:i[o]=t[o]}),i}const C2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function k2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...o}=e,l=C2(t),u=Object.keys(l);function f(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-i/100}${n})`}function p(v,b){const w=u.indexOf(b);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(w!==-1&&typeof t[u[w]]=="number"?t[u[w]]:b)-i/100}${n})`}function m(v){return u.indexOf(v)+1<u.length?p(v,u[u.indexOf(v)+1]):f(v)}function g(v){const b=u.indexOf(v);return b===0?f(u[1]):b===u.length-1?d(u[b]):p(v,u[u.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:u,values:l,up:f,down:d,between:p,only:m,not:g,unit:n,...o}}function E2(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{var u,f;const l=/min-width:\s*([0-9.]+)/;return+(((u=i.match(l))==null?void 0:u[1])||0)-+(((f=o.match(l))==null?void 0:f[1])||0)});return n.length?n.reduce((i,o)=>{const l=t[o];return delete i[o],i[o]=l,i},{...t}):t}function T2(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function A2(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,i,o]=n,l=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(l)}function _2(e){const t=(l,u)=>l.replace("@media",u?`@container ${u}`:"@container");function n(l,u){l.up=(...f)=>t(e.breakpoints.up(...f),u),l.down=(...f)=>t(e.breakpoints.down(...f),u),l.between=(...f)=>t(e.breakpoints.between(...f),u),l.only=(...f)=>t(e.breakpoints.only(...f),u),l.not=(...f)=>{const d=t(e.breakpoints.not(...f),u);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const i={},o=l=>(n(i,l),i);return n(o),{...e,containerQueries:o}}const R2={borderRadius:4};function ml(e,t){return t?sn(e,t,{clone:!1}):e}const lf={xs:0,sm:600,md:900,lg:1200,xl:1536},q0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lf[e]}px)`},O2={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:lf[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wr(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const l=i.breakpoints||q0;return t.reduce((u,f,d)=>(u[l.up(l.keys[d])]=n(t[d]),u),{})}if(typeof t=="object"){const l=i.breakpoints||q0;return Object.keys(t).reduce((u,f)=>{if(T2(l.keys,f)){const d=A2(i.containerQueries?i:O2,f);d&&(u[d]=n(t[f],f))}else if(Object.keys(l.values||lf).includes(f)){const d=l.up(f);u[d]=n(t[f],f)}else{const d=f;u[d]=t[d]}return u},{})}return n(t)}function cw(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,o)=>{const l=e.up(o);return i[l]={},i},{}))||{}}function fw(e,t){return e.reduce((n,i)=>{const o=n[i];return(!o||Object.keys(o).length===0)&&delete n[i],n},t)}function M2(e,...t){const n=cw(e),i=[n,...t].reduce((o,l)=>sn(o,l),{});return fw(Object.keys(n),i)}function N2(e,t){if(typeof e!="object")return{};const n={},i=Object.keys(t);return Array.isArray(e)?i.forEach((o,l)=>{l<e.length&&(n[o]=!0)}):i.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function ah({values:e,breakpoints:t,base:n}){const i=n||N2(e,t),o=Object.keys(i);if(o.length===0)return e;let l;return o.reduce((u,f,d)=>(Array.isArray(e)?(u[f]=e[d]!=null?e[d]:e[l],l=d):typeof e=="object"?(u[f]=e[f]!=null?e[f]:e[l],l=f):u[f]=e,u),{})}function xe(e){if(typeof e!="string")throw new Error(mi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function uf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((o,l)=>o&&o[l]?o[l]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function Pc(e,t,n,i=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||i:o=uf(e,n)||i,t&&(o=t(o,i,e)),o}function Ft(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:o}=e,l=u=>{if(u[t]==null)return null;const f=u[t],d=u.theme,p=uf(d,i)||{};return wr(u,f,g=>{let v=Pc(p,o,g);return g===v&&typeof g=="string"&&(v=Pc(p,o,`${t}${g==="default"?"":xe(g)}`,g)),n===!1?v:{[n]:v}})};return l.propTypes={},l.filterProps=[t],l}function D2(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const L2={m:"margin",p:"padding"},z2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},F0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B2=D2(e=>{if(e.length>2)if(F0[e])e=F0[e];else return[e];const[t,n]=e.split(""),i=L2[t],o=z2[n]||"";return Array.isArray(o)?o.map(l=>i+l):[i+o]}),zm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...zm,...Bm];function Ul(e,t,n,i){const o=uf(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?l=>typeof l=="string"?l:typeof o=="string"?`calc(${l} * ${o})`:o*l:Array.isArray(o)?l=>{if(typeof l=="string")return l;const u=Math.abs(l),f=o[u];return l>=0?f:typeof f=="number"?-f:`-${f}`}:typeof o=="function"?o:()=>{}}function cf(e){return Ul(e,"spacing",8)}function _a(e,t){return typeof t=="string"||t==null?t:e(t)}function I2(e,t){return n=>e.reduce((i,o)=>(i[o]=_a(t,n),i),{})}function j2(e,t,n,i){if(!t.includes(n))return null;const o=B2(n),l=I2(o,i),u=e[n];return wr(e,u,l)}function dw(e,t){const n=cf(e.theme);return Object.keys(e).map(i=>j2(e,t,i,n)).reduce(ml,{})}function zt(e){return dw(e,zm)}zt.propTypes={};zt.filterProps=zm;function Bt(e){return dw(e,Bm)}Bt.propTypes={};Bt.filterProps=Bm;function pw(e=8,t=cf({spacing:e})){if(e.mui)return e;const n=(...i)=>(i.length===0?[1]:i).map(l=>{const u=t(l);return typeof u=="number"?`${u}px`:u}).join(" ");return n.mui=!0,n}function ff(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(l=>{i[l]=o}),i),{}),n=i=>Object.keys(i).reduce((o,l)=>t[l]?ml(o,t[l](i)):o,{});return n.propTypes={},n.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),n}function cr(e){return typeof e!="number"?e:`${e}px solid`}function mr(e,t){return Ft({prop:e,themeKey:"borders",transform:t})}const $2=mr("border",cr),P2=mr("borderTop",cr),U2=mr("borderRight",cr),H2=mr("borderBottom",cr),q2=mr("borderLeft",cr),F2=mr("borderColor"),V2=mr("borderTopColor"),G2=mr("borderRightColor"),K2=mr("borderBottomColor"),Y2=mr("borderLeftColor"),X2=mr("outline",cr),W2=mr("outlineColor"),df=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ul(e.theme,"shape.borderRadius",4),n=i=>({borderRadius:_a(t,i)});return wr(e,e.borderRadius,n)}return null};df.propTypes={};df.filterProps=["borderRadius"];ff($2,P2,U2,H2,q2,F2,V2,G2,K2,Y2,df,X2,W2);const pf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ul(e.theme,"spacing",8),n=i=>({gap:_a(t,i)});return wr(e,e.gap,n)}return null};pf.propTypes={};pf.filterProps=["gap"];const hf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ul(e.theme,"spacing",8),n=i=>({columnGap:_a(t,i)});return wr(e,e.columnGap,n)}return null};hf.propTypes={};hf.filterProps=["columnGap"];const mf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ul(e.theme,"spacing",8),n=i=>({rowGap:_a(t,i)});return wr(e,e.rowGap,n)}return null};mf.propTypes={};mf.filterProps=["rowGap"];const Q2=Ft({prop:"gridColumn"}),Z2=Ft({prop:"gridRow"}),J2=Ft({prop:"gridAutoFlow"}),eA=Ft({prop:"gridAutoColumns"}),tA=Ft({prop:"gridAutoRows"}),nA=Ft({prop:"gridTemplateColumns"}),rA=Ft({prop:"gridTemplateRows"}),iA=Ft({prop:"gridTemplateAreas"}),aA=Ft({prop:"gridArea"});ff(pf,hf,mf,Q2,Z2,J2,eA,tA,nA,rA,iA,aA);function No(e,t){return t==="grey"?t:e}const oA=Ft({prop:"color",themeKey:"palette",transform:No}),sA=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:No}),lA=Ft({prop:"backgroundColor",themeKey:"palette",transform:No});ff(oA,sA,lA);function Gn(e){return e<=1&&e!==0?`${e*100}%`:e}const uA=Ft({prop:"width",transform:Gn}),Im=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,l,u,f,d;const i=((u=(l=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:l.values)==null?void 0:u[n])||lf[n];return i?((d=(f=e.theme)==null?void 0:f.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Gn(n)}};return wr(e,e.maxWidth,t)}return null};Im.filterProps=["maxWidth"];const cA=Ft({prop:"minWidth",transform:Gn}),fA=Ft({prop:"height",transform:Gn}),dA=Ft({prop:"maxHeight",transform:Gn}),pA=Ft({prop:"minHeight",transform:Gn});Ft({prop:"size",cssProperty:"width",transform:Gn});Ft({prop:"size",cssProperty:"height",transform:Gn});const hA=Ft({prop:"boxSizing"});ff(uA,Im,cA,fA,dA,pA,hA);const Hl={border:{themeKey:"borders",transform:cr},borderTop:{themeKey:"borders",transform:cr},borderRight:{themeKey:"borders",transform:cr},borderBottom:{themeKey:"borders",transform:cr},borderLeft:{themeKey:"borders",transform:cr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:cr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:df},color:{themeKey:"palette",transform:No},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:No},backgroundColor:{themeKey:"palette",transform:No},p:{style:Bt},pt:{style:Bt},pr:{style:Bt},pb:{style:Bt},pl:{style:Bt},px:{style:Bt},py:{style:Bt},padding:{style:Bt},paddingTop:{style:Bt},paddingRight:{style:Bt},paddingBottom:{style:Bt},paddingLeft:{style:Bt},paddingX:{style:Bt},paddingY:{style:Bt},paddingInline:{style:Bt},paddingInlineStart:{style:Bt},paddingInlineEnd:{style:Bt},paddingBlock:{style:Bt},paddingBlockStart:{style:Bt},paddingBlockEnd:{style:Bt},m:{style:zt},mt:{style:zt},mr:{style:zt},mb:{style:zt},ml:{style:zt},mx:{style:zt},my:{style:zt},margin:{style:zt},marginTop:{style:zt},marginRight:{style:zt},marginBottom:{style:zt},marginLeft:{style:zt},marginX:{style:zt},marginY:{style:zt},marginInline:{style:zt},marginInlineStart:{style:zt},marginInlineEnd:{style:zt},marginBlock:{style:zt},marginBlockStart:{style:zt},marginBlockEnd:{style:zt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pf},rowGap:{style:mf},columnGap:{style:hf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gn},maxWidth:{style:Im},minWidth:{transform:Gn},height:{transform:Gn},maxHeight:{transform:Gn},minHeight:{transform:Gn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mA(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function gA(e,t){return typeof e=="function"?e(t):e}function yA(){function e(n,i,o,l){const u={[n]:i,theme:o},f=l[n];if(!f)return{[n]:i};const{cssProperty:d=n,themeKey:p,transform:m,style:g}=f;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[n]:i};const v=uf(o,p)||{};return g?g(u):wr(u,i,w=>{let S=Pc(v,m,w);return w===S&&typeof w=="string"&&(S=Pc(v,m,`${n}${w==="default"?"":xe(w)}`,w)),d===!1?S:{[d]:S}})}function t(n){const{sx:i,theme:o={}}=n||{};if(!i)return null;const l=o.unstable_sxConfig??Hl;function u(f){let d=f;if(typeof f=="function")d=f(o);else if(typeof f!="object")return f;if(!d)return null;const p=cw(o.breakpoints),m=Object.keys(p);let g=p;return Object.keys(d).forEach(v=>{const b=gA(d[v],o);if(b!=null)if(typeof b=="object")if(l[v])g=ml(g,e(v,b,o,l));else{const w=wr({theme:o},b,S=>({[v]:S}));mA(w,b)?g[v]=t({sx:b,theme:o}):g=ml(g,w)}else g=ml(g,e(v,b,o,l))}),E2(o,fw(m,g))}return Array.isArray(i)?i.map(u):u(i)}return t}const Vi=yA();Vi.filterProps=["sx"];function bA(e,t){var i;const n=this;if(n.vars){if(!((i=n.colorSchemes)!=null&&i[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Go(e={},...t){const{breakpoints:n={},palette:i={},spacing:o,shape:l={},...u}=e,f=k2(n),d=pw(o);let p=sn({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...R2,...l}},u);return p=_2(p),p.applyStyles=bA,p=t.reduce((m,g)=>sn(m,g),p),p.unstable_sxConfig={...Hl,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(g){return Vi({sx:g,theme:this})},p}function vA(e){return Object.keys(e).length===0}function hw(e=null){const t=T.useContext($l);return!t||vA(t)?e:t}const SA=Go();function ql(e=SA){return hw(e)}function wA({styles:e,themeId:t,defaultTheme:n={}}){const i=ql(n),o=typeof e=="function"?e(t&&i[t]||i):e;return $.jsx(ow,{styles:o})}const xA=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Hl;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function gf(e){const{sx:t,...n}=e,{systemProps:i,otherProps:o}=xA(n);let l;return Array.isArray(t)?l=[i,...t]:typeof t=="function"?l=(...u)=>{const f=t(...u);return Ur(f)?{...i,...f}:i}:l={...i,...t},{...o,sx:l}}const V0=e=>e,CA=()=>{let e=V0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=V0}}},mw=CA();function gw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gw(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Oe(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gw(e))&&(i&&(i+=" "),i+=t);return i}function kA(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:o}=e,l=sw("div",{shouldForwardProp:f=>f!=="theme"&&f!=="sx"&&f!=="as"})(Vi);return T.forwardRef(function(d,p){const m=ql(n),{className:g,component:v="div",...b}=gf(d);return $.jsx(l,{as:v,ref:p,className:Oe(g,o?o(i):i),theme:t&&m[t]||m,...b})})}const EA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ke(e,t,n="Mui"){const i=EA[t];return i?`${n}-${i}`:`${mw.generate(e)}-${t}`}function Ve(e,t,n="Mui"){const i={};return t.forEach(o=>{i[o]=Ke(e,o,n)}),i}function yw(e){const{variants:t,...n}=e,i={variants:t,style:P0(n),isProcessed:!0};return i.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=P0(o.style))}),i}const TA=Go();function oh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function AA(e){return e?(t,n)=>n[e]:null}function _A(e,t,n){e.theme=OA(e.theme)?n:e.theme[t]||e.theme}function Rc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>Rc(e,i));if(Array.isArray(n==null?void 0:n.variants)){let i;if(n.isProcessed)i=n.style;else{const{variants:o,...l}=n;i=l}return bw(e,n.variants,[i])}return n!=null&&n.isProcessed?n.style:n}function bw(e,t,n=[]){var o;let i;e:for(let l=0;l<t.length;l+=1){const u=t[l];if(typeof u.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(i))continue}else for(const f in u.props)if(e[f]!==u.props[f]&&((o=e.ownerState)==null?void 0:o[f])!==u.props[f])continue e;typeof u.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),n.push(u.style(i))):n.push(u.style)}return n}function vw(e={}){const{themeId:t,defaultTheme:n=TA,rootShouldForwardProp:i=oh,slotShouldForwardProp:o=oh}=e;function l(f){_A(f,t,n)}return(f,d={})=>{S2(f,R=>R.filter(M=>M!==Vi));const{name:p,slot:m,skipVariantsResolver:g,skipSx:v,overridesResolver:b=AA(NA(m)),...w}=d,S=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,k=v||!1;let A=oh;m==="Root"||m==="root"?A=i:m?A=o:MA(f)&&(A=void 0);const N=sw(f,{shouldForwardProp:A,label:RA(),...w}),_=R=>{if(typeof R=="function"&&R.__emotion_real!==R)return function(B){return Rc(B,R)};if(Ur(R)){const M=yw(R);return M.variants?function(I){return Rc(I,M)}:M.style}return R},O=(...R)=>{const M=[],B=R.map(_),I=[];if(M.push(l),p&&b&&I.push(function(U){var H,Z;const Y=(Z=(H=U.theme.components)==null?void 0:H[p])==null?void 0:Z.styleOverrides;if(!Y)return null;const V={};for(const ae in Y)V[ae]=Rc(U,Y[ae]);return b(U,V)}),p&&!S&&I.push(function(U){var V,H;const G=U.theme,Y=(H=(V=G==null?void 0:G.components)==null?void 0:V[p])==null?void 0:H.variants;return Y?bw(U,Y):null}),k||I.push(Vi),Array.isArray(B[0])){const j=B.shift(),U=new Array(M.length).fill(""),G=new Array(I.length).fill("");let Y;Y=[...U,...j,...G],Y.raw=[...U,...j.raw,...G],M.unshift(Y)}const P=[...M,...B,...I],E=N(...P);return f.muiName&&(E.muiName=f.muiName),E};return N.withConfig&&(O.withConfig=N.withConfig),O}}function RA(e,t){return void 0}function OA(e){for(const t in e)return!1;return!0}function MA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function NA(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const jm=vw();function Rl(e,t){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const l=e[o],u=t[o];if(!u)n[o]=l||{};else if(!l)n[o]=u;else{n[o]={...u};for(const f in l)if(Object.prototype.hasOwnProperty.call(l,f)){const d=f;n[o][d]=Rl(l[d],u[d])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function DA(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:Rl(t.components[n].defaultProps,i)}function $m({props:e,name:t,defaultTheme:n,themeId:i}){let o=ql(n);return i&&(o=o[i]||o),DA({theme:o,name:t,props:e})}const gi=typeof window<"u"?T.useLayoutEffect:T.useEffect;function LA(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Pm(e,t=0,n=1){return LA(e,t,n)}function zA(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),n?`rgb${n.length===4?"a":""}(${n.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Gi(e){if(e.type)return e;if(e.charAt(0)==="#")return Gi(zA(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(mi(9,e));let i=e.substring(t+1,e.length-1),o;if(n==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(mi(10,o))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:n,values:i,colorSpace:o}}const BA=e=>{const t=Gi(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},ul=(e,t)=>{try{return BA(e)}catch{return e}};function yf(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,l)=>l<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Sw(e){e=Gi(e);const{values:t}=e,n=t[0],i=t[1]/100,o=t[2]/100,l=i*Math.min(o,1-o),u=(p,m=(p+n/30)%12)=>o-l*Math.max(Math.min(m-3,9-m,1),-1);let f="rgb";const d=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(f+="a",d.push(t[3])),yf({type:f,values:d})}function Fh(e){e=Gi(e);let t=e.type==="hsl"||e.type==="hsla"?Gi(Sw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function IA(e,t){const n=Fh(e),i=Fh(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function bn(e,t){return e=Gi(e),t=Pm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,yf(e)}function fc(e,t,n){try{return bn(e,t)}catch{return e}}function Um(e,t){if(e=Gi(e),t=Pm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return yf(e)}function vt(e,t,n){try{return Um(e,t)}catch{return e}}function Hm(e,t){if(e=Gi(e),t=Pm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return yf(e)}function St(e,t,n){try{return Hm(e,t)}catch{return e}}function jA(e,t=.15){return Fh(e)>.5?Um(e,t):Hm(e,t)}function dc(e,t,n){try{return jA(e,t)}catch{return e}}function G0(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ww(e,t=166){let n;function i(...o){const l=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(l,t)}return i.clear=()=>{clearTimeout(n)},i}function Oc(e,t){var n,i,o;return T.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(i=(n=e.type)==null?void 0:n._payload)==null?void 0:i.value)==null?void 0:o.muiName))!==-1}function xr(e){return e&&e.ownerDocument||document}function yi(e){return xr(e).defaultView||window}function Vh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let K0=0;function $A(e){const[t,n]=T.useState(e),i=e||t;return T.useEffect(()=>{t==null&&(K0+=1,n(`mui-${K0}`))},[t]),i}const PA={...$h},Y0=PA.useId;function Fl(e){if(Y0!==void 0){const t=Y0();return e??t}return $A(e)}function Gh({controlled:e,default:t,name:n,state:i="value"}){const{current:o}=T.useRef(e!==void 0),[l,u]=T.useState(t),f=o?e:l,d=T.useCallback(p=>{o||u(p)},[]);return[f,d]}function Do(e){const t=T.useRef(e);return gi(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function En(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Vh(n,t)})},e)}const X0={};function xw(e,t){const n=T.useRef(X0);return n.current===X0&&(n.current=e(t)),n}const UA=[];function HA(e){T.useEffect(e,UA)}class qm{constructor(){Qs(this,"currentId",null);Qs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Qs(this,"disposeEffect",()=>this.clear)}static create(){return new qm}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Cw(){const e=xw(qm.create).current;return HA(e.disposeEffect),e}function W0(e){try{return e.matches(":focus-visible")}catch{}return!1}function kw(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ye(e,t,n=void 0){const i={};for(const o in e){const l=e[o];let u="",f=!0;for(let d=0;d<l.length;d+=1){const p=l[d];p&&(u+=(f===!0?"":" ")+t(p),f=!1,n&&n[p]&&(u+=" "+n[p]))}i[o]=u}return i}function qA(e){return typeof e=="string"}function Ew(e,t,n){return e===void 0||qA(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Tw(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function Q0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Aw(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:l}=e;if(!t){const b=Oe(n==null?void 0:n.className,l,o==null?void 0:o.className,i==null?void 0:i.className),w={...n==null?void 0:n.style,...o==null?void 0:o.style,...i==null?void 0:i.style},S={...n,...o,...i};return b.length>0&&(S.className=b),Object.keys(w).length>0&&(S.style=w),{props:S,internalRef:void 0}}const u=Tw({...o,...i}),f=Q0(i),d=Q0(o),p=t(u),m=Oe(p==null?void 0:p.className,n==null?void 0:n.className,l,o==null?void 0:o.className,i==null?void 0:i.className),g={...p==null?void 0:p.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...i==null?void 0:i.style},v={...p,...n,...d,...f};return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:p.ref}}function _w(e,t,n){return typeof e=="function"?e(t,n):e}function FA(e){var g;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...l}=e,u=o?{}:_w(n,i),{props:f,internalRef:d}=Aw({...l,externalSlotProps:u}),p=En(d,u==null?void 0:u.ref,(g=e.additionalProps)==null?void 0:g.ref);return Ew(t,{...f,ref:p},i)}function Vl(e){var t;return parseInt(T.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Rw=T.createContext(null);function Fm(){return T.useContext(Rw)}const VA=typeof Symbol=="function"&&Symbol.for,GA=VA?Symbol.for("mui.nested"):"__THEME_NESTED__";function KA(e,t){return typeof t=="function"?t(e):{...e,...t}}function YA(e){const{children:t,theme:n}=e,i=Fm(),o=T.useMemo(()=>{const l=i===null?{...n}:KA(i,n);return l!=null&&(l[GA]=i!==null),l},[n,i]);return $.jsx(Rw.Provider,{value:o,children:t})}const Ow=T.createContext();function XA({value:e,...t}){return $.jsx(Ow.Provider,{value:e??!0,...t})}const WA=()=>T.useContext(Ow)??!1,Mw=T.createContext(void 0);function QA({value:e,children:t}){return $.jsx(Mw.Provider,{value:e,children:t})}function ZA(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const o=t.components[n];return o.defaultProps?Rl(o.defaultProps,i):!o.styleOverrides&&!o.variants?Rl(o,i):i}function JA({props:e,name:t}){const n=T.useContext(Mw);return ZA({props:e,name:t,theme:{components:n}})}const Z0={};function J0(e,t,n,i=!1){return T.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const l=n(o),u=e?{...t,[e]:l}:l;return i?()=>u:u}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,i])}function Nw(e){const{children:t,theme:n,themeId:i}=e,o=hw(Z0),l=Fm()||Z0,u=J0(i,o,n),f=J0(i,l,n,!0),d=(i?u[i]:u).direction==="rtl";return $.jsx(YA,{theme:f,children:$.jsx($l.Provider,{value:u,children:$.jsx(XA,{value:d,children:$.jsx(QA,{value:i?u[i].components:u.components,children:t})})})})}const eS={theme:void 0};function e_(e){let t,n;return function(o){let l=t;return(l===void 0||o.theme!==n)&&(eS.theme=o.theme,l=yw(e(eS)),t=l,n=o.theme),l}}const Vm="mode",Gm="color-scheme",t_="data-color-scheme";function n_(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:i="dark",modeStorageKey:o=Vm,colorSchemeStorageKey:l=Gm,attribute:u=t_,colorSchemeNode:f="document.documentElement",nonce:d}=e||{};let p="",m=u;if(u==="class"&&(m=".%s"),u==="data"&&(m="[data-%s]"),m.startsWith(".")){const v=m.substring(1);p+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
|
||
${f}.classList.add('${v}'.replace('%s', colorScheme));`}const g=m.match(/\[([^\]]+)\]/);if(g){const[v,b]=g[1].split("=");b||(p+=`${f}.removeAttribute('${v}'.replace('%s', light));
|
||
${f}.removeAttribute('${v}'.replace('%s', dark));`),p+=`
|
||
${f}.setAttribute('${v}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else p+=`${f}.setAttribute('${m}', colorScheme);`;return $.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
|
||
try {
|
||
let colorScheme = '';
|
||
const mode = localStorage.getItem('${o}') || '${t}';
|
||
const dark = localStorage.getItem('${l}-dark') || '${i}';
|
||
const light = localStorage.getItem('${l}-light') || '${n}';
|
||
if (mode === 'system') {
|
||
// handle system mode
|
||
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
||
if (mql.matches) {
|
||
colorScheme = dark
|
||
} else {
|
||
colorScheme = light
|
||
}
|
||
}
|
||
if (mode === 'light') {
|
||
colorScheme = light;
|
||
}
|
||
if (mode === 'dark') {
|
||
colorScheme = dark;
|
||
}
|
||
if (colorScheme) {
|
||
${p}
|
||
}
|
||
} catch(e){}})();`}},"mui-color-scheme-init")}function tS(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Dw(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function r_(e){return Dw(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function sh(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function i_(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:i,supportedColorSchemes:o=[],modeStorageKey:l=Vm,colorSchemeStorageKey:u=Gm,storageWindow:f=typeof window>"u"?void 0:window,noSsr:d=!1}=e,p=o.join(","),m=o.length>1,[g,v]=T.useState(()=>{const O=sh(l,t),R=sh(`${u}-light`,n),M=sh(`${u}-dark`,i);return{mode:O,systemMode:tS(O),lightColorScheme:R,darkColorScheme:M}}),[b,w]=T.useState(d||!m);T.useEffect(()=>{w(!0)},[]);const S=r_(g),k=T.useCallback(O=>{v(R=>{if(O===R.mode)return R;const M=O??t;try{localStorage.setItem(l,M)}catch{}return{...R,mode:M,systemMode:tS(M)}})},[l,t]),A=T.useCallback(O=>{O?typeof O=="string"?O&&!p.includes(O)?console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`):v(R=>{const M={...R};return Dw(R,B=>{try{localStorage.setItem(`${u}-${B}`,O)}catch{}B==="light"&&(M.lightColorScheme=O),B==="dark"&&(M.darkColorScheme=O)}),M}):v(R=>{const M={...R},B=O.light===null?n:O.light,I=O.dark===null?i:O.dark;if(B)if(!p.includes(B))console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`);else{M.lightColorScheme=B;try{localStorage.setItem(`${u}-light`,B)}catch{}}if(I)if(!p.includes(I))console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`);else{M.darkColorScheme=I;try{localStorage.setItem(`${u}-dark`,I)}catch{}}return M}):v(R=>{try{localStorage.setItem(`${u}-light`,n),localStorage.setItem(`${u}-dark`,i)}catch{}return{...R,lightColorScheme:n,darkColorScheme:i}})},[p,u,n,i]),N=T.useCallback(O=>{g.mode==="system"&&v(R=>{const M=O!=null&&O.matches?"dark":"light";return R.systemMode===M?R:{...R,systemMode:M}})},[g.mode]),_=T.useRef(N);return _.current=N,T.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const O=(...M)=>_.current(...M),R=window.matchMedia("(prefers-color-scheme: dark)");return R.addListener(O),O(R),()=>{R.removeListener(O)}},[m]),T.useEffect(()=>{if(f&&m){const O=R=>{const M=R.newValue;typeof R.key=="string"&&R.key.startsWith(u)&&(!M||p.match(M))&&(R.key.endsWith("light")&&A({light:M}),R.key.endsWith("dark")&&A({dark:M})),R.key===l&&(!M||["light","dark","system"].includes(M))&&k(M||t)};return f.addEventListener("storage",O),()=>{f.removeEventListener("storage",O)}}},[A,k,l,u,p,t,f,m]),{...g,mode:b?g.mode:void 0,systemMode:b?g.systemMode:void 0,colorScheme:b?S:void 0,setMode:k,setColorScheme:A}}const a_="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function o_(e){const{themeId:t,theme:n={},modeStorageKey:i=Vm,colorSchemeStorageKey:o=Gm,disableTransitionOnChange:l=!1,defaultColorScheme:u,resolveTheme:f}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=T.createContext(void 0),m=()=>T.useContext(p)||d,g={},v={};function b(A){var pn,rt,Sn,ee;const{children:N,theme:_,modeStorageKey:O=i,colorSchemeStorageKey:R=o,disableTransitionOnChange:M=l,storageWindow:B=typeof window>"u"?void 0:window,documentNode:I=typeof document>"u"?void 0:document,colorSchemeNode:P=typeof document>"u"?void 0:document.documentElement,disableNestedContext:E=!1,disableStyleSheetGeneration:j=!1,defaultMode:U="system",noSsr:G}=A,Y=T.useRef(!1),V=Fm(),H=T.useContext(p),Z=!!H&&!E,ae=T.useMemo(()=>_||(typeof n=="function"?n():n),[_]),J=ae[t],C=J||ae,{colorSchemes:X=g,components:de=v,cssVarPrefix:L}=C,ie=Object.keys(X).filter(se=>!!X[se]).join(","),ue=T.useMemo(()=>ie.split(","),[ie]),fe=typeof u=="string"?u:u.light,_e=typeof u=="string"?u:u.dark,ge=X[fe]&&X[_e]?U:((rt=(pn=X[C.defaultColorScheme])==null?void 0:pn.palette)==null?void 0:rt.mode)||((Sn=C.palette)==null?void 0:Sn.mode),{mode:ye,setMode:le,systemMode:we,lightColorScheme:Ce,darkColorScheme:$e,colorScheme:ke,setColorScheme:Ie}=i_({supportedColorSchemes:ue,defaultLightColorScheme:fe,defaultDarkColorScheme:_e,modeStorageKey:O,colorSchemeStorageKey:R,defaultMode:ge,storageWindow:B,noSsr:G});let Ze=ye,qe=ke;Z&&(Ze=H.mode,qe=H.colorScheme);const Je=T.useMemo(()=>{var De;const se=qe||C.defaultColorScheme,he=((De=C.generateThemeVars)==null?void 0:De.call(C))||C.vars,be={...C,components:de,colorSchemes:X,cssVarPrefix:L,vars:he};if(typeof be.generateSpacing=="function"&&(be.spacing=be.generateSpacing()),se){const Te=X[se];Te&&typeof Te=="object"&&Object.keys(Te).forEach(ft=>{Te[ft]&&typeof Te[ft]=="object"?be[ft]={...be[ft],...Te[ft]}:be[ft]=Te[ft]})}return f?f(be):be},[C,qe,de,X,L]),yt=C.colorSchemeSelector;gi(()=>{if(qe&&P&&yt&&yt!=="media"){const se=yt;let he=yt;if(se==="class"&&(he=".%s"),se==="data"&&(he="[data-%s]"),se!=null&&se.startsWith("data-")&&!se.includes("%s")&&(he=`[${se}="%s"]`),he.startsWith("."))P.classList.remove(...ue.map(be=>he.substring(1).replace("%s",be))),P.classList.add(he.substring(1).replace("%s",qe));else{const be=he.replace("%s",qe).match(/\[([^\]]+)\]/);if(be){const[De,Te]=be[1].split("=");Te||ue.forEach(ft=>{P.removeAttribute(De.replace(qe,ft))}),P.setAttribute(De,Te?Te.replace(/"|'/g,""):"")}else P.setAttribute(he,qe)}}},[qe,yt,P,ue]),T.useEffect(()=>{let se;if(M&&Y.current&&I){const he=I.createElement("style");he.appendChild(I.createTextNode(a_)),I.head.appendChild(he),window.getComputedStyle(I.body),se=setTimeout(()=>{I.head.removeChild(he)},1)}return()=>{clearTimeout(se)}},[qe,M,I]),T.useEffect(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const tt=T.useMemo(()=>({allColorSchemes:ue,colorScheme:qe,darkColorScheme:$e,lightColorScheme:Ce,mode:Ze,setColorScheme:Ie,setMode:le,systemMode:we}),[ue,qe,$e,Ce,Ze,Ie,le,we,Je.colorSchemeSelector]);let nt=!0;(j||C.cssVariables===!1||Z&&(V==null?void 0:V.cssVarPrefix)===L)&&(nt=!1);const Se=$.jsxs(T.Fragment,{children:[$.jsx(Nw,{themeId:J?t:void 0,theme:Je,children:N}),nt&&$.jsx(ow,{styles:((ee=Je.generateStyleSheets)==null?void 0:ee.call(Je))||[]})]});return Z?Se:$.jsx(p.Provider,{value:tt,children:Se})}const w=typeof u=="string"?u:u.light,S=typeof u=="string"?u:u.dark;return{CssVarsProvider:b,useColorScheme:m,getInitColorSchemeScript:A=>n_({colorSchemeStorageKey:o,defaultLightColorScheme:w,defaultDarkColorScheme:S,modeStorageKey:i,...A})}}function s_(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const nS=(e,t,n,i=[])=>{let o=e;t.forEach((l,u)=>{u===t.length-1?Array.isArray(o)?o[Number(l)]=n:o&&typeof o=="object"&&(o[l]=n):o&&typeof o=="object"&&(o[l]||(o[l]=i.includes(l)?[]:{}),o=o[l])})},l_=(e,t,n)=>{function i(o,l=[],u=[]){Object.entries(o).forEach(([f,d])=>{(!n||n&&!n([...l,f]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?i(d,[...l,f],Array.isArray(d)?[...u,f]:u):t([...l,f],d,u))})}i(e)},u_=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function lh(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},o={},l={},u={};return l_(e,(f,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!i||!i(f,d))){const m=`--${n?`${n}-`:""}${f.join("-")}`,g=u_(f,d);Object.assign(o,{[m]:g}),nS(l,f,`var(${m})`,p),nS(u,f,`var(${m}, ${g})`,p)}},f=>f[0]==="vars"),{css:o,vars:l,varsWithDefaults:u}}function c_(e,t={}){const{getSelector:n=k,disableCssColorScheme:i,colorSchemeSelector:o}=t,{colorSchemes:l={},components:u,defaultColorScheme:f="light",...d}=e,{vars:p,css:m,varsWithDefaults:g}=lh(d,t);let v=g;const b={},{[f]:w,...S}=l;if(Object.entries(S||{}).forEach(([_,O])=>{const{vars:R,css:M,varsWithDefaults:B}=lh(O,t);v=sn(v,B),b[_]={css:M,vars:R}}),w){const{css:_,vars:O,varsWithDefaults:R}=lh(w,t);v=sn(v,R),b[f]={css:_,vars:O}}function k(_,O){var M,B;let R=o;if(o==="class"&&(R=".%s"),o==="data"&&(R="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(R=`[${o}="%s"]`),_){if(R==="media")return e.defaultColorScheme===_?":root":{[`@media (prefers-color-scheme: ${((B=(M=l[_])==null?void 0:M.palette)==null?void 0:B.mode)||_})`]:{":root":O}};if(R)return e.defaultColorScheme===_?`:root, ${R.replace("%s",String(_))}`:R.replace("%s",String(_))}return":root"}return{vars:v,generateThemeVars:()=>{let _={...p};return Object.entries(b).forEach(([,{vars:O}])=>{_=sn(_,O)}),_},generateStyleSheets:()=>{var I,P;const _=[],O=e.defaultColorScheme||"light";function R(E,j){Object.keys(j).length&&_.push(typeof E=="string"?{[E]:{...j}}:E)}R(n(void 0,{...m}),m);const{[O]:M,...B}=b;if(M){const{css:E}=M,j=(P=(I=l[O])==null?void 0:I.palette)==null?void 0:P.mode,U=!i&&j?{colorScheme:j,...E}:{...E};R(n(O,{...U}),U)}return Object.entries(B).forEach(([E,{css:j}])=>{var Y,V;const U=(V=(Y=l[E])==null?void 0:Y.palette)==null?void 0:V.mode,G=!i&&U?{colorScheme:U,...j}:{...j};R(n(E,{...G}),G)}),_}}}function f_(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const d_=Go(),p_=jm("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${xe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),h_=e=>$m({props:e,name:"MuiContainer",defaultTheme:d_}),m_=(e,t)=>{const n=d=>Ke(t,d),{classes:i,fixed:o,disableGutters:l,maxWidth:u}=e,f={root:["root",u&&`maxWidth${xe(String(u))}`,o&&"fixed",l&&"disableGutters"]};return Ye(f,n,i)};function g_(e={}){const{createStyledComponent:t=p_,useThemeProps:n=h_,componentName:i="MuiContainer"}=e,o=t(({theme:u,ownerState:f})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!f.disableGutters&&{paddingLeft:u.spacing(2),paddingRight:u.spacing(2),[u.breakpoints.up("sm")]:{paddingLeft:u.spacing(3),paddingRight:u.spacing(3)}}}),({theme:u,ownerState:f})=>f.fixed&&Object.keys(u.breakpoints.values).reduce((d,p)=>{const m=p,g=u.breakpoints.values[m];return g!==0&&(d[u.breakpoints.up(m)]={maxWidth:`${g}${u.breakpoints.unit}`}),d},{}),({theme:u,ownerState:f})=>({...f.maxWidth==="xs"&&{[u.breakpoints.up("xs")]:{maxWidth:Math.max(u.breakpoints.values.xs,444)}},...f.maxWidth&&f.maxWidth!=="xs"&&{[u.breakpoints.up(f.maxWidth)]:{maxWidth:`${u.breakpoints.values[f.maxWidth]}${u.breakpoints.unit}`}}}));return T.forwardRef(function(f,d){const p=n(f),{className:m,component:g="div",disableGutters:v=!1,fixed:b=!1,maxWidth:w="lg",classes:S,...k}=p,A={...p,component:g,disableGutters:v,fixed:b,maxWidth:w},N=m_(A,i);return $.jsx(o,{as:g,ownerState:A,className:Oe(N.root,m),ref:d,...k})})}const y_=(e,t)=>e.filter(n=>t.includes(n)),Ko=(e,t,n)=>{const i=e.keys[0];Array.isArray(t)?t.forEach((o,l)=>{n((u,f)=>{l<=e.keys.length-1&&(l===0?Object.assign(u,f):u[e.up(e.keys[l])]=f)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:y_(e.keys,Object.keys(t))).forEach(l=>{if(e.keys.includes(l)){const u=t[l];u!==void 0&&n((f,d)=>{i===l?Object.assign(f,d):f[e.up(l)]=d},u)}}):(typeof t=="number"||typeof t=="string")&&n((o,l)=>{Object.assign(o,l)},t)};function Uc(e){return`--Grid-${e}Spacing`}function bf(e){return`--Grid-parent-${e}Spacing`}const rS="--Grid-columns",Lo="--Grid-parent-columns",b_=({theme:e,ownerState:t})=>{const n={};return Ko(e.breakpoints,t.size,(i,o)=>{let l={};o==="grow"&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Lo}) - (var(${Lo}) - ${o}) * (var(${bf("column")}) / var(${Lo})))`}),i(n,l)}),n},v_=({theme:e,ownerState:t})=>{const n={};return Ko(e.breakpoints,t.offset,(i,o)=>{let l={};o==="auto"&&(l={marginLeft:"auto"}),typeof o=="number"&&(l={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Lo}) + var(${bf("column")}) * ${o} / var(${Lo}))`}),i(n,l)}),n},S_=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[rS]:12};return Ko(e.breakpoints,t.columns,(i,o)=>{const l=o??12;i(n,{[rS]:l,"> *":{[Lo]:l}})}),n},w_=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ko(e.breakpoints,t.rowSpacing,(i,o)=>{var u;const l=typeof o=="string"?o:(u=e.spacing)==null?void 0:u.call(e,o);i(n,{[Uc("row")]:l,"> *":{[bf("row")]:l}})}),n},x_=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ko(e.breakpoints,t.columnSpacing,(i,o)=>{var u;const l=typeof o=="string"?o:(u=e.spacing)==null?void 0:u.call(e,o);i(n,{[Uc("column")]:l,"> *":{[bf("column")]:l}})}),n},C_=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ko(e.breakpoints,t.direction,(i,o)=>{i(n,{flexDirection:o})}),n},k_=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Uc("row")}) var(${Uc("column")})`}}),E_=e=>{const t=[];return Object.entries(e).forEach(([n,i])=>{i!==!1&&i!==void 0&&t.push(`grid-${n}-${String(i)}`)}),t},T_=(e,t="xs")=>{function n(i){return i===void 0?!1:typeof i=="string"&&!Number.isNaN(Number(i))||typeof i=="number"&&i>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const i=[];return Object.entries(e).forEach(([o,l])=>{n(l)&&i.push(`spacing-${o}-${String(l)}`)}),i}return[]},A_=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function __(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const R_=Go(),O_=jm("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function M_(e){return $m({props:e,name:"MuiGrid",defaultTheme:R_})}function N_(e={}){const{createStyledComponent:t=O_,useThemeProps:n=M_,useTheme:i=ql,componentName:o="MuiGrid"}=e,l=(p,m)=>{const{container:g,direction:v,spacing:b,wrap:w,size:S}=p,k={root:["root",g&&"container",w!=="wrap"&&`wrap-xs-${String(w)}`,...A_(v),...E_(S),...g?T_(b,m.breakpoints.keys[0]):[]]};return Ye(k,A=>Ke(o,A),{})};function u(p,m,g=()=>!0){const v={};return p===null||(Array.isArray(p)?p.forEach((b,w)=>{b!==null&&g(b)&&m.keys[w]&&(v[m.keys[w]]=b)}):typeof p=="object"?Object.keys(p).forEach(b=>{const w=p[b];w!=null&&g(w)&&(v[b]=w)}):v[m.keys[0]]=p),v}const f=t(S_,x_,w_,b_,C_,k_,v_),d=T.forwardRef(function(m,g){const v=i(),b=n(m),w=gf(b);__(w,v.breakpoints);const{className:S,children:k,columns:A=12,container:N=!1,component:_="div",direction:O="row",wrap:R="wrap",size:M={},offset:B={},spacing:I=0,rowSpacing:P=I,columnSpacing:E=I,unstable_level:j=0,...U}=w,G=u(M,v.breakpoints,X=>X!==!1),Y=u(B,v.breakpoints),V=m.columns??(j?void 0:A),H=m.spacing??(j?void 0:I),Z=m.rowSpacing??m.spacing??(j?void 0:P),ae=m.columnSpacing??m.spacing??(j?void 0:E),J={...w,level:j,columns:V,container:N,direction:O,wrap:R,spacing:H,rowSpacing:Z,columnSpacing:ae,size:G,offset:Y},C=l(J,v);return $.jsx(f,{ref:g,as:_,ownerState:J,className:Oe(C.root,S),...U,children:T.Children.map(k,X=>{var de;return T.isValidElement(X)&&Oc(X,["Grid"])&&N&&X.props.container?T.cloneElement(X,{unstable_level:((de=X.props)==null?void 0:de.unstable_level)??j+1}):X})})});return d.muiName="Grid",d}const D_=Go(),L_=jm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function z_(e){return $m({props:e,name:"MuiStack",defaultTheme:D_})}function B_(e,t){const n=T.Children.toArray(e).filter(Boolean);return n.reduce((i,o,l)=>(i.push(o),l<n.length-1&&i.push(T.cloneElement(t,{key:`separator-${l}`})),i),[])}const I_=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],j_=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...wr({theme:t},ah({values:e.direction,breakpoints:t.breakpoints.values}),i=>({flexDirection:i}))};if(e.spacing){const i=cf(t),o=Object.keys(t.breakpoints.values).reduce((d,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(d[p]=!0),d),{}),l=ah({values:e.direction,base:o}),u=ah({values:e.spacing,base:o});typeof l=="object"&&Object.keys(l).forEach((d,p,m)=>{if(!l[d]){const v=p>0?l[m[p-1]]:"column";l[d]=v}}),n=sn(n,wr({theme:t},u,(d,p)=>e.useFlexGap?{gap:_a(i,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${I_(p?l[p]:e.direction)}`]:_a(i,d)}}))}return n=M2(t.breakpoints,n),n};function $_(e={}){const{createStyledComponent:t=L_,useThemeProps:n=z_,componentName:i="MuiStack"}=e,o=()=>Ye({root:["root"]},d=>Ke(i,d),{}),l=t(j_);return T.forwardRef(function(d,p){const m=n(d),g=gf(m),{component:v="div",direction:b="column",spacing:w=0,divider:S,children:k,className:A,useFlexGap:N=!1,..._}=g,O={direction:b,spacing:w,useFlexGap:N},R=o();return $.jsx(l,{as:v,ownerState:O,ref:p,className:Oe(R.root,A),..._,children:S?B_(k,S):k})})}const Ol={black:"#000",white:"#fff"},P_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},yo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},va={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828",A400:"#ff1744"},tl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},bo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},So={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Lw(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ol.white,default:Ol.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const U_=Lw();function zw(){return{text:{primary:Ol.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ol.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const iS=zw();function aS(e,t,n,i){const o=i.light||i,l=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Hm(e.main,o):t==="dark"&&(e.dark=Um(e.main,l)))}function H_(e="light"){return e==="dark"?{main:bo[200],light:bo[50],dark:bo[400]}:{main:bo[700],light:bo[400],dark:bo[800]}}function q_(e="light"){return e==="dark"?{main:yo[200],light:yo[50],dark:yo[400]}:{main:yo[500],light:yo[300],dark:yo[700]}}function F_(e="light"){return e==="dark"?{main:va[500],light:va[300],dark:va[700]}:{main:va[700],light:va[400],dark:va[800]}}function V_(e="light"){return e==="dark"?{main:vo[400],light:vo[300],dark:vo[700]}:{main:vo[700],light:vo[500],dark:vo[900]}}function G_(e="light"){return e==="dark"?{main:So[400],light:So[300],dark:So[700]}:{main:So[800],light:So[500],dark:So[900]}}function K_(e="light"){return e==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:"#ed6c02",light:tl[500],dark:tl[900]}}function Km(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,...o}=e,l=e.primary||H_(t),u=e.secondary||q_(t),f=e.error||F_(t),d=e.info||V_(t),p=e.success||G_(t),m=e.warning||K_(t);function g(S){return IA(S,iS.text.primary)>=n?iS.text.primary:U_.text.primary}const v=({color:S,name:k,mainShade:A=500,lightShade:N=300,darkShade:_=700})=>{if(S={...S},!S.main&&S[A]&&(S.main=S[A]),!S.hasOwnProperty("main"))throw new Error(mi(11,k?` (${k})`:"",A));if(typeof S.main!="string")throw new Error(mi(12,k?` (${k})`:"",JSON.stringify(S.main)));return aS(S,"light",N,i),aS(S,"dark",_,i),S.contrastText||(S.contrastText=g(S.main)),S};let b;return t==="light"?b=Lw():t==="dark"&&(b=zw()),sn({common:{...Ol},mode:t,primary:v({color:l,name:"primary"}),secondary:v({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:f,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:d,name:"info"}),success:v({color:p,name:"success"}),grey:P_,contrastThreshold:n,getContrastText:g,augmentColor:v,tonalOffset:i,...b},o)}function Y_(e){const t={};return Object.entries(e).forEach(i=>{const[o,l]=i;typeof l=="object"&&(t[o]=`${l.fontStyle?`${l.fontStyle} `:""}${l.fontVariant?`${l.fontVariant} `:""}${l.fontWeight?`${l.fontWeight} `:""}${l.fontStretch?`${l.fontStretch} `:""}${l.fontSize||""}${l.lineHeight?`/${l.lineHeight} `:""}${l.fontFamily||""}`)}),t}function X_(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function W_(e){return Math.round(e*1e5)/1e5}const oS={textTransform:"uppercase"},sS='"Roboto", "Helvetica", "Arial", sans-serif';function Bw(e,t){const{fontFamily:n=sS,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:d=16,allVariants:p,pxToRem:m,...g}=typeof t=="function"?t(e):t,v=i/14,b=m||(k=>`${k/d*v}rem`),w=(k,A,N,_,O)=>({fontFamily:n,fontWeight:k,fontSize:b(A),lineHeight:N,...n===sS?{letterSpacing:`${W_(_/A)}em`}:{},...O,...p}),S={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(l,48,1.167,0),h4:w(l,34,1.235,.25),h5:w(l,24,1.334,0),h6:w(u,20,1.6,.15),subtitle1:w(l,16,1.75,.15),subtitle2:w(u,14,1.57,.1),body1:w(l,16,1.5,.15),body2:w(l,14,1.43,.15),button:w(u,14,1.75,.4,oS),caption:w(l,12,1.66,.4),overline:w(l,12,2.66,1,oS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sn({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:f,...S},g,{clone:!1})}const Q_=.2,Z_=.14,J_=.12;function At(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Q_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Z_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${J_})`].join(",")}const eR=["none",At(0,2,1,-1,0,1,1,0,0,1,3,0),At(0,3,1,-2,0,2,2,0,0,1,5,0),At(0,3,3,-2,0,3,4,0,0,1,8,0),At(0,2,4,-1,0,4,5,0,0,1,10,0),At(0,3,5,-1,0,5,8,0,0,1,14,0),At(0,3,5,-1,0,6,10,0,0,1,18,0),At(0,4,5,-2,0,7,10,1,0,2,16,1),At(0,5,5,-3,0,8,10,1,0,3,14,2),At(0,5,6,-3,0,9,12,1,0,3,16,2),At(0,6,6,-3,0,10,14,1,0,4,18,3),At(0,6,7,-4,0,11,15,1,0,4,20,3),At(0,7,8,-4,0,12,17,2,0,5,22,4),At(0,7,8,-4,0,13,19,2,0,5,24,4),At(0,7,9,-4,0,14,21,2,0,5,26,4),At(0,8,9,-5,0,15,22,2,0,6,28,5),At(0,8,10,-5,0,16,24,2,0,6,30,5),At(0,8,11,-5,0,17,26,2,0,6,32,5),At(0,9,11,-5,0,18,28,2,0,7,34,6),At(0,9,12,-6,0,19,29,2,0,7,36,6),At(0,10,13,-6,0,20,31,3,0,8,38,7),At(0,10,13,-6,0,21,33,3,0,8,40,7),At(0,10,14,-6,0,22,35,3,0,8,42,7),At(0,11,14,-7,0,23,36,3,0,9,44,8),At(0,11,15,-7,0,24,38,3,0,9,46,8)],tR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},nR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lS(e){return`${Math.round(e)}ms`}function rR(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function iR(e){const t={...tR,...e.easing},n={...nR,...e.duration};return{getAutoHeightDuration:rR,create:(o=["all"],l={})=>{const{duration:u=n.standard,easing:f=t.easeInOut,delay:d=0,...p}=l;return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof u=="string"?u:lS(u)} ${f} ${typeof d=="string"?d:lS(d)}`).join(",")},...e,easing:t,duration:n}}const aR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function oR(e){return Ur(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Iw(e={}){const t={...e};function n(i){const o=Object.entries(i);for(let l=0;l<o.length;l++){const[u,f]=o[l];!oR(f)||u.startsWith("unstable_")?delete i[u]:Ur(f)&&(i[u]={...f},n(i[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
||
|
||
const theme = ${JSON.stringify(t,null,2)};
|
||
|
||
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
||
theme.transitions = createTransitions(theme.transitions || {});
|
||
|
||
export default theme;`}function Kh(e={},...t){const{breakpoints:n,mixins:i={},spacing:o,palette:l={},transitions:u={},typography:f={},shape:d,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(mi(20));const m=Km(l),g=Go(e);let v=sn(g,{mixins:X_(g.breakpoints,i),palette:m,shadows:eR.slice(),typography:Bw(m,f),transitions:iR(u),zIndex:{...aR}});return v=sn(v,p),v=t.reduce((b,w)=>sn(b,w),v),v.unstable_sxConfig={...Hl,...p==null?void 0:p.unstable_sxConfig},v.unstable_sx=function(w){return Vi({sx:w,theme:this})},v.toRuntimeSource=Iw,v}function Yh(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const sR=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yh(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function jw(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function $w(e){return e==="dark"?sR:[]}function lR(e){const{palette:t={mode:"light"},opacity:n,overlays:i,...o}=e,l=Km(t);return{palette:l,opacity:{...jw(l.mode),...n},overlays:i||$w(l.mode),...o}}function uR(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const cR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],fR=e=>(t,n)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let l=o;if(o==="class"&&(l=".%s"),o==="data"&&(l="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(l=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return cR(e.cssVarPrefix).forEach(f=>{u[f]=n[f],delete n[f]}),l==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:u}}:l?{[l.replace("%s",t)]:u,[`${i}, ${l.replace("%s",t)}`]:n}:{[i]:{...n,...u}}}if(l&&l!=="media")return`${i}, ${l.replace("%s",String(t))}`}else if(t){if(l==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(l)return l.replace("%s",String(t))}return i};function dR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function te(e,t,n){!e[t]&&n&&(e[t]=n)}function cl(e){return typeof e!="string"||!e.startsWith("hsl")?e:Sw(e)}function fi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ul(cl(e[t])))}function pR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zr=e=>{try{return e()}catch{}},hR=(e="mui")=>s_(e);function uh(e,t,n,i){if(!t)return;t=t===!0?{}:t;const o=i==="dark"?"dark":"light";if(!n){e[i]=lR({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:l,...u}=Kh({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[i]={...t,palette:l,opacity:{...jw(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||$w(o)},u}function mR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:u=uR,colorSchemeSelector:f=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...p}=e,m=Object.keys(n)[0],g=i||(n.light&&m!=="light"?"light":m),v=hR(l),{[g]:b,light:w,dark:S,...k}=n,A={...k};let N=b;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(N=!0),!N)throw new Error(mi(21,g));const _=uh(A,N,p,g);w&&!A.light&&uh(A,w,void 0,"light"),S&&!A.dark&&uh(A,S,void 0,"dark");let O={defaultColorScheme:g,..._,cssVarPrefix:l,colorSchemeSelector:f,rootSelector:d,getCssVar:v,colorSchemes:A,font:{...Y_(_.typography),..._.font},spacing:pR(p.spacing)};Object.keys(O.colorSchemes).forEach(P=>{const E=O.colorSchemes[P].palette,j=U=>{const G=U.split("-"),Y=G[1],V=G[2];return v(U,E[Y][V])};if(E.mode==="light"&&(te(E.common,"background","#fff"),te(E.common,"onBackground","#000")),E.mode==="dark"&&(te(E.common,"background","#000"),te(E.common,"onBackground","#fff")),dR(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){te(E.Alert,"errorColor",vt(E.error.light,.6)),te(E.Alert,"infoColor",vt(E.info.light,.6)),te(E.Alert,"successColor",vt(E.success.light,.6)),te(E.Alert,"warningColor",vt(E.warning.light,.6)),te(E.Alert,"errorFilledBg",j("palette-error-main")),te(E.Alert,"infoFilledBg",j("palette-info-main")),te(E.Alert,"successFilledBg",j("palette-success-main")),te(E.Alert,"warningFilledBg",j("palette-warning-main")),te(E.Alert,"errorFilledColor",zr(()=>E.getContrastText(E.error.main))),te(E.Alert,"infoFilledColor",zr(()=>E.getContrastText(E.info.main))),te(E.Alert,"successFilledColor",zr(()=>E.getContrastText(E.success.main))),te(E.Alert,"warningFilledColor",zr(()=>E.getContrastText(E.warning.main))),te(E.Alert,"errorStandardBg",St(E.error.light,.9)),te(E.Alert,"infoStandardBg",St(E.info.light,.9)),te(E.Alert,"successStandardBg",St(E.success.light,.9)),te(E.Alert,"warningStandardBg",St(E.warning.light,.9)),te(E.Alert,"errorIconColor",j("palette-error-main")),te(E.Alert,"infoIconColor",j("palette-info-main")),te(E.Alert,"successIconColor",j("palette-success-main")),te(E.Alert,"warningIconColor",j("palette-warning-main")),te(E.AppBar,"defaultBg",j("palette-grey-100")),te(E.Avatar,"defaultBg",j("palette-grey-400")),te(E.Button,"inheritContainedBg",j("palette-grey-300")),te(E.Button,"inheritContainedHoverBg",j("palette-grey-A100")),te(E.Chip,"defaultBorder",j("palette-grey-400")),te(E.Chip,"defaultAvatarColor",j("palette-grey-700")),te(E.Chip,"defaultIconColor",j("palette-grey-700")),te(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te(E.LinearProgress,"primaryBg",St(E.primary.main,.62)),te(E.LinearProgress,"secondaryBg",St(E.secondary.main,.62)),te(E.LinearProgress,"errorBg",St(E.error.main,.62)),te(E.LinearProgress,"infoBg",St(E.info.main,.62)),te(E.LinearProgress,"successBg",St(E.success.main,.62)),te(E.LinearProgress,"warningBg",St(E.warning.main,.62)),te(E.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),te(E.Slider,"primaryTrack",St(E.primary.main,.62)),te(E.Slider,"secondaryTrack",St(E.secondary.main,.62)),te(E.Slider,"errorTrack",St(E.error.main,.62)),te(E.Slider,"infoTrack",St(E.info.main,.62)),te(E.Slider,"successTrack",St(E.success.main,.62)),te(E.Slider,"warningTrack",St(E.warning.main,.62));const U=dc(E.background.default,.8);te(E.SnackbarContent,"bg",U),te(E.SnackbarContent,"color",zr(()=>E.getContrastText(U))),te(E.SpeedDialAction,"fabHoverBg",dc(E.background.paper,.15)),te(E.StepConnector,"border",j("palette-grey-400")),te(E.StepContent,"border",j("palette-grey-400")),te(E.Switch,"defaultColor",j("palette-common-white")),te(E.Switch,"defaultDisabledColor",j("palette-grey-100")),te(E.Switch,"primaryDisabledColor",St(E.primary.main,.62)),te(E.Switch,"secondaryDisabledColor",St(E.secondary.main,.62)),te(E.Switch,"errorDisabledColor",St(E.error.main,.62)),te(E.Switch,"infoDisabledColor",St(E.info.main,.62)),te(E.Switch,"successDisabledColor",St(E.success.main,.62)),te(E.Switch,"warningDisabledColor",St(E.warning.main,.62)),te(E.TableCell,"border",St(fc(E.divider,1),.88)),te(E.Tooltip,"bg",fc(E.grey[700],.92))}if(E.mode==="dark"){te(E.Alert,"errorColor",St(E.error.light,.6)),te(E.Alert,"infoColor",St(E.info.light,.6)),te(E.Alert,"successColor",St(E.success.light,.6)),te(E.Alert,"warningColor",St(E.warning.light,.6)),te(E.Alert,"errorFilledBg",j("palette-error-dark")),te(E.Alert,"infoFilledBg",j("palette-info-dark")),te(E.Alert,"successFilledBg",j("palette-success-dark")),te(E.Alert,"warningFilledBg",j("palette-warning-dark")),te(E.Alert,"errorFilledColor",zr(()=>E.getContrastText(E.error.dark))),te(E.Alert,"infoFilledColor",zr(()=>E.getContrastText(E.info.dark))),te(E.Alert,"successFilledColor",zr(()=>E.getContrastText(E.success.dark))),te(E.Alert,"warningFilledColor",zr(()=>E.getContrastText(E.warning.dark))),te(E.Alert,"errorStandardBg",vt(E.error.light,.9)),te(E.Alert,"infoStandardBg",vt(E.info.light,.9)),te(E.Alert,"successStandardBg",vt(E.success.light,.9)),te(E.Alert,"warningStandardBg",vt(E.warning.light,.9)),te(E.Alert,"errorIconColor",j("palette-error-main")),te(E.Alert,"infoIconColor",j("palette-info-main")),te(E.Alert,"successIconColor",j("palette-success-main")),te(E.Alert,"warningIconColor",j("palette-warning-main")),te(E.AppBar,"defaultBg",j("palette-grey-900")),te(E.AppBar,"darkBg",j("palette-background-paper")),te(E.AppBar,"darkColor",j("palette-text-primary")),te(E.Avatar,"defaultBg",j("palette-grey-600")),te(E.Button,"inheritContainedBg",j("palette-grey-800")),te(E.Button,"inheritContainedHoverBg",j("palette-grey-700")),te(E.Chip,"defaultBorder",j("palette-grey-700")),te(E.Chip,"defaultAvatarColor",j("palette-grey-300")),te(E.Chip,"defaultIconColor",j("palette-grey-300")),te(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te(E.LinearProgress,"primaryBg",vt(E.primary.main,.5)),te(E.LinearProgress,"secondaryBg",vt(E.secondary.main,.5)),te(E.LinearProgress,"errorBg",vt(E.error.main,.5)),te(E.LinearProgress,"infoBg",vt(E.info.main,.5)),te(E.LinearProgress,"successBg",vt(E.success.main,.5)),te(E.LinearProgress,"warningBg",vt(E.warning.main,.5)),te(E.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),te(E.Slider,"primaryTrack",vt(E.primary.main,.5)),te(E.Slider,"secondaryTrack",vt(E.secondary.main,.5)),te(E.Slider,"errorTrack",vt(E.error.main,.5)),te(E.Slider,"infoTrack",vt(E.info.main,.5)),te(E.Slider,"successTrack",vt(E.success.main,.5)),te(E.Slider,"warningTrack",vt(E.warning.main,.5));const U=dc(E.background.default,.98);te(E.SnackbarContent,"bg",U),te(E.SnackbarContent,"color",zr(()=>E.getContrastText(U))),te(E.SpeedDialAction,"fabHoverBg",dc(E.background.paper,.15)),te(E.StepConnector,"border",j("palette-grey-600")),te(E.StepContent,"border",j("palette-grey-600")),te(E.Switch,"defaultColor",j("palette-grey-300")),te(E.Switch,"defaultDisabledColor",j("palette-grey-600")),te(E.Switch,"primaryDisabledColor",vt(E.primary.main,.55)),te(E.Switch,"secondaryDisabledColor",vt(E.secondary.main,.55)),te(E.Switch,"errorDisabledColor",vt(E.error.main,.55)),te(E.Switch,"infoDisabledColor",vt(E.info.main,.55)),te(E.Switch,"successDisabledColor",vt(E.success.main,.55)),te(E.Switch,"warningDisabledColor",vt(E.warning.main,.55)),te(E.TableCell,"border",vt(fc(E.divider,1),.68)),te(E.Tooltip,"bg",fc(E.grey[700],.92))}fi(E.background,"default"),fi(E.background,"paper"),fi(E.common,"background"),fi(E.common,"onBackground"),fi(E,"divider"),Object.keys(E).forEach(U=>{const G=E[U];U!=="tonalOffset"&&G&&typeof G=="object"&&(G.main&&te(E[U],"mainChannel",ul(cl(G.main))),G.light&&te(E[U],"lightChannel",ul(cl(G.light))),G.dark&&te(E[U],"darkChannel",ul(cl(G.dark))),G.contrastText&&te(E[U],"contrastTextChannel",ul(cl(G.contrastText))),U==="text"&&(fi(E[U],"primary"),fi(E[U],"secondary")),U==="action"&&(G.active&&fi(E[U],"active"),G.selected&&fi(E[U],"selected")))})}),O=t.reduce((P,E)=>sn(P,E),O);const R={prefix:l,disableCssColorScheme:o,shouldSkipGeneratingVar:u,getSelector:fR(O)},{vars:M,generateThemeVars:B,generateStyleSheets:I}=c_(O,R);return O.vars=M,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([P,E])=>{O[P]=E}),O.generateThemeVars=B,O.generateStyleSheets=I,O.generateSpacing=function(){return pw(p.spacing,cf(this))},O.getColorSchemeSelector=f_(f),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=u,O.unstable_sxConfig={...Hl,...p==null?void 0:p.unstable_sxConfig},O.unstable_sx=function(E){return Vi({sx:E,theme:this})},O.toRuntimeSource=Iw,O}function uS(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Km({...n===!0?{}:n.palette,mode:t})})}function vf(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:l=n==null?void 0:n.mode,...u}=e,f=l||"light",d=o==null?void 0:o[f],p={...o,...n?{[f]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Kh(e,...t);let m=n;"palette"in e||p[f]&&(p[f]!==!0?m=p[f].palette:f==="dark"&&(m={mode:"dark"}));const g=Kh({...e,palette:m},...t);return g.defaultColorScheme=f,g.colorSchemes=p,g.palette.mode==="light"&&(g.colorSchemes.light={...p.light!==!0&&p.light,palette:g.palette},uS(g,"dark",p.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:g.palette},uS(g,"light",p.light)),g}return!n&&!("light"in p)&&f==="light"&&(p.light=!0),mR({...u,colorSchemes:p,defaultColorScheme:f,...typeof i!="boolean"&&i},...t)}const Ym=vf();function Gl(){const e=ql(Ym);return e[qr]||e}function Pw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bn=e=>Pw(e)&&e!=="classes",me=vw({themeId:qr,defaultTheme:Ym,rootShouldForwardProp:Bn});function cS({theme:e,...t}){const n=qr in e?e[qr]:void 0;return $.jsx(Nw,{...t,themeId:n?qr:void 0,theme:n||e})}const pc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:gR}=o_({themeId:qr,theme:()=>vf({cssVariables:!0}),colorSchemeStorageKey:pc.colorSchemeStorageKey,modeStorageKey:pc.modeStorageKey,defaultColorScheme:{light:pc.defaultLightColorScheme,dark:pc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Bw(e.palette,e.typography)};return t.unstable_sx=function(i){return Vi({sx:i,theme:this})},t}}),yR=gR;function bR({theme:e,...t}){return typeof e=="function"?$.jsx(cS,{theme:e,...t}):"colorSchemes"in(qr in e?e[qr]:e)?$.jsx(yR,{theme:e,...t}):$.jsx(cS,{theme:e,...t})}function vR(e){return $.jsx(wA,{...e,defaultTheme:Ym,themeId:qr})}function Xm(e){return function(n){return $.jsx(vR,{styles:typeof e=="function"?i=>e({theme:i,...n}):e})}}function SR(){return gf}const gt=e_;function Xe(e){return JA(e)}function wR(e){return Ke("MuiSvgIcon",e)}Ve("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xR=e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(n)}`]};return Ye(o,wR,i)},CR=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${xe(n.color)}`],t[`fontSize${xe(n.fontSize)}`]]}})(gt(({theme:e})=>{var t,n,i,o,l,u,f,d,p,m,g,v,b,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(i=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:d.call(f,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:m.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var k,A;return{props:{color:S},style:{color:(A=(k=(e.vars??e).palette)==null?void 0:k[S])==null?void 0:A.main}}}),{props:{color:"action"},style:{color:(v=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(w=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Xh=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiSvgIcon"}),{children:o,className:l,color:u="inherit",component:f="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:m=!1,titleAccess:g,viewBox:v="0 0 24 24",...b}=i,w=T.isValidElement(o)&&o.type==="svg",S={...i,color:u,component:f,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:v,hasSvgAsChild:w},k={};m||(k.viewBox=v);const A=xR(S);return $.jsxs(CR,{as:f,className:Oe(A.root,l),focusable:"false",color:p,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...k,...b,...w&&o.props,ownerState:S,children:[w?o.props.children:o,g?$.jsx("title",{children:g}):null]})});Xh.muiName="SvgIcon";function Yo(e,t){function n(i,o){return $.jsx(Xh,{"data-testid":`${t}Icon`,ref:o,...i,children:e})}return n.muiName=Xh.muiName,T.memo(T.forwardRef(n))}function Uw(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return o=>{const l=typeof t=="function"?t(o):t,u=typeof e=="function"?e({...o,...l}):e,f=Oe(o==null?void 0:o.className,l==null?void 0:l.className,u==null?void 0:u.className);return{...l,...u,...!!f&&{className:f},...(l==null?void 0:l.style)&&(u==null?void 0:u.style)&&{style:{...l.style,...u.style}},...(l==null?void 0:l.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const n=t,i=Oe(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...!!i&&{className:i},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Hw(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Wh(e,t){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wh(e,t)}function qw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wh(e,t)}var ka=G1();const hc=rf(ka),fS={disabled:!1},Hc=it.createContext(null);var kR=function(t){return t.scrollTop},fl="unmounted",Sa="exited",wa="entering",Ao="entered",Qh="exiting",Kr=function(e){qw(t,e);function t(i,o){var l;l=e.call(this,i,o)||this;var u=o,f=u&&!u.isMounting?i.enter:i.appear,d;return l.appearStatus=null,i.in?f?(d=Sa,l.appearStatus=wa):d=Ao:i.unmountOnExit||i.mountOnEnter?d=fl:d=Sa,l.state={status:d},l.nextCallback=null,l}t.getDerivedStateFromProps=function(o,l){var u=o.in;return u&&l.status===fl?{status:Sa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var l=null;if(o!==this.props){var u=this.state.status;this.props.in?u!==wa&&u!==Ao&&(l=wa):(u===wa||u===Ao)&&(l=Qh)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,l,u,f;return l=u=f=o,o!=null&&typeof o!="number"&&(l=o.exit,u=o.enter,f=o.appear!==void 0?o.appear:u),{exit:l,enter:u,appear:f}},n.updateStatus=function(o,l){if(o===void 0&&(o=!1),l!==null)if(this.cancelNextCallback(),l===wa){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:hc.findDOMNode(this);u&&kR(u)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sa&&this.setState({status:fl})},n.performEnter=function(o){var l=this,u=this.props.enter,f=this.context?this.context.isMounting:o,d=this.props.nodeRef?[f]:[hc.findDOMNode(this),f],p=d[0],m=d[1],g=this.getTimeouts(),v=f?g.appear:g.enter;if(!o&&!u||fS.disabled){this.safeSetState({status:Ao},function(){l.props.onEntered(p)});return}this.props.onEnter(p,m),this.safeSetState({status:wa},function(){l.props.onEntering(p,m),l.onTransitionEnd(v,function(){l.safeSetState({status:Ao},function(){l.props.onEntered(p,m)})})})},n.performExit=function(){var o=this,l=this.props.exit,u=this.getTimeouts(),f=this.props.nodeRef?void 0:hc.findDOMNode(this);if(!l||fS.disabled){this.safeSetState({status:Sa},function(){o.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:Qh},function(){o.props.onExiting(f),o.onTransitionEnd(u.exit,function(){o.safeSetState({status:Sa},function(){o.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,l){l=this.setNextCallback(l),this.setState(o,l)},n.setNextCallback=function(o){var l=this,u=!0;return this.nextCallback=function(f){u&&(u=!1,l.nextCallback=null,o(f))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(o,l){this.setNextCallback(l);var u=this.props.nodeRef?this.props.nodeRef.current:hc.findDOMNode(this),f=o==null&&!this.props.addEndListener;if(!u||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=d[0],m=d[1];this.props.addEndListener(p,m)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===fl)return null;var l=this.props,u=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=Hw(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return it.createElement(Hc.Provider,{value:null},typeof u=="function"?u(o,f):it.cloneElement(it.Children.only(u),f))},t}(it.Component);Kr.contextType=Hc;Kr.propTypes={};function wo(){}Kr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wo,onEntering:wo,onEntered:wo,onExit:wo,onExiting:wo,onExited:wo};Kr.UNMOUNTED=fl;Kr.EXITED=Sa;Kr.ENTERING=wa;Kr.ENTERED=Ao;Kr.EXITING=Qh;function ER(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wm(e,t){var n=function(l){return t&&T.isValidElement(l)?t(l):l},i=Object.create(null);return e&&T.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=n(o)}),i}function TR(e,t){e=e||{},t=t||{};function n(m){return m in t?t[m]:e[m]}var i=Object.create(null),o=[];for(var l in e)l in t?o.length&&(i[l]=o,o=[]):o.push(l);var u,f={};for(var d in t){if(i[d])for(u=0;u<i[d].length;u++){var p=i[d][u];f[i[d][u]]=n(p)}f[d]=n(d)}for(u=0;u<o.length;u++)f[o[u]]=n(o[u]);return f}function Ea(e,t,n){return n[t]!=null?n[t]:e.props[t]}function AR(e,t){return Wm(e.children,function(n){return T.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ea(n,"appear",e),enter:Ea(n,"enter",e),exit:Ea(n,"exit",e)})})}function _R(e,t,n){var i=Wm(e.children),o=TR(t,i);return Object.keys(o).forEach(function(l){var u=o[l];if(T.isValidElement(u)){var f=l in t,d=l in i,p=t[l],m=T.isValidElement(p)&&!p.props.in;d&&(!f||m)?o[l]=T.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:Ea(u,"exit",e),enter:Ea(u,"enter",e)}):!d&&f&&!m?o[l]=T.cloneElement(u,{in:!1}):d&&f&&T.isValidElement(p)&&(o[l]=T.cloneElement(u,{onExited:n.bind(null,u),in:p.props.in,exit:Ea(u,"exit",e),enter:Ea(u,"enter",e)}))}}),o}var RR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},OR={component:"div",childFactory:function(t){return t}},Qm=function(e){qw(t,e);function t(i,o){var l;l=e.call(this,i,o)||this;var u=l.handleExited.bind(ER(l));return l.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,l){var u=l.children,f=l.handleExited,d=l.firstRender;return{children:d?AR(o,f):_R(o,u,f),firstRender:!1}},n.handleExited=function(o,l){var u=Wm(this.props.children);o.key in u||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(f){var d=jc({},f.children);return delete d[o.key],{children:d}}))},n.render=function(){var o=this.props,l=o.component,u=o.childFactory,f=Hw(o,["component","childFactory"]),d=this.state.contextValue,p=RR(this.state.children).map(u);return delete f.appear,delete f.enter,delete f.exit,l===null?it.createElement(Hc.Provider,{value:d},p):it.createElement(Hc.Provider,{value:d},it.createElement(l,f,p))},t}(it.Component);Qm.propTypes={};Qm.defaultProps=OR;const Fw=e=>e.scrollTop;function qc(e,t){const{timeout:n,easing:i,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:o.transitionDelay}}function MR(e){return Ke("MuiPaper",e)}Ve("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const NR=e=>{const{square:t,elevation:n,variant:i,classes:o}=e,l={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return Ye(l,MR,o)},DR=me("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(gt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Sf=T.forwardRef(function(t,n){var b;const i=Xe({props:t,name:"MuiPaper"}),o=Gl(),{className:l,component:u="div",elevation:f=1,square:d=!1,variant:p="elevation",...m}=i,g={...i,component:u,elevation:f,square:d,variant:p},v=NR(g);return $.jsx(DR,{as:u,ownerState:g,className:Oe(v.root,l),ref:n,...m,style:{...p==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[f],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[f]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${bn("#fff",Yh(f))}, ${bn("#fff",Yh(f))})`}},...m.style}})});function dt(e,t){const{className:n,elementType:i,ownerState:o,externalForwardedProps:l,internalForwardedProps:u,shouldForwardComponentProp:f=!1,...d}=t,{component:p,slots:m={[e]:void 0},slotProps:g={[e]:void 0},...v}=l,b=m[e]||i,w=_w(g[e],o),{props:{component:S,...k},internalRef:A}=Aw({className:n,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:w}),N=En(A,w==null?void 0:w.ref,t.ref),_=e==="root"?S||p:S,O=Ew(b,{...e==="root"&&!p&&!m[e]&&u,...e!=="root"&&!m[e]&&u,...k,..._&&!f&&{as:_},..._&&f&&{component:_},ref:N},o);return[b,O]}class Fc{constructor(){Qs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Fc}static use(){const t=xw(Fc.create).current,[n,i]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=i,T.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=zR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function LR(){return Fc.use()}function zR(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}function BR(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:l,rippleSize:u,in:f,onExited:d,timeout:p}=e,[m,g]=T.useState(!1),v=Oe(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),b={width:u,height:u,top:-(u/2)+l,left:-(u/2)+o},w=Oe(n.child,m&&n.childLeaving,i&&n.childPulsate);return!f&&!m&&g(!0),T.useEffect(()=>{if(!f&&d!=null){const S=setTimeout(d,p);return()=>{clearTimeout(S)}}},[d,f,p]),$.jsx("span",{className:v,style:b,children:$.jsx("span",{className:w})})}const lr=Ve("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zh=550,IR=80,jR=Pl`
|
||
0% {
|
||
transform: scale(0);
|
||
opacity: 0.1;
|
||
}
|
||
|
||
100% {
|
||
transform: scale(1);
|
||
opacity: 0.3;
|
||
}
|
||
`,$R=Pl`
|
||
0% {
|
||
opacity: 1;
|
||
}
|
||
|
||
100% {
|
||
opacity: 0;
|
||
}
|
||
`,PR=Pl`
|
||
0% {
|
||
transform: scale(1);
|
||
}
|
||
|
||
50% {
|
||
transform: scale(0.92);
|
||
}
|
||
|
||
100% {
|
||
transform: scale(1);
|
||
}
|
||
`,UR=me("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),HR=me(BR,{name:"MuiTouchRipple",slot:"Ripple"})`
|
||
opacity: 0;
|
||
position: absolute;
|
||
|
||
&.${lr.rippleVisible} {
|
||
opacity: 0.3;
|
||
transform: scale(1);
|
||
animation-name: ${jR};
|
||
animation-duration: ${Zh}ms;
|
||
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
||
}
|
||
|
||
&.${lr.ripplePulsate} {
|
||
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
||
}
|
||
|
||
& .${lr.child} {
|
||
opacity: 1;
|
||
display: block;
|
||
width: 100%;
|
||
height: 100%;
|
||
border-radius: 50%;
|
||
background-color: currentColor;
|
||
}
|
||
|
||
& .${lr.childLeaving} {
|
||
opacity: 0;
|
||
animation-name: ${$R};
|
||
animation-duration: ${Zh}ms;
|
||
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
||
}
|
||
|
||
& .${lr.childPulsate} {
|
||
position: absolute;
|
||
/* @noflip */
|
||
left: 0px;
|
||
top: 0;
|
||
animation-name: ${PR};
|
||
animation-duration: 2500ms;
|
||
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
||
animation-iteration-count: infinite;
|
||
animation-delay: 200ms;
|
||
}
|
||
`,qR=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:u,...f}=i,[d,p]=T.useState([]),m=T.useRef(0),g=T.useRef(null);T.useEffect(()=>{g.current&&(g.current(),g.current=null)},[d]);const v=T.useRef(!1),b=Cw(),w=T.useRef(null),S=T.useRef(null),k=T.useCallback(O=>{const{pulsate:R,rippleX:M,rippleY:B,rippleSize:I,cb:P}=O;p(E=>[...E,$.jsx(HR,{classes:{ripple:Oe(l.ripple,lr.ripple),rippleVisible:Oe(l.rippleVisible,lr.rippleVisible),ripplePulsate:Oe(l.ripplePulsate,lr.ripplePulsate),child:Oe(l.child,lr.child),childLeaving:Oe(l.childLeaving,lr.childLeaving),childPulsate:Oe(l.childPulsate,lr.childPulsate)},timeout:Zh,pulsate:R,rippleX:M,rippleY:B,rippleSize:I},m.current)]),m.current+=1,g.current=P},[l]),A=T.useCallback((O={},R={},M=()=>{})=>{const{pulsate:B=!1,center:I=o||R.pulsate,fakeElement:P=!1}=R;if((O==null?void 0:O.type)==="mousedown"&&v.current){v.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(v.current=!0);const E=P?null:S.current,j=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,Y;if(I||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)U=Math.round(j.width/2),G=Math.round(j.height/2);else{const{clientX:V,clientY:H}=O.touches&&O.touches.length>0?O.touches[0]:O;U=Math.round(V-j.left),G=Math.round(H-j.top)}if(I)Y=Math.sqrt((2*j.width**2+j.height**2)/3),Y%2===0&&(Y+=1);else{const V=Math.max(Math.abs((E?E.clientWidth:0)-U),U)*2+2,H=Math.max(Math.abs((E?E.clientHeight:0)-G),G)*2+2;Y=Math.sqrt(V**2+H**2)}O!=null&&O.touches?w.current===null&&(w.current=()=>{k({pulsate:B,rippleX:U,rippleY:G,rippleSize:Y,cb:M})},b.start(IR,()=>{w.current&&(w.current(),w.current=null)})):k({pulsate:B,rippleX:U,rippleY:G,rippleSize:Y,cb:M})},[o,k,b]),N=T.useCallback(()=>{A({},{pulsate:!0})},[A]),_=T.useCallback((O,R)=>{if(b.clear(),(O==null?void 0:O.type)==="touchend"&&w.current){w.current(),w.current=null,b.start(0,()=>{_(O,R)});return}w.current=null,p(M=>M.length>0?M.slice(1):M),g.current=R},[b]);return T.useImperativeHandle(n,()=>({pulsate:N,start:A,stop:_}),[N,A,_]),$.jsx(UR,{className:Oe(lr.root,l.root,u),ref:S,...f,children:$.jsx(Qm,{component:null,exit:!0,children:d})})});function FR(e){return Ke("MuiButtonBase",e)}const VR=Ve("MuiButtonBase",["root","disabled","focusVisible"]),GR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:o}=e,u=Ye({root:["root",t&&"disabled",n&&"focusVisible"]},FR,o);return n&&i&&(u.root+=` ${i}`),u},KR=me("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wf=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:u,className:f,component:d="button",disabled:p=!1,disableRipple:m=!1,disableTouchRipple:g=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:w="a",onBlur:S,onClick:k,onContextMenu:A,onDragLeave:N,onFocus:_,onFocusVisible:O,onKeyDown:R,onKeyUp:M,onMouseDown:B,onMouseLeave:I,onMouseUp:P,onTouchEnd:E,onTouchMove:j,onTouchStart:U,tabIndex:G=0,TouchRippleProps:Y,touchRippleRef:V,type:H,...Z}=i,ae=T.useRef(null),J=LR(),C=En(J.ref,V),[X,de]=T.useState(!1);p&&X&&de(!1),T.useImperativeHandle(o,()=>({focusVisible:()=>{de(!0),ae.current.focus()}}),[]);const L=J.shouldMount&&!m&&!p;T.useEffect(()=>{X&&v&&!m&&J.pulsate()},[m,v,X,J]);const ie=di(J,"start",B,g),ue=di(J,"stop",A,g),fe=di(J,"stop",N,g),_e=di(J,"stop",P,g),ge=di(J,"stop",Se=>{X&&Se.preventDefault(),I&&I(Se)},g),ye=di(J,"start",U,g),le=di(J,"stop",E,g),we=di(J,"stop",j,g),Ce=di(J,"stop",Se=>{W0(Se.target)||de(!1),S&&S(Se)},!1),$e=Do(Se=>{ae.current||(ae.current=Se.currentTarget),W0(Se.target)&&(de(!0),O&&O(Se)),_&&_(Se)}),ke=()=>{const Se=ae.current;return d&&d!=="button"&&!(Se.tagName==="A"&&Se.href)},Ie=Do(Se=>{v&&!Se.repeat&&X&&Se.key===" "&&J.stop(Se,()=>{J.start(Se)}),Se.target===Se.currentTarget&&ke()&&Se.key===" "&&Se.preventDefault(),R&&R(Se),Se.target===Se.currentTarget&&ke()&&Se.key==="Enter"&&!p&&(Se.preventDefault(),k&&k(Se))}),Ze=Do(Se=>{v&&Se.key===" "&&X&&!Se.defaultPrevented&&J.stop(Se,()=>{J.pulsate(Se)}),M&&M(Se),k&&Se.target===Se.currentTarget&&ke()&&Se.key===" "&&!Se.defaultPrevented&&k(Se)});let qe=d;qe==="button"&&(Z.href||Z.to)&&(qe=w);const Je={};qe==="button"?(Je.type=H===void 0?"button":H,Je.disabled=p):(!Z.href&&!Z.to&&(Je.role="button"),p&&(Je["aria-disabled"]=p));const yt=En(n,ae),tt={...i,centerRipple:l,component:d,disabled:p,disableRipple:m,disableTouchRipple:g,focusRipple:v,tabIndex:G,focusVisible:X},nt=GR(tt);return $.jsxs(KR,{as:qe,className:Oe(nt.root,f),ownerState:tt,onBlur:Ce,onClick:k,onContextMenu:ue,onFocus:$e,onKeyDown:Ie,onKeyUp:Ze,onMouseDown:ie,onMouseLeave:ge,onMouseUp:_e,onDragLeave:fe,onTouchEnd:le,onTouchMove:we,onTouchStart:ye,ref:yt,tabIndex:p?-1:G,type:H,...Je,...Z,children:[u,L?$.jsx(qR,{ref:C,center:l,...Y}):null]})});function di(e,t,n,i=!1){return Do(o=>(n&&n(o),i||e[t](o),!0))}function YR(e){return typeof e.main=="string"}function XR(e,t=[]){if(!YR(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Cr(e=[]){return([,t])=>t&&XR(t,e)}function WR(e){return Ke("MuiCircularProgress",e)}Ve("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ui=44,Jh=Pl`
|
||
0% {
|
||
transform: rotate(0deg);
|
||
}
|
||
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
`,em=Pl`
|
||
0% {
|
||
stroke-dasharray: 1px, 200px;
|
||
stroke-dashoffset: 0;
|
||
}
|
||
|
||
50% {
|
||
stroke-dasharray: 100px, 200px;
|
||
stroke-dashoffset: -15px;
|
||
}
|
||
|
||
100% {
|
||
stroke-dasharray: 1px, 200px;
|
||
stroke-dashoffset: -126px;
|
||
}
|
||
`,QR=typeof Jh!="string"?Lm`
|
||
animation: ${Jh} 1.4s linear infinite;
|
||
`:null,ZR=typeof em!="string"?Lm`
|
||
animation: ${em} 1.4s ease-in-out infinite;
|
||
`:null,JR=e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,l={root:["root",n,`color${xe(i)}`],svg:["svg"],circle:["circle",`circle${xe(n)}`,o&&"circleDisableShrink"]};return Ye(l,WR,t)},eO=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${xe(n.color)}`]]}})(gt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:QR||{animation:`${Jh} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),tO=me("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),nO=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${xe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(gt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:ZR||{animation:`${em} 1.4s ease-in-out infinite`}}]}))),Vw=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:u=!1,size:f=40,style:d,thickness:p=3.6,value:m=0,variant:g="indeterminate",...v}=i,b={...i,color:l,disableShrink:u,size:f,thickness:p,value:m,variant:g},w=JR(b),S={},k={},A={};if(g==="determinate"){const N=2*Math.PI*((Ui-p)/2);S.strokeDasharray=N.toFixed(3),A["aria-valuenow"]=Math.round(m),S.strokeDashoffset=`${((100-m)/100*N).toFixed(3)}px`,k.transform="rotate(-90deg)"}return $.jsx(eO,{className:Oe(w.root,o),style:{width:f,height:f,...k,...d},ownerState:b,ref:n,role:"progressbar",...A,...v,children:$.jsx(tO,{className:w.svg,ownerState:b,viewBox:`${Ui/2} ${Ui/2} ${Ui} ${Ui}`,children:$.jsx(nO,{className:w.circle,style:S,ownerState:b,cx:Ui,cy:Ui,r:(Ui-p)/2,fill:"none",strokeWidth:p})})})});function rO(e){return Ke("MuiIconButton",e)}const dS=Ve("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),iO=e=>{const{classes:t,disabled:n,color:i,edge:o,size:l,loading:u}=e,f={root:["root",u&&"loading",n&&"disabled",i!=="default"&&`color${xe(i)}`,o&&`edge${xe(o)}`,`size${xe(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ye(f,rO,t)},aO=me(wf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${xe(n.color)}`],n.edge&&t[`edge${xe(n.edge)}`],t[`size${xe(n.size)}`]]}})(gt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),gt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bn((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${dS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${dS.loading}`]:{color:"transparent"}}))),oO=me("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),pS=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:l,className:u,color:f="default",disabled:d=!1,disableFocusRipple:p=!1,size:m="medium",id:g,loading:v=null,loadingIndicator:b,...w}=i,S=Fl(g),k=b??$.jsx(Vw,{"aria-labelledby":S,color:"inherit",size:16}),A={...i,edge:o,color:f,disabled:d,disableFocusRipple:p,loading:v,loadingIndicator:k,size:m},N=iO(A);return $.jsxs(aO,{id:v?S:g,className:Oe(N.root,u),centerRipple:!0,focusRipple:!p,disabled:d||v,ref:n,...w,ownerState:A,children:[typeof v=="boolean"&&$.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:$.jsx(oO,{className:N.loadingIndicator,ownerState:A,children:v&&k})}),l]})});function sO(e){return Ke("MuiTypography",e)}const hS=Ve("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),lO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},uO=SR(),cO=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:l,classes:u}=e,f={root:["root",l,e.align!=="inherit"&&`align${xe(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return Ye(f,sO,u)},fO=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${xe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(gt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,i])=>n!=="inherit"&&i&&typeof i=="object").map(([n,i])=>({props:{variant:n},style:i})),...Object.entries(e.palette).filter(Cr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${xe(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),mS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dn=T.forwardRef(function(t,n){const{color:i,...o}=Xe({props:t,name:"MuiTypography"}),l=!lO[i],u=uO({...o,...l&&{color:i}}),{align:f="inherit",className:d,component:p,gutterBottom:m=!1,noWrap:g=!1,paragraph:v=!1,variant:b="body1",variantMapping:w=mS,...S}=u,k={...u,align:f,color:i,className:d,component:p,gutterBottom:m,noWrap:g,paragraph:v,variant:b,variantMapping:w},A=p||(v?"p":w[b]||mS[b])||"span",N=cO(k);return $.jsx(fO,{as:A,ref:n,className:Oe(N.root,d),...S,ownerState:k,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...S.style}})});function dO(e){return typeof e=="function"?e():e}const pO=T.forwardRef(function(t,n){const{children:i,container:o,disablePortal:l=!1}=t,[u,f]=T.useState(null),d=En(T.isValidElement(i)?Vl(i):null,n);if(gi(()=>{l||f(dO(o)||document.body)},[o,l]),gi(()=>{if(u&&!l)return Vh(n,u),()=>{Vh(n,null)}},[n,u,l]),l){if(T.isValidElement(i)){const p={ref:d};return T.cloneElement(i,p)}return i}return u&&ka.createPortal(i,u)});function mc(e){return parseInt(e,10)||0}const hO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function mO(e){for(const t in e)return!1;return!0}function gO(e){return mO(e)||e.outerHeightStyle===0&&!e.overflowing}const yO=T.forwardRef(function(t,n){const{onChange:i,maxRows:o,minRows:l=1,style:u,value:f,...d}=t,{current:p}=T.useRef(f!=null),m=T.useRef(null),g=En(n,m),v=T.useRef(null),b=T.useRef(null),w=T.useCallback(()=>{const N=m.current,_=b.current;if(!N||!_)return;const R=yi(N).getComputedStyle(N);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=R.width,_.value=N.value||t.placeholder||"x",_.value.slice(-1)===`
|
||
`&&(_.value+=" ");const M=R.boxSizing,B=mc(R.paddingBottom)+mc(R.paddingTop),I=mc(R.borderBottomWidth)+mc(R.borderTopWidth),P=_.scrollHeight;_.value="x";const E=_.scrollHeight;let j=P;l&&(j=Math.max(Number(l)*E,j)),o&&(j=Math.min(Number(o)*E,j)),j=Math.max(j,E);const U=j+(M==="border-box"?B+I:0),G=Math.abs(j-P)<=1;return{outerHeightStyle:U,overflowing:G}},[o,l,t.placeholder]),S=T.useCallback(()=>{const N=m.current,_=w();if(!N||!_||gO(_))return;const O=_.outerHeightStyle;v.current!==O&&(v.current=O,N.style.height=`${O}px`),N.style.overflow=_.overflowing?"hidden":""},[w]),k=T.useRef(-1);gi(()=>{const N=ww(()=>S()),_=m==null?void 0:m.current;if(!_)return;const O=yi(_);O.addEventListener("resize",N);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>{R.unobserve(_),cancelAnimationFrame(k.current),S(),k.current=requestAnimationFrame(()=>{R.observe(_)})}),R.observe(_)),()=>{N.clear(),cancelAnimationFrame(k.current),O.removeEventListener("resize",N),R&&R.disconnect()}},[w,S]),gi(()=>{S()});const A=N=>{p||S(),i&&i(N)};return $.jsxs(T.Fragment,{children:[$.jsx("textarea",{value:f,onChange:A,ref:g,rows:l,style:u,...d}),$.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...hO.shadow,...u,paddingTop:0,paddingBottom:0}})]})});function tm(e){return typeof e=="string"}function Ma({props:e,states:t,muiFormControl:n}){return t.reduce((i,o)=>(i[o]=e[o],n&&typeof e[o]>"u"&&(i[o]=n[o]),i),{})}const Zm=T.createContext(void 0);function Yi(){return T.useContext(Zm)}function gS(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Vc(e,t=!1){return e&&(gS(e.value)&&e.value!==""||t&&gS(e.defaultValue)&&e.defaultValue!=="")}function bO(e){return e.startAdornment}function vO(e){return Ke("MuiInputBase",e)}const Uo=Ve("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var yS;const xf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${xe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Cf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},SO=e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:l,focused:u,formControl:f,fullWidth:d,hiddenLabel:p,multiline:m,readOnly:g,size:v,startAdornment:b,type:w}=e,S={root:["root",`color${xe(n)}`,i&&"disabled",o&&"error",d&&"fullWidth",u&&"focused",f&&"formControl",v&&v!=="medium"&&`size${xe(v)}`,m&&"multiline",b&&"adornedStart",l&&"adornedEnd",p&&"hiddenLabel",g&&"readOnly"],input:["input",i&&"disabled",w==="search"&&"inputTypeSearch",m&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",b&&"inputAdornedStart",l&&"inputAdornedEnd",g&&"readOnly"]};return Ye(S,vO,t)},kf=me("div",{name:"MuiInputBase",slot:"Root",overridesResolver:xf})(gt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Uo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ef=me("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Cf})(gt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Uo.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Uo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:l})=>!l.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:l})=>l.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),bS=Xm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Jm=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:l,autoFocus:u,className:f,color:d,components:p={},componentsProps:m={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:b,endAdornment:w,error:S,fullWidth:k=!1,id:A,inputComponent:N="input",inputProps:_={},inputRef:O,margin:R,maxRows:M,minRows:B,multiline:I=!1,name:P,onBlur:E,onChange:j,onClick:U,onFocus:G,onKeyDown:Y,onKeyUp:V,placeholder:H,readOnly:Z,renderSuffix:ae,rows:J,size:C,slotProps:X={},slots:de={},startAdornment:L,type:ie="text",value:ue,...fe}=i,_e=_.value!=null?_.value:ue,{current:ge}=T.useRef(_e!=null),ye=T.useRef(),le=T.useCallback(Te=>{},[]),we=En(ye,O,_.ref,le),[Ce,$e]=T.useState(!1),ke=Yi(),Ie=Ma({props:i,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ie.focused=ke?ke.focused:Ce,T.useEffect(()=>{!ke&&v&&Ce&&($e(!1),E&&E())},[ke,v,Ce,E]);const Ze=ke&&ke.onFilled,qe=ke&&ke.onEmpty,Je=T.useCallback(Te=>{Vc(Te)?Ze&&Ze():qe&&qe()},[Ze,qe]);gi(()=>{ge&&Je({value:_e})},[_e,Je,ge]);const yt=Te=>{G&&G(Te),_.onFocus&&_.onFocus(Te),ke&&ke.onFocus?ke.onFocus(Te):$e(!0)},tt=Te=>{E&&E(Te),_.onBlur&&_.onBlur(Te),ke&&ke.onBlur?ke.onBlur(Te):$e(!1)},nt=(Te,...ft)=>{if(!ge){const _t=Te.target||ye.current;if(_t==null)throw new Error(mi(1));Je({value:_t.value})}_.onChange&&_.onChange(Te,...ft),j&&j(Te,...ft)};T.useEffect(()=>{Je(ye.current)},[]);const Se=Te=>{ye.current&&Te.currentTarget===Te.target&&ye.current.focus(),U&&U(Te)};let pn=N,rt=_;I&&pn==="input"&&(J?rt={type:void 0,minRows:J,maxRows:J,...rt}:rt={type:void 0,maxRows:M,minRows:B,...rt},pn=yO);const Sn=Te=>{Je(Te.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};T.useEffect(()=>{ke&&ke.setAdornedStart(!!L)},[ke,L]);const ee={...i,color:Ie.color||"primary",disabled:Ie.disabled,endAdornment:w,error:Ie.error,focused:Ie.focused,formControl:ke,fullWidth:k,hiddenLabel:Ie.hiddenLabel,multiline:I,size:Ie.size,startAdornment:L,type:ie},se=SO(ee),he=de.root||p.Root||kf,be=X.root||m.root||{},De=de.input||p.Input||Ef;return rt={...rt,...X.input??m.input},$.jsxs(T.Fragment,{children:[!b&&typeof bS=="function"&&(yS||(yS=$.jsx(bS,{}))),$.jsxs(he,{...be,ref:n,onClick:Se,...fe,...!tm(he)&&{ownerState:{...ee,...be.ownerState}},className:Oe(se.root,be.className,f,Z&&"MuiInputBase-readOnly"),children:[L,$.jsx(Zm.Provider,{value:null,children:$.jsx(De,{"aria-invalid":Ie.error,"aria-describedby":o,autoComplete:l,autoFocus:u,defaultValue:g,disabled:Ie.disabled,id:A,onAnimationStart:Sn,name:P,placeholder:H,readOnly:Z,required:Ie.required,rows:J,value:_e,onKeyDown:Y,onKeyUp:V,type:ie,...rt,...!tm(De)&&{as:pn,ownerState:{...ee,...rt.ownerState}},ref:we,className:Oe(se.input,rt.className,Z&&"MuiInputBase-readOnly"),onBlur:tt,onChange:nt,onFocus:yt})}),w,ae?ae({...Ie,startAdornment:L}):null]})]})});function wO(e){return Ke("MuiInput",e)}const nl={...Uo,...Ve("MuiInput",["root","underline","input"])};function xO(e){return Ke("MuiOutlinedInput",e)}const Br={...Uo,...Ve("MuiOutlinedInput",["root","notchedOutline","input"])};function CO(e){return Ke("MuiFilledInput",e)}const ya={...Uo,...Ve("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},kO=Yo($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),EO={entering:{opacity:1},entered:{opacity:1}},nm=T.forwardRef(function(t,n){const i=Gl(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:f,easing:d,in:p,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:w,onExiting:S,style:k,timeout:A=o,TransitionComponent:N=Kr,..._}=t,O=T.useRef(null),R=En(O,Vl(f),n),M=Y=>V=>{if(Y){const H=O.current;V===void 0?Y(H):Y(H,V)}},B=M(v),I=M((Y,V)=>{Fw(Y);const H=qc({style:k,timeout:A,easing:d},{mode:"enter"});Y.style.webkitTransition=i.transitions.create("opacity",H),Y.style.transition=i.transitions.create("opacity",H),m&&m(Y,V)}),P=M(g),E=M(S),j=M(Y=>{const V=qc({style:k,timeout:A,easing:d},{mode:"exit"});Y.style.webkitTransition=i.transitions.create("opacity",V),Y.style.transition=i.transitions.create("opacity",V),b&&b(Y)}),U=M(w),G=Y=>{l&&l(O.current,Y)};return $.jsx(N,{appear:u,in:p,nodeRef:O,onEnter:I,onEntered:P,onEntering:B,onExit:j,onExited:U,onExiting:E,addEndListener:G,timeout:A,..._,children:(Y,{ownerState:V,...H})=>T.cloneElement(f,{style:{opacity:0,visibility:Y==="exited"&&!p?"hidden":void 0,...EO[Y],...k,...f.props.style},ref:R,...H})})});function TO(e){return Ke("MuiBackdrop",e)}Ve("MuiBackdrop",["root","invisible"]);const AO=e=>{const{classes:t,invisible:n}=e;return Ye({root:["root",n&&"invisible"]},TO,t)},_O=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Gw=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",invisible:f=!1,open:d,components:p={},componentsProps:m={},slotProps:g={},slots:v={},TransitionComponent:b,transitionDuration:w,...S}=i,k={...i,component:u,invisible:f},A=AO(k),N={transition:b,root:p.Root,...v},_={...m,...g},O={slots:N,slotProps:_},[R,M]=dt("root",{elementType:_O,externalForwardedProps:O,className:Oe(A.root,l),ownerState:k}),[B,I]=dt("transition",{elementType:nm,externalForwardedProps:O,ownerState:k});return $.jsx(B,{in:d,timeout:w,...S,...I,children:$.jsx(R,{"aria-hidden":!0,...M,classes:A,ref:n,children:o})})}),RO=Ve("MuiBox",["root"]),OO=vf(),Pr=kA({themeId:qr,defaultTheme:OO,defaultClassName:RO.root,generateClassName:mw.generate});function MO(e){return Ke("MuiButton",e)}const ba=Ve("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),NO=T.createContext({}),DO=T.createContext(void 0),LO=e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:l,loading:u,loadingPosition:f,classes:d}=e,p={root:["root",u&&"loading",l,`${l}${xe(t)}`,`size${xe(o)}`,`${l}Size${xe(o)}`,`color${xe(t)}`,n&&"disableElevation",i&&"fullWidth",u&&`loadingPosition${xe(f)}`],startIcon:["icon","startIcon",`iconSize${xe(o)}`],endIcon:["icon","endIcon",`iconSize${xe(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=Ye(p,MO,d);return{...d,...m}},Kw=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],zO=me(wf,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xe(n.color)}`],t[`size${xe(n.size)}`],t[`${n.variant}Size${xe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(gt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ba.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ba.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ba.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ba.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Cr()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(e.vars||e).palette[i].main,"--variant-outlinedColor":(e.vars||e).palette[i].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[i].mainChannel} / 0.5)`:bn(e.palette[i].main,.5),"--variant-containedColor":(e.vars||e).palette[i].contrastText,"--variant-containedBg":(e.vars||e).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[i].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[i].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette[i].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[i].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[i].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette[i].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ba.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ba.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ba.loading}`]:{color:"transparent"}}}]}})),BO=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${xe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Kw]})),IO=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${xe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Kw]})),jO=me("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),vS=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),rm=T.forwardRef(function(t,n){const i=T.useContext(NO),o=T.useContext(DO),l=Rl(i,t),u=Xe({props:l,name:"MuiButton"}),{children:f,color:d="primary",component:p="button",className:m,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:S,fullWidth:k=!1,id:A,loading:N=null,loadingIndicator:_,loadingPosition:O="center",size:R="medium",startIcon:M,type:B,variant:I="text",...P}=u,E=Fl(A),j=_??$.jsx(Vw,{"aria-labelledby":E,color:"inherit",size:16}),U={...u,color:d,component:p,disabled:g,disableElevation:v,disableFocusRipple:b,fullWidth:k,loading:N,loadingIndicator:j,loadingPosition:O,size:R,type:B,variant:I},G=LO(U),Y=(M||N&&O==="start")&&$.jsx(BO,{className:G.startIcon,ownerState:U,children:M||$.jsx(vS,{className:G.loadingIconPlaceholder,ownerState:U})}),V=(w||N&&O==="end")&&$.jsx(IO,{className:G.endIcon,ownerState:U,children:w||$.jsx(vS,{className:G.loadingIconPlaceholder,ownerState:U})}),H=o||"",Z=typeof N=="boolean"?$.jsx("span",{className:G.loadingWrapper,style:{display:"contents"},children:N&&$.jsx(jO,{className:G.loadingIndicator,ownerState:U,children:j})}):null;return $.jsxs(zO,{ownerState:U,className:Oe(i.className,G.root,m,H),component:p,disabled:g||N,focusRipple:!b,focusVisibleClassName:Oe(G.focusVisible,S),ref:n,type:B,id:N?E:A,...P,classes:G,children:[Y,O!=="end"&&Z,f,O==="end"&&Z,V]})});function $O(e){return Ke("MuiCard",e)}Ve("MuiCard",["root"]);const PO=e=>{const{classes:t}=e;return Ye({root:["root"]},$O,t)},UO=me(Sf,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),HO=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiCard"}),{className:o,raised:l=!1,...u}=i,f={...i,raised:l},d=PO(f);return $.jsx(UO,{className:Oe(d.root,o),elevation:l?8:void 0,ref:n,ownerState:f,...u})});function qO(e){return Ke("MuiCardActions",e)}Ve("MuiCardActions",["root","spacing"]);const FO=e=>{const{classes:t,disableSpacing:n}=e;return Ye({root:["root",!n&&"spacing"]},qO,t)},VO=me("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),GO=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:l,...u}=i,f={...i,disableSpacing:o},d=FO(f);return $.jsx(VO,{className:Oe(d.root,l),ownerState:f,ref:n,...u})});function KO(e){return Ke("MuiCardHeader",e)}const Gc=Ve("MuiCardHeader",["root","avatar","action","content","title","subheader"]),YO=e=>{const{classes:t}=e;return Ye({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},KO,t)},XO=me("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Gc.title}`]:t.title},{[`& .${Gc.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),WO=me("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),QO=me("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),ZO=me("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${hS.root}:where(& .${Gc.title})`]:{display:"block"},[`.${hS.root}:where(& .${Gc.subheader})`]:{display:"block"}}),JO=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiCardHeader"}),{action:o,avatar:l,component:u="div",disableTypography:f=!1,subheader:d,subheaderTypographyProps:p,title:m,titleTypographyProps:g,slots:v={},slotProps:b={},...w}=i,S={...i,component:u,disableTypography:f},k=YO(S),A={slots:v,slotProps:{title:g,subheader:p,...b}};let N=m;const[_,O]=dt("title",{className:k.title,elementType:dn,externalForwardedProps:A,ownerState:S,additionalProps:{variant:l?"body2":"h5",component:"span"}});N!=null&&N.type!==dn&&!f&&(N=$.jsx(_,{...O,children:N}));let R=d;const[M,B]=dt("subheader",{className:k.subheader,elementType:dn,externalForwardedProps:A,ownerState:S,additionalProps:{variant:l?"body2":"body1",color:"textSecondary",component:"span"}});R!=null&&R.type!==dn&&!f&&(R=$.jsx(M,{...B,children:R}));const[I,P]=dt("root",{ref:n,className:k.root,elementType:XO,externalForwardedProps:{...A,...w,component:u},ownerState:S}),[E,j]=dt("avatar",{className:k.avatar,elementType:WO,externalForwardedProps:A,ownerState:S}),[U,G]=dt("content",{className:k.content,elementType:ZO,externalForwardedProps:A,ownerState:S}),[Y,V]=dt("action",{className:k.action,elementType:QO,externalForwardedProps:A,ownerState:S});return $.jsxs(I,{...P,children:[l&&$.jsx(E,{...j,children:l}),$.jsxs(U,{...G,children:[N,R]}),o&&$.jsx(Y,{...V,children:o})]})});function eM(e){return Ke("PrivateSwitchBase",e)}Ve("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tM=e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,l={root:["root",n&&"checked",i&&"disabled",o&&`edge${xe(o)}`],input:["input"]};return Ye(l,eM,t)},nM=me(wf)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),rM=me("input",{shouldForwardProp:Bn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),iM=T.forwardRef(function(t,n){const{autoFocus:i,checked:o,checkedIcon:l,defaultChecked:u,disabled:f,disableFocusRipple:d=!1,edge:p=!1,icon:m,id:g,inputProps:v,inputRef:b,name:w,onBlur:S,onChange:k,onFocus:A,readOnly:N,required:_=!1,tabIndex:O,type:R,value:M,slots:B={},slotProps:I={},...P}=t,[E,j]=Gh({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),U=Yi(),G=ue=>{A&&A(ue),U&&U.onFocus&&U.onFocus(ue)},Y=ue=>{S&&S(ue),U&&U.onBlur&&U.onBlur(ue)},V=ue=>{if(ue.nativeEvent.defaultPrevented)return;const fe=ue.target.checked;j(fe),k&&k(ue,fe)};let H=f;U&&typeof H>"u"&&(H=U.disabled);const Z=R==="checkbox"||R==="radio",ae={...t,checked:E,disabled:H,disableFocusRipple:d,edge:p},J=tM(ae),C={slots:B,slotProps:{input:v,...I}},[X,de]=dt("root",{ref:n,elementType:nM,className:J.root,shouldForwardComponentProp:!0,externalForwardedProps:{...C,component:"span",...P},getSlotProps:ue=>({...ue,onFocus:fe=>{var _e;(_e=ue.onFocus)==null||_e.call(ue,fe),G(fe)},onBlur:fe=>{var _e;(_e=ue.onBlur)==null||_e.call(ue,fe),Y(fe)}}),ownerState:ae,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:H,role:void 0,tabIndex:null}}),[L,ie]=dt("input",{ref:b,elementType:rM,className:J.input,externalForwardedProps:C,getSlotProps:ue=>({onChange:fe=>{var _e;(_e=ue.onChange)==null||_e.call(ue,fe),V(fe)}}),ownerState:ae,additionalProps:{autoFocus:i,checked:o,defaultChecked:u,disabled:H,id:Z?g:void 0,name:w,readOnly:N,required:_,tabIndex:O,type:R,...R==="checkbox"&&M===void 0?{}:{value:M}}});return $.jsxs(X,{...de,children:[$.jsx(L,{...ie}),E?l:m]})}),aM=Yo($.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),oM=Yo($.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),sM=Yo($.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function lM(e){return Ke("MuiCheckbox",e)}const ch=Ve("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uM=e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,l={root:["root",n&&"indeterminate",`color${xe(i)}`,`size${xe(o)}`]},u=Ye(l,lM,t);return{...t,...u}},cM=me(iM,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${xe(n.size)}`],n.color!=="default"&&t[`color${xe(n.color)}`]]}})(gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bn(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{[`&.${ch.checked}, &.${ch.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${ch.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),fM=$.jsx(oM,{}),dM=$.jsx(aM,{}),pM=$.jsx(sM,{}),Yw=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiCheckbox"}),{checkedIcon:o=fM,color:l="primary",icon:u=dM,indeterminate:f=!1,indeterminateIcon:d=pM,inputProps:p,size:m="medium",disableRipple:g=!1,className:v,slots:b={},slotProps:w={},...S}=i,k=f?d:u,A=f?d:o,N={...i,disableRipple:g,color:l,indeterminate:f,size:m},_=uM(N),O=w.input??p,[R,M]=dt("root",{ref:n,elementType:cM,className:Oe(_.root,v),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:w,...S},ownerState:N,additionalProps:{type:"checkbox",icon:T.cloneElement(k,{fontSize:k.props.fontSize??m}),checkedIcon:T.cloneElement(A,{fontSize:A.props.fontSize??m}),disableRipple:g,slots:b,slotProps:{input:Uw(typeof O=="function"?O(N):O,{"data-indeterminate":f})}}});return $.jsx(R,{...M,classes:_})}),hM=g_({createStyledComponent:me("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${xe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Xe({props:e,name:"MuiContainer"})}),im=typeof Xm({})=="function",mM=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),gM=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Xw=(e,t=!1)=>{var l,u;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([f,d])=>{var m,g;const p=e.getColorSchemeSelector(f);p.startsWith("@")?n[p]={":root":{colorScheme:(m=d.palette)==null?void 0:m.mode}}:n[p.replace(/\s*&/,"")]={colorScheme:(g=d.palette)==null?void 0:g.mode}});let i={html:mM(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...gM(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(u=(l=e.components)==null?void 0:l.MuiCssBaseline)==null?void 0:u.styleOverrides;return o&&(i=[i,o]),i},Mc="mui-ecs",yM=e=>{const t=Xw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Mc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,o])=>{var u,f;const l=e.getColorSchemeSelector(i);l.startsWith("@")?n[l]={[`:root:not(:has(.${Mc}))`]:{colorScheme:(u=o.palette)==null?void 0:u.mode}}:n[l.replace(/\s*&/,"")]={[`&:not(:has(.${Mc}))`]:{colorScheme:(f=o.palette)==null?void 0:f.mode}}}),t},bM=Xm(im?({theme:e,enableColorScheme:t})=>Xw(e,t):({theme:e})=>yM(e));function vM(e){const t=Xe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:i=!1}=t;return $.jsxs(T.Fragment,{children:[im&&$.jsx(bM,{enableColorScheme:i}),!im&&!i&&$.jsx("span",{className:Mc,style:{display:"none"}}),n]})}function SM(e){const t=xr(e);return t.body===e?yi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function SS(e){return parseInt(yi(e).getComputedStyle(e).paddingRight,10)||0}function wM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function wS(e,t,n,i,o){const l=[t,n,...i];[].forEach.call(e.children,u=>{const f=!l.includes(u),d=!wM(u);f&&d&&gl(u,o)})}function fh(e,t){let n=-1;return e.some((i,o)=>t(i)?(n=o,!0):!1),n}function xM(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(SM(i)){const u=kw(yi(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${SS(i)+u}px`;const f=xr(i).querySelectorAll(".mui-fixed");[].forEach.call(f,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${SS(d)+u}px`})}let l;if(i.parentNode instanceof DocumentFragment)l=xr(i).body;else{const u=i.parentElement,f=yi(i);l=(u==null?void 0:u.nodeName)==="HTML"&&f.getComputedStyle(u).overflowY==="scroll"?u:i}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:u,property:f})=>{l?u.style.setProperty(f,l):u.style.removeProperty(f)})}}function CM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class kM{constructor(){this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&gl(t.modalRef,!1);const o=CM(n);wS(n,t.mount,t.modalRef,o,!0);const l=fh(this.containers,u=>u.container===n);return l!==-1?(this.containers[l].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),i)}mount(t,n){const i=fh(this.containers,l=>l.modals.includes(t)),o=this.containers[i];o.restore||(o.restore=xM(o,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const o=fh(this.containers,u=>u.modals.includes(t)),l=this.containers[o];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(i,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&gl(t.modalRef,n),wS(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(o,1);else{const u=l.modals[l.modals.length-1];u.modalRef&&gl(u.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const EM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function TM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function AM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function _M(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||AM(e))}function RM(e){const t=[],n=[];return Array.from(e.querySelectorAll(EM)).forEach((i,o)=>{const l=TM(i);l===-1||!_M(i)||(l===0?t.push(i):n.push({documentOrder:o,tabIndex:l,node:i}))}),n.sort((i,o)=>i.tabIndex===o.tabIndex?i.documentOrder-o.documentOrder:i.tabIndex-o.tabIndex).map(i=>i.node).concat(t)}function OM(){return!0}function MM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:l=RM,isEnabled:u=OM,open:f}=e,d=T.useRef(!1),p=T.useRef(null),m=T.useRef(null),g=T.useRef(null),v=T.useRef(null),b=T.useRef(!1),w=T.useRef(null),S=En(Vl(t),w),k=T.useRef(null);T.useEffect(()=>{!f||!w.current||(b.current=!n)},[n,f]),T.useEffect(()=>{if(!f||!w.current)return;const _=xr(w.current);return w.current.contains(_.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),()=>{o||(g.current&&g.current.focus&&(d.current=!0,g.current.focus()),g.current=null)}},[f]),T.useEffect(()=>{if(!f||!w.current)return;const _=xr(w.current),O=B=>{k.current=B,!(i||!u()||B.key!=="Tab")&&_.activeElement===w.current&&B.shiftKey&&(d.current=!0,m.current&&m.current.focus())},R=()=>{var P,E;const B=w.current;if(B===null)return;if(!_.hasFocus()||!u()||d.current){d.current=!1;return}if(B.contains(_.activeElement)||i&&_.activeElement!==p.current&&_.activeElement!==m.current)return;if(_.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!b.current)return;let I=[];if((_.activeElement===p.current||_.activeElement===m.current)&&(I=l(w.current)),I.length>0){const j=!!((P=k.current)!=null&&P.shiftKey&&((E=k.current)==null?void 0:E.key)==="Tab"),U=I[0],G=I[I.length-1];typeof U!="string"&&typeof G!="string"&&(j?G.focus():U.focus())}else B.focus()};_.addEventListener("focusin",R),_.addEventListener("keydown",O,!0);const M=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(M),_.removeEventListener("focusin",R),_.removeEventListener("keydown",O,!0)}},[n,i,o,u,f,l]);const A=_=>{g.current===null&&(g.current=_.relatedTarget),b.current=!0,v.current=_.target;const O=t.props.onFocus;O&&O(_)},N=_=>{g.current===null&&(g.current=_.relatedTarget),b.current=!0};return $.jsxs(T.Fragment,{children:[$.jsx("div",{tabIndex:f?0:-1,onFocus:N,ref:p,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:S,onFocus:A}),$.jsx("div",{tabIndex:f?0:-1,onFocus:N,ref:m,"data-testid":"sentinelEnd"})]})}function NM(e){return typeof e=="function"?e():e}function DM(e){return e?e.props.hasOwnProperty("in"):!1}const xS=()=>{},gc=new kM;function LM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:u,children:f,onClose:d,open:p,rootRef:m}=e,g=T.useRef({}),v=T.useRef(null),b=T.useRef(null),w=En(b,m),[S,k]=T.useState(!p),A=DM(f);let N=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(N=!1);const _=()=>xr(v.current),O=()=>(g.current.modalRef=b.current,g.current.mount=v.current,g.current),R=()=>{gc.mount(O(),{disableScrollLock:i}),b.current&&(b.current.scrollTop=0)},M=Do(()=>{const V=NM(t)||_().body;gc.add(O(),V),b.current&&R()}),B=()=>gc.isTopModal(O()),I=Do(V=>{v.current=V,V&&(p&&B()?R():b.current&&gl(b.current,N))}),P=T.useCallback(()=>{gc.remove(O(),N)},[N]);T.useEffect(()=>()=>{P()},[P]),T.useEffect(()=>{p?M():(!A||!o)&&P()},[p,P,A,o,M]);const E=V=>H=>{var Z;(Z=V.onKeyDown)==null||Z.call(V,H),!(H.key!=="Escape"||H.which===229||!B())&&(n||(H.stopPropagation(),d&&d(H,"escapeKeyDown")))},j=V=>H=>{var Z;(Z=V.onClick)==null||Z.call(V,H),H.target===H.currentTarget&&d&&d(H,"backdropClick")};return{getRootProps:(V={})=>{const H=Tw(e);delete H.onTransitionEnter,delete H.onTransitionExited;const Z={...H,...V};return{role:"presentation",...Z,onKeyDown:E(Z),ref:w}},getBackdropProps:(V={})=>{const H=V;return{"aria-hidden":!0,...H,onClick:j(H),open:p}},getTransitionProps:()=>{const V=()=>{k(!1),l&&l()},H=()=>{k(!0),u&&u(),o&&P()};return{onEnter:G0(V,(f==null?void 0:f.props.onEnter)??xS),onExited:G0(H,(f==null?void 0:f.props.onExited)??xS)}},rootRef:w,portalRef:I,isTopModal:B,exited:S,hasTransition:A}}function zM(e){return Ke("MuiModal",e)}Ve("MuiModal",["root","hidden","backdrop"]);const BM=e=>{const{open:t,exited:n,classes:i}=e;return Ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zM,i)},IM=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(gt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),jM=me(Gw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ww=T.forwardRef(function(t,n){const i=Xe({name:"MuiModal",props:t}),{BackdropComponent:o=jM,BackdropProps:l,classes:u,className:f,closeAfterTransition:d=!1,children:p,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:w=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:k=!1,disablePortal:A=!1,disableRestoreFocus:N=!1,disableScrollLock:_=!1,hideBackdrop:O=!1,keepMounted:R=!1,onBackdropClick:M,onClose:B,onTransitionEnter:I,onTransitionExited:P,open:E,slotProps:j={},slots:U={},theme:G,...Y}=i,V={...i,closeAfterTransition:d,disableAutoFocus:w,disableEnforceFocus:S,disableEscapeKeyDown:k,disablePortal:A,disableRestoreFocus:N,disableScrollLock:_,hideBackdrop:O,keepMounted:R},{getRootProps:H,getBackdropProps:Z,getTransitionProps:ae,portalRef:J,isTopModal:C,exited:X,hasTransition:de}=LM({...V,rootRef:n}),L={...V,exited:X},ie=BM(L),ue={};if(p.props.tabIndex===void 0&&(ue.tabIndex="-1"),de){const{onEnter:we,onExited:Ce}=ae();ue.onEnter=we,ue.onExited=Ce}const fe={slots:{root:v.Root,backdrop:v.Backdrop,...U},slotProps:{...b,...j}},[_e,ge]=dt("root",{ref:n,elementType:IM,externalForwardedProps:{...fe,...Y,component:g},getSlotProps:H,ownerState:L,className:Oe(f,ie==null?void 0:ie.root,!L.open&&L.exited&&(ie==null?void 0:ie.hidden))}),[ye,le]=dt("backdrop",{ref:l==null?void 0:l.ref,elementType:o,externalForwardedProps:fe,shouldForwardComponentProp:!0,additionalProps:l,getSlotProps:we=>Z({...we,onClick:Ce=>{M&&M(Ce),we!=null&&we.onClick&&we.onClick(Ce)}}),className:Oe(l==null?void 0:l.className,ie==null?void 0:ie.backdrop),ownerState:L});return!R&&!E&&(!de||X)?null:$.jsx(pO,{ref:J,container:m,disablePortal:A,children:$.jsxs(_e,{...ge,children:[!O&&o?$.jsx(ye,{...le}):null,$.jsx(MM,{disableEnforceFocus:S,disableAutoFocus:w,disableRestoreFocus:N,isEnabled:C,open:E,children:T.cloneElement(p,ue)})]})})});function $M(e){return Ke("MuiDialog",e)}const dh=Ve("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Qw=T.createContext({}),PM=me(Gw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),UM=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:l}=e,u={root:["root"],container:["container",`scroll${xe(n)}`],paper:["paper",`paperScroll${xe(n)}`,`paperWidth${xe(String(i))}`,o&&"paperFullWidth",l&&"paperFullScreen"]};return Ye(u,$M,t)},HM=me(Ww,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),qM=me("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${xe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),FM=me(Sf,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${xe(n.scroll)}`],t[`paperWidth${xe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(gt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${dh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${dh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Zw=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiDialog"}),o=Gl(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":u,"aria-labelledby":f,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:m,children:g,className:v,disableEscapeKeyDown:b=!1,fullScreen:w=!1,fullWidth:S=!1,maxWidth:k="sm",onBackdropClick:A,onClick:N,onClose:_,open:O,PaperComponent:R=Sf,PaperProps:M={},scroll:B="paper",slots:I={},slotProps:P={},TransitionComponent:E=nm,transitionDuration:j=l,TransitionProps:U,...G}=i,Y={...i,disableEscapeKeyDown:b,fullScreen:w,fullWidth:S,maxWidth:k,scroll:B},V=UM(Y),H=T.useRef(),Z=ke=>{H.current=ke.target===ke.currentTarget},ae=ke=>{N&&N(ke),H.current&&(H.current=null,A&&A(ke),_&&_(ke,"backdropClick"))},J=Fl(f),C=T.useMemo(()=>({titleId:J}),[J]),X={transition:E,...I},de={transition:U,paper:M,backdrop:m,...P},L={slots:X,slotProps:de},[ie,ue]=dt("root",{elementType:HM,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:Y,className:Oe(V.root,v),ref:n}),[fe,_e]=dt("backdrop",{elementType:PM,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:Y}),[ge,ye]=dt("paper",{elementType:FM,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:Y,className:Oe(V.paper,M.className)}),[le,we]=dt("container",{elementType:qM,externalForwardedProps:L,ownerState:Y,className:Oe(V.container)}),[Ce,$e]=dt("transition",{elementType:nm,externalForwardedProps:L,ownerState:Y,additionalProps:{appear:!0,in:O,timeout:j,role:"presentation"}});return $.jsx(ie,{closeAfterTransition:!0,slots:{backdrop:fe},slotProps:{backdrop:{transitionDuration:j,as:p,..._e}},disableEscapeKeyDown:b,onClose:_,open:O,onClick:ae,...ue,...G,children:$.jsx(Ce,{...$e,children:$.jsx(le,{onMouseDown:Z,...we,children:$.jsx(ge,{as:R,elevation:24,role:"dialog","aria-describedby":u,"aria-labelledby":J,"aria-modal":d,...ye,children:$.jsx(Qw.Provider,{value:C,children:g})})})})})});function VM(e){return Ke("MuiDialogContent",e)}Ve("MuiDialogContent",["root","dividers"]);function GM(e){return Ke("MuiDialogTitle",e)}const KM=Ve("MuiDialogTitle",["root"]),YM=e=>{const{classes:t,dividers:n}=e;return Ye({root:["root",n&&"dividers"]},VM,t)},XM=me("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(gt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${KM.root} + &`]:{paddingTop:0}}}]}))),Jw=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiDialogContent"}),{className:o,dividers:l=!1,...u}=i,f={...i,dividers:l},d=YM(f);return $.jsx(XM,{className:Oe(d.root,o),ownerState:f,ref:n,...u})}),WM=e=>{const{classes:t}=e;return Ye({root:["root"]},GM,t)},QM=me(dn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ex=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiDialogTitle"}),{className:o,id:l,...u}=i,f=i,d=WM(f),{titleId:p=l}=T.useContext(Qw);return $.jsx(QM,{component:"h2",className:Oe(d.root,o),ownerState:f,ref:n,variant:"h6",id:l??p,...u})}),CS=Ve("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ZM=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:l,hiddenLabel:u,multiline:f}=e,d={root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd",l==="small"&&`size${xe(l)}`,u&&"hiddenLabel",f&&"multiline"],input:["input"]},p=Ye(d,CO,t);return{...t,...p}},JM=me(kf,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...xf(e,t),!n.disableUnderline&&t.underline]}})(gt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${ya.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ya.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l},variants:[{props:({ownerState:u})=>!u.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ya.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ya.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ya.disabled}, .${ya.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ya.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Cr()).map(([u])=>{var f;return{props:{disableUnderline:!1,color:u},style:{"&::after":{borderBottom:`2px solid ${(f=(e.vars||e).palette[u])==null?void 0:f.main}`}}}}),{props:({ownerState:u})=>u.startAdornment,style:{paddingLeft:12}},{props:({ownerState:u})=>u.endAdornment,style:{paddingRight:12}},{props:({ownerState:u})=>u.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:u,size:f})=>u.multiline&&f==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel&&u.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),eN=me(Ef,{name:"MuiFilledInput",slot:"Input",overridesResolver:Cf})(gt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),eg=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:l={},componentsProps:u,fullWidth:f=!1,hiddenLabel:d,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:v={},type:b="text",...w}=i,S={...i,disableUnderline:o,fullWidth:f,inputComponent:p,multiline:m,type:b},k=ZM(i),A={root:{ownerState:S},input:{ownerState:S}},N=g??u?sn(A,g??u):A,_=v.root??l.Root??JM,O=v.input??l.Input??eN;return $.jsx(Jm,{slots:{root:_,input:O},slotProps:N,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:b,...w,classes:k})});eg.muiName="Input";function tN(e){return Ke("MuiFormControl",e)}Ve("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const nN=e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root",n!=="none"&&`margin${xe(n)}`,i&&"fullWidth"]};return Ye(o,tN,t)},rN=me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${xe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),tx=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiFormControl"}),{children:o,className:l,color:u="primary",component:f="div",disabled:d=!1,error:p=!1,focused:m,fullWidth:g=!1,hiddenLabel:v=!1,margin:b="none",required:w=!1,size:S="medium",variant:k="outlined",...A}=i,N={...i,color:u,component:f,disabled:d,error:p,fullWidth:g,hiddenLabel:v,margin:b,required:w,size:S,variant:k},_=nN(N),[O,R]=T.useState(()=>{let V=!1;return o&&T.Children.forEach(o,H=>{if(!Oc(H,["Input","Select"]))return;const Z=Oc(H,["Select"])?H.props.input:H;Z&&bO(Z.props)&&(V=!0)}),V}),[M,B]=T.useState(()=>{let V=!1;return o&&T.Children.forEach(o,H=>{Oc(H,["Input","Select"])&&(Vc(H.props,!0)||Vc(H.props.inputProps,!0))&&(V=!0)}),V}),[I,P]=T.useState(!1);d&&I&&P(!1);const E=m!==void 0&&!d?m:I;let j;T.useRef(!1);const U=T.useCallback(()=>{B(!0)},[]),G=T.useCallback(()=>{B(!1)},[]),Y=T.useMemo(()=>({adornedStart:O,setAdornedStart:R,color:u,disabled:d,error:p,filled:M,focused:E,fullWidth:g,hiddenLabel:v,size:S,onBlur:()=>{P(!1)},onFocus:()=>{P(!0)},onEmpty:G,onFilled:U,registerEffect:j,required:w,variant:k}),[O,u,d,p,M,E,g,v,j,G,U,w,S,k]);return $.jsx(Zm.Provider,{value:Y,children:$.jsx(rN,{as:f,ownerState:N,className:Oe(_.root,l),ref:n,...A,children:o})})});function iN(e){return Ke("MuiFormControlLabel",e)}const dl=Ve("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),aN=e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:l}=e,u={root:["root",n&&"disabled",`labelPlacement${xe(i)}`,o&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ye(u,iN,t)},oN=me("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dl.label}`]:t.label},t.root,t[`labelPlacement${xe(n.labelPlacement)}`]]}})(gt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${dl.disabled}`]:{cursor:"default"},[`& .${dl.label}`]:{[`&.${dl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),sN=me("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(gt(({theme:e})=>({[`&.${dl.error}`]:{color:(e.vars||e).palette.error.main}}))),nx=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiFormControlLabel"}),{checked:o,className:l,componentsProps:u={},control:f,disabled:d,disableTypography:p,inputRef:m,label:g,labelPlacement:v="end",name:b,onChange:w,required:S,slots:k={},slotProps:A={},value:N,..._}=i,O=Yi(),R=d??f.props.disabled??(O==null?void 0:O.disabled),M=S??f.props.required,B={disabled:R,required:M};["checked","name","onChange","value","inputRef"].forEach(V=>{typeof f.props[V]>"u"&&typeof i[V]<"u"&&(B[V]=i[V])});const I=Ma({props:i,muiFormControl:O,states:["error"]}),P={...i,disabled:R,labelPlacement:v,required:M,error:I.error},E=aN(P),j={slots:k,slotProps:{...u,...A}},[U,G]=dt("typography",{elementType:dn,externalForwardedProps:j,ownerState:P});let Y=g;return Y!=null&&Y.type!==dn&&!p&&(Y=$.jsx(U,{component:"span",...G,className:Oe(E.label,G==null?void 0:G.className),children:Y})),$.jsxs(oN,{className:Oe(E.root,l),ownerState:P,ref:n,..._,children:[T.cloneElement(f,B),M?$.jsxs("div",{children:[Y,$.jsxs(sN,{ownerState:P,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):Y]})});function lN(e){return Ke("MuiFormHelperText",e)}const kS=Ve("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ES;const uN=e=>{const{classes:t,contained:n,size:i,disabled:o,error:l,filled:u,focused:f,required:d}=e,p={root:["root",o&&"disabled",l&&"error",i&&`size${xe(i)}`,n&&"contained",f&&"focused",u&&"filled",d&&"required"]};return Ye(p,lN,t)},cN=me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${xe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${kS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kS.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),rx=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiFormHelperText"}),{children:o,className:l,component:u="p",disabled:f,error:d,filled:p,focused:m,margin:g,required:v,variant:b,...w}=i,S=Yi(),k=Ma({props:i,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),A={...i,component:u,contained:k.variant==="filled"||k.variant==="outlined",variant:k.variant,size:k.size,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required};delete A.ownerState;const N=uN(A);return $.jsx(cN,{as:u,className:Oe(N.root,l),ref:n,...w,ownerState:A,children:o===" "?ES||(ES=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function fN(e){return Ke("MuiFormLabel",e)}const yl=Ve("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dN=e=>{const{classes:t,color:n,focused:i,disabled:o,error:l,filled:u,required:f}=e,d={root:["root",`color${xe(n)}`,o&&"disabled",l&&"error",u&&"filled",i&&"focused",f&&"required"],asterisk:["asterisk",l&&"error"]};return Ye(d,fN,t)},pN=me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{[`&.${yl.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yl.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),hN=me("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(gt(({theme:e})=>({[`&.${yl.error}`]:{color:(e.vars||e).palette.error.main}}))),mN=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiFormLabel"}),{children:o,className:l,color:u,component:f="label",disabled:d,error:p,filled:m,focused:g,required:v,...b}=i,w=Yi(),S=Ma({props:i,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),k={...i,color:S.color||"primary",component:f,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},A=dN(k);return $.jsxs(pN,{as:f,ownerState:k,className:Oe(A.root,l),ref:n,...b,children:[o,S.required&&$.jsxs(hN,{ownerState:k,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]})}),ix=N_({createStyledComponent:me("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>Xe({props:e,name:"MuiGrid2"}),useTheme:Gl});function am(e){return`scale(${e}, ${e**2})`}const gN={entering:{opacity:1,transform:am(1)},entered:{opacity:1,transform:"none"}},ph=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),om=T.forwardRef(function(t,n){const{addEndListener:i,appear:o=!0,children:l,easing:u,in:f,onEnter:d,onEntered:p,onEntering:m,onExit:g,onExited:v,onExiting:b,style:w,timeout:S="auto",TransitionComponent:k=Kr,...A}=t,N=Cw(),_=T.useRef(),O=Gl(),R=T.useRef(null),M=En(R,Vl(l),n),B=V=>H=>{if(V){const Z=R.current;H===void 0?V(Z):V(Z,H)}},I=B(m),P=B((V,H)=>{Fw(V);const{duration:Z,delay:ae,easing:J}=qc({style:w,timeout:S,easing:u},{mode:"enter"});let C;S==="auto"?(C=O.transitions.getAutoHeightDuration(V.clientHeight),_.current=C):C=Z,V.style.transition=[O.transitions.create("opacity",{duration:C,delay:ae}),O.transitions.create("transform",{duration:ph?C:C*.666,delay:ae,easing:J})].join(","),d&&d(V,H)}),E=B(p),j=B(b),U=B(V=>{const{duration:H,delay:Z,easing:ae}=qc({style:w,timeout:S,easing:u},{mode:"exit"});let J;S==="auto"?(J=O.transitions.getAutoHeightDuration(V.clientHeight),_.current=J):J=H,V.style.transition=[O.transitions.create("opacity",{duration:J,delay:Z}),O.transitions.create("transform",{duration:ph?J:J*.666,delay:ph?Z:Z||J*.333,easing:ae})].join(","),V.style.opacity=0,V.style.transform=am(.75),g&&g(V)}),G=B(v),Y=V=>{S==="auto"&&N.start(_.current||0,V),i&&i(R.current,V)};return $.jsx(k,{appear:o,in:f,nodeRef:R,onEnter:P,onEntered:E,onEntering:I,onExit:U,onExited:G,onExiting:j,addEndListener:Y,timeout:S==="auto"?null:S,...A,children:(V,{ownerState:H,...Z})=>T.cloneElement(l,{style:{opacity:0,transform:am(.75),visibility:V==="exited"&&!f?"hidden":void 0,...gN[V],...w,...l.props.style},ref:M,...Z})})});om&&(om.muiSupportAuto=!0);const yN=e=>{const{classes:t,disableUnderline:n}=e,o=Ye({root:["root",!n&&"underline"],input:["input"]},wO,t);return{...t,...o}},bN=me(kf,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...xf(e,t),!n.disableUnderline&&t.underline]}})(gt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${nl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${nl.disabled}, .${nl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${nl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Cr()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),vN=me(Ef,{name:"MuiInput",slot:"Input",overridesResolver:Cf})({}),tg=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:l={},componentsProps:u,fullWidth:f=!1,inputComponent:d="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text",...b}=i,w=yN(i),k={root:{ownerState:{disableUnderline:o}}},A=m??u?sn(m??u,k):k,N=g.root??l.Root??bN,_=g.input??l.Input??vN;return $.jsx(Jm,{slots:{root:N,input:_},slotProps:A,fullWidth:f,inputComponent:d,multiline:p,ref:n,type:v,...b,classes:w})});tg.muiName="Input";function SN(e){return Ke("MuiInputLabel",e)}Ve("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const wN=e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:l,variant:u,required:f}=e,d={root:["root",n&&"formControl",!l&&"animated",o&&"shrink",i&&i!=="normal"&&`size${xe(i)}`,u],asterisk:[f&&"asterisk"]},p=Ye(d,SN,t);return{...t,...p}},xN=me(mN,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yl.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(gt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:i})=>t==="filled"&&n.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),CN=T.forwardRef(function(t,n){const i=Xe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:l,shrink:u,variant:f,className:d,...p}=i,m=Yi();let g=u;typeof g>"u"&&m&&(g=m.filled||m.focused||m.adornedStart);const v=Ma({props:i,muiFormControl:m,states:["size","variant","required","focused"]}),b={...i,disableAnimation:o,formControl:m,shrink:g,size:v.size,variant:v.variant,required:v.required,focused:v.focused},w=wN(b);return $.jsx(xN,{"data-shrink":g,ref:n,className:Oe(w.root,d),...p,ownerState:b,classes:w})}),sm=T.createContext({});function kN(e){return Ke("MuiList",e)}Ve("MuiList",["root","padding","dense","subheader"]);const EN=e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return Ye({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},kN,t)},TN=me("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),AN=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiList"}),{children:o,className:l,component:u="ul",dense:f=!1,disablePadding:d=!1,subheader:p,...m}=i,g=T.useMemo(()=>({dense:f}),[f]),v={...i,component:u,dense:f,disablePadding:d},b=EN(v);return $.jsx(sm.Provider,{value:g,children:$.jsxs(TN,{as:u,className:Oe(b.root,l),ref:n,ownerState:v,...m,children:[p,o]})})}),TS=Ve("MuiListItemIcon",["root","alignItemsFlexStart"]),AS=Ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function hh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _S(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ax(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function rl(e,t,n,i,o,l){let u=!1,f=o(e,t,t?n:!1);for(;f;){if(f===e.firstChild){if(u)return!1;u=!0}const d=i?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!ax(f,l)||d)f=o(e,f,n);else return f.focus(),!0}return!1}const _N=T.forwardRef(function(t,n){const{actions:i,autoFocus:o=!1,autoFocusItem:l=!1,children:u,className:f,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:m,variant:g="selectedMenu",...v}=t,b=T.useRef(null),w=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gi(()=>{o&&b.current.focus()},[o]),T.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(_,{direction:O})=>{const R=!b.current.style.width;if(_.clientHeight<b.current.clientHeight&&R){const M=`${kw(yi(_))}px`;b.current.style[O==="rtl"?"paddingLeft":"paddingRight"]=M,b.current.style.width=`calc(100% + ${M})`}return b.current}}),[]);const S=_=>{const O=b.current,R=_.key;if(_.ctrlKey||_.metaKey||_.altKey){m&&m(_);return}const B=xr(O).activeElement;if(R==="ArrowDown")_.preventDefault(),rl(O,B,p,d,hh);else if(R==="ArrowUp")_.preventDefault(),rl(O,B,p,d,_S);else if(R==="Home")_.preventDefault(),rl(O,null,p,d,hh);else if(R==="End")_.preventDefault(),rl(O,null,p,d,_S);else if(R.length===1){const I=w.current,P=R.toLowerCase(),E=performance.now();I.keys.length>0&&(E-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&P!==I.keys[0]&&(I.repeating=!1)),I.lastTime=E,I.keys.push(P);const j=B&&!I.repeating&&ax(B,I);I.previousKeyMatched&&(j||rl(O,B,!1,d,hh,I))?_.preventDefault():I.previousKeyMatched=!1}m&&m(_)},k=En(b,n);let A=-1;T.Children.forEach(u,(_,O)=>{if(!T.isValidElement(_)){A===O&&(A+=1,A>=u.length&&(A=-1));return}_.props.disabled||(g==="selectedMenu"&&_.props.selected||A===-1)&&(A=O),A===O&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(A+=1,A>=u.length&&(A=-1))});const N=T.Children.map(u,(_,O)=>{if(O===A){const R={};return l&&(R.autoFocus=!0),_.props.tabIndex===void 0&&g==="selectedMenu"&&(R.tabIndex=0),T.cloneElement(_,R)}return _});return $.jsx(AN,{role:"menu",ref:k,className:f,onKeyDown:S,tabIndex:o?0:-1,...v,children:N})});function RN(e){return Ke("MuiPopover",e)}Ve("MuiPopover",["root","paper"]);function RS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function OS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function MS(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function mh(e){return typeof e=="function"?e():e}const ON=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"]},RN,t)},MN=me(Ww,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ox=me(Sf,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),NN=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:d="anchorEl",children:p,className:m,container:g,elevation:v=8,marginThreshold:b=16,open:w,PaperProps:S={},slots:k={},slotProps:A={},transformOrigin:N={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:O="auto",TransitionProps:R={},disableScrollLock:M=!1,...B}=i,I=T.useRef(),P={...i,anchorOrigin:u,anchorReference:d,elevation:v,marginThreshold:b,transformOrigin:N,TransitionComponent:_,transitionDuration:O,TransitionProps:R},E=ON(P),j=T.useCallback(()=>{if(d==="anchorPosition")return f;const le=mh(l),Ce=(le&&le.nodeType===1?le:xr(I.current).body).getBoundingClientRect();return{top:Ce.top+RS(Ce,u.vertical),left:Ce.left+OS(Ce,u.horizontal)}},[l,u.horizontal,u.vertical,f,d]),U=T.useCallback(le=>({vertical:RS(le,N.vertical),horizontal:OS(le,N.horizontal)}),[N.horizontal,N.vertical]),G=T.useCallback(le=>{const we={width:le.offsetWidth,height:le.offsetHeight},Ce=U(we);if(d==="none")return{top:null,left:null,transformOrigin:MS(Ce)};const $e=j();let ke=$e.top-Ce.vertical,Ie=$e.left-Ce.horizontal;const Ze=ke+we.height,qe=Ie+we.width,Je=yi(mh(l)),yt=Je.innerHeight-b,tt=Je.innerWidth-b;if(b!==null&&ke<b){const nt=ke-b;ke-=nt,Ce.vertical+=nt}else if(b!==null&&Ze>yt){const nt=Ze-yt;ke-=nt,Ce.vertical+=nt}if(b!==null&&Ie<b){const nt=Ie-b;Ie-=nt,Ce.horizontal+=nt}else if(qe>tt){const nt=qe-tt;Ie-=nt,Ce.horizontal+=nt}return{top:`${Math.round(ke)}px`,left:`${Math.round(Ie)}px`,transformOrigin:MS(Ce)}},[l,d,j,U,b]),[Y,V]=T.useState(w),H=T.useCallback(()=>{const le=I.current;if(!le)return;const we=G(le);we.top!==null&&le.style.setProperty("top",we.top),we.left!==null&&(le.style.left=we.left),le.style.transformOrigin=we.transformOrigin,V(!0)},[G]);T.useEffect(()=>(M&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[l,M,H]);const Z=()=>{H()},ae=()=>{V(!1)};T.useEffect(()=>{w&&H()}),T.useImperativeHandle(o,()=>w?{updatePosition:()=>{H()}}:null,[w,H]),T.useEffect(()=>{if(!w)return;const le=ww(()=>{H()}),we=yi(l);return we.addEventListener("resize",le),()=>{le.clear(),we.removeEventListener("resize",le)}},[l,w,H]);let J=O;const C={slots:{transition:_,...k},slotProps:{transition:R,paper:S,...A}},[X,de]=dt("transition",{elementType:om,externalForwardedProps:C,ownerState:P,getSlotProps:le=>({...le,onEntering:(we,Ce)=>{var $e;($e=le.onEntering)==null||$e.call(le,we,Ce),Z()},onExited:we=>{var Ce;(Ce=le.onExited)==null||Ce.call(le,we),ae()}}),additionalProps:{appear:!0,in:w}});O==="auto"&&!X.muiSupportAuto&&(J=void 0);const L=g||(l?xr(mh(l)).body:void 0),[ie,{slots:ue,slotProps:fe,..._e}]=dt("root",{ref:n,elementType:MN,externalForwardedProps:{...C,...B},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:k.backdrop},slotProps:{backdrop:Uw(typeof A.backdrop=="function"?A.backdrop(P):A.backdrop,{invisible:!0})},container:L,open:w},ownerState:P,className:Oe(E.root,m)}),[ge,ye]=dt("paper",{ref:I,className:E.paper,elementType:ox,externalForwardedProps:C,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:Y?void 0:{opacity:0}},ownerState:P});return $.jsx(ie,{..._e,...!tm(ie)&&{slots:ue,slotProps:fe,disableScrollLock:M},children:$.jsx(X,{...de,timeout:J,children:$.jsx(ge,{...ye,children:p})})})});function DN(e){return Ke("MuiMenu",e)}Ve("MuiMenu",["root","paper","list"]);const LN={vertical:"top",horizontal:"right"},zN={vertical:"top",horizontal:"left"},BN=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"],list:["list"]},DN,t)},IN=me(NN,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jN=me(ox,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$N=me(_N,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),PN=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:l,className:u,disableAutoFocusItem:f=!1,MenuListProps:d={},onClose:p,open:m,PaperProps:g={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:w,...S}={},variant:k="selectedMenu",slots:A={},slotProps:N={},..._}=i,O=WA(),R={...i,autoFocus:o,disableAutoFocusItem:f,MenuListProps:d,onEntering:w,PaperProps:g,transitionDuration:b,TransitionProps:S,variant:k},M=BN(R),B=o&&!f&&m,I=T.useRef(null),P=(J,C)=>{I.current&&I.current.adjustStyleForScrollbar(J,{direction:O?"rtl":"ltr"}),w&&w(J,C)},E=J=>{J.key==="Tab"&&(J.preventDefault(),p&&p(J,"tabKeyDown"))};let j=-1;T.Children.map(l,(J,C)=>{T.isValidElement(J)&&(J.props.disabled||(k==="selectedMenu"&&J.props.selected||j===-1)&&(j=C))});const U={slots:A,slotProps:{list:d,transition:S,paper:g,...N}},G=FA({elementType:A.root,externalSlotProps:N.root,ownerState:R,className:[M.root,u]}),[Y,V]=dt("paper",{className:M.paper,elementType:jN,externalForwardedProps:U,shouldForwardComponentProp:!0,ownerState:R}),[H,Z]=dt("list",{className:Oe(M.list,d.className),elementType:$N,shouldForwardComponentProp:!0,externalForwardedProps:U,getSlotProps:J=>({...J,onKeyDown:C=>{var X;E(C),(X=J.onKeyDown)==null||X.call(J,C)}}),ownerState:R}),ae=typeof U.slotProps.transition=="function"?U.slotProps.transition(R):U.slotProps.transition;return $.jsx(IN,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?LN:zN,slots:{root:A.root,paper:Y,backdrop:A.backdrop,...A.transition&&{transition:A.transition}},slotProps:{root:G,paper:V,backdrop:typeof N.backdrop=="function"?N.backdrop(R):N.backdrop,transition:{...ae,onEntering:(...J)=>{var C;P(...J),(C=ae==null?void 0:ae.onEntering)==null||C.call(ae,...J)}}},open:m,ref:n,transitionDuration:b,ownerState:R,..._,classes:v,children:$.jsx(H,{actions:I,autoFocus:o&&(j===-1||f),autoFocusItem:B,variant:k,...Z,children:l})})});function UN(e){return Ke("MuiMenuItem",e)}const il=Ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),HN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},qN=e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:l,classes:u}=e,d=Ye({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",l&&"selected"]},UN,u);return{...u,...d}},FN=me(wf,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:HN})(gt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${il.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${il.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${il.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:bn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${il.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${il.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${CS.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${CS.inset}`]:{marginLeft:52},[`& .${AS.root}`]:{marginTop:0,marginBottom:0},[`& .${AS.inset}`]:{paddingLeft:36},[`& .${TS.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${TS.root} svg`]:{fontSize:"1.25rem"}}}]}))),VN=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:l="li",dense:u=!1,divider:f=!1,disableGutters:d=!1,focusVisibleClassName:p,role:m="menuitem",tabIndex:g,className:v,...b}=i,w=T.useContext(sm),S=T.useMemo(()=>({dense:u||w.dense||!1,disableGutters:d}),[w.dense,u,d]),k=T.useRef(null);gi(()=>{o&&k.current&&k.current.focus()},[o]);const A={...i,dense:S.dense,divider:f,disableGutters:d},N=qN(i),_=En(k,n);let O;return i.disabled||(O=g!==void 0?g:-1),$.jsx(sm.Provider,{value:S,children:$.jsx(FN,{ref:_,role:m,tabIndex:O,component:l,focusVisibleClassName:Oe(N.focusVisible,p),className:Oe(N.root,v),...b,ownerState:A,classes:N})})});function GN(e){return Ke("MuiNativeSelect",e)}const ng=Ve("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),KN=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:l,error:u}=e,f={select:["select",n,i&&"disabled",o&&"multiple",u&&"error"],icon:["icon",`icon${xe(n)}`,l&&"iconOpen",i&&"disabled"]};return Ye(f,GN,t)},sx=me("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ng.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),YN=me(sx,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Bn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ng.multiple}`]:t.multiple}]}})({}),lx=me("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ng.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),XN=me(lx,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xe(n.variant)}`],n.open&&t.iconOpen]}})({}),WN=T.forwardRef(function(t,n){const{className:i,disabled:o,error:l,IconComponent:u,inputRef:f,variant:d="standard",...p}=t,m={...t,disabled:o,variant:d,error:l},g=KN(m);return $.jsxs(T.Fragment,{children:[$.jsx(YN,{ownerState:m,className:Oe(g.select,i),disabled:o,ref:f||n,...p}),t.multiple?null:$.jsx(XN,{as:u,ownerState:m,className:g.icon})]})});var NS;const QN=me("fieldset",{shouldForwardProp:Bn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ZN=me("legend",{shouldForwardProp:Bn})(gt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function JN(e){const{children:t,classes:n,className:i,label:o,notched:l,...u}=e,f=o!=null&&o!=="",d={...e,notched:l,withLabel:f};return $.jsx(QN,{"aria-hidden":!0,className:i,ownerState:d,...u,children:$.jsx(ZN,{ownerState:d,children:f?$.jsx("span",{children:o}):NS||(NS=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const eD=e=>{const{classes:t}=e,i=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xO,t);return{...t,...i}},tD=me(kf,{shouldForwardProp:e=>Bn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:xf})(gt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Br.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Br.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Br.focused} .${Br.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Cr()).map(([n])=>({props:{color:n},style:{[`&.${Br.focused} .${Br.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Br.error} .${Br.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Br.disabled} .${Br.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:i})=>n.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),nD=me(JN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(gt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),rD=me(Ef,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Cf})(gt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),rg=T.forwardRef(function(t,n){var i;const o=Xe({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:f="input",label:d,multiline:p=!1,notched:m,slots:g={},type:v="text",...b}=o,w=eD(o),S=Yi(),k=Ma({props:o,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A={...o,color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:u,hiddenLabel:k.hiddenLabel,multiline:p,size:k.size,type:v},N=g.root??l.Root??tD,_=g.input??l.Input??rD;return $.jsx(Jm,{slots:{root:N,input:_},renderSuffix:O=>$.jsx(nD,{ownerState:A,className:w.notchedOutline,label:d!=null&&d!==""&&k.required?i||(i=$.jsxs(T.Fragment,{children:[d," ","*"]})):d,notched:typeof m<"u"?m:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v,...b,classes:{...w,notchedOutline:null}})});rg.muiName="Input";function ux(e){return Ke("MuiSelect",e)}const al=Ve("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var DS;const iD=me(sx,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${al.select}`]:t.select},{[`&.${al.select}`]:t[n.variant]},{[`&.${al.error}`]:t.error},{[`&.${al.multiple}`]:t.multiple}]}})({[`&.${al.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),aD=me(lx,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xe(n.variant)}`],n.open&&t.iconOpen]}})({}),oD=me("input",{shouldForwardProp:e=>Pw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function LS(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function sD(e){return e==null||typeof e=="string"&&!e.trim()}const lD=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:l,error:u}=e,f={select:["select",n,i&&"disabled",o&&"multiple",u&&"error"],icon:["icon",`icon${xe(n)}`,l&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return Ye(f,ux,t)},uD=T.forwardRef(function(t,n){var Tt;const{"aria-describedby":i,"aria-label":o,autoFocus:l,autoWidth:u,children:f,className:d,defaultOpen:p,defaultValue:m,disabled:g,displayEmpty:v,error:b=!1,IconComponent:w,inputRef:S,labelId:k,MenuProps:A={},multiple:N,name:_,onBlur:O,onChange:R,onClose:M,onFocus:B,onOpen:I,open:P,readOnly:E,renderValue:j,required:U,SelectDisplayProps:G={},tabIndex:Y,type:V,value:H,variant:Z="standard",...ae}=t,[J,C]=Gh({controlled:H,default:m,name:"Select"}),[X,de]=Gh({controlled:P,default:p,name:"Select"}),L=T.useRef(null),ie=T.useRef(null),[ue,fe]=T.useState(null),{current:_e}=T.useRef(P!=null),[ge,ye]=T.useState(),le=En(n,S),we=T.useCallback(Ee=>{ie.current=Ee,Ee&&fe(Ee)},[]),Ce=ue==null?void 0:ue.parentNode;T.useImperativeHandle(le,()=>({focus:()=>{ie.current.focus()},node:L.current,value:J}),[J]),T.useEffect(()=>{p&&X&&ue&&!_e&&(ye(u?null:Ce.clientWidth),ie.current.focus())},[ue,u]),T.useEffect(()=>{l&&ie.current.focus()},[l]),T.useEffect(()=>{if(!k)return;const Ee=xr(ie.current).getElementById(k);if(Ee){const Me=()=>{getSelection().isCollapsed&&ie.current.focus()};return Ee.addEventListener("click",Me),()=>{Ee.removeEventListener("click",Me)}}},[k]);const $e=(Ee,Me)=>{Ee?I&&I(Me):M&&M(Me),_e||(ye(u?null:Ce.clientWidth),de(Ee))},ke=Ee=>{Ee.button===0&&(Ee.preventDefault(),ie.current.focus(),$e(!0,Ee))},Ie=Ee=>{$e(!1,Ee)},Ze=T.Children.toArray(f),qe=Ee=>{const Me=Ze.find(Ue=>Ue.props.value===Ee.target.value);Me!==void 0&&(C(Me.props.value),R&&R(Ee,Me))},Je=Ee=>Me=>{let Ue;if(Me.currentTarget.hasAttribute("tabindex")){if(N){Ue=Array.isArray(J)?J.slice():[];const It=J.indexOf(Ee.props.value);It===-1?Ue.push(Ee.props.value):Ue.splice(It,1)}else Ue=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(Me),J!==Ue&&(C(Ue),R)){const It=Me.nativeEvent||Me,Da=new It.constructor(It.type,It);Object.defineProperty(Da,"target",{writable:!0,value:{value:Ue,name:_}}),R(Da,Ee)}N||$e(!1,Me)}},yt=Ee=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(Ee.key)&&(Ee.preventDefault(),$e(!0,Ee))},tt=ue!==null&&X,nt=Ee=>{!tt&&O&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:J,name:_}}),O(Ee))};delete ae["aria-invalid"];let Se,pn;const rt=[];let Sn=!1;(Vc({value:J})||v)&&(j?Se=j(J):Sn=!0);const ee=Ze.map(Ee=>{if(!T.isValidElement(Ee))return null;let Me;if(N){if(!Array.isArray(J))throw new Error(mi(2));Me=J.some(Ue=>LS(Ue,Ee.props.value)),Me&&Sn&&rt.push(Ee.props.children)}else Me=LS(J,Ee.props.value),Me&&Sn&&(pn=Ee.props.children);return T.cloneElement(Ee,{"aria-selected":Me?"true":"false",onClick:Je(Ee),onKeyUp:Ue=>{Ue.key===" "&&Ue.preventDefault(),Ee.props.onKeyUp&&Ee.props.onKeyUp(Ue)},role:"option",selected:Me,value:void 0,"data-value":Ee.props.value})});Sn&&(N?rt.length===0?Se=null:Se=rt.reduce((Ee,Me,Ue)=>(Ee.push(Me),Ue<rt.length-1&&Ee.push(", "),Ee),[]):Se=pn);let se=ge;!u&&_e&&ue&&(se=Ce.clientWidth);let he;typeof Y<"u"?he=Y:he=g?null:0;const be=G.id||(_?`mui-component-select-${_}`:void 0),De={...t,variant:Z,value:J,open:tt,error:b},Te=lD(De),ft={...A.PaperProps,...(Tt=A.slotProps)==null?void 0:Tt.paper},_t=Fl();return $.jsxs(T.Fragment,{children:[$.jsx(iD,{as:"div",ref:we,tabIndex:he,role:"combobox","aria-controls":tt?_t:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":tt?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[k,be].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":U?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:yt,onMouseDown:g||E?null:ke,onBlur:nt,onFocus:B,...G,ownerState:De,className:Oe(G.className,Te.select,d),id:be,children:sD(Se)?DS||(DS=$.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Se}),$.jsx(oD,{"aria-invalid":b,value:Array.isArray(J)?J.join(","):J,name:_,ref:L,"aria-hidden":!0,onChange:qe,tabIndex:-1,disabled:g,className:Te.nativeInput,autoFocus:l,required:U,...ae,ownerState:De}),$.jsx(aD,{as:w,className:Te.icon,ownerState:De}),$.jsx(PN,{id:`menu-${_||""}`,anchorEl:Ce,open:tt,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...A,slotProps:{...A.slotProps,list:{"aria-labelledby":k,role:"listbox","aria-multiselectable":N?"true":void 0,disableListWrap:!0,id:_t,...A.MenuListProps},paper:{...ft,style:{minWidth:se,...ft!=null?ft.style:null}}},children:ee})]})}),cD=e=>{const{classes:t}=e,i=Ye({root:["root"]},ux,t);return{...t,...i}},ig={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Bn(e)&&e!=="variant",slot:"Root"},fD=me(tg,ig)(""),dD=me(rg,ig)(""),pD=me(eg,ig)(""),ag=T.forwardRef(function(t,n){const i=Xe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:l,classes:u={},className:f,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:m=kO,id:g,input:v,inputProps:b,label:w,labelId:S,MenuProps:k,multiple:A=!1,native:N=!1,onClose:_,onOpen:O,open:R,renderValue:M,SelectDisplayProps:B,variant:I="outlined",...P}=i,E=N?WN:uD,j=Yi(),U=Ma({props:i,muiFormControl:j,states:["variant","error"]}),G=U.variant||I,Y={...i,variant:G,classes:u},V=cD(Y),{root:H,...Z}=V,ae=v||{standard:$.jsx(fD,{ownerState:Y}),outlined:$.jsx(dD,{label:w,ownerState:Y}),filled:$.jsx(pD,{ownerState:Y})}[G],J=En(n,Vl(ae));return $.jsx(T.Fragment,{children:T.cloneElement(ae,{inputComponent:E,inputProps:{children:l,error:U.error,IconComponent:m,variant:G,type:void 0,multiple:A,...N?{id:g}:{autoWidth:o,defaultOpen:d,displayEmpty:p,labelId:S,MenuProps:k,onClose:_,onOpen:O,open:R,renderValue:M,SelectDisplayProps:{id:g,...B}},...b,classes:b?sn(Z,b.classes):Z,...v?v.props.inputProps:{}},...(A&&N||p)&&G==="outlined"?{notched:!0}:{},ref:J,className:Oe(ae.props.className,f,V.root),...!v&&{variant:G},...P})})});ag.muiName="Select";const cx=$_({createStyledComponent:me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Xe({props:e,name:"MuiStack"})});function hD(e){return Ke("MuiTextField",e)}Ve("MuiTextField",["root"]);const mD={standard:tg,filled:eg,outlined:rg},gD=e=>{const{classes:t}=e;return Ye({root:["root"]},hD,t)},yD=me(tx,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zS=T.forwardRef(function(t,n){const i=Xe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:u,className:f,color:d="primary",defaultValue:p,disabled:m=!1,error:g=!1,FormHelperTextProps:v,fullWidth:b=!1,helperText:w,id:S,InputLabelProps:k,inputProps:A,InputProps:N,inputRef:_,label:O,maxRows:R,minRows:M,multiline:B=!1,name:I,onBlur:P,onChange:E,onFocus:j,placeholder:U,required:G=!1,rows:Y,select:V=!1,SelectProps:H,slots:Z={},slotProps:ae={},type:J,value:C,variant:X="outlined",...de}=i,L={...i,autoFocus:l,color:d,disabled:m,error:g,fullWidth:b,multiline:B,required:G,select:V,variant:X},ie=gD(L),ue=Fl(S),fe=w&&ue?`${ue}-helper-text`:void 0,_e=O&&ue?`${ue}-label`:void 0,ge=mD[X],ye={slots:Z,slotProps:{input:N,inputLabel:k,htmlInput:A,formHelperText:v,select:H,...ae}},le={},we=ye.slotProps.inputLabel;X==="outlined"&&(we&&typeof we.shrink<"u"&&(le.notched=we.shrink),le.label=O),V&&((!H||!H.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[Ce,$e]=dt("input",{elementType:ge,externalForwardedProps:ye,additionalProps:le,ownerState:L}),[ke,Ie]=dt("inputLabel",{elementType:CN,externalForwardedProps:ye,ownerState:L}),[Ze,qe]=dt("htmlInput",{elementType:"input",externalForwardedProps:ye,ownerState:L}),[Je,yt]=dt("formHelperText",{elementType:rx,externalForwardedProps:ye,ownerState:L}),[tt,nt]=dt("select",{elementType:ag,externalForwardedProps:ye,ownerState:L}),Se=$.jsx(Ce,{"aria-describedby":fe,autoComplete:o,autoFocus:l,defaultValue:p,fullWidth:b,multiline:B,name:I,rows:Y,maxRows:R,minRows:M,type:J,value:C,id:ue,inputRef:_,onBlur:P,onChange:E,onFocus:j,placeholder:U,inputProps:qe,slots:{input:Z.htmlInput?Ze:void 0},...$e});return $.jsxs(yD,{className:Oe(ie.root,f),disabled:m,error:g,fullWidth:b,ref:n,required:G,color:d,variant:X,ownerState:L,...de,children:[O!=null&&O!==""&&$.jsx(ke,{htmlFor:ue,id:_e,...Ie,children:O}),V?$.jsx(tt,{"aria-describedby":fe,id:ue,labelId:_e,value:C,input:Se,...nt,children:u}):Se,w&&$.jsx(Je,{id:fe,...yt,children:w})]})}),bD=vf({cssVariables:!0,palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},error:{main:va.A400}}});function vD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T.useMemo(()=>i=>{t.forEach(o=>o(i))},t)}const Tf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function og(e){return"nodeType"in e}function Tn(e){var t,n;return e?Xo(e)?e:og(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function sg(e){const{Document:t}=Tn(e);return e instanceof t}function Kl(e){return Xo(e)?!1:e instanceof Tn(e).HTMLElement}function fx(e){return e instanceof Tn(e).SVGElement}function Wo(e){return e?Xo(e)?e.document:og(e)?sg(e)?e:Kl(e)||fx(e)?e.ownerDocument:document:document:document}const kr=Tf?T.useLayoutEffect:T.useEffect;function Af(e){const t=T.useRef(e);return kr(()=>{t.current=e}),T.useCallback(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t.current==null?void 0:t.current(...i)},[])}function SD(){const e=T.useRef(null),t=T.useCallback((i,o)=>{e.current=setInterval(i,o)},[]),n=T.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ml(e,t){t===void 0&&(t=[e]);const n=T.useRef(e);return kr(()=>{n.current!==e&&(n.current=e)},t),n}function Yl(e,t){const n=T.useRef();return T.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function Kc(e){const t=Af(e),n=T.useRef(null),i=T.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,i]}function Yc(e){const t=T.useRef();return T.useEffect(()=>{t.current=e},[e]),t.current}let gh={};function Xl(e,t){return T.useMemo(()=>{if(t)return t;const n=gh[e]==null?0:gh[e]+1;return gh[e]=n,e+"-"+n},[e,t])}function dx(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return i.reduce((l,u)=>{const f=Object.entries(u);for(const[d,p]of f){const m=l[d];m!=null&&(l[d]=m+e*p)}return l},{...t})}}const zo=dx(1),Nl=dx(-1);function wD(e){return"clientX"in e&&"clientY"in e}function _f(e){if(!e)return!1;const{KeyboardEvent:t}=Tn(e.target);return t&&e instanceof t}function xD(e){if(!e)return!1;const{TouchEvent:t}=Tn(e.target);return t&&e instanceof t}function Xc(e){if(xD(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return wD(e)?{x:e.clientX,y:e.clientY}:null}const Ki=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ki.Translate.toString(e),Ki.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),BS="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function CD(e){return e.matches(BS)?e:e.querySelector(BS)}const kD={display:"none"};function ED(e){let{id:t,value:n}=e;return it.createElement("div",{id:t,style:kD},n)}function TD(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return it.createElement("div",{id:t,style:o,role:"status","aria-live":i,"aria-atomic":!0},n)}function AD(){const[e,t]=T.useState("");return{announce:T.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const px=T.createContext(null);function _D(e){const t=T.useContext(px);T.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function RD(){const[e]=T.useState(()=>new Set),t=T.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[T.useCallback(i=>{let{type:o,event:l}=i;e.forEach(u=>{var f;return(f=u[o])==null?void 0:f.call(u,l)})},[e]),t]}const OD={draggable:`
|
||
To pick up a draggable item, press the space bar.
|
||
While dragging, use the arrow keys to move the item.
|
||
Press space again to drop the item in its new position, or press escape to cancel.
|
||
`},MD={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function ND(e){let{announcements:t=MD,container:n,hiddenTextDescribedById:i,screenReaderInstructions:o=OD}=e;const{announce:l,announcement:u}=AD(),f=Xl("DndLiveRegion"),[d,p]=T.useState(!1);if(T.useEffect(()=>{p(!0)},[]),_D(T.useMemo(()=>({onDragStart(g){let{active:v}=g;l(t.onDragStart({active:v}))},onDragMove(g){let{active:v,over:b}=g;t.onDragMove&&l(t.onDragMove({active:v,over:b}))},onDragOver(g){let{active:v,over:b}=g;l(t.onDragOver({active:v,over:b}))},onDragEnd(g){let{active:v,over:b}=g;l(t.onDragEnd({active:v,over:b}))},onDragCancel(g){let{active:v,over:b}=g;l(t.onDragCancel({active:v,over:b}))}}),[l,t])),!d)return null;const m=it.createElement(it.Fragment,null,it.createElement(ED,{id:i,value:o.draggable}),it.createElement(TD,{id:f,announcement:u}));return n?ka.createPortal(m,n):m}var Jt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Jt||(Jt={}));function Wc(){}function IS(e,t){return T.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function DD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T.useMemo(()=>[...t].filter(i=>i!=null),[...t])}const Er=Object.freeze({x:0,y:0});function hx(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function LD(e,t){const n=Xc(e);if(!n)return"0 0";const i={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return i.x+"% "+i.y+"%"}function mx(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function zD(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function jS(e){let{left:t,top:n,height:i,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+i},{x:t+o,y:n+i}]}function gx(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function $S(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const BD=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const o=$S(t,t.left,t.top),l=[];for(const u of i){const{id:f}=u,d=n.get(f);if(d){const p=hx($S(d),o);l.push({id:f,data:{droppableContainer:u,value:p}})}}return l.sort(mx)},ID=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const o=jS(t),l=[];for(const u of i){const{id:f}=u,d=n.get(f);if(d){const p=jS(d),m=o.reduce((v,b,w)=>v+hx(p[w],b),0),g=Number((m/4).toFixed(4));l.push({id:f,data:{droppableContainer:u,value:g}})}}return l.sort(mx)};function jD(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),u=o-i,f=l-n;if(i<o&&n<l){const d=t.width*t.height,p=e.width*e.height,m=u*f,g=m/(d+p-m);return Number(g.toFixed(4))}return 0}const $D=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const o=[];for(const l of i){const{id:u}=l,f=n.get(u);if(f){const d=jD(f,t);d>0&&o.push({id:u,data:{droppableContainer:l,value:d}})}}return o.sort(zD)};function PD(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function yx(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Er}function UD(e){return function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return o.reduce((u,f)=>({...u,top:u.top+e*f.y,bottom:u.bottom+e*f.y,left:u.left+e*f.x,right:u.right+e*f.x}),{...n})}}const HD=UD(1);function bx(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function qD(e,t,n){const i=bx(t);if(!i)return e;const{scaleX:o,scaleY:l,x:u,y:f}=i,d=e.left-u-(1-o)*parseFloat(n),p=e.top-f-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),m=o?e.width/o:e.width,g=l?e.height/l:e.height;return{width:m,height:g,top:p,right:d+m,bottom:p+g,left:d}}const FD={ignoreTransform:!1};function Qo(e,t){t===void 0&&(t=FD);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:p,transformOrigin:m}=Tn(e).getComputedStyle(e);p&&(n=qD(n,p,m))}const{top:i,left:o,width:l,height:u,bottom:f,right:d}=n;return{top:i,left:o,width:l,height:u,bottom:f,right:d}}function PS(e){return Qo(e,{ignoreTransform:!0})}function VD(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function GD(e,t){return t===void 0&&(t=Tn(e).getComputedStyle(e)),t.position==="fixed"}function KD(e,t){t===void 0&&(t=Tn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const l=t[o];return typeof l=="string"?n.test(l):!1})}function Rf(e,t){const n=[];function i(o){if(t!=null&&n.length>=t||!o)return n;if(sg(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Kl(o)||fx(o)||n.includes(o))return n;const l=Tn(e).getComputedStyle(o);return o!==e&&KD(o,l)&&n.push(o),GD(o,l)?n:i(o.parentNode)}return e?i(e):n}function vx(e){const[t]=Rf(e,1);return t??null}function yh(e){return!Tf||!e?null:Xo(e)?e:og(e)?sg(e)||e===Wo(e).scrollingElement?window:Kl(e)?e:null:null}function Sx(e){return Xo(e)?e.scrollX:e.scrollLeft}function wx(e){return Xo(e)?e.scrollY:e.scrollTop}function lm(e){return{x:Sx(e),y:wx(e)}}var on;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(on||(on={}));function xx(e){return!Tf||!e?!1:e===document.scrollingElement}function Cx(e){const t={x:0,y:0},n=xx(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,u=e.scrollTop>=i.y,f=e.scrollLeft>=i.x;return{isTop:o,isLeft:l,isBottom:u,isRight:f,maxScroll:i,minScroll:t}}const YD={x:.2,y:.2};function XD(e,t,n,i,o){let{top:l,left:u,right:f,bottom:d}=n;i===void 0&&(i=10),o===void 0&&(o=YD);const{isTop:p,isBottom:m,isLeft:g,isRight:v}=Cx(e),b={x:0,y:0},w={x:0,y:0},S={height:t.height*o.y,width:t.width*o.x};return!p&&l<=t.top+S.height?(b.y=on.Backward,w.y=i*Math.abs((t.top+S.height-l)/S.height)):!m&&d>=t.bottom-S.height&&(b.y=on.Forward,w.y=i*Math.abs((t.bottom-S.height-d)/S.height)),!v&&f>=t.right-S.width?(b.x=on.Forward,w.x=i*Math.abs((t.right-S.width-f)/S.width)):!g&&u<=t.left+S.width&&(b.x=on.Backward,w.x=i*Math.abs((t.left+S.width-u)/S.width)),{direction:b,speed:w}}function WD(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:u}=window;return{top:0,left:0,right:l,bottom:u,width:l,height:u}}const{top:t,left:n,right:i,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:o,width:e.clientWidth,height:e.clientHeight}}function kx(e){return e.reduce((t,n)=>zo(t,lm(n)),Er)}function QD(e){return e.reduce((t,n)=>t+Sx(n),0)}function ZD(e){return e.reduce((t,n)=>t+wx(n),0)}function Ex(e,t){if(t===void 0&&(t=Qo),!e)return;const{top:n,left:i,bottom:o,right:l}=t(e);vx(e)&&(o<=0||l<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const JD=[["x",["left","right"],QD],["y",["top","bottom"],ZD]];class lg{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Rf(n),o=kx(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,u,f]of JD)for(const d of u)Object.defineProperty(this,d,{get:()=>{const p=f(i),m=o[l]-p;return this.rect[d]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class bl{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var o;(o=this.target)==null||o.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function eL(e){const{EventTarget:t}=Tn(e);return e instanceof t?e:Wo(e)}function bh(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t?i>t.y:!1}var ur;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ur||(ur={}));function US(e){e.preventDefault()}function tL(e){e.stopPropagation()}var Qe;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Qe||(Qe={}));const Tx={start:[Qe.Space,Qe.Enter],cancel:[Qe.Esc],end:[Qe.Space,Qe.Enter,Qe.Tab]},nL=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Qe.Right:return{...n,x:n.x+25};case Qe.Left:return{...n,x:n.x-25};case Qe.Down:return{...n,y:n.y+25};case Qe.Up:return{...n,y:n.y-25}}};class ug{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new bl(Wo(n)),this.windowListeners=new bl(Tn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ur.Resize,this.handleCancel),this.windowListeners.add(ur.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ur.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&Ex(i),n(Er)}handleKeyDown(t){if(_f(t)){const{active:n,context:i,options:o}=this.props,{keyboardCodes:l=Tx,coordinateGetter:u=nL,scrollBehavior:f="smooth"}=o,{code:d}=t;if(l.end.includes(d)){this.handleEnd(t);return}if(l.cancel.includes(d)){this.handleCancel(t);return}const{collisionRect:p}=i.current,m=p?{x:p.left,y:p.top}:Er;this.referenceCoordinates||(this.referenceCoordinates=m);const g=u(t,{active:n,context:i.current,currentCoordinates:m});if(g){const v=Nl(g,m),b={x:0,y:0},{scrollableAncestors:w}=i.current;for(const S of w){const k=t.code,{isTop:A,isRight:N,isLeft:_,isBottom:O,maxScroll:R,minScroll:M}=Cx(S),B=WD(S),I={x:Math.min(k===Qe.Right?B.right-B.width/2:B.right,Math.max(k===Qe.Right?B.left:B.left+B.width/2,g.x)),y:Math.min(k===Qe.Down?B.bottom-B.height/2:B.bottom,Math.max(k===Qe.Down?B.top:B.top+B.height/2,g.y))},P=k===Qe.Right&&!N||k===Qe.Left&&!_,E=k===Qe.Down&&!O||k===Qe.Up&&!A;if(P&&I.x!==g.x){const j=S.scrollLeft+v.x,U=k===Qe.Right&&j<=R.x||k===Qe.Left&&j>=M.x;if(U&&!v.y){S.scrollTo({left:j,behavior:f});return}U?b.x=S.scrollLeft-j:b.x=k===Qe.Right?S.scrollLeft-R.x:S.scrollLeft-M.x,b.x&&S.scrollBy({left:-b.x,behavior:f});break}else if(E&&I.y!==g.y){const j=S.scrollTop+v.y,U=k===Qe.Down&&j<=R.y||k===Qe.Up&&j>=M.y;if(U&&!v.x){S.scrollTo({top:j,behavior:f});return}U?b.y=S.scrollTop-j:b.y=k===Qe.Down?S.scrollTop-R.y:S.scrollTop-M.y,b.y&&S.scrollBy({top:-b.y,behavior:f});break}}this.handleMove(t,zo(Nl(g,this.referenceCoordinates),b))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ug.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Tx,onActivation:o}=t,{active:l}=n;const{code:u}=e.nativeEvent;if(i.start.includes(u)){const f=l.activatorNode.current;return f&&e.target!==f?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function HS(e){return!!(e&&"distance"in e)}function qS(e){return!!(e&&"delay"in e)}class cg{constructor(t,n,i){var o;i===void 0&&(i=eL(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:u}=l;this.props=t,this.events=n,this.document=Wo(u),this.documentListeners=new bl(this.document),this.listeners=new bl(i),this.windowListeners=new bl(Tn(u)),this.initialCoordinates=(o=Xc(l))!=null?o:Er,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ur.Resize,this.handleCancel),this.windowListeners.add(ur.DragStart,US),this.windowListeners.add(ur.VisibilityChange,this.handleCancel),this.windowListeners.add(ur.ContextMenu,US),this.documentListeners.add(ur.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(qS(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(HS(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:o}=this.props;o(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ur.Click,tL,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ur.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:o,props:l}=this,{onMove:u,options:{activationConstraint:f}}=l;if(!o)return;const d=(n=Xc(t))!=null?n:Er,p=Nl(o,d);if(!i&&f){if(HS(f)){if(f.tolerance!=null&&bh(p,f.tolerance))return this.handleCancel();if(bh(p,f.distance))return this.handleStart()}if(qS(f)&&bh(p,f.tolerance))return this.handleCancel();this.handlePending(f,p);return}t.cancelable&&t.preventDefault(),u(d)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Qe.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const rL={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class fg extends cg{constructor(t){const{event:n}=t,i=Wo(n.target);super(t,rL,i)}}fg.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!n.isPrimary||n.button!==0?!1:(i==null||i({event:n}),!0)}}];const iL={move:{name:"mousemove"},end:{name:"mouseup"}};var um;(function(e){e[e.RightClick=2]="RightClick"})(um||(um={}));class aL extends cg{constructor(t){super(t,iL,Wo(t.event.target))}}aL.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button===um.RightClick?!1:(i==null||i({event:n}),!0)}}];const vh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class oL extends cg{constructor(t){super(t,vh)}static setup(){return window.addEventListener(vh.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(vh.move.name,t)};function t(){}}}oL.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:o}=n;return o.length>1?!1:(i==null||i({event:n}),!0)}}];var vl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(vl||(vl={}));var Qc;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Qc||(Qc={}));function sL(e){let{acceleration:t,activator:n=vl.Pointer,canScroll:i,draggingRect:o,enabled:l,interval:u=5,order:f=Qc.TreeOrder,pointerCoordinates:d,scrollableAncestors:p,scrollableAncestorRects:m,delta:g,threshold:v}=e;const b=uL({delta:g,disabled:!l}),[w,S]=SD(),k=T.useRef({x:0,y:0}),A=T.useRef({x:0,y:0}),N=T.useMemo(()=>{switch(n){case vl.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case vl.DraggableRect:return o}},[n,o,d]),_=T.useRef(null),O=T.useCallback(()=>{const M=_.current;if(!M)return;const B=k.current.x*A.current.x,I=k.current.y*A.current.y;M.scrollBy(B,I)},[]),R=T.useMemo(()=>f===Qc.TreeOrder?[...p].reverse():p,[f,p]);T.useEffect(()=>{if(!l||!p.length||!N){S();return}for(const M of R){if((i==null?void 0:i(M))===!1)continue;const B=p.indexOf(M),I=m[B];if(!I)continue;const{direction:P,speed:E}=XD(M,I,N,t,v);for(const j of["x","y"])b[j][P[j]]||(E[j]=0,P[j]=0);if(E.x>0||E.y>0){S(),_.current=M,w(O,u),k.current=E,A.current=P;return}}k.current={x:0,y:0},A.current={x:0,y:0},S()},[t,O,i,S,l,u,JSON.stringify(N),JSON.stringify(b),w,p,R,m,JSON.stringify(v)])}const lL={x:{[on.Backward]:!1,[on.Forward]:!1},y:{[on.Backward]:!1,[on.Forward]:!1}};function uL(e){let{delta:t,disabled:n}=e;const i=Yc(t);return Yl(o=>{if(n||!i||!o)return lL;const l={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[on.Backward]:o.x[on.Backward]||l.x===-1,[on.Forward]:o.x[on.Forward]||l.x===1},y:{[on.Backward]:o.y[on.Backward]||l.y===-1,[on.Forward]:o.y[on.Forward]||l.y===1}}},[n,t,i])}function cL(e,t){const n=t!=null?e.get(t):void 0,i=n?n.node.current:null;return Yl(o=>{var l;return t==null?null:(l=i??o)!=null?l:null},[i,t])}function fL(e,t){return T.useMemo(()=>e.reduce((n,i)=>{const{sensor:o}=i,l=o.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,i)}));return[...n,...l]},[]),[e,t])}var Dl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Dl||(Dl={}));var cm;(function(e){e.Optimized="optimized"})(cm||(cm={}));const FS=new Map;function dL(e,t){let{dragging:n,dependencies:i,config:o}=t;const[l,u]=T.useState(null),{frequency:f,measure:d,strategy:p}=o,m=T.useRef(e),g=k(),v=Ml(g),b=T.useCallback(function(A){A===void 0&&(A=[]),!v.current&&u(N=>N===null?A:N.concat(A.filter(_=>!N.includes(_))))},[v]),w=T.useRef(null),S=Yl(A=>{if(g&&!n)return FS;if(!A||A===FS||m.current!==e||l!=null){const N=new Map;for(let _ of e){if(!_)continue;if(l&&l.length>0&&!l.includes(_.id)&&_.rect.current){N.set(_.id,_.rect.current);continue}const O=_.node.current,R=O?new lg(d(O),O):null;_.rect.current=R,R&&N.set(_.id,R)}return N}return A},[e,l,n,g,d]);return T.useEffect(()=>{m.current=e},[e]),T.useEffect(()=>{g||b()},[n,g]),T.useEffect(()=>{l&&l.length>0&&u(null)},[JSON.stringify(l)]),T.useEffect(()=>{g||typeof f!="number"||w.current!==null||(w.current=setTimeout(()=>{b(),w.current=null},f))},[f,g,b,...i]),{droppableRects:S,measureDroppableContainers:b,measuringScheduled:l!=null};function k(){switch(p){case Dl.Always:return!1;case Dl.BeforeDragging:return n;default:return!n}}}function dg(e,t){return Yl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function pL(e,t){return dg(e,t)}function hL(e){let{callback:t,disabled:n}=e;const i=Af(t),o=T.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(i)},[i,n]);return T.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Of(e){let{callback:t,disabled:n}=e;const i=Af(t),o=T.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(i)},[n]);return T.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function mL(e){return new lg(Qo(e),e)}function VS(e,t,n){t===void 0&&(t=mL);const[i,o]=T.useState(null);function l(){o(d=>{if(!e)return null;if(e.isConnected===!1){var p;return(p=d??n)!=null?p:null}const m=t(e);return JSON.stringify(d)===JSON.stringify(m)?d:m})}const u=hL({callback(d){if(e)for(const p of d){const{type:m,target:g}=p;if(m==="childList"&&g instanceof HTMLElement&&g.contains(e)){l();break}}}}),f=Of({callback:l});return kr(()=>{l(),e?(f==null||f.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(f==null||f.disconnect(),u==null||u.disconnect())},[e]),i}function gL(e){const t=dg(e);return yx(e,t)}const GS=[];function yL(e){const t=T.useRef(e),n=Yl(i=>e?i&&i!==GS&&e&&t.current&&e.parentNode===t.current.parentNode?i:Rf(e):GS,[e]);return T.useEffect(()=>{t.current=e},[e]),n}function bL(e){const[t,n]=T.useState(null),i=T.useRef(e),o=T.useCallback(l=>{const u=yh(l.target);u&&n(f=>f?(f.set(u,lm(u)),new Map(f)):null)},[]);return T.useEffect(()=>{const l=i.current;if(e!==l){u(l);const f=e.map(d=>{const p=yh(d);return p?(p.addEventListener("scroll",o,{passive:!0}),[p,lm(p)]):null}).filter(d=>d!=null);n(f.length?new Map(f):null),i.current=e}return()=>{u(e),u(l)};function u(f){f.forEach(d=>{const p=yh(d);p==null||p.removeEventListener("scroll",o)})}},[o,e]),T.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,u)=>zo(l,u),Er):kx(e):Er,[e,t])}function KS(e,t){t===void 0&&(t=[]);const n=T.useRef(null);return T.useEffect(()=>{n.current=null},t),T.useEffect(()=>{const i=e!==Er;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?Nl(e,n.current):Er}function vL(e){T.useEffect(()=>{if(!Tf)return;const t=e.map(n=>{let{sensor:i}=n;return i.setup==null?void 0:i.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function SL(e,t){return T.useMemo(()=>e.reduce((n,i)=>{let{eventName:o,handler:l}=i;return n[o]=u=>{l(u,t)},n},{}),[e,t])}function Ax(e){return T.useMemo(()=>e?VD(e):null,[e])}const YS=[];function wL(e,t){t===void 0&&(t=Qo);const[n]=e,i=Ax(n?Tn(n):null),[o,l]=T.useState(YS);function u(){l(()=>e.length?e.map(d=>xx(d)?i:new lg(t(d),d)):YS)}const f=Of({callback:u});return kr(()=>{f==null||f.disconnect(),u(),e.forEach(d=>f==null?void 0:f.observe(d))},[e]),o}function _x(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Kl(t)?t:e}function xL(e){let{measure:t}=e;const[n,i]=T.useState(null),o=T.useCallback(p=>{for(const{target:m}of p)if(Kl(m)){i(g=>{const v=t(m);return g?{...g,width:v.width,height:v.height}:v});break}},[t]),l=Of({callback:o}),u=T.useCallback(p=>{const m=_x(p);l==null||l.disconnect(),m&&(l==null||l.observe(m)),i(m?t(m):null)},[t,l]),[f,d]=Kc(u);return T.useMemo(()=>({nodeRef:f,rect:n,setRef:d}),[n,f,d])}const CL=[{sensor:fg,options:{}},{sensor:ug,options:{}}],kL={current:{}},Nc={draggable:{measure:PS},droppable:{measure:PS,strategy:Dl.WhileDragging,frequency:cm.Optimized},dragOverlay:{measure:Qo}};class Sl extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const EL={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Sl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Wc},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Nc,measureDroppableContainers:Wc,windowRect:null,measuringScheduled:!1},Rx={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Wc,draggableNodes:new Map,over:null,measureDroppableContainers:Wc},Wl=T.createContext(Rx),Ox=T.createContext(EL);function TL(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Sl}}}function AL(e,t){switch(t.type){case Jt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Jt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Jt.DragEnd:case Jt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Jt.RegisterDroppable:{const{element:n}=t,{id:i}=n,o=new Sl(e.droppable.containers);return o.set(i,n),{...e,droppable:{...e.droppable,containers:o}}}case Jt.SetDroppableDisabled:{const{id:n,key:i,disabled:o}=t,l=e.droppable.containers.get(n);if(!l||i!==l.key)return e;const u=new Sl(e.droppable.containers);return u.set(n,{...l,disabled:o}),{...e,droppable:{...e.droppable,containers:u}}}case Jt.UnregisterDroppable:{const{id:n,key:i}=t,o=e.droppable.containers.get(n);if(!o||i!==o.key)return e;const l=new Sl(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function _L(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:o}=T.useContext(Wl),l=Yc(i),u=Yc(n==null?void 0:n.id);return T.useEffect(()=>{if(!t&&!i&&l&&u!=null){if(!_f(l)||document.activeElement===l.target)return;const f=o.get(u);if(!f)return;const{activatorNode:d,node:p}=f;if(!d.current&&!p.current)return;requestAnimationFrame(()=>{for(const m of[d.current,p.current]){if(!m)continue;const g=CD(m);if(g){g.focus();break}}})}},[i,t,o,u,l]),null}function Mx(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((o,l)=>l({transform:o,...i}),n):n}function RL(e){return T.useMemo(()=>({draggable:{...Nc.draggable,...e==null?void 0:e.draggable},droppable:{...Nc.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Nc.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function OL(e){let{activeNode:t,measure:n,initialRect:i,config:o=!0}=e;const l=T.useRef(!1),{x:u,y:f}=typeof o=="boolean"?{x:o,y:o}:o;kr(()=>{if(!u&&!f||!t){l.current=!1;return}if(l.current||!i)return;const p=t==null?void 0:t.node.current;if(!p||p.isConnected===!1)return;const m=n(p),g=yx(m,i);if(u||(g.x=0),f||(g.y=0),l.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const v=vx(p);v&&v.scrollBy({top:g.y,left:g.x})}},[t,u,f,i,n])}const Mf=T.createContext({...Er,scaleX:1,scaleY:1});var qi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(qi||(qi={}));const ML=T.memo(function(t){var n,i,o,l;let{id:u,accessibility:f,autoScroll:d=!0,children:p,sensors:m=CL,collisionDetection:g=$D,measuring:v,modifiers:b,...w}=t;const S=T.useReducer(AL,void 0,TL),[k,A]=S,[N,_]=RD(),[O,R]=T.useState(qi.Uninitialized),M=O===qi.Initialized,{draggable:{active:B,nodes:I,translate:P},droppable:{containers:E}}=k,j=B!=null?I.get(B):null,U=T.useRef({initial:null,translated:null}),G=T.useMemo(()=>{var jt;return B!=null?{id:B,data:(jt=j==null?void 0:j.data)!=null?jt:kL,rect:U}:null},[B,j]),Y=T.useRef(null),[V,H]=T.useState(null),[Z,ae]=T.useState(null),J=Ml(w,Object.values(w)),C=Xl("DndDescribedBy",u),X=T.useMemo(()=>E.getEnabled(),[E]),de=RL(v),{droppableRects:L,measureDroppableContainers:ie,measuringScheduled:ue}=dL(X,{dragging:M,dependencies:[P.x,P.y],config:de.droppable}),fe=cL(I,B),_e=T.useMemo(()=>Z?Xc(Z):null,[Z]),ge=La(),ye=pL(fe,de.draggable.measure);OL({activeNode:B!=null?I.get(B):null,config:ge.layoutShiftCompensation,initialRect:ye,measure:de.draggable.measure});const le=VS(fe,de.draggable.measure,ye),we=VS(fe?fe.parentElement:null),Ce=T.useRef({activatorEvent:null,active:null,activeNode:fe,collisionRect:null,collisions:null,droppableRects:L,draggableNodes:I,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=E.getNodeFor((n=Ce.current.over)==null?void 0:n.id),ke=xL({measure:de.dragOverlay.measure}),Ie=(i=ke.nodeRef.current)!=null?i:fe,Ze=M?(o=ke.rect)!=null?o:le:null,qe=!!(ke.nodeRef.current&&ke.rect),Je=gL(qe?null:le),yt=Ax(Ie?Tn(Ie):null),tt=yL(M?$e??fe:null),nt=wL(tt),Se=Mx(b,{transform:{x:P.x-Je.x,y:P.y-Je.y,scaleX:1,scaleY:1},activatorEvent:Z,active:G,activeNodeRect:le,containerNodeRect:we,draggingNodeRect:Ze,over:Ce.current.over,overlayNodeRect:ke.rect,scrollableAncestors:tt,scrollableAncestorRects:nt,windowRect:yt}),pn=_e?zo(_e,P):null,rt=bL(tt),Sn=KS(rt),ee=KS(rt,[le]),se=zo(Se,Sn),he=Ze?HD(Ze,Se):null,be=G&&he?g({active:G,collisionRect:he,droppableRects:L,droppableContainers:X,pointerCoordinates:pn}):null,De=gx(be,"id"),[Te,ft]=T.useState(null),_t=qe?Se:zo(Se,ee),Tt=PD(_t,(l=Te==null?void 0:Te.rect)!=null?l:null,le),Ee=T.useRef(null),Me=T.useCallback((jt,$t)=>{let{sensor:en,options:An}=$t;if(Y.current==null)return;const _n=I.get(Y.current);if(!_n)return;const hn=jt.nativeEvent,jn=new en({active:Y.current,activeNode:_n,event:hn,options:An,context:Ce,onAbort(Rt){if(!I.get(Rt))return;const{onDragAbort:$n}=J.current,Xn={id:Rt};$n==null||$n(Xn),N({type:"onDragAbort",event:Xn})},onPending(Rt,_r,$n,Xn){if(!I.get(Rt))return;const{onDragPending:vi}=J.current,Rr={id:Rt,constraint:_r,initialCoordinates:$n,offset:Xn};vi==null||vi(Rr),N({type:"onDragPending",event:Rr})},onStart(Rt){const _r=Y.current;if(_r==null)return;const $n=I.get(_r);if(!$n)return;const{onDragStart:Xn}=J.current,bi={activatorEvent:hn,active:{id:_r,data:$n.data,rect:U}};ka.unstable_batchedUpdates(()=>{Xn==null||Xn(bi),R(qi.Initializing),A({type:Jt.DragStart,initialCoordinates:Rt,active:_r}),N({type:"onDragStart",event:bi}),H(Ee.current),ae(hn)})},onMove(Rt){A({type:Jt.DragMove,coordinates:Rt})},onEnd:Ar(Jt.DragEnd),onCancel:Ar(Jt.DragCancel)});Ee.current=jn;function Ar(Rt){return async function(){const{active:$n,collisions:Xn,over:bi,scrollAdjustedTranslate:vi}=Ce.current;let Rr=null;if($n&&vi){const{cancelDrop:Rn}=J.current;Rr={activatorEvent:hn,active:$n,collisions:Xn,delta:vi,over:bi},Rt===Jt.DragEnd&&typeof Rn=="function"&&await Promise.resolve(Rn(Rr))&&(Rt=Jt.DragCancel)}Y.current=null,ka.unstable_batchedUpdates(()=>{A({type:Rt}),R(qi.Uninitialized),ft(null),H(null),ae(null),Ee.current=null;const Rn=Rt===Jt.DragEnd?"onDragEnd":"onDragCancel";if(Rr){const Vt=J.current[Rn];Vt==null||Vt(Rr),N({type:Rn,event:Rr})}})}}},[I]),Ue=T.useCallback((jt,$t)=>(en,An)=>{const _n=en.nativeEvent,hn=I.get(An);if(Y.current!==null||!hn||_n.dndKit||_n.defaultPrevented)return;const jn={active:hn};jt(en,$t.options,jn)===!0&&(_n.dndKit={capturedBy:$t.sensor},Y.current=An,Me(en,$t))},[I,Me]),It=fL(m,Ue);vL(m),kr(()=>{le&&O===qi.Initializing&&R(qi.Initialized)},[le,O]),T.useEffect(()=>{const{onDragMove:jt}=J.current,{active:$t,activatorEvent:en,collisions:An,over:_n}=Ce.current;if(!$t||!en)return;const hn={active:$t,activatorEvent:en,collisions:An,delta:{x:se.x,y:se.y},over:_n};ka.unstable_batchedUpdates(()=>{jt==null||jt(hn),N({type:"onDragMove",event:hn})})},[se.x,se.y]),T.useEffect(()=>{const{active:jt,activatorEvent:$t,collisions:en,droppableContainers:An,scrollAdjustedTranslate:_n}=Ce.current;if(!jt||Y.current==null||!$t||!_n)return;const{onDragOver:hn}=J.current,jn=An.get(De),Ar=jn&&jn.rect.current?{id:jn.id,rect:jn.rect.current,data:jn.data,disabled:jn.disabled}:null,Rt={active:jt,activatorEvent:$t,collisions:en,delta:{x:_n.x,y:_n.y},over:Ar};ka.unstable_batchedUpdates(()=>{ft(Ar),hn==null||hn(Rt),N({type:"onDragOver",event:Rt})})},[De]),kr(()=>{Ce.current={activatorEvent:Z,active:G,activeNode:fe,collisionRect:he,collisions:be,droppableRects:L,draggableNodes:I,draggingNode:Ie,draggingNodeRect:Ze,droppableContainers:E,over:Te,scrollableAncestors:tt,scrollAdjustedTranslate:se},U.current={initial:Ze,translated:he}},[G,fe,be,he,I,Ie,Ze,L,E,Te,tt,se]),sL({...ge,delta:P,draggingRect:he,pointerCoordinates:pn,scrollableAncestors:tt,scrollableAncestorRects:nt});const Da=T.useMemo(()=>({active:G,activeNode:fe,activeNodeRect:le,activatorEvent:Z,collisions:be,containerNodeRect:we,dragOverlay:ke,draggableNodes:I,droppableContainers:E,droppableRects:L,over:Te,measureDroppableContainers:ie,scrollableAncestors:tt,scrollableAncestorRects:nt,measuringConfiguration:de,measuringScheduled:ue,windowRect:yt}),[G,fe,le,Z,be,we,ke,I,E,L,Te,ie,tt,nt,de,ue,yt]),Ff=T.useMemo(()=>({activatorEvent:Z,activators:It,active:G,activeNodeRect:le,ariaDescribedById:{draggable:C},dispatch:A,draggableNodes:I,over:Te,measureDroppableContainers:ie}),[Z,It,G,le,A,C,I,Te,ie]);return it.createElement(px.Provider,{value:_},it.createElement(Wl.Provider,{value:Ff},it.createElement(Ox.Provider,{value:Da},it.createElement(Mf.Provider,{value:Tt},p)),it.createElement(_L,{disabled:(f==null?void 0:f.restoreFocus)===!1})),it.createElement(ND,{...f,hiddenTextDescribedById:C}));function La(){const jt=(V==null?void 0:V.autoScrollEnabled)===!1,$t=typeof d=="object"?d.enabled===!1:d===!1,en=M&&!jt&&!$t;return typeof d=="object"?{...d,enabled:en}:{enabled:en}}}),NL=T.createContext(null),XS="button",DL="Draggable";function LL(e){let{id:t,data:n,disabled:i=!1,attributes:o}=e;const l=Xl(DL),{activators:u,activatorEvent:f,active:d,activeNodeRect:p,ariaDescribedById:m,draggableNodes:g,over:v}=T.useContext(Wl),{role:b=XS,roleDescription:w="draggable",tabIndex:S=0}=o??{},k=(d==null?void 0:d.id)===t,A=T.useContext(k?Mf:NL),[N,_]=Kc(),[O,R]=Kc(),M=SL(u,t),B=Ml(n);kr(()=>(g.set(t,{id:t,key:l,node:N,activatorNode:O,data:B}),()=>{const P=g.get(t);P&&P.key===l&&g.delete(t)}),[g,t]);const I=T.useMemo(()=>({role:b,tabIndex:S,"aria-disabled":i,"aria-pressed":k&&b===XS?!0:void 0,"aria-roledescription":w,"aria-describedby":m.draggable}),[i,b,S,k,w,m.draggable]);return{active:d,activatorEvent:f,activeNodeRect:p,attributes:I,isDragging:k,listeners:i?void 0:M,node:N,over:v,setNodeRef:_,setActivatorNodeRef:R,transform:A}}function Nx(){return T.useContext(Ox)}const zL="Droppable",BL={timeout:25};function IL(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:o}=e;const l=Xl(zL),{active:u,dispatch:f,over:d,measureDroppableContainers:p}=T.useContext(Wl),m=T.useRef({disabled:n}),g=T.useRef(!1),v=T.useRef(null),b=T.useRef(null),{disabled:w,updateMeasurementsFor:S,timeout:k}={...BL,...o},A=Ml(S??i),N=T.useCallback(()=>{if(!g.current){g.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{p(Array.isArray(A.current)?A.current:[A.current]),b.current=null},k)},[k]),_=Of({callback:N,disabled:w||!u}),O=T.useCallback((I,P)=>{_&&(P&&(_.unobserve(P),g.current=!1),I&&_.observe(I))},[_]),[R,M]=Kc(O),B=Ml(t);return T.useEffect(()=>{!_||!R.current||(_.disconnect(),g.current=!1,_.observe(R.current))},[R,_]),T.useEffect(()=>(f({type:Jt.RegisterDroppable,element:{id:i,key:l,disabled:n,node:R,rect:v,data:B}}),()=>f({type:Jt.UnregisterDroppable,key:l,id:i})),[i]),T.useEffect(()=>{n!==m.current.disabled&&(f({type:Jt.SetDroppableDisabled,id:i,key:l,disabled:n}),m.current.disabled=n)},[i,l,n,f]),{active:u,rect:v,isOver:(d==null?void 0:d.id)===i,node:R,over:d,setNodeRef:M}}function jL(e){let{animation:t,children:n}=e;const[i,o]=T.useState(null),[l,u]=T.useState(null),f=Yc(n);return!n&&!i&&f&&o(f),kr(()=>{if(!l)return;const d=i==null?void 0:i.key,p=i==null?void 0:i.props.id;if(d==null||p==null){o(null);return}Promise.resolve(t(p,l)).then(()=>{o(null)})},[t,i,l]),it.createElement(it.Fragment,null,n,i?T.cloneElement(i,{ref:u}):null)}const $L={x:0,y:0,scaleX:1,scaleY:1};function PL(e){let{children:t}=e;return it.createElement(Wl.Provider,{value:Rx},it.createElement(Mf.Provider,{value:$L},t))}const UL={position:"fixed",touchAction:"none"},HL=e=>_f(e)?"transform 250ms ease":void 0,qL=T.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:o,children:l,className:u,rect:f,style:d,transform:p,transition:m=HL}=e;if(!f)return null;const g=o?p:{...p,scaleX:1,scaleY:1},v={...UL,width:f.width,height:f.height,top:f.top,left:f.left,transform:Ki.Transform.toString(g),transformOrigin:o&&i?LD(i,f):void 0,transition:typeof m=="function"?m(i):m,...d};return it.createElement(n,{className:u,style:v,ref:t},l)}),FL=e=>t=>{let{active:n,dragOverlay:i}=t;const o={},{styles:l,className:u}=e;if(l!=null&&l.active)for(const[f,d]of Object.entries(l.active))d!==void 0&&(o[f]=n.node.style.getPropertyValue(f),n.node.style.setProperty(f,d));if(l!=null&&l.dragOverlay)for(const[f,d]of Object.entries(l.dragOverlay))d!==void 0&&i.node.style.setProperty(f,d);return u!=null&&u.active&&n.node.classList.add(u.active),u!=null&&u.dragOverlay&&i.node.classList.add(u.dragOverlay),function(){for(const[d,p]of Object.entries(o))n.node.style.setProperty(d,p);u!=null&&u.active&&n.node.classList.remove(u.active)}},VL=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ki.Transform.toString(t)},{transform:Ki.Transform.toString(n)}]},GL={duration:250,easing:"ease",keyframes:VL,sideEffects:FL({styles:{active:{opacity:"0"}}})};function KL(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:o}=e;return Af((l,u)=>{if(t===null)return;const f=n.get(l);if(!f)return;const d=f.node.current;if(!d)return;const p=_x(u);if(!p)return;const{transform:m}=Tn(u).getComputedStyle(u),g=bx(m);if(!g)return;const v=typeof t=="function"?t:YL(t);return Ex(d,o.draggable.measure),v({active:{id:l,data:f.data,node:d,rect:o.draggable.measure(d)},draggableNodes:n,dragOverlay:{node:u,rect:o.dragOverlay.measure(p)},droppableContainers:i,measuringConfiguration:o,transform:g})})}function YL(e){const{duration:t,easing:n,sideEffects:i,keyframes:o}={...GL,...e};return l=>{let{active:u,dragOverlay:f,transform:d,...p}=l;if(!t)return;const m={x:f.rect.left-u.rect.left,y:f.rect.top-u.rect.top},g={scaleX:d.scaleX!==1?u.rect.width*d.scaleX/f.rect.width:1,scaleY:d.scaleY!==1?u.rect.height*d.scaleY/f.rect.height:1},v={x:d.x-m.x,y:d.y-m.y,...g},b=o({...p,active:u,dragOverlay:f,transform:{initial:d,final:v}}),[w]=b,S=b[b.length-1];if(JSON.stringify(w)===JSON.stringify(S))return;const k=i==null?void 0:i({active:u,dragOverlay:f,...p}),A=f.node.animate(b,{duration:t,easing:n,fill:"forwards"});return new Promise(N=>{A.onfinish=()=>{k==null||k(),N()}})}}let WS=0;function XL(e){return T.useMemo(()=>{if(e!=null)return WS++,WS},[e])}const WL=it.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:o,transition:l,modifiers:u,wrapperElement:f="div",className:d,zIndex:p=999}=e;const{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggableNodes:w,droppableContainers:S,dragOverlay:k,over:A,measuringConfiguration:N,scrollableAncestors:_,scrollableAncestorRects:O,windowRect:R}=Nx(),M=T.useContext(Mf),B=XL(g==null?void 0:g.id),I=Mx(u,{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggingNodeRect:k.rect,over:A,overlayNodeRect:k.rect,scrollableAncestors:_,scrollableAncestorRects:O,transform:M,windowRect:R}),P=dg(v),E=KL({config:i,draggableNodes:w,droppableContainers:S,measuringConfiguration:N}),j=P?k.setRef:void 0;return it.createElement(PL,null,it.createElement(jL,{animation:E},g&&B?it.createElement(qL,{key:B,id:g.id,ref:j,as:f,activatorEvent:m,adjustScale:t,className:d,transition:l,rect:P,style:{zIndex:p,...o},transform:I},n):null))});function pg(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function QL(e,t){return e.reduce((n,i,o)=>{const l=t.get(i);return l&&(n[o]=l),n},Array(e.length))}function yc(e){return e!==null&&e>=0}function ZL(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function JL(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const hg=e=>{let{rects:t,activeIndex:n,overIndex:i,index:o}=e;const l=pg(t,i,n),u=t[o],f=l[o];return!f||!u?null:{x:f.left-u.left,y:f.top-u.top,scaleX:f.width/u.width,scaleY:f.height/u.height}},Dx="Sortable",Lx=it.createContext({activeIndex:-1,containerId:Dx,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:hg,disabled:{draggable:!1,droppable:!1}});function e5(e){let{children:t,id:n,items:i,strategy:o=hg,disabled:l=!1}=e;const{active:u,dragOverlay:f,droppableRects:d,over:p,measureDroppableContainers:m}=Nx(),g=Xl(Dx,n),v=f.rect!==null,b=T.useMemo(()=>i.map(M=>typeof M=="object"&&"id"in M?M.id:M),[i]),w=u!=null,S=u?b.indexOf(u.id):-1,k=p?b.indexOf(p.id):-1,A=T.useRef(b),N=!ZL(b,A.current),_=k!==-1&&S===-1||N,O=JL(l);kr(()=>{N&&w&&m(b)},[N,b,w,m]),T.useEffect(()=>{A.current=b},[b]);const R=T.useMemo(()=>({activeIndex:S,containerId:g,disabled:O,disableTransforms:_,items:b,overIndex:k,useDragOverlay:v,sortedRects:QL(b,d),strategy:o}),[S,g,O.draggable,O.droppable,_,b,k,d,v,o]);return it.createElement(Lx.Provider,{value:R},t)}const t5=e=>{let{id:t,items:n,activeIndex:i,overIndex:o}=e;return pg(n,i,o).indexOf(t)},n5=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:o,items:l,newIndex:u,previousItems:f,previousContainerId:d,transition:p}=e;return!p||!i||f!==l&&o===u?!1:n?!0:u!==o&&t===d},r5={duration:200,easing:"ease"},zx="transform",i5=Ki.Transition.toString({property:zx,duration:0,easing:"linear"}),a5={roleDescription:"sortable"};function o5(e){let{disabled:t,index:n,node:i,rect:o}=e;const[l,u]=T.useState(null),f=T.useRef(n);return kr(()=>{if(!t&&n!==f.current&&i.current){const d=o.current;if(d){const p=Qo(i.current,{ignoreTransform:!0}),m={x:d.left-p.left,y:d.top-p.top,scaleX:d.width/p.width,scaleY:d.height/p.height};(m.x||m.y)&&u(m)}}n!==f.current&&(f.current=n)},[t,n,i,o]),T.useEffect(()=>{l&&u(null)},[l]),l}function s5(e){let{animateLayoutChanges:t=n5,attributes:n,disabled:i,data:o,getNewIndex:l=t5,id:u,strategy:f,resizeObserverConfig:d,transition:p=r5}=e;const{items:m,containerId:g,activeIndex:v,disabled:b,disableTransforms:w,sortedRects:S,overIndex:k,useDragOverlay:A,strategy:N}=T.useContext(Lx),_=l5(i,b),O=m.indexOf(u),R=T.useMemo(()=>({sortable:{containerId:g,index:O,items:m},...o}),[g,o,O,m]),M=T.useMemo(()=>m.slice(m.indexOf(u)),[m,u]),{rect:B,node:I,isOver:P,setNodeRef:E}=IL({id:u,data:R,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...d}}),{active:j,activatorEvent:U,activeNodeRect:G,attributes:Y,setNodeRef:V,listeners:H,isDragging:Z,over:ae,setActivatorNodeRef:J,transform:C}=LL({id:u,data:R,attributes:{...a5,...n},disabled:_.draggable}),X=vD(E,V),de=!!j,L=de&&!w&&yc(v)&&yc(k),ie=!A&&Z,ue=ie&&L?C:null,_e=L?ue??(f??N)({rects:S,activeNodeRect:G,activeIndex:v,overIndex:k,index:O}):null,ge=yc(v)&&yc(k)?l({id:u,items:m,activeIndex:v,overIndex:k}):O,ye=j==null?void 0:j.id,le=T.useRef({activeId:ye,items:m,newIndex:ge,containerId:g}),we=m!==le.current.items,Ce=t({active:j,containerId:g,isDragging:Z,isSorting:de,id:u,index:O,items:m,newIndex:le.current.newIndex,previousItems:le.current.items,previousContainerId:le.current.containerId,transition:p,wasDragging:le.current.activeId!=null}),$e=o5({disabled:!Ce,index:O,node:I,rect:B});return T.useEffect(()=>{de&&le.current.newIndex!==ge&&(le.current.newIndex=ge),g!==le.current.containerId&&(le.current.containerId=g),m!==le.current.items&&(le.current.items=m)},[de,ge,g,m]),T.useEffect(()=>{if(ye===le.current.activeId)return;if(ye!=null&&le.current.activeId==null){le.current.activeId=ye;return}const Ie=setTimeout(()=>{le.current.activeId=ye},50);return()=>clearTimeout(Ie)},[ye]),{active:j,activeIndex:v,attributes:Y,data:R,rect:B,index:O,newIndex:ge,items:m,isOver:P,isSorting:de,isDragging:Z,listeners:H,node:I,overIndex:k,over:ae,setNodeRef:X,setActivatorNodeRef:J,setDroppableNodeRef:E,setDraggableNodeRef:V,transform:$e??_e,transition:ke()};function ke(){if($e||we&&le.current.newIndex===O)return i5;if(!(ie&&!_f(U)||!p)&&(de||Ce))return Ki.Transition.toString({...p,property:zx})}}function l5(e,t){var n,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:t.droppable}}function Zc(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const u5=[Qe.Down,Qe.Right,Qe.Up,Qe.Left],c5=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:o,droppableContainers:l,over:u,scrollableAncestors:f}}=t;if(u5.includes(e.code)){if(e.preventDefault(),!n||!i)return;const d=[];l.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const v=o.get(g.id);if(v)switch(e.code){case Qe.Down:i.top<v.top&&d.push(g);break;case Qe.Up:i.top>v.top&&d.push(g);break;case Qe.Left:i.left>v.left&&d.push(g);break;case Qe.Right:i.left<v.left&&d.push(g);break}});const p=ID({collisionRect:i,droppableRects:o,droppableContainers:d});let m=gx(p,"id");if(m===(u==null?void 0:u.id)&&p.length>1&&(m=p[1].id),m!=null){const g=l.get(n.id),v=l.get(m),b=v?o.get(v.id):null,w=v==null?void 0:v.node.current;if(w&&b&&g&&v){const k=Rf(w).some((M,B)=>f[B]!==M),A=Bx(g,v),N=f5(g,v),_=k||!A?{x:0,y:0}:{x:N?i.width-b.width:0,y:N?i.height-b.height:0},O={x:b.left,y:b.top};return _.x&&_.y?O:Nl(O,_)}}}};function Bx(e,t){return!Zc(e)||!Zc(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function f5(e,t){return!Zc(e)||!Zc(t)||!Bx(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const Dc=JSON.parse('{"gsheet_feeder":{"name":"gsheet_feeder","display_name":"Google Sheets Feeder","manifest":{"name":"Google Sheets Feeder","author":"Bellingcat","type":["feeder"],"requires_setup":true,"description":"\\n GsheetsFeeder \\n A Google Sheets-based feeder for the Auto Archiver.\\n\\n This reads data from Google Sheets and filters rows based on user-defined rules.\\n The filtered rows are processed into `Metadata` objects.\\n\\n ### Features\\n - Validates the sheet structure and filters rows based on input configurations.\\n - Processes only worksheets allowed by the `allow_worksheets` and `block_worksheets` configurations.\\n - Ensures only rows with valid URLs and unprocessed statuses are included for archival.\\n - Supports organizing stored files into folder paths based on sheet and worksheet names.\\n\\n ### Setup\\n - Requires a Google Service Account JSON file for authentication, which should be stored in `secrets/gsheets_service_account.json`.\\n To set up a service account, follow the instructions [here](https://gspread.readthedocs.io/en/latest/oauth2.html).\\n - Define the `sheet` or `sheet_id` configuration to specify the sheet to archive.\\n - Customize the column names in your Google sheet using the `columns` configuration.\\n ","dependencies":{"python":["loguru","gspread","slugify"]},"entry_point":"gsheet_feeder::GsheetsFeeder","version":"1.0","configs":{"sheet":{"default":null,"help":"name of the sheet to archive"},"sheet_id":{"default":null,"help":"the id of the sheet to archive (alternative to \'sheet\' config)"},"header":{"default":1,"help":"index of the header row (starts at 1)","type":"int"},"service_account":{"default":"secrets/service_account.json","help":"service account JSON file path. Learn how to create one: https://gspread.readthedocs.io/en/latest/oauth2.html","required":true},"columns":{"default":{"url":"link","status":"archive status","folder":"destination folder","archive":"archive location","date":"archive date","thumbnail":"thumbnail","timestamp":"upload timestamp","title":"upload title","text":"text content","screenshot":"screenshot","hash":"hash","pdq_hash":"perceptual hashes","wacz":"wacz","replaywebpage":"replaywebpage"},"help":"Custom names for the columns in your Google sheet. If you don\'t want to use the default column names, change them with this setting","type":"json_loader"},"allow_worksheets":{"default":[],"help":"A list of worksheet names that should be processed (overrides worksheet_block), leave empty so all are allowed"},"block_worksheets":{"default":[],"help":"A list of worksheet names for worksheets that should be explicitly blocked from being processed"},"use_sheet_names_in_stored_paths":{"default":true,"help":"if True the stored files path will include \'workbook_name/worksheet_name/...\'","type":"bool"}}},"configs":{"sheet":{"default":null,"help":"name of the sheet to archive"},"sheet_id":{"default":null,"help":"the id of the sheet to archive (alternative to \'sheet\' config)"},"header":{"default":1,"help":"index of the header row (starts at 1)","type":"int"},"service_account":{"default":"secrets/service_account.json","help":"service account JSON file path. Learn how to create one: https://gspread.readthedocs.io/en/latest/oauth2.html","required":true},"columns":{"default":{"url":"link","status":"archive status","folder":"destination folder","archive":"archive location","date":"archive date","thumbnail":"thumbnail","timestamp":"upload timestamp","title":"upload title","text":"text content","screenshot":"screenshot","hash":"hash","pdq_hash":"perceptual hashes","wacz":"wacz","replaywebpage":"replaywebpage"},"help":"Custom names for the columns in your Google sheet. If you don\'t want to use the default column names, change them with this setting","type":"json_loader"},"allow_worksheets":{"default":[],"help":"A list of worksheet names that should be processed (overrides worksheet_block), leave empty so all are allowed"},"block_worksheets":{"default":[],"help":"A list of worksheet names for worksheets that should be explicitly blocked from being processed"},"use_sheet_names_in_stored_paths":{"default":true,"help":"if True the stored files path will include \'workbook_name/worksheet_name/...\'","type":"bool"}}},"atlos_feeder":{"name":"atlos_feeder","display_name":"Atlos Feeder","manifest":{"name":"Atlos Feeder","author":"Bellingcat","type":["feeder"],"requires_setup":true,"description":"\\n AtlosFeeder: A feeder module that integrates with the Atlos API to fetch source material URLs for archival.\\n\\n ### Features\\n - Connects to the Atlos API to retrieve a list of source material URLs.\\n - Filters source materials based on visibility, processing status, and metadata.\\n - Converts filtered source materials into `Metadata` objects with the relevant `atlos_id` and URL.\\n - Iterates through paginated results using a cursor for efficient API interaction.\\n\\n ### Notes\\n - Requires an Atlos API endpoint and a valid API token for authentication.\\n - Ensures only unprocessed, visible, and ready-to-archive URLs are returned.\\n - Handles pagination transparently when retrieving data from the Atlos API.\\n ","dependencies":{"python":["loguru","requests"]},"entry_point":"","version":"1.0","configs":{"api_token":{"type":"str","required":true,"help":"An Atlos API token. For more information, see https://docs.atlos.org/technical/api/"},"atlos_url":{"default":"https://platform.atlos.org","help":"The URL of your Atlos instance (e.g., https://platform.atlos.org), without a trailing slash.","type":"str"}}},"configs":{"api_token":{"type":"str","required":true,"help":"An Atlos API token. For more information, see https://docs.atlos.org/technical/api/"},"atlos_url":{"default":"https://platform.atlos.org","help":"The URL of your Atlos instance (e.g., https://platform.atlos.org), without a trailing slash.","type":"str"}}},"csv_feeder":{"name":"csv_feeder","display_name":"CSV Feeder","manifest":{"name":"CSV Feeder","author":"Bellingcat","type":["feeder"],"requires_setup":true,"description":"\\n Reads URLs from CSV files and feeds them into the archiving process.\\n\\n ### Features\\n - Supports reading URLs from multiple input files, specified as a comma-separated list.\\n - Allows specifying the column number or name to extract URLs from.\\n - Skips header rows if the first value is not a valid URL.\\n\\n ### Setup\\n - Input files should be formatted with one URL per line, with or without a header row.\\n - If you have a header row, you can specify the column number or name to read URLs from using the \'column\' config option.\\n ","dependencies":{"python":["loguru"],"bin":[""]},"entry_point":"csv_feeder::CSVFeeder","version":"1.0","configs":{"files":{"default":null,"help":"Path to the input file(s) to read the URLs from, comma separated. Input files should be formatted with one URL per line","required":true,"type":"valid_file","nargs":"+"},"column":{"default":null,"help":"Column number or name to read the URLs from, 0-indexed"}}},"configs":{"files":{"default":null,"help":"Path to the input file(s) to read the URLs from, comma separated. Input files should be formatted with one URL per line","required":true,"type":"valid_file","nargs":"+"},"column":{"default":null,"help":"Column number or name to read the URLs from, 0-indexed"}}},"cli_feeder":{"name":"cli_feeder","display_name":"Command Line Feeder","manifest":{"name":"Command Line Feeder","author":"Bellingcat","type":["feeder"],"requires_setup":false,"description":"\\nThe Command Line Feeder is the default enabled feeder for the Auto Archiver. It allows you to pass URLs directly to the orchestrator from the command line \\nwithout the need to specify any additional configuration or command line arguments:\\n\\n`auto-archiver --feeder cli_feeder -- \\"https://example.com/1/,https://example.com/2/\\"`\\n\\nYou can pass multiple URLs by separating them with a space. The URLs will be processed in the order they are provided.\\n\\n`auto-archiver --feeder cli_feeder -- https://example.com/1/ https://example.com/2/`\\n","dependencies":{},"entry_point":"cli_feeder::CLIFeeder","version":"1.0","configs":{"urls":{"default":null,"help":"URL(s) to archive, either a single URL or a list of urls, should not come from config.yaml"}}},"configs":{"urls":{"default":null,"help":"URL(s) to archive, either a single URL or a list of urls, should not come from config.yaml"}}},"instagram_api_extractor":{"name":"instagram_api_extractor","display_name":"Instagram API Extractor","manifest":{"name":"Instagram API Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\nArchives various types of Instagram content using the Instagrapi API.\\n\\nRequires setting up an Instagrapi API deployment and providing an access token and API endpoint.\\n\\n### Features\\n- Connects to an Instagrapi API deployment to fetch Instagram profiles, posts, stories, highlights, reels, and tagged content.\\n- Supports advanced configuration options, including:\\n - Full profile download (all posts, stories, highlights, and tagged content).\\n - Limiting the number of posts to fetch for large profiles.\\n - Minimising JSON output to remove empty fields and redundant data.\\n- Provides robust error handling and retries for API calls.\\n- Ensures efficient media scraping, including handling nested or carousel media items.\\n- Adds downloaded media and metadata to the result for further processing.\\n\\n### Notes\\n- Requires a valid Instagrapi API token (`access_token`) and API endpoint (`api_endpoint`).\\n- Full-profile downloads can be limited by setting `full_profile_max_posts`.\\n- Designed to fetch content in batches for large profiles, minimising API load.\\n","dependencies":{"python":["requests","loguru","retrying","tqdm"]},"entry_point":"instagram_api_extractor::InstagramAPIExtractor","version":"1.0","configs":{"access_token":{"default":null,"help":"a valid instagrapi-api token"},"api_endpoint":{"required":true,"help":"API endpoint to use"},"full_profile":{"default":false,"type":"bool","help":"if true, will download all posts, tagged posts, stories, and highlights for a profile, if false, will only download the profile pic and information."},"full_profile_max_posts":{"default":0,"type":"int","help":"Use to limit the number of posts to download when full_profile is true. 0 means no limit. limit is applied softly since posts are fetched in batch, once to: posts, tagged posts, and highlights"},"minimize_json_output":{"default":true,"type":"bool","help":"if true, will remove empty values from the json output"}}},"configs":{"access_token":{"default":null,"help":"a valid instagrapi-api token"},"api_endpoint":{"required":true,"help":"API endpoint to use"},"full_profile":{"default":false,"type":"bool","help":"if true, will download all posts, tagged posts, stories, and highlights for a profile, if false, will only download the profile pic and information."},"full_profile_max_posts":{"default":0,"type":"int","help":"Use to limit the number of posts to download when full_profile is true. 0 means no limit. limit is applied softly since posts are fetched in batch, once to: posts, tagged posts, and highlights"},"minimize_json_output":{"default":true,"type":"bool","help":"if true, will remove empty values from the json output"}}},"instagram_tbot_extractor":{"name":"instagram_tbot_extractor","display_name":"Instagram Telegram Bot Extractor","manifest":{"name":"Instagram Telegram Bot Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\nThe `InstagramTbotExtractor` module uses a Telegram bot (`instagram_load_bot`) to fetch and archive Instagram content,\\nsuch as posts and stories. It leverages the Telethon library to interact with the Telegram API, sending Instagram URLs\\nto the bot and downloading the resulting media and metadata. The downloaded content is stored as `Media` objects and\\nreturned as part of a `Metadata` object.\\n\\n### Features\\n- Supports archiving Instagram posts and stories through the Telegram bot.\\n- Downloads and saves media files (e.g., images, videos) in a temporary directory.\\n- Captures and returns metadata, including titles and descriptions, as a `Metadata` object.\\n- Automatically manages Telegram session files for secure access.\\n\\n### Setup\\n\\nTo use the `InstagramTbotExtractor`, you need to provide the following configuration settings:\\n- **API ID and Hash**: Telegram API credentials obtained from [my.telegram.org/apps](https://my.telegram.org/apps).\\n- **Session File**: Optional path to store the Telegram session file for future use.\\n- The session file is created automatically and should be unique for each instance.\\n- You may need to enter your Telegram credentials (phone) and use the a 2FA code sent to you the first time you run the extractor.:\\n```2025-01-30 00:43:49.348 | INFO | auto_archiver.modules.instagram_tbot_extractor.instagram_tbot_extractor:setup:36 - SETUP instagram_tbot_extractor checking login...\\nPlease enter your phone (or bot token): +447123456789\\nPlease enter the code you received: 00000\\nSigned in successfully as E C; remember to not break the ToS or you will risk an account ban!\\n```\\n ","dependencies":{"python":["loguru","telethon"]},"entry_point":"","version":"1.0","configs":{"api_id":{"default":null,"help":"telegram API_ID value, go to https://my.telegram.org/apps"},"api_hash":{"default":null,"help":"telegram API_HASH value, go to https://my.telegram.org/apps"},"session_file":{"default":"secrets/anon-insta","help":"optional, records the telegram login session for future usage, \'.session\' will be appended to the provided value."},"timeout":{"default":45,"type":"int","help":"timeout to fetch the instagram content in seconds."}}},"configs":{"api_id":{"default":null,"help":"telegram API_ID value, go to https://my.telegram.org/apps"},"api_hash":{"default":null,"help":"telegram API_HASH value, go to https://my.telegram.org/apps"},"session_file":{"default":"secrets/anon-insta","help":"optional, records the telegram login session for future usage, \'.session\' will be appended to the provided value."},"timeout":{"default":45,"type":"int","help":"timeout to fetch the instagram content in seconds."}}},"twitter_api_extractor":{"name":"twitter_api_extractor","display_name":"Twitter API Extractor","manifest":{"name":"Twitter API Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\n The `TwitterApiExtractor` fetches tweets and associated media using the Twitter API. \\n It supports multiple API configurations for extended rate limits and reliable access. \\n Features include URL expansion, media downloads (e.g., images, videos), and structured output \\n via `Metadata` and `Media` objects. Requires Twitter API credentials such as bearer tokens \\n or consumer key/secret and access token/secret.\\n \\n ### Features\\n - Fetches tweets and their metadata, including text, creation timestamp, and author information.\\n - Downloads media attachments (e.g., images, videos) in high quality.\\n - Supports multiple API configurations for improved rate limiting.\\n - Expands shortened URLs (e.g., `t.co` links).\\n - Outputs structured metadata and media using `Metadata` and `Media` objects.\\n \\n ### Setup\\n To use the `TwitterApiExtractor`, you must provide valid Twitter API credentials via configuration:\\n - **Bearer Token(s)**: A single token or a list for rate-limited API access.\\n - **Consumer Key and Secret**: Required for user-authenticated API access.\\n - **Access Token and Secret**: Complements the consumer key for enhanced API capabilities.\\n \\n Credentials can be obtained by creating a Twitter developer account at [Twitter Developer Platform](https://developer.twitter.com/en).\\n ","dependencies":{"python":["requests","loguru","pytwitter","slugify"],"bin":[""]},"entry_point":"","version":"1.0","configs":{"bearer_token":{"default":null,"help":"[deprecated: see bearer_tokens] twitter API bearer_token which is enough for archiving, if not provided you will need consumer_key, consumer_secret, access_token, access_secret"},"bearer_tokens":{"default":[],"help":" a list of twitter API bearer_token which is enough for archiving, if not provided you will need consumer_key, consumer_secret, access_token, access_secret, if provided you can still add those for better rate limits. CSV of bearer tokens if provided via the command line"},"consumer_key":{"default":null,"help":"twitter API consumer_key"},"consumer_secret":{"default":null,"help":"twitter API consumer_secret"},"access_token":{"default":null,"help":"twitter API access_token"},"access_secret":{"default":null,"help":"twitter API access_secret"}}},"configs":{"bearer_token":{"default":null,"help":"[deprecated: see bearer_tokens] twitter API bearer_token which is enough for archiving, if not provided you will need consumer_key, consumer_secret, access_token, access_secret"},"bearer_tokens":{"default":[],"help":" a list of twitter API bearer_token which is enough for archiving, if not provided you will need consumer_key, consumer_secret, access_token, access_secret, if provided you can still add those for better rate limits. CSV of bearer tokens if provided via the command line"},"consumer_key":{"default":null,"help":"twitter API consumer_key"},"consumer_secret":{"default":null,"help":"twitter API consumer_secret"},"access_token":{"default":null,"help":"twitter API access_token"},"access_secret":{"default":null,"help":"twitter API access_secret"}}},"instagram_extractor":{"name":"instagram_extractor","display_name":"Instagram Extractor","manifest":{"name":"Instagram Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\n Uses the [Instaloader library](https://instaloader.github.io/as-module.html) to download content from Instagram. This class handles both individual posts\\n and user profiles, downloading as much information as possible, including images, videos, text, stories,\\n highlights, and tagged posts. \\n Authentication is required via username/password or a session file.\\n \\n ","dependencies":{"python":["instaloader","loguru"]},"entry_point":"","version":"1.0","configs":{"username":{"required":true,"help":"a valid Instagram username"},"password":{"required":true,"help":"the corresponding Instagram account password"},"download_folder":{"default":"instaloader","help":"name of a folder to temporarily download content to"},"session_file":{"default":"secrets/instaloader.session","help":"path to the instagram session which saves session credentials"}}},"configs":{"username":{"required":true,"help":"a valid Instagram username"},"password":{"required":true,"help":"the corresponding Instagram account password"},"download_folder":{"default":"instaloader","help":"name of a folder to temporarily download content to"},"session_file":{"default":"secrets/instaloader.session","help":"path to the instagram session which saves session credentials"}}},"telethon_extractor":{"name":"telethon_extractor","display_name":"Telethon Extractor","manifest":{"name":"Telethon Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\nThe `TelethonExtractor` uses the Telethon library to archive posts and media from Telegram channels and groups. \\nIt supports private and public channels, downloading grouped posts with media, and can join channels using invite links \\nif provided in the configuration. \\n\\n### Features\\n- Fetches posts and metadata from Telegram channels and groups, including private channels.\\n- Downloads media attachments (e.g., images, videos, audio) from individual posts or grouped posts.\\n- Handles channel invites to join channels dynamically during setup.\\n- Utilizes Telethon\'s capabilities for reliable Telegram interactions.\\n- Outputs structured metadata and media using `Metadata` and `Media` objects.\\n\\n### Setup\\nTo use the `TelethonExtractor`, you must configure the following:\\n- **API ID and API Hash**: Obtain these from [my.telegram.org](https://my.telegram.org/apps).\\n- **Session File**: Optional, but records login sessions for future use (default: `secrets/anon.session`).\\n- **Bot Token**: Optional, allows access to additional content (e.g., large videos) but limits private channel archiving.\\n- **Channel Invites**: Optional, specify a JSON string of invite links to join channels during setup.\\n\\n### First Time Login\\nThe first time you run, you will be prompted to do a authentication with the phone number associated, alternatively you can put your `anon.session` in the root.\\n\\n\\n","dependencies":{"python":["telethon","loguru","tqdm"],"bin":[""]},"entry_point":"","version":"1.0","configs":{"api_id":{"default":null,"help":"telegram API_ID value, go to https://my.telegram.org/apps"},"api_hash":{"default":null,"help":"telegram API_HASH value, go to https://my.telegram.org/apps"},"bot_token":{"default":null,"help":"optional, but allows access to more content such as large videos, talk to @botfather"},"session_file":{"default":"secrets/anon","help":"optional, records the telegram login session for future usage, \'.session\' will be appended to the provided value."},"join_channels":{"default":true,"help":"disables the initial setup with channel_invites config, useful if you have a lot and get stuck"},"channel_invites":{"default":{},"help":"(JSON string) private channel invite links (format: t.me/joinchat/HASH OR t.me/+HASH) and (optional but important to avoid hanging for minutes on startup) channel id (format: CHANNEL_ID taken from a post url like https://t.me/c/CHANNEL_ID/1), the telegram account will join any new channels on setup","type":"json_loader"}}},"configs":{"api_id":{"default":null,"help":"telegram API_ID value, go to https://my.telegram.org/apps"},"api_hash":{"default":null,"help":"telegram API_HASH value, go to https://my.telegram.org/apps"},"bot_token":{"default":null,"help":"optional, but allows access to more content such as large videos, talk to @botfather"},"session_file":{"default":"secrets/anon","help":"optional, records the telegram login session for future usage, \'.session\' will be appended to the provided value."},"join_channels":{"default":true,"help":"disables the initial setup with channel_invites config, useful if you have a lot and get stuck"},"channel_invites":{"default":{},"help":"(JSON string) private channel invite links (format: t.me/joinchat/HASH OR t.me/+HASH) and (optional but important to avoid hanging for minutes on startup) channel id (format: CHANNEL_ID taken from a post url like https://t.me/c/CHANNEL_ID/1), the telegram account will join any new channels on setup","type":"json_loader"}}},"vk_extractor":{"name":"vk_extractor","display_name":"VKontakte Extractor","manifest":{"name":"VKontakte Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":true,"description":"\\nThe `VkExtractor` fetches posts, text, and images from VK (VKontakte) social media pages. \\nThis archiver is specialized for `/wall` posts and uses the `VkScraper` library to extract \\nand download content. Note that VK videos are handled separately by the `YTDownloader`.\\n\\n### Features\\n- Extracts text, timestamps, and metadata from VK `/wall` posts.\\n- Downloads associated images and attaches them to the resulting `Metadata` object.\\n- Processes multiple segments of VK URLs that contain mixed content (e.g., wall, photo).\\n- Outputs structured metadata and media using `Metadata` and `Media` objects.\\n\\n### Setup\\nTo use the `VkArchiver`, you must provide valid VKontakte login credentials and session information:\\n- **Username**: A valid VKontakte account username.\\n- **Password**: The corresponding password for the VKontakte account.\\n- **Session File**: Optional. Path to a session configuration file (`.json`) for persistent VK login.\\n\\nCredentials can be set in the configuration file or directly via environment variables. Ensure you \\nhave access to the VKontakte API by creating an account at [VKontakte](https://vk.com/).\\n","dependencies":{"python":["loguru","vk_url_scraper"]},"entry_point":"","version":"1.0","configs":{"username":{"required":true,"help":"valid VKontakte username"},"password":{"required":true,"help":"valid VKontakte password"},"session_file":{"default":"secrets/vk_config.v2.json","help":"valid VKontakte password"}},"depends":["core","utils"]},"configs":{"username":{"required":true,"help":"valid VKontakte username"},"password":{"required":true,"help":"valid VKontakte password"},"session_file":{"default":"secrets/vk_config.v2.json","help":"valid VKontakte password"}}},"generic_extractor":{"name":"generic_extractor","display_name":"Generic Extractor","manifest":{"name":"Generic Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":false,"description":"\\nThis is the generic extractor used by auto-archiver, which uses `yt-dlp` under the hood.\\n\\nThis module is responsible for downloading and processing media content from platforms\\nsupported by `yt-dlp`, such as YouTube, Facebook, and others. It provides functionality\\nfor retrieving videos, subtitles, comments, and other metadata, and it integrates with\\nthe broader archiving framework.\\n\\n### Features\\n- Supports downloading videos and playlists.\\n- Retrieves metadata like titles, descriptions, upload dates, and durations.\\n- Downloads subtitles and comments when enabled.\\n- Configurable options for handling live streams, proxies, and more.\\n- Supports authentication of websites using the \'authentication\' settings from your orchestration.\\n\\n### Dropins\\n- For websites supported by `yt-dlp` that also contain posts in addition to videos\\n (e.g. Facebook, Twitter, Bluesky), dropins can be created to extract post data and create \\n metadata objects. Some dropins are included in this generic_archiver by default, but\\ncustom dropins can be created to handle additional websites and passed to the archiver\\nvia the command line using the `--dropins` option (TODO!).\\n","dependencies":{"python":["yt_dlp","requests","loguru","slugify"]},"entry_point":"","version":"0.1.0","configs":{"subtitles":{"default":true,"help":"download subtitles if available","type":"bool"},"comments":{"default":false,"help":"download all comments if available, may lead to large metadata","type":"bool"},"livestreams":{"default":false,"help":"if set, will download live streams, otherwise will skip them; see --max-filesize for more control","type":"bool"},"live_from_start":{"default":false,"help":"if set, will download live streams from their earliest available moment, otherwise starts now.","type":"bool"},"proxy":{"default":"","help":"http/socks (https seems to not work atm) proxy to use for the webdriver, eg https://proxy-user:password@proxy-ip:port"},"end_means_success":{"default":true,"help":"if True, any archived content will mean a \'success\', if False this archiver will not return a \'success\' stage; this is useful for cases when the yt-dlp will archive a video but ignore other types of content like images or text only pages that the subsequent archivers can retrieve.","type":"bool"},"allow_playlist":{"default":false,"help":"If True will also download playlists, set to False if the expectation is to download a single video.","type":"bool"},"max_downloads":{"default":"inf","help":"Use to limit the number of videos to download when a channel or long page is being extracted. \'inf\' means no limit."}}},"configs":{"subtitles":{"default":true,"help":"download subtitles if available","type":"bool"},"comments":{"default":false,"help":"download all comments if available, may lead to large metadata","type":"bool"},"livestreams":{"default":false,"help":"if set, will download live streams, otherwise will skip them; see --max-filesize for more control","type":"bool"},"live_from_start":{"default":false,"help":"if set, will download live streams from their earliest available moment, otherwise starts now.","type":"bool"},"proxy":{"default":"","help":"http/socks (https seems to not work atm) proxy to use for the webdriver, eg https://proxy-user:password@proxy-ip:port"},"end_means_success":{"default":true,"help":"if True, any archived content will mean a \'success\', if False this archiver will not return a \'success\' stage; this is useful for cases when the yt-dlp will archive a video but ignore other types of content like images or text only pages that the subsequent archivers can retrieve.","type":"bool"},"allow_playlist":{"default":false,"help":"If True will also download playlists, set to False if the expectation is to download a single video.","type":"bool"},"max_downloads":{"default":"inf","help":"Use to limit the number of videos to download when a channel or long page is being extracted. \'inf\' means no limit."}}},"telegram_extractor":{"name":"telegram_extractor","display_name":"Telegram Extractor","manifest":{"name":"Telegram Extractor","author":"Bellingcat","type":["extractor"],"requires_setup":false,"description":" \\n The `TelegramExtractor` retrieves publicly available media content from Telegram message links without requiring login credentials. \\n It processes URLs to fetch images and videos embedded in Telegram messages, ensuring a structured output using `Metadata` \\n and `Media` objects. Recommended for scenarios where login-based archiving is not viable, although `telethon_archiver` \\n is advised for more comprehensive functionality, and higher quality media extraction.\\n \\n ### Features\\n- Extracts images and videos from public Telegram message links (`t.me`).\\n- Processes HTML content of messages to retrieve embedded media.\\n- Sets structured metadata, including timestamps, content, and media details.\\n- Does not require user authentication for Telegram.\\n\\n ","dependencies":{"python":["requests","bs4","loguru"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"wayback_extractor_enricher":{"name":"wayback_extractor_enricher","display_name":"Wayback Machine Enricher (and Extractor)","manifest":{"name":"Wayback Machine Enricher (and Extractor)","author":"Bellingcat","type":["enricher","extractor"],"requires_setup":true,"description":"\\n Submits the current URL to the Wayback Machine for archiving and returns either a job ID or the completed archive URL.\\n\\n ### Features\\n - Archives URLs using the Internet Archive\'s Wayback Machine API.\\n - Supports conditional archiving based on the existence of prior archives within a specified time range.\\n - Provides proxies for HTTP and HTTPS requests.\\n - Fetches and confirms the archive URL or provides a job ID for later status checks.\\n\\n ### Notes\\n - Requires a valid Wayback Machine API key and secret.\\n - Handles rate-limiting by Wayback Machine and retries status checks with exponential backoff.\\n \\n ### Steps to Get an Wayback API Key:\\n - Sign up for an account at [Internet Archive](https://archive.org/account/signup).\\n - Log in to your account.\\n - Navigte to your [account settings](https://archive.org/account).\\n - or: https://archive.org/developers/tutorial-get-ia-credentials.html\\n - Under Wayback Machine API Keys, generate a new key.\\n - Note down your API key and secret, as they will be required for authentication.\\n ","dependencies":{"python":["loguru","requests"]},"entry_point":"wayback_extractor_enricher::WaybackExtractorEnricher","version":"1.0","configs":{"timeout":{"default":15,"type":"int","help":"seconds to wait for successful archive confirmation from wayback, if more than this passes the result contains the job_id so the status can later be checked manually."},"if_not_archived_within":{"default":null,"help":"only tell wayback to archive if no archive is available before the number of seconds specified, use None to ignore this option. For more information: https://docs.google.com/document/d/1Nsv52MvSjbLb2PCpHlat0gkzw0EvtSgpKHu4mk0MnrA"},"key":{"required":true,"help":"wayback API key. to get credentials visit https://archive.org/account/s3.php"},"secret":{"required":true,"help":"wayback API secret. to get credentials visit https://archive.org/account/s3.php"},"proxy_http":{"default":null,"help":"http proxy to use for wayback requests, eg http://proxy-user:password@proxy-ip:port"},"proxy_https":{"default":null,"help":"https proxy to use for wayback requests, eg https://proxy-user:password@proxy-ip:port"}}},"configs":{"timeout":{"default":15,"type":"int","help":"seconds to wait for successful archive confirmation from wayback, if more than this passes the result contains the job_id so the status can later be checked manually."},"if_not_archived_within":{"default":null,"help":"only tell wayback to archive if no archive is available before the number of seconds specified, use None to ignore this option. For more information: https://docs.google.com/document/d/1Nsv52MvSjbLb2PCpHlat0gkzw0EvtSgpKHu4mk0MnrA"},"key":{"required":true,"help":"wayback API key. to get credentials visit https://archive.org/account/s3.php"},"secret":{"required":true,"help":"wayback API secret. to get credentials visit https://archive.org/account/s3.php"},"proxy_http":{"default":null,"help":"http proxy to use for wayback requests, eg http://proxy-user:password@proxy-ip:port"},"proxy_https":{"default":null,"help":"https proxy to use for wayback requests, eg https://proxy-user:password@proxy-ip:port"}}},"wacz_extractor_enricher":{"name":"wacz_extractor_enricher","display_name":"WACZ Enricher (and Extractor)","manifest":{"name":"WACZ Enricher (and Extractor)","author":"Bellingcat","type":["enricher","extractor"],"requires_setup":true,"description":"\\n Creates .WACZ archives of web pages using the `browsertrix-crawler` tool, with options for media extraction and screenshot saving.\\n [Browsertrix-crawler](https://crawler.docs.browsertrix.com/user-guide/) is a headless browser-based crawler that archives web pages in WACZ format.\\n\\n ### Features\\n - Archives web pages into .WACZ format using Docker or direct invocation of `browsertrix-crawler`.\\n - Supports custom profiles for archiving private or dynamic content.\\n - Extracts media (images, videos, audio) and screenshots from the archive, optionally adding them to the enrichment pipeline.\\n - Generates metadata from the archived page\'s content and structure (e.g., titles, text).\\n\\n ### Notes\\n - Requires Docker for running `browsertrix-crawler` .\\n - Configurable via parameters for timeout, media extraction, screenshots, and proxy settings.\\n ","dependencies":{"python":["loguru","jsonlines","warcio"],"bin":["docker"]},"entry_point":"wacz_extractor_enricher::WaczExtractorEnricher","version":"1.0","configs":{"profile":{"default":null,"help":"browsertrix-profile (for profile generation see https://github.com/webrecorder/browsertrix-crawler#creating-and-using-browser-profiles)."},"docker_commands":{"default":null,"help":"if a custom docker invocation is needed"},"timeout":{"default":120,"help":"timeout for WACZ generation in seconds","type":"int"},"extract_media":{"default":false,"type":"bool","help":"If enabled all the images/videos/audio present in the WACZ archive will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."},"extract_screenshot":{"default":true,"type":"bool","help":"If enabled the screenshot captured by browsertrix will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."},"socks_proxy_host":{"default":null,"help":"SOCKS proxy host for browsertrix-crawler, use in combination with socks_proxy_port. eg: user:password@host"},"socks_proxy_port":{"default":null,"type":"int","help":"SOCKS proxy port for browsertrix-crawler, use in combination with socks_proxy_host. eg 1234"},"proxy_server":{"default":null,"help":"SOCKS server proxy URL, in development"}}},"configs":{"profile":{"default":null,"help":"browsertrix-profile (for profile generation see https://github.com/webrecorder/browsertrix-crawler#creating-and-using-browser-profiles)."},"docker_commands":{"default":null,"help":"if a custom docker invocation is needed"},"timeout":{"default":120,"help":"timeout for WACZ generation in seconds","type":"int"},"extract_media":{"default":false,"type":"bool","help":"If enabled all the images/videos/audio present in the WACZ archive will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."},"extract_screenshot":{"default":true,"type":"bool","help":"If enabled the screenshot captured by browsertrix will be extracted into separate Media and appear in the html report. The .wacz file will be kept untouched."},"socks_proxy_host":{"default":null,"help":"SOCKS proxy host for browsertrix-crawler, use in combination with socks_proxy_port. eg: user:password@host"},"socks_proxy_port":{"default":null,"type":"int","help":"SOCKS proxy port for browsertrix-crawler, use in combination with socks_proxy_host. eg 1234"},"proxy_server":{"default":null,"help":"SOCKS server proxy URL, in development"}}},"metadata_enricher":{"name":"metadata_enricher","display_name":"Media Metadata Enricher","manifest":{"name":"Media Metadata Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Extracts metadata information from files using ExifTool.\\n\\n ### Features\\n - Uses ExifTool to extract detailed metadata from media files.\\n - Processes file-specific data like camera settings, geolocation, timestamps, and other embedded metadata.\\n - Adds extracted metadata to the corresponding `Media` object within the `Metadata`.\\n\\n ### Notes\\n - Requires ExifTool to be installed and accessible via the system\'s PATH.\\n - Skips enrichment for files where metadata extraction fails.\\n ","dependencies":{"python":["loguru"],"bin":["exiftool"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"timestamping_enricher":{"name":"timestamping_enricher","display_name":"Timestamping Enricher","manifest":{"name":"Timestamping Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Generates RFC3161-compliant timestamp tokens using Time Stamp Authorities (TSA) for archived files.\\n\\n ### Features\\n - Creates timestamp tokens to prove the existence of files at a specific time, useful for legal and authenticity purposes.\\n - Aggregates file hashes into a text file and timestamps the concatenated data.\\n - Uses multiple Time Stamp Authorities (TSAs) to ensure reliability and redundancy.\\n - Validates timestamping certificates against trusted Certificate Authorities (CAs) using the `certifi` trust store.\\n\\n ### Notes\\n - Should be run after the `hash_enricher` to ensure file hashes are available.\\n - Requires internet access to interact with the configured TSAs.\\n ","dependencies":{"python":["loguru","slugify","tsp_client","asn1crypto","certvalidator","certifi"]},"entry_point":"","version":"1.0","configs":{"tsa_urls":{"default":["http://timestamp.digicert.com","http://timestamp.identrust.com","http://timestamp.globalsign.com/tsa/r6advanced1","http://tss.accv.es:8318/tsa"],"help":"List of RFC3161 Time Stamp Authorities to use, separate with commas if passed via the command line."}}},"configs":{"tsa_urls":{"default":["http://timestamp.digicert.com","http://timestamp.identrust.com","http://timestamp.globalsign.com/tsa/r6advanced1","http://tss.accv.es:8318/tsa"],"help":"List of RFC3161 Time Stamp Authorities to use, separate with commas if passed via the command line."}}},"screenshot_enricher":{"name":"screenshot_enricher","display_name":"Screenshot Enricher","manifest":{"name":"Screenshot Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Captures screenshots and optionally saves web pages as PDFs using a WebDriver.\\n\\n ### Features\\n - Takes screenshots of web pages, with configurable width, height, and timeout settings.\\n - Optionally saves pages as PDFs, with additional configuration for PDF printing options.\\n - Bypasses URLs detected as authentication walls.\\n - Integrates seamlessly with the metadata enrichment pipeline, adding screenshots and PDFs as media.\\n\\n ### Notes\\n - Requires a WebDriver (e.g., ChromeDriver) installed and accessible via the system\'s PATH.\\n ","dependencies":{"python":["loguru","selenium"]},"entry_point":"","version":"1.0","configs":{"width":{"default":1280,"type":"int","help":"width of the screenshots"},"height":{"default":720,"type":"int","help":"height of the screenshots"},"timeout":{"default":60,"type":"int","help":"timeout for taking the screenshot"},"sleep_before_screenshot":{"default":4,"type":"int","help":"seconds to wait for the pages to load before taking screenshot"},"http_proxy":{"default":"","help":"http proxy to use for the webdriver, eg http://proxy-user:password@proxy-ip:port"},"save_to_pdf":{"default":false,"type":"bool","help":"save the page as pdf along with the screenshot. PDF saving options can be adjusted with the \'print_options\' parameter"},"print_options":{"default":{},"help":"options to pass to the pdf printer, in JSON format. See https://www.selenium.dev/documentation/webdriver/interactions/print_page/ for more information","type":"json_loader"}}},"configs":{"width":{"default":1280,"type":"int","help":"width of the screenshots"},"height":{"default":720,"type":"int","help":"height of the screenshots"},"timeout":{"default":60,"type":"int","help":"timeout for taking the screenshot"},"sleep_before_screenshot":{"default":4,"type":"int","help":"seconds to wait for the pages to load before taking screenshot"},"http_proxy":{"default":"","help":"http proxy to use for the webdriver, eg http://proxy-user:password@proxy-ip:port"},"save_to_pdf":{"default":false,"type":"bool","help":"save the page as pdf along with the screenshot. PDF saving options can be adjusted with the \'print_options\' parameter"},"print_options":{"default":{},"help":"options to pass to the pdf printer, in JSON format. See https://www.selenium.dev/documentation/webdriver/interactions/print_page/ for more information","type":"json_loader"}}},"whisper_enricher":{"name":"whisper_enricher","display_name":"Whisper Enricher","manifest":{"name":"Whisper Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":true,"description":"\\n Integrates with a Whisper API service to transcribe, translate, or detect the language of audio and video files.\\n\\n ### Features\\n - Submits audio or video files to a Whisper API deployment for processing.\\n - Supports operations such as transcription, translation, and language detection.\\n - Optionally generates SRT subtitle files for video content.\\n - Integrates with S3-compatible storage systems to make files publicly accessible for processing.\\n - Handles job submission, status checking, artifact retrieval, and cleanup.\\n\\n ### Notes\\n - Requires a Whisper API endpoint and API key for authentication.\\n - Only compatible with S3-compatible storage systems for media file accessibility.\\n - ** This stores the media files in S3 prior to enriching them as Whisper requires public URLs to access the media files.\\n - Handles multiple jobs and retries for failed or incomplete processing.\\n ","dependencies":{"python":["s3_storage","loguru","requests"]},"entry_point":"","version":"1.0","configs":{"api_endpoint":{"required":true,"help":"WhisperApi api endpoint, eg: https://whisperbox-api.com/api/v1, a deployment of https://github.com/bellingcat/whisperbox-transcribe."},"api_key":{"required":true,"help":"WhisperApi api key for authentication"},"include_srt":{"default":false,"help":"Whether to include a subtitle SRT (SubRip Subtitle file) for the video (can be used in video players)."},"timeout":{"default":90,"help":"How many seconds to wait at most for a successful job completion."},"action":{"default":"translate","help":"which Whisper operation to execute","choices":["transcribe","translate","language_detection"]}}},"configs":{"api_endpoint":{"required":true,"help":"WhisperApi api endpoint, eg: https://whisperbox-api.com/api/v1, a deployment of https://github.com/bellingcat/whisperbox-transcribe."},"api_key":{"required":true,"help":"WhisperApi api key for authentication"},"include_srt":{"default":false,"help":"Whether to include a subtitle SRT (SubRip Subtitle file) for the video (can be used in video players)."},"timeout":{"default":90,"help":"How many seconds to wait at most for a successful job completion."},"action":{"default":"translate","help":"which Whisper operation to execute","choices":["transcribe","translate","language_detection"]}}},"thumbnail_enricher":{"name":"thumbnail_enricher","display_name":"Thumbnail Enricher","manifest":{"name":"Thumbnail Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":"\\n Generates thumbnails for video files to provide visual previews.\\n\\n ### Features\\n - Processes video files and generates evenly distributed thumbnails.\\n - Calculates the number of thumbnails based on video duration, `thumbnails_per_minute`, and `max_thumbnails`.\\n - Distributes thumbnails equally across the video\'s duration and stores them as media objects.\\n - Adds metadata for each thumbnail, including timestamps and IDs.\\n\\n ### Notes\\n - Requires `ffmpeg` to be installed and accessible via the system\'s PATH.\\n - Handles videos without pre-existing duration metadata by probing with `ffmpeg`.\\n - Skips enrichment for non-video media files.\\n ","dependencies":{"python":["loguru","ffmpeg"],"bin":["ffmpeg"]},"entry_point":"","version":"1.0","configs":{"thumbnails_per_minute":{"default":60,"type":"int","help":"how many thumbnails to generate per minute of video, can be limited by max_thumbnails"},"max_thumbnails":{"default":16,"type":"int","help":"limit the number of thumbnails to generate per video, 0 means no limit"}}},"configs":{"thumbnails_per_minute":{"default":60,"type":"int","help":"how many thumbnails to generate per minute of video, can be limited by max_thumbnails"},"max_thumbnails":{"default":16,"type":"int","help":"limit the number of thumbnails to generate per video, 0 means no limit"}}},"meta_enricher":{"name":"meta_enricher","display_name":"Archive Metadata Enricher","manifest":{"name":"Archive Metadata Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":" \\n Adds metadata information about the archive operations, Adds metadata about archive operations, including file sizes and archive duration./\\n To be included at the end of all enrichments.\\n \\n ### Features\\n- Calculates the total size of all archived media files, storing the result in human-readable and byte formats.\\n- Computes the duration of the archival process, storing the elapsed time in seconds.\\n- Ensures all enrichments are performed only if the `Metadata` object contains valid data.\\n- Adds detailed metadata to provide insights into file sizes and archival performance.\\n\\n### Notes\\n- Skips enrichment if no media or metadata is available in the `Metadata` object.\\n- File sizes are calculated using the `os.stat` module, ensuring accurate byte-level reporting.\\n","dependencies":{"python":["loguru"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"pdq_hash_enricher":{"name":"pdq_hash_enricher","display_name":"PDQ Hash Enricher","manifest":{"name":"PDQ Hash Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":"\\n PDQ Hash Enricher for generating perceptual hashes of media files.\\n\\n ### Features\\n - Calculates perceptual hashes for image files using the PDQ hashing algorithm.\\n - Enables detection of duplicate or near-duplicate visual content.\\n - Processes images stored in `Metadata` objects, adding computed hashes to the corresponding `Media` entries.\\n - Skips non-image media or files unsuitable for hashing (e.g., corrupted or unsupported formats).\\n\\n ### Notes\\n - Best used after enrichers like `thumbnail_enricher` or `screenshot_enricher` to ensure images are available.\\n - Uses the `pdqhash` library to compute 256-bit perceptual hashes, which are stored as hexadecimal strings.\\n ","dependencies":{"python":["loguru","pdqhash","numpy","PIL"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"ssl_enricher":{"name":"ssl_enricher","display_name":"SSL Certificate Enricher","manifest":{"name":"SSL Certificate Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":"\\n Retrieves SSL certificate information for a domain and stores it as a file.\\n\\n ### Features\\n - Fetches SSL certificates for domains using the HTTPS protocol.\\n - Stores certificates in PEM format and adds them as media to the metadata.\\n - Skips enrichment if no media has been archived, based on the `skip_when_nothing_archived` configuration.\\n\\n ### Notes\\n - Requires the target URL to use the HTTPS scheme; other schemes are not supported.\\n ","dependencies":{"python":["loguru","slugify"]},"entry_point":"ssl_enricher::SSLEnricher","version":"1.0","configs":{"skip_when_nothing_archived":{"default":true,"type":"bool","help":"if true, will skip enriching when no media is archived"}}},"configs":{"skip_when_nothing_archived":{"default":true,"type":"bool","help":"if true, will skip enriching when no media is archived"}}},"hash_enricher":{"name":"hash_enricher","display_name":"Hash Enricher","manifest":{"name":"Hash Enricher","author":"Bellingcat","type":["enricher"],"requires_setup":false,"description":"\\nGenerates cryptographic hashes for media files to ensure data integrity and authenticity.\\n\\n### Features\\n- Calculates cryptographic hashes (SHA-256 or SHA3-512) for media files stored in `Metadata` objects.\\n- Ensures content authenticity, integrity validation, and duplicate identification.\\n- Efficiently processes large files by reading file bytes in configurable chunk sizes.\\n- Supports dynamic configuration of hash algorithms and chunk sizes.\\n- Updates media metadata with the computed hash value in the format `<algorithm>:<hash>`.\\n\\n### Notes\\n- Default hash algorithm is SHA-256, but SHA3-512 is also supported.\\n- Chunk size defaults to 16 MB but can be adjusted based on memory requirements.\\n- Useful for workflows requiring hash-based content validation or deduplication.\\n","dependencies":{"python":["loguru"]},"entry_point":"","version":"1.0","configs":{"algorithm":{"default":"SHA-256","help":"hash algorithm to use","choices":["SHA-256","SHA3-512"]},"chunksize":{"default":16000000,"help":"number of bytes to use when reading files in chunks (if this value is too large you will run out of RAM), default is 16MB","type":"int"}}},"configs":{"algorithm":{"default":"SHA-256","help":"hash algorithm to use","choices":["SHA-256","SHA3-512"]},"chunksize":{"default":16000000,"help":"number of bytes to use when reading files in chunks (if this value is too large you will run out of RAM), default is 16MB","type":"int"}}},"atlos_db":{"name":"atlos_db","display_name":"Atlos Database","manifest":{"name":"Atlos Database","author":"Bellingcat","type":["database"],"requires_setup":true,"description":"\\nHandles integration with the Atlos platform for managing archival results.\\n\\n### Features\\n- Outputs archival results to the Atlos API for storage and tracking.\\n- Updates failure status with error details when archiving fails.\\n- Processes and formats metadata, including ISO formatting for datetime fields.\\n- Skips processing for items without an Atlos ID.\\n\\n### Setup\\nRequired configs:\\n- atlos_url: Base URL for the Atlos API.\\n- api_token: Authentication token for API access.\\n","dependencies":{"python":["loguru",""],"bin":[""]},"entry_point":"atlos_db::AtlosDb","version":"1.0","configs":{"api_token":{"default":null,"help":"An Atlos API token. For more information, see https://docs.atlos.org/technical/api/","required":true,"type":"str"},"atlos_url":{"default":"https://platform.atlos.org","help":"The URL of your Atlos instance (e.g., https://platform.atlos.org), without a trailing slash.","type":"str"}}},"configs":{"api_token":{"default":null,"help":"An Atlos API token. For more information, see https://docs.atlos.org/technical/api/","required":true,"type":"str"},"atlos_url":{"default":"https://platform.atlos.org","help":"The URL of your Atlos instance (e.g., https://platform.atlos.org), without a trailing slash.","type":"str"}}},"api_db":{"name":"api_db","display_name":"Auto Archiver API Database","manifest":{"name":"Auto Archiver API Database","author":"Bellingcat","type":["database"],"requires_setup":true,"description":"\\n Provides integration with the Auto Archiver API for querying and storing archival data.\\n\\n### Features\\n- **API Integration**: Supports querying for existing archives and submitting results.\\n- **Duplicate Prevention**: Avoids redundant archiving when `use_api_cache` is disabled.\\n- **Configurable**: Supports settings like API endpoint, authentication token, tags, and permissions.\\n- **Tagging and Metadata**: Adds tags and manages metadata for archives.\\n- **Optional Storage**: Archives results conditionally based on configuration.\\n\\n### Setup\\nRequires access to an Auto Archiver API instance and a valid API token.\\n ","dependencies":{"python":["requests","loguru"]},"entry_point":"api_db::AAApiDb","version":"1.0","configs":{"api_endpoint":{"required":true,"help":"API endpoint where calls are made to"},"api_token":{"default":null,"help":"API Bearer token."},"public":{"default":false,"type":"bool","help":"whether the URL should be publicly available via the API"},"author_id":{"default":null,"help":"which email to assign as author"},"group_id":{"default":null,"help":"which group of users have access to the archive in case public=false as author"},"use_api_cache":{"default":true,"type":"bool","help":"if False then the API database will be queried prior to any archiving operations and stop if the link has already been archived"},"store_results":{"default":true,"type":"bool","help":"when set, will send the results to the API database."},"tags":{"default":[],"help":"what tags to add to the archived URL"}}},"configs":{"api_endpoint":{"required":true,"help":"API endpoint where calls are made to"},"api_token":{"default":null,"help":"API Bearer token."},"public":{"default":false,"type":"bool","help":"whether the URL should be publicly available via the API"},"author_id":{"default":null,"help":"which email to assign as author"},"group_id":{"default":null,"help":"which group of users have access to the archive in case public=false as author"},"use_api_cache":{"default":true,"type":"bool","help":"if False then the API database will be queried prior to any archiving operations and stop if the link has already been archived"},"store_results":{"default":true,"type":"bool","help":"when set, will send the results to the API database."},"tags":{"default":[],"help":"what tags to add to the archived URL"}}},"gsheet_db":{"name":"gsheet_db","display_name":"Google Sheets Database","manifest":{"name":"Google Sheets Database","author":"Bellingcat","type":["database"],"requires_setup":true,"description":"\\n GsheetsDatabase:\\n Handles integration with Google Sheets for tracking archival tasks.\\n\\n### Features\\n- Updates a Google Sheet with the status of the archived URLs, including in progress, success or failure, and method used.\\n- Saves metadata such as title, text, timestamp, hashes, screenshots, and media URLs to designated columns.\\n- Formats media-specific metadata, such as thumbnails and PDQ hashes for the sheet.\\n- Skips redundant updates for empty or invalid data fields.\\n\\n### Notes\\n- Currently works only with metadata provided by GsheetFeeder. \\n- Requires configuration of a linked Google Sheet and appropriate API credentials.\\n ","dependencies":{"python":["loguru","gspread","slugify"]},"entry_point":"gsheet_db::GsheetsDb","version":"1.0","configs":{"allow_worksheets":{"default":[],"help":"(CSV) only worksheets whose name is included in allow are included (overrides worksheet_block), leave empty so all are allowed"},"block_worksheets":{"default":[],"help":"(CSV) explicitly block some worksheets from being processed"},"use_sheet_names_in_stored_paths":{"default":true,"type":"bool","help":"if True the stored files path will include \'workbook_name/worksheet_name/...\'"}}},"configs":{"allow_worksheets":{"default":[],"help":"(CSV) only worksheets whose name is included in allow are included (overrides worksheet_block), leave empty so all are allowed"},"block_worksheets":{"default":[],"help":"(CSV) explicitly block some worksheets from being processed"},"use_sheet_names_in_stored_paths":{"default":true,"type":"bool","help":"if True the stored files path will include \'workbook_name/worksheet_name/...\'"}}},"console_db":{"name":"console_db","display_name":"Console Database","manifest":{"name":"Console Database","author":"Bellingcat","type":["database"],"requires_setup":false,"description":"\\nProvides a simple database implementation that outputs archival results and status updates to the console.\\n\\n### Features\\n- Logs the status of archival tasks directly to the console, including:\\n - started\\n - failed (with error details)\\n - aborted\\n - done (with optional caching status)\\n- Useful for debugging or lightweight setups where no external database is required.\\n\\n### Setup\\nNo additional configuration is required.\\n","dependencies":{"python":["loguru"]},"entry_point":"","version":"1.0","configs":{}},"configs":null},"csv_db":{"name":"csv_db","display_name":"CSV Database","manifest":{"name":"CSV Database","author":"Bellingcat","type":["database"],"requires_setup":false,"description":"\\nHandles exporting archival results to a CSV file.\\n\\n### Features\\n- Saves archival metadata as rows in a CSV file.\\n- Automatically creates the CSV file with a header if it does not exist.\\n- Appends new metadata entries to the existing file.\\n\\n### Setup\\nRequired config:\\n- csv_file: Path to the CSV file where results will be stored (default: \\"db.csv\\").\\n","dependencies":{"python":["loguru"]},"entry_point":"csv_db::CSVDb","version":"1.0","configs":{"csv_file":{"default":"db.csv","help":"CSV file name to save metadata to"}}},"configs":{"csv_file":{"default":"db.csv","help":"CSV file name to save metadata to"}}},"gdrive_storage":{"name":"gdrive_storage","display_name":"Google Drive Storage","manifest":{"name":"Google Drive Storage","author":"Dave Mateer","type":["storage"],"requires_setup":true,"description":"\\n \\n GDriveStorage: A storage module for saving archived content to Google Drive.\\n\\n Source Documentation: https://davemateer.com/2022/04/28/google-drive-with-python\\n\\n ### Features\\n - Saves media files to Google Drive, organizing them into folders based on the provided path structure.\\n - Supports OAuth token-based authentication or service account credentials for API access.\\n - Automatically creates folders in Google Drive if they don\'t exist.\\n - Retrieves CDN URLs for stored files, enabling easy sharing and access.\\n\\n ### Notes\\n - Requires setup with either a Google OAuth token or a service account JSON file.\\n - Files are uploaded to the specified `root_folder_id` and organized by the `media.key` structure.\\n - Automatically handles Google Drive API token refreshes for long-running jobs.\\n \\n ## Overview\\nThis module integrates Google Drive as a storage backend, enabling automatic folder creation and file uploads. It supports authentication via **service accounts** (recommended for automation) or **OAuth tokens** (for user-based authentication).\\n\\n## Features\\n- Saves files to Google Drive, organizing them into structured folders.\\n- Supports both **service account** and **OAuth token** authentication.\\n- Automatically creates folders if they don\'t exist.\\n- Generates public URLs for easy file sharing.\\n\\n## Setup Guide\\n1. **Enable Google Drive API**\\n - Create a Google Cloud project at [Google Cloud Console](https://console.cloud.google.com/)\\n - Enable the **Google Drive API**.\\n\\n2. **Set Up a Google Drive Folder**\\n - Create a folder in **Google Drive** and copy its **folder ID** from the URL.\\n - Add the **folder ID** to your configuration (`orchestration.yaml`):\\n ```yaml\\n root_folder_id: \\"FOLDER_ID\\"\\n ```\\n\\n3. **Authentication Options**\\n - **Option 1: Service Account (Recommended)**\\n - Create a **service account** in Google Cloud IAM.\\n - Download the JSON key file and save it as:\\n ```\\n secrets/service_account.json\\n ```\\n - **Share your Drive folder** with the service account’s `client_email` (found in the JSON file).\\n \\n - **Option 2: OAuth Token (User Authentication)**\\n - Create OAuth **Desktop App credentials** in Google Cloud.\\n - Save the credentials as:\\n ```\\n secrets/oauth_credentials.json\\n ```\\n - Generate an OAuth token by running:\\n ```sh\\n python scripts/create_update_gdrive_oauth_token.py -c secrets/oauth_credentials.json\\n ```\\n\\n \\n Notes on the OAuth token:\\n Tokens are refreshed after 1 hour however keep working for 7 days (tbc)\\n so as long as the job doesn\'t last for 7 days then this method of refreshing only once per run will work\\n see this link for details on the token:\\n https://davemateer.com/2022/04/28/google-drive-with-python#tokens\\n \\n \\n","dependencies":{"python":["loguru","googleapiclient","google"]},"entry_point":"gdrive_storage::GDriveStorage","version":"1.0","configs":{"path_generator":{"default":"url","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a replicable strategy such as a hash.","choices":["random","static"]},"root_folder_id":{"required":true,"help":"root google drive folder ID to use as storage, found in URL: \'https://drive.google.com/drive/folders/FOLDER_ID\'"},"oauth_token":{"default":null,"help":"JSON filename with Google Drive OAuth token: check auto-archiver repository scripts folder for create_update_gdrive_oauth_token.py. NOTE: storage used will count towards owner of GDrive folder, therefore it is best to use oauth_token_filename over service_account."},"service_account":{"default":"secrets/service_account.json","help":"service account JSON file path, same as used for Google Sheets. NOTE: storage used will count towards the developer account."}}},"configs":{"path_generator":{"default":"url","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a replicable strategy such as a hash.","choices":["random","static"]},"root_folder_id":{"required":true,"help":"root google drive folder ID to use as storage, found in URL: \'https://drive.google.com/drive/folders/FOLDER_ID\'"},"oauth_token":{"default":null,"help":"JSON filename with Google Drive OAuth token: check auto-archiver repository scripts folder for create_update_gdrive_oauth_token.py. NOTE: storage used will count towards owner of GDrive folder, therefore it is best to use oauth_token_filename over service_account."},"service_account":{"default":"secrets/service_account.json","help":"service account JSON file path, same as used for Google Sheets. NOTE: storage used will count towards the developer account."}}},"atlos_storage":{"name":"atlos_storage","display_name":"Atlos Storage","manifest":{"name":"Atlos Storage","author":"Bellingcat","type":["storage"],"requires_setup":true,"description":"\\n Stores media files in a [Atlos](https://www.atlos.org/).\\n\\n ### Features\\n - Saves media files to Atlos, organizing them into folders based on the provided path structure.\\n\\n ### Notes\\n - Requires setup with Atlos credentials.\\n - Files are uploaded to the specified `root_folder_id` and organized by the `media.key` structure.\\n ","dependencies":{"python":["loguru","boto3"],"bin":[]},"entry_point":"","version":"1.0","configs":{"api_token":{"default":null,"help":"An Atlos API token. For more information, see https://docs.atlos.org/technical/api/","required":true,"type":"str"},"atlos_url":{"default":"https://platform.atlos.org","help":"The URL of your Atlos instance (e.g., https://platform.atlos.org), without a trailing slash.","type":"str"}}},"configs":{"api_token":{"default":null,"help":"An Atlos API token. For more information, see https://docs.atlos.org/technical/api/","required":true,"type":"str"},"atlos_url":{"default":"https://platform.atlos.org","help":"The URL of your Atlos instance (e.g., https://platform.atlos.org), without a trailing slash.","type":"str"}}},"s3_storage":{"name":"s3_storage","display_name":"S3 Storage","manifest":{"name":"S3 Storage","author":"Bellingcat","type":["storage"],"requires_setup":true,"description":"\\n S3Storage: A storage module for saving media files to an S3-compatible object storage.\\n\\n ### Features\\n - Uploads media files to an S3 bucket with customizable configurations.\\n - Supports `random_no_duplicate` mode to avoid duplicate uploads by checking existing files based on SHA-256 hashes.\\n - Automatically generates unique paths for files when duplicates are found.\\n - Configurable endpoint and CDN URL for different S3-compatible providers.\\n - Supports both private and public file storage, with public files being readable online.\\n\\n ### Notes\\n - Requires S3 credentials (API key and secret) and a bucket name to function.\\n - The `random_no_duplicate` option ensures no duplicate uploads by leveraging hash-based folder structures.\\n - Uses `boto3` for interaction with the S3 API.\\n - Depends on the `HashEnricher` module for hash calculation.\\n ","dependencies":{"python":["hash_enricher","boto3","loguru"]},"entry_point":"","version":"1.0","configs":{"path_generator":{"default":"flat","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a replicable strategy such as a hash.","choices":["random","static"]},"bucket":{"default":null,"help":"S3 bucket name"},"region":{"default":null,"help":"S3 region name"},"key":{"default":null,"help":"S3 API key"},"secret":{"default":null,"help":"S3 API secret"},"random_no_duplicate":{"default":false,"type":"bool","help":"if set, it will override `path_generator`, `filename_generator` and `folder`. It will check if the file already exists and if so it will not upload it again. Creates a new root folder path `no-dups/`"},"endpoint_url":{"default":"https://{region}.digitaloceanspaces.com","help":"S3 bucket endpoint, {region} are inserted at runtime"},"cdn_url":{"default":"https://{bucket}.{region}.cdn.digitaloceanspaces.com/{key}","help":"S3 CDN url, {bucket}, {region} and {key} are inserted at runtime"},"private":{"default":false,"type":"bool","help":"if true S3 files will not be readable online"}}},"configs":{"path_generator":{"default":"flat","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a replicable strategy such as a hash.","choices":["random","static"]},"bucket":{"default":null,"help":"S3 bucket name"},"region":{"default":null,"help":"S3 region name"},"key":{"default":null,"help":"S3 API key"},"secret":{"default":null,"help":"S3 API secret"},"random_no_duplicate":{"default":false,"type":"bool","help":"if set, it will override `path_generator`, `filename_generator` and `folder`. It will check if the file already exists and if so it will not upload it again. Creates a new root folder path `no-dups/`"},"endpoint_url":{"default":"https://{region}.digitaloceanspaces.com","help":"S3 bucket endpoint, {region} are inserted at runtime"},"cdn_url":{"default":"https://{bucket}.{region}.cdn.digitaloceanspaces.com/{key}","help":"S3 CDN url, {bucket}, {region} and {key} are inserted at runtime"},"private":{"default":false,"type":"bool","help":"if true S3 files will not be readable online"}}},"local_storage":{"name":"local_storage","display_name":"Local Storage","manifest":{"name":"Local Storage","author":"Bellingcat","type":["storage"],"requires_setup":false,"description":"\\n LocalStorage: A storage module for saving archived content locally on the filesystem.\\n\\n ### Features\\n - Saves archived media files to a specified folder on the local filesystem.\\n - Maintains file metadata during storage using `shutil.copy2`.\\n - Supports both absolute and relative paths for stored files, configurable via `save_absolute`.\\n - Automatically creates directories as needed for storing files.\\n\\n ### Notes\\n - Default storage folder is `./archived`, but this can be changed via the `save_to` configuration.\\n - The `save_absolute` option can reveal the file structure in output formats; use with caution.\\n ","dependencies":{"python":["loguru"]},"entry_point":"","version":"1.0","configs":{"path_generator":{"default":"flat","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a replicable strategy such as a hash.","choices":["random","static"]},"save_to":{"default":"./local_archive","help":"folder where to save archived content"},"save_absolute":{"default":false,"type":"bool","help":"whether the path to the stored file is absolute or relative in the output result inc. formatters (WARN: leaks the file structure)"}}},"configs":{"path_generator":{"default":"flat","help":"how to store the file in terms of directory structure: \'flat\' sets to root; \'url\' creates a directory based on the provided URL; \'random\' creates a random directory.","choices":["flat","url","random"]},"filename_generator":{"default":"static","help":"how to name stored files: \'random\' creates a random string; \'static\' uses a replicable strategy such as a hash.","choices":["random","static"]},"save_to":{"default":"./local_archive","help":"folder where to save archived content"},"save_absolute":{"default":false,"type":"bool","help":"whether the path to the stored file is absolute or relative in the output result inc. formatters (WARN: leaks the file structure)"}}},"mute_formatter":{"name":"mute_formatter","display_name":"Mute Formatter","manifest":{"name":"Mute Formatter","author":"Bellingcat","type":["formatter"],"requires_setup":true,"description":" Default formatter.\\n ","dependencies":{},"entry_point":"","version":"1.0","configs":{}},"configs":null},"html_formatter":{"name":"html_formatter","display_name":"HTML Formatter","manifest":{"name":"HTML Formatter","author":"Bellingcat","type":["formatter"],"requires_setup":false,"description":" ","dependencies":{"python":["hash_enricher","loguru","jinja2"],"bin":[""]},"entry_point":"","version":"1.0","configs":{"detect_thumbnails":{"default":true,"help":"if true will group by thumbnails generated by thumbnail enricher by id \'thumbnail_00\'","type":"bool"}}},"configs":{"detect_thumbnails":{"default":true,"help":"if true will group by thumbnails generated by thumbnail enricher by id \'thumbnail_00\'","type":"bool"}}}}'),xo={feeders:["cli_feeder","gsheet_feeder","atlos_feeder","csv_feeder"],extractors:["wayback_extractor_enricher","wacz_extractor_enricher","instagram_api_extractor","instagram_tbot_extractor","generic_extractor","twitter_api_extractor","instagram_extractor","telethon_extractor","vk_extractor","telegram_extractor"],enrichers:["wayback_extractor_enricher","wacz_extractor_enricher","metadata_enricher","timestamping_enricher","thumbnail_enricher","screenshot_enricher","meta_enricher","pdq_hash_enricher","whisper_enricher","ssl_enricher","hash_enricher"],databases:["console_db","atlos_db","api_db","csv_db","gsheet_db"],storages:["local_storage","gdrive_storage","atlos_storage","s3_storage"],formatters:["html_formatter","mute_formatter"]},QS=["feeder","extractor","enricher","database","storage","formatter"],mg=Symbol.for("yaml.alias"),fm=Symbol.for("yaml.document"),Fi=Symbol.for("yaml.map"),Ix=Symbol.for("yaml.pair"),Vr=Symbol.for("yaml.scalar"),Zo=Symbol.for("yaml.seq"),hr=Symbol.for("yaml.node.type"),Jo=e=>!!e&&typeof e=="object"&&e[hr]===mg,Nf=e=>!!e&&typeof e=="object"&&e[hr]===fm,Ql=e=>!!e&&typeof e=="object"&&e[hr]===Fi,qt=e=>!!e&&typeof e=="object"&&e[hr]===Ix,Et=e=>!!e&&typeof e=="object"&&e[hr]===Vr,Zl=e=>!!e&&typeof e=="object"&&e[hr]===Zo;function Ut(e){if(e&&typeof e=="object")switch(e[hr]){case Fi:case Zo:return!0}return!1}function Ht(e){if(e&&typeof e=="object")switch(e[hr]){case mg:case Fi:case Vr:case Zo:return!0}return!1}const d5=e=>(Et(e)||Ut(e))&&!!e.anchor,xa=Symbol("break visit"),p5=Symbol("skip children"),wl=Symbol("remove node");function Ra(e,t){const n=h5(t);Nf(e)?_o(null,e.contents,n,Object.freeze([e]))===wl&&(e.contents=null):_o(null,e,n,Object.freeze([]))}Ra.BREAK=xa;Ra.SKIP=p5;Ra.REMOVE=wl;function _o(e,t,n,i){const o=m5(e,t,n,i);if(Ht(o)||qt(o))return g5(e,i,o),_o(e,o,n,i);if(typeof o!="symbol"){if(Ut(t)){i=Object.freeze(i.concat(t));for(let l=0;l<t.items.length;++l){const u=_o(l,t.items[l],n,i);if(typeof u=="number")l=u-1;else{if(u===xa)return xa;u===wl&&(t.items.splice(l,1),l-=1)}}}else if(qt(t)){i=Object.freeze(i.concat(t));const l=_o("key",t.key,n,i);if(l===xa)return xa;l===wl&&(t.key=null);const u=_o("value",t.value,n,i);if(u===xa)return xa;u===wl&&(t.value=null)}}return o}function h5(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function m5(e,t,n,i){var o,l,u,f,d;if(typeof n=="function")return n(e,t,i);if(Ql(t))return(o=n.Map)==null?void 0:o.call(n,e,t,i);if(Zl(t))return(l=n.Seq)==null?void 0:l.call(n,e,t,i);if(qt(t))return(u=n.Pair)==null?void 0:u.call(n,e,t,i);if(Et(t))return(f=n.Scalar)==null?void 0:f.call(n,e,t,i);if(Jo(t))return(d=n.Alias)==null?void 0:d.call(n,e,t,i)}function g5(e,t,n){const i=t[t.length-1];if(Ut(i))i.items[e]=n;else if(qt(i))e==="key"?i.key=n:i.value=n;else if(Nf(i))i.contents=n;else{const o=Jo(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const y5={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},b5=e=>e.replace(/[!,[\]{}]/g,t=>y5[t]);class Cn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Cn.defaultYaml,t),this.tags=Object.assign({},Cn.defaultTags,n)}clone(){const t=new Cn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Cn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Cn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Cn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Cn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Cn.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(i.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[l,u]=i;return this.tags[l]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[l]=i;if(l==="1.1"||l==="1.2")return this.yaml.version=l,!0;{const u=/^\d+\.\d+$/.test(l);return n(6,`Unsupported YAML version ${l}`,u),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const u=t.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,i,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const l=this.tags[i];if(l)try{return l+decodeURIComponent(o)}catch(u){return n(String(u)),null}return i==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,i]of Object.entries(this.tags))if(t.startsWith(i))return n+b5(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let o;if(t&&i.length>0&&Ht(t.contents)){const l={};Ra(t.contents,(u,f)=>{Ht(f)&&f.tag&&(l[f.tag]=!0)}),o=Object.keys(l)}else o=[];for(const[l,u]of i)l==="!!"&&u==="tag:yaml.org,2002:"||(!t||o.some(f=>f.startsWith(u)))&&n.push(`%TAG ${l} ${u}`);return n.join(`
|
||
`)}}Cn.defaultYaml={explicit:!1,version:"1.2"};Cn.defaultTags={"!!":"tag:yaml.org,2002:"};function jx(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function $x(e){const t=new Set;return Ra(e,{Value(n,i){i.anchor&&t.add(i.anchor)}}),t}function Px(e,t){for(let n=1;;++n){const i=`${e}${n}`;if(!t.has(i))return i}}function v5(e,t){const n=[],i=new Map;let o=null;return{onAnchor:l=>{n.push(l),o||(o=$x(e));const u=Px(t,o);return o.add(u),u},setAnchors:()=>{for(const l of n){const u=i.get(l);if(typeof u=="object"&&u.anchor&&(Et(u.node)||Ut(u.node)))u.node.anchor=u.anchor;else{const f=new Error("Failed to resolve repeated object (this should not happen)");throw f.source=l,f}}},sourceObjects:i}}function Ro(e,t,n,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let o=0,l=i.length;o<l;++o){const u=i[o],f=Ro(e,i,String(o),u);f===void 0?delete i[o]:f!==u&&(i[o]=f)}else if(i instanceof Map)for(const o of Array.from(i.keys())){const l=i.get(o),u=Ro(e,i,o,l);u===void 0?i.delete(o):u!==l&&i.set(o,u)}else if(i instanceof Set)for(const o of Array.from(i)){const l=Ro(e,i,o,o);l===void 0?i.delete(o):l!==o&&(i.delete(o),i.add(l))}else for(const[o,l]of Object.entries(i)){const u=Ro(e,i,o,l);u===void 0?delete i[o]:u!==l&&(i[o]=u)}return e.call(t,n,i)}function pr(e,t,n){if(Array.isArray(e))return e.map((i,o)=>pr(i,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!d5(e))return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=l=>{i.res=l,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class gg{constructor(t){Object.defineProperty(this,hr,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:l}={}){if(!Nf(t))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},f=pr(this,"",u);if(typeof o=="function")for(const{count:d,res:p}of u.anchors.values())o(p,d);return typeof l=="function"?Ro(l,{"":f},"",f):f}}class yg extends gg{constructor(t){super(mg),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Ra(t,{Node:(i,o)=>{if(o===this)return Ra.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:i,doc:o,maxAliasCount:l}=n,u=this.resolve(o);if(!u){const d=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(d)}let f=i.get(u);if(f||(pr(u,null,n),f=i.get(u)),!f||f.res===void 0){const d="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(d)}if(l>=0&&(f.count+=1,f.aliasCount===0&&(f.aliasCount=Lc(o,u,i)),f.count*f.aliasCount>l)){const d="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(d)}return f.res}toString(t,n,i){const o=`*${this.source}`;if(t){if(jx(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(l)}if(t.implicitKey)return`${o} `}return o}}function Lc(e,t,n){if(Jo(t)){const i=t.resolve(e),o=n&&i&&n.get(i);return o?o.count*o.aliasCount:0}else if(Ut(t)){let i=0;for(const o of t.items){const l=Lc(e,o,n);l>i&&(i=l)}return i}else if(qt(t)){const i=Lc(e,t.key,n),o=Lc(e,t.value,n);return Math.max(i,o)}return 1}const Ux=e=>!e||typeof e!="function"&&typeof e!="object";class Be extends gg{constructor(t){super(Vr),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:pr(this.value,t,n)}toString(){return String(this.value)}}Be.BLOCK_FOLDED="BLOCK_FOLDED";Be.BLOCK_LITERAL="BLOCK_LITERAL";Be.PLAIN="PLAIN";Be.QUOTE_DOUBLE="QUOTE_DOUBLE";Be.QUOTE_SINGLE="QUOTE_SINGLE";const S5="tag:yaml.org,2002:";function w5(e,t,n){if(t){const i=n.filter(l=>l.tag===t),o=i.find(l=>!l.format)??i[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(i=>{var o;return((o=i.identify)==null?void 0:o.call(i,e))&&!i.format})}function Ll(e,t,n){var g,v,b;if(Nf(e)&&(e=e.contents),Ht(e))return e;if(qt(e)){const w=(v=(g=n.schema[Fi]).createNode)==null?void 0:v.call(g,n.schema,null,n);return w.items.push(e),w}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:o,onTagObj:l,schema:u,sourceObjects:f}=n;let d;if(i&&e&&typeof e=="object"){if(d=f.get(e),d)return d.anchor||(d.anchor=o(e)),new yg(d.anchor);d={anchor:null,node:null},f.set(e,d)}t!=null&&t.startsWith("!!")&&(t=S5+t.slice(2));let p=w5(e,t,u.tags);if(!p){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const w=new Be(e);return d&&(d.node=w),w}p=e instanceof Map?u[Fi]:Symbol.iterator in Object(e)?u[Zo]:u[Fi]}l&&(l(p),delete n.onTagObj);const m=p!=null&&p.createNode?p.createNode(n.schema,e,n):typeof((b=p==null?void 0:p.nodeClass)==null?void 0:b.from)=="function"?p.nodeClass.from(n.schema,e,n):new Be(e);return t?m.tag=t:p.default||(m.tag=p.tag),d&&(d.node=m),m}function Jc(e,t,n){let i=n;for(let o=t.length-1;o>=0;--o){const l=t[o];if(typeof l=="number"&&Number.isInteger(l)&&l>=0){const u=[];u[l]=i,i=u}else i=new Map([[l,i]])}return Ll(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const pl=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Hx extends gg{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(i=>Ht(i)||qt(i)?i.clone(t):i),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(pl(t))this.add(n);else{const[i,...o]=t,l=this.get(i,!0);if(Ut(l))l.addIn(o,n);else if(l===void 0&&this.schema)this.set(i,Jc(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(t){const[n,...i]=t;if(i.length===0)return this.delete(n);const o=this.get(n,!0);if(Ut(o))return o.deleteIn(i);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}getIn(t,n){const[i,...o]=t,l=this.get(i,!0);return o.length===0?!n&&Et(l)?l.value:l:Ut(l)?l.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!qt(n))return!1;const i=n.value;return i==null||t&&Et(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[n,...i]=t;if(i.length===0)return this.has(n);const o=this.get(n,!0);return Ut(o)?o.hasIn(i):!1}setIn(t,n){const[i,...o]=t;if(o.length===0)this.set(i,n);else{const l=this.get(i,!0);if(Ut(l))l.setIn(o,n);else if(l===void 0&&this.schema)this.set(i,Jc(this.schema,o,n));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}const x5=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function pi(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Ta=(e,t,n)=>e.endsWith(`
|
||
`)?pi(n,t):n.includes(`
|
||
`)?`
|
||
`+pi(n,t):(e.endsWith(" ")?"":" ")+n,qx="flow",dm="block",zc="quoted";function Df(e,t,n="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:l=20,onFold:u,onOverflow:f}={}){if(!o||o<0)return e;o<l&&(l=0);const d=Math.max(1+l,1+o-t.length);if(e.length<=d)return e;const p=[],m={};let g=o-t.length;typeof i=="number"&&(i>o-Math.max(2,l)?p.push(0):g=o-i);let v,b,w=!1,S=-1,k=-1,A=-1;n===dm&&(S=ZS(e,S,t.length),S!==-1&&(g=S+d));for(let _;_=e[S+=1];){if(n===zc&&_==="\\"){switch(k=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}A=S}if(_===`
|
||
`)n===dm&&(S=ZS(e,S,t.length)),g=S+t.length+d,v=void 0;else{if(_===" "&&b&&b!==" "&&b!==`
|
||
`&&b!==" "){const O=e[S+1];O&&O!==" "&&O!==`
|
||
`&&O!==" "&&(v=S)}if(S>=g)if(v)p.push(v),g=v+d,v=void 0;else if(n===zc){for(;b===" "||b===" ";)b=_,_=e[S+=1],w=!0;const O=S>A+1?S-2:k-1;if(m[O])return e;p.push(O),m[O]=!0,g=O+d,v=void 0}else w=!0}b=_}if(w&&f&&f(),p.length===0)return e;u&&u();let N=e.slice(0,p[0]);for(let _=0;_<p.length;++_){const O=p[_],R=p[_+1]||e.length;O===0?N=`
|
||
${t}${e.slice(0,R)}`:(n===zc&&m[O]&&(N+=`${e[O]}\\`),N+=`
|
||
${t}${e.slice(O+1,R)}`)}return N}function ZS(e,t,n){let i=t,o=t+1,l=e[o];for(;l===" "||l===" ";)if(t<o+n)l=e[++t];else{do l=e[++t];while(l&&l!==`
|
||
`);i=t,o=t+1,l=e[o]}return i}const Lf=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),zf=e=>/^(%|---|\.\.\.)/m.test(e);function C5(e,t,n){if(!t||t<0)return!1;const i=t-n,o=e.length;if(o<=i)return!1;for(let l=0,u=0;l<o;++l)if(e[l]===`
|
||
`){if(l-u>i)return!0;if(u=l+1,o-u<=i)return!1}return!0}function xl(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:i}=t,o=t.options.doubleQuotedMinMultiLineLength,l=t.indent||(zf(e)?" ":"");let u="",f=0;for(let d=0,p=n[d];p;p=n[++d])if(p===" "&&n[d+1]==="\\"&&n[d+2]==="n"&&(u+=n.slice(f,d)+"\\ ",d+=1,f=d,p="\\"),p==="\\")switch(n[d+1]){case"u":{u+=n.slice(f,d);const m=n.substr(d+2,4);switch(m){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:m.substr(0,2)==="00"?u+="\\x"+m.substr(2):u+=n.substr(d,6)}d+=5,f=d+1}break;case"n":if(i||n[d+2]==='"'||n.length<o)d+=1;else{for(u+=n.slice(f,d)+`
|
||
|
||
`;n[d+2]==="\\"&&n[d+3]==="n"&&n[d+4]!=='"';)u+=`
|
||
`,d+=2;u+=l,n[d+2]===" "&&(u+="\\"),d+=1,f=d+1}break;default:d+=1}return u=f?u+n.slice(f):n,i?u:Df(u,l,zc,Lf(t,!1))}function pm(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
||
`)||/[ \t]\n|\n[ \t]/.test(e))return xl(e,t);const n=t.indent||(zf(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
||
${n}`)+"'";return t.implicitKey?i:Df(i,n,qx,Lf(t,!1))}function Oo(e,t){const{singleQuote:n}=t.options;let i;if(n===!1)i=xl;else{const o=e.includes('"'),l=e.includes("'");o&&!l?i=pm:l&&!o?i=xl:i=n?pm:xl}return i(e,t)}let hm;try{hm=new RegExp(`(^|(?<!
|
||
))
|
||
+(?!
|
||
|$)`,"g")}catch{hm=/\n+(?!\n|$)/g}function Bc({comment:e,type:t,value:n},i,o,l){const{blockQuote:u,commentString:f,lineWidth:d}=i.options;if(!u||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Oo(n,i);const p=i.indent||(i.forceBlockIndent||zf(n)?" ":""),m=u==="literal"?!0:u==="folded"||t===Be.BLOCK_FOLDED?!1:t===Be.BLOCK_LITERAL?!0:!C5(n,d,p.length);if(!n)return m?`|
|
||
`:`>
|
||
`;let g,v;for(v=n.length;v>0;--v){const R=n[v-1];if(R!==`
|
||
`&&R!==" "&&R!==" ")break}let b=n.substring(v);const w=b.indexOf(`
|
||
`);w===-1?g="-":n===b||w!==b.length-1?(g="+",l&&l()):g="",b&&(n=n.slice(0,-b.length),b[b.length-1]===`
|
||
`&&(b=b.slice(0,-1)),b=b.replace(hm,`$&${p}`));let S=!1,k,A=-1;for(k=0;k<n.length;++k){const R=n[k];if(R===" ")S=!0;else if(R===`
|
||
`)A=k;else break}let N=n.substring(0,A<k?A+1:k);N&&(n=n.substring(N.length),N=N.replace(/\n+/g,`$&${p}`));let O=(S?p?"2":"1":"")+g;if(e&&(O+=" "+f(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!m){const R=n.replace(/\n+/g,`
|
||
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let M=!1;const B=Lf(i,!0);u!=="folded"&&t!==Be.BLOCK_FOLDED&&(B.onOverflow=()=>{M=!0});const I=Df(`${N}${R}${b}`,p,dm,B);if(!M)return`>${O}
|
||
${p}${I}`}return n=n.replace(/\n+/g,`$&${p}`),`|${O}
|
||
${p}${N}${n}${b}`}function k5(e,t,n,i){const{type:o,value:l}=e,{actualString:u,implicitKey:f,indent:d,indentStep:p,inFlow:m}=t;if(f&&l.includes(`
|
||
`)||m&&/[[\]{},]/.test(l))return Oo(l,t);if(!l||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l))return f||m||!l.includes(`
|
||
`)?Oo(l,t):Bc(e,t,n,i);if(!f&&!m&&o!==Be.PLAIN&&l.includes(`
|
||
`))return Bc(e,t,n,i);if(zf(l)){if(d==="")return t.forceBlockIndent=!0,Bc(e,t,n,i);if(f&&d===p)return Oo(l,t)}const g=l.replace(/\n+/g,`$&
|
||
${d}`);if(u){const v=S=>{var k;return S.default&&S.tag!=="tag:yaml.org,2002:str"&&((k=S.test)==null?void 0:k.test(g))},{compat:b,tags:w}=t.doc.schema;if(w.some(v)||b!=null&&b.some(v))return Oo(l,t)}return f?g:Df(g,d,qx,Lf(t,!1))}function bg(e,t,n,i){const{implicitKey:o,inFlow:l}=t,u=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:f}=e;f!==Be.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(f=Be.QUOTE_DOUBLE);const d=m=>{switch(m){case Be.BLOCK_FOLDED:case Be.BLOCK_LITERAL:return o||l?Oo(u.value,t):Bc(u,t,n,i);case Be.QUOTE_DOUBLE:return xl(u.value,t);case Be.QUOTE_SINGLE:return pm(u.value,t);case Be.PLAIN:return k5(u,t,n,i);default:return null}};let p=d(f);if(p===null){const{defaultKeyType:m,defaultStringType:g}=t.options,v=o&&m||g;if(p=d(v),p===null)throw new Error(`Unsupported default string type ${v}`)}return p}function Fx(e,t){const n=Object.assign({blockQuote:!0,commentString:x5,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(n.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:i,options:n}}function E5(e,t){var o;if(t.tag){const l=e.filter(u=>u.tag===t.tag);if(l.length>0)return l.find(u=>u.format===t.format)??l[0]}let n,i;if(Et(t)){i=t.value;let l=e.filter(u=>{var f;return(f=u.identify)==null?void 0:f.call(u,i)});if(l.length>1){const u=l.filter(f=>f.test);u.length>0&&(l=u)}n=l.find(u=>u.format===t.format)??l.find(u=>!u.format)}else i=t,n=e.find(l=>l.nodeClass&&i instanceof l.nodeClass);if(!n){const l=((o=i==null?void 0:i.constructor)==null?void 0:o.name)??typeof i;throw new Error(`Tag not resolved for ${l} value`)}return n}function T5(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],l=(Et(e)||Ut(e))&&e.anchor;l&&jx(l)&&(n.add(l),o.push(`&${l}`));const u=e.tag?e.tag:t.default?null:t.tag;return u&&o.push(i.directives.tagString(u)),o.join(" ")}function Ho(e,t,n,i){var d;if(qt(e))return e.toString(t,n,i);if(Jo(e)){if(t.doc.directives)return e.toString(t);if((d=t.resolvedAliases)!=null&&d.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const l=Ht(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=E5(t.doc.schema.tags,l));const u=T5(l,o,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);const f=typeof o.stringify=="function"?o.stringify(l,t,n,i):Et(l)?bg(l,t,n,i):l.toString(t,n,i);return u?Et(l)||f[0]==="{"||f[0]==="["?`${u} ${f}`:`${u}
|
||
${t.indent}${f}`:f}function A5({key:e,value:t},n,i,o){const{allNullValues:l,doc:u,indent:f,indentStep:d,options:{commentString:p,indentSeq:m,simpleKeys:g}}=n;let v=Ht(e)&&e.comment||null;if(g){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Ut(e)||!Ht(e)&&typeof e=="object"){const B="With simple keys, collection cannot be used as a key value";throw new Error(B)}}let b=!g&&(!e||v&&t==null&&!n.inFlow||Ut(e)||(Et(e)?e.type===Be.BLOCK_FOLDED||e.type===Be.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!b&&(g||!l),indent:f+d});let w=!1,S=!1,k=Ho(e,n,()=>w=!0,()=>S=!0);if(!b&&!n.inFlow&&k.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");b=!0}if(n.inFlow){if(l||t==null)return w&&i&&i(),k===""?"?":b?`? ${k}`:k}else if(l&&!g||t==null&&b)return k=`? ${k}`,v&&!w?k+=Ta(k,n.indent,p(v)):S&&o&&o(),k;w&&(v=null),b?(v&&(k+=Ta(k,n.indent,p(v))),k=`? ${k}
|
||
${f}:`):(k=`${k}:`,v&&(k+=Ta(k,n.indent,p(v))));let A,N,_;Ht(t)?(A=!!t.spaceBefore,N=t.commentBefore,_=t.comment):(A=!1,N=null,_=null,t&&typeof t=="object"&&(t=u.createNode(t))),n.implicitKey=!1,!b&&!v&&Et(t)&&(n.indentAtStart=k.length+1),S=!1,!m&&d.length>=2&&!n.inFlow&&!b&&Zl(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let O=!1;const R=Ho(t,n,()=>O=!0,()=>S=!0);let M=" ";if(v||A||N){if(M=A?`
|
||
`:"",N){const B=p(N);M+=`
|
||
${pi(B,n.indent)}`}R===""&&!n.inFlow?M===`
|
||
`&&(M=`
|
||
|
||
`):M+=`
|
||
${n.indent}`}else if(!b&&Ut(t)){const B=R[0],I=R.indexOf(`
|
||
`),P=I!==-1,E=n.inFlow??t.flow??t.items.length===0;if(P||!E){let j=!1;if(P&&(B==="&"||B==="!")){let U=R.indexOf(" ");B==="&"&&U!==-1&&U<I&&R[U+1]==="!"&&(U=R.indexOf(" ",U+1)),(U===-1||I<U)&&(j=!0)}j||(M=`
|
||
${n.indent}`)}}else(R===""||R[0]===`
|
||
`)&&(M="");return k+=M+R,n.inFlow?O&&i&&i():_&&!O?k+=Ta(k,n.indent,p(_)):S&&o&&o(),k}function _5(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const bc="<<",hi={identify:e=>e===bc||typeof e=="symbol"&&e.description===bc,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Be(Symbol(bc)),{addToJSMap:Vx}),stringify:()=>bc},R5=(e,t)=>(hi.identify(t)||Et(t)&&(!t.type||t.type===Be.PLAIN)&&hi.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===hi.tag&&n.default));function Vx(e,t,n){if(n=e&&Jo(n)?n.resolve(e.doc):n,Zl(n))for(const i of n.items)Sh(e,t,i);else if(Array.isArray(n))for(const i of n)Sh(e,t,i);else Sh(e,t,n)}function Sh(e,t,n){const i=e&&Jo(n)?n.resolve(e.doc):n;if(!Ql(i))throw new Error("Merge sources must be maps or map aliases");const o=i.toJSON(null,e,Map);for(const[l,u]of o)t instanceof Map?t.has(l)||t.set(l,u):t instanceof Set?t.add(l):Object.prototype.hasOwnProperty.call(t,l)||Object.defineProperty(t,l,{value:u,writable:!0,enumerable:!0,configurable:!0});return t}function Gx(e,t,{key:n,value:i}){if(Ht(n)&&n.addToJSMap)n.addToJSMap(e,t,i);else if(R5(e,n))Vx(e,t,i);else{const o=pr(n,"",e);if(t instanceof Map)t.set(o,pr(i,o,e));else if(t instanceof Set)t.add(o);else{const l=O5(n,o,e),u=pr(i,l,e);l in t?Object.defineProperty(t,l,{value:u,writable:!0,enumerable:!0,configurable:!0}):t[l]=u}}return t}function O5(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Ht(e)&&(n!=null&&n.doc)){const i=Fx(n.doc,{});i.anchors=new Set;for(const l of n.anchors.keys())i.anchors.add(l.anchor);i.inFlow=!0,i.inStringifyKey=!0;const o=e.toString(i);if(!n.mapKeyWarned){let l=JSON.stringify(o);l.length>40&&(l=l.substring(0,36)+'..."'),_5(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${l}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function vg(e,t,n){const i=Ll(e,void 0,n),o=Ll(t,void 0,n);return new kn(i,o)}class kn{constructor(t,n=null){Object.defineProperty(this,hr,{value:Ix}),this.key=t,this.value=n}clone(t){let{key:n,value:i}=this;return Ht(n)&&(n=n.clone(t)),Ht(i)&&(i=i.clone(t)),new kn(n,i)}toJSON(t,n){const i=n!=null&&n.mapAsMap?new Map:{};return Gx(n,i,this)}toString(t,n,i){return t!=null&&t.doc?A5(this,t,n,i):JSON.stringify(this)}}function Kx(e,t,n){return(t.inFlow??e.flow?N5:M5)(e,t,n)}function M5({comment:e,items:t},n,{blockItemPrefix:i,flowChars:o,itemIndent:l,onChompKeep:u,onComment:f}){const{indent:d,options:{commentString:p}}=n,m=Object.assign({},n,{indent:l,type:null});let g=!1;const v=[];for(let w=0;w<t.length;++w){const S=t[w];let k=null;if(Ht(S))!g&&S.spaceBefore&&v.push(""),ef(n,v,S.commentBefore,g),S.comment&&(k=S.comment);else if(qt(S)){const N=Ht(S.key)?S.key:null;N&&(!g&&N.spaceBefore&&v.push(""),ef(n,v,N.commentBefore,g))}g=!1;let A=Ho(S,m,()=>k=null,()=>g=!0);k&&(A+=Ta(A,l,p(k))),g&&k&&(g=!1),v.push(i+A)}let b;if(v.length===0)b=o.start+o.end;else{b=v[0];for(let w=1;w<v.length;++w){const S=v[w];b+=S?`
|
||
${d}${S}`:`
|
||
`}}return e?(b+=`
|
||
`+pi(p(e),d),f&&f()):g&&u&&u(),b}function N5({items:e},t,{flowChars:n,itemIndent:i}){const{indent:o,indentStep:l,flowCollectionPadding:u,options:{commentString:f}}=t;i+=l;const d=Object.assign({},t,{indent:i,inFlow:!0,type:null});let p=!1,m=0;const g=[];for(let w=0;w<e.length;++w){const S=e[w];let k=null;if(Ht(S))S.spaceBefore&&g.push(""),ef(t,g,S.commentBefore,!1),S.comment&&(k=S.comment);else if(qt(S)){const N=Ht(S.key)?S.key:null;N&&(N.spaceBefore&&g.push(""),ef(t,g,N.commentBefore,!1),N.comment&&(p=!0));const _=Ht(S.value)?S.value:null;_?(_.comment&&(k=_.comment),_.commentBefore&&(p=!0)):S.value==null&&(N!=null&&N.comment)&&(k=N.comment)}k&&(p=!0);let A=Ho(S,d,()=>k=null);w<e.length-1&&(A+=","),k&&(A+=Ta(A,i,f(k))),!p&&(g.length>m||A.includes(`
|
||
`))&&(p=!0),g.push(A),m=g.length}const{start:v,end:b}=n;if(g.length===0)return v+b;if(!p){const w=g.reduce((S,k)=>S+k.length+2,2);p=t.options.lineWidth>0&&w>t.options.lineWidth}if(p){let w=v;for(const S of g)w+=S?`
|
||
${l}${o}${S}`:`
|
||
`;return`${w}
|
||
${o}${b}`}else return`${v}${u}${g.join(" ")}${u}${b}`}function ef({indent:e,options:{commentString:t}},n,i,o){if(i&&o&&(i=i.replace(/^\n+/,"")),i){const l=pi(t(i),e);n.push(l.trimStart())}}function Aa(e,t){const n=Et(t)?t.value:t;for(const i of e)if(qt(i)&&(i.key===t||i.key===n||Et(i.key)&&i.key.value===n))return i}class dr extends Hx{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Fi,t),this.items=[]}static from(t,n,i){const{keepUndefined:o,replacer:l}=i,u=new this(t),f=(d,p)=>{if(typeof l=="function")p=l.call(n,d,p);else if(Array.isArray(l)&&!l.includes(d))return;(p!==void 0||o)&&u.items.push(vg(d,p,i))};if(n instanceof Map)for(const[d,p]of n)f(d,p);else if(n&&typeof n=="object")for(const d of Object.keys(n))f(d,n[d]);return typeof t.sortMapEntries=="function"&&u.items.sort(t.sortMapEntries),u}add(t,n){var u;let i;qt(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new kn(t,t==null?void 0:t.value):i=new kn(t.key,t.value);const o=Aa(this.items,i.key),l=(u=this.schema)==null?void 0:u.sortMapEntries;if(o){if(!n)throw new Error(`Key ${i.key} already set`);Et(o.value)&&Ux(i.value)?o.value.value=i.value:o.value=i.value}else if(l){const f=this.items.findIndex(d=>l(i,d)<0);f===-1?this.items.push(i):this.items.splice(f,0,i)}else this.items.push(i)}delete(t){const n=Aa(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const i=Aa(this.items,t),o=i==null?void 0:i.value;return(!n&&Et(o)?o.value:o)??void 0}has(t){return!!Aa(this.items,t)}set(t,n){this.add(new kn(t,n),!0)}toJSON(t,n,i){const o=i?new i:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(o);for(const l of this.items)Gx(n,o,l);return o}toString(t,n,i){if(!t)return JSON.stringify(this);for(const o of this.items)if(!qt(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Kx(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:n})}}const es={collection:"map",default:!0,nodeClass:dr,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ql(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>dr.from(e,t,n)};class Oa extends Hx{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Zo,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=vc(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const i=vc(t);if(typeof i!="number")return;const o=this.items[i];return!n&&Et(o)?o.value:o}has(t){const n=vc(t);return typeof n=="number"&&n<this.items.length}set(t,n){const i=vc(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[i];Et(o)&&Ux(n)?o.value=n:this.items[i]=n}toJSON(t,n){const i=[];n!=null&&n.onCreate&&n.onCreate(i);let o=0;for(const l of this.items)i.push(pr(l,String(o++),n));return i}toString(t,n,i){return t?Kx(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:n}):JSON.stringify(this)}static from(t,n,i){const{replacer:o}=i,l=new this(t);if(n&&Symbol.iterator in Object(n)){let u=0;for(let f of n){if(typeof o=="function"){const d=n instanceof Set?f:String(u++);f=o.call(n,d,f)}l.items.push(Ll(f,void 0,i))}}return l}}function vc(e){let t=Et(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ts={collection:"seq",default:!0,nodeClass:Oa,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Zl(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Oa.from(e,t,n)},Bf={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,i){return t=Object.assign({actualString:!0},t),bg(e,t,n,i)}},If={identify:e=>e==null,createNode:()=>new Be(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Be(null),stringify:({source:e},t)=>typeof e=="string"&&If.test.test(e)?e:t.options.nullStr},Sg={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Be(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Sg.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?n.options.trueStr:n.options.falseStr}};function Tr({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i=="bigint")return String(i);const o=typeof i=="number"?i:Number(i);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let l=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(l)){let u=l.indexOf(".");u<0&&(u=l.length,l+=".");let f=t-(l.length-u-1);for(;f-- >0;)l+="0"}return l}const Yx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Tr},Xx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Tr(e)}},Wx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Be(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Tr},jf=e=>typeof e=="bigint"||Number.isInteger(e),wg=(e,t,n,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),n);function Qx(e,t,n){const{value:i}=e;return jf(i)&&i>=0?n+i.toString(t):Tr(e)}const Zx={identify:e=>jf(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>wg(e,2,8,n),stringify:e=>Qx(e,8,"0o")},Jx={identify:jf,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>wg(e,0,10,n),stringify:Tr},eC={identify:e=>jf(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>wg(e,2,16,n),stringify:e=>Qx(e,16,"0x")},D5=[es,ts,Bf,If,Sg,Zx,Jx,eC,Yx,Xx,Wx];function JS(e){return typeof e=="bigint"||Number.isInteger(e)}const Sc=({value:e})=>JSON.stringify(e),L5=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Sc},{identify:e=>e==null,createNode:()=>new Be(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Sc},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Sc},{identify:JS,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>JS(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Sc}],z5={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},B5=[es,ts].concat(L5,z5),xg={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},i,o,l){const u=n;let f;if(typeof btoa=="function"){let d="";for(let p=0;p<u.length;++p)d+=String.fromCharCode(u[p]);f=btoa(d)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Be.BLOCK_LITERAL),t!==Be.QUOTE_DOUBLE){const d=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),p=Math.ceil(f.length/d),m=new Array(p);for(let g=0,v=0;g<p;++g,v+=d)m[g]=f.substr(v,d);f=m.join(t===Be.BLOCK_LITERAL?`
|
||
`:" ")}return bg({comment:e,type:t,value:f},i,o,l)}};function tC(e,t){if(Zl(e))for(let n=0;n<e.items.length;++n){let i=e.items[n];if(!qt(i)){if(Ql(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const o=i.items[0]||new kn(new Be(null));if(i.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${i.commentBefore}
|
||
${o.key.commentBefore}`:i.commentBefore),i.comment){const l=o.value??o.key;l.comment=l.comment?`${i.comment}
|
||
${l.comment}`:i.comment}i=o}e.items[n]=qt(i)?i:new kn(i)}}else t("Expected a sequence for this tag");return e}function nC(e,t,n){const{replacer:i}=n,o=new Oa(e);o.tag="tag:yaml.org,2002:pairs";let l=0;if(t&&Symbol.iterator in Object(t))for(let u of t){typeof i=="function"&&(u=i.call(t,String(l++),u));let f,d;if(Array.isArray(u))if(u.length===2)f=u[0],d=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const p=Object.keys(u);if(p.length===1)f=p[0],d=u[f];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else f=u;o.items.push(vg(f,d,n))}return o}const Cg={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:tC,createNode:nC};class Bo extends Oa{constructor(){super(),this.add=dr.prototype.add.bind(this),this.delete=dr.prototype.delete.bind(this),this.get=dr.prototype.get.bind(this),this.has=dr.prototype.has.bind(this),this.set=dr.prototype.set.bind(this),this.tag=Bo.tag}toJSON(t,n){if(!n)return super.toJSON(t);const i=new Map;n!=null&&n.onCreate&&n.onCreate(i);for(const o of this.items){let l,u;if(qt(o)?(l=pr(o.key,"",n),u=pr(o.value,l,n)):l=pr(o,"",n),i.has(l))throw new Error("Ordered maps must not include duplicate keys");i.set(l,u)}return i}static from(t,n,i){const o=nC(t,n,i),l=new this;return l.items=o.items,l}}Bo.tag="tag:yaml.org,2002:omap";const kg={collection:"seq",identify:e=>e instanceof Map,nodeClass:Bo,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=tC(e,t),i=[];for(const{key:o}of n.items)Et(o)&&(i.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):i.push(o.value));return Object.assign(new Bo,n)},createNode:(e,t,n)=>Bo.from(e,t,n)};function rC({value:e,source:t},n){return t&&(e?iC:aC).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const iC={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Be(!0),stringify:rC},aC={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Be(!1),stringify:rC},I5={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Tr},j5={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Tr(e)}},$5={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Be(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const i=e.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:Tr},Jl=e=>typeof e=="bigint"||Number.isInteger(e);function $f(e,t,n,{intAsBigInt:i}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const u=BigInt(e);return o==="-"?BigInt(-1)*u:u}const l=parseInt(e,n);return o==="-"?-1*l:l}function Eg(e,t,n){const{value:i}=e;if(Jl(i)){const o=i.toString(t);return i<0?"-"+n+o.substr(1):n+o}return Tr(e)}const P5={identify:Jl,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>$f(e,2,2,n),stringify:e=>Eg(e,2,"0b")},U5={identify:Jl,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>$f(e,1,8,n),stringify:e=>Eg(e,8,"0")},H5={identify:Jl,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>$f(e,0,10,n),stringify:Tr},q5={identify:Jl,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>$f(e,2,16,n),stringify:e=>Eg(e,16,"0x")};class Io extends dr{constructor(t){super(t),this.tag=Io.tag}add(t){let n;qt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new kn(t.key,null):n=new kn(t,null),Aa(this.items,n.key)||this.items.push(n)}get(t,n){const i=Aa(this.items,t);return!n&&qt(i)?Et(i.key)?i.key.value:i.key:i}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const i=Aa(this.items,t);i&&!n?this.items.splice(this.items.indexOf(i),1):!i&&n&&this.items.push(new kn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,i);throw new Error("Set items must all have null values")}static from(t,n,i){const{replacer:o}=i,l=new this(t);if(n&&Symbol.iterator in Object(n))for(let u of n)typeof o=="function"&&(u=o.call(n,u,u)),l.items.push(vg(u,null,i));return l}}Io.tag="tag:yaml.org,2002:set";const Tg={collection:"map",identify:e=>e instanceof Set,nodeClass:Io,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Io.from(e,t,n),resolve(e,t){if(Ql(e)){if(e.hasAllNullValues(!0))return Object.assign(new Io,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Ag(e,t){const n=e[0],i=n==="-"||n==="+"?e.substring(1):e,o=u=>t?BigInt(u):Number(u),l=i.replace(/_/g,"").split(":").reduce((u,f)=>u*o(60)+o(f),o(0));return n==="-"?o(-1)*l:l}function oC(e){let{value:t}=e,n=u=>u;if(typeof t=="bigint")n=u=>BigInt(u);else if(isNaN(t)||!isFinite(t))return Tr(e);let i="";t<0&&(i="-",t*=n(-1));const o=n(60),l=[t%o];return t<60?l.unshift(0):(t=(t-l[0])/o,l.unshift(t%o),t>=60&&(t=(t-l[0])/o,l.unshift(t))),i+l.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const sC={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Ag(e,n),stringify:oC},lC={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Ag(e,!1),stringify:oC},Pf={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Pf.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,o,l,u,f]=t.map(Number),d=t[7]?Number((t[7]+"00").substr(1,3)):0;let p=Date.UTC(n,i-1,o,l||0,u||0,f||0,d);const m=t[8];if(m&&m!=="Z"){let g=Ag(m,!1);Math.abs(g)<30&&(g*=60),p-=6e4*g}return new Date(p)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},e1=[es,ts,Bf,If,iC,aC,P5,U5,H5,q5,I5,j5,$5,xg,hi,kg,Cg,Tg,sC,lC,Pf],t1=new Map([["core",D5],["failsafe",[es,ts,Bf]],["json",B5],["yaml11",e1],["yaml-1.1",e1]]),n1={binary:xg,bool:Sg,float:Wx,floatExp:Xx,floatNaN:Yx,floatTime:lC,int:Jx,intHex:eC,intOct:Zx,intTime:sC,map:es,merge:hi,null:If,omap:kg,pairs:Cg,seq:ts,set:Tg,timestamp:Pf},F5={"tag:yaml.org,2002:binary":xg,"tag:yaml.org,2002:merge":hi,"tag:yaml.org,2002:omap":kg,"tag:yaml.org,2002:pairs":Cg,"tag:yaml.org,2002:set":Tg,"tag:yaml.org,2002:timestamp":Pf};function wh(e,t,n){const i=t1.get(t);if(i&&!e)return n&&!i.includes(hi)?i.concat(hi):i.slice();let o=i;if(!o)if(Array.isArray(e))o=[];else{const l=Array.from(t1.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${l} or define customTags array`)}if(Array.isArray(e))for(const l of e)o=o.concat(l);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(hi)),o.reduce((l,u)=>{const f=typeof u=="string"?n1[u]:u;if(!f){const d=JSON.stringify(u),p=Object.keys(n1).map(m=>JSON.stringify(m)).join(", ");throw new Error(`Unknown custom tag ${d}; use one of ${p}`)}return l.includes(f)||l.push(f),l},[])}const V5=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;let G5=class uC{constructor({compat:t,customTags:n,merge:i,resolveKnownTags:o,schema:l,sortMapEntries:u,toStringDefaults:f}){this.compat=Array.isArray(t)?wh(t,"compat"):t?wh(null,t):null,this.name=typeof l=="string"&&l||"core",this.knownTags=o?F5:{},this.tags=wh(n,this.name,i),this.toStringOptions=f??null,Object.defineProperty(this,Fi,{value:es}),Object.defineProperty(this,Vr,{value:Bf}),Object.defineProperty(this,Zo,{value:ts}),this.sortMapEntries=typeof u=="function"?u:u===!0?V5:null}clone(){const t=Object.create(uC.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function K5(e,t){var d;const n=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const p=e.directives.toString(e);p?(n.push(p),i=!0):e.directives.docStart&&(i=!0)}i&&n.push("---");const o=Fx(e,t),{commentString:l}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const p=l(e.commentBefore);n.unshift(pi(p,""))}let u=!1,f=null;if(e.contents){if(Ht(e.contents)){if(e.contents.spaceBefore&&i&&n.push(""),e.contents.commentBefore){const g=l(e.contents.commentBefore);n.push(pi(g,""))}o.forceBlockIndent=!!e.comment,f=e.contents.comment}const p=f?void 0:()=>u=!0;let m=Ho(e.contents,o,()=>f=null,p);f&&(m+=Ta(m,"",l(f))),(m[0]==="|"||m[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${m}`:n.push(m)}else n.push(Ho(e.contents,o));if((d=e.directives)!=null&&d.docEnd)if(e.comment){const p=l(e.comment);p.includes(`
|
||
`)?(n.push("..."),n.push(pi(p,""))):n.push(`... ${p}`)}else n.push("...");else{let p=e.comment;p&&u&&(p=p.replace(/^\n+/,"")),p&&((!u||f)&&n[n.length-1]!==""&&n.push(""),n.push(pi(l(p),"")))}return n.join(`
|
||
`)+`
|
||
`}class qo{constructor(t,n,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,hr,{value:fm});let o=null;typeof n=="function"||Array.isArray(n)?o=n:i===void 0&&n&&(i=n,n=void 0);const l=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=l;let{version:u}=l;i!=null&&i._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new Cn({version:u}),this.setSchema(u,i),this.contents=t===void 0?null:this.createNode(t,o,i)}clone(){const t=Object.create(qo.prototype,{[hr]:{value:fm}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Ht(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Co(this.contents)&&this.contents.add(t)}addIn(t,n){Co(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const i=$x(this);t.anchor=!n||i.has(n)?Px(n||"a",i):n}return new yg(t.anchor)}createNode(t,n,i){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const k=N=>typeof N=="number"||N instanceof String||N instanceof Number,A=n.filter(k).map(String);A.length>0&&(n=n.concat(A)),o=n}else i===void 0&&n&&(i=n,n=void 0);const{aliasDuplicateObjects:l,anchorPrefix:u,flow:f,keepUndefined:d,onTagObj:p,tag:m}=i??{},{onAnchor:g,setAnchors:v,sourceObjects:b}=v5(this,u||"a"),w={aliasDuplicateObjects:l??!0,keepUndefined:d??!1,onAnchor:g,onTagObj:p,replacer:o,schema:this.schema,sourceObjects:b},S=Ll(t,m,w);return f&&Ut(S)&&(S.flow=!0),v(),S}createPair(t,n,i={}){const o=this.createNode(t,null,i),l=this.createNode(n,null,i);return new kn(o,l)}delete(t){return Co(this.contents)?this.contents.delete(t):!1}deleteIn(t){return pl(t)?this.contents==null?!1:(this.contents=null,!0):Co(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Ut(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return pl(t)?!n&&Et(this.contents)?this.contents.value:this.contents:Ut(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Ut(this.contents)?this.contents.has(t):!1}hasIn(t){return pl(t)?this.contents!==void 0:Ut(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Jc(this.schema,[t],n):Co(this.contents)&&this.contents.set(t,n)}setIn(t,n){pl(t)?this.contents=n:this.contents==null?this.contents=Jc(this.schema,Array.from(t),n):Co(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Cn({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Cn({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(i)this.schema=new G5(Object.assign(i,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:i,maxAliasCount:o,onAnchor:l,reviver:u}={}){const f={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},d=pr(this.contents,n??"",f);if(typeof l=="function")for(const{count:p,res:m}of f.anchors.values())l(m,p);return typeof u=="function"?Ro(u,{"":d},"",d):d}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return K5(this,t)}}function Co(e){if(Ut(e))return!0;throw new Error("Expected a YAML collection as document contents")}class cC extends Error{constructor(t,n,i,o){super(),this.name=t,this.code=i,this.message=o,this.pos=n}}class hl extends cC{constructor(t,n,i){super("YAMLParseError",t,n,i)}}class Y5 extends cC{constructor(t,n,i){super("YAMLWarning",t,n,i)}}const r1=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(f=>t.linePos(f));const{line:i,col:o}=n.linePos[0];n.message+=` at line ${i}, column ${o}`;let l=o-1,u=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(l>=60&&u.length>80){const f=Math.min(l-39,u.length-79);u="…"+u.substring(f),l-=f-1}if(u.length>80&&(u=u.substring(0,79)+"…"),i>1&&/^ *$/.test(u.substring(0,l))){let f=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);f.length>80&&(f=f.substring(0,79)+`…
|
||
`),u=f+u}if(/[^ ]/.test(u)){let f=1;const d=n.linePos[1];d&&d.line===i&&d.col>o&&(f=Math.max(1,Math.min(d.col-o,80-l)));const p=" ".repeat(l)+"^".repeat(f);n.message+=`:
|
||
|
||
${u}
|
||
${p}
|
||
`}};function Fo(e,{flow:t,indicator:n,next:i,offset:o,onError:l,parentIndent:u,startOnNewline:f}){let d=!1,p=f,m=f,g="",v="",b=!1,w=!1,S=null,k=null,A=null,N=null,_=null,O=null,R=null;for(const I of e)switch(w&&(I.type!=="space"&&I.type!=="newline"&&I.type!=="comma"&&l(I.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),w=!1),S&&(p&&I.type!=="comment"&&I.type!=="newline"&&l(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),I.type){case"space":!t&&(n!=="doc-start"||(i==null?void 0:i.type)!=="flow-collection")&&I.source.includes(" ")&&(S=I),m=!0;break;case"comment":{m||l(I,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const P=I.source.substring(1)||" ";g?g+=v+P:g=P,v="",p=!1;break}case"newline":p?g?g+=I.source:(!O||n!=="seq-item-ind")&&(d=!0):v+=I.source,p=!0,b=!0,(k||A)&&(N=I),m=!0;break;case"anchor":k&&l(I,"MULTIPLE_ANCHORS","A node can have at most one anchor"),I.source.endsWith(":")&&l(I.offset+I.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),k=I,R===null&&(R=I.offset),p=!1,m=!1,w=!0;break;case"tag":{A&&l(I,"MULTIPLE_TAGS","A node can have at most one tag"),A=I,R===null&&(R=I.offset),p=!1,m=!1,w=!0;break}case n:(k||A)&&l(I,"BAD_PROP_ORDER",`Anchors and tags must be after the ${I.source} indicator`),O&&l(I,"UNEXPECTED_TOKEN",`Unexpected ${I.source} in ${t??"collection"}`),O=I,p=n==="seq-item-ind"||n==="explicit-key-ind",m=!1;break;case"comma":if(t){_&&l(I,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),_=I,p=!1,m=!1;break}default:l(I,"UNEXPECTED_TOKEN",`Unexpected ${I.type} token`),p=!1,m=!1}const M=e[e.length-1],B=M?M.offset+M.source.length:o;return w&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&l(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=u||(i==null?void 0:i.type)==="block-map"||(i==null?void 0:i.type)==="block-seq")&&l(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_,found:O,spaceBefore:d,comment:g,hasNewline:b,anchor:k,tag:A,newlineAfterProp:N,end:B,start:R??B}}function zl(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
||
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(zl(t.key)||zl(t.value))return!0}return!1;default:return!0}}function mm(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&zl(t)&&n(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function fC(e,t,n){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const o=typeof i=="function"?i:(l,u)=>l===u||Et(l)&&Et(u)&&l.value===u.value;return t.some(l=>o(l.key,n))}const i1="All mapping items must start at the same column";function X5({composeNode:e,composeEmptyNode:t},n,i,o,l){var m;const u=(l==null?void 0:l.nodeClass)??dr,f=new u(n.schema);n.atRoot&&(n.atRoot=!1);let d=i.offset,p=null;for(const g of i.items){const{start:v,key:b,sep:w,value:S}=g,k=Fo(v,{indicator:"explicit-key-ind",next:b??(w==null?void 0:w[0]),offset:d,onError:o,parentIndent:i.indent,startOnNewline:!0}),A=!k.found;if(A){if(b&&(b.type==="block-seq"?o(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in b&&b.indent!==i.indent&&o(d,"BAD_INDENT",i1)),!k.anchor&&!k.tag&&!w){p=k.end,k.comment&&(f.comment?f.comment+=`
|
||
`+k.comment:f.comment=k.comment);continue}(k.newlineAfterProp||zl(b))&&o(b??v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((m=k.found)==null?void 0:m.indent)!==i.indent&&o(d,"BAD_INDENT",i1);n.atKey=!0;const N=k.end,_=b?e(n,b,k,o):t(n,N,v,null,k,o);n.schema.compat&&mm(i.indent,b,o),n.atKey=!1,fC(n,f.items,_)&&o(N,"DUPLICATE_KEY","Map keys must be unique");const O=Fo(w??[],{indicator:"map-value-ind",next:S,offset:_.range[2],onError:o,parentIndent:i.indent,startOnNewline:!b||b.type==="block-scalar"});if(d=O.end,O.found){A&&((S==null?void 0:S.type)==="block-map"&&!O.hasNewline&&o(d,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&k.start<O.found.offset-1024&&o(_.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const R=S?e(n,S,O,o):t(n,d,w,null,O,o);n.schema.compat&&mm(i.indent,S,o),d=R.range[2];const M=new kn(_,R);n.options.keepSourceTokens&&(M.srcToken=g),f.items.push(M)}else{A&&o(_.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),O.comment&&(_.comment?_.comment+=`
|
||
`+O.comment:_.comment=O.comment);const R=new kn(_);n.options.keepSourceTokens&&(R.srcToken=g),f.items.push(R)}}return p&&p<d&&o(p,"IMPOSSIBLE","Map comment with trailing content"),f.range=[i.offset,d,p??d],f}function W5({composeNode:e,composeEmptyNode:t},n,i,o,l){const u=(l==null?void 0:l.nodeClass)??Oa,f=new u(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=i.offset,p=null;for(const{start:m,value:g}of i.items){const v=Fo(m,{indicator:"seq-item-ind",next:g,offset:d,onError:o,parentIndent:i.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)g&&g.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(d,"MISSING_CHAR","Sequence item without - indicator");else{p=v.end,v.comment&&(f.comment=v.comment);continue}const b=g?e(n,g,v,o):t(n,v.end,m,null,v,o);n.schema.compat&&mm(i.indent,g,o),d=b.range[2],f.items.push(b)}return f.range=[i.offset,d,p??d],f}function eu(e,t,n,i){let o="";if(e){let l=!1,u="";for(const f of e){const{source:d,type:p}=f;switch(p){case"space":l=!0;break;case"comment":{n&&!l&&i(f,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const m=d.substring(1)||" ";o?o+=u+m:o=m,u="";break}case"newline":o&&(u+=d),l=!0;break;default:i(f,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}t+=d.length}}return{comment:o,offset:t}}const xh="Block collections are not allowed within flow collections",Ch=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Q5({composeNode:e,composeEmptyNode:t},n,i,o,l){const u=i.start.source==="{",f=u?"flow map":"flow sequence",d=(l==null?void 0:l.nodeClass)??(u?dr:Oa),p=new d(n.schema);p.flow=!0;const m=n.atRoot;m&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let g=i.offset+i.start.source.length;for(let k=0;k<i.items.length;++k){const A=i.items[k],{start:N,key:_,sep:O,value:R}=A,M=Fo(N,{flow:f,indicator:"explicit-key-ind",next:_??(O==null?void 0:O[0]),offset:g,onError:o,parentIndent:i.indent,startOnNewline:!1});if(!M.found){if(!M.anchor&&!M.tag&&!O&&!R){k===0&&M.comma?o(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${f}`):k<i.items.length-1&&o(M.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${f}`),M.comment&&(p.comment?p.comment+=`
|
||
`+M.comment:p.comment=M.comment),g=M.end;continue}!u&&n.options.strict&&zl(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(k===0)M.comma&&o(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${f}`);else if(M.comma||o(M.start,"MISSING_CHAR",`Missing , between ${f} items`),M.comment){let B="";e:for(const I of N)switch(I.type){case"comma":case"space":break;case"comment":B=I.source.substring(1);break e;default:break e}if(B){let I=p.items[p.items.length-1];qt(I)&&(I=I.value??I.key),I.comment?I.comment+=`
|
||
`+B:I.comment=B,M.comment=M.comment.substring(B.length+1)}}if(!u&&!O&&!M.found){const B=R?e(n,R,M,o):t(n,M.end,O,null,M,o);p.items.push(B),g=B.range[2],Ch(R)&&o(B.range,"BLOCK_IN_FLOW",xh)}else{n.atKey=!0;const B=M.end,I=_?e(n,_,M,o):t(n,B,N,null,M,o);Ch(_)&&o(I.range,"BLOCK_IN_FLOW",xh),n.atKey=!1;const P=Fo(O??[],{flow:f,indicator:"map-value-ind",next:R,offset:I.range[2],onError:o,parentIndent:i.indent,startOnNewline:!1});if(P.found){if(!u&&!M.found&&n.options.strict){if(O)for(const U of O){if(U===P.found)break;if(U.type==="newline"){o(U,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}M.start<P.found.offset-1024&&o(P.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else R&&("source"in R&&R.source&&R.source[0]===":"?o(R,"MISSING_CHAR",`Missing space after : in ${f}`):o(P.start,"MISSING_CHAR",`Missing , or : between ${f} items`));const E=R?e(n,R,P,o):P.found?t(n,P.end,O,null,P,o):null;E?Ch(R)&&o(E.range,"BLOCK_IN_FLOW",xh):P.comment&&(I.comment?I.comment+=`
|
||
`+P.comment:I.comment=P.comment);const j=new kn(I,E);if(n.options.keepSourceTokens&&(j.srcToken=A),u){const U=p;fC(n,U.items,I)&&o(B,"DUPLICATE_KEY","Map keys must be unique"),U.items.push(j)}else{const U=new dr(n.schema);U.flow=!0,U.items.push(j);const G=(E??I).range;U.range=[I.range[0],G[1],G[2]],p.items.push(U)}g=E?E.range[2]:P.end}}const v=u?"}":"]",[b,...w]=i.end;let S=g;if(b&&b.source===v)S=b.offset+b.source.length;else{const k=f[0].toUpperCase()+f.substring(1),A=m?`${k} must end with a ${v}`:`${k} in block collection must be sufficiently indented and end with a ${v}`;o(g,m?"MISSING_CHAR":"BAD_INDENT",A),b&&b.source.length!==1&&w.unshift(b)}if(w.length>0){const k=eu(w,S,n.options.strict,o);k.comment&&(p.comment?p.comment+=`
|
||
`+k.comment:p.comment=k.comment),p.range=[i.offset,S,k.offset]}else p.range=[i.offset,S,S];return p}function kh(e,t,n,i,o,l){const u=n.type==="block-map"?X5(e,t,n,i,l):n.type==="block-seq"?W5(e,t,n,i,l):Q5(e,t,n,i,l),f=u.constructor;return o==="!"||o===f.tagName?(u.tag=f.tagName,u):(o&&(u.tag=o),u)}function Z5(e,t,n,i,o){var v;const l=i.tag,u=l?t.directives.tagName(l.source,b=>o(l,"TAG_RESOLVE_FAILED",b)):null;if(n.type==="block-seq"){const{anchor:b,newlineAfterProp:w}=i,S=b&&l?b.offset>l.offset?b:l:b??l;S&&(!w||w.offset<S.offset)&&o(S,"MISSING_CHAR","Missing newline after block sequence props")}const f=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!l||!u||u==="!"||u===dr.tagName&&f==="map"||u===Oa.tagName&&f==="seq")return kh(e,t,n,o,u);let d=t.schema.tags.find(b=>b.tag===u&&b.collection===f);if(!d){const b=t.schema.knownTags[u];if(b&&b.collection===f)t.schema.tags.push(Object.assign({},b,{default:!1})),d=b;else return b!=null&&b.collection?o(l,"BAD_COLLECTION_TYPE",`${b.tag} used for ${f} collection, but expects ${b.collection}`,!0):o(l,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),kh(e,t,n,o,u)}const p=kh(e,t,n,o,u,d),m=((v=d.resolve)==null?void 0:v.call(d,p,b=>o(l,"TAG_RESOLVE_FAILED",b),t.options))??p,g=Ht(m)?m:new Be(m);return g.range=p.range,g.tag=u,d!=null&&d.format&&(g.format=d.format),g}function J5(e,t,n){const i=t.offset,o=ez(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[i,i,i]};const l=o.mode===">"?Be.BLOCK_FOLDED:Be.BLOCK_LITERAL,u=t.source?tz(t.source):[];let f=u.length;for(let S=u.length-1;S>=0;--S){const k=u[S][1];if(k===""||k==="\r")f=S;else break}if(f===0){const S=o.chomp==="+"&&u.length>0?`
|
||
`.repeat(Math.max(1,u.length-1)):"";let k=i+o.length;return t.source&&(k+=t.source.length),{value:S,type:l,comment:o.comment,range:[i,k,k]}}let d=t.indent+o.indent,p=t.offset+o.length,m=0;for(let S=0;S<f;++S){const[k,A]=u[S];if(A===""||A==="\r")o.indent===0&&k.length>d&&(d=k.length);else{k.length<d&&n(p+k.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(d=k.length),m=S,d===0&&!e.atRoot&&n(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=k.length+A.length+1}for(let S=u.length-1;S>=f;--S)u[S][0].length>d&&(f=S+1);let g="",v="",b=!1;for(let S=0;S<m;++S)g+=u[S][0].slice(d)+`
|
||
`;for(let S=m;S<f;++S){let[k,A]=u[S];p+=k.length+A.length+1;const N=A[A.length-1]==="\r";if(N&&(A=A.slice(0,-1)),A&&k.length<d){const O=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(p-A.length-(N?2:1),"BAD_INDENT",O),k=""}l===Be.BLOCK_LITERAL?(g+=v+k.slice(d)+A,v=`
|
||
`):k.length>d||A[0]===" "?(v===" "?v=`
|
||
`:!b&&v===`
|
||
`&&(v=`
|
||
|
||
`),g+=v+k.slice(d)+A,v=`
|
||
`,b=!0):A===""?v===`
|
||
`?g+=`
|
||
`:v=`
|
||
`:(g+=v+A,v=" ",b=!1)}switch(o.chomp){case"-":break;case"+":for(let S=f;S<u.length;++S)g+=`
|
||
`+u[S][0].slice(d);g[g.length-1]!==`
|
||
`&&(g+=`
|
||
`);break;default:g+=`
|
||
`}const w=i+o.length+t.source.length;return{value:g,type:l,comment:o.comment,range:[i,w,w]}}function ez({offset:e,props:t},n,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],l=o[0];let u=0,f="",d=-1;for(let v=1;v<o.length;++v){const b=o[v];if(!f&&(b==="-"||b==="+"))f=b;else{const w=Number(b);!u&&w?u=w:d===-1&&(d=e+v)}}d!==-1&&i(d,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let p=!1,m="",g=o.length;for(let v=1;v<t.length;++v){const b=t[v];switch(b.type){case"space":p=!0;case"newline":g+=b.source.length;break;case"comment":n&&!p&&i(b,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=b.source.length,m=b.source.substring(1);break;case"error":i(b,"UNEXPECTED_TOKEN",b.message),g+=b.source.length;break;default:{const w=`Unexpected token in block scalar header: ${b.type}`;i(b,"UNEXPECTED_TOKEN",w);const S=b.source;S&&typeof S=="string"&&(g+=S.length)}}}return{mode:l,indent:u,chomp:f,comment:m,length:g}}function tz(e){const t=e.split(/\n( *)/),n=t[0],i=n.match(/^( *)/),l=[i!=null&&i[1]?[i[1],n.slice(i[1].length)]:["",n]];for(let u=1;u<t.length;u+=2)l.push([t[u],t[u+1]]);return l}function nz(e,t,n){const{offset:i,type:o,source:l,end:u}=e;let f,d;const p=(v,b,w)=>n(i+v,b,w);switch(o){case"scalar":f=Be.PLAIN,d=rz(l,p);break;case"single-quoted-scalar":f=Be.QUOTE_SINGLE,d=iz(l,p);break;case"double-quoted-scalar":f=Be.QUOTE_DOUBLE,d=az(l,p);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+l.length,i+l.length]}}const m=i+l.length,g=eu(u,m,t,n);return{value:d,type:f,comment:g.comment,range:[i,m,g.offset]}}function rz(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),dC(e)}function iz(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),dC(e.slice(1,-1)).replace(/''/g,"'")}function dC(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
||
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
||
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let o=i[1],l=" ",u=t.lastIndex;for(n.lastIndex=u;i=n.exec(e);)i[1]===""?l===`
|
||
`?o+=l:l=`
|
||
`:(o+=l+i[1],l=" "),u=n.lastIndex;const f=/[ \t]*(.*)/sy;return f.lastIndex=u,i=f.exec(e),o+l+((i==null?void 0:i[1])??"")}function az(e,t){let n="";for(let i=1;i<e.length-1;++i){const o=e[i];if(!(o==="\r"&&e[i+1]===`
|
||
`))if(o===`
|
||
`){const{fold:l,offset:u}=oz(e,i);n+=l,i=u}else if(o==="\\"){let l=e[++i];const u=sz[l];if(u)n+=u;else if(l===`
|
||
`)for(l=e[i+1];l===" "||l===" ";)l=e[++i+1];else if(l==="\r"&&e[i+1]===`
|
||
`)for(l=e[++i+1];l===" "||l===" ";)l=e[++i+1];else if(l==="x"||l==="u"||l==="U"){const f={x:2,u:4,U:8}[l];n+=lz(e,i+1,f,t),i+=f}else{const f=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${f}`),n+=f}}else if(o===" "||o===" "){const l=i;let u=e[i+1];for(;u===" "||u===" ";)u=e[++i+1];u!==`
|
||
`&&!(u==="\r"&&e[i+2]===`
|
||
`)&&(n+=i>l?e.slice(l,i+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function oz(e,t){let n="",i=e[t+1];for(;(i===" "||i===" "||i===`
|
||
`||i==="\r")&&!(i==="\r"&&e[t+2]!==`
|
||
`);)i===`
|
||
`&&(n+=`
|
||
`),t+=1,i=e[t+1];return n||(n=" "),{fold:n,offset:t}}const sz={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
||
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function lz(e,t,n,i){const o=e.substr(t,n),u=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const f=e.substr(t-2,n+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${f}`),f}return String.fromCodePoint(u)}function pC(e,t,n,i){const{value:o,type:l,comment:u,range:f}=t.type==="block-scalar"?J5(e,t,i):nz(t,e.options.strict,i),d=n?e.directives.tagName(n.source,g=>i(n,"TAG_RESOLVE_FAILED",g)):null;let p;e.options.stringKeys&&e.atKey?p=e.schema[Vr]:d?p=uz(e.schema,o,d,n,i):t.type==="scalar"?p=cz(e,o,t,i):p=e.schema[Vr];let m;try{const g=p.resolve(o,v=>i(n??t,"TAG_RESOLVE_FAILED",v),e.options);m=Et(g)?g:new Be(g)}catch(g){const v=g instanceof Error?g.message:String(g);i(n??t,"TAG_RESOLVE_FAILED",v),m=new Be(o)}return m.range=f,m.source=o,l&&(m.type=l),d&&(m.tag=d),p.format&&(m.format=p.format),u&&(m.comment=u),m}function uz(e,t,n,i,o){var f;if(n==="!")return e[Vr];const l=[];for(const d of e.tags)if(!d.collection&&d.tag===n)if(d.default&&d.test)l.push(d);else return d;for(const d of l)if((f=d.test)!=null&&f.test(t))return d;const u=e.knownTags[n];return u&&!u.collection?(e.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Vr])}function cz({atKey:e,directives:t,schema:n},i,o,l){const u=n.tags.find(f=>{var d;return(f.default===!0||e&&f.default==="key")&&((d=f.test)==null?void 0:d.test(i))})||n[Vr];if(n.compat){const f=n.compat.find(d=>{var p;return d.default&&((p=d.test)==null?void 0:p.test(i))})??n[Vr];if(u.tag!==f.tag){const d=t.tagString(u.tag),p=t.tagString(f.tag),m=`Value may be parsed as either ${d} or ${p}`;l(o,"TAG_RESOLVE_FAILED",m,!0)}}return u}function fz(e,t,n){if(t){n===null&&(n=t.length);for(let i=n-1;i>=0;--i){let o=t[i];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++i];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++i];break}}return e}const dz={composeNode:hC,composeEmptyNode:_g};function hC(e,t,n,i){const o=e.atKey,{spaceBefore:l,comment:u,anchor:f,tag:d}=n;let p,m=!0;switch(t.type){case"alias":p=pz(e,t,i),(f||d)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=pC(e,t,d,i),f&&(p.anchor=f.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=Z5(dz,e,t,n,i),f&&(p.anchor=f.source.substring(1));break;default:{const g=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",g),p=_g(e,t.offset,void 0,null,n,i),m=!1}}return f&&p.anchor===""&&i(f,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!Et(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&i(d??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),l&&(p.spaceBefore=!0),u&&(t.type==="scalar"&&t.source===""?p.comment=u:p.commentBefore=u),e.options.keepSourceTokens&&m&&(p.srcToken=t),p}function _g(e,t,n,i,{spaceBefore:o,comment:l,anchor:u,tag:f,end:d},p){const m={type:"scalar",offset:fz(t,n,i),indent:-1,source:""},g=pC(e,m,f,p);return u&&(g.anchor=u.source.substring(1),g.anchor===""&&p(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(g.spaceBefore=!0),l&&(g.comment=l,g.range[2]=d),g}function pz({options:e},{offset:t,source:n,end:i},o){const l=new yg(n.substring(1));l.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),l.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=t+n.length,f=eu(i,u,e.strict,o);return l.range=[t,u,f.offset],f.comment&&(l.comment=f.comment),l}function hz(e,t,{offset:n,start:i,value:o,end:l},u){const f=Object.assign({_directives:t},e),d=new qo(void 0,f),p={atKey:!1,atRoot:!0,directives:d.directives,options:d.options,schema:d.schema},m=Fo(i,{indicator:"doc-start",next:o??(l==null?void 0:l[0]),offset:n,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(d.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!m.hasNewline&&u(m.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),d.contents=o?hC(p,o,m,u):_g(p,m.end,i,null,m,u);const g=d.contents.range[2],v=eu(l,g,!1,u);return v.comment&&(d.comment=v.comment),d.range=[n,g,v.offset],d}function ol(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function a1(e){var o;let t="",n=!1,i=!1;for(let l=0;l<e.length;++l){const u=e[l];switch(u[0]){case"#":t+=(t===""?"":i?`
|
||
|
||
`:`
|
||
`)+(u.substring(1)||" "),n=!0,i=!1;break;case"%":((o=e[l+1])==null?void 0:o[0])!=="#"&&(l+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}class mz{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,i,o,l)=>{const u=ol(n);l?this.warnings.push(new Y5(u,i,o)):this.errors.push(new hl(u,i,o))},this.directives=new Cn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:i,afterEmptyLine:o}=a1(this.prelude);if(i){const l=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
||
${i}`:i;else if(o||t.directives.docStart||!l)t.commentBefore=i;else if(Ut(l)&&!l.flow&&l.items.length>0){let u=l.items[0];qt(u)&&(u=u.key);const f=u.commentBefore;u.commentBefore=f?`${i}
|
||
${f}`:i}else{const u=l.commentBefore;l.commentBefore=u?`${i}
|
||
${u}`:i}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:a1(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,i=-1){for(const o of t)yield*this.next(o);yield*this.end(n,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,i,o)=>{const l=ol(t);l[0]+=n,this.onError(l,"BAD_DIRECTIVE",i,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=hz(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new hl(ol(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new hl(ol(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const n=eu(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
|
||
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new hl(ol(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),o=new qo(void 0,i);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const mC="\uFEFF",gC="",yC="",gm="";function gz(e){switch(e){case mC:return"byte-order-mark";case gC:return"doc-mode";case yC:return"flow-error-end";case gm:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
||
`:case`\r
|
||
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Sr(e){switch(e){case void 0:case" ":case`
|
||
`:case"\r":case" ":return!0;default:return!1}}const o1=new Set("0123456789ABCDEFabcdef"),yz=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),wc=new Set(",[]{}"),bz=new Set(` ,[]{}
|
||
\r `),Eh=e=>!e||bz.has(e);class vz{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let i=this.next??"stream";for(;i&&(n||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
||
`?!0:n==="\r"?this.buffer[t+1]===`
|
||
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let i=0;for(;n===" ";)n=this.buffer[++i+t];if(n==="\r"){const o=this.buffer[i+t+1];if(o===`
|
||
`||!o&&!this.atEnd)return t+i+1}return n===`
|
||
`||i>=this.indentNext||!n&&!this.atEnd?t+i:-1}if(n==="-"||n==="."){const i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&Sr(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
||
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===mC&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,i=t.indexOf("#");for(;i!==-1;){const l=t[i-1];if(l===" "||l===" "){n=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const l=t[n-1];if(l===" "||l===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield gC,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Sr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Sr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Sr(n)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Eh),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,i=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=i=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&o[0]!=="#"||i===0&&(o.startsWith("---")||o.startsWith("..."))&&Sr(o[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield yC,yield*this.parseLineStart();let l=0;for(;o[l]===",";)l+=yield*this.pushCount(1),l+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(l+=yield*this.pushIndicators(),o[l]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-l),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Eh),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||Sr(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let l=0;for(;this.buffer[n-1-l]==="\\";)l+=1;if(l%2===0)break;n=this.buffer.indexOf('"',n+1)}const i=this.buffer.substring(0,n);let o=i.indexOf(`
|
||
`,this.pos);if(o!==-1){for(;o!==-1;){const l=this.continueScalar(o+1);if(l===-1)break;o=i.indexOf(`
|
||
`,l)}o!==-1&&(n=o-(i[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Sr(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,i;e:for(let l=this.pos;i=this.buffer[l];++l)switch(i){case" ":n+=1;break;case`
|
||
`:t=l,n=0;break;case"\r":{const u=this.buffer[l+1];if(!u&&!this.atEnd)return this.setNext("block-scalar");if(u===`
|
||
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const l=this.continueScalar(t+1);if(l===-1)break;t=this.buffer.indexOf(`
|
||
`,l)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(i=this.buffer[o];i===" ";)i=this.buffer[++o];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
|
||
`;)i=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let l=t-1,u=this.buffer[l];u==="\r"&&(u=this.buffer[--l]);const f=l;for(;u===" ";)u=this.buffer[--l];if(u===`
|
||
`&&l>=this.pos&&l+1+n>f)t=l;else break}while(!0);return yield gm,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===":"){const l=this.buffer[i+1];if(Sr(l)||t&&wc.has(l))break;n=i}else if(Sr(o)){let l=this.buffer[i+1];if(o==="\r"&&(l===`
|
||
`?(i+=1,o=`
|
||
`,l=this.buffer[i+1]):n=i),l==="#"||t&&wc.has(l))break;if(o===`
|
||
`){const u=this.continueScalar(i+1);if(u===-1)break;i=Math.max(i,u-2)}}else{if(t&&wc.has(o))break;n=i}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield gm,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Eh))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Sr(n)||t&&wc.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Sr(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(yz.has(n))n=this.buffer[++t];else if(n==="%"&&o1.has(this.buffer[t+1])&&o1.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
||
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
||
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,i;do i=this.buffer[++n];while(i===" "||t&&i===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,i=this.buffer[n];for(;!t(i);)i=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Sz{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,i=this.lineStarts.length;for(;n<i;){const l=n+i>>1;this.lineStarts[l]<t?n=l+1:i=l}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function Ca(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function s1(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function bC(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function xc(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function ko(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function l1(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Ca(t.start,"explicit-key-ind")&&!Ca(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,bC(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class wz{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new vz,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,n))yield*this.next(i);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=gz(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const i=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in i?i.indent:0:n.type==="flow-collection"&&i.type==="document"&&(n.indent=0),n.type==="flow-collection"&&l1(n),i.type){case"document":i.value=n;break;case"block-scalar":i.props.push(n);break;case"block-map":{const o=i.items[i.items.length-1];if(o.value){i.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=i.items[i.items.length-1];o.value?i.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=i.items[i.items.length-1];!o||o.value?i.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&s1(o.start)===-1&&(n.indent===0||o.start.every(l=>l.type!=="comment"||l.indent<n.indent))&&(i.type==="document"?i.end=o.start:i.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{s1(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=xc(this.peek(2)),i=ko(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
||
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
||
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var i;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,l=Array.isArray(o)?o[o.length-1]:void 0;(l==null?void 0:l.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],l=(i=o==null?void 0:o.value)==null?void 0:i.end;if(Array.isArray(l)){Array.prototype.push.apply(l,n.start),l.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent,l=o&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let u=[];if(l&&n.sep&&!n.value){const f=[];for(let d=0;d<n.sep.length;++d){const p=n.sep[d];switch(p.type){case"newline":f.push(d);break;case"space":break;case"comment":p.indent>t.indent&&(f.length=0);break;default:f.length=0}}f.length>=2&&(u=n.sep.splice(f[1]))}switch(this.type){case"anchor":case"tag":l||n.value?(u.push(this.sourceToken),t.items.push({start:u}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):l||n.value?(u.push(this.sourceToken),t.items.push({start:u,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ca(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]});else if(bC(n.key)&&!Ca(n.sep,"newline")){const f=ko(n.start),d=n.key,p=n.sep;p.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:d,sep:p}]})}else u.length>0?n.sep=n.sep.concat(u,this.sourceToken):n.sep.push(this.sourceToken);else if(Ca(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const f=ko(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||l?t.items.push({start:u,key:null,sep:[this.sourceToken]}):Ca(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const f=this.flowScalar(this.type);l||n.value?(t.items.push({start:u,key:f,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(f):(Object.assign(n,{key:f,sep:[]}),this.onKeyLine=!0);return}default:{const f=this.startBlockValue(t);if(f){o&&f.type!=="block-seq"&&t.items.push({start:u}),this.stack.push(f);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var i;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,l=Array.isArray(o)?o[o.length-1]:void 0;(l==null?void 0:l.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],l=(i=o==null?void 0:o.value)==null?void 0:i.end;if(Array.isArray(l)){Array.prototype.push.apply(l,n.start),l.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Ca(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const o=xc(i),l=ko(o);l1(t);const u=t.end.splice(1,t.end.length);u.push(this.sourceToken);const f={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:l,key:t,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=f}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
||
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
||
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=xc(t),i=ko(n);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=xc(t),i=ko(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function xz(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Sz||null,prettyErrors:t}}function Cz(e,t={}){const{lineCounter:n,prettyErrors:i}=xz(t),o=new wz(n==null?void 0:n.addNewLine),l=new mz(t);let u=null;for(const f of l.compose(o.parse(e),!0,e.length))if(!u)u=f;else if(u.options.logLevel!=="silent"){u.errors.push(new hl(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&n&&(u.errors.forEach(r1(e,n)),u.warnings.forEach(r1(e,n))),u}function kz(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ez=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tz=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Az={};function u1(e,t){return(Az.jsx?Tz:Ez).test(e)}const _z=/[ \t\n\f\r]/g;function Rz(e){return typeof e=="object"?e.type==="text"?c1(e.value):!1:c1(e)}function c1(e){return e.replace(_z,"")===""}class tu{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}tu.prototype.normal={};tu.prototype.property={};tu.prototype.space=void 0;function vC(e,t){const n={},i={};for(const o of e)Object.assign(n,o.property),Object.assign(i,o.normal);return new tu(n,i,t)}function ym(e){return e.toLowerCase()}class In{constructor(t,n){this.attribute=n,this.property=t}}In.prototype.attribute="";In.prototype.booleanish=!1;In.prototype.boolean=!1;In.prototype.commaOrSpaceSeparated=!1;In.prototype.commaSeparated=!1;In.prototype.defined=!1;In.prototype.mustUseProperty=!1;In.prototype.number=!1;In.prototype.overloadedBoolean=!1;In.prototype.property="";In.prototype.spaceSeparated=!1;In.prototype.space=void 0;let Oz=0;const je=Na(),Xt=Na(),SC=Na(),pe=Na(),Ct=Na(),jo=Na(),Vn=Na();function Na(){return 2**++Oz}const bm=Object.freeze(Object.defineProperty({__proto__:null,boolean:je,booleanish:Xt,commaOrSpaceSeparated:Vn,commaSeparated:jo,number:pe,overloadedBoolean:SC,spaceSeparated:Ct},Symbol.toStringTag,{value:"Module"})),Th=Object.keys(bm);class Rg extends In{constructor(t,n,i,o){let l=-1;if(super(t,n),f1(this,"space",o),typeof i=="number")for(;++l<Th.length;){const u=Th[l];f1(this,Th[l],(i&bm[u])===bm[u])}}}Rg.prototype.defined=!0;function f1(e,t,n){n&&(e[t]=n)}function ns(e){const t={},n={};for(const[i,o]of Object.entries(e.properties)){const l=new Rg(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[ym(i)]=i,n[ym(l.attribute)]=i}return new tu(t,n,e.space)}const wC=ns({properties:{ariaActiveDescendant:null,ariaAtomic:Xt,ariaAutoComplete:null,ariaBusy:Xt,ariaChecked:Xt,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:Ct,ariaCurrent:null,ariaDescribedBy:Ct,ariaDetails:null,ariaDisabled:Xt,ariaDropEffect:Ct,ariaErrorMessage:null,ariaExpanded:Xt,ariaFlowTo:Ct,ariaGrabbed:Xt,ariaHasPopup:null,ariaHidden:Xt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ct,ariaLevel:pe,ariaLive:null,ariaModal:Xt,ariaMultiLine:Xt,ariaMultiSelectable:Xt,ariaOrientation:null,ariaOwns:Ct,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Xt,ariaReadOnly:Xt,ariaRelevant:null,ariaRequired:Xt,ariaRoleDescription:Ct,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Xt,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xC(e,t){return t in e?e[t]:t}function CC(e,t){return xC(e,t.toLowerCase())}const Mz=ns({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jo,acceptCharset:Ct,accessKey:Ct,action:null,allow:null,allowFullScreen:je,allowPaymentRequest:je,allowUserMedia:je,alt:null,as:null,async:je,autoCapitalize:null,autoComplete:Ct,autoFocus:je,autoPlay:je,blocking:Ct,capture:null,charSet:null,checked:je,cite:null,className:Ct,cols:pe,colSpan:null,content:null,contentEditable:Xt,controls:je,controlsList:Ct,coords:pe|jo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:je,defer:je,dir:null,dirName:null,disabled:je,download:SC,draggable:Xt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:je,formTarget:null,headers:Ct,height:pe,hidden:je,high:pe,href:null,hrefLang:null,htmlFor:Ct,httpEquiv:Ct,id:null,imageSizes:null,imageSrcSet:null,inert:je,inputMode:null,integrity:null,is:null,isMap:je,itemId:null,itemProp:Ct,itemRef:Ct,itemScope:je,itemType:Ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:je,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:je,muted:je,name:null,nonce:null,noModule:je,noValidate:je,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:je,optimum:pe,pattern:null,ping:Ct,placeholder:null,playsInline:je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:je,referrerPolicy:null,rel:Ct,required:je,reversed:je,rows:pe,rowSpan:pe,sandbox:Ct,scope:null,scoped:je,seamless:je,selected:je,shadowRootClonable:je,shadowRootDelegatesFocus:je,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Xt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:je,useMap:null,value:Xt,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ct,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:je,declare:je,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:je,noHref:je,noShade:je,noWrap:je,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Xt,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:je,disableRemotePlayback:je,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:CC}),Nz=ns({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:Vn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:Ct,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:je,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jo,g2:jo,glyphName:jo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:Vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vn,rev:Vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vn,requiredFeatures:Vn,requiredFonts:Vn,requiredFormats:Vn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:Vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xC}),kC=ns({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()}}),EC=ns({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:CC}),TC=ns({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Dz={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"},Lz=/[A-Z]/g,d1=/-[a-z]/g,zz=/^data[-\w.:]+$/i;function Bz(e,t){const n=ym(t);let i=t,o=In;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&zz.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(d1,jz);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!d1.test(l)){let u=l.replace(Lz,Iz);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=Rg}return new o(i,t)}function Iz(e){return"-"+e.toLowerCase()}function jz(e){return e.charAt(1).toUpperCase()}const $z=vC([wC,Mz,kC,EC,TC],"html"),Og=vC([wC,Nz,kC,EC,TC],"svg");function Pz(e){return e.join(" ").trim()}var Eo={},Ah,p1;function Uz(){if(p1)return Ah;p1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
|
||
`,p="/",m="*",g="",v="comment",b="declaration";Ah=function(S,k){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];k=k||{};var A=1,N=1;function _(G){var Y=G.match(t);Y&&(A+=Y.length);var V=G.lastIndexOf(d);N=~V?G.length-V:N+G.length}function O(){var G={line:A,column:N};return function(Y){return Y.position=new R(G),I(),Y}}function R(G){this.start=G,this.end={line:A,column:N},this.source=k.source}R.prototype.content=S;function M(G){var Y=new Error(k.source+":"+A+":"+N+": "+G);if(Y.reason=G,Y.filename=k.source,Y.line=A,Y.column=N,Y.source=S,!k.silent)throw Y}function B(G){var Y=G.exec(S);if(Y){var V=Y[0];return _(V),S=S.slice(V.length),Y}}function I(){B(n)}function P(G){var Y;for(G=G||[];Y=E();)Y!==!1&&G.push(Y);return G}function E(){var G=O();if(!(p!=S.charAt(0)||m!=S.charAt(1))){for(var Y=2;g!=S.charAt(Y)&&(m!=S.charAt(Y)||p!=S.charAt(Y+1));)++Y;if(Y+=2,g===S.charAt(Y-1))return M("End of comment missing");var V=S.slice(2,Y-2);return N+=2,_(V),S=S.slice(Y),N+=2,G({type:v,comment:V})}}function j(){var G=O(),Y=B(i);if(Y){if(E(),!B(o))return M("property missing ':'");var V=B(l),H=G({type:b,property:w(Y[0].replace(e,g)),value:V?w(V[0].replace(e,g)):g});return B(u),H}}function U(){var G=[];P(G);for(var Y;Y=j();)Y!==!1&&(G.push(Y),P(G));return G}return I(),U()};function w(S){return S?S.replace(f,g):g}return Ah}var h1;function Hz(){if(h1)return Eo;h1=1;var e=Eo&&Eo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=n;var t=e(Uz());function n(i,o){var l=null;if(!i||typeof i!="string")return l;var u=(0,t.default)(i),f=typeof o=="function";return u.forEach(function(d){if(d.type==="declaration"){var p=d.property,m=d.value;f?o(p,m,d):m&&(l=l||{},l[p]=m)}}),l}return Eo}var qz=Hz();const m1=rf(qz),Fz=m1.default||m1,AC=_C("end"),Mg=_C("start");function _C(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Vz(e){const t=Mg(e),n=AC(e);if(t&&n)return{start:t,end:n}}function Cl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?g1(e.position):"start"in e||"end"in e?g1(e):"line"in e||"column"in e?vm(e):""}function vm(e){return y1(e&&e.line)+":"+y1(e&&e.column)}function g1(e){return vm(e&&e.start)+"-"+vm(e&&e.end)}function y1(e){return e&&typeof e=="number"?e:1}class vn extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let o="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?o=t:!l.cause&&t&&(u=!0,o=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?l.ruleId=i:(l.source=i.slice(0,d),l.ruleId=i.slice(d+1))}if(!l.place&&l.ancestors&&l.ancestors){const d=l.ancestors[l.ancestors.length-1];d&&(l.place=d.position)}const f=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=f?f.line:void 0,this.name=Cl(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}vn.prototype.file="";vn.prototype.name="";vn.prototype.reason="";vn.prototype.message="";vn.prototype.stack="";vn.prototype.column=void 0;vn.prototype.line=void 0;vn.prototype.ancestors=void 0;vn.prototype.cause=void 0;vn.prototype.fatal=void 0;vn.prototype.place=void 0;vn.prototype.ruleId=void 0;vn.prototype.source=void 0;const Ng={}.hasOwnProperty,Gz=new Map,Kz=/[A-Z]/g,Yz=/-([a-z])/g,Xz=new Set(["table","tbody","thead","tfoot","tr"]),Wz=new Set(["td","th"]),RC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Qz(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=aB(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=iB(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Og:$z,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=OC(o,e,void 0);return l&&typeof l!="string"?l:o.create(e,o.Fragment,{children:l||void 0},void 0)}function OC(e,t,n){if(t.type==="element")return Zz(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Jz(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return tB(e,t,n);if(t.type==="mdxjsEsm")return eB(e,t);if(t.type==="root")return nB(e,t,n);if(t.type==="text")return rB(e,t)}function Zz(e,t,n){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=Og,e.schema=o),e.ancestors.push(t);const l=NC(e,t.tagName,!1),u=oB(e,t);let f=Lg(e,t);return Xz.has(t.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!Rz(d):!0})),MC(e,u,l,t),Dg(u,f),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function Jz(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Bl(e,t.position)}function eB(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Bl(e,t.position)}function tB(e,t,n){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=Og,e.schema=o),e.ancestors.push(t);const l=t.name===null?e.Fragment:NC(e,t.name,!0),u=sB(e,t),f=Lg(e,t);return MC(e,u,l,t),Dg(u,f),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function nB(e,t,n){const i={};return Dg(i,Lg(e,t)),e.create(t,e.Fragment,i,n)}function rB(e,t){return t.value}function MC(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Dg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function iB(e,t,n){return i;function i(o,l,u,f){const p=Array.isArray(u.children)?n:t;return f?p(l,u,f):p(l,u)}}function aB(e,t){return n;function n(i,o,l,u){const f=Array.isArray(l.children),d=Mg(i);return t(o,l,u,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function oB(e,t){const n={};let i,o;for(o in t.properties)if(o!=="children"&&Ng.call(t.properties,o)){const l=lB(e,o,t.properties[o]);if(l){const[u,f]=l;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&Wz.has(t.tagName)?i=f:n[u]=f}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function sB(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const u=l.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else Bl(e,t.position);else{const o=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,l=e.evaluater.evaluateExpression(f.expression)}else Bl(e,t.position);else l=i.value===null?!0:i.value;n[o]=l}return n}function Lg(e,t){const n=[];let i=-1;const o=e.passKeys?new Map:Gz;for(;++i<t.children.length;){const l=t.children[i];let u;if(e.passKeys){const d=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(d){const p=o.get(d)||0;u=d+"-"+p,o.set(d,p+1)}}const f=OC(e,l,u);f!==void 0&&n.push(f)}return n}function lB(e,t,n){const i=Bz(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?kz(n):Pz(n)),i.property==="style"){let o=typeof n=="object"?n:uB(e,String(n));return e.stylePropertyNameCase==="css"&&(o=cB(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?Dz[i.property]||i.property:i.attribute,n]}}function uB(e,t){const n={};try{Fz(t,i)}catch(o){if(!e.ignoreInvalidStyle){const l=o,u=new vn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=e.filePath||void 0,u.url=RC+"#cannot-parse-style-attribute",u}}return n;function i(o,l){let u=o;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(Yz,dB)),n[u]=l}}function NC(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let l=-1,u;for(;++l<o.length;){const f=u1(o[l])?{type:"Identifier",name:o[l]}:{type:"Literal",value:o[l]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(l&&f.type==="Literal"),optional:!1}:f}i=u}else i=u1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return Ng.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Bl(e)}function Bl(e,t){const n=new vn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=RC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function cB(e){const t={};let n;for(n in e)Ng.call(e,n)&&(t[fB(n)]=e[n]);return t}function fB(e){let t=e.replace(Kz,pB);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function dB(e,t){return t.toUpperCase()}function pB(e){return"-"+e.toLowerCase()}const _h={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"]},hB={};function mB(e,t){const n=hB,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DC(e,i,o)}function DC(e,t,n){if(gB(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return b1(e.children,t,n)}return Array.isArray(e)?b1(e,t,n):""}function b1(e,t,n){const i=[];let o=-1;for(;++o<e.length;)i[o]=DC(e[o],t,n);return i.join("")}function gB(e){return!!(e&&typeof e=="object")}const v1=document.createElement("i");function zg(e){const t="&"+e+";";v1.innerHTML=t;const n=v1.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Gr(e,t,n,i){const o=e.length;let l=0,u;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<i.length;)u=i.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function fr(e,t){return e.length>0?(Gr(e,e.length,0,t),e):t}const S1={}.hasOwnProperty;function yB(e){const t={};let n=-1;for(;++n<e.length;)bB(t,e[n]);return t}function bB(e,t){let n;for(n in t){const o=(S1.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){S1.call(o,u)||(o[u]=[]);const f=l[u];vB(o[u],Array.isArray(f)?f:f?[f]:[])}}}function vB(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Gr(e,0,0,i)}function LC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"<22>":String.fromCodePoint(n)}function $o(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hr=Xi(/[A-Za-z]/),Kn=Xi(/[\dA-Za-z]/),SB=Xi(/[#-'*+\--9=?A-Z^-~]/);function Sm(e){return e!==null&&(e<32||e===127)}const wm=Xi(/\d/),wB=Xi(/[\dA-Fa-f]/),xB=Xi(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function Ln(e){return e!==null&&(e<0||e===32)}function ut(e){return e===-2||e===-1||e===32}const CB=Xi(new RegExp("\\p{P}|\\p{S}","u")),kB=Xi(/\s/);function Xi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rs(e){const t=[];let n=-1,i=0,o=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&Kn(e.charCodeAt(n+1))&&Kn(e.charCodeAt(n+2)))o=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const f=e.charCodeAt(n+1);l<56320&&f>56319&&f<57344?(u=String.fromCharCode(l,f),o=1):u="<22>"}else u=String.fromCharCode(l);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+o+1,u=""),o&&(n+=o,o=0)}return t.join("")+e.slice(i)}function kt(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(d){return ut(d)?(e.enter(n),f(d)):t(d)}function f(d){return ut(d)&&l++<o?(e.consume(d),f):(e.exit(n),t(d))}}const EB={tokenize:TB};function TB(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),kt(e,t,"linePrefix")}function o(f){return e.enter("paragraph"),l(f)}function l(f){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Le(f)?(e.consume(f),e.exit("chunkText"),l):(e.consume(f),u)}}const AB={tokenize:_B},w1={tokenize:RB};function _B(e){const t=this,n=[];let i=0,o,l,u;return f;function f(_){if(i<n.length){const O=n[i];return t.containerState=O[1],e.attempt(O[0].continuation,d,p)(_)}return p(_)}function d(_){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&N();const O=t.events.length;let R=O,M;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){M=t.events[R][1].end;break}A(i);let B=O;for(;B<t.events.length;)t.events[B][1].end={...M},B++;return Gr(t.events,R+1,0,t.events.slice(O)),t.events.length=B,p(_)}return f(_)}function p(_){if(i===n.length){if(!o)return v(_);if(o.currentConstruct&&o.currentConstruct.concrete)return w(_);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(w1,m,g)(_)}function m(_){return o&&N(),A(i),v(_)}function g(_){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,w(_)}function v(_){return t.containerState={},e.attempt(w1,b,w)(_)}function b(_){return i++,n.push([t.currentConstruct,t.containerState]),v(_)}function w(_){if(_===null){o&&N(),A(0),e.consume(_);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:l}),S(_)}function S(_){if(_===null){k(e.exit("chunkFlow"),!0),A(0),e.consume(_);return}return Le(_)?(e.consume(_),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(_),S)}function k(_,O){const R=t.sliceStream(_);if(O&&R.push(null),_.previous=l,l&&(l.next=_),l=_,o.defineSkip(_.start),o.write(R),t.parser.lazy[_.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<u&&(!o.events[M][1].end||o.events[M][1].end.offset>u))return;const B=t.events.length;let I=B,P,E;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(P){E=t.events[I][1].end;break}P=!0}for(A(i),M=B;M<t.events.length;)t.events[M][1].end={...E},M++;Gr(t.events,I+1,0,t.events.slice(B)),t.events.length=M}}function A(_){let O=n.length;for(;O-- >_;){const R=n[O];t.containerState=R[1],R[0].exit.call(t,e)}n.length=_}function N(){o.write([null]),l=void 0,o=void 0,t.containerState._closeFlow=void 0}}function RB(e,t,n){return kt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function x1(e){if(e===null||Ln(e)||kB(e))return 1;if(CB(e))return 2}function Bg(e,t,n){const i=[];let o=-1;for(;++o<e.length;){const l=e[o].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const xm={name:"attention",resolveAll:OB,tokenize:MB};function OB(e,t){let n=-1,i,o,l,u,f,d,p,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[i][1].end},v={...e[n][1].start};C1(g,-d),C1(v,d),u={type:d>1?"strongSequence":"emphasisSequence",start:g,end:{...e[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},l={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:d>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[n][1].start={...f.end},p=[],e[i][1].end.offset-e[i][1].start.offset&&(p=fr(p,[["enter",e[i][1],t],["exit",e[i][1],t]])),p=fr(p,[["enter",o,t],["enter",u,t],["exit",u,t],["enter",l,t]]),p=fr(p,Bg(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),p=fr(p,[["exit",l,t],["enter",f,t],["exit",f,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,p=fr(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Gr(e,i-1,n-i+3,p),n=i+p.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function MB(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,o=x1(i);let l;return u;function u(d){return l=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===l)return e.consume(d),f;const p=e.exit("attentionSequence"),m=x1(d),g=!m||m===2&&o||n.includes(d),v=!o||o===2&&m||n.includes(i);return p._open=!!(l===42?g:g&&(o||!v)),p._close=!!(l===42?v:v&&(m||!g)),t(d)}}function C1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const NB={name:"autolink",tokenize:DB};function DB(e,t,n){let i=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(b){return Hr(b)?(e.consume(b),u):b===64?n(b):p(b)}function u(b){return b===43||b===45||b===46||Kn(b)?(i=1,f(b)):p(b)}function f(b){return b===58?(e.consume(b),i=0,d):(b===43||b===45||b===46||Kn(b))&&i++<32?(e.consume(b),f):(i=0,p(b))}function d(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||Sm(b)?n(b):(e.consume(b),d)}function p(b){return b===64?(e.consume(b),m):SB(b)?(e.consume(b),p):n(b)}function m(b){return Kn(b)?g(b):n(b)}function g(b){return b===46?(e.consume(b),i=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||Kn(b))&&i++<63){const w=b===45?v:g;return e.consume(b),w}return n(b)}}const Uf={partial:!0,tokenize:LB};function LB(e,t,n){return i;function i(l){return ut(l)?kt(e,o,"linePrefix")(l):o(l)}function o(l){return l===null||Le(l)?t(l):n(l)}}const zC={continuation:{tokenize:BB},exit:IB,name:"blockQuote",tokenize:zB};function zB(e,t,n){const i=this;return o;function o(u){if(u===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return ut(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function BB(e,t,n){const i=this;return o;function o(u){return ut(u)?kt(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(zC,t,n)(u)}}function IB(e){e.exit("blockQuote")}const BC={name:"characterEscape",tokenize:jB};function jB(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),o}function o(l){return xB(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const IC={name:"characterReference",tokenize:$B};function $B(e,t,n){const i=this;let o=0,l,u;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),l=31,u=Kn,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=wB,m):(e.enter("characterReferenceValue"),l=7,u=wm,m(g))}function m(g){if(g===59&&o){const v=e.exit("characterReferenceValue");return u===Kn&&!zg(i.sliceSerialize(v))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&o++<l?(e.consume(g),m):n(g)}}const k1={partial:!0,tokenize:UB},E1={concrete:!0,name:"codeFenced",tokenize:PB};function PB(e,t,n){const i=this,o={partial:!0,tokenize:R};let l=0,u=0,f;return d;function d(M){return p(M)}function p(M){const B=i.events[i.events.length-1];return l=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,f=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(M)}function m(M){return M===f?(u++,e.consume(M),m):u<3?n(M):(e.exit("codeFencedFenceSequence"),ut(M)?kt(e,g,"whitespace")(M):g(M))}function g(M){return M===null||Le(M)?(e.exit("codeFencedFence"),i.interrupt?t(M):e.check(k1,S,O)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(M))}function v(M){return M===null||Le(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(M)):ut(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),kt(e,b,"whitespace")(M)):M===96&&M===f?n(M):(e.consume(M),v)}function b(M){return M===null||Le(M)?g(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(M))}function w(M){return M===null||Le(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(M)):M===96&&M===f?n(M):(e.consume(M),w)}function S(M){return e.attempt(o,O,k)(M)}function k(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),A}function A(M){return l>0&&ut(M)?kt(e,N,"linePrefix",l+1)(M):N(M)}function N(M){return M===null||Le(M)?e.check(k1,S,O)(M):(e.enter("codeFlowValue"),_(M))}function _(M){return M===null||Le(M)?(e.exit("codeFlowValue"),N(M)):(e.consume(M),_)}function O(M){return e.exit("codeFenced"),t(M)}function R(M,B,I){let P=0;return E;function E(V){return M.enter("lineEnding"),M.consume(V),M.exit("lineEnding"),j}function j(V){return M.enter("codeFencedFence"),ut(V)?kt(M,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):U(V)}function U(V){return V===f?(M.enter("codeFencedFenceSequence"),G(V)):I(V)}function G(V){return V===f?(P++,M.consume(V),G):P>=u?(M.exit("codeFencedFenceSequence"),ut(V)?kt(M,Y,"whitespace")(V):Y(V)):I(V)}function Y(V){return V===null||Le(V)?(M.exit("codeFencedFence"),B(V)):I(V)}}}function UB(e,t,n){const i=this;return o;function o(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const Rh={name:"codeIndented",tokenize:qB},HB={partial:!0,tokenize:FB};function qB(e,t,n){const i=this;return o;function o(p){return e.enter("codeIndented"),kt(e,l,"linePrefix",5)(p)}function l(p){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):n(p)}function u(p){return p===null?d(p):Le(p)?e.attempt(HB,u,d)(p):(e.enter("codeFlowValue"),f(p))}function f(p){return p===null||Le(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),f)}function d(p){return e.exit("codeIndented"),t(p)}}function FB(e,t,n){const i=this;return o;function o(u){return i.parser.lazy[i.now().line]?n(u):Le(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):kt(e,l,"linePrefix",5)(u)}function l(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):Le(u)?o(u):n(u)}}const VB={name:"codeText",previous:KB,resolve:GB,tokenize:YB};function GB(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function KB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function YB(e,t,n){let i=0,o,l;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),i++,f):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(l=e.enter("codeTextSequence"),o=0,m(g)):Le(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||Le(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),o++,m):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",p(g))}}class XB{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&sl(this.left,i),l.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),sl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);sl(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sl(this.left,n.reverse())}}}function sl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function jC(e){const t={};let n=-1,i,o,l,u,f,d,p;const m=new XB(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,WB(m,n)),n=t[n],p=!0);else if(i[1]._container){for(l=n,o=void 0;l--;)if(u=m.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(m.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=l);else if(u[1].type!=="linePrefix")break;o&&(i[1].end={...m.get(o)[1].start},f=m.slice(o,n),f.unshift(i),m.splice(o,n-o+1,f))}}return Gr(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function WB(e,t){const n=e.get(t)[1],i=e.get(t)[2];let o=t-1;const l=[],u=n._tokenizer||i.parser[n.contentType](n.start),f=u.events,d=[],p={};let m,g,v=-1,b=n,w=0,S=0;const k=[S];for(;b;){for(;e.get(++o)[1]!==b;);l.push(o),b._tokenizer||(m=i.sliceStream(b),b.next||m.push(null),g&&u.defineSkip(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=n;++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&&(S=v+1,k.push(S),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):k.pop(),v=k.length;v--;){const A=f.slice(k[v],k[v+1]),N=l.pop();d.push([N,N+A.length-1]),e.splice(N,2,A)}for(d.reverse(),v=-1;++v<d.length;)p[w+d[v][0]]=w+d[v][1],w+=d[v][1]-d[v][0]-1;return p}const QB={resolve:JB,tokenize:e4},ZB={partial:!0,tokenize:t4};function JB(e){return jC(e),e}function e4(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?l(f):Le(f)?e.check(ZB,u,l)(f):(e.consume(f),o)}function l(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function t4(e,t,n){const i=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),kt(e,l,"linePrefix")}function l(u){if(u===null||Le(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function $C(e,t,n,i,o,l,u,f,d){const p=d||Number.POSITIVE_INFINITY;let m=0;return g;function g(A){return A===60?(e.enter(i),e.enter(o),e.enter(l),e.consume(A),e.exit(l),v):A===null||A===32||A===41||Sm(A)?n(A):(e.enter(i),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),S(A))}function v(A){return A===62?(e.enter(l),e.consume(A),e.exit(l),e.exit(o),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===62?(e.exit("chunkString"),e.exit(f),v(A)):A===null||A===60||Le(A)?n(A):(e.consume(A),A===92?w:b)}function w(A){return A===60||A===62||A===92?(e.consume(A),b):b(A)}function S(A){return!m&&(A===null||A===41||Ln(A))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(i),t(A)):m<p&&A===40?(e.consume(A),m++,S):A===41?(e.consume(A),m--,S):A===null||A===32||A===40||Sm(A)?n(A):(e.consume(A),A===92?k:S)}function k(A){return A===40||A===41||A===92?(e.consume(A),S):S(A)}}function PC(e,t,n,i,o,l){const u=this;let f=0,d;return p;function p(b){return e.enter(i),e.enter(o),e.consume(b),e.exit(o),e.enter(l),m}function m(b){return f>999||b===null||b===91||b===93&&!d||b===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(b):b===93?(e.exit(l),e.enter(o),e.consume(b),e.exit(o),e.exit(i),t):Le(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||Le(b)||f++>999?(e.exit("chunkString"),m(b)):(e.consume(b),d||(d=!ut(b)),b===92?v:g)}function v(b){return b===91||b===92||b===93?(e.consume(b),f++,g):g(b)}}function UC(e,t,n,i,o,l){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(i),e.enter(o),e.consume(v),e.exit(o),u=v===40?41:v,d):n(v)}function d(v){return v===u?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),t):(e.enter(l),p(v))}function p(v){return v===u?(e.exit(l),d(u)):v===null?n(v):Le(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),kt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||Le(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function kl(e,t){let n;return i;function i(o){return Le(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):ut(o)?kt(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const n4={name:"definition",tokenize:i4},r4={partial:!0,tokenize:a4};function i4(e,t,n){const i=this;let o;return l;function l(b){return e.enter("definition"),u(b)}function u(b){return PC.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return o=$o(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):n(b)}function d(b){return Ln(b)?kl(e,p)(b):p(b)}function p(b){return $C(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function m(b){return e.attempt(r4,g,g)(b)}function g(b){return ut(b)?kt(e,v,"whitespace")(b):v(b)}function v(b){return b===null||Le(b)?(e.exit("definition"),i.parser.defined.push(o),t(b)):n(b)}}function a4(e,t,n){return i;function i(f){return Ln(f)?kl(e,o)(f):n(f)}function o(f){return UC(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return ut(f)?kt(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Le(f)?t(f):n(f)}}const o4={name:"hardBreakEscape",tokenize:s4};function s4(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),o}function o(l){return Le(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const l4={name:"headingAtx",resolve:u4,tokenize:c4};function u4(e,t){let n=e.length-2,i=3,o,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Gr(e,i,n-i+1,[["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t]])),e}function c4(e,t,n){let i=0;return o;function o(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&i++<6?(e.consume(m),u):m===null||Ln(m)?(e.exit("atxHeadingSequence"),f(m)):n(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Le(m)?(e.exit("atxHeading"),t(m)):ut(m)?kt(e,f,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function p(m){return m===null||m===35||Ln(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),p)}}const f4=["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"],T1=["pre","script","style","textarea"],d4={concrete:!0,name:"htmlFlow",resolveTo:m4,tokenize:g4},p4={partial:!0,tokenize:b4},h4={partial:!0,tokenize:y4};function m4(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 g4(e,t,n){const i=this;let o,l,u,f,d;return p;function p(L){return m(L)}function m(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),g}function g(L){return L===33?(e.consume(L),v):L===47?(e.consume(L),l=!0,S):L===63?(e.consume(L),o=3,i.interrupt?t:C):Hr(L)?(e.consume(L),u=String.fromCharCode(L),k):n(L)}function v(L){return L===45?(e.consume(L),o=2,b):L===91?(e.consume(L),o=5,f=0,w):Hr(L)?(e.consume(L),o=4,i.interrupt?t:C):n(L)}function b(L){return L===45?(e.consume(L),i.interrupt?t:C):n(L)}function w(L){const ie="CDATA[";return L===ie.charCodeAt(f++)?(e.consume(L),f===ie.length?i.interrupt?t:U:w):n(L)}function S(L){return Hr(L)?(e.consume(L),u=String.fromCharCode(L),k):n(L)}function k(L){if(L===null||L===47||L===62||Ln(L)){const ie=L===47,ue=u.toLowerCase();return!ie&&!l&&T1.includes(ue)?(o=1,i.interrupt?t(L):U(L)):f4.includes(u.toLowerCase())?(o=6,ie?(e.consume(L),A):i.interrupt?t(L):U(L)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(L):l?N(L):_(L))}return L===45||Kn(L)?(e.consume(L),u+=String.fromCharCode(L),k):n(L)}function A(L){return L===62?(e.consume(L),i.interrupt?t:U):n(L)}function N(L){return ut(L)?(e.consume(L),N):E(L)}function _(L){return L===47?(e.consume(L),E):L===58||L===95||Hr(L)?(e.consume(L),O):ut(L)?(e.consume(L),_):E(L)}function O(L){return L===45||L===46||L===58||L===95||Kn(L)?(e.consume(L),O):R(L)}function R(L){return L===61?(e.consume(L),M):ut(L)?(e.consume(L),R):_(L)}function M(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),d=L,B):ut(L)?(e.consume(L),M):I(L)}function B(L){return L===d?(e.consume(L),d=null,P):L===null||Le(L)?n(L):(e.consume(L),B)}function I(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Ln(L)?R(L):(e.consume(L),I)}function P(L){return L===47||L===62||ut(L)?_(L):n(L)}function E(L){return L===62?(e.consume(L),j):n(L)}function j(L){return L===null||Le(L)?U(L):ut(L)?(e.consume(L),j):n(L)}function U(L){return L===45&&o===2?(e.consume(L),H):L===60&&o===1?(e.consume(L),Z):L===62&&o===4?(e.consume(L),X):L===63&&o===3?(e.consume(L),C):L===93&&o===5?(e.consume(L),J):Le(L)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(p4,de,G)(L)):L===null||Le(L)?(e.exit("htmlFlowData"),G(L)):(e.consume(L),U)}function G(L){return e.check(h4,Y,de)(L)}function Y(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),V}function V(L){return L===null||Le(L)?G(L):(e.enter("htmlFlowData"),U(L))}function H(L){return L===45?(e.consume(L),C):U(L)}function Z(L){return L===47?(e.consume(L),u="",ae):U(L)}function ae(L){if(L===62){const ie=u.toLowerCase();return T1.includes(ie)?(e.consume(L),X):U(L)}return Hr(L)&&u.length<8?(e.consume(L),u+=String.fromCharCode(L),ae):U(L)}function J(L){return L===93?(e.consume(L),C):U(L)}function C(L){return L===62?(e.consume(L),X):L===45&&o===2?(e.consume(L),C):U(L)}function X(L){return L===null||Le(L)?(e.exit("htmlFlowData"),de(L)):(e.consume(L),X)}function de(L){return e.exit("htmlFlow"),t(L)}}function y4(e,t,n){const i=this;return o;function o(u){return Le(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function b4(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Uf,t,n)}}const v4={name:"htmlText",tokenize:S4};function S4(e,t,n){const i=this;let o,l,u;return f;function f(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),d}function d(C){return C===33?(e.consume(C),p):C===47?(e.consume(C),R):C===63?(e.consume(C),_):Hr(C)?(e.consume(C),I):n(C)}function p(C){return C===45?(e.consume(C),m):C===91?(e.consume(C),l=0,w):Hr(C)?(e.consume(C),N):n(C)}function m(C){return C===45?(e.consume(C),b):n(C)}function g(C){return C===null?n(C):C===45?(e.consume(C),v):Le(C)?(u=g,Z(C)):(e.consume(C),g)}function v(C){return C===45?(e.consume(C),b):g(C)}function b(C){return C===62?H(C):C===45?v(C):g(C)}function w(C){const X="CDATA[";return C===X.charCodeAt(l++)?(e.consume(C),l===X.length?S:w):n(C)}function S(C){return C===null?n(C):C===93?(e.consume(C),k):Le(C)?(u=S,Z(C)):(e.consume(C),S)}function k(C){return C===93?(e.consume(C),A):S(C)}function A(C){return C===62?H(C):C===93?(e.consume(C),A):S(C)}function N(C){return C===null||C===62?H(C):Le(C)?(u=N,Z(C)):(e.consume(C),N)}function _(C){return C===null?n(C):C===63?(e.consume(C),O):Le(C)?(u=_,Z(C)):(e.consume(C),_)}function O(C){return C===62?H(C):_(C)}function R(C){return Hr(C)?(e.consume(C),M):n(C)}function M(C){return C===45||Kn(C)?(e.consume(C),M):B(C)}function B(C){return Le(C)?(u=B,Z(C)):ut(C)?(e.consume(C),B):H(C)}function I(C){return C===45||Kn(C)?(e.consume(C),I):C===47||C===62||Ln(C)?P(C):n(C)}function P(C){return C===47?(e.consume(C),H):C===58||C===95||Hr(C)?(e.consume(C),E):Le(C)?(u=P,Z(C)):ut(C)?(e.consume(C),P):H(C)}function E(C){return C===45||C===46||C===58||C===95||Kn(C)?(e.consume(C),E):j(C)}function j(C){return C===61?(e.consume(C),U):Le(C)?(u=j,Z(C)):ut(C)?(e.consume(C),j):P(C)}function U(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),o=C,G):Le(C)?(u=U,Z(C)):ut(C)?(e.consume(C),U):(e.consume(C),Y)}function G(C){return C===o?(e.consume(C),o=void 0,V):C===null?n(C):Le(C)?(u=G,Z(C)):(e.consume(C),G)}function Y(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Ln(C)?P(C):(e.consume(C),Y)}function V(C){return C===47||C===62||Ln(C)?P(C):n(C)}function H(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function Z(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ae}function ae(C){return ut(C)?kt(e,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):J(C)}function J(C){return e.enter("htmlTextData"),u(C)}}const Ig={name:"labelEnd",resolveAll:k4,resolveTo:E4,tokenize:T4},w4={tokenize:A4},x4={tokenize:_4},C4={tokenize:R4};function k4(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==n.length&&Gr(e,0,e.length,n),e}function E4(e,t){let n=e.length,i=0,o,l,u,f;for(;n--;)if(o=e[n][1],l){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(l=n,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(u=n);const d={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",d,t],["enter",p,t]],f=fr(f,e.slice(l+1,l+i+3)),f=fr(f,[["enter",m,t]]),f=fr(f,Bg(t.parser.constructs.insideSpan.null,e.slice(l+i+4,u-3),t)),f=fr(f,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),f=fr(f,e.slice(u+1)),f=fr(f,[["exit",d,t]]),Gr(e,l,e.length,f),e}function T4(e,t,n){const i=this;let o=i.events.length,l,u;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){l=i.events[o][1];break}return f;function f(v){return l?l._inactive?g(v):(u=i.parser.defined.includes($o(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),d):n(v)}function d(v){return v===40?e.attempt(w4,m,u?m:g)(v):v===91?e.attempt(x4,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(C4,m,g)(v)}function m(v){return t(v)}function g(v){return l._balanced=!0,n(v)}}function A4(e,t,n){return i;function i(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return Ln(g)?kl(e,l)(g):l(g)}function l(g){return g===41?m(g):$C(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return Ln(g)?kl(e,d)(g):m(g)}function f(g){return n(g)}function d(g){return g===34||g===39||g===40?UC(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return Ln(g)?kl(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function _4(e,t,n){const i=this;return o;function o(f){return PC.call(i,e,l,u,"reference","referenceMarker","referenceString")(f)}function l(f){return i.parser.defined.includes($o(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function R4(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),o}function o(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const O4={name:"labelStartImage",resolveAll:Ig.resolveAll,tokenize:M4};function M4(e,t,n){const i=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),l}function l(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const N4={name:"labelStartLink",resolveAll:Ig.resolveAll,tokenize:D4};function D4(e,t,n){const i=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const Oh={name:"lineEnding",tokenize:L4};function L4(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),kt(e,t,"linePrefix")}}const Ic={name:"thematicBreak",tokenize:z4};function z4(e,t,n){let i=0,o;return l;function l(p){return e.enter("thematicBreak"),u(p)}function u(p){return o=p,f(p)}function f(p){return p===o?(e.enter("thematicBreakSequence"),d(p)):i>=3&&(p===null||Le(p))?(e.exit("thematicBreak"),t(p)):n(p)}function d(p){return p===o?(e.consume(p),i++,d):(e.exit("thematicBreakSequence"),ut(p)?kt(e,f,"whitespace")(p):f(p))}}const Dn={continuation:{tokenize:$4},exit:U4,name:"list",tokenize:j4},B4={partial:!0,tokenize:H4},I4={partial:!0,tokenize:P4};function j4(e,t,n){const i=this,o=i.events[i.events.length-1];let l=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return f;function f(b){const w=i.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||b===i.containerState.marker:wm(b)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Ic,n,p)(b):p(b);if(!i.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return n(b)}function d(b){return wm(b)&&++u<10?(e.consume(b),d):(!i.interrupt||u<2)&&(i.containerState.marker?b===i.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),p(b)):n(b)}function p(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||b,e.check(Uf,i.interrupt?n:m,e.attempt(B4,v,g))}function m(b){return i.containerState.initialBlankLine=!0,l++,v(b)}function g(b){return ut(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),v):n(b)}function v(b){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function $4(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Uf,o,l);function o(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,kt(e,t,"listItemIndent",i.containerState.size+1)(f)}function l(f){return i.containerState.furtherBlankLines||!ut(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(I4,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,kt(e,e.attempt(Dn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function P4(e,t,n){const i=this;return kt(e,o,"listItemIndent",i.containerState.size+1);function o(l){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(l):n(l)}}function U4(e){e.exit(this.containerState.type)}function H4(e,t,n){const i=this;return kt(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(l){const u=i.events[i.events.length-1];return!ut(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const A1={name:"setextUnderline",resolveTo:q4,tokenize:F4};function q4(e,t){let n=e.length,i,o,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(e.splice(o,0,["enter",u,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function F4(e,t,n){const i=this;let o;return l;function l(p){let m=i.events.length,g;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){g=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||g)?(e.enter("setextHeadingLine"),o=p,u(p)):n(p)}function u(p){return e.enter("setextHeadingLineSequence"),f(p)}function f(p){return p===o?(e.consume(p),f):(e.exit("setextHeadingLineSequence"),ut(p)?kt(e,d,"lineSuffix")(p):d(p))}function d(p){return p===null||Le(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const V4={tokenize:G4};function G4(e){const t=this,n=e.attempt(Uf,i,e.attempt(this.parser.constructs.flowInitial,o,kt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(QB,o)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const K4={resolveAll:qC()},Y4=HC("string"),X4=HC("text");function HC(e){return{resolveAll:qC(e==="text"?W4:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],l=n.attempt(o,u,f);return u;function u(m){return p(m)?l(m):f(m)}function f(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return p(m)?(n.exit("data"),l(m)):(n.consume(m),d)}function p(m){if(m===null)return!0;const g=o[m];let v=-1;if(g)for(;++v<g.length;){const b=g[v];if(!b.previous||b.previous.call(i,i.previous))return!0}return!1}}}function qC(e){return t;function t(n,i){let o=-1,l;for(;++o<=n.length;)l===void 0?n[o]&&n[o][1].type==="data"&&(l=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==l+2&&(n[l][1].end=n[o-1][1].end,n.splice(l+2,o-l-2),o=l+2),l=void 0);return e?e(n,i):n}}function W4(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],o=t.sliceStream(i);let l=o.length,u=-1,f=0,d;for(;l--;){const p=o[l];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(p===-2)d=!0,f++;else if(p!==-1){l++;break}}if(f){const p={type:n===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const Q4={42:Dn,43:Dn,45:Dn,48:Dn,49:Dn,50:Dn,51:Dn,52:Dn,53:Dn,54:Dn,55:Dn,56:Dn,57:Dn,62:zC},Z4={91:n4},J4={[-2]:Rh,[-1]:Rh,32:Rh},eI={35:l4,42:Ic,45:[A1,Ic],60:d4,61:A1,95:Ic,96:E1,126:E1},tI={38:IC,92:BC},nI={[-5]:Oh,[-4]:Oh,[-3]:Oh,33:O4,38:IC,42:xm,60:[NB,v4],91:N4,92:[o4,BC],93:Ig,95:xm,96:VB},rI={null:[xm,K4]},iI={null:[42,95]},aI={null:[]},oI=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:iI,contentInitial:Z4,disable:aI,document:Q4,flow:eI,flowInitial:J4,insideSpan:rI,string:tI,text:nI},Symbol.toStringTag,{value:"Module"}));function sI(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},l=[];let u=[],f=[];const d={attempt:B(R),check:B(M),consume:N,enter:_,exit:O,interrupt:B(M,{interrupt:!0})},p={code:null,containerState:{},defineSkip:S,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:b,write:g};let m=t.tokenize.call(p,d);return t.resolveAll&&l.push(t),p;function g(j){return u=fr(u,j),k(),u[u.length-1]!==null?[]:(I(t,0),p.events=Bg(l,p.events,p),p.events)}function v(j,U){return uI(b(j),U)}function b(j){return lI(u,j)}function w(){const{_bufferIndex:j,_index:U,line:G,column:Y,offset:V}=i;return{_bufferIndex:j,_index:U,line:G,column:Y,offset:V}}function S(j){o[j.line]=j.column,E()}function k(){let j;for(;i._index<u.length;){const U=u[i._index];if(typeof U=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<U.length;)A(U.charCodeAt(i._bufferIndex));else A(U)}}function A(j){m=m(j)}function N(j){Le(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,E()):j!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=j}function _(j,U){const G=U||{};return G.type=j,G.start=w(),p.events.push(["enter",G,p]),f.push(G),G}function O(j){const U=f.pop();return U.end=w(),p.events.push(["exit",U,p]),U}function R(j,U){I(j,U.from)}function M(j,U){U.restore()}function B(j,U){return G;function G(Y,V,H){let Z,ae,J,C;return Array.isArray(Y)?de(Y):"tokenize"in Y?de([Y]):X(Y);function X(fe){return _e;function _e(ge){const ye=ge!==null&&fe[ge],le=ge!==null&&fe.null,we=[...Array.isArray(ye)?ye:ye?[ye]:[],...Array.isArray(le)?le:le?[le]:[]];return de(we)(ge)}}function de(fe){return Z=fe,ae=0,fe.length===0?H:L(fe[ae])}function L(fe){return _e;function _e(ge){return C=P(),J=fe,fe.partial||(p.currentConstruct=fe),fe.name&&p.parser.constructs.disable.null.includes(fe.name)?ue():fe.tokenize.call(U?Object.assign(Object.create(p),U):p,d,ie,ue)(ge)}}function ie(fe){return j(J,C),V}function ue(fe){return C.restore(),++ae<Z.length?L(Z[ae]):H}}}function I(j,U){j.resolveAll&&!l.includes(j)&&l.push(j),j.resolve&&Gr(p.events,U,p.events.length-U,j.resolve(p.events.slice(U),p)),j.resolveTo&&(p.events=j.resolveTo(p.events,p))}function P(){const j=w(),U=p.previous,G=p.currentConstruct,Y=p.events.length,V=Array.from(f);return{from:Y,restore:H};function H(){i=j,p.previous=U,p.currentConstruct=G,p.events.length=Y,f=V,E()}}function E(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function lI(e,t){const n=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;let u;if(n===o)u=[e[n].slice(i,l)];else{if(u=e.slice(n,o),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}l>0&&u.push(e[o].slice(0,l))}return u}function uI(e,t){let n=-1;const i=[];let o;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
|
||
`;break}case-3:{u=`\r
|
||
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(l)}o=l===-2,i.push(u)}return i.join("")}function cI(e){const i={constructs:yB([oI,...(e||{}).extensions||[]]),content:o(EB),defined:[],document:o(AB),flow:o(V4),lazy:{},string:o(Y4),text:o(X4)};return i;function o(l){return u;function u(f){return sI(i,l,f)}}}function fI(e){for(;!jC(e););return e}const _1=/[\0\t\n\r]/g;function dI(){let e=1,t="",n=!0,i;return o;function o(l,u,f){const d=[];let p,m,g,v,b;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),g=0,t="",n&&(l.charCodeAt(0)===65279&&g++,n=void 0);g<l.length;){if(_1.lastIndex=g,p=_1.exec(l),v=p&&p.index!==void 0?p.index:l.length,b=l.charCodeAt(v),!p){t=l.slice(g);break}if(b===10&&g===v&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),g<v&&(d.push(l.slice(g,v)),e+=v-g),b){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}g=v+1}return f&&(i&&d.push(-5),t&&d.push(t),d.push(null)),d}}const pI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hI(e){return e.replace(pI,mI)}function mI(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),l=o===120||o===88;return LC(n.slice(l?2:1),l?16:10)}return zg(n)||e}const FC={}.hasOwnProperty;function gI(e,t,n){return typeof t!="string"&&(n=t,t=void 0),yI(n)(fI(cI(n).document().write(dI()(e,t,!0))))}function yI(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(yt),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Ie),blockQuote:l(le),characterEscape:P,characterReference:P,codeFenced:l(we),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(we,u),codeText:l(Ce,u),codeTextData:P,data:P,codeFlowValue:P,definition:l($e),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(ke),hardBreakEscape:l(Ze),hardBreakTrailing:l(Ze),htmlFlow:l(qe,u),htmlFlowData:P,htmlText:l(qe,u),htmlTextData:P,image:l(Je),label:u,link:l(yt),listItem:l(nt),listItemValue:v,listOrdered:l(tt,g),listUnordered:l(tt),paragraph:l(Se),reference:L,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(Ie),strong:l(pn),thematicBreak:l(Sn)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:ye,autolinkProtocol:ge,blockQuote:d(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:fe,characterReference:_e,codeFenced:d(k),codeFencedFence:S,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:E,codeIndented:d(A),codeText:d(V),codeTextData:E,data:E,definition:d(),definitionDestinationString:O,definitionLabelString:N,definitionTitleString:_,emphasis:d(),hardBreakEscape:d(U),hardBreakTrailing:d(U),htmlFlow:d(G),htmlFlowData:E,htmlText:d(Y),htmlTextData:E,image:d(Z),label:J,labelText:ae,lineEnding:j,link:d(H),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ie,resourceDestinationString:C,resourceTitleString:X,resource:de,setextHeading:d(I),setextHeadingLineSequence:B,setextHeadingText:M,strong:d(),thematicBreak:d()}};VC(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(ee){let se={type:"root",children:[]};const he={stack:[se],tokenStack:[],config:t,enter:f,exit:p,buffer:u,resume:m,data:n},be=[];let De=-1;for(;++De<ee.length;)if(ee[De][1].type==="listOrdered"||ee[De][1].type==="listUnordered")if(ee[De][0]==="enter")be.push(De);else{const Te=be.pop();De=o(ee,Te,De)}for(De=-1;++De<ee.length;){const Te=t[ee[De][0]];FC.call(Te,ee[De][1].type)&&Te[ee[De][1].type].call(Object.assign({sliceSerialize:ee[De][2].sliceSerialize},he),ee[De][1])}if(he.tokenStack.length>0){const Te=he.tokenStack[he.tokenStack.length-1];(Te[1]||R1).call(he,void 0,Te[0])}for(se.position={start:Hi(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Hi(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)se=t.transforms[De](se)||se;return se}function o(ee,se,he){let be=se-1,De=-1,Te=!1,ft,_t,Tt,Ee;for(;++be<=he;){const Me=ee[be];switch(Me[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Me[0]==="enter"?De++:De--,Ee=void 0;break}case"lineEndingBlank":{Me[0]==="enter"&&(ft&&!Ee&&!De&&!Tt&&(Tt=be),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!De&&Me[0]==="enter"&&Me[1].type==="listItemPrefix"||De===-1&&Me[0]==="exit"&&(Me[1].type==="listUnordered"||Me[1].type==="listOrdered")){if(ft){let Ue=be;for(_t=void 0;Ue--;){const It=ee[Ue];if(It[1].type==="lineEnding"||It[1].type==="lineEndingBlank"){if(It[0]==="exit")continue;_t&&(ee[_t][1].type="lineEndingBlank",Te=!0),It[1].type="lineEnding",_t=Ue}else if(!(It[1].type==="linePrefix"||It[1].type==="blockQuotePrefix"||It[1].type==="blockQuotePrefixWhitespace"||It[1].type==="blockQuoteMarker"||It[1].type==="listItemIndent"))break}Tt&&(!_t||Tt<_t)&&(ft._spread=!0),ft.end=Object.assign({},_t?ee[_t][1].start:Me[1].end),ee.splice(_t||be,0,["exit",ft,Me[2]]),be++,he++}if(Me[1].type==="listItemPrefix"){const Ue={type:"listItem",_spread:!1,start:Object.assign({},Me[1].start),end:void 0};ft=Ue,ee.splice(be,0,["enter",Ue,Me[2]]),be++,he++,Tt=void 0,Ee=!0}}}return ee[se][1]._spread=Te,he}function l(ee,se){return he;function he(be){f.call(this,ee(be),be),se&&se.call(this,be)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(ee,se,he){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([se,he||void 0]),ee.position={start:Hi(se.start),end:void 0}}function d(ee){return se;function se(he){ee&&ee.call(this,he),p.call(this,he)}}function p(ee,se){const he=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==ee.type&&(se?se.call(this,ee,be[0]):(be[1]||R1).call(this,ee,be[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Cl({start:ee.start,end:ee.end})+"): it’s not open");he.position.end=Hi(ee.end)}function m(){return mB(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(ee){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.lang=ee}function w(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.meta=ee}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee.replace(/(\r?\n|\r)$/g,"")}function N(ee){const se=this.resume(),he=this.stack[this.stack.length-1];he.label=se,he.identifier=$o(this.sliceSerialize(ee)).toLowerCase()}function _(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.title=ee}function O(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.url=ee}function R(ee){const se=this.stack[this.stack.length-1];if(!se.depth){const he=this.sliceSerialize(ee).length;se.depth=he}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function B(ee){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function P(ee){const he=this.stack[this.stack.length-1].children;let be=he[he.length-1];(!be||be.type!=="text")&&(be=rt(),be.position={start:Hi(ee.start),end:void 0},he.push(be)),this.stack.push(be)}function E(ee){const se=this.stack.pop();se.value+=this.sliceSerialize(ee),se.position.end=Hi(ee.end)}function j(ee){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=se.children[se.children.length-1];he.position.end=Hi(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(P.call(this,ee),E.call(this,ee))}function U(){this.data.atHardBreak=!0}function G(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function Y(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function V(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function H(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=se,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Z(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=se,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function ae(ee){const se=this.sliceSerialize(ee),he=this.stack[this.stack.length-2];he.label=hI(se),he.identifier=$o(se).toLowerCase()}function J(){const ee=this.stack[this.stack.length-1],se=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const be=ee.children;he.children=be}else he.alt=se}function C(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.url=ee}function X(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.title=ee}function de(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function ie(ee){const se=this.resume(),he=this.stack[this.stack.length-1];he.label=se,he.identifier=$o(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function ue(ee){this.data.characterReferenceType=ee.type}function fe(ee){const se=this.sliceSerialize(ee),he=this.data.characterReferenceType;let be;he?(be=LC(se,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=zg(se);const De=this.stack[this.stack.length-1];De.value+=be}function _e(ee){const se=this.stack.pop();se.position.end=Hi(ee.end)}function ge(ee){E.call(this,ee);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(ee)}function ye(ee){E.call(this,ee);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(ee)}function le(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function Ce(){return{type:"inlineCode",value:""}}function $e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ke(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function Ze(){return{type:"break"}}function qe(){return{type:"html",value:""}}function Je(){return{type:"image",title:null,url:"",alt:null}}function yt(){return{type:"link",title:null,url:"",children:[]}}function tt(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function nt(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function Se(){return{type:"paragraph",children:[]}}function pn(){return{type:"strong",children:[]}}function rt(){return{type:"text",value:""}}function Sn(){return{type:"thematicBreak"}}}function Hi(e){return{line:e.line,column:e.column,offset:e.offset}}function VC(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?VC(e,i):bI(e,i)}}function bI(e,t){let n;for(n in t)if(FC.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function R1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Cl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Cl({start:t.start,end:t.end})+") is still open")}function vI(e){const t=this;t.parser=n;function n(i){return gI(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function SI(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function wI(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
||
`}]}function xI(e,t){const n=t.value?t.value+`
|
||
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function CI(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kI(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EI(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=rs(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let u,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=l+1,f+=1,e.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const p={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,p),e.applyData(t,p)}function TI(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function AI(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function GC(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const o=e.all(t),l=o[0];l&&l.type==="text"?l.value="["+l.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=i:o.push({type:"text",value:i}),o}function _I(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return GC(e,t);const o={src:rs(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const l={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,l),e.applyData(t,l)}function RI(e,t){const n={src:rs(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function OI(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function MI(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return GC(e,t);const o={href:rs(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const l={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function NI(e,t){const n={href:rs(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function DI(e,t,n){const i=e.all(t),o=n?LI(n):KC(t),l={},u=[];if(typeof t.checked=="boolean"){const m=i[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},i.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const m=i[f];(o||f!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
||
`}),m.type==="element"&&m.tagName==="p"&&!o?u.push(...m.children):u.push(m)}const d=i[i.length-1];d&&(o||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
|
||
`});const p={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,p),e.applyData(t,p)}function LI(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=KC(n[i])}return t}function KC(e){const t=e.spread;return t??e.children.length>1}function zI(e,t){const n={},i=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<i.length;){const u=i[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function BI(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function II(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function jI(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $I(e,t){const n=e.all(t),i=n.shift(),o=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),o.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=Mg(t.children[1]),d=AC(t.children[t.children.length-1]);f&&d&&(u.position={start:f,end:d}),o.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,l),e.applyData(t,l)}function PI(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let d=-1;const p=[];for(;++d<f;){const g=t.children[d],v={},b=u?u[d]:void 0;b&&(v.align=b);let w={type:"element",tagName:l,properties:v,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),p.push(w)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,m),e.applyData(t,m)}function UI(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const O1=9,M1=32;function HI(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),o=0;const l=[];for(;i;)l.push(N1(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=n.exec(t);return l.push(N1(t.slice(o),o>0,!1)),l.join("")}function N1(e,t,n){let i=0,o=e.length;if(t){let l=e.codePointAt(i);for(;l===O1||l===M1;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(o-1);for(;l===O1||l===M1;)o--,l=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function qI(e,t){const n={type:"text",value:HI(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function FI(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const VI={blockquote:SI,break:wI,code:xI,delete:CI,emphasis:kI,footnoteReference:EI,heading:TI,html:AI,imageReference:_I,image:RI,inlineCode:OI,linkReference:MI,link:NI,listItem:DI,list:zI,paragraph:BI,root:II,strong:jI,table:$I,tableCell:UI,tableRow:PI,text:qI,thematicBreak:FI,toml:Cc,yaml:Cc,definition:Cc,footnoteDefinition:Cc};function Cc(){}const YC=-1,Hf=0,El=1,tf=2,jg=3,$g=4,Pg=5,Ug=6,XC=7,WC=8,D1=typeof self=="object"?self:globalThis,GI=(e,t)=>{const n=(o,l)=>(e.set(l,o),o),i=o=>{if(e.has(o))return e.get(o);const[l,u]=t[o];switch(l){case Hf:case YC:return n(u,o);case El:{const f=n([],o);for(const d of u)f.push(i(d));return f}case tf:{const f=n({},o);for(const[d,p]of u)f[i(d)]=i(p);return f}case jg:return n(new Date(u),o);case $g:{const{source:f,flags:d}=u;return n(new RegExp(f,d),o)}case Pg:{const f=n(new Map,o);for(const[d,p]of u)f.set(i(d),i(p));return f}case Ug:{const f=n(new Set,o);for(const d of u)f.add(i(d));return f}case XC:{const{name:f,message:d}=u;return n(new D1[f](d),o)}case WC:return n(BigInt(u),o);case"BigInt":return n(Object(BigInt(u)),o);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new D1[l](u),o)};return i},L1=e=>GI(new Map,e)(0),To="",{toString:KI}={},{keys:YI}=Object,ll=e=>{const t=typeof e;if(t!=="object"||!e)return[Hf,t];const n=KI.call(e).slice(8,-1);switch(n){case"Array":return[El,To];case"Object":return[tf,To];case"Date":return[jg,To];case"RegExp":return[$g,To];case"Map":return[Pg,To];case"Set":return[Ug,To];case"DataView":return[El,n]}return n.includes("Array")?[El,n]:n.includes("Error")?[XC,n]:[tf,n]},kc=([e,t])=>e===Hf&&(t==="function"||t==="symbol"),XI=(e,t,n,i)=>{const o=(u,f)=>{const d=i.push(u)-1;return n.set(f,d),d},l=u=>{if(n.has(u))return n.get(u);let[f,d]=ll(u);switch(f){case Hf:{let m=u;switch(d){case"bigint":f=WC,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return o([YC],u)}return o([f,m],u)}case El:{if(d){let v=u;return d==="DataView"?v=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(v=new Uint8Array(u)),o([d,[...v]],u)}const m=[],g=o([f,m],u);for(const v of u)m.push(l(v));return g}case tf:{if(d)switch(d){case"BigInt":return o([d,u.toString()],u);case"Boolean":case"Number":case"String":return o([d,u.valueOf()],u)}if(t&&"toJSON"in u)return l(u.toJSON());const m=[],g=o([f,m],u);for(const v of YI(u))(e||!kc(ll(u[v])))&&m.push([l(v),l(u[v])]);return g}case jg:return o([f,u.toISOString()],u);case $g:{const{source:m,flags:g}=u;return o([f,{source:m,flags:g}],u)}case Pg:{const m=[],g=o([f,m],u);for(const[v,b]of u)(e||!(kc(ll(v))||kc(ll(b))))&&m.push([l(v),l(b)]);return g}case Ug:{const m=[],g=o([f,m],u);for(const v of u)(e||!kc(ll(v)))&&m.push(l(v));return g}}const{message:p}=u;return o([f,{name:d,message:p}],u)};return l},z1=(e,{json:t,lossy:n}={})=>{const i=[];return XI(!(t||n),!!t,new Map,i)(e),i},nf=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?L1(z1(e,t)):structuredClone(e):(e,t)=>L1(z1(e,t));function WI(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function QI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ZI(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||WI,i=e.options.footnoteBackLabel||QI,o=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[d]);if(!p)continue;const m=e.all(p),g=String(p.identifier).toUpperCase(),v=rs(g.toLowerCase());let b=0;const w=[],S=e.footnoteCounts.get(g);for(;S!==void 0&&++b<=S;){w.length>0&&w.push({type:"text",value:" "});let N=typeof n=="string"?n:n(d,b);typeof N=="string"&&(N={type:"text",value:N}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,b),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const k=m[m.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const N=k.children[k.children.length-1];N&&N.type==="text"?N.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...w)}else m.push(...w);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(p,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...nf(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
||
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
||
`}]}}const QC=function(e){if(e==null)return n3;if(typeof e=="function")return qf(e);if(typeof e=="object")return Array.isArray(e)?JI(e):e3(e);if(typeof e=="string")return t3(e);throw new Error("Expected function, string, or object as test")};function JI(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=QC(e[n]);return qf(i);function i(...o){let l=-1;for(;++l<t.length;)if(t[l].apply(this,o))return!0;return!1}}function e3(e){const t=e;return qf(n);function n(i){const o=i;let l;for(l in e)if(o[l]!==t[l])return!1;return!0}}function t3(e){return qf(t);function t(n){return n&&n.type===e}}function qf(e){return t;function t(n,i,o){return!!(r3(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function n3(){return!0}function r3(e){return e!==null&&typeof e=="object"&&"type"in e}const ZC=[],i3=!0,B1=!1,a3="skip";function o3(e,t,n,i){let o;typeof t=="function"&&typeof n!="function"?(i=n,n=t):o=t;const l=QC(o),u=i?-1:1;f(e,void 0,[])();function f(d,p,m){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return v;function v(){let b=ZC,w,S,k;if((!t||l(d,p,m[m.length-1]||void 0))&&(b=s3(n(d,m)),b[0]===B1))return b;if("children"in d&&d.children){const A=d;if(A.children&&b[0]!==a3)for(S=(i?A.children.length:-1)+u,k=m.concat(A);S>-1&&S<A.children.length;){const N=A.children[S];if(w=f(N,S,k)(),w[0]===B1)return w;S=typeof w[1]=="number"?w[1]:S+u}}return b}}}function s3(e){return Array.isArray(e)?e:typeof e=="number"?[i3,e]:e==null?ZC:[e]}function JC(e,t,n,i){let o,l,u;typeof t=="function"?(l=void 0,u=t,o=n):(l=t,u=n,o=i),o3(e,l,f,o);function f(d,p){const m=p[p.length-1],g=m?m.children.indexOf(d):void 0;return u(d,g,m)}}const Cm={}.hasOwnProperty,l3={};function u3(e,t){const n=t||l3,i=new Map,o=new Map,l=new Map,u={...VI,...n.handlers},f={all:p,applyData:f3,definitionById:i,footnoteById:o,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:c3,wrap:p3};return JC(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?i:o,v=String(m.identifier).toUpperCase();g.has(v)||g.set(v,m)}}),f;function d(m,g){const v=m.type,b=f.handlers[v];if(Cm.call(f.handlers,v)&&b)return b(f,m,g);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in m){const{children:S,...k}=m,A=nf(k);return A.children=f.all(m),A}return nf(m)}return(f.options.unknownHandler||d3)(f,m,g)}function p(m){const g=[];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=I1(w.value)),!Array.isArray(w)&&w.type==="element")){const S=w.children[0];S&&S.type==="text"&&(S.value=I1(S.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function c3(e,t){e.position&&(t.position=Vz(e))}function f3(e,t){let n=t;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,nf(l)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function d3(e,t){const n=t.data||{},i="value"in t&&!(Cm.call(n,"hProperties")||Cm.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function p3(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
||
`});++i<e.length;)i&&n.push({type:"text",value:`
|
||
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
||
`}),n}function I1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function j1(e,t){const n=u3(e,t),i=n.one(e,void 0),o=ZI(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&l.children.push({type:"text",value:`
|
||
`},o),l}function h3(e,t){return e&&"run"in e?async function(n,i){const o=j1(n,{file:i,...t});await e.run(o,i)}:function(n,i){return j1(n,{file:i,...e||t})}}function $1(e){if(e)throw e}var Mh,P1;function m3(){if(P1)return Mh;P1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},l=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){n&&m.name==="__proto__"?n(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},f=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(i)return i(p,m).value}else return;return p[m]};return Mh=function d(){var p,m,g,v,b,w,S=arguments[0],k=1,A=arguments.length,N=!1;for(typeof S=="boolean"&&(N=S,S=arguments[1]||{},k=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});k<A;++k)if(p=arguments[k],p!=null)for(m in p)g=f(S,m),v=f(p,m),S!==v&&(N&&v&&(l(v)||(b=o(v)))?(b?(b=!1,w=g&&o(g)?g:[]):w=g&&l(g)?g:{},u(S,{name:m,newValue:d(N,w,v)})):typeof v<"u"&&u(S,{name:m,newValue:v}));return S},Mh}var g3=m3();const Nh=rf(g3);function km(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 y3(){const e=[],t={run:n,use:i};return t;function n(...o){let l=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...o);function f(d,...p){const m=e[++l];let g=-1;if(d){u(d);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,m?b3(m,f)(...p):u(null,...p)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function b3(e,t){let n;return i;function i(...u){const f=e.length>u.length;let d;f&&u.push(o);try{d=e.apply(this,u)}catch(p){const m=p;if(f&&n)throw m;return o(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(l,o):d instanceof Error?o(d):l(d))}function o(u,...f){n||(n=!0,t(u,...f))}function l(u){o(null,u)}}const Ir={basename:v3,dirname:S3,extname:w3,join:x3,sep:"/"};function v3(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');nu(e);let n=0,i=-1,o=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(l){n=o+1;break}}else i<0&&(l=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,f=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(l){n=o+1;break}}else u<0&&(l=!0,u=o+1),f>-1&&(e.codePointAt(o)===t.codePointAt(f--)?f<0&&(i=o):(f=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function S3(e){if(nu(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function w3(e){nu(e);let t=e.length,n=-1,i=0,o=-1,l=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?o<0?o=t:l!==1&&(l=1):o>-1&&(l=-1)}return o<0||n<0||l===0||l===1&&o===n-1&&o===i+1?"":e.slice(o,n)}function x3(...e){let t=-1,n;for(;++t<e.length;)nu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":C3(n)}function C3(e){nu(e);const t=e.codePointAt(0)===47;let n=k3(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function k3(e,t){let n="",i=0,o=-1,l=0,u=-1,f,d;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(o===u-1||l===1))if(o!==u-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),o=u,l=0;continue}}else if(n.length>0){n="",i=0,o=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(o+1,u):n=e.slice(o+1,u),i=u-o-1;o=u,l=0}else f===46&&l>-1?l++:l=-1}return n}function nu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const E3={cwd:T3};function T3(){return"/"}function Em(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function A3(e){if(typeof e=="string")e=new URL(e);else if(!Em(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 _3(e)}function _3(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Dh=["history","path","basename","stem","extname","dirname"];class ek{constructor(t){let n;t?Em(t)?n={path:t}:typeof t=="string"||R3(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":E3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Dh.length;){const l=Dh[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let o;for(o in n)Dh.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?Ir.basename(this.path):void 0}set basename(t){zh(t,"basename"),Lh(t,"basename"),this.path=Ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ir.dirname(this.path):void 0}set dirname(t){U1(this.basename,"dirname"),this.path=Ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ir.extname(this.path):void 0}set extname(t){if(Lh(t,"extname"),U1(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=Ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Em(t)&&(t=A3(t)),zh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ir.basename(this.path,this.extname):void 0}set stem(t){zh(t,"stem"),Lh(t,"stem"),this.path=Ir.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const o=this.message(t,n,i);throw o.fatal=!0,o}info(t,n,i){const o=this.message(t,n,i);return o.fatal=void 0,o}message(t,n,i){const o=new vn(t,n,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Lh(e,t){if(e&&e.includes(Ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ir.sep+"`")}function zh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function U1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function R3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const O3=function(e){const i=this.constructor.prototype,o=i[e],l=function(){return o.apply(l,arguments)};return Object.setPrototypeOf(l,i),l},M3={}.hasOwnProperty;class Hg extends O3{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=y3()}copy(){const t=new Hg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Nh(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(jh("data",this.frozen),this.namespace[t]=n,this):M3.call(this.namespace,t)&&this.namespace[t]||void 0:t?(jh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=n.call(t,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ec(t),i=this.parser||this.Parser;return Bh("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Bh("process",this.parser||this.Parser),Ih("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(l,u){const f=Ec(t),d=i.parse(f);i.run(d,f,function(m,g,v){if(m||!g||!v)return p(m);const b=g,w=i.stringify(b,v);L3(w)?v.value=w:v.result=w,p(m,v)});function p(m,g){m||!g?u(m):l?l(g):n(void 0,g)}}}processSync(t){let n=!1,i;return this.freeze(),Bh("processSync",this.parser||this.Parser),Ih("processSync",this.compiler||this.Compiler),this.process(t,o),q1("processSync","process",n),i;function o(l,u){n=!0,$1(l),i=u}}run(t,n,i){H1(t),this.freeze();const o=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(u,f){const d=Ec(n);o.run(t,d,p);function p(m,g,v){const b=g||t;m?f(m):u?u(b):i(void 0,b,v)}}}runSync(t,n){let i=!1,o;return this.run(t,n,l),q1("runSync","run",i),o;function l(u,f){$1(u),o=f,i=!0}}stringify(t,n){this.freeze();const i=Ec(n),o=this.compiler||this.Compiler;return Ih("stringify",o),H1(t),o(t,i)}use(t,...n){const i=this.attachers,o=this.namespace;if(jh("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(p){if(typeof p=="function")d(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;d(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))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(p.plugins),p.settings&&(o.settings=Nh(!0,o.settings,p.settings))}function f(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];l(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function d(p,m){let g=-1,v=-1;for(;++g<i.length;)if(i[g][0]===p){v=g;break}if(v===-1)i.push([p,...m]);else if(m.length>0){let[b,...w]=m;const S=i[v][1];km(S)&&km(b)&&(b=Nh(!0,S,b)),i[v]=[p,b,...w]}}}}const N3=new Hg().freeze();function Bh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ih(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jh(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 H1(e){if(!km(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function q1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ec(e){return D3(e)?e:new ek(e)}function D3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function L3(e){return typeof e=="string"||z3(e)}function z3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const B3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",F1=[],V1={allowDangerousHtml:!0},I3=/^(https?|ircs?|mailto|xmpp)$/i,j3=[{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 $3(e){const t=P3(e),n=U3(e);return H3(t.runSync(t.parse(n),n),e)}function P3(e){const t=e.rehypePlugins||F1,n=e.remarkPlugins||F1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...V1}:V1;return N3().use(vI).use(n).use(h3,i).use(t)}function U3(e){const t=e.children||"",n=new ek;return typeof t=="string"&&(n.value=t),n}function H3(e,t){const n=t.allowedElements,i=t.allowElement,o=t.components,l=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,d=t.urlTransform||q3;for(const m of j3)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+B3+m.id,void 0);return JC(e,p),Qz(e,{Fragment:$.Fragment,components:o,ignoreInvalidStyle:!0,jsx:$.jsx,jsxs:$.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let b;for(b in _h)if(Object.hasOwn(_h,b)&&Object.hasOwn(m.properties,b)){const w=m.properties[b],S=_h[b];(S===null||S.includes(m.tagName))&&(m.properties[b]=d(String(w||""),b,m))}}if(m.type==="element"){let b=n?!n.includes(m.tagName):l?l.includes(m.tagName):!1;if(!b&&i&&typeof g=="number"&&(b=!i(m,g,v)),b&&v&&typeof g=="number")return f&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function q3(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||i!==-1&&t>i||I3.test(e.slice(0,t))?e:""}const F3=Yo($.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator"),V3=Yo($.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline");String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)};const G3=({type:e,module:t,toggleModule:n,enabledModules:i,configValues:o})=>{const{attributes:l,listeners:u,setNodeRef:f,transform:d,transition:p,isDragging:m}=s5({id:t.name}),g={transform:Ki.Transform.toString(d),transition:p,zIndex:m?"100":"auto",opacity:m?.3:1};let v=t.name;const[b,w]=T.useState(!1),[S,k]=T.useState(!1),A=i[e].find(N=>N[0]===v)[1];return $.jsxs(ix,{ref:f,size:{xs:6,sm:4,md:3},style:g,children:[$.jsxs(HO,{children:[$.jsx(JO,{title:$.jsx(nx,{style:{paddingRight:"0 !important"},control:$.jsx(Yw,{sx:{paddingTop:0,paddingBottom:0},id:v,onClick:n,checked:A}),label:t.display_name})}),$.jsx(GO,{children:$.jsxs(Pr,{sx:{justifyContent:"space-between",display:"flex",width:"100%"},children:[$.jsxs(Pr,{children:[$.jsx(pS,{size:"small",onClick:()=>w(!0),children:$.jsx(V3,{})}),A&&t.configs&&v!="cli_feeder"?$.jsx(rm,{size:"small",onClick:()=>k(!0),children:"Configure"}):null]}),$.jsx(pS,{size:"small",sx:{textAlight:"right",cursor:"grab"},...u,...l,children:$.jsx(F3,{})})]})})]}),$.jsxs(Zw,{open:b,onClose:()=>w(!1),maxWidth:"lg",children:[$.jsx(ex,{children:t.display_name}),$.jsx(Jw,{children:$.jsx($3,{children:t.manifest.description.split(`
|
||
`).map(N=>N.trim()).join(`
|
||
`)})})]}),t.configs&&v!="cli_feeder"&&$.jsx(Y3,{module:t,open:S,setOpen:k,configValues:o})]})};function K3({config_value:e,module:t,configValues:n}){function i(d,p){n[t.name][d]=p}const o=t.configs[e],u=e.replace(/_/g," ").capitalize(),f=n[t.name][e]||o.default;return $.jsxs(Pr,{children:[$.jsxs(dn,{variant:"body1",style:{fontWeight:"bold"},children:[u," ",o.required&&"(required)"," "]}),$.jsxs(tx,{size:"small",children:[o.type==="bool"?$.jsx(nx,{control:$.jsx(Yw,{defaultChecked:f,size:"small",id:`${t}.${e}`,onChange:d=>{i(e,d.target.checked)}}),label:o.help}):o.choices!==void 0?$.jsx(ag,{size:"small",id:`${t}.${e}`,defaultValue:f,onChange:d=>{i(e,d.target.value)},children:o.choices.map(d=>$.jsx(VN,{value:d,children:d},`${t}.${e}.${d}`))}):o.type==="json_loader"?$.jsx(zS,{multiline:!0,size:"small",id:`${t}.${e}`,defaultValue:JSON.stringify(f,null,2),rows:6,onChange:d=>{try{let p=JSON.parse(d.target.value);i(e,p)}catch(p){console.log(p)}}}):$.jsx(zS,{size:"small",id:`${t}.${e}`,defaultValue:f,type:o.type==="int"?"number":"text",onChange:d=>{i(e,d.target.value)},required:o.required}),o.type!=="bool"&&$.jsx(rx,{children:o.help.capitalize()})]})]})}function Y3({module:e,open:t,setOpen:n,configValues:i}){return $.jsx($.Fragment,{children:$.jsxs(Zw,{open:t,onClose:()=>n(!1),maxWidth:"lg",children:[$.jsx(ex,{children:e.display_name}),$.jsx(Jw,{children:$.jsx(cx,{direction:"column",spacing:1,children:Object.keys(e.configs).map(o=>$.jsx(K3,{config_value:o,module:e,configValues:i},o))})})]})})}function X3({setYamlFile:e}){const[t,n]=T.useState(!1),[i,o]=T.useState("Drag and drop your orchestration.yaml file here, or click to select a file.");function l(u){let f=u.target.files[0];if(f.type!=="application/x-yaml"){n(!0),o("Invalid type, only YAML files are accepted.");return}let d=new FileReader;d.onload=function(p){let m=p.target?p.target.result:"";try{let g=Cz(m);if(g.errors.length>0){n(!0),o("Invalid file. Make sure your Orchestration is a valid YAML file with a 'steps' section in it.");return}else n(!1),o("File loaded successfully.");e(g)}catch(g){console.error(g)}},d.readAsText(f)}return $.jsx($.Fragment,{children:$.jsxs("div",{style:{width:"100%",border:"dashed",textAlign:"center",borderWidth:"1px",padding:"20px"},children:[$.jsx("input",{name:"file",type:"file",accept:".yaml",onChange:l}),$.jsx(dn,{style:{marginTop:"20px"},variant:"body1",color:t?"error":"",children:i})]})})}function W3({stepType:e,setEnabledModules:t,enabledModules:n,configValues:i}){const[o,l]=T.useState(!1),[u,f]=T.useState(),[d,p]=T.useState([]);T.useEffect(()=>{p(n[e].map(([w,S])=>w))},[n]);const m=w=>{let S=w.target.id,k=w.target.checked;(e==="feeder"||e==="formatter")&&n[e].filter(([_,O])=>_!==S&&O||k&&_===S).length>1?l(!0):l(!1);let A=Object.fromEntries(Object.keys(n).map(N=>[N,n[N].map(([_,O])=>_===S?[_,k]:[_,O])]));t(A)},g=DD(IS(fg),IS(ug,{coordinateGetter:c5})),v=w=>{f(w.active.id)},b=w=>{f(void 0);const{active:S,over:k}=w;if(S.id!==(k==null?void 0:k.id)){const A=d.indexOf(S.id),N=d.indexOf(k==null?void 0:k.id);let _=pg(d,A,N),O={...n};O[e]=n[e].sort((R,M)=>_.indexOf(R[0])-_.indexOf(M[0])),t(O)}};return $.jsxs($.Fragment,{children:[$.jsxs(Pr,{sx:{my:4},children:[$.jsx(dn,{id:e,variant:"h6",style:{textTransform:"capitalize"},children:e}),$.jsxs(dn,{variant:"body1",children:["Select the ",e," you wish to enable. You can drag and drop them to reorder them."]})]}),o?$.jsxs(dn,{variant:"body1",color:"error",children:["Only one ",e," can be enabled at a time."]}):null,$.jsx(ML,{sensors:g,collisionDetection:BD,onDragEnd:b,onDragStart:v,children:$.jsx(ix,{container:!0,spacing:1,children:$.jsxs(e5,{items:d,strategy:hg,children:[d.map(w=>{let S=Dc[w];return $.jsx(G3,{type:e,module:S,toggleModule:m,enabledModules:n,configValues:i},w)}),$.jsx(WL,{children:u?$.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:"grey",opacity:.1}}):null})]})},e)})]})}function Q3(){const[e,t]=T.useState(new qo),[n,i]=T.useState(Object.fromEntries(Object.keys(xo).map(f=>[f,xo[f].map(d=>[d,!1])]))),[o,l]=T.useState(Object.keys(Dc).reduce((f,d)=>(f[d]={},f),{})),u=function(f=!1){let d=n;const p={steps:Object.keys(xo).reduce((g,v)=>(g[v]=d[v].filter(([b,w])=>w).map(([b,w])=>b),g),{})};Object.keys(o).map(g=>{let v=o[g];v&&(p[g]=v)});let m=new qo(p);if(f)navigator.clipboard.writeText(String(m)).then(()=>{alert("Settings copied to clipboard.")});else{const g=new Blob([String(m)],{type:"application/x-yaml"}),v=URL.createObjectURL(g),b=document.createElement("a");b.href=v,b.download="orchestration.yaml",b.click()}};return T.useEffect(()=>{let f={};Object.keys(Dc).map(d=>{let m=Dc[d].configs;m&&(f[d]={},Object.keys(m).map(g=>{let v=m[g];v.default!==void 0&&(f[d][g]=v.default)}))}),l(f)},[]),T.useEffect(()=>{if(!e||e.contents==null)return;let d=e.toJS().steps,p=Object.fromEntries(Object.keys(xo).map(m=>[m,xo[m].map(g=>[g,d[m].indexOf(g)!==-1]).sort((g,v)=>{let b=d[m].indexOf(g[0]),w=d[m].indexOf(v[0]);return b===-1&&w===-1?g-v:w===-1?-1:b===-1?1:b-w})]).sort((m,g)=>QS.indexOf(m[0])-QS.indexOf(g[0])));i(p)},[e]),$.jsx(hM,{maxWidth:"lg",children:$.jsxs(Pr,{sx:{my:4},children:[$.jsxs(Pr,{sx:{my:4},children:[$.jsx(dn,{variant:"h5",children:"1. Select your orchestration.yaml settings file."}),$.jsx(X3,{setYamlFile:t})]}),$.jsxs(Pr,{sx:{my:4},children:[$.jsx(dn,{variant:"h5",children:"2. Choose the Modules you wish to enable/disable"}),Object.keys(xo).map(f=>$.jsx(Pr,{sx:{my:4},children:$.jsx(W3,{stepType:f,setEnabledModules:i,enabledModules:n,configValues:o})},f))]}),$.jsxs(Pr,{sx:{my:4},children:[$.jsx(dn,{variant:"h5",children:"3. Configure your Enabled Modules"}),$.jsx(dn,{variant:"body1",children:"Next to each module you've enabled, you can click 'Configure' to set the module's settings."})]}),$.jsxs(Pr,{sx:{my:4},children:[$.jsx(dn,{variant:"h5",children:"4. Save your settings"}),$.jsxs(cx,{direction:"row",spacing:2,sx:{my:2},children:[$.jsx(rm,{variant:"contained",color:"primary",onClick:()=>u(!0),children:"Copy Settings to Clipboard"}),$.jsx(rm,{variant:"contained",color:"primary",onClick:()=>u(),children:"Save Settings to File"})]})]})]})})}wT.createRoot(document.getElementById("root")).render($.jsx(T.StrictMode,{children:$.jsxs(bR,{theme:bD,children:[$.jsx(vM,{}),$.jsx(Q3,{})]})}));</script>
|
||
</head>
|
||
<body>
|
||
<div id="root"></div>
|
||
</body>
|
||
</html>
|