From 28d6f33c0bcaa6985f59bd11735a55fbc6f0b3ff Mon Sep 17 00:00:00 2001 From: Mark Stephen <168153708+smaduro-owc@users.noreply.github.com> Date: Mon, 18 Nov 2024 08:28:33 +0800 Subject: [PATCH] Update index-GBvC0EIR.js --- index-GBvC0EIR.js | 84 +++++++++++++++++++++++------------------------ 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/index-GBvC0EIR.js b/index-GBvC0EIR.js index 075352b..2e3826a 100644 --- a/index-GBvC0EIR.js +++ b/index-GBvC0EIR.js @@ -1,4 +1,4 @@ -function $3(e,t){for(var n=0;nr[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"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var F3=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ks(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var U3={exports:{}},vh={},z3={exports:{}},ut={};/** +function B3(e,t){for(var n=0;nr[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"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var I3=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function n1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ji(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var $3={exports:{}},vh={},F3={exports:{}},ut={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function $3(e,t){for(var n=0;n>>1,U=J[me];if(0>>1;meo(we,re))feo(ye,we)?(J[me]=ye,J[fe]=re,me=fe):(J[me]=we,J[te]=re,me=te);else if(feo(ye,re))J[me]=ye,J[fe]=re,me=fe;else break e}}return pe}function o(J,pe){var re=J.sortIndex-pe.sortIndex;return re!==0?re:J.id-pe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var c=[],f=[],p=1,h=null,m=3,x=!1,v=!1,y=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(J){for(var pe=n(f);pe!==null;){if(pe.callback===null)r(f);else if(pe.startTime<=J)r(f),pe.sortIndex=pe.expirationTime,t(c,pe);else break;pe=n(f)}}function k(J){if(y=!1,S(J),!v)if(n(c)!==null)v=!0,le(T);else{var pe=n(f);pe!==null&&de(k,pe.startTime-J)}}function T(J,pe){v=!1,y&&(y=!1,_($),$=-1),x=!0;var re=m;try{for(S(pe),h=n(c);h!==null&&(!(h.expirationTime>pe)||J&&!Y());){var me=h.callback;if(typeof me=="function"){h.callback=null,m=h.priorityLevel;var U=me(h.expirationTime<=pe);pe=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(c)&&r(c),S(pe)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var te=n(f);te!==null&&de(k,te.startTime-pe),ae=!1}return ae}finally{h=null,m=re,x=!1}}var E=!1,L=null,$=-1,q=5,B=-1;function Y(){return!(e.unstable_now()-BJ||125me?(J.sortIndex=re,t(f,J),n(c)===null&&J===n(f)&&(y?(_($),$=-1):y=!0,de(k,re-me))):(J.sortIndex=U,t(c,J),v||x||(v=!0,le(T))),J},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(J){var pe=m;return function(){var re=m;m=pe;try{return J.apply(this,arguments)}finally{m=re}}}})(J3);Q3.exports=J3;var HO=Q3.exports;/** + */(function(e){function t(J,pe){var re=J.length;J.push(pe);e:for(;0>>1,U=J[me];if(0>>1;meo(we,re))feo(ye,we)?(J[me]=ye,J[fe]=re,me=fe):(J[me]=we,J[te]=re,me=te);else if(feo(ye,re))J[me]=ye,J[fe]=re,me=fe;else break e}}return pe}function o(J,pe){var re=J.sortIndex-pe.sortIndex;return re!==0?re:J.id-pe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var c=[],f=[],p=1,h=null,m=3,x=!1,v=!1,y=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(J){for(var pe=n(f);pe!==null;){if(pe.callback===null)r(f);else if(pe.startTime<=J)r(f),pe.sortIndex=pe.expirationTime,t(c,pe);else break;pe=n(f)}}function k(J){if(y=!1,S(J),!v)if(n(c)!==null)v=!0,le(T);else{var pe=n(f);pe!==null&&de(k,pe.startTime-J)}}function T(J,pe){v=!1,y&&(y=!1,_($),$=-1),x=!0;var re=m;try{for(S(pe),h=n(c);h!==null&&(!(h.expirationTime>pe)||J&&!Y());){var me=h.callback;if(typeof me=="function"){h.callback=null,m=h.priorityLevel;var U=me(h.expirationTime<=pe);pe=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(c)&&r(c),S(pe)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var te=n(f);te!==null&&de(k,te.startTime-pe),ae=!1}return ae}finally{h=null,m=re,x=!1}}var E=!1,L=null,$=-1,q=5,B=-1;function Y(){return!(e.unstable_now()-BJ||125me?(J.sortIndex=re,t(f,J),n(c)===null&&J===n(f)&&(y?(_($),$=-1):y=!0,de(k,re-me))):(J.sortIndex=U,t(c,J),v||x||(v=!0,le(T))),J},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(J){var pe=m;return function(){var re=m;m=pe;try{return J.apply(this,arguments)}finally{m=re}}}})(Z3);X3.exports=Z3;var VO=X3.exports;/** * @license React * react-dom.production.min.js * @@ -30,26 +30,26 @@ function $3(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gv=Object.prototype.hasOwnProperty,KO=/^[: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]*$/,Xb={},Zb={};function YO(e){return gv.call(Zb,e)?!0:gv.call(Xb,e)?!1:KO.test(e)?Zb[e]=!0:(Xb[e]=!0,!1)}function XO(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ZO(e,t,n,r){if(t===null||typeof t>"u"||XO(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Sr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){er[e]=new Sr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];er[t]=new Sr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){er[e]=new Sr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){er[e]=new Sr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){er[e]=new Sr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){er[e]=new Sr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){er[e]=new Sr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){er[e]=new Sr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){er[e]=new Sr(e,5,!1,e.toLowerCase(),null,!1,!1)});var l1=/[\-:]([a-z])/g;function u1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(l1,u1);er[t]=new Sr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(l1,u1);er[t]=new Sr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(l1,u1);er[t]=new Sr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){er[e]=new Sr(e,1,!1,e.toLowerCase(),null,!1,!1)});er.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){er[e]=new Sr(e,1,!1,e.toLowerCase(),null,!0,!0)});function c1(e,t,n,r){var o=er.hasOwnProperty(t)?er[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mv=Object.prototype.hasOwnProperty,qO=/^[: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]*$/,Yb={},Xb={};function HO(e){return mv.call(Xb,e)?!0:mv.call(Yb,e)?!1:qO.test(e)?Xb[e]=!0:(Yb[e]=!0,!1)}function GO(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function KO(e,t,n,r){if(t===null||typeof t>"u"||GO(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Sr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){er[e]=new Sr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];er[t]=new Sr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){er[e]=new Sr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){er[e]=new Sr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){er[e]=new Sr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){er[e]=new Sr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){er[e]=new Sr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){er[e]=new Sr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){er[e]=new Sr(e,5,!1,e.toLowerCase(),null,!1,!1)});var a1=/[\-:]([a-z])/g;function l1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(a1,l1);er[t]=new Sr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(a1,l1);er[t]=new Sr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(a1,l1);er[t]=new Sr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){er[e]=new Sr(e,1,!1,e.toLowerCase(),null,!1,!1)});er.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){er[e]=new Sr(e,1,!1,e.toLowerCase(),null,!0,!0)});function u1(e,t,n,r){var o=er.hasOwnProperty(t)?er[t]:null;(o!==null?o.type!==0:r||!(2u||o[a]!==i[u]){var c=` -`+o[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=u);break}}}finally{dg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ec(e):""}function QO(e){switch(e.tag){case 5:return ec(e.type);case 16:return ec("Lazy");case 13:return ec("Suspense");case 19:return ec("SuspenseList");case 0:case 2:case 15:return e=pg(e.type,!1),e;case 11:return e=pg(e.type.render,!1),e;case 1:return e=pg(e.type,!0),e;default:return""}}function xv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ul:return"Fragment";case ll:return"Portal";case vv:return"Profiler";case f1:return"StrictMode";case yv:return"Suspense";case wv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nC:return(e.displayName||"Context")+".Consumer";case tC:return(e._context.displayName||"Context")+".Provider";case d1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case p1:return t=e.displayName||null,t!==null?t:xv(e.type)||"Memo";case ss:t=e._payload,e=e._init;try{return xv(e(t))}catch{}}return null}function JO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xv(t);case 8:return t===f1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Cs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eL(e){var t=oC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yd(e){e._valueTracker||(e._valueTracker=eL(e))}function iC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bv(e,t){var n=t.checked;return ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sC(e,t){t=t.checked,t!=null&&c1(e,"checked",t,!1)}function _v(e,t){sC(e,t);var n=Cs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Sv(e,t.type,n):t.hasOwnProperty("defaultValue")&&Sv(e,t.type,Cs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function e_(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Sv(e,t,n){(t!=="number"||Pp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tc=Array.isArray;function Cl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=wd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tL=["Webkit","ms","Moz","O"];Object.keys(uc).forEach(function(e){tL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uc[t]=uc[e]})});function cC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uc.hasOwnProperty(e)&&uc[e]?(""+t).trim():t+"px"}function fC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var nL=ln({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Av(e,t){if(t){if(nL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ve(62))}}function Rv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kv=null;function h1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tv=null,Al=null,Rl=null;function r_(e){if(e=of(e)){if(typeof Tv!="function")throw Error(ve(280));var t=e.stateNode;t&&(t=_h(t),Tv(e.stateNode,e.type,t))}}function dC(e){Al?Rl?Rl.push(e):Rl=[e]:Al=e}function pC(){if(Al){var e=Al,t=Rl;if(Rl=Al=null,r_(e),t)for(e=0;e>>=0,e===0?32:31-(pL(e)/hL|0)|0}var xd=64,bd=4194304;function nc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~o;u!==0?r=nc(u):(i&=a,i!==0&&(r=nc(i)))}else a=n&~o,a!==0?r=nc(a):i!==0&&(r=nc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zo(t),e[t]=n}function yL(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=fc),d_=" ",p_=!1;function LC(e,t){switch(e){case"keyup":return HL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cl=!1;function KL(e,t){switch(e){case"compositionend":return NC(t);case"keypress":return t.which!==32?null:(p_=!0,d_);case"textInput":return e=t.data,e===d_&&p_?null:e;default:return null}}function YL(e,t){if(cl)return e==="compositionend"||!_1&&LC(e,t)?(e=PC(),op=w1=ds=null,cl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=v_(n)}}function $C(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$C(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FC(){for(var e=window,t=Pp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pp(e.document)}return t}function S1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function oN(e){var t=FC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$C(n.ownerDocument.documentElement,n)){if(r!==null&&S1(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=y_(n,i);var a=y_(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fl=null,Mv=null,pc=null,Bv=!1;function w_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bv||fl==null||fl!==Pp(r)||(r=fl,"selectionStart"in r&&S1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pc&&Pc(pc,r)||(pc=r,r=$p(Mv,"onSelect"),0hl||(e.current=jv[hl],jv[hl]=null,hl--)}function qt(e,t){hl++,jv[hl]=e.current,e.current=t}var As={},fr=Ds(As),Dr=Ds(!1),ga=As;function Il(e,t){var n=e.type.contextTypes;if(!n)return As;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pr(e){return e=e.childContextTypes,e!=null}function Up(){Yt(Dr),Yt(fr)}function A_(e,t,n){if(fr.current!==As)throw Error(ve(168));qt(fr,t),qt(Dr,n)}function KC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ve(108,JO(e)||"Unknown",o));return ln({},n,r)}function zp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||As,ga=fr.current,qt(fr,e),qt(Dr,Dr.current),!0}function R_(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=KC(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(fr),qt(fr,e)):Yt(Dr),qt(Dr,n)}var Oi=null,Sh=!1,Rg=!1;function YC(e){Oi===null?Oi=[e]:Oi.push(e)}function gN(e){Sh=!0,YC(e)}function Ps(){if(!Rg&&Oi!==null){Rg=!0;var e=0,t=Lt;try{var n=Oi;for(Lt=1;e>=a,o-=a,Ni=1<<32-Zo(t)+o|n<$?(q=L,L=null):q=L.sibling;var B=m(_,L,S[$],k);if(B===null){L===null&&(L=q);break}e&&L&&B.alternate===null&&t(_,L),w=i(B,w,$),E===null?T=B:E.sibling=B,E=B,L=q}if($===S.length)return n(_,L),en&&Xs(_,$),T;if(L===null){for(;$$?(q=L,L=null):q=L.sibling;var Y=m(_,L,B.value,k);if(Y===null){L===null&&(L=q);break}e&&L&&Y.alternate===null&&t(_,L),w=i(Y,w,$),E===null?T=Y:E.sibling=Y,E=Y,L=q}if(B.done)return n(_,L),en&&Xs(_,$),T;if(L===null){for(;!B.done;$++,B=S.next())B=h(_,B.value,k),B!==null&&(w=i(B,w,$),E===null?T=B:E.sibling=B,E=B);return en&&Xs(_,$),T}for(L=r(_,L);!B.done;$++,B=S.next())B=x(L,_,$,B.value,k),B!==null&&(e&&B.alternate!==null&&L.delete(B.key===null?$:B.key),w=i(B,w,$),E===null?T=B:E.sibling=B,E=B);return e&&L.forEach(function(se){return t(_,se)}),en&&Xs(_,$),T}function A(_,w,S,k){if(typeof S=="object"&&S!==null&&S.type===ul&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case vd:e:{for(var T=S.key,E=w;E!==null;){if(E.key===T){if(T=S.type,T===ul){if(E.tag===7){n(_,E.sibling),w=o(E,S.props.children),w.return=_,_=w;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===ss&&D_(T)===E.type){n(_,E.sibling),w=o(E,S.props),w.ref=Iu(_,E,S),w.return=_,_=w;break e}n(_,E);break}else t(_,E);E=E.sibling}S.type===ul?(w=fa(S.props.children,_.mode,k,S.key),w.return=_,_=w):(k=dp(S.type,S.key,S.props,null,_.mode,k),k.ref=Iu(_,w,S),k.return=_,_=k)}return a(_);case ll:e:{for(E=S.key;w!==null;){if(w.key===E)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(_,w.sibling),w=o(w,S.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=Mg(S,_.mode,k),w.return=_,_=w}return a(_);case ss:return E=S._init,A(_,w,E(S._payload),k)}if(tc(S))return v(_,w,S,k);if(Ou(S))return y(_,w,S,k);kd(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(_,w.sibling),w=o(w,S),w.return=_,_=w):(n(_,w),w=Ng(S,_.mode,k),w.return=_,_=w),a(_)):n(_,w)}return A}var Fl=JC(!0),e5=JC(!1),Wp=Ds(null),qp=null,vl=null,R1=null;function k1(){R1=vl=qp=null}function T1(e){var t=Wp.current;Yt(Wp),e._currentValue=t}function qv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Tl(e,t){qp=e,R1=vl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tr=!0),e.firstContext=null)}function Do(e){var t=e._currentValue;if(R1!==e)if(e={context:e,memoizedValue:t,next:null},vl===null){if(qp===null)throw Error(ve(308));vl=e,qp.dependencies={lanes:0,firstContext:e}}else vl=vl.next=e;return t}var oa=null;function D1(e){oa===null?oa=[e]:oa.push(e)}function t5(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,D1(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var as=!1;function P1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function n5(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,xt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return o=r.interleaved,o===null?(t.next=t,D1(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function sp(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,g1(e,n)}}function P_(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hp(e,t,n,r){var o=e.updateQueue;as=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var c=u,f=c.next;c.next=null,a===null?i=f:a.next=f,a=c;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==a&&(u===null?p.firstBaseUpdate=f:u.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;a=0,p=f=c=null,u=i;do{var m=u.lane,x=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:x,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,y=u;switch(m=t,x=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(x,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,m=typeof v=="function"?v.call(x,h,m):v,m==null)break e;h=ln({},h,m);break e;case 2:as=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else x={eventTime:x,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=x,c=h):p=p.next=x,a|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);wa|=a,e.lanes=a,e.memoizedState=h}}function O_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Tg.transition;Tg.transition={};try{e(!1),t()}finally{Lt=n,Tg.transition=r}}function w5(){return Po().memoizedState}function xN(e,t,n){var r=_s(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},x5(e))b5(t,n);else if(n=t5(e,t,n,r),n!==null){var o=br();Qo(n,e,r,o),_5(n,t,r)}}function bN(e,t,n){var r=_s(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(x5(e))b5(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,Jo(u,a)){var c=t.interleaved;c===null?(o.next=o,D1(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=t5(e,t,o,r),n!==null&&(o=br(),Qo(n,e,r,o),_5(n,t,r))}}function x5(e){var t=e.alternate;return e===an||t!==null&&t===an}function b5(e,t){hc=Kp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _5(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,g1(e,n)}}var Yp={readContext:Do,useCallback:ar,useContext:ar,useEffect:ar,useImperativeHandle:ar,useInsertionEffect:ar,useLayoutEffect:ar,useMemo:ar,useReducer:ar,useRef:ar,useState:ar,useDebugValue:ar,useDeferredValue:ar,useTransition:ar,useMutableSource:ar,useSyncExternalStore:ar,useId:ar,unstable_isNewReconciler:!1},_N={readContext:Do,useCallback:function(e,t){return li().memoizedState=[e,t===void 0?null:t],e},useContext:Do,useEffect:N_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,lp(4194308,4,h5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lp(4194308,4,e,t)},useInsertionEffect:function(e,t){return lp(4,2,e,t)},useMemo:function(e,t){var n=li();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xN.bind(null,an,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:L_,useDebugValue:F1,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=L_(!1),t=e[0];return e=wN.bind(null,e[1]),li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=an,o=li();if(en){if(n===void 0)throw Error(ve(407));n=n()}else{if(n=t(),jn===null)throw Error(ve(349));ya&30||s5(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,N_(l5.bind(null,r,i,e),[e]),r.flags|=2048,Fc(9,a5.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=li(),t=jn.identifierPrefix;if(en){var n=Mi,r=Ni;n=(r&~(1<<32-Zo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ic++,0")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=u);break}}}finally{dg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ec(e):""}function YO(e){switch(e.tag){case 5:return ec(e.type);case 16:return ec("Lazy");case 13:return ec("Suspense");case 19:return ec("SuspenseList");case 0:case 2:case 15:return e=pg(e.type,!1),e;case 11:return e=pg(e.type.render,!1),e;case 1:return e=pg(e.type,!0),e;default:return""}}function wv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ul:return"Fragment";case ll:return"Portal";case gv:return"Profiler";case c1:return"StrictMode";case vv:return"Suspense";case yv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eC:return(e.displayName||"Context")+".Consumer";case J3:return(e._context.displayName||"Context")+".Provider";case f1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d1:return t=e.displayName||null,t!==null?t:wv(e.type)||"Memo";case as:t=e._payload,e=e._init;try{return wv(e(t))}catch{}}return null}function XO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wv(t);case 8:return t===c1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function As(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ZO(e){var t=nC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yd(e){e._valueTracker||(e._valueTracker=ZO(e))}function rC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xv(e,t){var n=t.checked;return ln({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=As(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oC(e,t){t=t.checked,t!=null&&u1(e,"checked",t,!1)}function bv(e,t){oC(e,t);var n=As(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_v(e,t.type,n):t.hasOwnProperty("defaultValue")&&_v(e,t.type,As(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _v(e,t,n){(t!=="number"||Pp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tc=Array.isArray;function Cl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=wd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},QO=["Webkit","ms","Moz","O"];Object.keys(uc).forEach(function(e){QO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uc[t]=uc[e]})});function lC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uc.hasOwnProperty(e)&&uc[e]?(""+t).trim():t+"px"}function uC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var JO=ln({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Cv(e,t){if(t){if(JO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ve(62))}}function Av(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rv=null;function p1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kv=null,Al=null,Rl=null;function n_(e){if(e=of(e)){if(typeof kv!="function")throw Error(ve(280));var t=e.stateNode;t&&(t=_h(t),kv(e.stateNode,e.type,t))}}function cC(e){Al?Rl?Rl.push(e):Rl=[e]:Al=e}function fC(){if(Al){var e=Al,t=Rl;if(Rl=Al=null,n_(e),t)for(e=0;e>>=0,e===0?32:31-(cL(e)/fL|0)|0}var xd=64,bd=4194304;function nc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~o;u!==0?r=nc(u):(i&=a,i!==0&&(r=nc(i)))}else a=n&~o,a!==0?r=nc(a):i!==0&&(r=nc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zo(t),e[t]=n}function mL(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=fc),f_=" ",d_=!1;function PC(e,t){switch(e){case"keyup":return VL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cl=!1;function qL(e,t){switch(e){case"compositionend":return OC(t);case"keypress":return t.which!==32?null:(d_=!0,f_);case"textInput":return e=t.data,e===f_&&d_?null:e;default:return null}}function HL(e,t){if(cl)return e==="compositionend"||!b1&&PC(e,t)?(e=TC(),op=y1=ps=null,cl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=g_(n)}}function BC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?BC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function IC(){for(var e=window,t=Pp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pp(e.document)}return t}function _1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tN(e){var t=IC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&BC(n.ownerDocument.documentElement,n)){if(r!==null&&_1(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=v_(n,i);var a=v_(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fl=null,Nv=null,pc=null,Mv=!1;function y_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mv||fl==null||fl!==Pp(r)||(r=fl,"selectionStart"in r&&_1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pc&&Pc(pc,r)||(pc=r,r=$p(Nv,"onSelect"),0hl||(e.current=zv[hl],zv[hl]=null,hl--)}function qt(e,t){hl++,zv[hl]=e.current,e.current=t}var Rs={},fr=Ds(Rs),Dr=Ds(!1),va=Rs;function Il(e,t){var n=e.type.contextTypes;if(!n)return Rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pr(e){return e=e.childContextTypes,e!=null}function Up(){Yt(Dr),Yt(fr)}function C_(e,t,n){if(fr.current!==Rs)throw Error(ve(168));qt(fr,t),qt(Dr,n)}function HC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ve(108,XO(e)||"Unknown",o));return ln({},n,r)}function zp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rs,va=fr.current,qt(fr,e),qt(Dr,Dr.current),!0}function A_(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=HC(e,t,va),r.__reactInternalMemoizedMergedChildContext=e,Yt(Dr),Yt(fr),qt(fr,e)):Yt(Dr),qt(Dr,n)}var Oi=null,Sh=!1,Rg=!1;function GC(e){Oi===null?Oi=[e]:Oi.push(e)}function pN(e){Sh=!0,GC(e)}function Ps(){if(!Rg&&Oi!==null){Rg=!0;var e=0,t=Lt;try{var n=Oi;for(Lt=1;e>=a,o-=a,Ni=1<<32-Zo(t)+o|n<$?(q=L,L=null):q=L.sibling;var B=m(_,L,S[$],k);if(B===null){L===null&&(L=q);break}e&&L&&B.alternate===null&&t(_,L),w=i(B,w,$),E===null?T=B:E.sibling=B,E=B,L=q}if($===S.length)return n(_,L),en&&Zs(_,$),T;if(L===null){for(;$$?(q=L,L=null):q=L.sibling;var Y=m(_,L,B.value,k);if(Y===null){L===null&&(L=q);break}e&&L&&Y.alternate===null&&t(_,L),w=i(Y,w,$),E===null?T=Y:E.sibling=Y,E=Y,L=q}if(B.done)return n(_,L),en&&Zs(_,$),T;if(L===null){for(;!B.done;$++,B=S.next())B=h(_,B.value,k),B!==null&&(w=i(B,w,$),E===null?T=B:E.sibling=B,E=B);return en&&Zs(_,$),T}for(L=r(_,L);!B.done;$++,B=S.next())B=x(L,_,$,B.value,k),B!==null&&(e&&B.alternate!==null&&L.delete(B.key===null?$:B.key),w=i(B,w,$),E===null?T=B:E.sibling=B,E=B);return e&&L.forEach(function(se){return t(_,se)}),en&&Zs(_,$),T}function A(_,w,S,k){if(typeof S=="object"&&S!==null&&S.type===ul&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case vd:e:{for(var T=S.key,E=w;E!==null;){if(E.key===T){if(T=S.type,T===ul){if(E.tag===7){n(_,E.sibling),w=o(E,S.props.children),w.return=_,_=w;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===as&&T_(T)===E.type){n(_,E.sibling),w=o(E,S.props),w.ref=Iu(_,E,S),w.return=_,_=w;break e}n(_,E);break}else t(_,E);E=E.sibling}S.type===ul?(w=da(S.props.children,_.mode,k,S.key),w.return=_,_=w):(k=dp(S.type,S.key,S.props,null,_.mode,k),k.ref=Iu(_,w,S),k.return=_,_=k)}return a(_);case ll:e:{for(E=S.key;w!==null;){if(w.key===E)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(_,w.sibling),w=o(w,S.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=Mg(S,_.mode,k),w.return=_,_=w}return a(_);case as:return E=S._init,A(_,w,E(S._payload),k)}if(tc(S))return v(_,w,S,k);if(Ou(S))return y(_,w,S,k);kd(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(_,w.sibling),w=o(w,S),w.return=_,_=w):(n(_,w),w=Ng(S,_.mode,k),w.return=_,_=w),a(_)):n(_,w)}return A}var Fl=ZC(!0),QC=ZC(!1),Wp=Ds(null),qp=null,vl=null,A1=null;function R1(){A1=vl=qp=null}function k1(e){var t=Wp.current;Yt(Wp),e._currentValue=t}function Wv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Tl(e,t){qp=e,A1=vl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tr=!0),e.firstContext=null)}function Do(e){var t=e._currentValue;if(A1!==e)if(e={context:e,memoizedValue:t,next:null},vl===null){if(qp===null)throw Error(ve(308));vl=e,qp.dependencies={lanes:0,firstContext:e}}else vl=vl.next=e;return t}var ia=null;function T1(e){ia===null?ia=[e]:ia.push(e)}function JC(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,T1(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ls=!1;function D1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e5(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bs(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,xt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return o=r.interleaved,o===null?(t.next=t,T1(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function sp(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,m1(e,n)}}function D_(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hp(e,t,n,r){var o=e.updateQueue;ls=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var c=u,f=c.next;c.next=null,a===null?i=f:a.next=f,a=c;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==a&&(u===null?p.firstBaseUpdate=f:u.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;a=0,p=f=c=null,u=i;do{var m=u.lane,x=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:x,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,y=u;switch(m=t,x=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(x,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,m=typeof v=="function"?v.call(x,h,m):v,m==null)break e;h=ln({},h,m);break e;case 2:ls=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else x={eventTime:x,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(f=p=x,c=h):p=p.next=x,a|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);xa|=a,e.lanes=a,e.memoizedState=h}}function P_(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Tg.transition;Tg.transition={};try{e(!1),t()}finally{Lt=n,Tg.transition=r}}function v5(){return Po().memoizedState}function vN(e,t,n){var r=Ss(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},y5(e))w5(t,n);else if(n=JC(e,t,n,r),n!==null){var o=br();Qo(n,e,r,o),x5(n,t,r)}}function yN(e,t,n){var r=Ss(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(y5(e))w5(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,Jo(u,a)){var c=t.interleaved;c===null?(o.next=o,T1(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=JC(e,t,o,r),n!==null&&(o=br(),Qo(n,e,r,o),x5(n,t,r))}}function y5(e){var t=e.alternate;return e===an||t!==null&&t===an}function w5(e,t){hc=Kp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function x5(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,m1(e,n)}}var Yp={readContext:Do,useCallback:ar,useContext:ar,useEffect:ar,useImperativeHandle:ar,useInsertionEffect:ar,useLayoutEffect:ar,useMemo:ar,useReducer:ar,useRef:ar,useState:ar,useDebugValue:ar,useDeferredValue:ar,useTransition:ar,useMutableSource:ar,useSyncExternalStore:ar,useId:ar,unstable_isNewReconciler:!1},wN={readContext:Do,useCallback:function(e,t){return li().memoizedState=[e,t===void 0?null:t],e},useContext:Do,useEffect:L_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,lp(4194308,4,d5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lp(4194308,4,e,t)},useInsertionEffect:function(e,t){return lp(4,2,e,t)},useMemo:function(e,t){var n=li();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vN.bind(null,an,e),[r.memoizedState,e]},useRef:function(e){var t=li();return e={current:e},t.memoizedState=e},useState:O_,useDebugValue:$1,useDeferredValue:function(e){return li().memoizedState=e},useTransition:function(){var e=O_(!1),t=e[0];return e=gN.bind(null,e[1]),li().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=an,o=li();if(en){if(n===void 0)throw Error(ve(407));n=n()}else{if(n=t(),Vn===null)throw Error(ve(349));wa&30||o5(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,L_(s5.bind(null,r,i,e),[e]),r.flags|=2048,Fc(9,i5.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=li(),t=Vn.identifierPrefix;if(en){var n=Mi,r=Ni;n=(r&~(1<<32-Zo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ic++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[fi]=t,e[Nc]=r,O5(e,t,!1,!1),t.stateNode=e;e:{switch(a=Rv(n,r),n){case"dialog":Gt("cancel",e),Gt("close",e),o=r;break;case"iframe":case"object":case"embed":Gt("load",e),o=r;break;case"video":case"audio":for(o=0;ojl&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$u(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!en)return lr(t),null}else 2*bn()-i.renderingStartTime>jl&&n!==1073741824&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=bn(),t.sibling=null,n=sn.current,qt(sn,r?n&1|2:n&1),t):(lr(t),null);case 22:case 23:return q1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(lr(t),t.subtreeFlags&6&&(t.flags|=8192)):lr(t),null;case 24:return null;case 25:return null}throw Error(ve(156,t.tag))}function DN(e,t){switch(C1(t),t.tag){case 1:return Pr(t.type)&&Up(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ul(),Yt(Dr),Yt(fr),N1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return L1(t),null;case 13:if(Yt(sn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ve(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(sn),null;case 4:return Ul(),null;case 10:return T1(t.type._context),null;case 22:case 23:return q1(),null;case 24:return null;default:return null}}var Dd=!1,cr=!1,PN=typeof WeakSet=="function"?WeakSet:Set,Te=null;function yl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gn(e,t,r)}else n.current=null}function e2(e,t,n){try{n()}catch(r){gn(e,t,r)}}var q_=!1;function ON(e,t){if(Iv=Bp,e=FC(),S1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var x;h!==n||o!==0&&h.nodeType!==3||(u=a+o),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(x=h.firstChild)!==null;)m=h,h=x;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=a),m===i&&++p===r&&(c=a),(x=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=x}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for($v={focusedElem:e,selectionRange:n},Bp=!1,Te=t;Te!==null;)if(t=Te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Te=e;else for(;Te!==null;){t=Te;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,A=v.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:qo(t.type,y),A);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ve(163))}}catch(k){gn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Te=e;break}Te=t.return}return v=q_,q_=!1,v}function mc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&e2(t,n,i)}o=o.next}while(o!==r)}}function Ah(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function t2(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function M5(e){var t=e.alternate;t!==null&&(e.alternate=null,M5(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fi],delete t[Nc],delete t[zv],delete t[hN],delete t[mN])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function B5(e){return e.tag===5||e.tag===3||e.tag===4}function H_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B5(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function n2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fp));else if(r!==4&&(e=e.child,e!==null))for(n2(e,t,n),e=e.sibling;e!==null;)n2(e,t,n),e=e.sibling}function r2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(r2(e,t,n),e=e.sibling;e!==null;)r2(e,t,n),e=e.sibling}var Xn=null,Ho=!1;function ns(e,t,n){for(n=n.child;n!==null;)I5(e,t,n),n=n.sibling}function I5(e,t,n){if(di&&typeof di.onCommitFiberUnmount=="function")try{di.onCommitFiberUnmount(yh,n)}catch{}switch(n.tag){case 5:cr||yl(n,t);case 6:var r=Xn,o=Ho;Xn=null,ns(e,t,n),Xn=r,Ho=o,Xn!==null&&(Ho?(e=Xn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xn.removeChild(n.stateNode));break;case 18:Xn!==null&&(Ho?(e=Xn,n=n.stateNode,e.nodeType===8?Ag(e.parentNode,n):e.nodeType===1&&Ag(e,n),Tc(e)):Ag(Xn,n.stateNode));break;case 4:r=Xn,o=Ho,Xn=n.stateNode.containerInfo,Ho=!0,ns(e,t,n),Xn=r,Ho=o;break;case 0:case 11:case 14:case 15:if(!cr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&e2(n,t,a),o=o.next}while(o!==r)}ns(e,t,n);break;case 1:if(!cr&&(yl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){gn(n,t,u)}ns(e,t,n);break;case 21:ns(e,t,n);break;case 22:n.mode&1?(cr=(r=cr)||n.memoizedState!==null,ns(e,t,n),cr=r):ns(e,t,n);break;default:ns(e,t,n)}}function G_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new PN),t.forEach(function(r){var o=zN.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Vo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=bn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*NN(r/1960))-r,10e?16:e,ps===null)var r=!1;else{if(e=ps,ps=null,Qp=0,xt&6)throw Error(ve(331));var o=xt;for(xt|=4,Te=e.current;Te!==null;){var i=Te,a=i.child;if(Te.flags&16){var u=i.deletions;if(u!==null){for(var c=0;cbn()-V1?ca(e,0):j1|=n),Or(e,t)}function q5(e,t){t===0&&(e.mode&1?(t=bd,bd<<=1,!(bd&130023424)&&(bd=4194304)):t=1);var n=br();e=Fi(e,t),e!==null&&(nf(e,t,n),Or(e,n))}function UN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),q5(e,n)}function zN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ve(314))}r!==null&&r.delete(t),q5(e,n)}var H5;H5=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dr.current)Tr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tr=!1,kN(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,en&&t.flags&1048576&&XC(t,Vp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;up(e,t),e=t.pendingProps;var o=Il(t,fr.current);Tl(t,n),o=B1(null,t,r,e,o,n);var i=I1();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(r)?(i=!0,zp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,P1(t),o.updater=Ch,t.stateNode=o,o._reactInternals=t,Gv(t,r,e,n),t=Xv(null,t,r,!0,i,n)):(t.tag=0,en&&i&&E1(t),wr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(up(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=VN(r),e=qo(r,e),o){case 0:t=Yv(null,t,r,e,n);break e;case 1:t=j_(null,t,r,e,n);break e;case 11:t=U_(null,t,r,e,n);break e;case 14:t=z_(null,t,r,qo(r.type,e),n);break e}throw Error(ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),Yv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),j_(e,t,r,o,n);case 3:e:{if(T5(t),e===null)throw Error(ve(387));r=t.pendingProps,i=t.memoizedState,o=i.element,n5(e,t),Hp(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zl(Error(ve(423)),t),t=V_(e,t,r,n,o);break e}else if(r!==o){o=zl(Error(ve(424)),t),t=V_(e,t,r,n,o);break e}else for(Xr=ws(t.stateNode.containerInfo.firstChild),Zr=t,en=!0,Yo=null,n=e5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($l(),r===o){t=Ui(e,t,n);break e}wr(e,t,r,n)}t=t.child}return t;case 5:return r5(t),e===null&&Wv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Fv(r,o)?a=null:i!==null&&Fv(r,i)&&(t.flags|=32),k5(e,t),wr(e,t,a,n),t.child;case 6:return e===null&&Wv(t),null;case 13:return D5(e,t,n);case 4:return O1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fl(t,null,r,n):wr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),U_(e,t,r,o,n);case 7:return wr(e,t,t.pendingProps,n),t.child;case 8:return wr(e,t,t.pendingProps.children,n),t.child;case 12:return wr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,qt(Wp,r._currentValue),r._currentValue=a,i!==null)if(Jo(i.value,a)){if(i.children===o.children&&!Dr.current){t=Ui(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){a=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Bi(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),qv(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ve(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),qv(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}wr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Tl(t,n),o=Do(o),r=r(o),t.flags|=1,wr(e,t,r,n),t.child;case 14:return r=t.type,o=qo(r,t.pendingProps),o=qo(r.type,o),z_(e,t,r,o,n);case 15:return A5(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),up(e,t),t.tag=1,Pr(r)?(e=!0,zp(t)):e=!1,Tl(t,n),S5(t,r,o),Gv(t,r,o,n),Xv(null,t,r,!0,e,n);case 19:return P5(e,t,n);case 22:return R5(e,t,n)}throw Error(ve(156,t.tag))};function G5(e,t){return xC(e,t)}function jN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ao(e,t,n,r){return new jN(e,t,n,r)}function G1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function VN(e){if(typeof e=="function")return G1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===d1)return 11;if(e===p1)return 14}return 2}function Ss(e,t){var n=e.alternate;return n===null?(n=Ao(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function dp(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")G1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ul:return fa(n.children,o,i,t);case f1:a=8,o|=8;break;case vv:return e=Ao(12,n,t,o|2),e.elementType=vv,e.lanes=i,e;case yv:return e=Ao(13,n,t,o),e.elementType=yv,e.lanes=i,e;case wv:return e=Ao(19,n,t,o),e.elementType=wv,e.lanes=i,e;case rC:return kh(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tC:a=10;break e;case nC:a=9;break e;case d1:a=11;break e;case p1:a=14;break e;case ss:a=16,r=null;break e}throw Error(ve(130,e==null?e:typeof e,""))}return t=Ao(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function fa(e,t,n,r){return e=Ao(7,e,r,t),e.lanes=n,e}function kh(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=rC,e.lanes=n,e.stateNode={isHidden:!1},e}function Ng(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function Mg(e,t,n){return t=Ao(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WN(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mg(0),this.expirationTimes=mg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function K1(e,t,n,r,o,i,a,u,c){return e=new WN(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ao(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},P1(i),e}function qN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z5)}catch(e){console.error(e)}}Z5(),Z3.exports=ro;var Lh=Z3.exports;const xl=r1(Lh),XN=$3({__proto__:null,default:xl},[Lh]);var tS=Lh;mv.createRoot=tS.createRoot,mv.hydrateRoot=tS.hydrateRoot;var Q5={};function ZN(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var QN=ZN,rt=QN;function JN(e){return!!e&&typeof e.then=="function"}var Kt=JN;function eM(e,t){if(e!=null)return e;throw rt(t??"Got unexpected null or undefined")}var tn=eM;function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nh{getValue(){throw rt("BaseLoadable")}toPromise(){throw rt("BaseLoadable")}valueMaybe(){throw rt("BaseLoadable")}valueOrThrow(){throw rt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw rt("BaseLoadable")}promiseOrThrow(){throw rt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw rt("BaseLoadable")}errorOrThrow(){throw rt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw rt("BaseLoadable")}}class tM extends Nh{constructor(t){super(),et(this,"state","hasValue"),et(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Kt(n)?ba(n):Vl(n)?n:af(n)}catch(n){return Kt(n)?ba(n.next(()=>this.map(t))):Mh(n)}}}class nM extends Nh{constructor(t){super(),et(this,"state","hasError"),et(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class J5 extends Nh{constructor(t){super(),et(this,"state","loading"),et(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return ba(this.contents.then(n=>{const r=t(n);if(Vl(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(Kt(n))return n.then(()=>this.map(t).contents);throw n}))}}function af(e){return Object.freeze(new tM(e))}function Mh(e){return Object.freeze(new nM(e))}function ba(e){return Object.freeze(new J5(e))}function eA(){return Object.freeze(new J5(new Promise(()=>{})))}function rM(e){return e.every(t=>t.state==="hasValue")?af(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Mh(tn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):ba(Promise.all(e.map(t=>t.contents)))}function tA(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>Vl(o)?o:Kt(o)?ba(o):af(o)),r=rM(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,u)=>({...i,[a]:o[u]}),{}))}function Vl(e){return e instanceof Nh}const oM={of:e=>Kt(e)?ba(e):Vl(e)?e:af(e),error:e=>Mh(e),loading:()=>eA(),all:tA,isLoadable:Vl};var ka={loadableWithValue:af,loadableWithError:Mh,loadableWithPromise:ba,loadableLoading:eA,loadableAll:tA,isLoadable:Vl,RecoilLoadable:oM},iM=ka.loadableWithValue,sM=ka.loadableWithError,aM=ka.loadableWithPromise,lM=ka.loadableLoading,uM=ka.loadableAll,cM=ka.isLoadable,fM=ka.RecoilLoadable,lf=Object.freeze({__proto__:null,loadableWithValue:iM,loadableWithError:sM,loadableWithPromise:aM,loadableLoading:lM,loadableAll:uM,isLoadable:cM,RecoilLoadable:fM});const l2={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function dM(e,t){var n,r;const o=(n=Q5[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw rt(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function pM(e,t){var n;const r=(n=Q5[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function hM(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(dM("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{l2.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),pM("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{l2.RECOIL_GKS_ENABLED.add(n)})}))}hM();var su=l2;function Bh(e){return su.RECOIL_GKS_ENABLED.has(e)}Bh.setPass=e=>{su.RECOIL_GKS_ENABLED.add(e)};Bh.setFail=e=>{su.RECOIL_GKS_ENABLED.delete(e)};Bh.clear=()=>{su.RECOIL_GKS_ENABLED.clear()};var Ft=Bh;function mM(e,t,{error:n}={}){return null}var gM=mM,Q1=gM,Bg,Ig,$g;const vM=(Bg=Ze.createMutableSource)!==null&&Bg!==void 0?Bg:Ze.unstable_createMutableSource,nA=(Ig=Ze.useMutableSource)!==null&&Ig!==void 0?Ig:Ze.unstable_useMutableSource,rA=($g=Ze.useSyncExternalStore)!==null&&$g!==void 0?$g:Ze.unstable_useSyncExternalStore;function yM(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function wM(){return Ft("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Ft("recoil_sync_external_store")&&rA!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Ft("recoil_mutable_source")&&nA!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Ft("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Ft("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function xM(){return!1}var uf={createMutableSource:vM,useMutableSource:nA,useSyncExternalStore:rA,currentRendererSupportsUseSyncExternalStore:yM,reactMode:wM,isFastRefreshEnabled:xM};class J1{constructor(t){et(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class oA extends J1{}class iA extends J1{}function bM(e){return e instanceof oA||e instanceof iA}var Ih={AbstractRecoilValue:J1,RecoilState:oA,RecoilValueReadOnly:iA,isRecoilValue:bM},_M=Ih.AbstractRecoilValue,SM=Ih.RecoilState,EM=Ih.RecoilValueReadOnly,CM=Ih.isRecoilValue,Wl=Object.freeze({__proto__:null,AbstractRecoilValue:_M,RecoilState:SM,RecoilValueReadOnly:EM,isRecoilValue:CM});function AM(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var $h=AM;class sA{}const RM=new sA,_a=new Map,ey=new Map;function kM(e){return $h(e,t=>tn(ey.get(t)))}function TM(e){if(_a.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Og(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gv(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _N=typeof WeakMap=="function"?WeakMap:Map;function _5(e,t,n){n=Bi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zp||(Zp=!0,r2=r),Gv(e,t)},n}function S5(e,t,n){n=Bi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Gv(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Gv(e,t),typeof r!="function"&&(_s===null?_s=new Set([this]):_s.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function B_(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _N;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=BN.bind(null,e,t,n),t.then(e,e))}function I_(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function $_(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Bi(-1,1),t.tag=2,bs(n,t,1))),n.lanes|=1),e)}var SN=Vi.ReactCurrentOwner,Tr=!1;function wr(e,t,n,r){t.child=e===null?QC(t,null,n,r):Fl(t,e.child,n,r)}function F_(e,t,n,r,o){n=n.render;var i=t.ref;return Tl(t,o),r=M1(e,t,n,r,i,o),n=B1(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ui(e,t,o)):(en&&n&&S1(t),t.flags|=1,wr(e,t,r,o),t.child)}function U_(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!H1(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,E5(e,t,i,r,o)):(e=dp(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Pc,n(a,r)&&e.ref===t.ref)return Ui(e,t,o)}return t.flags|=1,e=Es(i,r),e.ref=t.ref,e.return=t,t.child=e}function E5(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Pc(i,r)&&e.ref===t.ref)if(Tr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Tr=!0);else return t.lanes=e.lanes,Ui(e,t,o)}return Kv(e,t,n,r,o)}function C5(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qt(wl,Gr),Gr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,qt(wl,Gr),Gr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,qt(wl,Gr),Gr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,qt(wl,Gr),Gr|=r;return wr(e,t,o,n),t.child}function A5(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kv(e,t,n,r,o){var i=Pr(n)?va:fr.current;return i=Il(t,i),Tl(t,o),n=M1(e,t,n,r,i,o),r=B1(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ui(e,t,o)):(en&&r&&S1(t),t.flags|=1,wr(e,t,n,o),t.child)}function z_(e,t,n,r,o){if(Pr(n)){var i=!0;zp(t)}else i=!1;if(Tl(t,o),t.stateNode===null)up(e,t),b5(t,n,r),Hv(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,u=t.memoizedProps;a.props=u;var c=a.context,f=n.contextType;typeof f=="object"&&f!==null?f=Do(f):(f=Pr(n)?va:fr.current,f=Il(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==r||c!==f)&&M_(t,a,r,f),ls=!1;var m=t.memoizedState;a.state=m,Hp(t,r,a,o),c=t.memoizedState,u!==r||m!==c||Dr.current||ls?(typeof p=="function"&&(qv(t,n,p,r),c=t.memoizedState),(u=ls||N_(t,n,u,r,m,c,f))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=f,r=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,e5(e,t),u=t.memoizedProps,f=t.type===t.elementType?u:qo(t.type,u),a.props=f,h=t.pendingProps,m=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Do(c):(c=Pr(n)?va:fr.current,c=Il(t,c));var x=n.getDerivedStateFromProps;(p=typeof x=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==h||m!==c)&&M_(t,a,r,c),ls=!1,m=t.memoizedState,a.state=m,Hp(t,r,a,o);var v=t.memoizedState;u!==h||m!==v||Dr.current||ls?(typeof x=="function"&&(qv(t,n,x,r),v=t.memoizedState),(f=ls||N_(t,n,f,r,m,v,c)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=c,r=f):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Yv(e,t,n,r,i,o)}function Yv(e,t,n,r,o,i){A5(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&A_(t,n,!1),Ui(e,t,i);r=t.stateNode,SN.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Fl(t,e.child,null,i),t.child=Fl(t,null,u,i)):wr(e,t,u,i),t.memoizedState=r.state,o&&A_(t,n,!0),t.child}function R5(e){var t=e.stateNode;t.pendingContext?C_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&C_(e,t.context,!1),P1(e,t.containerInfo)}function j_(e,t,n,r,o){return $l(),C1(o),t.flags|=256,wr(e,t,n,r),t.child}var Xv={dehydrated:null,treeContext:null,retryLane:0};function Zv(e){return{baseLanes:e,cachePool:null,transitions:null}}function k5(e,t,n){var r=t.pendingProps,o=sn.current,i=!1,a=(t.flags&128)!==0,u;if((u=a)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),qt(sn,o&1),e===null)return Vv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=kh(a,r,0,null),e=da(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Zv(n),t.memoizedState=Xv,e):F1(t,a));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return EN(e,t,a,r,u,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,u=o.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Es(o,c),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?i=Es(u,i):(i=da(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Zv(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Xv,r}return i=e.child,e=i.sibling,r=Es(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function F1(e,t){return t=kh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Td(e,t,n,r){return r!==null&&C1(r),Fl(t,e.child,null,n),e=F1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function EN(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Og(Error(ve(422))),Td(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=kh({mode:"visible",children:r.children},o,0,null),i=da(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Fl(t,e.child,null,a),t.child.memoizedState=Zv(a),t.memoizedState=Xv,i);if(!(t.mode&1))return Td(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(ve(419)),r=Og(i,r,void 0),Td(e,t,a,r)}if(u=(a&e.childLanes)!==0,Tr||u){if(r=Vn,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Fi(e,o),Qo(r,e,o,-1))}return q1(),r=Og(Error(ve(421))),Td(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=IN.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Xr=xs(o.nextSibling),Zr=t,en=!0,Yo=null,e!==null&&(bo[_o++]=Ni,bo[_o++]=Mi,bo[_o++]=ya,Ni=e.id,Mi=e.overflow,ya=t),t=F1(t,r.children),t.flags|=4096,t)}function V_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wv(e.return,t,n)}function Lg(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function T5(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wr(e,t,r.children,n),r=sn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&V_(e,n,t);else if(e.tag===19)V_(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(qt(sn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Gp(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Lg(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Gp(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Lg(t,!0,n,null,i);break;case"together":Lg(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function up(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ui(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ve(153));if(t.child!==null){for(e=t.child,n=Es(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Es(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function CN(e,t,n){switch(t.tag){case 3:R5(t),$l();break;case 5:t5(t);break;case 1:Pr(t.type)&&zp(t);break;case 4:P1(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;qt(Wp,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(qt(sn,sn.current&1),t.flags|=128,null):n&t.child.childLanes?k5(e,t,n):(qt(sn,sn.current&1),e=Ui(e,t,n),e!==null?e.sibling:null);qt(sn,sn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return T5(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),qt(sn,sn.current),r)break;return null;case 22:case 23:return t.lanes=0,C5(e,t,n)}return Ui(e,t,n)}var D5,Qv,P5,O5;D5=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Qv=function(){};P5=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,sa(pi.current);var i=null;switch(n){case"input":o=xv(e,o),r=xv(e,r),i=[];break;case"select":o=ln({},o,{value:void 0}),r=ln({},r,{value:void 0}),i=[];break;case"textarea":o=Sv(e,o),r=Sv(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fp)}Cv(n,r);var a;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var u=o[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Ec.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(u=o!=null?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(c!=null||u!=null))if(f==="style")if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Ec.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&Gt("scroll",e),i||u===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};O5=function(e,t,n,r){n!==r&&(t.flags|=4)};function $u(e,t){if(!en)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function lr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function AN(e,t,n){var r=t.pendingProps;switch(E1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lr(t),null;case 1:return Pr(t.type)&&Up(),lr(t),null;case 3:return r=t.stateNode,Ul(),Yt(Dr),Yt(fr),L1(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Rd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yo!==null&&(s2(Yo),Yo=null))),Qv(e,t),lr(t),null;case 5:O1(t);var o=sa(Bc.current);if(n=t.type,e!==null&&t.stateNode!=null)P5(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ve(166));return lr(t),null}if(e=sa(pi.current),Rd(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fi]=t,r[Nc]=i,e=(t.mode&1)!==0,n){case"dialog":Gt("cancel",r),Gt("close",r);break;case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[fi]=t,e[Nc]=r,D5(e,t,!1,!1),t.stateNode=e;e:{switch(a=Av(n,r),n){case"dialog":Gt("cancel",e),Gt("close",e),o=r;break;case"iframe":case"object":case"embed":Gt("load",e),o=r;break;case"video":case"audio":for(o=0;ojl&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$u(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!en)return lr(t),null}else 2*bn()-i.renderingStartTime>jl&&n!==1073741824&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=bn(),t.sibling=null,n=sn.current,qt(sn,r?n&1|2:n&1),t):(lr(t),null);case 22:case 23:return W1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(lr(t),t.subtreeFlags&6&&(t.flags|=8192)):lr(t),null;case 24:return null;case 25:return null}throw Error(ve(156,t.tag))}function RN(e,t){switch(E1(t),t.tag){case 1:return Pr(t.type)&&Up(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ul(),Yt(Dr),Yt(fr),L1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O1(t),null;case 13:if(Yt(sn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ve(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(sn),null;case 4:return Ul(),null;case 10:return k1(t.type._context),null;case 22:case 23:return W1(),null;case 24:return null;default:return null}}var Dd=!1,cr=!1,kN=typeof WeakSet=="function"?WeakSet:Set,Te=null;function yl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gn(e,t,r)}else n.current=null}function Jv(e,t,n){try{n()}catch(r){gn(e,t,r)}}var W_=!1;function TN(e,t){if(Bv=Bp,e=IC(),_1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var x;h!==n||o!==0&&h.nodeType!==3||(u=a+o),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(x=h.firstChild)!==null;)m=h,h=x;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=a),m===i&&++p===r&&(c=a),(x=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=x}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iv={focusedElem:e,selectionRange:n},Bp=!1,Te=t;Te!==null;)if(t=Te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Te=e;else for(;Te!==null;){t=Te;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,A=v.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:qo(t.type,y),A);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ve(163))}}catch(k){gn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Te=e;break}Te=t.return}return v=W_,W_=!1,v}function mc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Jv(t,n,i)}o=o.next}while(o!==r)}}function Ah(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function e2(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function L5(e){var t=e.alternate;t!==null&&(e.alternate=null,L5(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fi],delete t[Nc],delete t[Uv],delete t[fN],delete t[dN])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function N5(e){return e.tag===5||e.tag===3||e.tag===4}function q_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||N5(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function t2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fp));else if(r!==4&&(e=e.child,e!==null))for(t2(e,t,n),e=e.sibling;e!==null;)t2(e,t,n),e=e.sibling}function n2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(n2(e,t,n),e=e.sibling;e!==null;)n2(e,t,n),e=e.sibling}var Zn=null,Ho=!1;function rs(e,t,n){for(n=n.child;n!==null;)M5(e,t,n),n=n.sibling}function M5(e,t,n){if(di&&typeof di.onCommitFiberUnmount=="function")try{di.onCommitFiberUnmount(yh,n)}catch{}switch(n.tag){case 5:cr||yl(n,t);case 6:var r=Zn,o=Ho;Zn=null,rs(e,t,n),Zn=r,Ho=o,Zn!==null&&(Ho?(e=Zn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Zn.removeChild(n.stateNode));break;case 18:Zn!==null&&(Ho?(e=Zn,n=n.stateNode,e.nodeType===8?Ag(e.parentNode,n):e.nodeType===1&&Ag(e,n),Tc(e)):Ag(Zn,n.stateNode));break;case 4:r=Zn,o=Ho,Zn=n.stateNode.containerInfo,Ho=!0,rs(e,t,n),Zn=r,Ho=o;break;case 0:case 11:case 14:case 15:if(!cr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Jv(n,t,a),o=o.next}while(o!==r)}rs(e,t,n);break;case 1:if(!cr&&(yl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){gn(n,t,u)}rs(e,t,n);break;case 21:rs(e,t,n);break;case 22:n.mode&1?(cr=(r=cr)||n.memoizedState!==null,rs(e,t,n),cr=r):rs(e,t,n);break;default:rs(e,t,n)}}function H_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kN),t.forEach(function(r){var o=$N.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Vo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=bn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*PN(r/1960))-r,10e?16:e,hs===null)var r=!1;else{if(e=hs,hs=null,Qp=0,xt&6)throw Error(ve(331));var o=xt;for(xt|=4,Te=e.current;Te!==null;){var i=Te,a=i.child;if(Te.flags&16){var u=i.deletions;if(u!==null){for(var c=0;cbn()-j1?fa(e,0):z1|=n),Or(e,t)}function V5(e,t){t===0&&(e.mode&1?(t=bd,bd<<=1,!(bd&130023424)&&(bd=4194304)):t=1);var n=br();e=Fi(e,t),e!==null&&(nf(e,t,n),Or(e,n))}function IN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),V5(e,n)}function $N(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ve(314))}r!==null&&r.delete(t),V5(e,n)}var W5;W5=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dr.current)Tr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tr=!1,CN(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,en&&t.flags&1048576&&KC(t,Vp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;up(e,t),e=t.pendingProps;var o=Il(t,fr.current);Tl(t,n),o=M1(null,t,r,e,o,n);var i=B1();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(r)?(i=!0,zp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,D1(t),o.updater=Ch,t.stateNode=o,o._reactInternals=t,Hv(t,r,e,n),t=Yv(null,t,r,!0,i,n)):(t.tag=0,en&&i&&S1(t),wr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(up(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=UN(r),e=qo(r,e),o){case 0:t=Kv(null,t,r,e,n);break e;case 1:t=z_(null,t,r,e,n);break e;case 11:t=F_(null,t,r,e,n);break e;case 14:t=U_(null,t,r,qo(r.type,e),n);break e}throw Error(ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),Kv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),z_(e,t,r,o,n);case 3:e:{if(R5(t),e===null)throw Error(ve(387));r=t.pendingProps,i=t.memoizedState,o=i.element,e5(e,t),Hp(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=zl(Error(ve(423)),t),t=j_(e,t,r,n,o);break e}else if(r!==o){o=zl(Error(ve(424)),t),t=j_(e,t,r,n,o);break e}else for(Xr=xs(t.stateNode.containerInfo.firstChild),Zr=t,en=!0,Yo=null,n=QC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($l(),r===o){t=Ui(e,t,n);break e}wr(e,t,r,n)}t=t.child}return t;case 5:return t5(t),e===null&&Vv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,$v(r,o)?a=null:i!==null&&$v(r,i)&&(t.flags|=32),A5(e,t),wr(e,t,a,n),t.child;case 6:return e===null&&Vv(t),null;case 13:return k5(e,t,n);case 4:return P1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fl(t,null,r,n):wr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),F_(e,t,r,o,n);case 7:return wr(e,t,t.pendingProps,n),t.child;case 8:return wr(e,t,t.pendingProps.children,n),t.child;case 12:return wr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,qt(Wp,r._currentValue),r._currentValue=a,i!==null)if(Jo(i.value,a)){if(i.children===o.children&&!Dr.current){t=Ui(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){a=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Bi(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Wv(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ve(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Wv(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}wr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Tl(t,n),o=Do(o),r=r(o),t.flags|=1,wr(e,t,r,n),t.child;case 14:return r=t.type,o=qo(r,t.pendingProps),o=qo(r.type,o),U_(e,t,r,o,n);case 15:return E5(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qo(r,o),up(e,t),t.tag=1,Pr(r)?(e=!0,zp(t)):e=!1,Tl(t,n),b5(t,r,o),Hv(t,r,o,n),Yv(null,t,r,!0,e,n);case 19:return T5(e,t,n);case 22:return C5(e,t,n)}throw Error(ve(156,t.tag))};function q5(e,t){return yC(e,t)}function FN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ao(e,t,n,r){return new FN(e,t,n,r)}function H1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function UN(e){if(typeof e=="function")return H1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===f1)return 11;if(e===d1)return 14}return 2}function Es(e,t){var n=e.alternate;return n===null?(n=Ao(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function dp(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")H1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ul:return da(n.children,o,i,t);case c1:a=8,o|=8;break;case gv:return e=Ao(12,n,t,o|2),e.elementType=gv,e.lanes=i,e;case vv:return e=Ao(13,n,t,o),e.elementType=vv,e.lanes=i,e;case yv:return e=Ao(19,n,t,o),e.elementType=yv,e.lanes=i,e;case tC:return kh(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J3:a=10;break e;case eC:a=9;break e;case f1:a=11;break e;case d1:a=14;break e;case as:a=16,r=null;break e}throw Error(ve(130,e==null?e:typeof e,""))}return t=Ao(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function da(e,t,n,r){return e=Ao(7,e,r,t),e.lanes=n,e}function kh(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=tC,e.lanes=n,e.stateNode={isHidden:!1},e}function Ng(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function Mg(e,t,n){return t=Ao(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zN(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mg(0),this.expirationTimes=mg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function G1(e,t,n,r,o,i,a,u,c){return e=new zN(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ao(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},D1(i),e}function jN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y5)}catch(e){console.error(e)}}Y5(),Y3.exports=ro;var Lh=Y3.exports;const xl=n1(Lh),GN=B3({__proto__:null,default:xl},[Lh]);var eS=Lh;hv.createRoot=eS.createRoot,hv.hydrateRoot=eS.hydrateRoot;var X5={};function KN(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var YN=KN,rt=YN;function XN(e){return!!e&&typeof e.then=="function"}var Kt=XN;function ZN(e,t){if(e!=null)return e;throw rt(t??"Got unexpected null or undefined")}var tn=ZN;function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nh{getValue(){throw rt("BaseLoadable")}toPromise(){throw rt("BaseLoadable")}valueMaybe(){throw rt("BaseLoadable")}valueOrThrow(){throw rt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw rt("BaseLoadable")}promiseOrThrow(){throw rt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw rt("BaseLoadable")}errorOrThrow(){throw rt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw rt("BaseLoadable")}}class QN extends Nh{constructor(t){super(),et(this,"state","hasValue"),et(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Kt(n)?_a(n):Vl(n)?n:af(n)}catch(n){return Kt(n)?_a(n.next(()=>this.map(t))):Mh(n)}}}class JN extends Nh{constructor(t){super(),et(this,"state","hasError"),et(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class Z5 extends Nh{constructor(t){super(),et(this,"state","loading"),et(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return _a(this.contents.then(n=>{const r=t(n);if(Vl(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(Kt(n))return n.then(()=>this.map(t).contents);throw n}))}}function af(e){return Object.freeze(new QN(e))}function Mh(e){return Object.freeze(new JN(e))}function _a(e){return Object.freeze(new Z5(e))}function Q5(){return Object.freeze(new Z5(new Promise(()=>{})))}function eM(e){return e.every(t=>t.state==="hasValue")?af(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Mh(tn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):_a(Promise.all(e.map(t=>t.contents)))}function J5(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>Vl(o)?o:Kt(o)?_a(o):af(o)),r=eM(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((i,a,u)=>({...i,[a]:o[u]}),{}))}function Vl(e){return e instanceof Nh}const tM={of:e=>Kt(e)?_a(e):Vl(e)?e:af(e),error:e=>Mh(e),loading:()=>Q5(),all:J5,isLoadable:Vl};var Ta={loadableWithValue:af,loadableWithError:Mh,loadableWithPromise:_a,loadableLoading:Q5,loadableAll:J5,isLoadable:Vl,RecoilLoadable:tM},nM=Ta.loadableWithValue,rM=Ta.loadableWithError,oM=Ta.loadableWithPromise,iM=Ta.loadableLoading,sM=Ta.loadableAll,aM=Ta.isLoadable,lM=Ta.RecoilLoadable,lf=Object.freeze({__proto__:null,loadableWithValue:nM,loadableWithError:rM,loadableWithPromise:oM,loadableLoading:iM,loadableAll:sM,isLoadable:aM,RecoilLoadable:lM});const a2={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function uM(e,t){var n,r;const o=(n=X5[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw rt(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function cM(e,t){var n;const r=(n=X5[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function fM(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(uM("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{a2.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),cM("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{a2.RECOIL_GKS_ENABLED.add(n)})}))}fM();var su=a2;function Bh(e){return su.RECOIL_GKS_ENABLED.has(e)}Bh.setPass=e=>{su.RECOIL_GKS_ENABLED.add(e)};Bh.setFail=e=>{su.RECOIL_GKS_ENABLED.delete(e)};Bh.clear=()=>{su.RECOIL_GKS_ENABLED.clear()};var Ft=Bh;function dM(e,t,{error:n}={}){return null}var pM=dM,Z1=pM,Bg,Ig,$g;const hM=(Bg=Ze.createMutableSource)!==null&&Bg!==void 0?Bg:Ze.unstable_createMutableSource,eA=(Ig=Ze.useMutableSource)!==null&&Ig!==void 0?Ig:Ze.unstable_useMutableSource,tA=($g=Ze.useSyncExternalStore)!==null&&$g!==void 0?$g:Ze.unstable_useSyncExternalStore;function mM(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function gM(){return Ft("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Ft("recoil_sync_external_store")&&tA!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Ft("recoil_mutable_source")&&eA!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Ft("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Ft("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function vM(){return!1}var uf={createMutableSource:hM,useMutableSource:eA,useSyncExternalStore:tA,currentRendererSupportsUseSyncExternalStore:mM,reactMode:gM,isFastRefreshEnabled:vM};class Q1{constructor(t){et(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class nA extends Q1{}class rA extends Q1{}function yM(e){return e instanceof nA||e instanceof rA}var Ih={AbstractRecoilValue:Q1,RecoilState:nA,RecoilValueReadOnly:rA,isRecoilValue:yM},wM=Ih.AbstractRecoilValue,xM=Ih.RecoilState,bM=Ih.RecoilValueReadOnly,_M=Ih.isRecoilValue,Wl=Object.freeze({__proto__:null,AbstractRecoilValue:wM,RecoilState:xM,RecoilValueReadOnly:bM,isRecoilValue:_M});function SM(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var $h=SM;class oA{}const EM=new oA,Sa=new Map,J1=new Map;function CM(e){return $h(e,t=>tn(J1.get(t)))}function AM(e){if(Sa.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in production. But it is safe to ignore this warning if it occurred because of - hot module replacement.`;console.warn(t)}}function DM(e){su.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&TM(e.key),_a.set(e.key,e);const t=e.set==null?new Wl.RecoilValueReadOnly(e.key):new Wl.RecoilState(e.key);return ey.set(e.key,t),t}class aA extends Error{}function PM(e){const t=_a.get(e);if(t==null)throw new aA(`Missing definition for RecoilValue: "${e}""`);return t}function OM(e){return _a.get(e)}const th=new Map;function LM(e){var t;if(!Ft("recoil_memory_managament_2020"))return;const n=_a.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;_a.delete(e),(r=lA(e))===null||r===void 0||r(),th.delete(e)}}function NM(e,t){Ft("recoil_memory_managament_2020")&&(t===void 0?th.delete(e):th.set(e,t))}function lA(e){return th.get(e)}var Ur={nodes:_a,recoilValues:ey,registerNode:DM,getNode:PM,getNodeMaybe:OM,deleteNodeConfigIfPossible:LM,setConfigDeletionHandler:NM,getConfigDeletionHandler:lA,recoilValuesForKeys:kM,NodeMissingError:aA,DefaultValue:sA,DEFAULT_VALUE:RM};function MM(e,t){t()}var BM={enqueueExecution:MM};function IM(e,t){return t={exports:{}},e(t,t.exports),t.exports}var $M=IM(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,u=o/4,c={},f=function(F){return function(){return F}},p=n.hash=function(W){var F=typeof W>"u"?"undefined":t(W);if(F==="number")return W;F!=="string"&&(W+="");for(var ue=0,_e=0,be=W.length;_e>1&1431655765,F=(F&858993459)+(F>>2&858993459),F=F+(F>>4)&252645135,F+=F>>8,F+=F>>16,F&127},m=function(F,ue){return ue>>>F&i},x=function(F){return 1<=ue;)be[Fe--]=be[Fe];return be[ue]=_e,be}for(var Me=0,Ie=0,Ge=new Array(Ce+1);Me>>=1;return Fe[ue]=_e,Y(F,Ie+1,Fe)},H=function(F,ue,_e,be){for(var Ce=new Array(ue-1),Fe=0,Me=0,Ie=0,Ge=be.length;Ie1?q(F,this.hash,Ge):Ge[0]}var _t=be();return _t===c?this:(++Me.value,Q(F,_e,this.hash,this,Ce,$(F,Ce,Fe,_t)))},re=function(F,ue,_e,be,Ce,Fe,Me){var Ie=this.mask,Ge=this.children,_t=m(_e,Ce),kn=x(_t),zt=v(Ie,kn),Tn=Ie&kn,fn=Tn?Ge[zt]:E,so=fn._modify(F,ue,_e+r,be,Ce,Fe,Me);if(fn===so)return this;var or=de(F,this),N=Ie,I=void 0;if(Tn&&L(so)){if(N&=~kn,!N)return E;if(Ge.length<=2&&se(Ge[zt^1]))return Ge[zt^1];I=A(or,zt,Ge)}else if(!Tn&&!L(so)){if(Ge.length>=a)return K(F,_t,so,Ie,Ge);N|=kn,I=_(or,zt,so,Ge)}else I=y(or,zt,so,Ge);return or?(this.mask=N,this.children=I,this):B(F,N,I)},me=function(F,ue,_e,be,Ce,Fe,Me){var Ie=this.size,Ge=this.children,_t=m(_e,Ce),kn=Ge[_t],zt=(kn||E)._modify(F,ue,_e+r,be,Ce,Fe,Me);if(kn===zt)return this;var Tn=de(F,this),fn=void 0;if(L(kn)&&!L(zt))++Ie,fn=y(Tn,_t,zt,Ge);else if(!L(kn)&&L(zt)){if(--Ie,Ie<=u)return H(F,Ie,_t,Ge);fn=y(Tn,_t,E,Ge)}else fn=y(Tn,_t,zt,Ge);return Tn?(this.size=Ie,this.children=fn,this):Y(F,Ie,fn)};E._modify=function(W,F,ue,_e,be,Ce,Fe){var Me=_e();return Me===c?E:(++Fe.value,$(W,be,Ce,Me))};function U(W,F,ue,_e,be){this._editable=W,this._edit=F,this._config=ue,this._root=_e,this._size=be}U.prototype.setTree=function(W,F){return this._editable?(this._root=W,this._size=F,this):W===this._root?this:new U(this._editable,this._edit,this._config,W,F)};var ae=n.tryGetHash=function(W,F,ue,_e){for(var be=_e._root,Ce=0,Fe=_e._config.keyEq;;)switch(be.type){case w:return Fe(ue,be.key)?be.value:W;case S:{if(F===be.hash)for(var Me=be.children,Ie=0,Ge=Me.length;Ie{n.set(o,t(r,o))}),n}var nh=WM;function qM(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function HM(e){return{nodeDeps:nh(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:nh(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Fg(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,a=o.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;o.set(e,t);const u=a==null?t:yc(t,a);for(const c of u)i.has(c)||i.set(c,new Set),tn(i.get(c)).add(e);if(a){const c=yc(a,t);for(const f of c){if(!i.has(f))return;const p=tn(i.get(f));p.delete(e),p.size===0&&i.delete(f)}}}function GM(e,t,n,r){var o,i,a,u;const c=n.getState();r===c.currentTree.version||r===((o=c.nextTree)===null||o===void 0?void 0:o.version)||((i=c.previousTree)===null||i===void 0||i.version);const f=n.getGraph(r);if(Fg(e,t,f),r===((a=c.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(c.currentTree.version);Fg(e,t,h,f)}if(r===((u=c.previousTree)===null||u===void 0?void 0:u.version)||r===c.currentTree.version){var p;const h=(p=c.nextTree)===null||p===void 0?void 0:p.version;if(h!==void 0){const m=n.getGraph(h);Fg(e,t,m,f)}}}var cf={cloneGraph:HM,graph:qM,saveDepsToStore:GM};let KM=0;const YM=()=>KM++;let XM=0;const ZM=()=>XM++;let QM=0;const JM=()=>QM++;var Fh={getNextTreeStateVersion:YM,getNextStoreID:ZM,getNextComponentID:JM};const{persistentMap:nS}=jM,{graph:eB}=cf,{getNextTreeStateVersion:uA}=Fh;function cA(){const e=uA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:nS(),nonvalidatedAtoms:nS()}}function tB(){const e=cA();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,eB()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var fA={makeEmptyTreeState:cA,makeEmptyStoreState:tB,getNextTreeStateVersion:uA};class dA{}function nB(){return new dA}var Uh={RetentionZone:dA,retentionZone:nB};function rB(e,t){const n=new Set(e);return n.add(t),n}function oB(e,t){const n=new Set(e);return n.delete(t),n}function iB(e,t,n){const r=new Map(e);return r.set(t,n),r}function sB(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function aB(e,t){const n=new Map(e);return n.delete(t),n}function lB(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var pA={setByAddingToSet:rB,setByDeletingFromSet:oB,mapBySettingInMap:iB,mapByUpdatingInMap:sB,mapByDeletingFromMap:aB,mapByDeletingMultipleFromMap:lB};function*uB(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ry=uB;function cB(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var hA=cB;const{getNode:ff,getNodeMaybe:fB,recoilValuesForKeys:rS}=Ur,{RetentionZone:oS}=Uh,{setByAddingToSet:dB}=pA,pB=Object.freeze(new Set);class hB extends Error{}function mB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(i){let a=r.get(i);a||r.set(i,a=new Set),a.add(t)}if(n instanceof oS)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!Ft("recoil_memory_managament_2020"))return;const{retention:i}=e.getState();function a(u){const c=i.nodesRetainedByZone.get(u);c==null||c.delete(t),c&&c.size===0&&i.nodesRetainedByZone.delete(u)}if(n instanceof oS)a(n);else if(Array.isArray(n))for(const u of n)a(u)}}function oy(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=ff(n),a=mB(e,n,i.retainedBy),u=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),a()})}function gB(e,t,n){oy(e,e.getState().currentTree,t,n)}function vB(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function yB(e,t,n){return oy(e,t,n,"get"),ff(n).get(e,t)}function mA(e,t,n){return ff(n).peek(e,t)}function wB(e,t,n){var r;const o=fB(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:dB(e.dirtyAtoms,t)}}function xB(e,t,n,r){const o=ff(n);if(o.set==null)throw new hB(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return oy(e,t,n,"set"),i(e,t,r)}function bB(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=ff(n).nodeType;return hA({type:i},{loadable:()=>mA(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>i==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var a;return rS((a=o.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,u;return{nodes:rS(ry(gA(e,t,new Set([n])),c=>c!==n)),components:$h((a=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&a!==void 0?a:[],([c])=>({name:c}))}}})}function gA(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var a;r.add(u);const c=(a=i.nodeToNodeSubscriptions.get(u))!==null&&a!==void 0?a:pB;for(const f of c)r.has(f)||o.push(f)}return r}var Os={getNodeLoadable:yB,peekNodeLoadable:mA,setNodeValue:xB,initializeNode:gB,cleanUpNode:vB,setUnvalidatedAtomValue_DEPRECATED:wB,peekNodeInfo:bB,getDownstreamNodes:gA};let vA=null;function _B(e){vA=e}function SB(){var e;(e=vA)===null||e===void 0||e()}var yA={setInvalidateMemoizedSnapshot:_B,invalidateMemoizedSnapshot:SB};const{getDownstreamNodes:EB,getNodeLoadable:wA,setNodeValue:CB}=Os,{getNextComponentID:AB}=Fh,{getNode:RB,getNodeMaybe:xA}=Ur,{DefaultValue:iy}=Ur,{reactMode:kB}=uf,{AbstractRecoilValue:TB,RecoilState:DB,RecoilValueReadOnly:PB,isRecoilValue:OB}=Wl,{invalidateMemoizedSnapshot:LB}=yA;function NB(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=i.previousTree)===null||o===void 0||o.version);const a=wA(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function MB(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof iy?n.delete(o):n.set(o,r)}),n}function BB(e,t,{key:n},r){if(typeof r=="function"){const o=wA(e,t,n);if(o.state==="loading"){const i=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw rt(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function IB(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=BB(e,t,o,i),u=CB(e,t,o.key,a);for(const[c,f]of u.entries())u2(t,c,f)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;u2(t,o,i)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:i}=n,a=xA(o);a==null||(r=a.invalidate)===null||r===void 0||r.call(a,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else Q1(`Unknown action ${n.type}`)}function u2(e,t,n){n.state==="hasValue"&&n.contents instanceof iy?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function bA(e,t){e.replaceState(n=>{const r=_A(n);for(const o of t)IB(e,r,o);return SA(e,r),LB(),r})}function zh(e,t){if(wc.length){const n=wc[wc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else bA(e,[t])}const wc=[];function $B(){const e=new Map;return wc.push(e),()=>{for(const[t,n]of e)bA(t,n);wc.pop()}}function _A(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function SA(e,t){const n=EB(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=xA(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function EA(e,t,n){zh(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function FB(e,t,n){if(n instanceof iy)return EA(e,t,n);zh(e,{type:"setLoadable",recoilValue:t,loadable:n})}function UB(e,t){zh(e,{type:"markModified",recoilValue:t})}function zB(e,t,n){zh(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function jB(e,{key:t},n,r=null){const o=AB(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),tn(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const a=kB();if(a.early&&(a.mode==="LEGACY"||a.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),c=u.nodeToComponentSubscriptions.get(t);c===void 0||!c.has(o)||(c.delete(o),c.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function VB(e,t){var n;const{currentTree:r}=e.getState(),o=RB(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var wi={RecoilValueReadOnly:PB,AbstractRecoilValue:TB,RecoilState:DB,getRecoilValueAsLoadable:NB,setRecoilValue:EA,setRecoilValueLoadable:FB,markRecoilValueModified:UB,setUnvalidatedRecoilValue:zB,subscribeToRecoilValue:jB,isRecoilValue:OB,applyAtomValueWrites:MB,batchStart:$B,writeLoadableToTreeState:u2,invalidateDownstreams:SA,copyTreeState:_A,refreshRecoilValue:VB};function WB(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var qB=WB;const{cleanUpNode:HB}=Os,{deleteNodeConfigIfPossible:GB,getNode:CA}=Ur,{RetentionZone:AA}=Uh,KB=12e4,RA=new Set;function kA(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const a of t)if(a instanceof AA)for(const u of QB(n,a))o.add(u);else o.add(a);const i=YB(e,o);for(const a of i)ZB(e,r,a)}function YB(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return u(t),i;function u(c){const f=new Set,p=XB(e,r,c,i,a);for(const v of p){var h;if(CA(v).retainedBy==="recoilRoot"){a.add(v);continue}if(((h=n.retention.referenceCounts.get(v))!==null&&h!==void 0?h:0)>0){a.add(v);continue}if(TA(v).some(A=>n.retention.referenceCounts.get(A))){a.add(v);continue}const y=o.nodeToNodeSubscriptions.get(v);if(y&&qB(y,A=>a.has(A))){a.add(v);continue}i.add(v),f.add(v)}const m=new Set;for(const v of f)for(const y of(x=o.nodeDeps.get(v))!==null&&x!==void 0?x:RA){var x;i.has(y)||m.add(y)}m.size&&u(m)}}function XB(e,t,n,r,o){const i=e.getGraph(t.version),a=[],u=new Set;for(;n.size>0;)c(tn(n.values().next().value));return a;function c(f){if(r.has(f)||o.has(f)){n.delete(f);return}if(u.has(f))return;const p=i.nodeToNodeSubscriptions.get(f);if(p)for(const h of p)c(h);u.add(f),n.delete(f),a.push(f)}}function ZB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return;HB(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=TA(n);for(const c of o){var i;(i=r.retention.nodesRetainedByZone.get(c))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const c=a.nodeDeps.get(n);if(c!==void 0){a.nodeDeps.delete(n);for(const f of c){var u;(u=a.nodeToNodeSubscriptions.get(f))===null||u===void 0||u.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}GB(n)}function QB(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:RA}function TA(e){const t=CA(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof AA?[t]:t}function JB(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):kA(e,new Set([t]))}function eI(e,t,n){var r;if(!Ft("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?DA(e,t):o.set(t,i)}function DA(e,t){if(!Ft("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),JB(e,t)}function tI(e){if(!Ft("recoil_memory_managament_2020"))return;const t=e.getState();kA(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function nI(e){return e===void 0?"recoilRoot":e}var Ta={SUSPENSE_TIMEOUT_MS:KB,updateRetainCount:eI,updateRetainCountToZero:DA,releaseScheduledRetainablesNow:tI,retainedByOptionWithDefault:nI};const{unstable_batchedUpdates:rI}=xl;var oI={unstable_batchedUpdates:rI};const{unstable_batchedUpdates:iI}=oI;var sI={unstable_batchedUpdates:iI};const{batchStart:aI}=wi,{unstable_batchedUpdates:lI}=sI;let sy=lI||(e=>e());const uI=e=>{sy=e},cI=()=>sy,fI=e=>{sy(()=>{let t=()=>{};try{t=aI(),e()}finally{t()}})};var jh={getBatcher:cI,setBatcher:uI,batchUpdates:fI};function*dI(e){for(const t of e)for(const n of t)yield n}var PA=dI;const OA=typeof Window>"u"||typeof window>"u",pI=e=>!OA&&(e===window||e instanceof Window),hI=typeof navigator<"u"&&navigator.product==="ReactNative";var Vh={isSSR:OA,isReactNative:hI,isWindow:pI};function mI(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function gI(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function vI(e,t){let n,r;return[(...a)=>{const u=t(...a);return n===u||(n=u,r=e(...a)),r},()=>{n=null}]}var yI={memoizeWithArgsHash:mI,memoizeOneWithArgsHash:gI,memoizeOneWithArgsHashAndInvalidation:vI};const{batchUpdates:c2}=jh,{initializeNode:wI,peekNodeInfo:xI}=Os,{graph:bI}=cf,{getNextStoreID:_I}=Fh,{DEFAULT_VALUE:SI,recoilValues:iS,recoilValuesForKeys:sS}=Ur,{AbstractRecoilValue:EI,getRecoilValueAsLoadable:CI,setRecoilValue:aS,setUnvalidatedRecoilValue:AI}=wi,{updateRetainCount:pp}=Ta,{setInvalidateMemoizedSnapshot:RI}=yA,{getNextTreeStateVersion:kI,makeEmptyStoreState:TI}=fA,{isSSR:DI}=Vh,{memoizeOneWithArgsHashAndInvalidation:PI}=yI;class Wh{constructor(t,n){et(this,"_store",void 0),et(this,"_refCount",1),et(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),CI(this._store,r))),et(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),et(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const a=this._store.getState().currentTree;return sS(a.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?iS.values():r.isInitialized===!0?sS(PA([o,i])):ry(iS.values(),({key:a})=>!o.has(a)&&!i.has(a))}),et(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),xI(this._store,this._store.getState().currentTree,r))),et(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new f2(this,c2);return r(o),o}),et(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new f2(this,c2);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:_I(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return tn(o.get(r));const i=bI();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw rt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)wI(this._store,r,"get"),pp(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){DI||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!Ft("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Ft("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function LA(e,t,n=!1){const r=e.getState(),o=n?kI():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map($h(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function OI(e){const t=new Wh(TI());return e!=null?t.map(e):t}const[lS,NA]=PI((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:tn(r.previousTree);return new Wh(LA(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});RI(NA);function LI(e,t="latest"){const n=lS(e,t);return n.isRetained()?n:(NA(),lS(e,t))}class f2 extends Wh{constructor(t,n){super(LA(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),et(this,"_batch",void 0),et(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{pp(i,r.key,1),aS(this.getStore_INTERNAL(),r,o)})}),et(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pp(o,r.key,1),aS(this.getStore_INTERNAL(),r,SI)})}),et(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();c2(()=>{for(const[i,a]of r.entries())pp(o,i,1),AI(o,new EI(i),a)})}),this._batch=n}}var qh={Snapshot:Wh,MutableSnapshot:f2,freshSnapshot:OI,cloneSnapshot:LI},NI=qh.Snapshot,MI=qh.MutableSnapshot,BI=qh.freshSnapshot,II=qh.cloneSnapshot,Hh=Object.freeze({__proto__:null,Snapshot:NI,MutableSnapshot:MI,freshSnapshot:BI,cloneSnapshot:II});function $I(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var FI=$I;const{useRef:UI}=Ze;function zI(e){const t=UI(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var uS=zI;const{getNextTreeStateVersion:jI,makeEmptyStoreState:MA}=fA,{cleanUpNode:VI,getDownstreamNodes:WI,initializeNode:qI,setNodeValue:HI,setUnvalidatedAtomValue_DEPRECATED:GI}=Os,{graph:KI}=cf,{cloneGraph:YI}=cf,{getNextStoreID:BA}=Fh,{createMutableSource:Ug,reactMode:IA}=uf,{applyAtomValueWrites:XI}=wi,{releaseScheduledRetainablesNow:$A}=Ta,{freshSnapshot:ZI}=Hh,{useCallback:QI,useContext:FA,useEffect:d2,useMemo:JI,useRef:e$,useState:t$}=Ze;function Uu(){throw rt("This component must be used inside a component.")}const UA=Object.freeze({storeID:BA(),getState:Uu,replaceState:Uu,getGraph:Uu,subscribeToTransactions:Uu,addTransactionMetadata:Uu});let p2=!1;function cS(e){if(p2)throw rt("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){Ft("recoil_memory_managament_2020")&&Ft("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&$A(e);const n=t.currentTree.version,r=jI();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,YI(tn(t.graphsByVersion.get(n))))}}const zA=Ze.createContext({current:UA}),Gh=()=>FA(zA),jA=Ze.createContext(null);function n$(){return FA(jA)}function ay(e,t,n){const r=WI(e,n,n.dirtyAtoms);for(const o of r){const i=t.nodeToComponentSubscriptions.get(o);if(i)for(const[a,[u,c]]of i)c(n)}}function VA(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[a,u]of i)u(e);for(const[o,i]of t.transactionSubscriptions)i(e);(!IA().early||t.suspendedComponentResolvers.size>0)&&(ay(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function r$(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,VA(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Q1("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Ft("recoil_memory_managament_2020")&&n==null&&$A(e)}finally{t.commitDepth--}}function o$({setNotifyBatcherOfChange:e}){const t=Gh(),[,n]=t$([]);return e(()=>n({})),d2(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),d2(()=>{BM.enqueueExecution("Batcher",()=>{r$(t.current)})}),null}function i$(e,t){const n=MA();return t({set:(r,o)=>{const i=n.currentTree,a=HI(e,i,r.key,o),u=new Set(a.keys()),c=i.nonvalidatedAtoms.clone();for(const f of u)c.delete(f);n.currentTree={...i,dirtyAtoms:FI(i.dirtyAtoms,u),atomValues:XI(i.atomValues,a),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=GI(n.currentTree,i,o)})}}),n}function s$(e){const t=ZI(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let fS=0;function a$({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=x=>{const v=o.current.graphsByVersion;if(v.has(x))return tn(v.get(x));const y=KI();return v.set(x,y),y},a=(x,v)=>{if(v==null){const{transactionSubscriptions:y}=h.current.getState(),A=fS++;return y.set(A,x),{release:()=>{y.delete(A)}}}else{const{nodeTransactionSubscriptions:y}=h.current.getState();y.has(v)||y.set(v,new Map);const A=fS++;return tn(y.get(v)).set(A,x),{release:()=>{const _=y.get(v);_&&(_.delete(A),_.size===0&&y.delete(v))}}}},u=x=>{cS(h.current);for(const v of Object.keys(x))tn(h.current.getState().nextTree).transactionMetadata[v]=x[v]},c=x=>{cS(h.current);const v=tn(o.current.nextTree);let y;try{p2=!0,y=x(v)}finally{p2=!1}y!==v&&(o.current.nextTree=y,IA().early&&ay(h.current,o.current,y),tn(f.current)())},f=e$(null),p=QI(x=>{f.current=x},[f]),h=uS(()=>n??{storeID:BA(),getState:()=>o.current,replaceState:c,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:u});n!=null&&(h.current=n),o=uS(()=>e!=null?i$(h.current,e):t!=null?s$(t):MA());const m=JI(()=>Ug==null?void 0:Ug(o,()=>o.current.currentTree.version),[o]);return d2(()=>{const x=h.current;for(const v of new Set(x.getState().knownAtoms))qI(x,v,"get");return()=>{for(const v of x.getState().knownAtoms)VI(x,v)}},[h]),Ze.createElement(zA.Provider,{value:h},Ze.createElement(jA.Provider,{value:m},Ze.createElement(o$,{setNotifyBatcherOfChange:p}),r))}function l$(e){const{override:t,...n}=e,r=Gh();return t===!1&&r.current!==UA?e.children:Ze.createElement(a$,n)}function u$(){return Gh().current.storeID}var Vi={RecoilRoot:l$,useStoreRef:Gh,useRecoilMutableSource:n$,useRecoilStoreID:u$,notifyComponents_FOR_TESTING:ay,sendEndOfBatchNotifications_FOR_TESTING:VA};function c$(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var WA=h$;const{useStoreRef:m$}=Vi,{SUSPENSE_TIMEOUT_MS:g$}=Ta,{updateRetainCount:zu}=Ta,{RetentionZone:v$}=Uh,{useEffect:y$,useRef:w$}=Ze,{isSSR:dS}=Vh;function x$(e){if(Ft("recoil_memory_managament_2020"))return b$(e)}function b$(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof v$?a:a.key),r=m$();y$(()=>{if(!Ft("recoil_memory_managament_2020"))return;const a=r.current;if(o.current&&!dS)window.clearTimeout(o.current),o.current=null;else for(const u of n)zu(a,u,1);return()=>{for(const u of n)zu(a,u,-1)}},[r,...n]);const o=w$(),i=WA(n);if(!dS&&(i===void 0||!f$(i,n))){const a=r.current;for(const u of n)zu(a,u,1);if(i)for(const u of i)zu(a,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)zu(a,u,-1)},g$)}}var ly=x$;function _$(){return""}var df=_$;const{batchUpdates:S$}=jh,{DEFAULT_VALUE:qA}=Ur,{currentRendererSupportsUseSyncExternalStore:E$,reactMode:au,useMutableSource:C$,useSyncExternalStore:A$}=uf,{useRecoilMutableSource:R$,useStoreRef:xi}=Vi,{AbstractRecoilValue:h2,getRecoilValueAsLoadable:pf,setRecoilValue:rh,setUnvalidatedRecoilValue:k$,subscribeToRecoilValue:ql}=wi,{useCallback:Lr,useEffect:Hl,useMemo:HA,useRef:xc,useState:uy}=Ze,{setByAddingToSet:T$}=pA,{isSSR:D$}=Vh;function cy(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const i=n.current.getState().suspendedComponentResolvers;i.add(o),D$&&Kt(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:rt(`Invalid value of loadable atom "${t.key}"`)}function P$(){const e=df(),t=xi(),[,n]=uy([]),r=xc(new Set);r.current=new Set;const o=xc(new Set),i=xc(new Map),a=Lr(c=>{const f=i.current.get(c);f&&(f.release(),i.current.delete(c))},[i]),u=Lr((c,f)=>{i.current.has(f)&&n([])},[]);return Hl(()=>{const c=t.current;yc(r.current,o.current).forEach(f=>{if(i.current.has(f))return;const p=ql(c,new h2(f),m=>u(m,f),e);i.current.set(f,p),c.getState().nextTree?c.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(c.getState(),f)}):u(c.getState(),f)}),yc(o.current,r.current).forEach(f=>{a(f)}),o.current=r.current}),Hl(()=>{const c=i.current;return yc(r.current,new Set(c.keys())).forEach(f=>{const p=ql(t.current,new h2(f),h=>u(h,f),e);c.set(f,p)}),()=>c.forEach((f,p)=>a(p))},[e,t,a,u]),HA(()=>{function c(v){return y=>{rh(t.current,v,y)}}function f(v){return()=>rh(t.current,v,qA)}function p(v){var y;r.current.has(v.key)||(r.current=T$(r.current,v.key));const A=t.current.getState();return pf(t.current,v,au().early&&(y=A.nextTree)!==null&&y!==void 0?y:A.currentTree)}function h(v){const y=p(v);return cy(y,v,t)}function m(v){return[h(v),c(v)]}function x(v){return[p(v),c(v)]}return{getRecoilValue:h,getRecoilValueLoadable:p,getRecoilState:m,getRecoilStateLoadable:x,getSetRecoilState:c,getResetRecoilState:f}},[r,t])}const O$={current:0};function L$(e){const t=xi(),n=df(),r=Lr(()=>{var u;const c=t.current,f=c.getState(),p=au().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return{loadable:pf(c,e,p),key:e.key}},[t,e]),o=Lr(u=>{let c;return()=>{var f,p;const h=u();return(f=c)!==null&&f!==void 0&&f.loadable.is(h.loadable)&&((p=c)===null||p===void 0?void 0:p.key)===h.key?c:(c=h,h)}},[]),i=HA(()=>o(r),[r,o]),a=Lr(u=>{const c=t.current;return ql(c,e,u,n).release},[t,e,n]);return A$(a,i,i).loadable}function N$(e){const t=xi(),n=Lr(()=>{var f;const p=t.current,h=p.getState(),m=au().early&&(f=h.nextTree)!==null&&f!==void 0?f:h.currentTree;return pf(p,e,m)},[t,e]),r=Lr(()=>n(),[n]),o=df(),i=Lr((f,p)=>{const h=t.current;return ql(h,e,()=>{if(!Ft("recoil_suppress_rerender_in_callback"))return p();const x=n();c.current.is(x)||p(),c.current=x},o).release},[t,e,o,n]),a=R$();if(a==null)throw rt("Recoil hooks must be used in components contained within a component.");const u=C$(a,r,i),c=xc(u);return Hl(()=>{c.current=u}),u}function m2(e){const t=xi(),n=df(),r=Lr(()=>{var c;const f=t.current,p=f.getState(),h=au().early&&(c=p.nextTree)!==null&&c!==void 0?c:p.currentTree;return pf(f,e,h)},[t,e]),o=Lr(()=>({loadable:r(),key:e.key}),[r,e.key]),i=Lr(c=>{const f=o();return c.loadable.is(f.loadable)&&c.key===f.key?c:f},[o]);Hl(()=>{const c=ql(t.current,e,f=>{u(i)},n);return u(i),c.release},[n,e,t,i]);const[a,u]=uy(o);return a.key!==e.key?o().loadable:a.loadable}function M$(e){const t=xi(),[,n]=uy([]),r=df(),o=Lr(()=>{var u;const c=t.current,f=c.getState(),p=au().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return pf(c,e,p)},[t,e]),i=o(),a=xc(i);return Hl(()=>{a.current=i}),Hl(()=>{const u=t.current,c=u.getState(),f=ql(u,e,h=>{var m;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const x=o();(m=a.current)!==null&&m!==void 0&&m.is(x)||n(x),a.current=x},r);if(c.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var p;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const h=o();(p=a.current)!==null&&p!==void 0&&p.is(h)||n(h),a.current=h}return f.release},[r,o,e,t]),i}function fy(e){return Ft("recoil_memory_managament_2020")&&ly(e),{TRANSITION_SUPPORT:m2,SYNC_EXTERNAL_STORE:E$()?L$:m2,MUTABLE_SOURCE:N$,LEGACY:M$}[au().mode](e)}function GA(e){const t=xi(),n=fy(e);return cy(n,e,t)}function Kh(e){const t=xi();return Lr(n=>{rh(t.current,e,n)},[t,e])}function B$(e){const t=xi();return Lr(()=>{rh(t.current,e,qA)},[t,e])}function I$(e){return[GA(e),Kh(e)]}function $$(e){return[fy(e),Kh(e)]}function F$(){const e=xi();return(t,n={})=>{S$(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>k$(e.current,new h2(o),r))})}}function KA(e){return Ft("recoil_memory_managament_2020")&&ly(e),m2(e)}function YA(e){const t=xi(),n=KA(e);return cy(n,e,t)}function U$(e){return[YA(e),Kh(e)]}var z$={recoilComponentGetRecoilValueCount_FOR_TESTING:O$,useRecoilInterface:P$,useRecoilState:I$,useRecoilStateLoadable:$$,useRecoilValue:GA,useRecoilValueLoadable:fy,useResetRecoilState:B$,useSetRecoilState:Kh,useSetUnvalidatedAtomValues:F$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:KA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:YA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:U$};function j$(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var V$=j$;function W$(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var q$=W$;function H$(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function mS(e){const t=e.atomValues.toMap(),n=nh(V$(t,(r,o)=>{const a=XA(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return G$(e.nonvalidatedAtoms.toMap(),n)}function tF(e){Xh(Yh(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=mS(r),i=mS(n),a=nh(X$,c=>{var f,p,h,m;return{persistence_UNSTABLE:{type:(f=(p=c.persistence_UNSTABLE)===null||p===void 0?void 0:p.type)!==null&&f!==void 0?f:"none",backButton:(h=(m=c.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&h!==void 0?h:!1}}}),u=q$(r.dirtyAtoms,c=>o.has(c)||i.has(c));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function nF(e){Xh(Yh(t=>{const n=oh(t,"latest"),r=oh(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function rF(){const e=dy(),[t,n]=eF(()=>oh(e.current)),r=WA(t),o=pS(),i=pS();if(Xh(Yh(u=>n(oh(u)),[])),ZA(()=>{const u=t.retain();if(o.current&&!hS){var c;window.clearTimeout(o.current),o.current=null,(c=i.current)===null||c===void 0||c.call(i),i.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!hS){if(o.current){var a;window.clearTimeout(o.current),o.current=null,(a=i.current)===null||a===void 0||a.call(i),i.current=null}i.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=i.current)===null||u===void 0||u.call(i),i.current=null},J$)}return t}function QA(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;K$(()=>{const a=new Set;for(const f of[o.atomValues.keys(),i.atomValues.keys()])for(const p of f){var u,c;((u=o.atomValues.get(p))===null||u===void 0?void 0:u.contents)!==((c=i.atomValues.get(p))===null||c===void 0?void 0:c.contents)&&XA(p).shouldRestoreFromSnapshots&&a.add(p)}a.forEach(f=>{Q$(e,new Z$(f),i.atomValues.has(f)?tn(i.atomValues.get(f)):Y$)}),e.replaceState(f=>({...f,stateID:t.getID()}))})}function oF(){const e=dy();return Yh(t=>QA(e.current,t),[e])}var JA={useRecoilSnapshot:rF,gotoSnapshot:QA,useGotoRecoilSnapshot:oF,useRecoilTransactionObserver:nF,useTransactionObservation_DEPRECATED:tF,useTransactionSubscription_DEPRECATED:Xh};const{peekNodeInfo:iF}=Os,{useStoreRef:sF}=Vi;function aF(){const e=sF();return({key:t})=>iF(e.current,e.current.getState().currentTree,t)}var lF=aF;const{reactMode:uF}=uf,{RecoilRoot:cF,useStoreRef:fF}=Vi,{useMemo:dF}=Ze;function pF(){uF().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=fF().current;return dF(()=>{function t({children:n}){return Ze.createElement(cF,{store_INTERNAL:e},n)}return t},[e])}var hF=pF;const{loadableWithValue:mF}=lf,{initializeNode:gF}=Os,{DEFAULT_VALUE:vF,getNode:yF}=Ur,{copyTreeState:wF,getRecoilValueAsLoadable:xF,invalidateDownstreams:bF,writeLoadableToTreeState:_F}=wi;function gS(e){return yF(e.key).nodeType==="atom"}class SF{constructor(t,n){et(this,"_store",void 0),et(this,"_treeState",void 0),et(this,"_changes",void 0),et(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!gS(r))throw rt("Reading selectors within atomicUpdate is not supported");const o=xF(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:rt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),et(this,"set",(r,o)=>{if(!gS(r))throw rt("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else gF(this._store,r.key,"set"),this._changes.set(r.key,o)}),et(this,"reset",r=>{this.set(r,vF)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=wF(this._treeState);for(const[n,r]of this._changes)_F(t,n,mF(r));return bF(this._store,t),t}}function EF(e){return t=>{e.replaceState(n=>{const r=new SF(e,n);return t(r),r.newTreeState_INTERNAL()})}}var CF={atomicUpdater:EF},AF=CF.atomicUpdater,eR=Object.freeze({__proto__:null,atomicUpdater:AF});function RF(e,t){if(!e)throw new Error(t)}var kF=RF,oc=kF;const{atomicUpdater:TF}=eR,{batchUpdates:DF}=jh,{DEFAULT_VALUE:PF}=Ur,{useStoreRef:OF}=Vi,{refreshRecoilValue:LF,setRecoilValue:vS}=wi,{cloneSnapshot:NF}=Hh,{gotoSnapshot:MF}=JA,{useCallback:BF}=Ze;class tR{}const IF=new tR;function nR(e,t,n,r){let o=IF,i;if(DF(()=>{const u="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw rt(u);const c=hA({...r??{},set:(p,h)=>vS(e,p,h),reset:p=>vS(e,p,PF),refresh:p=>LF(e,p),gotoSnapshot:p=>MF(e,p),transact_UNSTABLE:p=>TF(e)(p)},{snapshot:()=>{const p=NF(e);return i=p.retain(),p}}),f=t(c);if(typeof f!="function")throw rt(u);o=f(...n)}),o instanceof tR&&oc(!1),Kt(o))o=o.finally(()=>{var u;(u=i)===null||u===void 0||u()});else{var a;(a=i)===null||a===void 0||a()}return o}function $F(e,t){const n=OF();return BF((...r)=>nR(n.current,e,r),t!=null?[...t,n]:void 0)}var rR={recoilCallback:nR,useRecoilCallback:$F};const{useStoreRef:FF}=Vi,{refreshRecoilValue:UF}=wi,{useCallback:zF}=Ze;function jF(e){const t=FF();return zF(()=>{const n=t.current;UF(n,e)},[e,t])}var VF=jF;const{atomicUpdater:WF}=eR,{useStoreRef:qF}=Vi,{useMemo:HF}=Ze;function GF(e,t){const n=qF();return HF(()=>(...r)=>{WF(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var KF=GF;class YF{constructor(t){et(this,"value",void 0),this.value=t}}var XF={WrappedValue:YF},ZF=XF.WrappedValue,oR=Object.freeze({__proto__:null,WrappedValue:ZF});const{isFastRefreshEnabled:QF}=uf;class yS extends Error{}class JF{constructor(t){var n,r,o;et(this,"_name",void 0),et(this,"_numLeafs",void 0),et(this,"_root",void 0),et(this,"_onHit",void 0),et(this,"_onSet",void 0),et(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var i,a,u,c;let f,p;for(const[A,_]of t){var h,m,x;const w=this._root;if((w==null?void 0:w.type)==="leaf")throw this.invalidCacheError();const S=f;if(f=S?S.branches.get(p):w,f=(h=f)!==null&&h!==void 0?h:{type:"branch",nodeKey:A,parent:S,branches:new Map,branchKey:p},f.type!=="branch"||f.nodeKey!==A)throw this.invalidCacheError();S==null||S.branches.set(p,f),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,f),p=this._mapNodeValue(_),this._root=(x=this._root)!==null&&x!==void 0?x:f}const v=f?(i=f)===null||i===void 0?void 0:i.branches.get(p):this._root;if(v!=null&&(v.type!=="leaf"||v.branchKey!==p))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:f,branchKey:p};(a=f)===null||a===void 0||a.branches.set(p,y),this._root=(u=this._root)!==null&&u!==void 0?u:y,this._numLeafs++,this._onSet(y),r==null||(c=r.onNodeVisit)===null||c===void 0||c.call(r,y)};try{o()}catch(i){if(i instanceof yS)this.clear(),o();else throw i}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var i;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(i=r)===null||i===void 0?void 0:i.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=QF()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw Q1(t+(this._name!=null?` - ${this._name}`:"")),new yS}}var eU={TreeCache:JF},tU=eU.TreeCache,iR=Object.freeze({__proto__:null,TreeCache:tU});class nU{constructor(t){var n;et(this,"_maxSize",void 0),et(this,"_size",void 0),et(this,"_head",void 0),et(this,"_tail",void 0),et(this,"_map",void 0),et(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const i=this.head(),a={key:t,right:i,left:null,value:n};i?i.left=a:this._tail=a,this._map.set(r,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=tn(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var rU={LRUCache:nU},oU=rU.LRUCache,sR=Object.freeze({__proto__:null,LRUCache:oU});const{LRUCache:iU}=sR,{TreeCache:sU}=iR;function aU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new iU({maxSize:t}),o=new sU({name:e,mapNodeValue:n,onHit:i=>{r.set(i,!0)},onSet:i=>{const a=r.tail();r.set(i,!0),a&&o.size()>t&&o.delete(a.key)}});return o}var wS=aU;function Wo(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw rt("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(Kt(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>Wo(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return Wo(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[i,a]of e)o[typeof i=="string"?i:Wo(i,t)]=a;return Wo(o,t,n)}return e instanceof Set?Wo(Array.from(e).sort((o,i)=>Wo(o,t).localeCompare(Wo(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Wo(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${Wo(o,t)}:${Wo(e[o],t,o)}`).join(",")}}`}function lU(e,t={allowFunctions:!1}){return Wo(e,t)}var Zh=lU;const{TreeCache:uU}=iR,Ld={equality:"reference",eviction:"keep-all",maxSize:1/0};function cU({equality:e=Ld.equality,eviction:t=Ld.eviction,maxSize:n=Ld.maxSize}=Ld,r){const o=fU(e);return dU(t,n,o,r)}function fU(e){switch(e){case"reference":return t=>t;case"value":return t=>Zh(t)}throw rt(`Unrecognized equality policy ${e}`)}function dU(e,t,n,r){switch(e){case"keep-all":return new uU({name:r,mapNodeValue:n});case"lru":return wS({name:r,maxSize:tn(t),mapNodeValue:n});case"most-recent":return wS({name:r,maxSize:1,mapNodeValue:n})}throw rt(`Unrecognized eviction policy ${e}`)}var pU=cU;function hU(e){return()=>null}var mU={startPerfBlock:hU};const{isLoadable:gU,loadableWithError:Nd,loadableWithPromise:vU,loadableWithValue:zg}=lf,{WrappedValue:aR}=oR,{getNodeLoadable:Md,peekNodeLoadable:yU,setNodeValue:wU}=Os,{saveDepsToStore:xU}=cf,{DEFAULT_VALUE:bU,getConfigDeletionHandler:_U,getNode:SU,registerNode:xS}=Ur,{isRecoilValue:EU}=Wl,{markRecoilValueModified:bS}=wi,{retainedByOptionWithDefault:CU}=Ta,{recoilCallback:AU}=rR,{startPerfBlock:RU}=mU;class lR{}const ju=new lR,Vu=[],Bd=new Map,kU=(()=>{let e=0;return()=>e++})();function uR(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=e.set!=null?e.set:void 0,a=new Set,u=pU(o??{equality:"reference",eviction:"keep-all"},n),c=CU(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!Ft("recoil_memory_managament_2020")||p>0}function m(U){return U.getState().knownSelectors.add(n),p++,()=>{p--}}function x(){return _U(n)!==void 0&&!h()}function v(U,ae,te,we,fe){le(ae,we,fe),y(U,te)}function y(U,ae){H(U,ae)&&K(U),_(ae,!0)}function A(U,ae){H(U,ae)&&(tn(B(U)).stateVersions.clear(),_(ae,!1))}function _(U,ae){const te=Bd.get(U);if(te!=null){for(const we of te)bS(we,tn(t));ae&&Bd.delete(U)}}function w(U,ae){let te=Bd.get(ae);te==null&&Bd.set(ae,te=new Set),te.add(U)}function S(U,ae,te,we,fe,ye){return ae.then(ge=>{if(!h())throw K(U),ju;const he=zg(ge);return v(U,te,fe,he,we),ge}).catch(ge=>{if(!h())throw K(U),ju;if(Kt(ge))return k(U,ge,te,we,fe,ye);const he=Nd(ge);throw v(U,te,fe,he,we),ge})}function k(U,ae,te,we,fe,ye){return ae.then(ge=>{if(!h())throw K(U),ju;ye.loadingDepKey!=null&&ye.loadingDepPromise===ae?te.atomValues.set(ye.loadingDepKey,zg(ge)):U.getState().knownSelectors.forEach(Re=>{te.atomValues.delete(Re)});const he=L(U,te);if(he&&he.state!=="loading"){if((H(U,fe)||B(U)==null)&&y(U,fe),he.state==="hasValue")return he.contents;throw he.contents}if(!H(U,fe)){const Re=q(U,te);if(Re!=null)return Re.loadingLoadable.contents}const[We,Le]=E(U,te,fe);if(We.state!=="loading"&&v(U,te,fe,We,Le),We.state==="hasError")throw We.contents;return We.contents}).catch(ge=>{if(ge instanceof lR)throw ju;if(!h())throw K(U),ju;const he=Nd(ge);throw v(U,te,fe,he,we),ge})}function T(U,ae,te,we){var fe,ye,ge,he;if(H(U,we)||ae.version===((fe=U.getState())===null||fe===void 0||(ye=fe.currentTree)===null||ye===void 0?void 0:ye.version)||ae.version===((ge=U.getState())===null||ge===void 0||(he=ge.nextTree)===null||he===void 0?void 0:he.version)){var We,Le,Re;xU(n,te,U,(We=(Le=U.getState())===null||Le===void 0||(Re=Le.nextTree)===null||Re===void 0?void 0:Re.version)!==null&&We!==void 0?We:U.getState().currentTree.version)}for(const Ke of te)a.add(Ke)}function E(U,ae,te){const we=RU(n);let fe=!0,ye=!0;const ge=()=>{we(),ye=!1};let he,We=!1,Le;const Re={loadingDepKey:null,loadingDepPromise:null},Ke=new Map;function st({key:bt}){const mt=Md(U,ae,bt);switch(Ke.set(bt,mt),fe||(T(U,ae,new Set(Ke.keys()),te),A(U,te)),mt.state){case"hasValue":return mt.contents;case"hasError":throw mt.contents;case"loading":throw Re.loadingDepKey=bt,Re.loadingDepPromise=mt.contents,mt.contents}throw rt("Invalid Loadable state")}const ht=bt=>(...mt)=>{if(ye)throw rt("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&oc(!1),AU(U,bt,mt,{node:t})};try{he=r({get:st,getCallback:ht}),he=EU(he)?st(he):he,gU(he)&&(he.state==="hasError"&&(We=!0),he=he.contents),Kt(he)?he=S(U,he,ae,Ke,te,Re).finally(ge):ge(),he=he instanceof aR?he.value:he}catch(bt){he=bt,Kt(he)?he=k(U,he,ae,Ke,te,Re).finally(ge):(We=!0,ge())}return We?Le=Nd(he):Kt(he)?Le=vU(he):Le=zg(he),fe=!1,se(U,te,Ke),T(U,ae,new Set(Ke.keys()),te),[Le,Ke]}function L(U,ae){let te=ae.atomValues.get(n);if(te!=null)return te;const we=new Set;try{te=u.get(ye=>(typeof ye!="string"&&oc(!1),Md(U,ae,ye).contents),{onNodeVisit:ye=>{ye.type==="branch"&&ye.nodeKey!==n&&we.add(ye.nodeKey)}})}catch(ye){throw rt(`Problem with cache lookup for selector "${n}": ${ye.message}`)}if(te){var fe;ae.atomValues.set(n,te),T(U,ae,we,(fe=B(U))===null||fe===void 0?void 0:fe.executionID)}return te}function $(U,ae){const te=L(U,ae);if(te!=null)return K(U),te;const we=q(U,ae);if(we!=null){var fe;return((fe=we.loadingLoadable)===null||fe===void 0?void 0:fe.state)==="loading"&&w(U,we.executionID),we.loadingLoadable}const ye=kU(),[ge,he]=E(U,ae,ye);return ge.state==="loading"?(Y(U,ye,ge,he,ae),w(U,ye)):(K(U),le(ae,ge,he)),ge}function q(U,ae){const te=PA([f.has(U)?[tn(f.get(U))]:[],$h(ry(f,([fe])=>fe!==U),([,fe])=>fe)]);function we(fe){for(const[ye,ge]of fe)if(!Md(U,ae,ye).is(ge))return!0;return!1}for(const fe of te){if(fe.stateVersions.get(ae.version)||!we(fe.depValuesDiscoveredSoFarDuringAsyncWork))return fe.stateVersions.set(ae.version,!0),fe;fe.stateVersions.set(ae.version,!1)}}function B(U){return f.get(U)}function Y(U,ae,te,we,fe){f.set(U,{depValuesDiscoveredSoFarDuringAsyncWork:we,executionID:ae,loadingLoadable:te,stateVersions:new Map([[fe.version,!0]])})}function se(U,ae,te){if(H(U,ae)){const we=B(U);we!=null&&(we.depValuesDiscoveredSoFarDuringAsyncWork=te)}}function K(U){f.delete(U)}function H(U,ae){var te;return ae===((te=B(U))===null||te===void 0?void 0:te.executionID)}function Q(U){return Array.from(U.entries()).map(([ae,te])=>[ae,te.contents])}function le(U,ae,te){U.atomValues.set(n,ae);try{u.set(Q(te),ae)}catch(we){throw rt(`Problem with setting cache for selector "${n}": ${we.message}`)}}function de(U){if(Vu.includes(n)){const ae=`Recoil selector has circular dependencies: ${Vu.slice(Vu.indexOf(n)).join(" → ")}`;return Nd(rt(ae))}Vu.push(n);try{return U()}finally{Vu.pop()}}function J(U,ae){const te=ae.atomValues.get(n);return te??u.get(we=>{var fe;return typeof we!="string"&&oc(!1),(fe=yU(U,ae,we))===null||fe===void 0?void 0:fe.contents})}function pe(U,ae){return de(()=>$(U,ae))}function re(U){U.atomValues.delete(n)}function me(U,ae){t==null&&oc(!1);for(const we of a){var te;const fe=SU(we);(te=fe.clearCache)===null||te===void 0||te.call(fe,U,ae)}a.clear(),re(ae),u.clear(),bS(U,t)}return i!=null?t=xS({key:n,nodeType:"selector",peek:J,get:pe,set:(ae,te,we)=>{let fe=!1;const ye=new Map;function ge({key:Re}){if(fe)throw rt("Recoil: Async selector sets are not currently supported.");const Ke=Md(ae,te,Re);if(Ke.state==="hasValue")return Ke.contents;if(Ke.state==="loading"){const st=`Getting value of asynchronous atom or selector "${Re}" in a pending state while setting selector "${n}" is not yet supported.`;throw rt(st)}else throw Ke.contents}function he(Re,Ke){if(fe)throw rt("Recoil: Async selector sets are not currently supported.");const st=typeof Ke=="function"?Ke(ge(Re)):Ke;wU(ae,te,Re.key,st).forEach((bt,mt)=>ye.set(mt,bt))}function We(Re){he(Re,bU)}const Le=i({set:he,get:ge,reset:We},we);if(Le!==void 0)throw Kt(Le)?rt("Recoil: Async selector sets are not currently supported."):rt("Recoil: selector set should be a void function.");return fe=!0,ye},init:m,invalidate:re,clearCache:me,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c}):t=xS({key:n,nodeType:"selector",peek:J,get:pe,init:m,invalidate:re,clearCache:me,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}uR.value=e=>new aR(e);var Gl=uR;const{isLoadable:TU,loadableWithError:jg,loadableWithPromise:Vg,loadableWithValue:Ka}=lf,{WrappedValue:cR}=oR,{peekNodeInfo:DU}=Os,{DEFAULT_VALUE:ea,DefaultValue:ls,getConfigDeletionHandler:fR,registerNode:PU,setConfigDeletionHandler:OU}=Ur,{isRecoilValue:LU}=Wl,{getRecoilValueAsLoadable:NU,markRecoilValueModified:MU,setRecoilValue:_S,setRecoilValueLoadable:BU}=wi,{retainedByOptionWithDefault:IU}=Ta,Wu=e=>e instanceof cR?e.value:e;function $U(e){const{key:t,persistence_UNSTABLE:n}=e,r=IU(e.retainedBy_UNSTABLE);let o=0;function i(w){return Vg(w.then(S=>(a=Ka(S),S)).catch(S=>{throw a=jg(S),S}))}let a=Kt(e.default)?i(e.default):TU(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Ka(Wu(e.default));a.contents;let u;const c=new Map;function f(w){return w}function p(w,S){const k=S.then(T=>{var E,L;return((L=((E=w.getState().nextTree)!==null&&E!==void 0?E:w.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&_S(w,_,T),T}).catch(T=>{var E,L;throw((L=((E=w.getState().nextTree)!==null&&E!==void 0?E:w.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&BU(w,_,jg(T)),T});return k}function h(w,S,k){var T;o++;const E=()=>{var B;o--,(B=c.get(w))===null||B===void 0||B.forEach(Y=>Y()),c.delete(w)};if(w.getState().knownAtoms.add(t),a.state==="loading"){const B=()=>{var Y;((Y=w.getState().nextTree)!==null&&Y!==void 0?Y:w.getState().currentTree).atomValues.has(t)||MU(w,_)};a.contents.finally(B)}const L=(T=e.effects)!==null&&T!==void 0?T:e.effects_UNSTABLE;if(L!=null){let B=function(re){if(H&&re.key===t){const me=K;return me instanceof ls?m(w,S):Kt(me)?Vg(me.then(U=>U instanceof ls?a.toPromise():U)):Ka(me)}return NU(w,re)},Y=function(re){return B(re).toPromise()},se=function(re){var me;const U=DU(w,(me=w.getState().nextTree)!==null&&me!==void 0?me:w.getState().currentTree,re.key);return H&&re.key===t&&!(K instanceof ls)?{...U,isSet:!0,loadable:B(re)}:U},K=ea,H=!0,Q=!1,le=null;const de=re=>me=>{if(H){const U=B(_),ae=U.state==="hasValue"?U.contents:ea;K=typeof me=="function"?me(ae):me,Kt(K)&&(K=K.then(te=>(le={effect:re,value:te},te)))}else{if(Kt(me))throw rt("Setting atoms to async values is not implemented.");typeof me!="function"&&(le={effect:re,value:Wu(me)}),_S(w,_,typeof me=="function"?U=>{const ae=Wu(me(U));return le={effect:re,value:ae},ae}:Wu(me))}},J=re=>()=>de(re)(ea),pe=re=>me=>{var U;const{release:ae}=w.subscribeToTransactions(te=>{var we;let{currentTree:fe,previousTree:ye}=te.getState();ye||(ye=fe);const ge=(we=fe.atomValues.get(t))!==null&&we!==void 0?we:a;if(ge.state==="hasValue"){var he,We,Le,Re;const Ke=ge.contents,st=(he=ye.atomValues.get(t))!==null&&he!==void 0?he:a,ht=st.state==="hasValue"?st.contents:ea;((We=le)===null||We===void 0?void 0:We.effect)!==re||((Le=le)===null||Le===void 0?void 0:Le.value)!==Ke?me(Ke,ht,!fe.atomValues.has(t)):((Re=le)===null||Re===void 0?void 0:Re.effect)===re&&(le=null)}},t);c.set(w,[...(U=c.get(w))!==null&&U!==void 0?U:[],ae])};for(const re of L)try{const me=re({node:_,storeID:w.storeID,parentStoreID_UNSTABLE:w.parentStoreID,trigger:k,setSelf:de(re),resetSelf:J(re),onSet:pe(re),getPromise:Y,getLoadable:B,getInfo_UNSTABLE:se});if(me!=null){var $;c.set(w,[...($=c.get(w))!==null&&$!==void 0?$:[],me])}}catch(me){K=me,Q=!0}if(H=!1,!(K instanceof ls)){var q;const re=Q?jg(K):Kt(K)?Vg(p(w,K)):Ka(Wu(K));re.contents,S.atomValues.set(t,re),(q=w.getState().nextTree)===null||q===void 0||q.atomValues.set(t,re)}}return E}function m(w,S){var k,T;return(k=(T=S.atomValues.get(t))!==null&&T!==void 0?T:u)!==null&&k!==void 0?k:a}function x(w,S){if(S.atomValues.has(t))return tn(S.atomValues.get(t));if(S.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return a;const k=S.nonvalidatedAtoms.get(t),T=n.validator(k,ea);return u=T instanceof ls?a:Ka(T),u}else return a}function v(){u=void 0}function y(w,S,k){if(S.atomValues.has(t)){const T=tn(S.atomValues.get(t));if(T.state==="hasValue"&&k===T.contents)return new Map}else if(!S.nonvalidatedAtoms.has(t)&&k instanceof ls)return new Map;return u=void 0,new Map().set(t,Ka(k))}function A(){return fR(t)!==void 0&&o<=0}const _=PU({key:t,nodeType:"atom",peek:m,get:x,set:y,init:h,invalidate:v,shouldDeleteConfigOnRelease:A,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return _}function py(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return LU(n)?FU({...t,default:n}):$U({...t,default:n})}function FU(e){const t=py({...e,default:ea,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof ls?r:tn(e.persistence_UNSTABLE).validator(r,ea)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Gl({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof ls?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return OU(n.key,fR(e.key)),n}py.value=e=>new cR(e);var dR=py;class UU{constructor(t){var n;et(this,"_map",void 0),et(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var zU={MapCache:UU},jU=zU.MapCache,VU=Object.freeze({__proto__:null,MapCache:jU});const{LRUCache:SS}=sR,{MapCache:WU}=VU,Id={equality:"reference",eviction:"none",maxSize:1/0};function qU({equality:e=Id.equality,eviction:t=Id.eviction,maxSize:n=Id.maxSize}=Id){const r=HU(e);return GU(t,n,r)}function HU(e){switch(e){case"reference":return t=>t;case"value":return t=>Zh(t)}throw rt(`Unrecognized equality policy ${e}`)}function GU(e,t,n){switch(e){case"keep-all":return new WU({mapKey:n});case"lru":return new SS({mapKey:n,maxSize:tn(t)});case"most-recent":return new SS({mapKey:n,maxSize:1})}throw rt(`Unrecognized eviction policy ${e}`)}var pR=qU;const{setConfigDeletionHandler:KU}=Ur;function YU(e){var t,n;const r=pR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i,a;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:c,...f}=e,p="default"in e?e.default:new Promise(()=>{}),h=dR({...f,key:`${e.key}__${(i=Zh(o))!==null&&i!==void 0?i:"void"}`,default:typeof p=="function"?p(o):p,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(a=e.effects)!==null&&a!==void 0?a:e.effects_UNSTABLE});return r.set(o,h),KU(h.key,()=>{r.delete(o)}),h}}var XU=YU;const{setConfigDeletionHandler:ZU}=Ur;let QU=0;function JU(e){var t,n;const r=pR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let a;try{a=r.get(o)}catch(m){throw rt(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(a!=null)return a;const u=`${e.key}__selectorFamily/${(i=Zh(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${QU++}`,c=m=>e.get(o)(m),f=e.cachePolicy_UNSTABLE,p=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let h;if(e.set!=null){const m=e.set;h=Gl({key:u,get:c,set:(v,y)=>m(o)(v,y),cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p})}else h=Gl({key:u,get:c,cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p});return r.set(o,h),ZU(h.key,()=>{r.delete(o)}),h}}var Ls=JU;const ez=Ls({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function tz(e){return ez(e)}var nz=tz;const rz=Ls({key:"__error",get:e=>()=>{throw rt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function oz(e){return rz(e)}var iz=oz;function sz(e){return e}var az=sz;const{loadableWithError:hR,loadableWithPromise:mR,loadableWithValue:gR}=lf;function Qh(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(a){r[o]=a}return[n,r]}function lz(e){return e!=null&&!Kt(e)}function Jh(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function g2(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function Pl(e,t,n){const r=n.map((o,i)=>o==null?gR(t[i]):Kt(o)?mR(o):hR(o));return g2(e,r)}function uz(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const cz=Ls({key:"__waitForNone",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);return Pl(e,r,o)},dangerouslyAllowMutability:!0}),fz=Ls({key:"__waitForAny",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);return o.some(i=>!Kt(i))?Pl(e,r,o):new Promise(i=>{for(const[a,u]of o.entries())Kt(u)&&u.then(c=>{r[a]=c,o[a]=void 0,i(Pl(e,r,o))}).catch(c=>{o[a]=c,i(Pl(e,r,o))})})},dangerouslyAllowMutability:!0}),dz=Ls({key:"__waitForAll",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);if(o.every(a=>a==null))return g2(e,r);const i=o.find(lz);if(i!=null)throw i;return Promise.all(o).then(a=>g2(e,uz(r,a)))},dangerouslyAllowMutability:!0}),pz=Ls({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);return o.every(i=>!Kt(i))?Pl(e,r,o):Promise.all(o.map((i,a)=>Kt(i)?i.then(u=>{r[a]=u,o[a]=void 0}).catch(u=>{r[a]=void 0,o[a]=u}):null)).then(()=>Pl(e,r,o))},dangerouslyAllowMutability:!0}),hz=Ls({key:"__noWait",get:e=>({get:t})=>{try{return Gl.value(gR(t(e)))}catch(n){return Gl.value(Kt(n)?mR(n):hR(n))}},dangerouslyAllowMutability:!0});var mz={waitForNone:cz,waitForAny:fz,waitForAll:dz,waitForAllSettled:pz,noWait:hz};const{RecoilLoadable:gz}=lf,{DefaultValue:vz}=Ur,{RecoilRoot:yz,useRecoilStoreID:wz}=Vi,{isRecoilValue:xz}=Wl,{retentionZone:bz}=Uh,{freshSnapshot:_z}=Hh,{useRecoilState:Sz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Ez,useRecoilStateLoadable:Cz,useRecoilValue:Az,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Rz,useRecoilValueLoadable:kz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Tz,useResetRecoilState:Dz,useSetRecoilState:Pz}=z$,{useGotoRecoilSnapshot:Oz,useRecoilSnapshot:Lz,useRecoilTransactionObserver:Nz}=JA,{useRecoilCallback:Mz}=rR,{noWait:Bz,waitForAll:Iz,waitForAllSettled:$z,waitForAny:Fz,waitForNone:Uz}=mz;var Ns={DefaultValue:vz,isRecoilValue:xz,RecoilLoadable:gz,RecoilEnv:su,RecoilRoot:yz,useRecoilStoreID:wz,useRecoilBridgeAcrossReactRoots_UNSTABLE:hF,atom:dR,selector:Gl,atomFamily:XU,selectorFamily:Ls,constSelector:nz,errorSelector:iz,readOnlySelector:az,noWait:Bz,waitForNone:Uz,waitForAny:Fz,waitForAll:Iz,waitForAllSettled:$z,useRecoilValue:Az,useRecoilValueLoadable:kz,useRecoilState:Sz,useRecoilStateLoadable:Cz,useSetRecoilState:Pz,useResetRecoilState:Dz,useGetRecoilValueInfo_UNSTABLE:lF,useRecoilRefresher_UNSTABLE:VF,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Tz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Rz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Ez,useRecoilCallback:Mz,useRecoilTransaction_UNSTABLE:KF,useGotoRecoilSnapshot:Oz,useRecoilSnapshot:Lz,useRecoilTransactionObserver_UNSTABLE:Nz,snapshot_UNSTABLE:_z,useRetain:ly,retentionZone:bz},zz=Ns.DefaultValue,jz=Ns.RecoilRoot,Sn=Ns.atom,vR=Ns.selector,Pn=Ns.useRecoilValue,ES=Ns.useRecoilState,xn=Ns.useSetRecoilState,hp=Ns.useResetRecoilState,ih={exports:{}};/** + hot module replacement.`;console.warn(t)}}function RM(e){su.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&AM(e.key),Sa.set(e.key,e);const t=e.set==null?new Wl.RecoilValueReadOnly(e.key):new Wl.RecoilState(e.key);return J1.set(e.key,t),t}class iA extends Error{}function kM(e){const t=Sa.get(e);if(t==null)throw new iA(`Missing definition for RecoilValue: "${e}""`);return t}function TM(e){return Sa.get(e)}const th=new Map;function DM(e){var t;if(!Ft("recoil_memory_managament_2020"))return;const n=Sa.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Sa.delete(e),(r=sA(e))===null||r===void 0||r(),th.delete(e)}}function PM(e,t){Ft("recoil_memory_managament_2020")&&(t===void 0?th.delete(e):th.set(e,t))}function sA(e){return th.get(e)}var Ur={nodes:Sa,recoilValues:J1,registerNode:RM,getNode:kM,getNodeMaybe:TM,deleteNodeConfigIfPossible:DM,setConfigDeletionHandler:PM,getConfigDeletionHandler:sA,recoilValuesForKeys:CM,NodeMissingError:iA,DefaultValue:oA,DEFAULT_VALUE:EM};function OM(e,t){t()}var LM={enqueueExecution:OM};function NM(e,t){return t={exports:{}},e(t,t.exports),t.exports}var MM=NM(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,u=o/4,c={},f=function(F){return function(){return F}},p=n.hash=function(W){var F=typeof W>"u"?"undefined":t(W);if(F==="number")return W;F!=="string"&&(W+="");for(var ue=0,_e=0,be=W.length;_e>1&1431655765,F=(F&858993459)+(F>>2&858993459),F=F+(F>>4)&252645135,F+=F>>8,F+=F>>16,F&127},m=function(F,ue){return ue>>>F&i},x=function(F){return 1<=ue;)be[Fe--]=be[Fe];return be[ue]=_e,be}for(var Me=0,Ie=0,Ge=new Array(Ce+1);Me>>=1;return Fe[ue]=_e,Y(F,Ie+1,Fe)},H=function(F,ue,_e,be){for(var Ce=new Array(ue-1),Fe=0,Me=0,Ie=0,Ge=be.length;Ie1?q(F,this.hash,Ge):Ge[0]}var _t=be();return _t===c?this:(++Me.value,Q(F,_e,this.hash,this,Ce,$(F,Ce,Fe,_t)))},re=function(F,ue,_e,be,Ce,Fe,Me){var Ie=this.mask,Ge=this.children,_t=m(_e,Ce),kn=x(_t),zt=v(Ie,kn),Tn=Ie&kn,fn=Tn?Ge[zt]:E,so=fn._modify(F,ue,_e+r,be,Ce,Fe,Me);if(fn===so)return this;var or=de(F,this),N=Ie,I=void 0;if(Tn&&L(so)){if(N&=~kn,!N)return E;if(Ge.length<=2&&se(Ge[zt^1]))return Ge[zt^1];I=A(or,zt,Ge)}else if(!Tn&&!L(so)){if(Ge.length>=a)return K(F,_t,so,Ie,Ge);N|=kn,I=_(or,zt,so,Ge)}else I=y(or,zt,so,Ge);return or?(this.mask=N,this.children=I,this):B(F,N,I)},me=function(F,ue,_e,be,Ce,Fe,Me){var Ie=this.size,Ge=this.children,_t=m(_e,Ce),kn=Ge[_t],zt=(kn||E)._modify(F,ue,_e+r,be,Ce,Fe,Me);if(kn===zt)return this;var Tn=de(F,this),fn=void 0;if(L(kn)&&!L(zt))++Ie,fn=y(Tn,_t,zt,Ge);else if(!L(kn)&&L(zt)){if(--Ie,Ie<=u)return H(F,Ie,_t,Ge);fn=y(Tn,_t,E,Ge)}else fn=y(Tn,_t,zt,Ge);return Tn?(this.size=Ie,this.children=fn,this):Y(F,Ie,fn)};E._modify=function(W,F,ue,_e,be,Ce,Fe){var Me=_e();return Me===c?E:(++Fe.value,$(W,be,Ce,Me))};function U(W,F,ue,_e,be){this._editable=W,this._edit=F,this._config=ue,this._root=_e,this._size=be}U.prototype.setTree=function(W,F){return this._editable?(this._root=W,this._size=F,this):W===this._root?this:new U(this._editable,this._edit,this._config,W,F)};var ae=n.tryGetHash=function(W,F,ue,_e){for(var be=_e._root,Ce=0,Fe=_e._config.keyEq;;)switch(be.type){case w:return Fe(ue,be.key)?be.value:W;case S:{if(F===be.hash)for(var Me=be.children,Ie=0,Ge=Me.length;Ie{n.set(o,t(r,o))}),n}var nh=zM;function jM(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function VM(e){return{nodeDeps:nh(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:nh(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Fg(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,a=o.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;o.set(e,t);const u=a==null?t:yc(t,a);for(const c of u)i.has(c)||i.set(c,new Set),tn(i.get(c)).add(e);if(a){const c=yc(a,t);for(const f of c){if(!i.has(f))return;const p=tn(i.get(f));p.delete(e),p.size===0&&i.delete(f)}}}function WM(e,t,n,r){var o,i,a,u;const c=n.getState();r===c.currentTree.version||r===((o=c.nextTree)===null||o===void 0?void 0:o.version)||((i=c.previousTree)===null||i===void 0||i.version);const f=n.getGraph(r);if(Fg(e,t,f),r===((a=c.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(c.currentTree.version);Fg(e,t,h,f)}if(r===((u=c.previousTree)===null||u===void 0?void 0:u.version)||r===c.currentTree.version){var p;const h=(p=c.nextTree)===null||p===void 0?void 0:p.version;if(h!==void 0){const m=n.getGraph(h);Fg(e,t,m,f)}}}var cf={cloneGraph:VM,graph:jM,saveDepsToStore:WM};let qM=0;const HM=()=>qM++;let GM=0;const KM=()=>GM++;let YM=0;const XM=()=>YM++;var Fh={getNextTreeStateVersion:HM,getNextStoreID:KM,getNextComponentID:XM};const{persistentMap:tS}=FM,{graph:ZM}=cf,{getNextTreeStateVersion:aA}=Fh;function lA(){const e=aA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:tS(),nonvalidatedAtoms:tS()}}function QM(){const e=lA();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,ZM()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var uA={makeEmptyTreeState:lA,makeEmptyStoreState:QM,getNextTreeStateVersion:aA};class cA{}function JM(){return new cA}var Uh={RetentionZone:cA,retentionZone:JM};function eB(e,t){const n=new Set(e);return n.add(t),n}function tB(e,t){const n=new Set(e);return n.delete(t),n}function nB(e,t,n){const r=new Map(e);return r.set(t,n),r}function rB(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function oB(e,t){const n=new Map(e);return n.delete(t),n}function iB(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var fA={setByAddingToSet:eB,setByDeletingFromSet:tB,mapBySettingInMap:nB,mapByUpdatingInMap:rB,mapByDeletingFromMap:oB,mapByDeletingMultipleFromMap:iB};function*sB(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ny=sB;function aB(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var dA=aB;const{getNode:ff,getNodeMaybe:lB,recoilValuesForKeys:nS}=Ur,{RetentionZone:rS}=Uh,{setByAddingToSet:uB}=fA,cB=Object.freeze(new Set);class fB extends Error{}function dB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(i){let a=r.get(i);a||r.set(i,a=new Set),a.add(t)}if(n instanceof rS)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!Ft("recoil_memory_managament_2020"))return;const{retention:i}=e.getState();function a(u){const c=i.nodesRetainedByZone.get(u);c==null||c.delete(t),c&&c.size===0&&i.nodesRetainedByZone.delete(u)}if(n instanceof rS)a(n);else if(Array.isArray(n))for(const u of n)a(u)}}function ry(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=ff(n),a=dB(e,n,i.retainedBy),u=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),a()})}function pB(e,t,n){ry(e,e.getState().currentTree,t,n)}function hB(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function mB(e,t,n){return ry(e,t,n,"get"),ff(n).get(e,t)}function pA(e,t,n){return ff(n).peek(e,t)}function gB(e,t,n){var r;const o=lB(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:uB(e.dirtyAtoms,t)}}function vB(e,t,n,r){const o=ff(n);if(o.set==null)throw new fB(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return ry(e,t,n,"set"),i(e,t,r)}function yB(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=ff(n).nodeType;return dA({type:i},{loadable:()=>pA(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>i==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var a;return nS((a=o.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,u;return{nodes:nS(ny(hA(e,t,new Set([n])),c=>c!==n)),components:$h((a=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&a!==void 0?a:[],([c])=>({name:c}))}}})}function hA(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var a;r.add(u);const c=(a=i.nodeToNodeSubscriptions.get(u))!==null&&a!==void 0?a:cB;for(const f of c)r.has(f)||o.push(f)}return r}var Os={getNodeLoadable:mB,peekNodeLoadable:pA,setNodeValue:vB,initializeNode:pB,cleanUpNode:hB,setUnvalidatedAtomValue_DEPRECATED:gB,peekNodeInfo:yB,getDownstreamNodes:hA};let mA=null;function wB(e){mA=e}function xB(){var e;(e=mA)===null||e===void 0||e()}var gA={setInvalidateMemoizedSnapshot:wB,invalidateMemoizedSnapshot:xB};const{getDownstreamNodes:bB,getNodeLoadable:vA,setNodeValue:_B}=Os,{getNextComponentID:SB}=Fh,{getNode:EB,getNodeMaybe:yA}=Ur,{DefaultValue:oy}=Ur,{reactMode:CB}=uf,{AbstractRecoilValue:AB,RecoilState:RB,RecoilValueReadOnly:kB,isRecoilValue:TB}=Wl,{invalidateMemoizedSnapshot:DB}=gA;function PB(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=i.previousTree)===null||o===void 0||o.version);const a=vA(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function OB(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof oy?n.delete(o):n.set(o,r)}),n}function LB(e,t,{key:n},r){if(typeof r=="function"){const o=vA(e,t,n);if(o.state==="loading"){const i=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw rt(i)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function NB(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:i}=n,a=LB(e,t,o,i),u=_B(e,t,o.key,a);for(const[c,f]of u.entries())l2(t,c,f)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:i}=n;l2(t,o,i)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:i}=n,a=yA(o);a==null||(r=a.invalidate)===null||r===void 0||r.call(a,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else Z1(`Unknown action ${n.type}`)}function l2(e,t,n){n.state==="hasValue"&&n.contents instanceof oy?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function wA(e,t){e.replaceState(n=>{const r=xA(n);for(const o of t)NB(e,r,o);return bA(e,r),DB(),r})}function zh(e,t){if(wc.length){const n=wc[wc.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else wA(e,[t])}const wc=[];function MB(){const e=new Map;return wc.push(e),()=>{for(const[t,n]of e)wA(t,n);wc.pop()}}function xA(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function bA(e,t){const n=bB(e,t,t.dirtyAtoms);for(const i of n){var r,o;(r=yA(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function _A(e,t,n){zh(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function BB(e,t,n){if(n instanceof oy)return _A(e,t,n);zh(e,{type:"setLoadable",recoilValue:t,loadable:n})}function IB(e,t){zh(e,{type:"markModified",recoilValue:t})}function $B(e,t,n){zh(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function FB(e,{key:t},n,r=null){const o=SB(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),tn(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const a=CB();if(a.early&&(a.mode==="LEGACY"||a.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),c=u.nodeToComponentSubscriptions.get(t);c===void 0||!c.has(o)||(c.delete(o),c.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function UB(e,t){var n;const{currentTree:r}=e.getState(),o=EB(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var wi={RecoilValueReadOnly:kB,AbstractRecoilValue:AB,RecoilState:RB,getRecoilValueAsLoadable:PB,setRecoilValue:_A,setRecoilValueLoadable:BB,markRecoilValueModified:IB,setUnvalidatedRecoilValue:$B,subscribeToRecoilValue:FB,isRecoilValue:TB,applyAtomValueWrites:OB,batchStart:MB,writeLoadableToTreeState:l2,invalidateDownstreams:bA,copyTreeState:xA,refreshRecoilValue:UB};function zB(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var jB=zB;const{cleanUpNode:VB}=Os,{deleteNodeConfigIfPossible:WB,getNode:SA}=Ur,{RetentionZone:EA}=Uh,qB=12e4,CA=new Set;function AA(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const a of t)if(a instanceof EA)for(const u of YB(n,a))o.add(u);else o.add(a);const i=HB(e,o);for(const a of i)KB(e,r,a)}function HB(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return u(t),i;function u(c){const f=new Set,p=GB(e,r,c,i,a);for(const v of p){var h;if(SA(v).retainedBy==="recoilRoot"){a.add(v);continue}if(((h=n.retention.referenceCounts.get(v))!==null&&h!==void 0?h:0)>0){a.add(v);continue}if(RA(v).some(A=>n.retention.referenceCounts.get(A))){a.add(v);continue}const y=o.nodeToNodeSubscriptions.get(v);if(y&&jB(y,A=>a.has(A))){a.add(v);continue}i.add(v),f.add(v)}const m=new Set;for(const v of f)for(const y of(x=o.nodeDeps.get(v))!==null&&x!==void 0?x:CA){var x;i.has(y)||m.add(y)}m.size&&u(m)}}function GB(e,t,n,r,o){const i=e.getGraph(t.version),a=[],u=new Set;for(;n.size>0;)c(tn(n.values().next().value));return a;function c(f){if(r.has(f)||o.has(f)){n.delete(f);return}if(u.has(f))return;const p=i.nodeToNodeSubscriptions.get(f);if(p)for(const h of p)c(h);u.add(f),n.delete(f),a.push(f)}}function KB(e,t,n){if(!Ft("recoil_memory_managament_2020"))return;VB(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=RA(n);for(const c of o){var i;(i=r.retention.nodesRetainedByZone.get(c))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const c=a.nodeDeps.get(n);if(c!==void 0){a.nodeDeps.delete(n);for(const f of c){var u;(u=a.nodeToNodeSubscriptions.get(f))===null||u===void 0||u.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}WB(n)}function YB(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:CA}function RA(e){const t=SA(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof EA?[t]:t}function XB(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):AA(e,new Set([t]))}function ZB(e,t,n){var r;if(!Ft("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?kA(e,t):o.set(t,i)}function kA(e,t){if(!Ft("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),XB(e,t)}function QB(e){if(!Ft("recoil_memory_managament_2020"))return;const t=e.getState();AA(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function JB(e){return e===void 0?"recoilRoot":e}var Da={SUSPENSE_TIMEOUT_MS:qB,updateRetainCount:ZB,updateRetainCountToZero:kA,releaseScheduledRetainablesNow:QB,retainedByOptionWithDefault:JB};const{unstable_batchedUpdates:eI}=xl;var tI={unstable_batchedUpdates:eI};const{unstable_batchedUpdates:nI}=tI;var rI={unstable_batchedUpdates:nI};const{batchStart:oI}=wi,{unstable_batchedUpdates:iI}=rI;let iy=iI||(e=>e());const sI=e=>{iy=e},aI=()=>iy,lI=e=>{iy(()=>{let t=()=>{};try{t=oI(),e()}finally{t()}})};var jh={getBatcher:aI,setBatcher:sI,batchUpdates:lI};function*uI(e){for(const t of e)for(const n of t)yield n}var TA=uI;const DA=typeof Window>"u"||typeof window>"u",cI=e=>!DA&&(e===window||e instanceof Window),fI=typeof navigator<"u"&&navigator.product==="ReactNative";var Vh={isSSR:DA,isReactNative:fI,isWindow:cI};function dI(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function pI(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}}function hI(e,t){let n,r;return[(...a)=>{const u=t(...a);return n===u||(n=u,r=e(...a)),r},()=>{n=null}]}var mI={memoizeWithArgsHash:dI,memoizeOneWithArgsHash:pI,memoizeOneWithArgsHashAndInvalidation:hI};const{batchUpdates:u2}=jh,{initializeNode:gI,peekNodeInfo:vI}=Os,{graph:yI}=cf,{getNextStoreID:wI}=Fh,{DEFAULT_VALUE:xI,recoilValues:oS,recoilValuesForKeys:iS}=Ur,{AbstractRecoilValue:bI,getRecoilValueAsLoadable:_I,setRecoilValue:sS,setUnvalidatedRecoilValue:SI}=wi,{updateRetainCount:pp}=Da,{setInvalidateMemoizedSnapshot:EI}=gA,{getNextTreeStateVersion:CI,makeEmptyStoreState:AI}=uA,{isSSR:RI}=Vh,{memoizeOneWithArgsHashAndInvalidation:kI}=mI;class Wh{constructor(t,n){et(this,"_store",void 0),et(this,"_refCount",1),et(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),_I(this._store,r))),et(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),et(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const a=this._store.getState().currentTree;return iS(a.dirtyAtoms)}const o=this._store.getState().knownAtoms,i=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?oS.values():r.isInitialized===!0?iS(TA([o,i])):ny(oS.values(),({key:a})=>!o.has(a)&&!i.has(a))}),et(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),vI(this._store,this._store.getState().currentTree,r))),et(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new c2(this,u2);return r(o),o}),et(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new c2(this,u2);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:wI(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return tn(o.get(r));const i=yI();return o.set(r,i),i},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw rt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)gI(this._store,r,"get"),pp(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){RI||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!Ft("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Ft("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function PA(e,t,n=!1){const r=e.getState(),o=n?CI():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map($h(r.nodeCleanupFunctions.entries(),([i])=>[i,()=>{}]))}}function TI(e){const t=new Wh(AI());return e!=null?t.map(e):t}const[aS,OA]=kI((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:tn(r.previousTree);return new Wh(PA(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});EI(OA);function DI(e,t="latest"){const n=aS(e,t);return n.isRetained()?n:(OA(),aS(e,t))}class c2 extends Wh{constructor(t,n){super(PA(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),et(this,"_batch",void 0),et(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{pp(i,r.key,1),sS(this.getStore_INTERNAL(),r,o)})}),et(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pp(o,r.key,1),sS(this.getStore_INTERNAL(),r,xI)})}),et(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();u2(()=>{for(const[i,a]of r.entries())pp(o,i,1),SI(o,new bI(i),a)})}),this._batch=n}}var qh={Snapshot:Wh,MutableSnapshot:c2,freshSnapshot:TI,cloneSnapshot:DI},PI=qh.Snapshot,OI=qh.MutableSnapshot,LI=qh.freshSnapshot,NI=qh.cloneSnapshot,Hh=Object.freeze({__proto__:null,Snapshot:PI,MutableSnapshot:OI,freshSnapshot:LI,cloneSnapshot:NI});function MI(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var BI=MI;const{useRef:II}=Ze;function $I(e){const t=II(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var lS=$I;const{getNextTreeStateVersion:FI,makeEmptyStoreState:LA}=uA,{cleanUpNode:UI,getDownstreamNodes:zI,initializeNode:jI,setNodeValue:VI,setUnvalidatedAtomValue_DEPRECATED:WI}=Os,{graph:qI}=cf,{cloneGraph:HI}=cf,{getNextStoreID:NA}=Fh,{createMutableSource:Ug,reactMode:MA}=uf,{applyAtomValueWrites:GI}=wi,{releaseScheduledRetainablesNow:BA}=Da,{freshSnapshot:KI}=Hh,{useCallback:YI,useContext:IA,useEffect:f2,useMemo:XI,useRef:ZI,useState:QI}=Ze;function Uu(){throw rt("This component must be used inside a component.")}const $A=Object.freeze({storeID:NA(),getState:Uu,replaceState:Uu,getGraph:Uu,subscribeToTransactions:Uu,addTransactionMetadata:Uu});let d2=!1;function uS(e){if(d2)throw rt("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){Ft("recoil_memory_managament_2020")&&Ft("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&BA(e);const n=t.currentTree.version,r=FI();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,HI(tn(t.graphsByVersion.get(n))))}}const FA=Ze.createContext({current:$A}),Gh=()=>IA(FA),UA=Ze.createContext(null);function JI(){return IA(UA)}function sy(e,t,n){const r=zI(e,n,n.dirtyAtoms);for(const o of r){const i=t.nodeToComponentSubscriptions.get(o);if(i)for(const[a,[u,c]]of i)c(n)}}function zA(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[a,u]of i)u(e);for(const[o,i]of t.transactionSubscriptions)i(e);(!MA().early||t.suspendedComponentResolvers.size>0)&&(sy(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function e$(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,zA(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Z1("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Ft("recoil_memory_managament_2020")&&n==null&&BA(e)}finally{t.commitDepth--}}function t$({setNotifyBatcherOfChange:e}){const t=Gh(),[,n]=QI([]);return e(()=>n({})),f2(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),f2(()=>{LM.enqueueExecution("Batcher",()=>{e$(t.current)})}),null}function n$(e,t){const n=LA();return t({set:(r,o)=>{const i=n.currentTree,a=VI(e,i,r.key,o),u=new Set(a.keys()),c=i.nonvalidatedAtoms.clone();for(const f of u)c.delete(f);n.currentTree={...i,dirtyAtoms:BI(i.dirtyAtoms,u),atomValues:GI(i.atomValues,a),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=WI(n.currentTree,i,o)})}}),n}function r$(e){const t=KI(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let cS=0;function o$({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=x=>{const v=o.current.graphsByVersion;if(v.has(x))return tn(v.get(x));const y=qI();return v.set(x,y),y},a=(x,v)=>{if(v==null){const{transactionSubscriptions:y}=h.current.getState(),A=cS++;return y.set(A,x),{release:()=>{y.delete(A)}}}else{const{nodeTransactionSubscriptions:y}=h.current.getState();y.has(v)||y.set(v,new Map);const A=cS++;return tn(y.get(v)).set(A,x),{release:()=>{const _=y.get(v);_&&(_.delete(A),_.size===0&&y.delete(v))}}}},u=x=>{uS(h.current);for(const v of Object.keys(x))tn(h.current.getState().nextTree).transactionMetadata[v]=x[v]},c=x=>{uS(h.current);const v=tn(o.current.nextTree);let y;try{d2=!0,y=x(v)}finally{d2=!1}y!==v&&(o.current.nextTree=y,MA().early&&sy(h.current,o.current,y),tn(f.current)())},f=ZI(null),p=YI(x=>{f.current=x},[f]),h=lS(()=>n??{storeID:NA(),getState:()=>o.current,replaceState:c,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:u});n!=null&&(h.current=n),o=lS(()=>e!=null?n$(h.current,e):t!=null?r$(t):LA());const m=XI(()=>Ug==null?void 0:Ug(o,()=>o.current.currentTree.version),[o]);return f2(()=>{const x=h.current;for(const v of new Set(x.getState().knownAtoms))jI(x,v,"get");return()=>{for(const v of x.getState().knownAtoms)UI(x,v)}},[h]),Ze.createElement(FA.Provider,{value:h},Ze.createElement(UA.Provider,{value:m},Ze.createElement(t$,{setNotifyBatcherOfChange:p}),r))}function i$(e){const{override:t,...n}=e,r=Gh();return t===!1&&r.current!==$A?e.children:Ze.createElement(o$,n)}function s$(){return Gh().current.storeID}var Wi={RecoilRoot:i$,useStoreRef:Gh,useRecoilMutableSource:JI,useRecoilStoreID:s$,notifyComponents_FOR_TESTING:sy,sendEndOfBatchNotifications_FOR_TESTING:zA};function a$(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var jA=f$;const{useStoreRef:d$}=Wi,{SUSPENSE_TIMEOUT_MS:p$}=Da,{updateRetainCount:zu}=Da,{RetentionZone:h$}=Uh,{useEffect:m$,useRef:g$}=Ze,{isSSR:fS}=Vh;function v$(e){if(Ft("recoil_memory_managament_2020"))return y$(e)}function y$(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof h$?a:a.key),r=d$();m$(()=>{if(!Ft("recoil_memory_managament_2020"))return;const a=r.current;if(o.current&&!fS)window.clearTimeout(o.current),o.current=null;else for(const u of n)zu(a,u,1);return()=>{for(const u of n)zu(a,u,-1)}},[r,...n]);const o=g$(),i=jA(n);if(!fS&&(i===void 0||!l$(i,n))){const a=r.current;for(const u of n)zu(a,u,1);if(i)for(const u of i)zu(a,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)zu(a,u,-1)},p$)}}var ay=v$;function w$(){return""}var df=w$;const{batchUpdates:x$}=jh,{DEFAULT_VALUE:VA}=Ur,{currentRendererSupportsUseSyncExternalStore:b$,reactMode:au,useMutableSource:_$,useSyncExternalStore:S$}=uf,{useRecoilMutableSource:E$,useStoreRef:xi}=Wi,{AbstractRecoilValue:p2,getRecoilValueAsLoadable:pf,setRecoilValue:rh,setUnvalidatedRecoilValue:C$,subscribeToRecoilValue:ql}=wi,{useCallback:Lr,useEffect:Hl,useMemo:WA,useRef:xc,useState:ly}=Ze,{setByAddingToSet:A$}=fA,{isSSR:R$}=Vh;function uy(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const i=n.current.getState().suspendedComponentResolvers;i.add(o),R$&&Kt(e.contents)&&e.contents.finally(()=>{i.delete(o)})}):e.state==="hasError"?e.contents:rt(`Invalid value of loadable atom "${t.key}"`)}function k$(){const e=df(),t=xi(),[,n]=ly([]),r=xc(new Set);r.current=new Set;const o=xc(new Set),i=xc(new Map),a=Lr(c=>{const f=i.current.get(c);f&&(f.release(),i.current.delete(c))},[i]),u=Lr((c,f)=>{i.current.has(f)&&n([])},[]);return Hl(()=>{const c=t.current;yc(r.current,o.current).forEach(f=>{if(i.current.has(f))return;const p=ql(c,new p2(f),m=>u(m,f),e);i.current.set(f,p),c.getState().nextTree?c.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(c.getState(),f)}):u(c.getState(),f)}),yc(o.current,r.current).forEach(f=>{a(f)}),o.current=r.current}),Hl(()=>{const c=i.current;return yc(r.current,new Set(c.keys())).forEach(f=>{const p=ql(t.current,new p2(f),h=>u(h,f),e);c.set(f,p)}),()=>c.forEach((f,p)=>a(p))},[e,t,a,u]),WA(()=>{function c(v){return y=>{rh(t.current,v,y)}}function f(v){return()=>rh(t.current,v,VA)}function p(v){var y;r.current.has(v.key)||(r.current=A$(r.current,v.key));const A=t.current.getState();return pf(t.current,v,au().early&&(y=A.nextTree)!==null&&y!==void 0?y:A.currentTree)}function h(v){const y=p(v);return uy(y,v,t)}function m(v){return[h(v),c(v)]}function x(v){return[p(v),c(v)]}return{getRecoilValue:h,getRecoilValueLoadable:p,getRecoilState:m,getRecoilStateLoadable:x,getSetRecoilState:c,getResetRecoilState:f}},[r,t])}const T$={current:0};function D$(e){const t=xi(),n=df(),r=Lr(()=>{var u;const c=t.current,f=c.getState(),p=au().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return{loadable:pf(c,e,p),key:e.key}},[t,e]),o=Lr(u=>{let c;return()=>{var f,p;const h=u();return(f=c)!==null&&f!==void 0&&f.loadable.is(h.loadable)&&((p=c)===null||p===void 0?void 0:p.key)===h.key?c:(c=h,h)}},[]),i=WA(()=>o(r),[r,o]),a=Lr(u=>{const c=t.current;return ql(c,e,u,n).release},[t,e,n]);return S$(a,i,i).loadable}function P$(e){const t=xi(),n=Lr(()=>{var f;const p=t.current,h=p.getState(),m=au().early&&(f=h.nextTree)!==null&&f!==void 0?f:h.currentTree;return pf(p,e,m)},[t,e]),r=Lr(()=>n(),[n]),o=df(),i=Lr((f,p)=>{const h=t.current;return ql(h,e,()=>{if(!Ft("recoil_suppress_rerender_in_callback"))return p();const x=n();c.current.is(x)||p(),c.current=x},o).release},[t,e,o,n]),a=E$();if(a==null)throw rt("Recoil hooks must be used in components contained within a component.");const u=_$(a,r,i),c=xc(u);return Hl(()=>{c.current=u}),u}function h2(e){const t=xi(),n=df(),r=Lr(()=>{var c;const f=t.current,p=f.getState(),h=au().early&&(c=p.nextTree)!==null&&c!==void 0?c:p.currentTree;return pf(f,e,h)},[t,e]),o=Lr(()=>({loadable:r(),key:e.key}),[r,e.key]),i=Lr(c=>{const f=o();return c.loadable.is(f.loadable)&&c.key===f.key?c:f},[o]);Hl(()=>{const c=ql(t.current,e,f=>{u(i)},n);return u(i),c.release},[n,e,t,i]);const[a,u]=ly(o);return a.key!==e.key?o().loadable:a.loadable}function O$(e){const t=xi(),[,n]=ly([]),r=df(),o=Lr(()=>{var u;const c=t.current,f=c.getState(),p=au().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return pf(c,e,p)},[t,e]),i=o(),a=xc(i);return Hl(()=>{a.current=i}),Hl(()=>{const u=t.current,c=u.getState(),f=ql(u,e,h=>{var m;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const x=o();(m=a.current)!==null&&m!==void 0&&m.is(x)||n(x),a.current=x},r);if(c.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var p;if(!Ft("recoil_suppress_rerender_in_callback"))return n([]);const h=o();(p=a.current)!==null&&p!==void 0&&p.is(h)||n(h),a.current=h}return f.release},[r,o,e,t]),i}function cy(e){return Ft("recoil_memory_managament_2020")&&ay(e),{TRANSITION_SUPPORT:h2,SYNC_EXTERNAL_STORE:b$()?D$:h2,MUTABLE_SOURCE:P$,LEGACY:O$}[au().mode](e)}function qA(e){const t=xi(),n=cy(e);return uy(n,e,t)}function Kh(e){const t=xi();return Lr(n=>{rh(t.current,e,n)},[t,e])}function L$(e){const t=xi();return Lr(()=>{rh(t.current,e,VA)},[t,e])}function N$(e){return[qA(e),Kh(e)]}function M$(e){return[cy(e),Kh(e)]}function B$(){const e=xi();return(t,n={})=>{x$(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>C$(e.current,new p2(o),r))})}}function HA(e){return Ft("recoil_memory_managament_2020")&&ay(e),h2(e)}function GA(e){const t=xi(),n=HA(e);return uy(n,e,t)}function I$(e){return[GA(e),Kh(e)]}var $$={recoilComponentGetRecoilValueCount_FOR_TESTING:T$,useRecoilInterface:k$,useRecoilState:N$,useRecoilStateLoadable:M$,useRecoilValue:qA,useRecoilValueLoadable:cy,useResetRecoilState:L$,useSetRecoilState:Kh,useSetUnvalidatedAtomValues:B$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:HA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:GA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:I$};function F$(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var U$=F$;function z$(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var j$=z$;function V$(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function hS(e){const t=e.atomValues.toMap(),n=nh(U$(t,(r,o)=>{const a=KA(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return W$(e.nonvalidatedAtoms.toMap(),n)}function Q$(e){Xh(Yh(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=hS(r),i=hS(n),a=nh(G$,c=>{var f,p,h,m;return{persistence_UNSTABLE:{type:(f=(p=c.persistence_UNSTABLE)===null||p===void 0?void 0:p.type)!==null&&f!==void 0?f:"none",backButton:(h=(m=c.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&h!==void 0?h:!1}}}),u=j$(r.dirtyAtoms,c=>o.has(c)||i.has(c));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function J$(e){Xh(Yh(t=>{const n=oh(t,"latest"),r=oh(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function eF(){const e=fy(),[t,n]=Z$(()=>oh(e.current)),r=jA(t),o=dS(),i=dS();if(Xh(Yh(u=>n(oh(u)),[])),YA(()=>{const u=t.retain();if(o.current&&!pS){var c;window.clearTimeout(o.current),o.current=null,(c=i.current)===null||c===void 0||c.call(i),i.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!pS){if(o.current){var a;window.clearTimeout(o.current),o.current=null,(a=i.current)===null||a===void 0||a.call(i),i.current=null}i.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=i.current)===null||u===void 0||u.call(i),i.current=null},X$)}return t}function XA(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;q$(()=>{const a=new Set;for(const f of[o.atomValues.keys(),i.atomValues.keys()])for(const p of f){var u,c;((u=o.atomValues.get(p))===null||u===void 0?void 0:u.contents)!==((c=i.atomValues.get(p))===null||c===void 0?void 0:c.contents)&&KA(p).shouldRestoreFromSnapshots&&a.add(p)}a.forEach(f=>{Y$(e,new K$(f),i.atomValues.has(f)?tn(i.atomValues.get(f)):H$)}),e.replaceState(f=>({...f,stateID:t.getID()}))})}function tF(){const e=fy();return Yh(t=>XA(e.current,t),[e])}var ZA={useRecoilSnapshot:eF,gotoSnapshot:XA,useGotoRecoilSnapshot:tF,useRecoilTransactionObserver:J$,useTransactionObservation_DEPRECATED:Q$,useTransactionSubscription_DEPRECATED:Xh};const{peekNodeInfo:nF}=Os,{useStoreRef:rF}=Wi;function oF(){const e=rF();return({key:t})=>nF(e.current,e.current.getState().currentTree,t)}var iF=oF;const{reactMode:sF}=uf,{RecoilRoot:aF,useStoreRef:lF}=Wi,{useMemo:uF}=Ze;function cF(){sF().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=lF().current;return uF(()=>{function t({children:n}){return Ze.createElement(aF,{store_INTERNAL:e},n)}return t},[e])}var fF=cF;const{loadableWithValue:dF}=lf,{initializeNode:pF}=Os,{DEFAULT_VALUE:hF,getNode:mF}=Ur,{copyTreeState:gF,getRecoilValueAsLoadable:vF,invalidateDownstreams:yF,writeLoadableToTreeState:wF}=wi;function mS(e){return mF(e.key).nodeType==="atom"}class xF{constructor(t,n){et(this,"_store",void 0),et(this,"_treeState",void 0),et(this,"_changes",void 0),et(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!mS(r))throw rt("Reading selectors within atomicUpdate is not supported");const o=vF(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:rt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),et(this,"set",(r,o)=>{if(!mS(r))throw rt("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const i=this.get(r);this._changes.set(r.key,o(i))}else pF(this._store,r.key,"set"),this._changes.set(r.key,o)}),et(this,"reset",r=>{this.set(r,hF)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=gF(this._treeState);for(const[n,r]of this._changes)wF(t,n,dF(r));return yF(this._store,t),t}}function bF(e){return t=>{e.replaceState(n=>{const r=new xF(e,n);return t(r),r.newTreeState_INTERNAL()})}}var _F={atomicUpdater:bF},SF=_F.atomicUpdater,QA=Object.freeze({__proto__:null,atomicUpdater:SF});function EF(e,t){if(!e)throw new Error(t)}var CF=EF,oc=CF;const{atomicUpdater:AF}=QA,{batchUpdates:RF}=jh,{DEFAULT_VALUE:kF}=Ur,{useStoreRef:TF}=Wi,{refreshRecoilValue:DF,setRecoilValue:gS}=wi,{cloneSnapshot:PF}=Hh,{gotoSnapshot:OF}=ZA,{useCallback:LF}=Ze;class JA{}const NF=new JA;function eR(e,t,n,r){let o=NF,i;if(RF(()=>{const u="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw rt(u);const c=dA({...r??{},set:(p,h)=>gS(e,p,h),reset:p=>gS(e,p,kF),refresh:p=>DF(e,p),gotoSnapshot:p=>OF(e,p),transact_UNSTABLE:p=>AF(e)(p)},{snapshot:()=>{const p=PF(e);return i=p.retain(),p}}),f=t(c);if(typeof f!="function")throw rt(u);o=f(...n)}),o instanceof JA&&oc(!1),Kt(o))o=o.finally(()=>{var u;(u=i)===null||u===void 0||u()});else{var a;(a=i)===null||a===void 0||a()}return o}function MF(e,t){const n=TF();return LF((...r)=>eR(n.current,e,r),t!=null?[...t,n]:void 0)}var tR={recoilCallback:eR,useRecoilCallback:MF};const{useStoreRef:BF}=Wi,{refreshRecoilValue:IF}=wi,{useCallback:$F}=Ze;function FF(e){const t=BF();return $F(()=>{const n=t.current;IF(n,e)},[e,t])}var UF=FF;const{atomicUpdater:zF}=QA,{useStoreRef:jF}=Wi,{useMemo:VF}=Ze;function WF(e,t){const n=jF();return VF(()=>(...r)=>{zF(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var qF=WF;class HF{constructor(t){et(this,"value",void 0),this.value=t}}var GF={WrappedValue:HF},KF=GF.WrappedValue,nR=Object.freeze({__proto__:null,WrappedValue:KF});const{isFastRefreshEnabled:YF}=uf;class vS extends Error{}class XF{constructor(t){var n,r,o;et(this,"_name",void 0),et(this,"_numLeafs",void 0),et(this,"_root",void 0),et(this,"_onHit",void 0),et(this,"_onSet",void 0),et(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var i,a,u,c;let f,p;for(const[A,_]of t){var h,m,x;const w=this._root;if((w==null?void 0:w.type)==="leaf")throw this.invalidCacheError();const S=f;if(f=S?S.branches.get(p):w,f=(h=f)!==null&&h!==void 0?h:{type:"branch",nodeKey:A,parent:S,branches:new Map,branchKey:p},f.type!=="branch"||f.nodeKey!==A)throw this.invalidCacheError();S==null||S.branches.set(p,f),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,f),p=this._mapNodeValue(_),this._root=(x=this._root)!==null&&x!==void 0?x:f}const v=f?(i=f)===null||i===void 0?void 0:i.branches.get(p):this._root;if(v!=null&&(v.type!=="leaf"||v.branchKey!==p))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:f,branchKey:p};(a=f)===null||a===void 0||a.branches.set(p,y),this._root=(u=this._root)!==null&&u!==void 0?u:y,this._numLeafs++,this._onSet(y),r==null||(c=r.onNodeVisit)===null||c===void 0||c.call(r,y)};try{o()}catch(i){if(i instanceof vS)this.clear(),o();else throw i}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var i;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(i=r)===null||i===void 0?void 0:i.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=YF()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw Z1(t+(this._name!=null?` - ${this._name}`:"")),new vS}}var ZF={TreeCache:XF},QF=ZF.TreeCache,rR=Object.freeze({__proto__:null,TreeCache:QF});class JF{constructor(t){var n;et(this,"_maxSize",void 0),et(this,"_size",void 0),et(this,"_head",void 0),et(this,"_tail",void 0),et(this,"_map",void 0),et(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const i=this.head(),a={key:t,right:i,left:null,value:n};i?i.left=a:this._tail=a,this._map.set(r,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=tn(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var eU={LRUCache:JF},tU=eU.LRUCache,oR=Object.freeze({__proto__:null,LRUCache:tU});const{LRUCache:nU}=oR,{TreeCache:rU}=rR;function oU({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new nU({maxSize:t}),o=new rU({name:e,mapNodeValue:n,onHit:i=>{r.set(i,!0)},onSet:i=>{const a=r.tail();r.set(i,!0),a&&o.size()>t&&o.delete(a.key)}});return o}var yS=oU;function Wo(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw rt("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(Kt(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>Wo(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return Wo(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[i,a]of e)o[typeof i=="string"?i:Wo(i,t)]=a;return Wo(o,t,n)}return e instanceof Set?Wo(Array.from(e).sort((o,i)=>Wo(o,t).localeCompare(Wo(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Wo(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${Wo(o,t)}:${Wo(e[o],t,o)}`).join(",")}}`}function iU(e,t={allowFunctions:!1}){return Wo(e,t)}var Zh=iU;const{TreeCache:sU}=rR,Ld={equality:"reference",eviction:"keep-all",maxSize:1/0};function aU({equality:e=Ld.equality,eviction:t=Ld.eviction,maxSize:n=Ld.maxSize}=Ld,r){const o=lU(e);return uU(t,n,o,r)}function lU(e){switch(e){case"reference":return t=>t;case"value":return t=>Zh(t)}throw rt(`Unrecognized equality policy ${e}`)}function uU(e,t,n,r){switch(e){case"keep-all":return new sU({name:r,mapNodeValue:n});case"lru":return yS({name:r,maxSize:tn(t),mapNodeValue:n});case"most-recent":return yS({name:r,maxSize:1,mapNodeValue:n})}throw rt(`Unrecognized eviction policy ${e}`)}var cU=aU;function fU(e){return()=>null}var dU={startPerfBlock:fU};const{isLoadable:pU,loadableWithError:Nd,loadableWithPromise:hU,loadableWithValue:zg}=lf,{WrappedValue:iR}=nR,{getNodeLoadable:Md,peekNodeLoadable:mU,setNodeValue:gU}=Os,{saveDepsToStore:vU}=cf,{DEFAULT_VALUE:yU,getConfigDeletionHandler:wU,getNode:xU,registerNode:wS}=Ur,{isRecoilValue:bU}=Wl,{markRecoilValueModified:xS}=wi,{retainedByOptionWithDefault:_U}=Da,{recoilCallback:SU}=tR,{startPerfBlock:EU}=dU;class sR{}const ju=new sR,Vu=[],Bd=new Map,CU=(()=>{let e=0;return()=>e++})();function aR(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=e.set!=null?e.set:void 0,a=new Set,u=cU(o??{equality:"reference",eviction:"keep-all"},n),c=_U(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!Ft("recoil_memory_managament_2020")||p>0}function m(U){return U.getState().knownSelectors.add(n),p++,()=>{p--}}function x(){return wU(n)!==void 0&&!h()}function v(U,ae,te,we,fe){le(ae,we,fe),y(U,te)}function y(U,ae){H(U,ae)&&K(U),_(ae,!0)}function A(U,ae){H(U,ae)&&(tn(B(U)).stateVersions.clear(),_(ae,!1))}function _(U,ae){const te=Bd.get(U);if(te!=null){for(const we of te)xS(we,tn(t));ae&&Bd.delete(U)}}function w(U,ae){let te=Bd.get(ae);te==null&&Bd.set(ae,te=new Set),te.add(U)}function S(U,ae,te,we,fe,ye){return ae.then(ge=>{if(!h())throw K(U),ju;const he=zg(ge);return v(U,te,fe,he,we),ge}).catch(ge=>{if(!h())throw K(U),ju;if(Kt(ge))return k(U,ge,te,we,fe,ye);const he=Nd(ge);throw v(U,te,fe,he,we),ge})}function k(U,ae,te,we,fe,ye){return ae.then(ge=>{if(!h())throw K(U),ju;ye.loadingDepKey!=null&&ye.loadingDepPromise===ae?te.atomValues.set(ye.loadingDepKey,zg(ge)):U.getState().knownSelectors.forEach(Re=>{te.atomValues.delete(Re)});const he=L(U,te);if(he&&he.state!=="loading"){if((H(U,fe)||B(U)==null)&&y(U,fe),he.state==="hasValue")return he.contents;throw he.contents}if(!H(U,fe)){const Re=q(U,te);if(Re!=null)return Re.loadingLoadable.contents}const[We,Le]=E(U,te,fe);if(We.state!=="loading"&&v(U,te,fe,We,Le),We.state==="hasError")throw We.contents;return We.contents}).catch(ge=>{if(ge instanceof sR)throw ju;if(!h())throw K(U),ju;const he=Nd(ge);throw v(U,te,fe,he,we),ge})}function T(U,ae,te,we){var fe,ye,ge,he;if(H(U,we)||ae.version===((fe=U.getState())===null||fe===void 0||(ye=fe.currentTree)===null||ye===void 0?void 0:ye.version)||ae.version===((ge=U.getState())===null||ge===void 0||(he=ge.nextTree)===null||he===void 0?void 0:he.version)){var We,Le,Re;vU(n,te,U,(We=(Le=U.getState())===null||Le===void 0||(Re=Le.nextTree)===null||Re===void 0?void 0:Re.version)!==null&&We!==void 0?We:U.getState().currentTree.version)}for(const Ke of te)a.add(Ke)}function E(U,ae,te){const we=EU(n);let fe=!0,ye=!0;const ge=()=>{we(),ye=!1};let he,We=!1,Le;const Re={loadingDepKey:null,loadingDepPromise:null},Ke=new Map;function st({key:bt}){const mt=Md(U,ae,bt);switch(Ke.set(bt,mt),fe||(T(U,ae,new Set(Ke.keys()),te),A(U,te)),mt.state){case"hasValue":return mt.contents;case"hasError":throw mt.contents;case"loading":throw Re.loadingDepKey=bt,Re.loadingDepPromise=mt.contents,mt.contents}throw rt("Invalid Loadable state")}const ht=bt=>(...mt)=>{if(ye)throw rt("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&oc(!1),SU(U,bt,mt,{node:t})};try{he=r({get:st,getCallback:ht}),he=bU(he)?st(he):he,pU(he)&&(he.state==="hasError"&&(We=!0),he=he.contents),Kt(he)?he=S(U,he,ae,Ke,te,Re).finally(ge):ge(),he=he instanceof iR?he.value:he}catch(bt){he=bt,Kt(he)?he=k(U,he,ae,Ke,te,Re).finally(ge):(We=!0,ge())}return We?Le=Nd(he):Kt(he)?Le=hU(he):Le=zg(he),fe=!1,se(U,te,Ke),T(U,ae,new Set(Ke.keys()),te),[Le,Ke]}function L(U,ae){let te=ae.atomValues.get(n);if(te!=null)return te;const we=new Set;try{te=u.get(ye=>(typeof ye!="string"&&oc(!1),Md(U,ae,ye).contents),{onNodeVisit:ye=>{ye.type==="branch"&&ye.nodeKey!==n&&we.add(ye.nodeKey)}})}catch(ye){throw rt(`Problem with cache lookup for selector "${n}": ${ye.message}`)}if(te){var fe;ae.atomValues.set(n,te),T(U,ae,we,(fe=B(U))===null||fe===void 0?void 0:fe.executionID)}return te}function $(U,ae){const te=L(U,ae);if(te!=null)return K(U),te;const we=q(U,ae);if(we!=null){var fe;return((fe=we.loadingLoadable)===null||fe===void 0?void 0:fe.state)==="loading"&&w(U,we.executionID),we.loadingLoadable}const ye=CU(),[ge,he]=E(U,ae,ye);return ge.state==="loading"?(Y(U,ye,ge,he,ae),w(U,ye)):(K(U),le(ae,ge,he)),ge}function q(U,ae){const te=TA([f.has(U)?[tn(f.get(U))]:[],$h(ny(f,([fe])=>fe!==U),([,fe])=>fe)]);function we(fe){for(const[ye,ge]of fe)if(!Md(U,ae,ye).is(ge))return!0;return!1}for(const fe of te){if(fe.stateVersions.get(ae.version)||!we(fe.depValuesDiscoveredSoFarDuringAsyncWork))return fe.stateVersions.set(ae.version,!0),fe;fe.stateVersions.set(ae.version,!1)}}function B(U){return f.get(U)}function Y(U,ae,te,we,fe){f.set(U,{depValuesDiscoveredSoFarDuringAsyncWork:we,executionID:ae,loadingLoadable:te,stateVersions:new Map([[fe.version,!0]])})}function se(U,ae,te){if(H(U,ae)){const we=B(U);we!=null&&(we.depValuesDiscoveredSoFarDuringAsyncWork=te)}}function K(U){f.delete(U)}function H(U,ae){var te;return ae===((te=B(U))===null||te===void 0?void 0:te.executionID)}function Q(U){return Array.from(U.entries()).map(([ae,te])=>[ae,te.contents])}function le(U,ae,te){U.atomValues.set(n,ae);try{u.set(Q(te),ae)}catch(we){throw rt(`Problem with setting cache for selector "${n}": ${we.message}`)}}function de(U){if(Vu.includes(n)){const ae=`Recoil selector has circular dependencies: ${Vu.slice(Vu.indexOf(n)).join(" → ")}`;return Nd(rt(ae))}Vu.push(n);try{return U()}finally{Vu.pop()}}function J(U,ae){const te=ae.atomValues.get(n);return te??u.get(we=>{var fe;return typeof we!="string"&&oc(!1),(fe=mU(U,ae,we))===null||fe===void 0?void 0:fe.contents})}function pe(U,ae){return de(()=>$(U,ae))}function re(U){U.atomValues.delete(n)}function me(U,ae){t==null&&oc(!1);for(const we of a){var te;const fe=xU(we);(te=fe.clearCache)===null||te===void 0||te.call(fe,U,ae)}a.clear(),re(ae),u.clear(),xS(U,t)}return i!=null?t=wS({key:n,nodeType:"selector",peek:J,get:pe,set:(ae,te,we)=>{let fe=!1;const ye=new Map;function ge({key:Re}){if(fe)throw rt("Recoil: Async selector sets are not currently supported.");const Ke=Md(ae,te,Re);if(Ke.state==="hasValue")return Ke.contents;if(Ke.state==="loading"){const st=`Getting value of asynchronous atom or selector "${Re}" in a pending state while setting selector "${n}" is not yet supported.`;throw rt(st)}else throw Ke.contents}function he(Re,Ke){if(fe)throw rt("Recoil: Async selector sets are not currently supported.");const st=typeof Ke=="function"?Ke(ge(Re)):Ke;gU(ae,te,Re.key,st).forEach((bt,mt)=>ye.set(mt,bt))}function We(Re){he(Re,yU)}const Le=i({set:he,get:ge,reset:We},we);if(Le!==void 0)throw Kt(Le)?rt("Recoil: Async selector sets are not currently supported."):rt("Recoil: selector set should be a void function.");return fe=!0,ye},init:m,invalidate:re,clearCache:me,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c}):t=wS({key:n,nodeType:"selector",peek:J,get:pe,init:m,invalidate:re,clearCache:me,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}aR.value=e=>new iR(e);var Gl=aR;const{isLoadable:AU,loadableWithError:jg,loadableWithPromise:Vg,loadableWithValue:Ya}=lf,{WrappedValue:lR}=nR,{peekNodeInfo:RU}=Os,{DEFAULT_VALUE:ta,DefaultValue:us,getConfigDeletionHandler:uR,registerNode:kU,setConfigDeletionHandler:TU}=Ur,{isRecoilValue:DU}=Wl,{getRecoilValueAsLoadable:PU,markRecoilValueModified:OU,setRecoilValue:bS,setRecoilValueLoadable:LU}=wi,{retainedByOptionWithDefault:NU}=Da,Wu=e=>e instanceof lR?e.value:e;function MU(e){const{key:t,persistence_UNSTABLE:n}=e,r=NU(e.retainedBy_UNSTABLE);let o=0;function i(w){return Vg(w.then(S=>(a=Ya(S),S)).catch(S=>{throw a=jg(S),S}))}let a=Kt(e.default)?i(e.default):AU(e.default)?e.default.state==="loading"?i(e.default.contents):e.default:Ya(Wu(e.default));a.contents;let u;const c=new Map;function f(w){return w}function p(w,S){const k=S.then(T=>{var E,L;return((L=((E=w.getState().nextTree)!==null&&E!==void 0?E:w.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&bS(w,_,T),T}).catch(T=>{var E,L;throw((L=((E=w.getState().nextTree)!==null&&E!==void 0?E:w.getState().currentTree).atomValues.get(t))===null||L===void 0?void 0:L.contents)===k&&LU(w,_,jg(T)),T});return k}function h(w,S,k){var T;o++;const E=()=>{var B;o--,(B=c.get(w))===null||B===void 0||B.forEach(Y=>Y()),c.delete(w)};if(w.getState().knownAtoms.add(t),a.state==="loading"){const B=()=>{var Y;((Y=w.getState().nextTree)!==null&&Y!==void 0?Y:w.getState().currentTree).atomValues.has(t)||OU(w,_)};a.contents.finally(B)}const L=(T=e.effects)!==null&&T!==void 0?T:e.effects_UNSTABLE;if(L!=null){let B=function(re){if(H&&re.key===t){const me=K;return me instanceof us?m(w,S):Kt(me)?Vg(me.then(U=>U instanceof us?a.toPromise():U)):Ya(me)}return PU(w,re)},Y=function(re){return B(re).toPromise()},se=function(re){var me;const U=RU(w,(me=w.getState().nextTree)!==null&&me!==void 0?me:w.getState().currentTree,re.key);return H&&re.key===t&&!(K instanceof us)?{...U,isSet:!0,loadable:B(re)}:U},K=ta,H=!0,Q=!1,le=null;const de=re=>me=>{if(H){const U=B(_),ae=U.state==="hasValue"?U.contents:ta;K=typeof me=="function"?me(ae):me,Kt(K)&&(K=K.then(te=>(le={effect:re,value:te},te)))}else{if(Kt(me))throw rt("Setting atoms to async values is not implemented.");typeof me!="function"&&(le={effect:re,value:Wu(me)}),bS(w,_,typeof me=="function"?U=>{const ae=Wu(me(U));return le={effect:re,value:ae},ae}:Wu(me))}},J=re=>()=>de(re)(ta),pe=re=>me=>{var U;const{release:ae}=w.subscribeToTransactions(te=>{var we;let{currentTree:fe,previousTree:ye}=te.getState();ye||(ye=fe);const ge=(we=fe.atomValues.get(t))!==null&&we!==void 0?we:a;if(ge.state==="hasValue"){var he,We,Le,Re;const Ke=ge.contents,st=(he=ye.atomValues.get(t))!==null&&he!==void 0?he:a,ht=st.state==="hasValue"?st.contents:ta;((We=le)===null||We===void 0?void 0:We.effect)!==re||((Le=le)===null||Le===void 0?void 0:Le.value)!==Ke?me(Ke,ht,!fe.atomValues.has(t)):((Re=le)===null||Re===void 0?void 0:Re.effect)===re&&(le=null)}},t);c.set(w,[...(U=c.get(w))!==null&&U!==void 0?U:[],ae])};for(const re of L)try{const me=re({node:_,storeID:w.storeID,parentStoreID_UNSTABLE:w.parentStoreID,trigger:k,setSelf:de(re),resetSelf:J(re),onSet:pe(re),getPromise:Y,getLoadable:B,getInfo_UNSTABLE:se});if(me!=null){var $;c.set(w,[...($=c.get(w))!==null&&$!==void 0?$:[],me])}}catch(me){K=me,Q=!0}if(H=!1,!(K instanceof us)){var q;const re=Q?jg(K):Kt(K)?Vg(p(w,K)):Ya(Wu(K));re.contents,S.atomValues.set(t,re),(q=w.getState().nextTree)===null||q===void 0||q.atomValues.set(t,re)}}return E}function m(w,S){var k,T;return(k=(T=S.atomValues.get(t))!==null&&T!==void 0?T:u)!==null&&k!==void 0?k:a}function x(w,S){if(S.atomValues.has(t))return tn(S.atomValues.get(t));if(S.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return a;const k=S.nonvalidatedAtoms.get(t),T=n.validator(k,ta);return u=T instanceof us?a:Ya(T),u}else return a}function v(){u=void 0}function y(w,S,k){if(S.atomValues.has(t)){const T=tn(S.atomValues.get(t));if(T.state==="hasValue"&&k===T.contents)return new Map}else if(!S.nonvalidatedAtoms.has(t)&&k instanceof us)return new Map;return u=void 0,new Map().set(t,Ya(k))}function A(){return uR(t)!==void 0&&o<=0}const _=kU({key:t,nodeType:"atom",peek:m,get:x,set:y,init:h,invalidate:v,shouldDeleteConfigOnRelease:A,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return _}function dy(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return DU(n)?BU({...t,default:n}):MU({...t,default:n})}function BU(e){const t=dy({...e,default:ta,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof us?r:tn(e.persistence_UNSTABLE).validator(r,ta)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Gl({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof us?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return TU(n.key,uR(e.key)),n}dy.value=e=>new lR(e);var cR=dy;class IU{constructor(t){var n;et(this,"_map",void 0),et(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var $U={MapCache:IU},FU=$U.MapCache,UU=Object.freeze({__proto__:null,MapCache:FU});const{LRUCache:_S}=oR,{MapCache:zU}=UU,Id={equality:"reference",eviction:"none",maxSize:1/0};function jU({equality:e=Id.equality,eviction:t=Id.eviction,maxSize:n=Id.maxSize}=Id){const r=VU(e);return WU(t,n,r)}function VU(e){switch(e){case"reference":return t=>t;case"value":return t=>Zh(t)}throw rt(`Unrecognized equality policy ${e}`)}function WU(e,t,n){switch(e){case"keep-all":return new zU({mapKey:n});case"lru":return new _S({mapKey:n,maxSize:tn(t)});case"most-recent":return new _S({mapKey:n,maxSize:1})}throw rt(`Unrecognized eviction policy ${e}`)}var fR=jU;const{setConfigDeletionHandler:qU}=Ur;function HU(e){var t,n;const r=fR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i,a;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:c,...f}=e,p="default"in e?e.default:new Promise(()=>{}),h=cR({...f,key:`${e.key}__${(i=Zh(o))!==null&&i!==void 0?i:"void"}`,default:typeof p=="function"?p(o):p,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(a=e.effects)!==null&&a!==void 0?a:e.effects_UNSTABLE});return r.set(o,h),qU(h.key,()=>{r.delete(o)}),h}}var GU=HU;const{setConfigDeletionHandler:KU}=Ur;let YU=0;function XU(e){var t,n;const r=fR({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let a;try{a=r.get(o)}catch(m){throw rt(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(a!=null)return a;const u=`${e.key}__selectorFamily/${(i=Zh(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${YU++}`,c=m=>e.get(o)(m),f=e.cachePolicy_UNSTABLE,p=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let h;if(e.set!=null){const m=e.set;h=Gl({key:u,get:c,set:(v,y)=>m(o)(v,y),cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p})}else h=Gl({key:u,get:c,cachePolicy_UNSTABLE:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:p});return r.set(o,h),KU(h.key,()=>{r.delete(o)}),h}}var Ls=XU;const ZU=Ls({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function QU(e){return ZU(e)}var JU=QU;const ez=Ls({key:"__error",get:e=>()=>{throw rt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function tz(e){return ez(e)}var nz=tz;function rz(e){return e}var oz=rz;const{loadableWithError:dR,loadableWithPromise:pR,loadableWithValue:hR}=lf;function Qh(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(a){r[o]=a}return[n,r]}function iz(e){return e!=null&&!Kt(e)}function Jh(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function m2(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function Pl(e,t,n){const r=n.map((o,i)=>o==null?hR(t[i]):Kt(o)?pR(o):dR(o));return m2(e,r)}function sz(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const az=Ls({key:"__waitForNone",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);return Pl(e,r,o)},dangerouslyAllowMutability:!0}),lz=Ls({key:"__waitForAny",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);return o.some(i=>!Kt(i))?Pl(e,r,o):new Promise(i=>{for(const[a,u]of o.entries())Kt(u)&&u.then(c=>{r[a]=c,o[a]=void 0,i(Pl(e,r,o))}).catch(c=>{o[a]=c,i(Pl(e,r,o))})})},dangerouslyAllowMutability:!0}),uz=Ls({key:"__waitForAll",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);if(o.every(a=>a==null))return m2(e,r);const i=o.find(iz);if(i!=null)throw i;return Promise.all(o).then(a=>m2(e,sz(r,a)))},dangerouslyAllowMutability:!0}),cz=Ls({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Jh(e),[r,o]=Qh(t,n);return o.every(i=>!Kt(i))?Pl(e,r,o):Promise.all(o.map((i,a)=>Kt(i)?i.then(u=>{r[a]=u,o[a]=void 0}).catch(u=>{r[a]=void 0,o[a]=u}):null)).then(()=>Pl(e,r,o))},dangerouslyAllowMutability:!0}),fz=Ls({key:"__noWait",get:e=>({get:t})=>{try{return Gl.value(hR(t(e)))}catch(n){return Gl.value(Kt(n)?pR(n):dR(n))}},dangerouslyAllowMutability:!0});var dz={waitForNone:az,waitForAny:lz,waitForAll:uz,waitForAllSettled:cz,noWait:fz};const{RecoilLoadable:pz}=lf,{DefaultValue:hz}=Ur,{RecoilRoot:mz,useRecoilStoreID:gz}=Wi,{isRecoilValue:vz}=Wl,{retentionZone:yz}=Uh,{freshSnapshot:wz}=Hh,{useRecoilState:xz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:bz,useRecoilStateLoadable:_z,useRecoilValue:Sz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ez,useRecoilValueLoadable:Cz,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Az,useResetRecoilState:Rz,useSetRecoilState:kz}=$$,{useGotoRecoilSnapshot:Tz,useRecoilSnapshot:Dz,useRecoilTransactionObserver:Pz}=ZA,{useRecoilCallback:Oz}=tR,{noWait:Lz,waitForAll:Nz,waitForAllSettled:Mz,waitForAny:Bz,waitForNone:Iz}=dz;var Ns={DefaultValue:hz,isRecoilValue:vz,RecoilLoadable:pz,RecoilEnv:su,RecoilRoot:mz,useRecoilStoreID:gz,useRecoilBridgeAcrossReactRoots_UNSTABLE:fF,atom:cR,selector:Gl,atomFamily:GU,selectorFamily:Ls,constSelector:JU,errorSelector:nz,readOnlySelector:oz,noWait:Lz,waitForNone:Iz,waitForAny:Bz,waitForAll:Nz,waitForAllSettled:Mz,useRecoilValue:Sz,useRecoilValueLoadable:Cz,useRecoilState:xz,useRecoilStateLoadable:_z,useSetRecoilState:kz,useResetRecoilState:Rz,useGetRecoilValueInfo_UNSTABLE:iF,useRecoilRefresher_UNSTABLE:UF,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Az,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ez,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:bz,useRecoilCallback:Oz,useRecoilTransaction_UNSTABLE:qF,useGotoRecoilSnapshot:Tz,useRecoilSnapshot:Dz,useRecoilTransactionObserver_UNSTABLE:Pz,snapshot_UNSTABLE:wz,useRetain:ay,retentionZone:yz},$z=Ns.DefaultValue,Fz=Ns.RecoilRoot,Sn=Ns.atom,mR=Ns.selector,Pn=Ns.useRecoilValue,SS=Ns.useRecoilState,xn=Ns.useSetRecoilState,hp=Ns.useResetRecoilState,ih={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ih.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,x=4,v=1,y=2,A=1,_=2,w=4,S=8,k=16,T=32,E=64,L=128,$=256,q=512,B=30,Y="...",se=800,K=16,H=1,Q=2,le=3,de=1/0,J=9007199254740991,pe=17976931348623157e292,re=NaN,me=4294967295,U=me-1,ae=me>>>1,te=[["ary",L],["bind",A],["bindKey",_],["curry",S],["curryRight",k],["flip",q],["partial",T],["partialRight",E],["rearg",$]],we="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",ge="[object Boolean]",he="[object Date]",We="[object DOMException]",Le="[object Error]",Re="[object Function]",Ke="[object GeneratorFunction]",st="[object Map]",ht="[object Number]",bt="[object Null]",mt="[object Object]",Mn="[object Promise]",pr="[object Proxy]",Ct="[object RegExp]",at="[object Set]",un="[object String]",cn="[object Symbol]",Ut="[object Undefined]",At="[object WeakMap]",An="[object WeakSet]",nn="[object ArrayBuffer]",qe="[object DataView]",Oe="[object Float32Array]",Xt="[object Float64Array]",rr="[object Int8Array]",qn="[object Int16Array]",Rn="[object Int32Array]",Io="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",ue="[object Uint32Array]",_e=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,Ce=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fe=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ie=RegExp(Fe.source),Ge=RegExp(Me.source),_t=/<%-([\s\S]+?)%>/g,kn=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/[\\^$.*+?()[\]{}|]/g,N=RegExp(or.source),I=/^\s+/,G=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Se=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,St=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,Rt=/^\[object .+?Constructor\]$/,Ae=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,dn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ni=/($^)/,ri=/['\n\r\u2028\u2029\\]/g,$o="\\ud800-\\udfff",qi="\\u0300-\\u036f",Hi="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",$s=qi+Hi+ao,Fs="\\u2700-\\u27bf",Us="a-z\\xdf-\\xf6\\xf8-\\xff",Qe="\\xac\\xb1\\xd7\\xf7",Zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hr="\\u2000-\\u206f",jt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lo="A-Z\\xc0-\\xd6\\xd8-\\xde",gu="\\ufe0e\\ufe0f",Tf=Qe+Zt+hr+jt,em="['’]",CT="["+$o+"]",kw="["+Tf+"]",Df="["+$s+"]",Tw="\\d+",AT="["+Fs+"]",Dw="["+Us+"]",Pw="[^"+$o+Tf+Tw+Fs+Us+lo+"]",tm="\\ud83c[\\udffb-\\udfff]",RT="(?:"+Df+"|"+tm+")",Ow="[^"+$o+"]",nm="(?:\\ud83c[\\udde6-\\uddff]){2}",rm="[\\ud800-\\udbff][\\udc00-\\udfff]",La="["+lo+"]",Lw="\\u200d",Nw="(?:"+Dw+"|"+Pw+")",kT="(?:"+La+"|"+Pw+")",Mw="(?:"+em+"(?:d|ll|m|re|s|t|ve))?",Bw="(?:"+em+"(?:D|LL|M|RE|S|T|VE))?",Iw=RT+"?",$w="["+gu+"]?",TT="(?:"+Lw+"(?:"+[Ow,nm,rm].join("|")+")"+$w+Iw+")*",DT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",PT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fw=$w+Iw+TT,OT="(?:"+[AT,nm,rm].join("|")+")"+Fw,LT="(?:"+[Ow+Df+"?",Df,nm,rm,CT].join("|")+")",NT=RegExp(em,"g"),MT=RegExp(Df,"g"),om=RegExp(tm+"(?="+tm+")|"+LT+Fw,"g"),BT=RegExp([La+"?"+Dw+"+"+Mw+"(?="+[kw,La,"$"].join("|")+")",kT+"+"+Bw+"(?="+[kw,La+Nw,"$"].join("|")+")",La+"?"+Nw+"+"+Mw,La+"+"+Bw,PT,DT,Tw,OT].join("|"),"g"),IT=RegExp("["+Lw+$o+$s+gu+"]"),$T=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],UT=-1,Ht={};Ht[Oe]=Ht[Xt]=Ht[rr]=Ht[qn]=Ht[Rn]=Ht[Io]=Ht[W]=Ht[F]=Ht[ue]=!0,Ht[we]=Ht[fe]=Ht[nn]=Ht[ge]=Ht[qe]=Ht[he]=Ht[Le]=Ht[Re]=Ht[st]=Ht[ht]=Ht[mt]=Ht[Ct]=Ht[at]=Ht[un]=Ht[At]=!1;var Vt={};Vt[we]=Vt[fe]=Vt[nn]=Vt[qe]=Vt[ge]=Vt[he]=Vt[Oe]=Vt[Xt]=Vt[rr]=Vt[qn]=Vt[Rn]=Vt[st]=Vt[ht]=Vt[mt]=Vt[Ct]=Vt[at]=Vt[un]=Vt[cn]=Vt[Io]=Vt[W]=Vt[F]=Vt[ue]=!0,Vt[Le]=Vt[Re]=Vt[At]=!1;var zT={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},jT={"&":"&","<":"<",">":">",'"':""","'":"'"},VT={"&":"&","<":"<",">":">",""":'"',"'":"'"},WT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qT=parseFloat,HT=parseInt,Uw=typeof window=="object"&&window&&window.Object===Object&&window,GT=typeof self=="object"&&self&&self.Object===Object&&self,Hn=Uw||GT||Function("return this")(),im=t&&!t.nodeType&&t,zs=im&&!0&&e&&!e.nodeType&&e,zw=zs&&zs.exports===im,sm=zw&&Uw.process,uo=function(){try{var z=zs&&zs.require&&zs.require("util").types;return z||sm&&sm.binding&&sm.binding("util")}catch{}}(),jw=uo&&uo.isArrayBuffer,Vw=uo&&uo.isDate,Ww=uo&&uo.isMap,qw=uo&&uo.isRegExp,Hw=uo&&uo.isSet,Gw=uo&&uo.isTypedArray;function zr(z,ee,X){switch(X.length){case 0:return z.call(ee);case 1:return z.call(ee,X[0]);case 2:return z.call(ee,X[0],X[1]);case 3:return z.call(ee,X[0],X[1],X[2])}return z.apply(ee,X)}function KT(z,ee,X,ke){for(var Ye=-1,kt=z==null?0:z.length;++Ye-1}function am(z,ee,X){for(var ke=-1,Ye=z==null?0:z.length;++ke-1;);return X}function tx(z,ee){for(var X=z.length;X--&&Na(ee,z[X],0)>-1;);return X}function r8(z,ee){for(var X=z.length,ke=0;X--;)z[X]===ee&&++ke;return ke}var o8=fm(zT),i8=fm(jT);function s8(z){return"\\"+WT[z]}function a8(z,ee){return z==null?n:z[ee]}function Ma(z){return IT.test(z)}function l8(z){return $T.test(z)}function u8(z){for(var ee,X=[];!(ee=z.next()).done;)X.push(ee.value);return X}function mm(z){var ee=-1,X=Array(z.size);return z.forEach(function(ke,Ye){X[++ee]=[Ye,ke]}),X}function nx(z,ee){return function(X){return z(ee(X))}}function Yi(z,ee){for(var X=-1,ke=z.length,Ye=0,kt=[];++X-1}function X8(s,l){var d=this.__data__,g=Kf(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}_i.prototype.clear=H8,_i.prototype.delete=G8,_i.prototype.get=K8,_i.prototype.has=Y8,_i.prototype.set=X8;function Si(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function ho(s,l,d,g,b,R){var O,M=l&h,j=l&m,oe=l&x;if(d&&(O=b?d(s,g,b,R):d(s)),O!==n)return O;if(!rn(s))return s;var ie=Xe(s);if(ie){if(O=e7(s),!M)return Er(s,O)}else{var ce=sr(s),Ee=ce==Re||ce==Ke;if(ts(s))return $x(s,M);if(ce==mt||ce==we||Ee&&!b){if(O=j||Ee?{}:rb(s),!M)return j?VD(s,dD(O,s)):jD(s,hx(O,s))}else{if(!Vt[ce])return b?s:{};O=t7(s,ce,M)}}R||(R=new Uo);var Ne=R.get(s);if(Ne)return Ne;R.set(s,O),Ob(s)?s.forEach(function(Ve){O.add(ho(Ve,l,d,Ve,s,R))}):Db(s)&&s.forEach(function(Ve,lt){O.set(lt,ho(Ve,l,d,lt,s,R))});var je=oe?j?zm:Um:j?Ar:Un,nt=ie?n:je(s);return co(nt||s,function(Ve,lt){nt&&(lt=Ve,Ve=s[lt]),Su(O,lt,ho(Ve,l,d,lt,s,R))}),O}function pD(s){var l=Un(s);return function(d){return mx(d,s,l)}}function mx(s,l,d){var g=d.length;if(s==null)return!g;for(s=$t(s);g--;){var b=d[g],R=l[b],O=s[b];if(O===n&&!(b in s)||!R(O))return!1}return!0}function gx(s,l,d){if(typeof s!="function")throw new fo(a);return Du(function(){s.apply(n,d)},l)}function Eu(s,l,d,g){var b=-1,R=Pf,O=!0,M=s.length,j=[],oe=l.length;if(!M)return j;d&&(l=Qt(l,jr(d))),g?(R=am,O=!1):l.length>=o&&(R=vu,O=!1,l=new Ws(l));e:for(;++bb?0:b+d),g=g===n||g>b?b:tt(g),g<0&&(g+=b),g=d>g?0:Nb(g);d0&&d(M)?l>1?Gn(M,l-1,d,g,b):Ki(b,M):g||(b[b.length]=M)}return b}var _m=Wx(),wx=Wx(!0);function oi(s,l){return s&&_m(s,l,Un)}function Sm(s,l){return s&&wx(s,l,Un)}function Xf(s,l){return Gi(l,function(d){return ki(s[d])})}function Hs(s,l){l=Ji(l,s);for(var d=0,g=l.length;s!=null&&dl}function gD(s,l){return s!=null&&Ot.call(s,l)}function vD(s,l){return s!=null&&l in $t(s)}function yD(s,l,d){return s>=ir(l,d)&&s=120&&ie.length>=120)?new Ws(O&&ie):n}ie=s[0];var ce=-1,Ee=M[0];e:for(;++ce-1;)M!==s&&zf.call(M,j,1),zf.call(s,j,1);return s}function Dx(s,l){for(var d=s?l.length:0,g=d-1;d--;){var b=l[d];if(d==g||b!==R){var R=b;Ri(b)?zf.call(s,b,1):Lm(s,b)}}return s}function Dm(s,l){return s+Wf(cx()*(l-s+1))}function PD(s,l,d,g){for(var b=-1,R=In(Vf((l-s)/(d||1)),0),O=X(R);R--;)O[g?R:++b]=s,s+=d;return O}function Pm(s,l){var d="";if(!s||l<1||l>J)return d;do l%2&&(d+=s),l=Wf(l/2),l&&(s+=s);while(l);return d}function ot(s,l){return Km(sb(s,l,Rr),s+"")}function OD(s){return px(Ha(s))}function LD(s,l){var d=Ha(s);return ad(d,qs(l,0,d.length))}function Ru(s,l,d,g){if(!rn(s))return s;l=Ji(l,s);for(var b=-1,R=l.length,O=R-1,M=s;M!=null&&++bb?0:b+l),d=d>b?b:d,d<0&&(d+=b),b=l>d?0:d-l>>>0,l>>>=0;for(var R=X(b);++g>>1,O=s[R];O!==null&&!Wr(O)&&(d?O<=l:O=o){var oe=l?null:GD(s);if(oe)return Lf(oe);O=!1,b=vu,j=new Ws}else j=l?[]:M;e:for(;++g=g?s:mo(s,l,d)}var Ix=E8||function(s){return Hn.clearTimeout(s)};function $x(s,l){if(l)return s.slice();var d=s.length,g=ix?ix(d):new s.constructor(d);return s.copy(g),g}function Im(s){var l=new s.constructor(s.byteLength);return new Ff(l).set(new Ff(s)),l}function $D(s,l){var d=l?Im(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function FD(s){var l=new s.constructor(s.source,$e.exec(s));return l.lastIndex=s.lastIndex,l}function UD(s){return _u?$t(_u.call(s)):{}}function Fx(s,l){var d=l?Im(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function Ux(s,l){if(s!==l){var d=s!==n,g=s===null,b=s===s,R=Wr(s),O=l!==n,M=l===null,j=l===l,oe=Wr(l);if(!M&&!oe&&!R&&s>l||R&&O&&j&&!M&&!oe||g&&O&&j||!d&&j||!b)return 1;if(!g&&!R&&!oe&&s=M)return j;var oe=d[g];return j*(oe=="desc"?-1:1)}}return s.index-l.index}function zx(s,l,d,g){for(var b=-1,R=s.length,O=d.length,M=-1,j=l.length,oe=In(R-O,0),ie=X(j+oe),ce=!g;++M1?d[b-1]:n,O=b>2?d[2]:n;for(R=s.length>3&&typeof R=="function"?(b--,R):n,O&&gr(d[0],d[1],O)&&(R=b<3?n:R,b=1),l=$t(l);++g-1?b[R?l[O]:O]:n}}function Gx(s){return Ai(function(l){var d=l.length,g=d,b=po.prototype.thru;for(s&&l.reverse();g--;){var R=l[g];if(typeof R!="function")throw new fo(a);if(b&&!O&&id(R)=="wrapper")var O=new po([],!0)}for(g=O?g:d;++g1&&ft.reverse(),ie&&jM))return!1;var oe=R.get(s),ie=R.get(l);if(oe&&ie)return oe==l&&ie==s;var ce=-1,Ee=!0,Ne=d&y?new Ws:n;for(R.set(s,l),R.set(l,s);++ce1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(ne,`{ + */ih.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,x=4,v=1,y=2,A=1,_=2,w=4,S=8,k=16,T=32,E=64,L=128,$=256,q=512,B=30,Y="...",se=800,K=16,H=1,Q=2,le=3,de=1/0,J=9007199254740991,pe=17976931348623157e292,re=NaN,me=4294967295,U=me-1,ae=me>>>1,te=[["ary",L],["bind",A],["bindKey",_],["curry",S],["curryRight",k],["flip",q],["partial",T],["partialRight",E],["rearg",$]],we="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",ge="[object Boolean]",he="[object Date]",We="[object DOMException]",Le="[object Error]",Re="[object Function]",Ke="[object GeneratorFunction]",st="[object Map]",ht="[object Number]",bt="[object Null]",mt="[object Object]",Mn="[object Promise]",pr="[object Proxy]",Ct="[object RegExp]",at="[object Set]",un="[object String]",cn="[object Symbol]",Ut="[object Undefined]",At="[object WeakMap]",An="[object WeakSet]",nn="[object ArrayBuffer]",qe="[object DataView]",Oe="[object Float32Array]",Xt="[object Float64Array]",rr="[object Int8Array]",Hn="[object Int16Array]",Rn="[object Int32Array]",Io="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",ue="[object Uint32Array]",_e=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,Ce=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fe=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ie=RegExp(Fe.source),Ge=RegExp(Me.source),_t=/<%-([\s\S]+?)%>/g,kn=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/[\\^$.*+?()[\]{}|]/g,N=RegExp(or.source),I=/^\s+/,G=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Se=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,St=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,Rt=/^\[object .+?Constructor\]$/,Ae=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,dn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ni=/($^)/,ri=/['\n\r\u2028\u2029\\]/g,$o="\\ud800-\\udfff",Hi="\\u0300-\\u036f",Gi="\\ufe20-\\ufe2f",ao="\\u20d0-\\u20ff",$s=Hi+Gi+ao,Fs="\\u2700-\\u27bf",Us="a-z\\xdf-\\xf6\\xf8-\\xff",Qe="\\xac\\xb1\\xd7\\xf7",Zt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hr="\\u2000-\\u206f",jt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lo="A-Z\\xc0-\\xd6\\xd8-\\xde",gu="\\ufe0e\\ufe0f",Tf=Qe+Zt+hr+jt,em="['’]",_T="["+$o+"]",Rw="["+Tf+"]",Df="["+$s+"]",kw="\\d+",ST="["+Fs+"]",Tw="["+Us+"]",Dw="[^"+$o+Tf+kw+Fs+Us+lo+"]",tm="\\ud83c[\\udffb-\\udfff]",ET="(?:"+Df+"|"+tm+")",Pw="[^"+$o+"]",nm="(?:\\ud83c[\\udde6-\\uddff]){2}",rm="[\\ud800-\\udbff][\\udc00-\\udfff]",Na="["+lo+"]",Ow="\\u200d",Lw="(?:"+Tw+"|"+Dw+")",CT="(?:"+Na+"|"+Dw+")",Nw="(?:"+em+"(?:d|ll|m|re|s|t|ve))?",Mw="(?:"+em+"(?:D|LL|M|RE|S|T|VE))?",Bw=ET+"?",Iw="["+gu+"]?",AT="(?:"+Ow+"(?:"+[Pw,nm,rm].join("|")+")"+Iw+Bw+")*",RT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$w=Iw+Bw+AT,TT="(?:"+[ST,nm,rm].join("|")+")"+$w,DT="(?:"+[Pw+Df+"?",Df,nm,rm,_T].join("|")+")",PT=RegExp(em,"g"),OT=RegExp(Df,"g"),om=RegExp(tm+"(?="+tm+")|"+DT+$w,"g"),LT=RegExp([Na+"?"+Tw+"+"+Nw+"(?="+[Rw,Na,"$"].join("|")+")",CT+"+"+Mw+"(?="+[Rw,Na+Lw,"$"].join("|")+")",Na+"?"+Lw+"+"+Nw,Na+"+"+Mw,kT,RT,kw,TT].join("|"),"g"),NT=RegExp("["+Ow+$o+$s+gu+"]"),MT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,BT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],IT=-1,Ht={};Ht[Oe]=Ht[Xt]=Ht[rr]=Ht[Hn]=Ht[Rn]=Ht[Io]=Ht[W]=Ht[F]=Ht[ue]=!0,Ht[we]=Ht[fe]=Ht[nn]=Ht[ge]=Ht[qe]=Ht[he]=Ht[Le]=Ht[Re]=Ht[st]=Ht[ht]=Ht[mt]=Ht[Ct]=Ht[at]=Ht[un]=Ht[At]=!1;var Vt={};Vt[we]=Vt[fe]=Vt[nn]=Vt[qe]=Vt[ge]=Vt[he]=Vt[Oe]=Vt[Xt]=Vt[rr]=Vt[Hn]=Vt[Rn]=Vt[st]=Vt[ht]=Vt[mt]=Vt[Ct]=Vt[at]=Vt[un]=Vt[cn]=Vt[Io]=Vt[W]=Vt[F]=Vt[ue]=!0,Vt[Le]=Vt[Re]=Vt[At]=!1;var $T={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},FT={"&":"&","<":"<",">":">",'"':""","'":"'"},UT={"&":"&","<":"<",">":">",""":'"',"'":"'"},zT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jT=parseFloat,VT=parseInt,Fw=typeof window=="object"&&window&&window.Object===Object&&window,WT=typeof self=="object"&&self&&self.Object===Object&&self,Gn=Fw||WT||Function("return this")(),im=t&&!t.nodeType&&t,zs=im&&!0&&e&&!e.nodeType&&e,Uw=zs&&zs.exports===im,sm=Uw&&Fw.process,uo=function(){try{var z=zs&&zs.require&&zs.require("util").types;return z||sm&&sm.binding&&sm.binding("util")}catch{}}(),zw=uo&&uo.isArrayBuffer,jw=uo&&uo.isDate,Vw=uo&&uo.isMap,Ww=uo&&uo.isRegExp,qw=uo&&uo.isSet,Hw=uo&&uo.isTypedArray;function zr(z,ee,X){switch(X.length){case 0:return z.call(ee);case 1:return z.call(ee,X[0]);case 2:return z.call(ee,X[0],X[1]);case 3:return z.call(ee,X[0],X[1],X[2])}return z.apply(ee,X)}function qT(z,ee,X,ke){for(var Ye=-1,kt=z==null?0:z.length;++Ye-1}function am(z,ee,X){for(var ke=-1,Ye=z==null?0:z.length;++ke-1;);return X}function ex(z,ee){for(var X=z.length;X--&&Ma(ee,z[X],0)>-1;);return X}function e8(z,ee){for(var X=z.length,ke=0;X--;)z[X]===ee&&++ke;return ke}var t8=fm($T),n8=fm(FT);function r8(z){return"\\"+zT[z]}function o8(z,ee){return z==null?n:z[ee]}function Ba(z){return NT.test(z)}function i8(z){return MT.test(z)}function s8(z){for(var ee,X=[];!(ee=z.next()).done;)X.push(ee.value);return X}function mm(z){var ee=-1,X=Array(z.size);return z.forEach(function(ke,Ye){X[++ee]=[Ye,ke]}),X}function tx(z,ee){return function(X){return z(ee(X))}}function Xi(z,ee){for(var X=-1,ke=z.length,Ye=0,kt=[];++X-1}function G8(s,l){var d=this.__data__,g=Kf(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}_i.prototype.clear=V8,_i.prototype.delete=W8,_i.prototype.get=q8,_i.prototype.has=H8,_i.prototype.set=G8;function Si(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function ho(s,l,d,g,b,R){var O,M=l&h,j=l&m,oe=l&x;if(d&&(O=b?d(s,g,b,R):d(s)),O!==n)return O;if(!rn(s))return s;var ie=Xe(s);if(ie){if(O=ZD(s),!M)return Er(s,O)}else{var ce=sr(s),Ee=ce==Re||ce==Ke;if(ns(s))return Ix(s,M);if(ce==mt||ce==we||Ee&&!b){if(O=j||Ee?{}:nb(s),!M)return j?UD(s,uD(O,s)):FD(s,px(O,s))}else{if(!Vt[ce])return b?s:{};O=QD(s,ce,M)}}R||(R=new Uo);var Ne=R.get(s);if(Ne)return Ne;R.set(s,O),Pb(s)?s.forEach(function(Ve){O.add(ho(Ve,l,d,Ve,s,R))}):Tb(s)&&s.forEach(function(Ve,lt){O.set(lt,ho(Ve,l,d,lt,s,R))});var je=oe?j?zm:Um:j?Ar:zn,nt=ie?n:je(s);return co(nt||s,function(Ve,lt){nt&&(lt=Ve,Ve=s[lt]),Su(O,lt,ho(Ve,l,d,lt,s,R))}),O}function cD(s){var l=zn(s);return function(d){return hx(d,s,l)}}function hx(s,l,d){var g=d.length;if(s==null)return!g;for(s=$t(s);g--;){var b=d[g],R=l[b],O=s[b];if(O===n&&!(b in s)||!R(O))return!1}return!0}function mx(s,l,d){if(typeof s!="function")throw new fo(a);return Du(function(){s.apply(n,d)},l)}function Eu(s,l,d,g){var b=-1,R=Pf,O=!0,M=s.length,j=[],oe=l.length;if(!M)return j;d&&(l=Qt(l,jr(d))),g?(R=am,O=!1):l.length>=o&&(R=vu,O=!1,l=new Ws(l));e:for(;++bb?0:b+d),g=g===n||g>b?b:tt(g),g<0&&(g+=b),g=d>g?0:Lb(g);d0&&d(M)?l>1?Kn(M,l-1,d,g,b):Yi(b,M):g||(b[b.length]=M)}return b}var _m=Vx(),yx=Vx(!0);function oi(s,l){return s&&_m(s,l,zn)}function Sm(s,l){return s&&yx(s,l,zn)}function Xf(s,l){return Ki(l,function(d){return ki(s[d])})}function Hs(s,l){l=es(l,s);for(var d=0,g=l.length;s!=null&&dl}function pD(s,l){return s!=null&&Ot.call(s,l)}function hD(s,l){return s!=null&&l in $t(s)}function mD(s,l,d){return s>=ir(l,d)&&s=120&&ie.length>=120)?new Ws(O&&ie):n}ie=s[0];var ce=-1,Ee=M[0];e:for(;++ce-1;)M!==s&&zf.call(M,j,1),zf.call(s,j,1);return s}function Tx(s,l){for(var d=s?l.length:0,g=d-1;d--;){var b=l[d];if(d==g||b!==R){var R=b;Ri(b)?zf.call(s,b,1):Lm(s,b)}}return s}function Dm(s,l){return s+Wf(ux()*(l-s+1))}function kD(s,l,d,g){for(var b=-1,R=In(Vf((l-s)/(d||1)),0),O=X(R);R--;)O[g?R:++b]=s,s+=d;return O}function Pm(s,l){var d="";if(!s||l<1||l>J)return d;do l%2&&(d+=s),l=Wf(l/2),l&&(s+=s);while(l);return d}function ot(s,l){return Km(ib(s,l,Rr),s+"")}function TD(s){return dx(Ga(s))}function DD(s,l){var d=Ga(s);return ad(d,qs(l,0,d.length))}function Ru(s,l,d,g){if(!rn(s))return s;l=es(l,s);for(var b=-1,R=l.length,O=R-1,M=s;M!=null&&++bb?0:b+l),d=d>b?b:d,d<0&&(d+=b),b=l>d?0:d-l>>>0,l>>>=0;for(var R=X(b);++g>>1,O=s[R];O!==null&&!Wr(O)&&(d?O<=l:O=o){var oe=l?null:WD(s);if(oe)return Lf(oe);O=!1,b=vu,j=new Ws}else j=l?[]:M;e:for(;++g=g?s:mo(s,l,d)}var Bx=b8||function(s){return Gn.clearTimeout(s)};function Ix(s,l){if(l)return s.slice();var d=s.length,g=ox?ox(d):new s.constructor(d);return s.copy(g),g}function Im(s){var l=new s.constructor(s.byteLength);return new Ff(l).set(new Ff(s)),l}function MD(s,l){var d=l?Im(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function BD(s){var l=new s.constructor(s.source,$e.exec(s));return l.lastIndex=s.lastIndex,l}function ID(s){return _u?$t(_u.call(s)):{}}function $x(s,l){var d=l?Im(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function Fx(s,l){if(s!==l){var d=s!==n,g=s===null,b=s===s,R=Wr(s),O=l!==n,M=l===null,j=l===l,oe=Wr(l);if(!M&&!oe&&!R&&s>l||R&&O&&j&&!M&&!oe||g&&O&&j||!d&&j||!b)return 1;if(!g&&!R&&!oe&&s=M)return j;var oe=d[g];return j*(oe=="desc"?-1:1)}}return s.index-l.index}function Ux(s,l,d,g){for(var b=-1,R=s.length,O=d.length,M=-1,j=l.length,oe=In(R-O,0),ie=X(j+oe),ce=!g;++M1?d[b-1]:n,O=b>2?d[2]:n;for(R=s.length>3&&typeof R=="function"?(b--,R):n,O&&gr(d[0],d[1],O)&&(R=b<3?n:R,b=1),l=$t(l);++g-1?b[R?l[O]:O]:n}}function Hx(s){return Ai(function(l){var d=l.length,g=d,b=po.prototype.thru;for(s&&l.reverse();g--;){var R=l[g];if(typeof R!="function")throw new fo(a);if(b&&!O&&id(R)=="wrapper")var O=new po([],!0)}for(g=O?g:d;++g1&&ft.reverse(),ie&&jM))return!1;var oe=R.get(s),ie=R.get(l);if(oe&&ie)return oe==l&&ie==s;var ce=-1,Ee=!0,Ne=d&y?new Ws:n;for(R.set(s,l),R.set(l,s);++ce1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(ne,`{ /* [wrapped with `+l+`] */ -`)}function r7(s){return Xe(s)||Ys(s)||!!(lx&&s&&s[lx])}function Ri(s,l){var d=typeof s;return l=l??J,!!l&&(d=="number"||d!="symbol"&&yt.test(s))&&s>-1&&s%1==0&&s0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function ad(s,l){var d=-1,g=s.length,b=g-1;for(l=l===n?g:l;++d1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,yb(s,d)});function wb(s){var l=C(s);return l.__chain__=!0,l}function h6(s,l){return l(s),s}function ld(s,l){return l(s)}var m6=Ai(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,b=function(R){return bm(R,s)};return l>1||this.__actions__.length||!(g instanceof ct)||!Ri(d)?this.thru(b):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ld,args:[b],thisArg:n}),new po(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function g6(){return wb(this)}function v6(){return new po(this.value(),this.__chain__)}function y6(){this.__values__===n&&(this.__values__=Lb(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function w6(){return this}function x6(s){for(var l,d=this;d instanceof Gf;){var g=db(d);g.__index__=0,g.__values__=n,l?b.__wrapped__=g:l=g;var b=g;d=d.__wrapped__}return b.__wrapped__=s,l}function b6(){var s=this.__wrapped__;if(s instanceof ct){var l=s;return this.__actions__.length&&(l=new ct(this)),l=l.reverse(),l.__actions__.push({func:ld,args:[Ym],thisArg:n}),new po(l,this.__chain__)}return this.thru(Ym)}function _6(){return Mx(this.__wrapped__,this.__actions__)}var S6=ed(function(s,l,d){Ot.call(s,d)?++s[d]:Ei(s,d,1)});function E6(s,l,d){var g=Xe(s)?Kw:hD;return d&&gr(s,l,d)&&(l=n),g(s,ze(l,3))}function C6(s,l){var d=Xe(s)?Gi:yx;return d(s,ze(l,3))}var A6=Hx(pb),R6=Hx(hb);function k6(s,l){return Gn(ud(s,l),1)}function T6(s,l){return Gn(ud(s,l),de)}function D6(s,l,d){return d=d===n?1:tt(d),Gn(ud(s,l),d)}function xb(s,l){var d=Xe(s)?co:Zi;return d(s,ze(l,3))}function bb(s,l){var d=Xe(s)?YT:vx;return d(s,ze(l,3))}var P6=ed(function(s,l,d){Ot.call(s,d)?s[d].push(l):Ei(s,d,[l])});function O6(s,l,d,g){s=Cr(s)?s:Ha(s),d=d&&!g?tt(d):0;var b=s.length;return d<0&&(d=In(b+d,0)),hd(s)?d<=b&&s.indexOf(l,d)>-1:!!b&&Na(s,l,d)>-1}var L6=ot(function(s,l,d){var g=-1,b=typeof l=="function",R=Cr(s)?X(s.length):[];return Zi(s,function(O){R[++g]=b?zr(l,O,d):Cu(O,l,d)}),R}),N6=ed(function(s,l,d){Ei(s,d,l)});function ud(s,l){var d=Xe(s)?Qt:Ex;return d(s,ze(l,3))}function M6(s,l,d,g){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),d=g?n:d,Xe(d)||(d=d==null?[]:[d]),kx(s,l,d))}var B6=ed(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function I6(s,l,d){var g=Xe(s)?lm:Qw,b=arguments.length<3;return g(s,ze(l,4),d,b,Zi)}function $6(s,l,d){var g=Xe(s)?XT:Qw,b=arguments.length<3;return g(s,ze(l,4),d,b,vx)}function F6(s,l){var d=Xe(s)?Gi:yx;return d(s,dd(ze(l,3)))}function U6(s){var l=Xe(s)?px:OD;return l(s)}function z6(s,l,d){(d?gr(s,l,d):l===n)?l=1:l=tt(l);var g=Xe(s)?uD:LD;return g(s,l)}function j6(s){var l=Xe(s)?cD:MD;return l(s)}function V6(s){if(s==null)return 0;if(Cr(s))return hd(s)?Ba(s):s.length;var l=sr(s);return l==st||l==at?s.size:Rm(s).length}function W6(s,l,d){var g=Xe(s)?um:BD;return d&&gr(s,l,d)&&(l=n),g(s,ze(l,3))}var q6=ot(function(s,l){if(s==null)return[];var d=l.length;return d>1&&gr(s,l[0],l[1])?l=[]:d>2&&gr(l[0],l[1],l[2])&&(l=[l[0]]),kx(s,Gn(l,1),[])}),cd=C8||function(){return Hn.Date.now()};function H6(s,l){if(typeof l!="function")throw new fo(a);return s=tt(s),function(){if(--s<1)return l.apply(this,arguments)}}function _b(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,Ci(s,L,n,n,n,n,l)}function Sb(s,l){var d;if(typeof l!="function")throw new fo(a);return s=tt(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var Zm=ot(function(s,l,d){var g=A;if(d.length){var b=Yi(d,Wa(Zm));g|=T}return Ci(s,g,l,d,b)}),Eb=ot(function(s,l,d){var g=A|_;if(d.length){var b=Yi(d,Wa(Eb));g|=T}return Ci(l,g,s,d,b)});function Cb(s,l,d){l=d?n:l;var g=Ci(s,S,n,n,n,n,n,l);return g.placeholder=Cb.placeholder,g}function Ab(s,l,d){l=d?n:l;var g=Ci(s,k,n,n,n,n,n,l);return g.placeholder=Ab.placeholder,g}function Rb(s,l,d){var g,b,R,O,M,j,oe=0,ie=!1,ce=!1,Ee=!0;if(typeof s!="function")throw new fo(a);l=vo(l)||0,rn(d)&&(ie=!!d.leading,ce="maxWait"in d,R=ce?In(vo(d.maxWait)||0,l):R,Ee="trailing"in d?!!d.trailing:Ee);function Ne(wn){var jo=g,Di=b;return g=b=n,oe=wn,O=s.apply(Di,jo),O}function je(wn){return oe=wn,M=Du(lt,l),ie?Ne(wn):O}function nt(wn){var jo=wn-j,Di=wn-oe,Hb=l-jo;return ce?ir(Hb,R-Di):Hb}function Ve(wn){var jo=wn-j,Di=wn-oe;return j===n||jo>=l||jo<0||ce&&Di>=R}function lt(){var wn=cd();if(Ve(wn))return ft(wn);M=Du(lt,nt(wn))}function ft(wn){return M=n,Ee&&g?Ne(wn):(g=b=n,O)}function qr(){M!==n&&Ix(M),oe=0,g=j=b=M=n}function vr(){return M===n?O:ft(cd())}function Hr(){var wn=cd(),jo=Ve(wn);if(g=arguments,b=this,j=wn,jo){if(M===n)return je(j);if(ce)return Ix(M),M=Du(lt,l),Ne(j)}return M===n&&(M=Du(lt,l)),O}return Hr.cancel=qr,Hr.flush=vr,Hr}var G6=ot(function(s,l){return gx(s,1,l)}),K6=ot(function(s,l,d){return gx(s,vo(l)||0,d)});function Y6(s){return Ci(s,q)}function fd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fo(a);var d=function(){var g=arguments,b=l?l.apply(this,g):g[0],R=d.cache;if(R.has(b))return R.get(b);var O=s.apply(this,g);return d.cache=R.set(b,O)||R,O};return d.cache=new(fd.Cache||Si),d}fd.Cache=Si;function dd(s){if(typeof s!="function")throw new fo(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function X6(s){return Sb(2,s)}var Z6=ID(function(s,l){l=l.length==1&&Xe(l[0])?Qt(l[0],jr(ze())):Qt(Gn(l,1),jr(ze()));var d=l.length;return ot(function(g){for(var b=-1,R=ir(g.length,d);++b=l}),Ys=bx(function(){return arguments}())?bx:function(s){return pn(s)&&Ot.call(s,"callee")&&!ax.call(s,"callee")},Xe=X.isArray,d9=jw?jr(jw):xD;function Cr(s){return s!=null&&pd(s.length)&&!ki(s)}function yn(s){return pn(s)&&Cr(s)}function p9(s){return s===!0||s===!1||pn(s)&&mr(s)==ge}var ts=R8||ug,h9=Vw?jr(Vw):bD;function m9(s){return pn(s)&&s.nodeType===1&&!Pu(s)}function g9(s){if(s==null)return!0;if(Cr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||ts(s)||qa(s)||Ys(s)))return!s.length;var l=sr(s);if(l==st||l==at)return!s.size;if(Tu(s))return!Rm(s).length;for(var d in s)if(Ot.call(s,d))return!1;return!0}function v9(s,l){return Au(s,l)}function y9(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?Au(s,l,n,d):!!g}function Jm(s){if(!pn(s))return!1;var l=mr(s);return l==Le||l==We||typeof s.message=="string"&&typeof s.name=="string"&&!Pu(s)}function w9(s){return typeof s=="number"&&ux(s)}function ki(s){if(!rn(s))return!1;var l=mr(s);return l==Re||l==Ke||l==ye||l==pr}function Tb(s){return typeof s=="number"&&s==tt(s)}function pd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=J}function rn(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function pn(s){return s!=null&&typeof s=="object"}var Db=Ww?jr(Ww):SD;function x9(s,l){return s===l||Am(s,l,Vm(l))}function b9(s,l,d){return d=typeof d=="function"?d:n,Am(s,l,Vm(l),d)}function _9(s){return Pb(s)&&s!=+s}function S9(s){if(s7(s))throw new Ye(i);return _x(s)}function E9(s){return s===null}function C9(s){return s==null}function Pb(s){return typeof s=="number"||pn(s)&&mr(s)==ht}function Pu(s){if(!pn(s)||mr(s)!=mt)return!1;var l=Uf(s);if(l===null)return!0;var d=Ot.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Bf.call(d)==b8}var eg=qw?jr(qw):ED;function A9(s){return Tb(s)&&s>=-J&&s<=J}var Ob=Hw?jr(Hw):CD;function hd(s){return typeof s=="string"||!Xe(s)&&pn(s)&&mr(s)==un}function Wr(s){return typeof s=="symbol"||pn(s)&&mr(s)==cn}var qa=Gw?jr(Gw):AD;function R9(s){return s===n}function k9(s){return pn(s)&&sr(s)==At}function T9(s){return pn(s)&&mr(s)==An}var D9=od(km),P9=od(function(s,l){return s<=l});function Lb(s){if(!s)return[];if(Cr(s))return hd(s)?Fo(s):Er(s);if(yu&&s[yu])return u8(s[yu]());var l=sr(s),d=l==st?mm:l==at?Lf:Ha;return d(s)}function Ti(s){if(!s)return s===0?s:0;if(s=vo(s),s===de||s===-de){var l=s<0?-1:1;return l*pe}return s===s?s:0}function tt(s){var l=Ti(s),d=l%1;return l===l?d?l-d:l:0}function Nb(s){return s?qs(tt(s),0,me):0}function vo(s){if(typeof s=="number")return s;if(Wr(s))return re;if(rn(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=rn(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Jw(s);var d=vt.test(s);return d||Ae.test(s)?HT(s.slice(2),d?2:8):St.test(s)?re:+s}function Mb(s){return ii(s,Ar(s))}function O9(s){return s?qs(tt(s),-J,J):s===0?s:0}function Pt(s){return s==null?"":Vr(s)}var L9=ja(function(s,l){if(Tu(l)||Cr(l)){ii(l,Un(l),s);return}for(var d in l)Ot.call(l,d)&&Su(s,d,l[d])}),Bb=ja(function(s,l){ii(l,Ar(l),s)}),md=ja(function(s,l,d,g){ii(l,Ar(l),s,g)}),N9=ja(function(s,l,d,g){ii(l,Un(l),s,g)}),M9=Ai(bm);function B9(s,l){var d=za(s);return l==null?d:hx(d,l)}var I9=ot(function(s,l){s=$t(s);var d=-1,g=l.length,b=g>2?l[2]:n;for(b&&gr(l[0],l[1],b)&&(g=1);++d1),R}),ii(s,zm(s),d),g&&(d=ho(d,h|m|x,KD));for(var b=l.length;b--;)Lm(d,l[b]);return d});function tP(s,l){return $b(s,dd(ze(l)))}var nP=Ai(function(s,l){return s==null?{}:TD(s,l)});function $b(s,l){if(s==null)return{};var d=Qt(zm(s),function(g){return[g]});return l=ze(l),Tx(s,d,function(g,b){return l(g,b[0])})}function rP(s,l,d){l=Ji(l,s);var g=-1,b=l.length;for(b||(b=1,s=n);++gl){var g=s;s=l,l=g}if(d||s%1||l%1){var b=cx();return ir(s+b*(l-s+qT("1e-"+((b+"").length-1))),l)}return Dm(s,l)}var hP=Va(function(s,l,d){return l=l.toLowerCase(),s+(d?zb(l):l)});function zb(s){return rg(Pt(s).toLowerCase())}function jb(s){return s=Pt(s),s&&s.replace(dn,o8).replace(MT,"")}function mP(s,l,d){s=Pt(s),l=Vr(l);var g=s.length;d=d===n?g:qs(tt(d),0,g);var b=d;return d-=l.length,d>=0&&s.slice(d,b)==l}function gP(s){return s=Pt(s),s&&Ge.test(s)?s.replace(Me,i8):s}function vP(s){return s=Pt(s),s&&N.test(s)?s.replace(or,"\\$&"):s}var yP=Va(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),wP=Va(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),xP=qx("toLowerCase");function bP(s,l,d){s=Pt(s),l=tt(l);var g=l?Ba(s):0;if(!l||g>=l)return s;var b=(l-g)/2;return rd(Wf(b),d)+s+rd(Vf(b),d)}function _P(s,l,d){s=Pt(s),l=tt(l);var g=l?Ba(s):0;return l&&g>>0,d?(s=Pt(s),s&&(typeof l=="string"||l!=null&&!eg(l))&&(l=Vr(l),!l&&Ma(s))?es(Fo(s),0,d):s.split(l,d)):[]}var TP=Va(function(s,l,d){return s+(d?" ":"")+rg(l)});function DP(s,l,d){return s=Pt(s),d=d==null?0:qs(tt(d),0,s.length),l=Vr(l),s.slice(d,d+l.length)==l}function PP(s,l,d){var g=C.templateSettings;d&&gr(s,l,d)&&(l=n),s=Pt(s),l=md({},l,g,Qx);var b=md({},l.imports,g.imports,Qx),R=Un(b),O=hm(b,R),M,j,oe=0,ie=l.interpolate||ni,ce="__p += '",Ee=gm((l.escape||ni).source+"|"+ie.source+"|"+(ie===zt?Be:ni).source+"|"+(l.evaluate||ni).source+"|$","g"),Ne="//# sourceURL="+(Ot.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++UT+"]")+` -`;s.replace(Ee,function(Ve,lt,ft,qr,vr,Hr){return ft||(ft=qr),ce+=s.slice(oe,Hr).replace(ri,s8),lt&&(M=!0,ce+=`' + +`)}function e7(s){return Xe(s)||Ys(s)||!!(ax&&s&&s[ax])}function Ri(s,l){var d=typeof s;return l=l??J,!!l&&(d=="number"||d!="symbol"&&yt.test(s))&&s>-1&&s%1==0&&s0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function ad(s,l){var d=-1,g=s.length,b=g-1;for(l=l===n?g:l;++d1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,vb(s,d)});function yb(s){var l=C(s);return l.__chain__=!0,l}function f6(s,l){return l(s),s}function ld(s,l){return l(s)}var d6=Ai(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,b=function(R){return bm(R,s)};return l>1||this.__actions__.length||!(g instanceof ct)||!Ri(d)?this.thru(b):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ld,args:[b],thisArg:n}),new po(g,this.__chain__).thru(function(R){return l&&!R.length&&R.push(n),R}))});function p6(){return yb(this)}function h6(){return new po(this.value(),this.__chain__)}function m6(){this.__values__===n&&(this.__values__=Ob(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function g6(){return this}function v6(s){for(var l,d=this;d instanceof Gf;){var g=fb(d);g.__index__=0,g.__values__=n,l?b.__wrapped__=g:l=g;var b=g;d=d.__wrapped__}return b.__wrapped__=s,l}function y6(){var s=this.__wrapped__;if(s instanceof ct){var l=s;return this.__actions__.length&&(l=new ct(this)),l=l.reverse(),l.__actions__.push({func:ld,args:[Ym],thisArg:n}),new po(l,this.__chain__)}return this.thru(Ym)}function w6(){return Nx(this.__wrapped__,this.__actions__)}var x6=ed(function(s,l,d){Ot.call(s,d)?++s[d]:Ei(s,d,1)});function b6(s,l,d){var g=Xe(s)?Gw:fD;return d&&gr(s,l,d)&&(l=n),g(s,ze(l,3))}function _6(s,l){var d=Xe(s)?Ki:vx;return d(s,ze(l,3))}var S6=qx(db),E6=qx(pb);function C6(s,l){return Kn(ud(s,l),1)}function A6(s,l){return Kn(ud(s,l),de)}function R6(s,l,d){return d=d===n?1:tt(d),Kn(ud(s,l),d)}function wb(s,l){var d=Xe(s)?co:Qi;return d(s,ze(l,3))}function xb(s,l){var d=Xe(s)?HT:gx;return d(s,ze(l,3))}var k6=ed(function(s,l,d){Ot.call(s,d)?s[d].push(l):Ei(s,d,[l])});function T6(s,l,d,g){s=Cr(s)?s:Ga(s),d=d&&!g?tt(d):0;var b=s.length;return d<0&&(d=In(b+d,0)),hd(s)?d<=b&&s.indexOf(l,d)>-1:!!b&&Ma(s,l,d)>-1}var D6=ot(function(s,l,d){var g=-1,b=typeof l=="function",R=Cr(s)?X(s.length):[];return Qi(s,function(O){R[++g]=b?zr(l,O,d):Cu(O,l,d)}),R}),P6=ed(function(s,l,d){Ei(s,d,l)});function ud(s,l){var d=Xe(s)?Qt:Sx;return d(s,ze(l,3))}function O6(s,l,d,g){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),d=g?n:d,Xe(d)||(d=d==null?[]:[d]),Rx(s,l,d))}var L6=ed(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function N6(s,l,d){var g=Xe(s)?lm:Zw,b=arguments.length<3;return g(s,ze(l,4),d,b,Qi)}function M6(s,l,d){var g=Xe(s)?GT:Zw,b=arguments.length<3;return g(s,ze(l,4),d,b,gx)}function B6(s,l){var d=Xe(s)?Ki:vx;return d(s,dd(ze(l,3)))}function I6(s){var l=Xe(s)?dx:TD;return l(s)}function $6(s,l,d){(d?gr(s,l,d):l===n)?l=1:l=tt(l);var g=Xe(s)?sD:DD;return g(s,l)}function F6(s){var l=Xe(s)?aD:OD;return l(s)}function U6(s){if(s==null)return 0;if(Cr(s))return hd(s)?Ia(s):s.length;var l=sr(s);return l==st||l==at?s.size:Rm(s).length}function z6(s,l,d){var g=Xe(s)?um:LD;return d&&gr(s,l,d)&&(l=n),g(s,ze(l,3))}var j6=ot(function(s,l){if(s==null)return[];var d=l.length;return d>1&&gr(s,l[0],l[1])?l=[]:d>2&&gr(l[0],l[1],l[2])&&(l=[l[0]]),Rx(s,Kn(l,1),[])}),cd=_8||function(){return Gn.Date.now()};function V6(s,l){if(typeof l!="function")throw new fo(a);return s=tt(s),function(){if(--s<1)return l.apply(this,arguments)}}function bb(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,Ci(s,L,n,n,n,n,l)}function _b(s,l){var d;if(typeof l!="function")throw new fo(a);return s=tt(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var Zm=ot(function(s,l,d){var g=A;if(d.length){var b=Xi(d,qa(Zm));g|=T}return Ci(s,g,l,d,b)}),Sb=ot(function(s,l,d){var g=A|_;if(d.length){var b=Xi(d,qa(Sb));g|=T}return Ci(l,g,s,d,b)});function Eb(s,l,d){l=d?n:l;var g=Ci(s,S,n,n,n,n,n,l);return g.placeholder=Eb.placeholder,g}function Cb(s,l,d){l=d?n:l;var g=Ci(s,k,n,n,n,n,n,l);return g.placeholder=Cb.placeholder,g}function Ab(s,l,d){var g,b,R,O,M,j,oe=0,ie=!1,ce=!1,Ee=!0;if(typeof s!="function")throw new fo(a);l=vo(l)||0,rn(d)&&(ie=!!d.leading,ce="maxWait"in d,R=ce?In(vo(d.maxWait)||0,l):R,Ee="trailing"in d?!!d.trailing:Ee);function Ne(wn){var jo=g,Di=b;return g=b=n,oe=wn,O=s.apply(Di,jo),O}function je(wn){return oe=wn,M=Du(lt,l),ie?Ne(wn):O}function nt(wn){var jo=wn-j,Di=wn-oe,qb=l-jo;return ce?ir(qb,R-Di):qb}function Ve(wn){var jo=wn-j,Di=wn-oe;return j===n||jo>=l||jo<0||ce&&Di>=R}function lt(){var wn=cd();if(Ve(wn))return ft(wn);M=Du(lt,nt(wn))}function ft(wn){return M=n,Ee&&g?Ne(wn):(g=b=n,O)}function qr(){M!==n&&Bx(M),oe=0,g=j=b=M=n}function vr(){return M===n?O:ft(cd())}function Hr(){var wn=cd(),jo=Ve(wn);if(g=arguments,b=this,j=wn,jo){if(M===n)return je(j);if(ce)return Bx(M),M=Du(lt,l),Ne(j)}return M===n&&(M=Du(lt,l)),O}return Hr.cancel=qr,Hr.flush=vr,Hr}var W6=ot(function(s,l){return mx(s,1,l)}),q6=ot(function(s,l,d){return mx(s,vo(l)||0,d)});function H6(s){return Ci(s,q)}function fd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fo(a);var d=function(){var g=arguments,b=l?l.apply(this,g):g[0],R=d.cache;if(R.has(b))return R.get(b);var O=s.apply(this,g);return d.cache=R.set(b,O)||R,O};return d.cache=new(fd.Cache||Si),d}fd.Cache=Si;function dd(s){if(typeof s!="function")throw new fo(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function G6(s){return _b(2,s)}var K6=ND(function(s,l){l=l.length==1&&Xe(l[0])?Qt(l[0],jr(ze())):Qt(Kn(l,1),jr(ze()));var d=l.length;return ot(function(g){for(var b=-1,R=ir(g.length,d);++b=l}),Ys=xx(function(){return arguments}())?xx:function(s){return pn(s)&&Ot.call(s,"callee")&&!sx.call(s,"callee")},Xe=X.isArray,u9=zw?jr(zw):vD;function Cr(s){return s!=null&&pd(s.length)&&!ki(s)}function yn(s){return pn(s)&&Cr(s)}function c9(s){return s===!0||s===!1||pn(s)&&mr(s)==ge}var ns=E8||ug,f9=jw?jr(jw):yD;function d9(s){return pn(s)&&s.nodeType===1&&!Pu(s)}function p9(s){if(s==null)return!0;if(Cr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||ns(s)||Ha(s)||Ys(s)))return!s.length;var l=sr(s);if(l==st||l==at)return!s.size;if(Tu(s))return!Rm(s).length;for(var d in s)if(Ot.call(s,d))return!1;return!0}function h9(s,l){return Au(s,l)}function m9(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?Au(s,l,n,d):!!g}function Jm(s){if(!pn(s))return!1;var l=mr(s);return l==Le||l==We||typeof s.message=="string"&&typeof s.name=="string"&&!Pu(s)}function g9(s){return typeof s=="number"&&lx(s)}function ki(s){if(!rn(s))return!1;var l=mr(s);return l==Re||l==Ke||l==ye||l==pr}function kb(s){return typeof s=="number"&&s==tt(s)}function pd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=J}function rn(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function pn(s){return s!=null&&typeof s=="object"}var Tb=Vw?jr(Vw):xD;function v9(s,l){return s===l||Am(s,l,Vm(l))}function y9(s,l,d){return d=typeof d=="function"?d:n,Am(s,l,Vm(l),d)}function w9(s){return Db(s)&&s!=+s}function x9(s){if(r7(s))throw new Ye(i);return bx(s)}function b9(s){return s===null}function _9(s){return s==null}function Db(s){return typeof s=="number"||pn(s)&&mr(s)==ht}function Pu(s){if(!pn(s)||mr(s)!=mt)return!1;var l=Uf(s);if(l===null)return!0;var d=Ot.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Bf.call(d)==y8}var eg=Ww?jr(Ww):bD;function S9(s){return kb(s)&&s>=-J&&s<=J}var Pb=qw?jr(qw):_D;function hd(s){return typeof s=="string"||!Xe(s)&&pn(s)&&mr(s)==un}function Wr(s){return typeof s=="symbol"||pn(s)&&mr(s)==cn}var Ha=Hw?jr(Hw):SD;function E9(s){return s===n}function C9(s){return pn(s)&&sr(s)==At}function A9(s){return pn(s)&&mr(s)==An}var R9=od(km),k9=od(function(s,l){return s<=l});function Ob(s){if(!s)return[];if(Cr(s))return hd(s)?Fo(s):Er(s);if(yu&&s[yu])return s8(s[yu]());var l=sr(s),d=l==st?mm:l==at?Lf:Ga;return d(s)}function Ti(s){if(!s)return s===0?s:0;if(s=vo(s),s===de||s===-de){var l=s<0?-1:1;return l*pe}return s===s?s:0}function tt(s){var l=Ti(s),d=l%1;return l===l?d?l-d:l:0}function Lb(s){return s?qs(tt(s),0,me):0}function vo(s){if(typeof s=="number")return s;if(Wr(s))return re;if(rn(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=rn(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Qw(s);var d=vt.test(s);return d||Ae.test(s)?VT(s.slice(2),d?2:8):St.test(s)?re:+s}function Nb(s){return ii(s,Ar(s))}function T9(s){return s?qs(tt(s),-J,J):s===0?s:0}function Pt(s){return s==null?"":Vr(s)}var D9=Va(function(s,l){if(Tu(l)||Cr(l)){ii(l,zn(l),s);return}for(var d in l)Ot.call(l,d)&&Su(s,d,l[d])}),Mb=Va(function(s,l){ii(l,Ar(l),s)}),md=Va(function(s,l,d,g){ii(l,Ar(l),s,g)}),P9=Va(function(s,l,d,g){ii(l,zn(l),s,g)}),O9=Ai(bm);function L9(s,l){var d=ja(s);return l==null?d:px(d,l)}var N9=ot(function(s,l){s=$t(s);var d=-1,g=l.length,b=g>2?l[2]:n;for(b&&gr(l[0],l[1],b)&&(g=1);++d1),R}),ii(s,zm(s),d),g&&(d=ho(d,h|m|x,qD));for(var b=l.length;b--;)Lm(d,l[b]);return d});function Q9(s,l){return Ib(s,dd(ze(l)))}var J9=Ai(function(s,l){return s==null?{}:AD(s,l)});function Ib(s,l){if(s==null)return{};var d=Qt(zm(s),function(g){return[g]});return l=ze(l),kx(s,d,function(g,b){return l(g,b[0])})}function eP(s,l,d){l=es(l,s);var g=-1,b=l.length;for(b||(b=1,s=n);++gl){var g=s;s=l,l=g}if(d||s%1||l%1){var b=ux();return ir(s+b*(l-s+jT("1e-"+((b+"").length-1))),l)}return Dm(s,l)}var fP=Wa(function(s,l,d){return l=l.toLowerCase(),s+(d?Ub(l):l)});function Ub(s){return rg(Pt(s).toLowerCase())}function zb(s){return s=Pt(s),s&&s.replace(dn,t8).replace(OT,"")}function dP(s,l,d){s=Pt(s),l=Vr(l);var g=s.length;d=d===n?g:qs(tt(d),0,g);var b=d;return d-=l.length,d>=0&&s.slice(d,b)==l}function pP(s){return s=Pt(s),s&&Ge.test(s)?s.replace(Me,n8):s}function hP(s){return s=Pt(s),s&&N.test(s)?s.replace(or,"\\$&"):s}var mP=Wa(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),gP=Wa(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),vP=Wx("toLowerCase");function yP(s,l,d){s=Pt(s),l=tt(l);var g=l?Ia(s):0;if(!l||g>=l)return s;var b=(l-g)/2;return rd(Wf(b),d)+s+rd(Vf(b),d)}function wP(s,l,d){s=Pt(s),l=tt(l);var g=l?Ia(s):0;return l&&g>>0,d?(s=Pt(s),s&&(typeof l=="string"||l!=null&&!eg(l))&&(l=Vr(l),!l&&Ba(s))?ts(Fo(s),0,d):s.split(l,d)):[]}var AP=Wa(function(s,l,d){return s+(d?" ":"")+rg(l)});function RP(s,l,d){return s=Pt(s),d=d==null?0:qs(tt(d),0,s.length),l=Vr(l),s.slice(d,d+l.length)==l}function kP(s,l,d){var g=C.templateSettings;d&&gr(s,l,d)&&(l=n),s=Pt(s),l=md({},l,g,Zx);var b=md({},l.imports,g.imports,Zx),R=zn(b),O=hm(b,R),M,j,oe=0,ie=l.interpolate||ni,ce="__p += '",Ee=gm((l.escape||ni).source+"|"+ie.source+"|"+(ie===zt?Be:ni).source+"|"+(l.evaluate||ni).source+"|$","g"),Ne="//# sourceURL="+(Ot.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++IT+"]")+` +`;s.replace(Ee,function(Ve,lt,ft,qr,vr,Hr){return ft||(ft=qr),ce+=s.slice(oe,Hr).replace(ri,r8),lt&&(M=!0,ce+=`' + __e(`+lt+`) + '`),vr&&(j=!0,ce+=`'; `+vr+`; @@ -65,7 +65,7 @@ __p += '`),ft&&(ce+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+ce+`return __p -}`;var nt=Wb(function(){return kt(R,Ne+"return "+ce).apply(n,O)});if(nt.source=ce,Jm(nt))throw nt;return nt}function OP(s){return Pt(s).toLowerCase()}function LP(s){return Pt(s).toUpperCase()}function NP(s,l,d){if(s=Pt(s),s&&(d||l===n))return Jw(s);if(!s||!(l=Vr(l)))return s;var g=Fo(s),b=Fo(l),R=ex(g,b),O=tx(g,b)+1;return es(g,R,O).join("")}function MP(s,l,d){if(s=Pt(s),s&&(d||l===n))return s.slice(0,rx(s)+1);if(!s||!(l=Vr(l)))return s;var g=Fo(s),b=tx(g,Fo(l))+1;return es(g,0,b).join("")}function BP(s,l,d){if(s=Pt(s),s&&(d||l===n))return s.replace(I,"");if(!s||!(l=Vr(l)))return s;var g=Fo(s),b=ex(g,Fo(l));return es(g,b).join("")}function IP(s,l){var d=B,g=Y;if(rn(l)){var b="separator"in l?l.separator:b;d="length"in l?tt(l.length):d,g="omission"in l?Vr(l.omission):g}s=Pt(s);var R=s.length;if(Ma(s)){var O=Fo(s);R=O.length}if(d>=R)return s;var M=d-Ba(g);if(M<1)return g;var j=O?es(O,0,M).join(""):s.slice(0,M);if(b===n)return j+g;if(O&&(M+=j.length-M),eg(b)){if(s.slice(M).search(b)){var oe,ie=j;for(b.global||(b=gm(b.source,Pt($e.exec(b))+"g")),b.lastIndex=0;oe=b.exec(ie);)var ce=oe.index;j=j.slice(0,ce===n?M:ce)}}else if(s.indexOf(Vr(b),M)!=M){var Ee=j.lastIndexOf(b);Ee>-1&&(j=j.slice(0,Ee))}return j+g}function $P(s){return s=Pt(s),s&&Ie.test(s)?s.replace(Fe,p8):s}var FP=Va(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),rg=qx("toUpperCase");function Vb(s,l,d){return s=Pt(s),l=d?n:l,l===n?l8(s)?g8(s):JT(s):s.match(l)||[]}var Wb=ot(function(s,l){try{return zr(s,n,l)}catch(d){return Jm(d)?d:new Ye(d)}}),UP=Ai(function(s,l){return co(l,function(d){d=si(d),Ei(s,d,Zm(s[d],s))}),s});function zP(s){var l=s==null?0:s.length,d=ze();return s=l?Qt(s,function(g){if(typeof g[1]!="function")throw new fo(a);return[d(g[0]),g[1]]}):[],ot(function(g){for(var b=-1;++bJ)return[];var d=me,g=ir(s,me);l=ze(l),s-=me;for(var b=pm(g,l);++d0||l<0)?new ct(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=tt(l),d=l<0?d.dropRight(-l):d.take(l-s)),d)},ct.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ct.prototype.toArray=function(){return this.take(me)},oi(ct.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),b=C[g?"take"+(l=="last"?"Right":""):l],R=g||/^find/.test(l);b&&(C.prototype[l]=function(){var O=this.__wrapped__,M=g?[1]:arguments,j=O instanceof ct,oe=M[0],ie=j||Xe(O),ce=function(lt){var ft=b.apply(C,Ki([lt],M));return g&&Ee?ft[0]:ft};ie&&d&&typeof oe=="function"&&oe.length!=1&&(j=ie=!1);var Ee=this.__chain__,Ne=!!this.__actions__.length,je=R&&!Ee,nt=j&&!Ne;if(!R&&ie){O=nt?O:new ct(this);var Ve=s.apply(O,M);return Ve.__actions__.push({func:ld,args:[ce],thisArg:n}),new po(Ve,Ee)}return je&&nt?s.apply(this,M):(Ve=this.thru(ce),je?g?Ve.value()[0]:Ve.value():Ve)})}),co(["pop","push","shift","sort","splice","unshift"],function(s){var l=Nf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var b=arguments;if(g&&!this.__chain__){var R=this.value();return l.apply(Xe(R)?R:[],b)}return this[d](function(O){return l.apply(Xe(O)?O:[],b)})}}),oi(ct.prototype,function(s,l){var d=C[l];if(d){var g=d.name+"";Ot.call(Ua,g)||(Ua[g]=[]),Ua[g].push({name:l,func:d})}}),Ua[td(n,_).name]=[{name:"wrapper",func:n}],ct.prototype.clone=$8,ct.prototype.reverse=F8,ct.prototype.value=U8,C.prototype.at=m6,C.prototype.chain=g6,C.prototype.commit=v6,C.prototype.next=y6,C.prototype.plant=x6,C.prototype.reverse=b6,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=_6,C.prototype.first=C.prototype.head,yu&&(C.prototype[yu]=w6),C},Ia=v8();zs?((zs.exports=Ia)._=Ia,im._=Ia):Hn._=Ia}).call(F3)})(ih,ih.exports);var Da=ih.exports;let $d;const Vz=new Uint8Array(16);function Wz(){if(!$d&&($d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $d(Vz)}const Kn=[];for(let e=0;e<256;++e)Kn.push((e+256).toString(16).slice(1));function qz(e,t=0){return Kn[e[t+0]]+Kn[e[t+1]]+Kn[e[t+2]]+Kn[e[t+3]]+"-"+Kn[e[t+4]]+Kn[e[t+5]]+"-"+Kn[e[t+6]]+Kn[e[t+7]]+"-"+Kn[e[t+8]]+Kn[e[t+9]]+"-"+Kn[e[t+10]]+Kn[e[t+11]]+Kn[e[t+12]]+Kn[e[t+13]]+Kn[e[t+14]]+Kn[e[t+15]]}const Hz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),CS={randomUUID:Hz};function e0(e,t,n){if(CS.randomUUID&&!t&&!e)return CS.randomUUID();e=e||{};const r=e.random||(e.rng||Wz)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,qz(r)}function v2(e){this.message=e}v2.prototype=new Error,v2.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function AS(e){this.message=e}AS.prototype=new Error,AS.prototype.name="InvalidTokenError";var Gz={};/** +}`;var nt=Vb(function(){return kt(R,Ne+"return "+ce).apply(n,O)});if(nt.source=ce,Jm(nt))throw nt;return nt}function TP(s){return Pt(s).toLowerCase()}function DP(s){return Pt(s).toUpperCase()}function PP(s,l,d){if(s=Pt(s),s&&(d||l===n))return Qw(s);if(!s||!(l=Vr(l)))return s;var g=Fo(s),b=Fo(l),R=Jw(g,b),O=ex(g,b)+1;return ts(g,R,O).join("")}function OP(s,l,d){if(s=Pt(s),s&&(d||l===n))return s.slice(0,nx(s)+1);if(!s||!(l=Vr(l)))return s;var g=Fo(s),b=ex(g,Fo(l))+1;return ts(g,0,b).join("")}function LP(s,l,d){if(s=Pt(s),s&&(d||l===n))return s.replace(I,"");if(!s||!(l=Vr(l)))return s;var g=Fo(s),b=Jw(g,Fo(l));return ts(g,b).join("")}function NP(s,l){var d=B,g=Y;if(rn(l)){var b="separator"in l?l.separator:b;d="length"in l?tt(l.length):d,g="omission"in l?Vr(l.omission):g}s=Pt(s);var R=s.length;if(Ba(s)){var O=Fo(s);R=O.length}if(d>=R)return s;var M=d-Ia(g);if(M<1)return g;var j=O?ts(O,0,M).join(""):s.slice(0,M);if(b===n)return j+g;if(O&&(M+=j.length-M),eg(b)){if(s.slice(M).search(b)){var oe,ie=j;for(b.global||(b=gm(b.source,Pt($e.exec(b))+"g")),b.lastIndex=0;oe=b.exec(ie);)var ce=oe.index;j=j.slice(0,ce===n?M:ce)}}else if(s.indexOf(Vr(b),M)!=M){var Ee=j.lastIndexOf(b);Ee>-1&&(j=j.slice(0,Ee))}return j+g}function MP(s){return s=Pt(s),s&&Ie.test(s)?s.replace(Fe,c8):s}var BP=Wa(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),rg=Wx("toUpperCase");function jb(s,l,d){return s=Pt(s),l=d?n:l,l===n?i8(s)?p8(s):XT(s):s.match(l)||[]}var Vb=ot(function(s,l){try{return zr(s,n,l)}catch(d){return Jm(d)?d:new Ye(d)}}),IP=Ai(function(s,l){return co(l,function(d){d=si(d),Ei(s,d,Zm(s[d],s))}),s});function $P(s){var l=s==null?0:s.length,d=ze();return s=l?Qt(s,function(g){if(typeof g[1]!="function")throw new fo(a);return[d(g[0]),g[1]]}):[],ot(function(g){for(var b=-1;++bJ)return[];var d=me,g=ir(s,me);l=ze(l),s-=me;for(var b=pm(g,l);++d0||l<0)?new ct(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=tt(l),d=l<0?d.dropRight(-l):d.take(l-s)),d)},ct.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ct.prototype.toArray=function(){return this.take(me)},oi(ct.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),b=C[g?"take"+(l=="last"?"Right":""):l],R=g||/^find/.test(l);b&&(C.prototype[l]=function(){var O=this.__wrapped__,M=g?[1]:arguments,j=O instanceof ct,oe=M[0],ie=j||Xe(O),ce=function(lt){var ft=b.apply(C,Yi([lt],M));return g&&Ee?ft[0]:ft};ie&&d&&typeof oe=="function"&&oe.length!=1&&(j=ie=!1);var Ee=this.__chain__,Ne=!!this.__actions__.length,je=R&&!Ee,nt=j&&!Ne;if(!R&&ie){O=nt?O:new ct(this);var Ve=s.apply(O,M);return Ve.__actions__.push({func:ld,args:[ce],thisArg:n}),new po(Ve,Ee)}return je&&nt?s.apply(this,M):(Ve=this.thru(ce),je?g?Ve.value()[0]:Ve.value():Ve)})}),co(["pop","push","shift","sort","splice","unshift"],function(s){var l=Nf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var b=arguments;if(g&&!this.__chain__){var R=this.value();return l.apply(Xe(R)?R:[],b)}return this[d](function(O){return l.apply(Xe(O)?O:[],b)})}}),oi(ct.prototype,function(s,l){var d=C[l];if(d){var g=d.name+"";Ot.call(za,g)||(za[g]=[]),za[g].push({name:l,func:d})}}),za[td(n,_).name]=[{name:"wrapper",func:n}],ct.prototype.clone=M8,ct.prototype.reverse=B8,ct.prototype.value=I8,C.prototype.at=d6,C.prototype.chain=p6,C.prototype.commit=h6,C.prototype.next=m6,C.prototype.plant=v6,C.prototype.reverse=y6,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=w6,C.prototype.first=C.prototype.head,yu&&(C.prototype[yu]=g6),C},$a=h8();zs?((zs.exports=$a)._=$a,im._=$a):Gn._=$a}).call(I3)})(ih,ih.exports);var Pa=ih.exports;let $d;const Uz=new Uint8Array(16);function zz(){if(!$d&&($d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $d(Uz)}const Yn=[];for(let e=0;e<256;++e)Yn.push((e+256).toString(16).slice(1));function jz(e,t=0){return Yn[e[t+0]]+Yn[e[t+1]]+Yn[e[t+2]]+Yn[e[t+3]]+"-"+Yn[e[t+4]]+Yn[e[t+5]]+"-"+Yn[e[t+6]]+Yn[e[t+7]]+"-"+Yn[e[t+8]]+Yn[e[t+9]]+"-"+Yn[e[t+10]]+Yn[e[t+11]]+Yn[e[t+12]]+Yn[e[t+13]]+Yn[e[t+14]]+Yn[e[t+15]]}const Vz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ES={randomUUID:Vz};function e0(e,t,n){if(ES.randomUUID&&!t&&!e)return ES.randomUUID();e=e||{};const r=e.random||(e.rng||zz)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,jz(r)}function g2(e){this.message=e}g2.prototype=new Error,g2.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function CS(e){this.message=e}CS.prototype=new Error,CS.prototype.name="InvalidTokenError";var Wz={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -73,12 +73,12 @@ function print() { __p += __j.call(arguments, '') } * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Kl=D;function Kz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yz=typeof Object.is=="function"?Object.is:Kz,Xz=Kl.useState,Zz=Kl.useEffect,Qz=Kl.useLayoutEffect,Jz=Kl.useDebugValue;function ej(e,t){var n=t(),r=Xz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Qz(function(){o.value=n,o.getSnapshot=t,Wg(o)&&i({inst:o})},[e,n,t]),Zz(function(){return Wg(o)&&i({inst:o}),e(function(){Wg(o)&&i({inst:o})})},[e]),Jz(n),n}function Wg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yz(e,n)}catch{return!0}}function tj(e,t){return t()}var nj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tj:ej;Gz.useSyncExternalStore=Kl.useSyncExternalStore!==void 0?Kl.useSyncExternalStore:nj;const hs=()=>{},So=hs(),qg=Object,Xo=e=>e===So,ta=e=>typeof e=="function",t0=(e,t)=>({...e,...t}),rj=e=>ta(e.then),Fd=new WeakMap;let oj=0;const zc=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(qg(e)===e&&!r&&n!=RegExp){if(o=Fd.get(e),o)return o;if(o=++oj+"~",Fd.set(e,o),n==Array){for(o="@",i=0;i{const n=fs.get(e);return[()=>!Xo(t)&&e.get(t)||Hg,r=>{if(!Xo(t)){const o=e.get(t);t in Ud||(Ud[t]=o),n[5](t,t0(o,r),o||Hg)}},n[6],()=>!Xo(t)&&t in Ud?Ud[t]:!Xo(t)&&e.get(t)||Hg]};let w2=!0;const sj=()=>w2,[x2,b2]=hy&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[hs,hs],aj=()=>{const e=y2&&document.visibilityState;return Xo(e)||e!=="hidden"},lj=e=>(y2&&document.addEventListener("visibilitychange",e),x2("focus",e),()=>{y2&&document.removeEventListener("visibilitychange",e),b2("focus",e)}),uj=e=>{const t=()=>{w2=!0,e()},n=()=>{w2=!1};return x2("online",t),x2("offline",n),()=>{b2("online",t),b2("offline",n)}},cj={isOnline:sj,isVisible:aj},fj={initFocus:lj,initReconnect:uj};Ze.useId;const wR=!hy||"Deno"in window,Gg=typeof navigator<"u"&&navigator.connection,RS=!wR&&Gg&&(["slow-2g","2g"].includes(Gg.effectiveType)||Gg.saveData),xR=e=>{if(ta(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?zc(e):"",[e,t]};let dj=0;const kS=()=>++dj,pj=0,hj=1,mj=2;async function gj(...e){const[t,n,r,o]=e,i=t0({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const u=i.rollbackOnError;let c=i.optimisticData;const f=m=>typeof u=="function"?u(m):u!==!1,p=i.throwOnError;if(ta(n)){const m=n,x=[],v=t.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&m(t.get(y)._k)&&x.push(y);return Promise.all(x.map(h))}return h(n);async function h(m){const[x]=xR(m);if(!x)return;const[v,y]=ij(t,x),[A,_,w,S]=fs.get(t),k=()=>{const K=A[x];return(ta(i.revalidate)?i.revalidate(v().data,m):i.revalidate!==!1)&&(delete w[x],delete S[x],K&&K[0])?K[0](mj).then(()=>v().data):v().data};if(e.length<3)return k();let T=r,E;const L=kS();_[x]=[L,0];const $=!Xo(c),q=v(),B=q.data,Y=q._c,se=Xo(Y)?B:Y;if($&&(c=ta(c)?c(se,B):c,y({data:c,_c:se})),ta(T))try{T=T(se)}catch(K){E=K}if(T&&rj(T))if(T=await T.catch(K=>{E=K}),L!==_[x][0]){if(E)throw E;return T}else E&&$&&f(E)&&(a=!0,y({data:se,_c:So}));if(a&&!E)if(ta(a)){const K=a(T,se);y({data:K,error:So,_c:So})}else y({data:T,error:So,_c:So});if(_[x][1]=kS(),Promise.resolve(k()).then(()=>{y({_c:So})}),E){if(p)throw E;return}return T}}const TS=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},vj=(e,t)=>{if(!fs.has(e)){const n=t0(fj,t),r={},o=gj.bind(So,e);let i=hs;const a={},u=(p,h)=>{const m=a[p]||[];return a[p]=m,m.push(h),()=>m.splice(m.indexOf(h),1)},c=(p,h,m)=>{e.set(p,h);const x=a[p];if(x)for(const v of x)v(h,m)},f=()=>{if(!fs.has(e)&&(fs.set(e,[r,{},{},{},o,c,u]),!wR)){const p=n.initFocus(setTimeout.bind(So,TS.bind(So,r,pj))),h=n.initReconnect(setTimeout.bind(So,TS.bind(So,r,hj)));i=()=>{p&&p(),h&&h(),fs.delete(e)}}};return f(),[e,o,f,i]}return[e,fs.get(e)[4]]},yj=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Xo(i)&&a>i||setTimeout(r,u,o)},wj=(e,t)=>zc(e)==zc(t),[bR,xj]=vj(new Map);t0({onLoadingSlow:hs,onSuccess:hs,onError:hs,onErrorRetry:yj,onDiscarded:hs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:RS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:RS?5e3:3e3,compare:wj,isPaused:()=>!1,cache:bR,mutate:xj,fallback:{}},cj);D.createContext({});const bj="$inf$",_R=hy&&window.__SWR_DEVTOOLS_USE__,_j=_R?window.__SWR_DEVTOOLS_USE__:[],Sj=()=>{_R&&(window.__SWR_DEVTOOLS_REACT__=Ze)},Ej=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=xR(t),[,,,u]=fs.get(bR);if(a.startsWith(bj))return n(...i);const c=u[a];return Xo(c)?n(...i):(delete u[a],c)}),r);_j.concat(Ej);Sj();Ze.use;const gi=Object.create(null);gi.open="0";gi.close="1";gi.ping="2";gi.pong="3";gi.message="4";gi.upgrade="5";gi.noop="6";const mp=Object.create(null);Object.keys(gi).forEach(e=>{mp[gi[e]]=e});const _2={type:"error",data:"parser error"},SR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ER=typeof ArrayBuffer=="function",CR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,my=({type:e,data:t},n,r)=>SR&&t instanceof Blob?n?r(t):DS(t,r):ER&&(t instanceof ArrayBuffer||CR(t))?n?r(t):DS(new Blob([t]),r):r(gi[e]+(t||"")),DS=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function PS(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Kg;function Cj(e,t){if(SR&&e.data instanceof Blob)return e.data.arrayBuffer().then(PS).then(t);if(ER&&(e.data instanceof ArrayBuffer||CR(e.data)))return t(PS(e.data));my(e,!1,n=>{Kg||(Kg=new TextEncoder),t(Kg.encode(n))})}const OS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ic=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,a,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(a&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},Rj=typeof ArrayBuffer=="function",gy=(e,t)=>{if(typeof e!="string")return{type:"message",data:AR(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:kj(e.substring(1),t)}:mp[n]?e.length>1?{type:mp[n],data:e.substring(1)}:{type:mp[n]}:_2},kj=(e,t)=>{if(Rj){const n=Aj(e);return AR(n,t)}else return{base64:!0,data:e}},AR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},RR="",Tj=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,a)=>{my(i,!1,u=>{r[a]=u,++o===n&&t(r.join(RR))})})},Dj=(e,t)=>{const n=e.split(RR),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Yg;function zd(e){return e.reduce((t,n)=>t+n.length,0)}function jd(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){u.enqueue(_2);break}o=p*Math.pow(2,32)+f.getUint32(4),r=3}else{if(zd(n)e){u.enqueue(_2);break}}}})}const kR=4;function Nn(e){if(e)return Lj(e)}function Lj(e){for(var t in Nn.prototype)e[t]=Nn.prototype[t];return e}Nn.prototype.on=Nn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Nn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Nn.prototype.off=Nn.prototype.removeListener=Nn.prototype.removeAllListeners=Nn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Nj=Eo.setTimeout,Mj=Eo.clearTimeout;function n0(e,t){t.useNativeTimers?(e.setTimeoutFn=Nj.bind(Eo),e.clearTimeoutFn=Mj.bind(Eo)):(e.setTimeoutFn=Eo.setTimeout.bind(Eo),e.clearTimeoutFn=Eo.clearTimeout.bind(Eo))}const Bj=1.33;function Ij(e){return typeof e=="string"?$j(e):Math.ceil((e.byteLength||e.size)*Bj)}function $j(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function Fj(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Uj(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function PR(){const e=MS(+new Date);return e!==NS?(LS=0,NS=e):e+"."+MS(LS++)}for(;Vd{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Dj(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Tj(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=PR()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ol(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Ol=class gp extends Nn{constructor(t,n){super(),n0(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=TR(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new LR(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=gp.requestsCount++,gp.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Wj,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete gp.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Ol.requestsCount=0;Ol.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",BS);else if(typeof addEventListener=="function"){const e="onpagehide"in Eo?"pagehide":"unload";addEventListener(e,BS,!1)}}function BS(){for(let e in Ol.requests)Ol.requests.hasOwnProperty(e)&&Ol.requests[e].abort()}const yy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Wd=Eo.WebSocket||Eo.MozWebSocket,IS=!0,Gj="arraybuffer",$S=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kj extends vy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=$S?{}:TR(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=IS&&!$S?n?new Wd(t,n):new Wd(t):new Wd(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const a={};try{IS&&this.ws.send(i)}catch{}o&&yy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=PR()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Wd}}class Yj extends vy{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=Oj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Pj();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:u,value:c})=>{u||(this.onPacket(c),i())}).catch(u=>{})};i();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&yy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const Xj={websocket:Kj,webtransport:Yj,polling:Hj},Zj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function E2(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Zj.exec(e||""),i={},a=14;for(;a--;)i[Qj[a]]=o[a]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Jj(i,i.path),i.queryKey=eV(i,i.query),i}function Jj(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function eV(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let NR=class ol extends Nn{constructor(t,n={}){super(),this.binaryType=Gj,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=E2(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=E2(n.host).host),n0(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Uj(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=kR,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new Xj[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ol.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;ol.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ol.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const a=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){a("transport closed")}function c(){a("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",a),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",a),n.once("close",u),this.once("close",c),this.once("upgrading",f),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",ol.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){ol.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,MR=Object.prototype.toString,oV=typeof Blob=="function"||typeof Blob<"u"&&MR.call(Blob)==="[object BlobConstructor]",iV=typeof File=="function"||typeof File<"u"&&MR.call(File)==="[object FileConstructor]";function wy(e){return nV&&(e instanceof ArrayBuffer||rV(e))||oV&&e instanceof Blob||iV&&e instanceof File}function vp(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let u=0;u{this.io.clearTimeoutFn(i),n.apply(this,u)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(a,u)=>a?o(a):r(u);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:dt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case dt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case dt.EVENT:case dt.BINARY_EVENT:this.onevent(t);break;case dt.ACK:case dt.BINARY_ACK:this.onack(t);break;case dt.DISCONNECT:this.ondisconnect();break;case dt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:dt.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:dt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}lu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};lu.prototype.reset=function(){this.attempts=0};lu.prototype.setMin=function(e){this.ms=e};lu.prototype.setMax=function(e){this.max=e};lu.prototype.setJitter=function(e){this.jitter=e};class R2 extends Nn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,n0(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new lu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||dV;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new NR(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Go(n,"open",function(){r.onopen(),t&&t()}),i=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},a=Go(n,"error",i);if(this._timeout!==!1){const u=this._timeout,c=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Go(t,"ping",this.onping.bind(this)),Go(t,"data",this.ondata.bind(this)),Go(t,"error",this.onerror.bind(this)),Go(t,"close",this.onclose.bind(this)),Go(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){yy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new BR(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const qu={};function yp(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=tV(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=qu[o]&&i in qu[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return u?c=new R2(r,t):(qu[o]||(qu[o]=new R2(r,t)),c=qu[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(yp,{Manager:R2,Socket:BR,io:yp,connect:yp});var hV=e=>{let t={},n=new Date,r=new Date;r.setDate(n.getDate()-1);let o=new Date;o.setDate(n.getDate()-7);let i=new Date;return i.setDate(n.getDate()-30),e.forEach(a=>{let u=new Date(a.createdAt),c=u.toDateString()===n.toDateString(),f=u.toDateString()===r.toDateString(),p=u>=o,h=u>=i,m;c?m="Today":f?m="Yesterday":p?m="Previous 7 days":h?m="Previous 30 days":m=u.toLocaleString("default",{month:"long",year:"numeric"}).split(" ").slice(0,1).join(" "),t[m]||(t[m]=[]),t[m].push(a)}),t},IR=Sn({key:"ThreadIdToResume",default:void 0}),mV=Sn({key:"ChatProfile",default:void 0}),US=Sn({key:"SessionId",default:e0()}),k2=vR({key:"SessionIdSelector",get:({get:e})=>e(US),set:({set:e},t)=>e(US,t instanceof zz?e0():t)}),r0=Sn({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),by=Sn({key:"Actions",default:[]}),_y=Sn({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),$R=Sn({key:"TokenCount",default:0}),Sy=Sn({key:"Loading",default:!1}),Ey=Sn({key:"AskUser",default:void 0}),FR=Sn({key:"CallFn",default:void 0}),o0=Sn({key:"ChatSettings",default:[]}),UR=vR({key:"ChatSettingsValue/Default",get:({get:e})=>e(o0).reduce((t,n)=>(t[n.id]=n.initial,t),{})}),Cy=Sn({key:"ChatSettingsValue",default:UR}),Ay=Sn({key:"DisplayElements",default:[]}),Ry=Sn({key:"TasklistElements",default:[]}),ky=Sn({key:"FirstUserInteraction",default:void 0}),gV=Sn({key:"AccessToken",default:void 0});Sn({key:"User",default:null});Sn({key:"ChainlitConfig",default:void 0});Sn({key:"ThreadHistory",default:{threads:void 0,currentThreadId:void 0,timeGroupedThreads:void 0,pageInfo:void 0},effects:[({setSelf:e,onSet:t})=>{t((n,r)=>{let o=n==null?void 0:n.timeGroupedThreads;n!=null&&n.threads&&!Da.isEqual(n.threads,r==null?void 0:r.timeGroupedThreads)&&(o=hV(n.threads)),e({...n,timeGroupedThreads:o})})}]});var vV=Sn({key:"SideView",default:void 0}),Ty=Sn({key:"CurrentThreadId",default:void 0}),zR=()=>{let e=Pn(Sy),t=Pn(Ay),n=Pn(Ry),r=Pn(by),o=Pn(r0),i=Pn(Ey),a=Pn(FR),u=Pn(o0),c=Pn(Cy),f=Pn(UR),p=(o==null?void 0:o.socket.connected)&&!(o!=null&&o.error),h=!p||e||(i==null?void 0:i.spec.type)==="file"||(i==null?void 0:i.spec.type)==="action";return{actions:r,askUser:i,callFn:a,chatSettingsDefaultValue:f,chatSettingsInputs:u,chatSettingsValue:c,connected:p,disabled:h,elements:t,error:o==null?void 0:o.error,loading:e,tasklists:n}},bl=(e,t)=>{let n=["assistant_message","user_message"],r=[...n,"tool"],o=n.includes(t.type),i=r.includes(t.type),a=!t.parentId;if(a&&!i)return e;let u=a?void 0:Dy(e,t.parentId),c=(a||(u==null?void 0:u.type)!=="assistant_message")&&t.type==="tool";if(i0(e,t.id))return Py(e,t.id,t);if(c){let f=e.length>0?e[e.length-1]:void 0,p=(f==null?void 0:f.type)==="assistant_message"&&(f==null?void 0:f.id.startsWith("wrap_"));return f&&p?[...e.slice(0,e.length-1),{...f,steps:[...f.steps||[],t]}]:[...e,{...t,name:"",input:"",output:"",id:"wrap_"+t.id,type:"assistant_message",steps:[t]}]}else return!o&&"parentId"in t&&t.parentId?VR(e,t.parentId,t):"indent"in t&&t.indent&&t.indent>0?jR(e,t.indent,t):[...e,t]},jR=(e,t,n,r=0)=>{let o=[...e];if(o.length===0)return[...o,n];{let i=o.length-1,a=o[i];return a.steps=a.steps||[],r+1===t?(a.steps=[...a.steps,n],o[i]={...a},o):(a.steps=jR(a.steps,t,n,r+1),o[i]={...a},o)}},VR=(e,t,n)=>{let r=[...e];for(let o=0;o{for(let n of e){if(Da.isEqual(n.id,t))return n;if(n.steps&&n.steps.length>0){let r=Dy(n.steps,t);if(r)return r}}},i0=(e,t)=>Dy(e,t)!==void 0,Py=(e,t,n)=>{let r=[...e];for(let o=0;o{let n=[...e];for(let r=0;r{let i=[...e];for(let a=0;a{let c=new FormData;c.append("file",e),o.open("POST",this.buildEndpoint(`/project/file?session_id=${n}`),!0),r&&o.setRequestHeader("Authorization",this.checkToken(r)),o.upload.onprogress=function(f){if(f.lengthComputable){let p=f.loaded/f.total*100;t(p)}},o.onload=function(){if(o.status===200){let f=JSON.parse(o.responseText);a(f)}else u("Upload failed")},o.onerror=function(){u("Upload error")},o.send(c)});return{xhr:o,promise:i}}getElementUrl(e,t){let n=`?session_id=${t}`;return this.buildEndpoint(`/project/file/${e}${n}`)}getLogoEndpoint(e){return this.buildEndpoint(`/logo?theme=${e}`)}getOAuthEndpoint(e){return this.buildEndpoint(`/auth/oauth/${e}`)}},s0=D.createContext(new HR("http://localhost:8000","webapp")),GR=()=>{let e=D.useContext(s0),t=Pn(gV),n=Pn(r0),r=Pn(Ey),o=Pn(k2),i=hp(o0),a=hp(k2),u=hp(Cy),c=xn(ky),f=xn(Sy),p=xn(_y),h=xn(Ay),m=xn(Ry),x=xn(by),v=xn($R),y=xn(IR),A=xn(vV),_=xn(Ty),w=D.useCallback(()=>{n==null||n.socket.emit("clear_session"),n==null||n.socket.disconnect(),y(void 0),a(),c(void 0),p([]),h([]),m([]),x([]),v(0),i(),u(),A(void 0),_(void 0)},[n]),S=D.useCallback((B,Y=[])=>{B.id||(B.id=e0()),B.createdAt||(B.createdAt=new Date().toISOString()),p(se=>bl(se,B)),n==null||n.socket.emit("client_message",{message:B,fileReferences:Y})},[n==null?void 0:n.socket]),k=D.useCallback((B,Y,se,K)=>{n==null||n.socket.emit("audio_chunk",{isStart:B,mimeType:Y,elapsedTime:se,data:K})},[n==null?void 0:n.socket]),T=D.useCallback(B=>{n==null||n.socket.emit("audio_end",{fileReferences:B})},[n==null?void 0:n.socket]),E=D.useCallback(B=>{r&&(p(Y=>bl(Y,B)),r.callback(B))},[r]),L=D.useCallback(B=>{n==null||n.socket.emit("chat_settings_change",B)},[n==null?void 0:n.socket]),$=D.useCallback(()=>{p(B=>B.map(Y=>(Y.streaming=!1,Y))),f(!1),n==null||n.socket.emit("stop")},[n==null?void 0:n.socket]),q=D.useCallback(B=>{let Y=n==null?void 0:n.socket;if(!Y)return;let se=new Promise((K,H)=>{Y.once("action_response",Q=>{Q.status?K(Q):H(Q)})});return Y.emit("action_call",B),se},[n==null?void 0:n.socket]);return{uploadFile:D.useCallback((B,Y)=>e.uploadFile(B,Y,o,t),[o,t]),callAction:q,clear:w,replyMessage:E,sendMessage:S,sendAudioChunk:k,endAudioStream:T,stopTask:$,setIdToResume:y,updateChatSettings:L}},bV=()=>{let e=Pn(_y),t=Pn(ky);return{threadId:Pn(Ty),messages:e,firstInteraction:t}},_V=()=>{let e=D.useContext(s0),t=Pn(k2),[n,r]=ES(r0),o=hp(Cy),i=xn(ky),a=xn(Sy),u=xn(_y),c=xn(Ey),f=xn(FR),p=xn(Ay),h=xn(Ry),m=xn(by),x=xn(o0),v=xn($R),[y,A]=ES(mV),_=Pn(IR),w=xn(Ty),S=D.useCallback(({userEnv:E,accessToken:L})=>{let{protocol:$,host:q,pathname:B}=new URL(e.httpEndpoint),Y=`${$}//${q}`,se=B&&B!=="/"?`${B}/ws/socket.io`:"/ws/socket.io",K=yp(Y,{path:se,extraHeaders:{Authorization:L||"","X-Chainlit-Client-Type":e.type,"X-Chainlit-Session-Id":t,"X-Chainlit-Thread-Id":_||"","user-env":JSON.stringify(E),"X-Chainlit-Chat-Profile":y?encodeURIComponent(y):""}});r(H=>{var Q,le;return(Q=H==null?void 0:H.socket)==null||Q.removeAllListeners(),(le=H==null?void 0:H.socket)==null||le.close(),{socket:K}}),K.on("connect",()=>{K.emit("connection_successful"),r(H=>({...H,error:!1}))}),K.on("connect_error",H=>{r(Q=>({...Q,error:!0}))}),K.on("task_start",()=>{a(!0)}),K.on("task_end",()=>{a(!1)}),K.on("reload",()=>{K.emit("clear_session"),window.location.reload()}),K.on("resume_thread",H=>{var de,J;let Q=[];for(let pe of H.steps)Q=bl(Q,pe);(de=H.metadata)!=null&&de.chat_profile&&A((J=H.metadata)==null?void 0:J.chat_profile),u(Q);let le=H.elements||[];h(le.filter(pe=>pe.type==="tasklist")),p(le.filter(pe=>["avatar","tasklist"].indexOf(pe.type)===-1))}),K.on("new_message",H=>{u(Q=>bl(Q,H))}),K.on("first_interaction",H=>{i(H.interaction),w(H.thread_id)}),K.on("update_message",H=>{u(Q=>Py(Q,H.id,H))}),K.on("delete_message",H=>{u(Q=>WR(Q,H.id))}),K.on("stream_start",H=>{u(Q=>bl(Q,H))}),K.on("stream_token",({id:H,token:Q,isSequence:le,isInput:de})=>{u(J=>qR(J,H,Q,le,de))}),K.on("ask",({msg:H,spec:Q},le)=>{c({spec:Q,callback:le}),u(de=>bl(de,H)),a(!1)}),K.on("ask_timeout",()=>{c(void 0),a(!1)}),K.on("clear_ask",()=>{c(void 0)}),K.on("call_fn",({name:H,args:Q},le)=>{f({name:H,args:Q,callback:le})}),K.on("clear_call_fn",()=>{f(void 0)}),K.on("call_fn_timeout",()=>{f(void 0)}),K.on("chat_settings",H=>{x(H),o()}),K.on("element",H=>{!H.url&&H.chainlitKey&&(H.url=e.getElementUrl(H.chainlitKey,t)),H.type==="tasklist"?h(Q=>{let le=Q.findIndex(de=>de.id===H.id);return le===-1?[...Q,H]:[...Q.slice(0,le),H,...Q.slice(le+1)]}):p(Q=>{let le=Q.findIndex(de=>de.id===H.id);return le===-1?[...Q,H]:[...Q.slice(0,le),H,...Q.slice(le+1)]})}),K.on("remove_element",H=>{p(Q=>Q.filter(le=>le.id!==H.id)),h(Q=>Q.filter(le=>le.id!==H.id))}),K.on("action",H=>{m(Q=>[...Q,H])}),K.on("remove_action",H=>{m(Q=>{let le=Q.findIndex(de=>de.id===H.id);return le===-1?Q:[...Q.slice(0,le),...Q.slice(le+1)]})}),K.on("token_usage",H=>{v(Q=>Q+H)})},[r,t,y]),k=D.useCallback(Da.debounce(S,200),[S]),T=D.useCallback(()=>{n!=null&&n.socket&&(n.socket.removeAllListeners(),n.socket.close())},[n]);return{connect:k,disconnect:T,session:n,sessionId:t,chatProfile:y,idToResume:_,setChatProfile:A}};function KR(e,t){return function(){return e.apply(t,arguments)}}const{toString:SV}=Object.prototype,{getPrototypeOf:Oy}=Object,a0=(e=>t=>{const n=SV.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ti=e=>(e=e.toLowerCase(),t=>a0(t)===e),l0=e=>t=>typeof t===e,{isArray:uu}=Array,jc=l0("undefined");function EV(e){return e!==null&&!jc(e)&&e.constructor!==null&&!jc(e.constructor)&&Qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const YR=ti("ArrayBuffer");function CV(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&YR(e.buffer),t}const AV=l0("string"),Qr=l0("function"),XR=l0("number"),u0=e=>e!==null&&typeof e=="object",RV=e=>e===!0||e===!1,wp=e=>{if(a0(e)!=="object")return!1;const t=Oy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kV=ti("Date"),TV=ti("File"),DV=ti("Blob"),PV=ti("FileList"),OV=e=>u0(e)&&Qr(e.pipe),LV=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qr(e.append)&&((t=a0(e))==="formdata"||t==="object"&&Qr(e.toString)&&e.toString()==="[object FormData]"))},NV=ti("URLSearchParams"),[MV,BV,IV,$V]=["ReadableStream","Request","Response","Headers"].map(ti),FV=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),uu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const sa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,QR=e=>!jc(e)&&e!==sa;function T2(){const{caseless:e}=QR(this)&&this||{},t={},n=(r,o)=>{const i=e&&ZR(t,o)||o;wp(t[i])&&wp(r)?t[i]=T2(t[i],r):wp(r)?t[i]=T2({},r):uu(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(hf(t,(o,i)=>{n&&Qr(o)?e[i]=KR(o,n):e[i]=o},{allOwnKeys:r}),e),zV=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jV=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},VV=(e,t,n,r)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=n!==!1&&Oy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WV=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},qV=e=>{if(!e)return null;if(uu(e))return e;let t=e.length;if(!XR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},HV=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oy(Uint8Array)),GV=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},KV=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},YV=ti("HTMLFormElement"),XV=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),jS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ZV=ti("RegExp"),JR=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};hf(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},QV=e=>{JR(e,(t,n)=>{if(Qr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JV=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return uu(e)?r(e):r(String(e).split(t)),n},eW=()=>{},tW=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Xg="abcdefghijklmnopqrstuvwxyz",VS="0123456789",ek={DIGIT:VS,ALPHA:Xg,ALPHA_DIGIT:Xg+Xg.toUpperCase()+VS},nW=(e=16,t=ek.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function rW(e){return!!(e&&Qr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const oW=e=>{const t=new Array(10),n=(r,o)=>{if(u0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=uu(r)?[]:{};return hf(r,(a,u)=>{const c=n(a,o+1);!jc(c)&&(i[u]=c)}),t[o]=void 0,i}}return r};return n(e,0)},iW=ti("AsyncFunction"),sW=e=>e&&(u0(e)||Qr(e))&&Qr(e.then)&&Qr(e.catch),tk=((e,t)=>e?setImmediate:t?((n,r)=>(sa.addEventListener("message",({source:o,data:i})=>{o===sa&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),sa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qr(sa.postMessage)),aW=typeof queueMicrotask<"u"?queueMicrotask.bind(sa):typeof process<"u"&&process.nextTick||tk,Z={isArray:uu,isArrayBuffer:YR,isBuffer:EV,isFormData:LV,isArrayBufferView:CV,isString:AV,isNumber:XR,isBoolean:RV,isObject:u0,isPlainObject:wp,isReadableStream:MV,isRequest:BV,isResponse:IV,isHeaders:$V,isUndefined:jc,isDate:kV,isFile:TV,isBlob:DV,isRegExp:ZV,isFunction:Qr,isStream:OV,isURLSearchParams:NV,isTypedArray:HV,isFileList:PV,forEach:hf,merge:T2,extend:UV,trim:FV,stripBOM:zV,inherits:jV,toFlatObject:VV,kindOf:a0,kindOfTest:ti,endsWith:WV,toArray:qV,forEachEntry:GV,matchAll:KV,isHTMLForm:YV,hasOwnProperty:jS,hasOwnProp:jS,reduceDescriptors:JR,freezeMethods:QV,toObjectSet:JV,toCamelCase:XV,noop:eW,toFiniteNumber:tW,findKey:ZR,global:sa,isContextDefined:QR,ALPHABET:ek,generateString:nW,isSpecCompliantForm:rW,toJSONObject:oW,isAsyncFn:iW,isThenable:sW,setImmediate:tk,asap:aW};function Je(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const nk=Je.prototype,rk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rk[e]={value:e}});Object.defineProperties(Je,rk);Object.defineProperty(nk,"isAxiosError",{value:!0});Je.from=(e,t,n,r,o,i)=>{const a=Object.create(nk);return Z.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),Je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const lW=null;function D2(e){return Z.isPlainObject(e)||Z.isArray(e)}function ok(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function WS(e,t,n){return e?e.concat(t).map(function(o,i){return o=ok(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function uW(e){return Z.isArray(e)&&!e.some(D2)}const cW=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function c0(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,A){return!Z.isUndefined(A[y])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(Z.isDate(v))return v.toISOString();if(!c&&Z.isBlob(v))throw new Je("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(v)||Z.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,y,A){let _=v;if(v&&!A&&typeof v=="object"){if(Z.endsWith(y,"{}"))y=r?y:y.slice(0,-2),v=JSON.stringify(v);else if(Z.isArray(v)&&uW(v)||(Z.isFileList(v)||Z.endsWith(y,"[]"))&&(_=Z.toArray(v)))return y=ok(y),_.forEach(function(S,k){!(Z.isUndefined(S)||S===null)&&t.append(a===!0?WS([y],k,i):a===null?y:y+"[]",f(S))}),!1}return D2(v)?!0:(t.append(WS(A,y,i),f(v)),!1)}const h=[],m=Object.assign(cW,{defaultVisitor:p,convertValue:f,isVisitable:D2});function x(v,y){if(!Z.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(v),Z.forEach(v,function(_,w){(!(Z.isUndefined(_)||_===null)&&o.call(t,_,Z.isString(w)?w.trim():w,y,m))===!0&&x(_,y?y.concat(w):[w])}),h.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function qS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ly(e,t){this._pairs=[],e&&c0(e,this,t)}const ik=Ly.prototype;ik.append=function(t,n){this._pairs.push([t,n])};ik.toString=function(t){const n=t?function(r){return t.call(this,r,qS)}:qS;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function fW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sk(e,t,n){if(!t)return e;const r=n&&n.encode||fW,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Z.isURLSearchParams(t)?t.toString():new Ly(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class HS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ak={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dW=typeof URLSearchParams<"u"?URLSearchParams:Ly,pW=typeof FormData<"u"?FormData:null,hW=typeof Blob<"u"?Blob:null,mW={isBrowser:!0,classes:{URLSearchParams:dW,FormData:pW,Blob:hW},protocols:["http","https","file","blob","url","data"]},Ny=typeof window<"u"&&typeof document<"u",P2=typeof navigator=="object"&&navigator||void 0,gW=Ny&&(!P2||["ReactNative","NativeScript","NS"].indexOf(P2.product)<0),vW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yW=Ny&&window.location.href||"http://localhost",wW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ny,hasStandardBrowserEnv:gW,hasStandardBrowserWebWorkerEnv:vW,navigator:P2,origin:yW},Symbol.toStringTag,{value:"Module"})),Nr={...wW,...mW};function xW(e,t){return c0(e,new Nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Nr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function bW(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _W(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Z.isArray(o)?o.length:a,c?(Z.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Z.isArray(o[a])&&(o[a]=_W(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(bW(r),o,n,0)}),n}return null}function SW(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mf={transitional:ak,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(lk(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return xW(t,this.formSerializer).toString();if((u=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return c0(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),SW(t)):t}],transformResponse:[function(t){const n=this.transitional||mf.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?Je.from(u,Je.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{mf.headers[e]={}});const EW=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CW=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&EW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},GS=Symbol("internals");function Hu(e){return e&&String(e).trim().toLowerCase()}function xp(e){return e===!1||e==null?e:Z.isArray(e)?e.map(xp):String(e)}function AW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const RW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zg(e,t,n,r,o){if(Z.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function kW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function TW(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Mr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,c,f){const p=Hu(c);if(!p)throw new Error("header name must be a non-empty string");const h=Z.findKey(o,p);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=xp(u))}const a=(u,c)=>Z.forEach(u,(f,p)=>i(f,p,c));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Z.isString(t)&&(t=t.trim())&&!RW(t))a(CW(t),n);else if(Z.isHeaders(t))for(const[u,c]of t.entries())i(c,u,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Hu(t),t){const r=Z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return AW(o);if(Z.isFunction(n))return n.call(this,o,r);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hu(t),t){const r=Z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zg(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Hu(a),a){const u=Z.findKey(r,a);u&&(!n||Zg(r,r[u],u,n))&&(delete r[u],o=!0)}}return Z.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Zg(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Z.forEach(this,(o,i)=>{const a=Z.findKey(r,i);if(a){n[a]=xp(o),delete n[i];return}const u=t?kW(i):String(i).trim();u!==i&&delete n[i],n[u]=xp(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[GS]=this[GS]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Hu(a);r[u]||(TW(o,a),r[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}}Mr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Mr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Mr);function Qg(e,t){const n=this||mf,r=t||n,o=Mr.from(r.headers);let i=r.data;return Z.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function uk(e){return!!(e&&e.__CANCEL__)}function cu(e,t,n){Je.call(this,e??"canceled",Je.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(cu,Je,{__CANCEL__:!0});function ck(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[i];a||(a=f),n[o]=c,r[o]=f;let h=i,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const p=Date.now(),h=p-n;h>=r?a(f,p):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},r-h)))},()=>o&&a(o)]}const sh=(e,t,n=3)=>{let r=0;const o=PW(50,250);return OW(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-r,f=o(c),p=a<=u;r=a;const h={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-a)/f:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},KS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},YS=e=>(...t)=>Z.asap(()=>e(...t)),LW=Nr.hasStandardBrowserEnv?function(){const t=Nr.navigator&&/(msie|trident)/i.test(Nr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const u=Z.isString(a)?o(a):a;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),NW=Nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Z.isString(r)&&a.push("path="+r),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function MW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function BW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fk(e,t){return e&&!MW(t)?BW(e,t):t}const XS=e=>e instanceof Mr?{...e}:e;function Sa(e,t){t=t||{};const n={};function r(f,p,h){return Z.isPlainObject(f)&&Z.isPlainObject(p)?Z.merge.call({caseless:h},f,p):Z.isPlainObject(p)?Z.merge({},p):Z.isArray(p)?p.slice():p}function o(f,p,h){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f,h)}else return r(f,p,h)}function i(f,p){if(!Z.isUndefined(p))return r(void 0,p)}function a(f,p){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,h){if(h in t)return r(f,p);if(h in e)return r(void 0,f)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(f,p)=>o(XS(f),XS(p),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,m=h(e[p],t[p],p);Z.isUndefined(m)&&h!==u||(n[p]=m)}),n}const dk=e=>{const t=Sa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=Mr.from(a),t.url=sk(fk(t.baseURL,t.url),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(Z.isFormData(n)){if(Nr.hasStandardBrowserEnv||Nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[f,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Nr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&LW(t.url))){const f=o&&i&&NW.read(i);f&&a.set(o,f)}return t},IW=typeof XMLHttpRequest<"u",$W=IW&&function(e){return new Promise(function(n,r){const o=dk(e);let i=o.data;const a=Mr.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=o,p,h,m,x,v;function y(){x&&x(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function _(){if(!A)return;const S=Mr.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),T={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:S,config:e,request:A};ck(function(L){n(L),y()},function(L){r(L),y()},T),A=null}"onloadend"in A?A.onloadend=_:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(_)},A.onabort=function(){A&&(r(new Je("Request aborted",Je.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new Je("Network Error",Je.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||ak;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new Je(k,T.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(k,T){A.setRequestHeader(T,k)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),f&&([m,v]=sh(f,!0),A.addEventListener("progress",m)),c&&A.upload&&([h,x]=sh(c),A.upload.addEventListener("progress",h),A.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(p=S=>{A&&(r(!S||S.type?new cu(null,e,A):S),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=DW(o.url);if(w&&Nr.protocols.indexOf(w)===-1){r(new Je("Unsupported protocol "+w+":",Je.ERR_BAD_REQUEST,e));return}A.send(i||null)})},FW=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof Je?p:new cu(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,i(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>Z.asap(u),c}},UW=function*(e,t){let n=e.byteLength;if(!t||n{const o=zW(e,t);let i=0,a,u=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let h=p.byteLength;if(n){let m=i+=h;n(m)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},f0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pk=f0&&typeof ReadableStream=="function",VW=f0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),hk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},WW=pk&&hk(()=>{let e=!1;const t=new Request(Nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),QS=64*1024,O2=pk&&hk(()=>Z.isReadableStream(new Response("").body)),ah={stream:O2&&(e=>e.body)};f0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ah[t]&&(ah[t]=Z.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,r)})})})(new Response);const qW=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(Nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await VW(e)).byteLength},HW=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??qW(t)},GW=f0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:h="same-origin",fetchOptions:m}=dk(e);f=f?(f+"").toLowerCase():"text";let x=FW([o,i&&i.toAbortSignal()],a),v;const y=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let A;try{if(c&&WW&&n!=="get"&&n!=="head"&&(A=await HW(p,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Z.isFormData(r)&&(E=T.headers.get("content-type"))&&p.setContentType(E),T.body){const[L,$]=KS(A,sh(YS(c)));r=ZS(T.body,QS,L,$)}}Z.isString(h)||(h=h?"include":"omit");const _="credentials"in Request.prototype;v=new Request(t,{...m,signal:x,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:_?h:void 0});let w=await fetch(v);const S=O2&&(f==="stream"||f==="response");if(O2&&(u||S&&y)){const T={};["status","statusText","headers"].forEach(q=>{T[q]=w[q]});const E=Z.toFiniteNumber(w.headers.get("content-length")),[L,$]=u&&KS(E,sh(YS(u),!0))||[];w=new Response(ZS(w.body,QS,L,()=>{$&&$(),y&&y()}),T)}f=f||"text";let k=await ah[Z.findKey(ah,f)||"text"](w,e);return!S&&y&&y(),await new Promise((T,E)=>{ck(T,E,{data:k,headers:Mr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:v})})}catch(_){throw y&&y(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,v),{cause:_.cause||_}):Je.from(_,_&&_.code,e,v)}}),L2={http:lW,xhr:$W,fetch:GW};Z.forEach(L2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const JS=e=>`- ${e}`,KW=e=>Z.isFunction(e)||e===null||e===!1,mk={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : -`+i.map(JS).join(` -`):" "+JS(i[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:L2};function Jg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cu(null,e)}function eE(e){return Jg(e),e.headers=Mr.from(e.headers),e.data=Qg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mk.getAdapter(e.adapter||mf.adapter)(e).then(function(r){return Jg(e),r.data=Qg.call(e,e.transformResponse,r),r.headers=Mr.from(r.headers),r},function(r){return uk(r)||(Jg(e),r&&r.response&&(r.response.data=Qg.call(e,e.transformResponse,r.response),r.response.headers=Mr.from(r.response.headers))),Promise.reject(r)})}const gk="1.7.7",My={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{My[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tE={};My.transitional=function(t,n,r){function o(i,a){return"[Axios v"+gk+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,u)=>{if(t===!1)throw new Je(o(a," has been removed"+(n?" in "+n:"")),Je.ERR_DEPRECATED);return n&&!tE[a]&&(tE[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,u):!0}};function YW(e,t,n){if(typeof e!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new Je("option "+i+" must be "+c,Je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}}const N2={assertOptions:YW,validators:My},rs=N2.validators;class da{constructor(t){this.defaults=t,this.interceptors={request:new HS,response:new HS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Sa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&N2.assertOptions(r,{silentJSONParsing:rs.transitional(rs.boolean),forcedJSONParsing:rs.transitional(rs.boolean),clarifyTimeoutError:rs.transitional(rs.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:N2.assertOptions(o,{encode:rs.function,serialize:rs.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[n.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Mr.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let p,h=0,m;if(!c){const v=[eE.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,f),m=v.length,p=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{r.subscribe(u),i=u}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,u){r.reason||(r.reason=new cu(i,a,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new By(function(o){t=o}),cancel:t}}}function XW(e){return function(n){return e.apply(null,n)}}function ZW(e){return Z.isObject(e)&&e.isAxiosError===!0}const M2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(M2).forEach(([e,t])=>{M2[t]=e});function vk(e){const t=new da(e),n=KR(da.prototype.request,t);return Z.extend(n,da.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return vk(Sa(e,o))},n}const _n=vk(mf);_n.Axios=da;_n.CanceledError=cu;_n.CancelToken=By;_n.isCancel=uk;_n.VERSION=gk;_n.toFormData=c0;_n.AxiosError=Je;_n.Cancel=_n.CanceledError;_n.all=function(t){return Promise.all(t)};_n.spread=XW;_n.isAxiosError=ZW;_n.mergeConfig=Sa;_n.AxiosHeaders=Mr;_n.formToJSON=e=>lk(Z.isHTMLForm(e)?new FormData(e):e);_n.getAdapter=mk.getAdapter;_n.HttpStatusCode=M2;_n.default=_n;/** + */var Kl=D;function qz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hz=typeof Object.is=="function"?Object.is:qz,Gz=Kl.useState,Kz=Kl.useEffect,Yz=Kl.useLayoutEffect,Xz=Kl.useDebugValue;function Zz(e,t){var n=t(),r=Gz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Yz(function(){o.value=n,o.getSnapshot=t,Wg(o)&&i({inst:o})},[e,n,t]),Kz(function(){return Wg(o)&&i({inst:o}),e(function(){Wg(o)&&i({inst:o})})},[e]),Xz(n),n}function Wg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hz(e,n)}catch{return!0}}function Qz(e,t){return t()}var Jz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Qz:Zz;Wz.useSyncExternalStore=Kl.useSyncExternalStore!==void 0?Kl.useSyncExternalStore:Jz;const ms=()=>{},So=ms(),qg=Object,Xo=e=>e===So,na=e=>typeof e=="function",t0=(e,t)=>({...e,...t}),ej=e=>na(e.then),Fd=new WeakMap;let tj=0;const zc=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(qg(e)===e&&!r&&n!=RegExp){if(o=Fd.get(e),o)return o;if(o=++tj+"~",Fd.set(e,o),n==Array){for(o="@",i=0;i{const n=ds.get(e);return[()=>!Xo(t)&&e.get(t)||Hg,r=>{if(!Xo(t)){const o=e.get(t);t in Ud||(Ud[t]=o),n[5](t,t0(o,r),o||Hg)}},n[6],()=>!Xo(t)&&t in Ud?Ud[t]:!Xo(t)&&e.get(t)||Hg]};let y2=!0;const rj=()=>y2,[w2,x2]=py&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ms,ms],oj=()=>{const e=v2&&document.visibilityState;return Xo(e)||e!=="hidden"},ij=e=>(v2&&document.addEventListener("visibilitychange",e),w2("focus",e),()=>{v2&&document.removeEventListener("visibilitychange",e),x2("focus",e)}),sj=e=>{const t=()=>{y2=!0,e()},n=()=>{y2=!1};return w2("online",t),w2("offline",n),()=>{x2("online",t),x2("offline",n)}},aj={isOnline:rj,isVisible:oj},lj={initFocus:ij,initReconnect:sj};Ze.useId;const vR=!py||"Deno"in window,Gg=typeof navigator<"u"&&navigator.connection,AS=!vR&&Gg&&(["slow-2g","2g"].includes(Gg.effectiveType)||Gg.saveData),yR=e=>{if(na(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?zc(e):"",[e,t]};let uj=0;const RS=()=>++uj,cj=0,fj=1,dj=2;async function pj(...e){const[t,n,r,o]=e,i=t0({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const u=i.rollbackOnError;let c=i.optimisticData;const f=m=>typeof u=="function"?u(m):u!==!1,p=i.throwOnError;if(na(n)){const m=n,x=[],v=t.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&m(t.get(y)._k)&&x.push(y);return Promise.all(x.map(h))}return h(n);async function h(m){const[x]=yR(m);if(!x)return;const[v,y]=nj(t,x),[A,_,w,S]=ds.get(t),k=()=>{const K=A[x];return(na(i.revalidate)?i.revalidate(v().data,m):i.revalidate!==!1)&&(delete w[x],delete S[x],K&&K[0])?K[0](dj).then(()=>v().data):v().data};if(e.length<3)return k();let T=r,E;const L=RS();_[x]=[L,0];const $=!Xo(c),q=v(),B=q.data,Y=q._c,se=Xo(Y)?B:Y;if($&&(c=na(c)?c(se,B):c,y({data:c,_c:se})),na(T))try{T=T(se)}catch(K){E=K}if(T&&ej(T))if(T=await T.catch(K=>{E=K}),L!==_[x][0]){if(E)throw E;return T}else E&&$&&f(E)&&(a=!0,y({data:se,_c:So}));if(a&&!E)if(na(a)){const K=a(T,se);y({data:K,error:So,_c:So})}else y({data:T,error:So,_c:So});if(_[x][1]=RS(),Promise.resolve(k()).then(()=>{y({_c:So})}),E){if(p)throw E;return}return T}}const kS=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},hj=(e,t)=>{if(!ds.has(e)){const n=t0(lj,t),r={},o=pj.bind(So,e);let i=ms;const a={},u=(p,h)=>{const m=a[p]||[];return a[p]=m,m.push(h),()=>m.splice(m.indexOf(h),1)},c=(p,h,m)=>{e.set(p,h);const x=a[p];if(x)for(const v of x)v(h,m)},f=()=>{if(!ds.has(e)&&(ds.set(e,[r,{},{},{},o,c,u]),!vR)){const p=n.initFocus(setTimeout.bind(So,kS.bind(So,r,cj))),h=n.initReconnect(setTimeout.bind(So,kS.bind(So,r,fj)));i=()=>{p&&p(),h&&h(),ds.delete(e)}}};return f(),[e,o,f,i]}return[e,ds.get(e)[4]]},mj=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Xo(i)&&a>i||setTimeout(r,u,o)},gj=(e,t)=>zc(e)==zc(t),[wR,vj]=hj(new Map);t0({onLoadingSlow:ms,onSuccess:ms,onError:ms,onErrorRetry:mj,onDiscarded:ms,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:AS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:AS?5e3:3e3,compare:gj,isPaused:()=>!1,cache:wR,mutate:vj,fallback:{}},aj);D.createContext({});const yj="$inf$",xR=py&&window.__SWR_DEVTOOLS_USE__,wj=xR?window.__SWR_DEVTOOLS_USE__:[],xj=()=>{xR&&(window.__SWR_DEVTOOLS_REACT__=Ze)},bj=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=yR(t),[,,,u]=ds.get(wR);if(a.startsWith(yj))return n(...i);const c=u[a];return Xo(c)?n(...i):(delete u[a],c)}),r);wj.concat(bj);xj();Ze.use;const gi=Object.create(null);gi.open="0";gi.close="1";gi.ping="2";gi.pong="3";gi.message="4";gi.upgrade="5";gi.noop="6";const mp=Object.create(null);Object.keys(gi).forEach(e=>{mp[gi[e]]=e});const b2={type:"error",data:"parser error"},bR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",_R=typeof ArrayBuffer=="function",SR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,hy=({type:e,data:t},n,r)=>bR&&t instanceof Blob?n?r(t):TS(t,r):_R&&(t instanceof ArrayBuffer||SR(t))?n?r(t):TS(new Blob([t]),r):r(gi[e]+(t||"")),TS=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function DS(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Kg;function _j(e,t){if(bR&&e.data instanceof Blob)return e.data.arrayBuffer().then(DS).then(t);if(_R&&(e.data instanceof ArrayBuffer||SR(e.data)))return t(DS(e.data));hy(e,!1,n=>{Kg||(Kg=new TextEncoder),t(Kg.encode(n))})}const PS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ic=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,a,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(a&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},Ej=typeof ArrayBuffer=="function",my=(e,t)=>{if(typeof e!="string")return{type:"message",data:ER(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Cj(e.substring(1),t)}:mp[n]?e.length>1?{type:mp[n],data:e.substring(1)}:{type:mp[n]}:b2},Cj=(e,t)=>{if(Ej){const n=Sj(e);return ER(n,t)}else return{base64:!0,data:e}},ER=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},CR="",Aj=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,a)=>{hy(i,!1,u=>{r[a]=u,++o===n&&t(r.join(CR))})})},Rj=(e,t)=>{const n=e.split(CR),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Yg;function zd(e){return e.reduce((t,n)=>t+n.length,0)}function jd(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){u.enqueue(b2);break}o=p*Math.pow(2,32)+f.getUint32(4),r=3}else{if(zd(n)e){u.enqueue(b2);break}}}})}const AR=4;function Nn(e){if(e)return Dj(e)}function Dj(e){for(var t in Nn.prototype)e[t]=Nn.prototype[t];return e}Nn.prototype.on=Nn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Nn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Nn.prototype.off=Nn.prototype.removeListener=Nn.prototype.removeAllListeners=Nn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Pj=Eo.setTimeout,Oj=Eo.clearTimeout;function n0(e,t){t.useNativeTimers?(e.setTimeoutFn=Pj.bind(Eo),e.clearTimeoutFn=Oj.bind(Eo)):(e.setTimeoutFn=Eo.setTimeout.bind(Eo),e.clearTimeoutFn=Eo.clearTimeout.bind(Eo))}const Lj=1.33;function Nj(e){return typeof e=="string"?Mj(e):Math.ceil((e.byteLength||e.size)*Lj)}function Mj(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function Bj(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Ij(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function TR(){const e=NS(+new Date);return e!==LS?(OS=0,LS=e):e+"."+NS(OS++)}for(;Vd<_2;Vd++)Fj[kR[Vd]]=Vd;let DR=!1;try{DR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Uj=DR;function PR(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Uj))return new XMLHttpRequest}catch{}if(!t)try{return new Eo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function zj(){}const jj=function(){return new PR({xdomain:!1}).responseType!=null}();class Vj extends gy{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}const n=t&&t.forceBase64;this.supportsBinary=jj&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Rj(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Aj(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=TR()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ol(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Ol=class gp extends Nn{constructor(t,n){super(),n0(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=RR(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new PR(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=gp.requestsCount++,gp.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=zj,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete gp.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Ol.requestsCount=0;Ol.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",MS);else if(typeof addEventListener=="function"){const e="onpagehide"in Eo?"pagehide":"unload";addEventListener(e,MS,!1)}}function MS(){for(let e in Ol.requests)Ol.requests.hasOwnProperty(e)&&Ol.requests[e].abort()}const vy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Wd=Eo.WebSocket||Eo.MozWebSocket,BS=!0,Wj="arraybuffer",IS=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class qj extends gy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=IS?{}:RR(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=BS&&!IS?n?new Wd(t,n):new Wd(t):new Wd(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const a={};try{BS&&this.ws.send(i)}catch{}o&&vy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=TR()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Wd}}class Hj extends gy{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=Tj(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=kj();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:u,value:c})=>{u||(this.onPacket(c),i())}).catch(u=>{})};i();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&vy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const Gj={websocket:qj,webtransport:Hj,polling:Vj},Kj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Yj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S2(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Kj.exec(e||""),i={},a=14;for(;a--;)i[Yj[a]]=o[a]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Xj(i,i.path),i.queryKey=Zj(i,i.query),i}function Xj(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Zj(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let OR=class ol extends Nn{constructor(t,n={}){super(),this.binaryType=Wj,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=S2(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=S2(n.host).host),n0(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ij(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=AR,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new Gj[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ol.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;ol.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ol.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const a=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){a("transport closed")}function c(){a("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",a),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",a),n.once("close",u),this.once("close",c),this.once("upgrading",f),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",ol.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){ol.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,LR=Object.prototype.toString,tV=typeof Blob=="function"||typeof Blob<"u"&&LR.call(Blob)==="[object BlobConstructor]",nV=typeof File=="function"||typeof File<"u"&&LR.call(File)==="[object FileConstructor]";function yy(e){return Jj&&(e instanceof ArrayBuffer||eV(e))||tV&&e instanceof Blob||nV&&e instanceof File}function vp(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let u=0;u{this.io.clearTimeoutFn(i),n.apply(this,u)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(a,u)=>a?o(a):r(u);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:dt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case dt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case dt.EVENT:case dt.BINARY_EVENT:this.onevent(t);break;case dt.ACK:case dt.BINARY_ACK:this.onack(t);break;case dt.DISCONNECT:this.ondisconnect();break;case dt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:dt.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:dt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}lu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};lu.prototype.reset=function(){this.attempts=0};lu.prototype.setMin=function(e){this.ms=e};lu.prototype.setMax=function(e){this.max=e};lu.prototype.setJitter=function(e){this.jitter=e};class A2 extends Nn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,n0(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new lu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||uV;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new OR(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Go(n,"open",function(){r.onopen(),t&&t()}),i=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},a=Go(n,"error",i);if(this._timeout!==!1){const u=this._timeout,c=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Go(t,"ping",this.onping.bind(this)),Go(t,"data",this.ondata.bind(this)),Go(t,"error",this.onerror.bind(this)),Go(t,"close",this.onclose.bind(this)),Go(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){vy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new NR(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const qu={};function yp(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Qj(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=qu[o]&&i in qu[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return u?c=new A2(r,t):(qu[o]||(qu[o]=new A2(r,t)),c=qu[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(yp,{Manager:A2,Socket:NR,io:yp,connect:yp});var fV=e=>{let t={},n=new Date,r=new Date;r.setDate(n.getDate()-1);let o=new Date;o.setDate(n.getDate()-7);let i=new Date;return i.setDate(n.getDate()-30),e.forEach(a=>{let u=new Date(a.createdAt),c=u.toDateString()===n.toDateString(),f=u.toDateString()===r.toDateString(),p=u>=o,h=u>=i,m;c?m="Today":f?m="Yesterday":p?m="Previous 7 days":h?m="Previous 30 days":m=u.toLocaleString("default",{month:"long",year:"numeric"}).split(" ").slice(0,1).join(" "),t[m]||(t[m]=[]),t[m].push(a)}),t},MR=Sn({key:"ThreadIdToResume",default:void 0}),dV=Sn({key:"ChatProfile",default:void 0}),FS=Sn({key:"SessionId",default:e0()}),R2=mR({key:"SessionIdSelector",get:({get:e})=>e(FS),set:({set:e},t)=>e(FS,t instanceof $z?e0():t)}),r0=Sn({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),xy=Sn({key:"Actions",default:[]}),by=Sn({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),BR=Sn({key:"TokenCount",default:0}),_y=Sn({key:"Loading",default:!1}),Sy=Sn({key:"AskUser",default:void 0}),IR=Sn({key:"CallFn",default:void 0}),o0=Sn({key:"ChatSettings",default:[]}),$R=mR({key:"ChatSettingsValue/Default",get:({get:e})=>e(o0).reduce((t,n)=>(t[n.id]=n.initial,t),{})}),Ey=Sn({key:"ChatSettingsValue",default:$R}),Cy=Sn({key:"DisplayElements",default:[]}),Ay=Sn({key:"TasklistElements",default:[]}),Ry=Sn({key:"FirstUserInteraction",default:void 0}),pV=Sn({key:"AccessToken",default:void 0});Sn({key:"User",default:null});Sn({key:"ChainlitConfig",default:void 0});Sn({key:"ThreadHistory",default:{threads:void 0,currentThreadId:void 0,timeGroupedThreads:void 0,pageInfo:void 0},effects:[({setSelf:e,onSet:t})=>{t((n,r)=>{let o=n==null?void 0:n.timeGroupedThreads;n!=null&&n.threads&&!Pa.isEqual(n.threads,r==null?void 0:r.timeGroupedThreads)&&(o=fV(n.threads)),e({...n,timeGroupedThreads:o})})}]});var hV=Sn({key:"SideView",default:void 0}),ky=Sn({key:"CurrentThreadId",default:void 0}),FR=()=>{let e=Pn(_y),t=Pn(Cy),n=Pn(Ay),r=Pn(xy),o=Pn(r0),i=Pn(Sy),a=Pn(IR),u=Pn(o0),c=Pn(Ey),f=Pn($R),p=(o==null?void 0:o.socket.connected)&&!(o!=null&&o.error),h=!p||e||(i==null?void 0:i.spec.type)==="file"||(i==null?void 0:i.spec.type)==="action";return{actions:r,askUser:i,callFn:a,chatSettingsDefaultValue:f,chatSettingsInputs:u,chatSettingsValue:c,connected:p,disabled:h,elements:t,error:o==null?void 0:o.error,loading:e,tasklists:n}},bl=(e,t)=>{let n=["assistant_message","user_message"],r=[...n,"tool"],o=n.includes(t.type),i=r.includes(t.type),a=!t.parentId;if(a&&!i)return e;let u=a?void 0:Ty(e,t.parentId),c=(a||(u==null?void 0:u.type)!=="assistant_message")&&t.type==="tool";if(i0(e,t.id))return Dy(e,t.id,t);if(c){let f=e.length>0?e[e.length-1]:void 0,p=(f==null?void 0:f.type)==="assistant_message"&&(f==null?void 0:f.id.startsWith("wrap_"));return f&&p?[...e.slice(0,e.length-1),{...f,steps:[...f.steps||[],t]}]:[...e,{...t,name:"",input:"",output:"",id:"wrap_"+t.id,type:"assistant_message",steps:[t]}]}else return!o&&"parentId"in t&&t.parentId?zR(e,t.parentId,t):"indent"in t&&t.indent&&t.indent>0?UR(e,t.indent,t):[...e,t]},UR=(e,t,n,r=0)=>{let o=[...e];if(o.length===0)return[...o,n];{let i=o.length-1,a=o[i];return a.steps=a.steps||[],r+1===t?(a.steps=[...a.steps,n],o[i]={...a},o):(a.steps=UR(a.steps,t,n,r+1),o[i]={...a},o)}},zR=(e,t,n)=>{let r=[...e];for(let o=0;o{for(let n of e){if(Pa.isEqual(n.id,t))return n;if(n.steps&&n.steps.length>0){let r=Ty(n.steps,t);if(r)return r}}},i0=(e,t)=>Ty(e,t)!==void 0,Dy=(e,t,n)=>{let r=[...e];for(let o=0;o{let n=[...e];for(let r=0;r{let i=[...e];for(let a=0;a{let c=new FormData;c.append("file",e),o.open("POST",this.buildEndpoint(`/project/file?session_id=${n}`),!0),r&&o.setRequestHeader("Authorization",this.checkToken(r)),o.upload.onprogress=function(f){if(f.lengthComputable){let p=f.loaded/f.total*100;t(p)}},o.onload=function(){if(o.status===200){let f=JSON.parse(o.responseText);a(f)}else u("Upload failed")},o.onerror=function(){u("Upload error")},o.send(c)});return{xhr:o,promise:i}}getElementUrl(e,t){let n=`?session_id=${t}`;return this.buildEndpoint(`/project/file/${e}${n}`)}getLogoEndpoint(e){return this.buildEndpoint(`/logo?theme=${e}`)}getOAuthEndpoint(e){return this.buildEndpoint(`/auth/oauth/${e}`)}},s0=D.createContext(new WR("http://localhost:8000","webapp")),qR=()=>{let e=D.useContext(s0),t=Pn(pV),n=Pn(r0),r=Pn(Sy),o=Pn(R2),i=hp(o0),a=hp(R2),u=hp(Ey),c=xn(Ry),f=xn(_y),p=xn(by),h=xn(Cy),m=xn(Ay),x=xn(xy),v=xn(BR),y=xn(MR),A=xn(hV),_=xn(ky),w=D.useCallback(()=>{n==null||n.socket.emit("clear_session"),n==null||n.socket.disconnect(),y(void 0),a(),c(void 0),p([]),h([]),m([]),x([]),v(0),i(),u(),A(void 0),_(void 0)},[n]),S=D.useCallback((B,Y=[])=>{B.id||(B.id=e0()),B.createdAt||(B.createdAt=new Date().toISOString()),p(se=>bl(se,B)),n==null||n.socket.emit("client_message",{message:B,fileReferences:Y})},[n==null?void 0:n.socket]),k=D.useCallback((B,Y,se,K)=>{n==null||n.socket.emit("audio_chunk",{isStart:B,mimeType:Y,elapsedTime:se,data:K})},[n==null?void 0:n.socket]),T=D.useCallback(B=>{n==null||n.socket.emit("audio_end",{fileReferences:B})},[n==null?void 0:n.socket]),E=D.useCallback(B=>{r&&(p(Y=>bl(Y,B)),r.callback(B))},[r]),L=D.useCallback(B=>{n==null||n.socket.emit("chat_settings_change",B)},[n==null?void 0:n.socket]),$=D.useCallback(()=>{p(B=>B.map(Y=>(Y.streaming=!1,Y))),f(!1),n==null||n.socket.emit("stop")},[n==null?void 0:n.socket]),q=D.useCallback(B=>{let Y=n==null?void 0:n.socket;if(!Y)return;let se=new Promise((K,H)=>{Y.once("action_response",Q=>{Q.status?K(Q):H(Q)})});return Y.emit("action_call",B),se},[n==null?void 0:n.socket]);return{uploadFile:D.useCallback((B,Y)=>e.uploadFile(B,Y,o,t),[o,t]),callAction:q,clear:w,replyMessage:E,sendMessage:S,sendAudioChunk:k,endAudioStream:T,stopTask:$,setIdToResume:y,updateChatSettings:L}},yV=()=>{let e=Pn(by),t=Pn(Ry);return{threadId:Pn(ky),messages:e,firstInteraction:t}},wV=()=>{let e=D.useContext(s0),t=Pn(R2),[n,r]=SS(r0),o=hp(Ey),i=xn(Ry),a=xn(_y),u=xn(by),c=xn(Sy),f=xn(IR),p=xn(Cy),h=xn(Ay),m=xn(xy),x=xn(o0),v=xn(BR),[y,A]=SS(dV),_=Pn(MR),w=xn(ky),S=D.useCallback(({userEnv:E,accessToken:L})=>{let{protocol:$,host:q,pathname:B}=new URL(e.httpEndpoint),Y=`${$}//${q}`,se=B&&B!=="/"?`${B}/ws/socket.io`:"/ws/socket.io",K=yp(Y,{path:se,extraHeaders:{Authorization:L||"","X-Chainlit-Client-Type":e.type,"X-Chainlit-Session-Id":t,"X-Chainlit-Thread-Id":_||"","user-env":JSON.stringify(E),"X-Chainlit-Chat-Profile":y?encodeURIComponent(y):""}});r(H=>{var Q,le;return(Q=H==null?void 0:H.socket)==null||Q.removeAllListeners(),(le=H==null?void 0:H.socket)==null||le.close(),{socket:K}}),K.on("connect",()=>{K.emit("connection_successful"),r(H=>({...H,error:!1}))}),K.on("connect_error",H=>{r(Q=>({...Q,error:!0}))}),K.on("task_start",()=>{a(!0)}),K.on("task_end",()=>{a(!1)}),K.on("reload",()=>{K.emit("clear_session"),window.location.reload()}),K.on("resume_thread",H=>{var de,J;let Q=[];for(let pe of H.steps)Q=bl(Q,pe);(de=H.metadata)!=null&&de.chat_profile&&A((J=H.metadata)==null?void 0:J.chat_profile),u(Q);let le=H.elements||[];h(le.filter(pe=>pe.type==="tasklist")),p(le.filter(pe=>["avatar","tasklist"].indexOf(pe.type)===-1))}),K.on("new_message",H=>{u(Q=>bl(Q,H))}),K.on("first_interaction",H=>{i(H.interaction),w(H.thread_id)}),K.on("update_message",H=>{u(Q=>Dy(Q,H.id,H))}),K.on("delete_message",H=>{u(Q=>jR(Q,H.id))}),K.on("stream_start",H=>{u(Q=>bl(Q,H))}),K.on("stream_token",({id:H,token:Q,isSequence:le,isInput:de})=>{u(J=>VR(J,H,Q,le,de))}),K.on("ask",({msg:H,spec:Q},le)=>{c({spec:Q,callback:le}),u(de=>bl(de,H)),a(!1)}),K.on("ask_timeout",()=>{c(void 0),a(!1)}),K.on("clear_ask",()=>{c(void 0)}),K.on("call_fn",({name:H,args:Q},le)=>{f({name:H,args:Q,callback:le})}),K.on("clear_call_fn",()=>{f(void 0)}),K.on("call_fn_timeout",()=>{f(void 0)}),K.on("chat_settings",H=>{x(H),o()}),K.on("element",H=>{!H.url&&H.chainlitKey&&(H.url=e.getElementUrl(H.chainlitKey,t)),H.type==="tasklist"?h(Q=>{let le=Q.findIndex(de=>de.id===H.id);return le===-1?[...Q,H]:[...Q.slice(0,le),H,...Q.slice(le+1)]}):p(Q=>{let le=Q.findIndex(de=>de.id===H.id);return le===-1?[...Q,H]:[...Q.slice(0,le),H,...Q.slice(le+1)]})}),K.on("remove_element",H=>{p(Q=>Q.filter(le=>le.id!==H.id)),h(Q=>Q.filter(le=>le.id!==H.id))}),K.on("action",H=>{m(Q=>[...Q,H])}),K.on("remove_action",H=>{m(Q=>{let le=Q.findIndex(de=>de.id===H.id);return le===-1?Q:[...Q.slice(0,le),...Q.slice(le+1)]})}),K.on("token_usage",H=>{v(Q=>Q+H)})},[r,t,y]),k=D.useCallback(Pa.debounce(S,200),[S]),T=D.useCallback(()=>{n!=null&&n.socket&&(n.socket.removeAllListeners(),n.socket.close())},[n]);return{connect:k,disconnect:T,session:n,sessionId:t,chatProfile:y,idToResume:_,setChatProfile:A}};function HR(e,t){return function(){return e.apply(t,arguments)}}const{toString:xV}=Object.prototype,{getPrototypeOf:Py}=Object,a0=(e=>t=>{const n=xV.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ti=e=>(e=e.toLowerCase(),t=>a0(t)===e),l0=e=>t=>typeof t===e,{isArray:uu}=Array,jc=l0("undefined");function bV(e){return e!==null&&!jc(e)&&e.constructor!==null&&!jc(e.constructor)&&Qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const GR=ti("ArrayBuffer");function _V(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&GR(e.buffer),t}const SV=l0("string"),Qr=l0("function"),KR=l0("number"),u0=e=>e!==null&&typeof e=="object",EV=e=>e===!0||e===!1,wp=e=>{if(a0(e)!=="object")return!1;const t=Py(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CV=ti("Date"),AV=ti("File"),RV=ti("Blob"),kV=ti("FileList"),TV=e=>u0(e)&&Qr(e.pipe),DV=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qr(e.append)&&((t=a0(e))==="formdata"||t==="object"&&Qr(e.toString)&&e.toString()==="[object FormData]"))},PV=ti("URLSearchParams"),[OV,LV,NV,MV]=["ReadableStream","Request","Response","Headers"].map(ti),BV=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),uu(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,XR=e=>!jc(e)&&e!==aa;function k2(){const{caseless:e}=XR(this)&&this||{},t={},n=(r,o)=>{const i=e&&YR(t,o)||o;wp(t[i])&&wp(r)?t[i]=k2(t[i],r):wp(r)?t[i]=k2({},r):uu(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(hf(t,(o,i)=>{n&&Qr(o)?e[i]=HR(o,n):e[i]=o},{allOwnKeys:r}),e),$V=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FV=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},UV=(e,t,n,r)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=n!==!1&&Py(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zV=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},jV=e=>{if(!e)return null;if(uu(e))return e;let t=e.length;if(!KR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VV=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Py(Uint8Array)),WV=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qV=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},HV=ti("HTMLFormElement"),GV=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),zS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KV=ti("RegExp"),ZR=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};hf(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},YV=e=>{ZR(e,(t,n)=>{if(Qr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},XV=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return uu(e)?r(e):r(String(e).split(t)),n},ZV=()=>{},QV=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Xg="abcdefghijklmnopqrstuvwxyz",jS="0123456789",QR={DIGIT:jS,ALPHA:Xg,ALPHA_DIGIT:Xg+Xg.toUpperCase()+jS},JV=(e=16,t=QR.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function eW(e){return!!(e&&Qr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tW=e=>{const t=new Array(10),n=(r,o)=>{if(u0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=uu(r)?[]:{};return hf(r,(a,u)=>{const c=n(a,o+1);!jc(c)&&(i[u]=c)}),t[o]=void 0,i}}return r};return n(e,0)},nW=ti("AsyncFunction"),rW=e=>e&&(u0(e)||Qr(e))&&Qr(e.then)&&Qr(e.catch),JR=((e,t)=>e?setImmediate:t?((n,r)=>(aa.addEventListener("message",({source:o,data:i})=>{o===aa&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),aa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qr(aa.postMessage)),oW=typeof queueMicrotask<"u"?queueMicrotask.bind(aa):typeof process<"u"&&process.nextTick||JR,Z={isArray:uu,isArrayBuffer:GR,isBuffer:bV,isFormData:DV,isArrayBufferView:_V,isString:SV,isNumber:KR,isBoolean:EV,isObject:u0,isPlainObject:wp,isReadableStream:OV,isRequest:LV,isResponse:NV,isHeaders:MV,isUndefined:jc,isDate:CV,isFile:AV,isBlob:RV,isRegExp:KV,isFunction:Qr,isStream:TV,isURLSearchParams:PV,isTypedArray:VV,isFileList:kV,forEach:hf,merge:k2,extend:IV,trim:BV,stripBOM:$V,inherits:FV,toFlatObject:UV,kindOf:a0,kindOfTest:ti,endsWith:zV,toArray:jV,forEachEntry:WV,matchAll:qV,isHTMLForm:HV,hasOwnProperty:zS,hasOwnProp:zS,reduceDescriptors:ZR,freezeMethods:YV,toObjectSet:XV,toCamelCase:GV,noop:ZV,toFiniteNumber:QV,findKey:YR,global:aa,isContextDefined:XR,ALPHABET:QR,generateString:JV,isSpecCompliantForm:eW,toJSONObject:tW,isAsyncFn:nW,isThenable:rW,setImmediate:JR,asap:oW};function Je(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const ek=Je.prototype,tk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tk[e]={value:e}});Object.defineProperties(Je,tk);Object.defineProperty(ek,"isAxiosError",{value:!0});Je.from=(e,t,n,r,o,i)=>{const a=Object.create(ek);return Z.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),Je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const iW=null;function T2(e){return Z.isPlainObject(e)||Z.isArray(e)}function nk(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function VS(e,t,n){return e?e.concat(t).map(function(o,i){return o=nk(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function sW(e){return Z.isArray(e)&&!e.some(T2)}const aW=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function c0(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,A){return!Z.isUndefined(A[y])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(Z.isDate(v))return v.toISOString();if(!c&&Z.isBlob(v))throw new Je("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(v)||Z.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,y,A){let _=v;if(v&&!A&&typeof v=="object"){if(Z.endsWith(y,"{}"))y=r?y:y.slice(0,-2),v=JSON.stringify(v);else if(Z.isArray(v)&&sW(v)||(Z.isFileList(v)||Z.endsWith(y,"[]"))&&(_=Z.toArray(v)))return y=nk(y),_.forEach(function(S,k){!(Z.isUndefined(S)||S===null)&&t.append(a===!0?VS([y],k,i):a===null?y:y+"[]",f(S))}),!1}return T2(v)?!0:(t.append(VS(A,y,i),f(v)),!1)}const h=[],m=Object.assign(aW,{defaultVisitor:p,convertValue:f,isVisitable:T2});function x(v,y){if(!Z.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(v),Z.forEach(v,function(_,w){(!(Z.isUndefined(_)||_===null)&&o.call(t,_,Z.isString(w)?w.trim():w,y,m))===!0&&x(_,y?y.concat(w):[w])}),h.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function WS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Oy(e,t){this._pairs=[],e&&c0(e,this,t)}const rk=Oy.prototype;rk.append=function(t,n){this._pairs.push([t,n])};rk.toString=function(t){const n=t?function(r){return t.call(this,r,WS)}:WS;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ok(e,t,n){if(!t)return e;const r=n&&n.encode||lW,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Z.isURLSearchParams(t)?t.toString():new Oy(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class qS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ik={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uW=typeof URLSearchParams<"u"?URLSearchParams:Oy,cW=typeof FormData<"u"?FormData:null,fW=typeof Blob<"u"?Blob:null,dW={isBrowser:!0,classes:{URLSearchParams:uW,FormData:cW,Blob:fW},protocols:["http","https","file","blob","url","data"]},Ly=typeof window<"u"&&typeof document<"u",D2=typeof navigator=="object"&&navigator||void 0,pW=Ly&&(!D2||["ReactNative","NativeScript","NS"].indexOf(D2.product)<0),hW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mW=Ly&&window.location.href||"http://localhost",gW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ly,hasStandardBrowserEnv:pW,hasStandardBrowserWebWorkerEnv:hW,navigator:D2,origin:mW},Symbol.toStringTag,{value:"Module"})),Nr={...gW,...dW};function vW(e,t){return c0(e,new Nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Nr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yW(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wW(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Z.isArray(o)?o.length:a,c?(Z.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Z.isArray(o[a])&&(o[a]=wW(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(yW(r),o,n,0)}),n}return null}function xW(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mf={transitional:ik,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(sk(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vW(t,this.formSerializer).toString();if((u=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return c0(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),xW(t)):t}],transformResponse:[function(t){const n=this.transitional||mf.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?Je.from(u,Je.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{mf.headers[e]={}});const bW=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_W=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&bW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},HS=Symbol("internals");function Hu(e){return e&&String(e).trim().toLowerCase()}function xp(e){return e===!1||e==null?e:Z.isArray(e)?e.map(xp):String(e)}function SW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const EW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zg(e,t,n,r,o){if(Z.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function CW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function AW(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Mr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,c,f){const p=Hu(c);if(!p)throw new Error("header name must be a non-empty string");const h=Z.findKey(o,p);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=xp(u))}const a=(u,c)=>Z.forEach(u,(f,p)=>i(f,p,c));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Z.isString(t)&&(t=t.trim())&&!EW(t))a(_W(t),n);else if(Z.isHeaders(t))for(const[u,c]of t.entries())i(c,u,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Hu(t),t){const r=Z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return SW(o);if(Z.isFunction(n))return n.call(this,o,r);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hu(t),t){const r=Z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zg(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Hu(a),a){const u=Z.findKey(r,a);u&&(!n||Zg(r,r[u],u,n))&&(delete r[u],o=!0)}}return Z.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Zg(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Z.forEach(this,(o,i)=>{const a=Z.findKey(r,i);if(a){n[a]=xp(o),delete n[i];return}const u=t?CW(i):String(i).trim();u!==i&&delete n[i],n[u]=xp(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[HS]=this[HS]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Hu(a);r[u]||(AW(o,a),r[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}}Mr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Mr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Mr);function Qg(e,t){const n=this||mf,r=t||n,o=Mr.from(r.headers);let i=r.data;return Z.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ak(e){return!!(e&&e.__CANCEL__)}function cu(e,t,n){Je.call(this,e??"canceled",Je.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(cu,Je,{__CANCEL__:!0});function lk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function RW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[i];a||(a=f),n[o]=c,r[o]=f;let h=i,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a{n=p,o=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const p=Date.now(),h=p-n;h>=r?a(f,p):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},r-h)))},()=>o&&a(o)]}const sh=(e,t,n=3)=>{let r=0;const o=kW(50,250);return TW(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-r,f=o(c),p=a<=u;r=a;const h={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-a)/f:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},GS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},KS=e=>(...t)=>Z.asap(()=>e(...t)),DW=Nr.hasStandardBrowserEnv?function(){const t=Nr.navigator&&/(msie|trident)/i.test(Nr.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const u=Z.isString(a)?o(a):a;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),PW=Nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Z.isString(r)&&a.push("path="+r),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function OW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function LW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uk(e,t){return e&&!OW(t)?LW(e,t):t}const YS=e=>e instanceof Mr?{...e}:e;function Ea(e,t){t=t||{};const n={};function r(f,p,h){return Z.isPlainObject(f)&&Z.isPlainObject(p)?Z.merge.call({caseless:h},f,p):Z.isPlainObject(p)?Z.merge({},p):Z.isArray(p)?p.slice():p}function o(f,p,h){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f,h)}else return r(f,p,h)}function i(f,p){if(!Z.isUndefined(p))return r(void 0,p)}function a(f,p){if(Z.isUndefined(p)){if(!Z.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,h){if(h in t)return r(f,p);if(h in e)return r(void 0,f)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(f,p)=>o(YS(f),YS(p),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,m=h(e[p],t[p],p);Z.isUndefined(m)&&h!==u||(n[p]=m)}),n}const ck=e=>{const t=Ea({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=Mr.from(a),t.url=ok(uk(t.baseURL,t.url),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(Z.isFormData(n)){if(Nr.hasStandardBrowserEnv||Nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[f,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Nr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&DW(t.url))){const f=o&&i&&PW.read(i);f&&a.set(o,f)}return t},NW=typeof XMLHttpRequest<"u",MW=NW&&function(e){return new Promise(function(n,r){const o=ck(e);let i=o.data;const a=Mr.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=o,p,h,m,x,v;function y(){x&&x(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function _(){if(!A)return;const S=Mr.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),T={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:S,config:e,request:A};lk(function(L){n(L),y()},function(L){r(L),y()},T),A=null}"onloadend"in A?A.onloadend=_:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(_)},A.onabort=function(){A&&(r(new Je("Request aborted",Je.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new Je("Network Error",Je.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||ik;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new Je(k,T.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(k,T){A.setRequestHeader(T,k)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),f&&([m,v]=sh(f,!0),A.addEventListener("progress",m)),c&&A.upload&&([h,x]=sh(c),A.upload.addEventListener("progress",h),A.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(p=S=>{A&&(r(!S||S.type?new cu(null,e,A):S),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=RW(o.url);if(w&&Nr.protocols.indexOf(w)===-1){r(new Je("Unsupported protocol "+w+":",Je.ERR_BAD_REQUEST,e));return}A.send(i||null)})},BW=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof Je?p:new cu(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,i(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>Z.asap(u),c}},IW=function*(e,t){let n=e.byteLength;if(!t||n{const o=$W(e,t);let i=0,a,u=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let h=p.byteLength;if(n){let m=i+=h;n(m)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},f0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fk=f0&&typeof ReadableStream=="function",UW=f0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),dk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zW=fk&&dk(()=>{let e=!1;const t=new Request(Nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ZS=64*1024,P2=fk&&dk(()=>Z.isReadableStream(new Response("").body)),ah={stream:P2&&(e=>e.body)};f0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ah[t]&&(ah[t]=Z.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,r)})})})(new Response);const jW=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(Nr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await UW(e)).byteLength},VW=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??jW(t)},WW=f0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:h="same-origin",fetchOptions:m}=ck(e);f=f?(f+"").toLowerCase():"text";let x=BW([o,i&&i.toAbortSignal()],a),v;const y=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let A;try{if(c&&zW&&n!=="get"&&n!=="head"&&(A=await VW(p,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Z.isFormData(r)&&(E=T.headers.get("content-type"))&&p.setContentType(E),T.body){const[L,$]=GS(A,sh(KS(c)));r=XS(T.body,ZS,L,$)}}Z.isString(h)||(h=h?"include":"omit");const _="credentials"in Request.prototype;v=new Request(t,{...m,signal:x,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:_?h:void 0});let w=await fetch(v);const S=P2&&(f==="stream"||f==="response");if(P2&&(u||S&&y)){const T={};["status","statusText","headers"].forEach(q=>{T[q]=w[q]});const E=Z.toFiniteNumber(w.headers.get("content-length")),[L,$]=u&&GS(E,sh(KS(u),!0))||[];w=new Response(XS(w.body,ZS,L,()=>{$&&$(),y&&y()}),T)}f=f||"text";let k=await ah[Z.findKey(ah,f)||"text"](w,e);return!S&&y&&y(),await new Promise((T,E)=>{lk(T,E,{data:k,headers:Mr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:v})})}catch(_){throw y&&y(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,v),{cause:_.cause||_}):Je.from(_,_&&_.code,e,v)}}),O2={http:iW,xhr:MW,fetch:WW};Z.forEach(O2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const QS=e=>`- ${e}`,qW=e=>Z.isFunction(e)||e===null||e===!1,pk={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(QS).join(` +`):" "+QS(i[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:O2};function Jg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cu(null,e)}function JS(e){return Jg(e),e.headers=Mr.from(e.headers),e.data=Qg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pk.getAdapter(e.adapter||mf.adapter)(e).then(function(r){return Jg(e),r.data=Qg.call(e,e.transformResponse,r),r.headers=Mr.from(r.headers),r},function(r){return ak(r)||(Jg(e),r&&r.response&&(r.response.data=Qg.call(e,e.transformResponse,r.response),r.response.headers=Mr.from(r.response.headers))),Promise.reject(r)})}const hk="1.7.7",Ny={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ny[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const eE={};Ny.transitional=function(t,n,r){function o(i,a){return"[Axios v"+hk+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,u)=>{if(t===!1)throw new Je(o(a," has been removed"+(n?" in "+n:"")),Je.ERR_DEPRECATED);return n&&!eE[a]&&(eE[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,u):!0}};function HW(e,t,n){if(typeof e!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new Je("option "+i+" must be "+c,Je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}}const L2={assertOptions:HW,validators:Ny},os=L2.validators;class pa{constructor(t){this.defaults=t,this.interceptors={request:new qS,response:new qS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ea(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&L2.assertOptions(r,{silentJSONParsing:os.transitional(os.boolean),forcedJSONParsing:os.transitional(os.boolean),clarifyTimeoutError:os.transitional(os.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:L2.assertOptions(o,{encode:os.function,serialize:os.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[n.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Mr.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let p,h=0,m;if(!c){const v=[JS.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,f),m=v.length,p=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{r.subscribe(u),i=u}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,u){r.reason||(r.reason=new cu(i,a,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new My(function(o){t=o}),cancel:t}}}function GW(e){return function(n){return e.apply(null,n)}}function KW(e){return Z.isObject(e)&&e.isAxiosError===!0}const N2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(N2).forEach(([e,t])=>{N2[t]=e});function mk(e){const t=new pa(e),n=HR(pa.prototype.request,t);return Z.extend(n,pa.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mk(Ea(e,o))},n}const _n=mk(mf);_n.Axios=pa;_n.CanceledError=cu;_n.CancelToken=My;_n.isCancel=ak;_n.VERSION=hk;_n.toFormData=c0;_n.AxiosError=Je;_n.Cancel=_n.CanceledError;_n.all=function(t){return Promise.all(t)};_n.spread=GW;_n.isAxiosError=KW;_n.mergeConfig=Ea;_n.AxiosHeaders=Mr;_n.formToJSON=e=>sk(Z.isHTMLForm(e)?new FormData(e):e);_n.getAdapter=pk.getAdapter;_n.HttpStatusCode=N2;_n.default=_n;/** * @remix-run/router v1.18.0 * * Copyright (c) Remix Software Inc. @@ -87,9 +87,9 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Yl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JW(){return Math.random().toString(36).substr(2,8)}function rE(e,t){return{usr:e.state,key:e.key,idx:t}}function Vc(e,t,n,r){return n===void 0&&(n=null),on({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ms(t):t,{state:n,key:t&&t.key||r||JW()})}function gf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function eq(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=Dn.Pop,c=null,f=p();f==null&&(f=0,a.replaceState(on({},a.state,{idx:f}),""));function p(){return(a.state||{idx:null}).idx}function h(){u=Dn.Pop;let A=p(),_=A==null?null:A-f;f=A,c&&c({action:u,location:y.location,delta:_})}function m(A,_){u=Dn.Push;let w=Vc(y.location,A,_);f=p()+1;let S=rE(w,f),k=y.createHref(w);try{a.pushState(S,"",k)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(k)}i&&c&&c({action:u,location:y.location,delta:1})}function x(A,_){u=Dn.Replace;let w=Vc(y.location,A,_);f=p();let S=rE(w,f),k=y.createHref(w);a.replaceState(S,"",k),i&&c&&c({action:u,location:y.location,delta:0})}function v(A){let _=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof A=="string"?A:gf(A);return w=w.replace(/ $/,"%20"),pt(_,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,_)}let y={get action(){return u},get location(){return e(o,a)},listen(A){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(nE,h),c=A,()=>{o.removeEventListener(nE,h),c=null}},createHref(A){return t(o,A)},createURL:v,encodeLocation(A){let _=v(A);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:m,replace:x,go(A){return a.go(A)}};return y}var Wt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wt||(Wt={}));const tq=new Set(["lazy","caseSensitive","path","id","index","children"]);function nq(e){return e.index===!0}function Wc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],u=typeof o.id=="string"?o.id:a.join("-");if(pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),pt(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),nq(o)){let c=on({},o,t(o),{id:u});return r[u]=c,c}else{let c=on({},o,t(o),{id:u,children:void 0});return r[u]=c,o.children&&(c.children=Wc(o.children,t,a,r)),c}})}function na(e,t,n){return n===void 0&&(n="/"),bp(e,t,n,!1)}function bp(e,t,n,r){let o=typeof t=="string"?Ms(t):t,i=vf(o.pathname||"/",n);if(i==null)return null;let a=yk(e);oq(a);let u=null;for(let c=0;u==null&&c{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(pt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=pa([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),yk(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:fq(f,i.index),routesMeta:p})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let c of wk(i.path))o(i,a,c)}),t}function wk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=wk(r.join("/")),u=[];return u.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&u.push(...a),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function oq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const iq=/^:[\w-]+$/,sq=3,aq=2,lq=1,uq=10,cq=-2,oE=e=>e==="*";function fq(e,t){let n=e.split("/"),r=n.length;return n.some(oE)&&(r+=cq),t&&(r+=aq),n.filter(o=>!oE(o)).reduce((o,i)=>o+(iq.test(i)?sq:i===""?lq:uq),r)}function dq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function pq(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let u=0;u{let{paramName:m,isOptional:x}=p;if(m==="*"){let y=u[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[h];return x&&!v?f[m]=void 0:f[m]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function hq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function mq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function vf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function gq(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ms(e):e;return{pathname:n?n.startsWith("/")?n:vq(n,t):t,search:bq(r),hash:_q(o)}}function vq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ev(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function xk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yq(e,t){let n=xk(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function wq(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ms(e):(o=on({},e),pt(!o.pathname||!o.pathname.includes("?"),ev("?","pathname","search",o)),pt(!o.pathname||!o.pathname.includes("#"),ev("#","pathname","hash",o)),pt(!o.search||!o.search.includes("#"),ev("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,u;if(a==null)u=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),h-=1;o.pathname=m.join("/")}u=h>=0?t[h]:"/"}let c=gq(o,u),f=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const pa=e=>e.join("/").replace(/\/\/+/g,"/"),xq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_q=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Iy{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function d0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bk=["post","put","patch","delete"],Sq=new Set(bk),Eq=["get",...bk],Cq=new Set(Eq),Aq=new Set([301,302,303,307,308]),Rq=new Set([307,308]),tv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},kq={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tq=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),_k="remix-router-transitions";function Dq(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;o=I=>({hasErrorBoundary:N(I)})}else o=Tq;let i={},a=Wc(e.routes,o,void 0,i),u,c=e.basename||"/",f=e.unstable_dataStrategy||Mq,p=e.unstable_patchRoutesOnMiss,h=on({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,x=new Set,v=null,y=null,A=null,_=e.hydrationData!=null,w=na(a,e.history.location,c),S=null;if(w==null&&!p){let N=yr(404,{pathname:e.history.location.pathname}),{matches:I,route:G}=mE(a);w=I,S={[G.id]:N}}w&&p&&!e.hydrationData&&Tn(w,a,e.history.location.pathname).active&&(w=null);let k;if(!w)k=!1,w=[];else if(w.some(N=>N.route.lazy))k=!1;else if(!w.some(N=>N.route.loader))k=!0;else if(h.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,I=e.hydrationData?e.hydrationData.errors:null,G=ne=>ne.route.loader?typeof ne.route.loader=="function"&&ne.route.loader.hydrate===!0?!1:N&&N[ne.route.id]!==void 0||I&&I[ne.route.id]!==void 0:!0;if(I){let ne=w.findIndex(Se=>I[Se.route.id]!==void 0);k=w.slice(0,ne+1).every(G)}else k=w.every(G)}else k=e.hydrationData!=null;let T,E={historyAction:e.history.action,location:e.history.location,matches:w,initialized:k,navigation:tv,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},L=Dn.Pop,$=!1,q,B=!1,Y=new Map,se=null,K=!1,H=!1,Q=[],le=[],de=new Map,J=0,pe=-1,re=new Map,me=new Set,U=new Map,ae=new Map,te=new Set,we=new Map,fe=new Map,ye=new Map,ge=!1;function he(){if(m=e.history.listen(N=>{let{action:I,location:G,delta:ne}=N;if(ge){ge=!1;return}Yl(fe.size===0||ne!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Se=Ce({currentLocation:E.location,nextLocation:G,historyAction:I});if(Se&&ne!=null){ge=!0,e.history.go(ne*-1),be(Se,{state:"blocked",location:G,proceed(){be(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),e.history.go(ne)},reset(){let Pe=new Map(E.blockers);Pe.set(Se,Gu),Re({blockers:Pe})}});return}return bt(I,G)}),n){Kq(t,Y);let N=()=>Yq(t,Y);t.addEventListener("pagehide",N),se=()=>t.removeEventListener("pagehide",N)}return E.initialized||bt(Dn.Pop,E.location,{initialHydration:!0}),T}function We(){m&&m(),se&&se(),x.clear(),q&&q.abort(),E.fetchers.forEach((N,I)=>rr(I)),E.blockers.forEach((N,I)=>_e(I))}function Le(N){return x.add(N),()=>x.delete(N)}function Re(N,I){I===void 0&&(I={}),E=on({},E,N);let G=[],ne=[];h.v7_fetcherPersist&&E.fetchers.forEach((Se,Pe)=>{Se.state==="idle"&&(te.has(Pe)?ne.push(Pe):G.push(Pe))}),[...x].forEach(Se=>Se(E,{deletedFetchers:ne,unstable_viewTransitionOpts:I.viewTransitionOpts,unstable_flushSync:I.flushSync===!0})),h.v7_fetcherPersist&&(G.forEach(Se=>E.fetchers.delete(Se)),ne.forEach(Se=>rr(Se)))}function Ke(N,I,G){var ne,Se;let{flushSync:Pe}=G===void 0?{}:G,Ue=E.actionData!=null&&E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&E.navigation.state==="loading"&&((ne=N.state)==null?void 0:ne._isRedirect)!==!0,xe;I.actionData?Object.keys(I.actionData).length>0?xe=I.actionData:xe=null:Ue?xe=E.actionData:xe=null;let He=I.loaderData?pE(E.loaderData,I.loaderData,I.matches||[],I.errors):E.loaderData,Be=E.blockers;Be.size>0&&(Be=new Map(Be),Be.forEach((vt,Rt)=>Be.set(Rt,Gu)));let $e=$===!0||E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&((Se=N.state)==null?void 0:Se._isRedirect)!==!0;u&&(a=u,u=void 0),K||L===Dn.Pop||(L===Dn.Push?e.history.push(N,N.state):L===Dn.Replace&&e.history.replace(N,N.state));let St;if(L===Dn.Pop){let vt=Y.get(E.location.pathname);vt&&vt.has(N.pathname)?St={currentLocation:E.location,nextLocation:N}:Y.has(N.pathname)&&(St={currentLocation:N,nextLocation:E.location})}else if(B){let vt=Y.get(E.location.pathname);vt?vt.add(N.pathname):(vt=new Set([N.pathname]),Y.set(E.location.pathname,vt)),St={currentLocation:E.location,nextLocation:N}}Re(on({},I,{actionData:xe,loaderData:He,historyAction:L,location:N,initialized:!0,navigation:tv,revalidation:"idle",restoreScrollPosition:zt(N,I.matches||E.matches),preventScrollReset:$e,blockers:Be}),{viewTransitionOpts:St,flushSync:Pe===!0}),L=Dn.Pop,$=!1,B=!1,K=!1,H=!1,Q=[],le=[]}async function st(N,I){if(typeof N=="number"){e.history.go(N);return}let G=B2(E.location,E.matches,c,h.v7_prependBasename,N,h.v7_relativeSplatPath,I==null?void 0:I.fromRouteId,I==null?void 0:I.relative),{path:ne,submission:Se,error:Pe}=sE(h.v7_normalizeFormMethod,!1,G,I),Ue=E.location,xe=Vc(E.location,ne,I&&I.state);xe=on({},xe,e.history.encodeLocation(xe));let He=I&&I.replace!=null?I.replace:void 0,Be=Dn.Push;He===!0?Be=Dn.Replace:He===!1||Se!=null&&Ko(Se.formMethod)&&Se.formAction===E.location.pathname+E.location.search&&(Be=Dn.Replace);let $e=I&&"preventScrollReset"in I?I.preventScrollReset===!0:void 0,St=(I&&I.unstable_flushSync)===!0,vt=Ce({currentLocation:Ue,nextLocation:xe,historyAction:Be});if(vt){be(vt,{state:"blocked",location:xe,proceed(){be(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),st(N,I)},reset(){let Rt=new Map(E.blockers);Rt.set(vt,Gu),Re({blockers:Rt})}});return}return await bt(Be,xe,{submission:Se,pendingError:Pe,preventScrollReset:$e,replace:I&&I.replace,enableViewTransition:I&&I.unstable_viewTransition,flushSync:St})}function ht(){if(nn(),Re({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){bt(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}bt(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function bt(N,I,G){q&&q.abort(),q=null,L=N,K=(G&&G.startUninterruptedRevalidation)===!0,kn(E.location,E.matches),$=(G&&G.preventScrollReset)===!0,B=(G&&G.enableViewTransition)===!0;let ne=u||a,Se=G&&G.overrideNavigation,Pe=na(ne,I,c),Ue=(G&&G.flushSync)===!0,xe=Tn(Pe,ne,I.pathname);if(xe.active&&xe.matches&&(Pe=xe.matches),!Pe){let{error:Ae,notFoundMatches:yt,route:dn}=Fe(I.pathname);Ke(I,{matches:yt,loaderData:{},errors:{[dn.id]:Ae}},{flushSync:Ue});return}if(E.initialized&&!H&&zq(E.location,I)&&!(G&&G.submission&&Ko(G.submission.formMethod))){Ke(I,{matches:Pe},{flushSync:Ue});return}q=new AbortController;let He=Ya(e.history,I,q.signal,G&&G.submission),Be;if(G&&G.pendingError)Be=[_l(Pe).route.id,{type:Wt.error,error:G.pendingError}];else if(G&&G.submission&&Ko(G.submission.formMethod)){let Ae=await mt(He,I,G.submission,Pe,xe.active,{replace:G.replace,flushSync:Ue});if(Ae.shortCircuited)return;if(Ae.pendingActionResult){let[yt,dn]=Ae.pendingActionResult;if(Kr(dn)&&d0(dn.error)&&dn.error.status===404){q=null,Ke(I,{matches:Ae.matches,loaderData:{},errors:{[yt]:dn.error}});return}}Pe=Ae.matches||Pe,Be=Ae.pendingActionResult,Se=nv(I,G.submission),Ue=!1,xe.active=!1,He=Ya(e.history,He.url,He.signal)}let{shortCircuited:$e,matches:St,loaderData:vt,errors:Rt}=await Mn(He,I,Pe,xe.active,Se,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,Ue,Be);$e||(q=null,Ke(I,on({matches:St||Pe},hE(Be),{loaderData:vt,errors:Rt})))}async function mt(N,I,G,ne,Se,Pe){Pe===void 0&&(Pe={}),nn();let Ue=Hq(I,G);if(Re({navigation:Ue},{flushSync:Pe.flushSync===!0}),Se){let Be=await fn(ne,I.pathname,N.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let{boundaryId:$e,error:St}=Me(I.pathname,Be);return{matches:Be.partialMatches,pendingActionResult:[$e,{type:Wt.error,error:St}]}}else if(Be.matches)ne=Be.matches;else{let{notFoundMatches:$e,error:St,route:vt}=Fe(I.pathname);return{matches:$e,pendingActionResult:[vt.id,{type:Wt.error,error:St}]}}}let xe,He=sc(ne,I);if(!He.route.action&&!He.route.lazy)xe={type:Wt.error,error:yr(405,{method:N.method,pathname:I.pathname,routeId:He.route.id})};else if(xe=(await At("action",N,[He],ne))[0],N.signal.aborted)return{shortCircuited:!0};if(la(xe)){let Be;return Pe&&Pe.replace!=null?Be=Pe.replace:Be=cE(xe.response.headers.get("Location"),new URL(N.url),c)===E.location.pathname+E.location.search,await Ut(N,xe,{submission:G,replace:Be}),{shortCircuited:!0}}if(aa(xe))throw yr(400,{type:"defer-action"});if(Kr(xe)){let Be=_l(ne,He.route.id);return(Pe&&Pe.replace)!==!0&&(L=Dn.Push),{matches:ne,pendingActionResult:[Be.route.id,xe]}}return{matches:ne,pendingActionResult:[He.route.id,xe]}}async function Mn(N,I,G,ne,Se,Pe,Ue,xe,He,Be,$e){let St=Se||nv(I,Pe),vt=Pe||Ue||yE(St),Rt=!K&&(!h.v7_partialHydration||!He);if(ne){if(Rt){let Zt=pr($e);Re(on({navigation:St},Zt!==void 0?{actionData:Zt}:{}),{flushSync:Be})}let Qe=await fn(G,I.pathname,N.signal);if(Qe.type==="aborted")return{shortCircuited:!0};if(Qe.type==="error"){let{boundaryId:Zt,error:hr}=Me(I.pathname,Qe);return{matches:Qe.partialMatches,loaderData:{},errors:{[Zt]:hr}}}else if(Qe.matches)G=Qe.matches;else{let{error:Zt,notFoundMatches:hr,route:jt}=Fe(I.pathname);return{matches:hr,loaderData:{},errors:{[jt.id]:Zt}}}}let Ae=u||a,[yt,dn]=aE(e.history,E,G,vt,I,h.v7_partialHydration&&He===!0,h.v7_skipActionErrorRevalidation,H,Q,le,te,U,me,Ae,c,$e);if(Ie(Qe=>!(G&&G.some(Zt=>Zt.route.id===Qe))||yt&&yt.some(Zt=>Zt.route.id===Qe)),pe=++J,yt.length===0&&dn.length===0){let Qe=W();return Ke(I,on({matches:G,loaderData:{},errors:$e&&Kr($e[1])?{[$e[0]]:$e[1].error}:null},hE($e),Qe?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Be}),{shortCircuited:!0}}if(Rt){let Qe={};if(!ne){Qe.navigation=St;let Zt=pr($e);Zt!==void 0&&(Qe.actionData=Zt)}dn.length>0&&(Qe.fetchers=Ct(dn)),Re(Qe,{flushSync:Be})}dn.forEach(Qe=>{de.has(Qe.key)&&Rn(Qe.key),Qe.controller&&de.set(Qe.key,Qe.controller)});let ni=()=>dn.forEach(Qe=>Rn(Qe.key));q&&q.signal.addEventListener("abort",ni);let{loaderResults:ri,fetcherResults:$o}=await An(E.matches,G,yt,dn,N);if(N.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",ni),dn.forEach(Qe=>de.delete(Qe.key));let qi=gE([...ri,...$o]);if(qi){if(qi.idx>=yt.length){let Qe=dn[qi.idx-yt.length].key;me.add(Qe)}return await Ut(N,qi.result,{replace:xe}),{shortCircuited:!0}}let{loaderData:Hi,errors:ao}=dE(E,G,yt,ri,$e,dn,$o,we);we.forEach((Qe,Zt)=>{Qe.subscribe(hr=>{(hr||Qe.done)&&we.delete(Zt)})}),h.v7_partialHydration&&He&&E.errors&&Object.entries(E.errors).filter(Qe=>{let[Zt]=Qe;return!yt.some(hr=>hr.route.id===Zt)}).forEach(Qe=>{let[Zt,hr]=Qe;ao=Object.assign(ao||{},{[Zt]:hr})});let $s=W(),Fs=F(pe),Us=$s||Fs||dn.length>0;return on({matches:G,loaderData:Hi,errors:ao},Us?{fetchers:new Map(E.fetchers)}:{})}function pr(N){if(N&&!Kr(N[1]))return{[N[0]]:N[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function Ct(N){return N.forEach(I=>{let G=E.fetchers.get(I.key),ne=Ku(void 0,G?G.data:void 0);E.fetchers.set(I.key,ne)}),new Map(E.fetchers)}function at(N,I,G,ne){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");de.has(N)&&Rn(N);let Se=(ne&&ne.unstable_flushSync)===!0,Pe=u||a,Ue=B2(E.location,E.matches,c,h.v7_prependBasename,G,h.v7_relativeSplatPath,I,ne==null?void 0:ne.relative),xe=na(Pe,Ue,c),He=Tn(xe,Pe,Ue);if(He.active&&He.matches&&(xe=He.matches),!xe){Oe(N,I,yr(404,{pathname:Ue}),{flushSync:Se});return}let{path:Be,submission:$e,error:St}=sE(h.v7_normalizeFormMethod,!0,Ue,ne);if(St){Oe(N,I,St,{flushSync:Se});return}let vt=sc(xe,Be);if($=(ne&&ne.preventScrollReset)===!0,$e&&Ko($e.formMethod)){un(N,I,Be,vt,xe,He.active,Se,$e);return}U.set(N,{routeId:I,path:Be}),cn(N,I,Be,vt,xe,He.active,Se,$e)}async function un(N,I,G,ne,Se,Pe,Ue,xe){nn(),U.delete(N);function He(jt){if(!jt.route.action&&!jt.route.lazy){let lo=yr(405,{method:xe.formMethod,pathname:G,routeId:I});return Oe(N,I,lo,{flushSync:Ue}),!0}return!1}if(!Pe&&He(ne))return;let Be=E.fetchers.get(N);qe(N,Gq(xe,Be),{flushSync:Ue});let $e=new AbortController,St=Ya(e.history,G,$e.signal,xe);if(Pe){let jt=await fn(Se,G,St.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:lo}=Me(G,jt);Oe(N,I,lo,{flushSync:Ue});return}else if(jt.matches){if(Se=jt.matches,ne=sc(Se,G),He(ne))return}else{Oe(N,I,yr(404,{pathname:G}),{flushSync:Ue});return}}de.set(N,$e);let vt=J,Ae=(await At("action",St,[ne],Se))[0];if(St.signal.aborted){de.get(N)===$e&&de.delete(N);return}if(h.v7_fetcherPersist&&te.has(N)){if(la(Ae)||Kr(Ae)){qe(N,is(void 0));return}}else{if(la(Ae))if(de.delete(N),pe>vt){qe(N,is(void 0));return}else return me.add(N),qe(N,Ku(xe)),Ut(St,Ae,{fetcherSubmission:xe});if(Kr(Ae)){Oe(N,I,Ae.error);return}}if(aa(Ae))throw yr(400,{type:"defer-action"});let yt=E.navigation.location||E.location,dn=Ya(e.history,yt,$e.signal),ni=u||a,ri=E.navigation.state!=="idle"?na(ni,E.navigation.location,c):E.matches;pt(ri,"Didn't find any matches after fetcher action");let $o=++J;re.set(N,$o);let qi=Ku(xe,Ae.data);E.fetchers.set(N,qi);let[Hi,ao]=aE(e.history,E,ri,xe,yt,!1,h.v7_skipActionErrorRevalidation,H,Q,le,te,U,me,ni,c,[ne.route.id,Ae]);ao.filter(jt=>jt.key!==N).forEach(jt=>{let lo=jt.key,gu=E.fetchers.get(lo),Tf=Ku(void 0,gu?gu.data:void 0);E.fetchers.set(lo,Tf),de.has(lo)&&Rn(lo),jt.controller&&de.set(lo,jt.controller)}),Re({fetchers:new Map(E.fetchers)});let $s=()=>ao.forEach(jt=>Rn(jt.key));$e.signal.addEventListener("abort",$s);let{loaderResults:Fs,fetcherResults:Us}=await An(E.matches,ri,Hi,ao,dn);if($e.signal.aborted)return;$e.signal.removeEventListener("abort",$s),re.delete(N),de.delete(N),ao.forEach(jt=>de.delete(jt.key));let Qe=gE([...Fs,...Us]);if(Qe){if(Qe.idx>=Hi.length){let jt=ao[Qe.idx-Hi.length].key;me.add(jt)}return Ut(dn,Qe.result)}let{loaderData:Zt,errors:hr}=dE(E,E.matches,Hi,Fs,void 0,ao,Us,we);if(E.fetchers.has(N)){let jt=is(Ae.data);E.fetchers.set(N,jt)}F($o),E.navigation.state==="loading"&&$o>pe?(pt(L,"Expected pending action"),q&&q.abort(),Ke(E.navigation.location,{matches:ri,loaderData:Zt,errors:hr,fetchers:new Map(E.fetchers)})):(Re({errors:hr,loaderData:pE(E.loaderData,Zt,ri,hr),fetchers:new Map(E.fetchers)}),H=!1)}async function cn(N,I,G,ne,Se,Pe,Ue,xe){let He=E.fetchers.get(N);qe(N,Ku(xe,He?He.data:void 0),{flushSync:Ue});let Be=new AbortController,$e=Ya(e.history,G,Be.signal);if(Pe){let Ae=await fn(Se,G,$e.signal);if(Ae.type==="aborted")return;if(Ae.type==="error"){let{error:yt}=Me(G,Ae);Oe(N,I,yt,{flushSync:Ue});return}else if(Ae.matches)Se=Ae.matches,ne=sc(Se,G);else{Oe(N,I,yr(404,{pathname:G}),{flushSync:Ue});return}}de.set(N,Be);let St=J,Rt=(await At("loader",$e,[ne],Se))[0];if(aa(Rt)&&(Rt=await Rk(Rt,$e.signal,!0)||Rt),de.get(N)===Be&&de.delete(N),!$e.signal.aborted){if(te.has(N)){qe(N,is(void 0));return}if(la(Rt))if(pe>St){qe(N,is(void 0));return}else{me.add(N),await Ut($e,Rt);return}if(Kr(Rt)){Oe(N,I,Rt.error);return}pt(!aa(Rt),"Unhandled fetcher deferred data"),qe(N,is(Rt.data))}}async function Ut(N,I,G){let{submission:ne,fetcherSubmission:Se,replace:Pe}=G===void 0?{}:G;I.response.headers.has("X-Remix-Revalidate")&&(H=!0);let Ue=I.response.headers.get("Location");pt(Ue,"Expected a Location header on the redirect Response"),Ue=cE(Ue,new URL(N.url),c);let xe=Vc(E.location,Ue,{_isRedirect:!0});if(n){let Rt=!1;if(I.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if($y.test(Ue)){const Ae=e.history.createURL(Ue);Rt=Ae.origin!==t.location.origin||vf(Ae.pathname,c)==null}if(Rt){Pe?t.location.replace(Ue):t.location.assign(Ue);return}}q=null;let He=Pe===!0?Dn.Replace:Dn.Push,{formMethod:Be,formAction:$e,formEncType:St}=E.navigation;!ne&&!Se&&Be&&$e&&St&&(ne=yE(E.navigation));let vt=ne||Se;if(Rq.has(I.response.status)&&vt&&Ko(vt.formMethod))await bt(He,xe,{submission:on({},vt,{formAction:Ue}),preventScrollReset:$});else{let Rt=nv(xe,ne);await bt(He,xe,{overrideNavigation:Rt,fetcherSubmission:Se,preventScrollReset:$})}}async function At(N,I,G,ne){try{let Se=await Bq(f,N,I,G,ne,i,o);return await Promise.all(Se.map((Pe,Ue)=>{if(Vq(Pe)){let xe=Pe.result;return{type:Wt.redirect,response:Fq(xe,I,G[Ue].route.id,ne,c,h.v7_relativeSplatPath)}}return $q(Pe)}))}catch(Se){return G.map(()=>({type:Wt.error,error:Se}))}}async function An(N,I,G,ne,Se){let[Pe,...Ue]=await Promise.all([G.length?At("loader",Se,G,I):[],...ne.map(xe=>{if(xe.matches&&xe.match&&xe.controller){let He=Ya(e.history,xe.path,xe.controller.signal);return At("loader",He,[xe.match],xe.matches).then(Be=>Be[0])}else return Promise.resolve({type:Wt.error,error:yr(404,{pathname:xe.path})})})]);return await Promise.all([vE(N,G,Pe,Pe.map(()=>Se.signal),!1,E.loaderData),vE(N,ne.map(xe=>xe.match),Ue,ne.map(xe=>xe.controller?xe.controller.signal:null),!0)]),{loaderResults:Pe,fetcherResults:Ue}}function nn(){H=!0,Q.push(...Ie()),U.forEach((N,I)=>{de.has(I)&&(le.push(I),Rn(I))})}function qe(N,I,G){G===void 0&&(G={}),E.fetchers.set(N,I),Re({fetchers:new Map(E.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function Oe(N,I,G,ne){ne===void 0&&(ne={});let Se=_l(E.matches,I);rr(N),Re({errors:{[Se.route.id]:G},fetchers:new Map(E.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function Xt(N){return h.v7_fetcherPersist&&(ae.set(N,(ae.get(N)||0)+1),te.has(N)&&te.delete(N)),E.fetchers.get(N)||kq}function rr(N){let I=E.fetchers.get(N);de.has(N)&&!(I&&I.state==="loading"&&re.has(N))&&Rn(N),U.delete(N),re.delete(N),me.delete(N),te.delete(N),E.fetchers.delete(N)}function qn(N){if(h.v7_fetcherPersist){let I=(ae.get(N)||0)-1;I<=0?(ae.delete(N),te.add(N)):ae.set(N,I)}else rr(N);Re({fetchers:new Map(E.fetchers)})}function Rn(N){let I=de.get(N);pt(I,"Expected fetch controller: "+N),I.abort(),de.delete(N)}function Io(N){for(let I of N){let G=Xt(I),ne=is(G.data);E.fetchers.set(I,ne)}}function W(){let N=[],I=!1;for(let G of me){let ne=E.fetchers.get(G);pt(ne,"Expected fetcher: "+G),ne.state==="loading"&&(me.delete(G),N.push(G),I=!0)}return Io(N),I}function F(N){let I=[];for(let[G,ne]of re)if(ne0}function ue(N,I){let G=E.blockers.get(N)||Gu;return fe.get(N)!==I&&fe.set(N,I),G}function _e(N){E.blockers.delete(N),fe.delete(N)}function be(N,I){let G=E.blockers.get(N)||Gu;pt(G.state==="unblocked"&&I.state==="blocked"||G.state==="blocked"&&I.state==="blocked"||G.state==="blocked"&&I.state==="proceeding"||G.state==="blocked"&&I.state==="unblocked"||G.state==="proceeding"&&I.state==="unblocked","Invalid blocker state transition: "+G.state+" -> "+I.state);let ne=new Map(E.blockers);ne.set(N,I),Re({blockers:ne})}function Ce(N){let{currentLocation:I,nextLocation:G,historyAction:ne}=N;if(fe.size===0)return;fe.size>1&&Yl(!1,"A router only supports one blocker at a time");let Se=Array.from(fe.entries()),[Pe,Ue]=Se[Se.length-1],xe=E.blockers.get(Pe);if(!(xe&&xe.state==="proceeding")&&Ue({currentLocation:I,nextLocation:G,historyAction:ne}))return Pe}function Fe(N){let I=yr(404,{pathname:N}),G=u||a,{matches:ne,route:Se}=mE(G);return Ie(),{notFoundMatches:ne,route:Se,error:I}}function Me(N,I){return{boundaryId:_l(I.partialMatches).route.id,error:yr(400,{type:"route-discovery",pathname:N,message:I.error!=null&&"message"in I.error?I.error:String(I.error)})}}function Ie(N){let I=[];return we.forEach((G,ne)=>{(!N||N(ne))&&(G.cancel(),I.push(ne),we.delete(ne))}),I}function Ge(N,I,G){if(v=N,A=I,y=G||null,!_&&E.navigation===tv){_=!0;let ne=zt(E.location,E.matches);ne!=null&&Re({restoreScrollPosition:ne})}return()=>{v=null,A=null,y=null}}function _t(N,I){return y&&y(N,I.map(ne=>rq(ne,E.loaderData)))||N.key}function kn(N,I){if(v&&A){let G=_t(N,I);v[G]=A()}}function zt(N,I){if(v){let G=_t(N,I),ne=v[G];if(typeof ne=="number")return ne}return null}function Tn(N,I,G){if(p)if(N){let ne=N[N.length-1].route;if(ne.path&&(ne.path==="*"||ne.path.endsWith("/*")))return{active:!0,matches:bp(I,G,c,!0)}}else return{active:!0,matches:bp(I,G,c,!0)||[]};return{active:!1,matches:null}}async function fn(N,I,G){let ne=N,Se=ne.length>0?ne[ne.length-1].route:null;for(;;){let Pe=u==null,Ue=u||a;try{await Nq(p,I,ne,Ue,i,o,ye,G)}catch($e){return{type:"error",error:$e,partialMatches:ne}}finally{Pe&&(a=[...a])}if(G.aborted)return{type:"aborted"};let xe=na(Ue,I,c),He=!1;if(xe){let $e=xe[xe.length-1].route;if($e.index)return{type:"success",matches:xe};if($e.path&&$e.path.length>0)if($e.path==="*")He=!0;else return{type:"success",matches:xe}}let Be=bp(Ue,I,c,!0);if(!Be||ne.map($e=>$e.route.id).join("-")===Be.map($e=>$e.route.id).join("-"))return{type:"success",matches:He?xe:null};if(ne=Be,Se=ne[ne.length-1].route,Se.path==="*")return{type:"success",matches:ne}}}function so(N){i={},u=Wc(N,o,void 0,i)}function or(N,I){let G=u==null;Ek(N,I,u||a,i,o),G&&(a=[...a],Re({}))}return T={get basename(){return c},get future(){return h},get state(){return E},get routes(){return a},get window(){return t},initialize:he,subscribe:Le,enableScrollRestoration:Ge,navigate:st,fetch:at,revalidate:ht,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Xt,deleteFetcher:qn,dispose:We,getBlocker:ue,deleteBlocker:_e,patchRoutes:or,_internalFetchControllers:de,_internalActiveDeferreds:we,_internalSetRoutes:so},T}function Pq(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function B2(e,t,n,r,o,i,a,u){let c,f;if(a){c=[];for(let h of t)if(c.push(h),h.route.id===a){f=h;break}}else c=t,f=t[t.length-1];let p=wq(o||".",yq(c,i),vf(e.pathname,n)||e.pathname,u==="path");return o==null&&(p.search=e.search,p.hash=e.hash),(o==null||o===""||o===".")&&f&&f.route.index&&!Fy(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:pa([n,p.pathname])),gf(p)}function sE(e,t,n,r){if(!r||!Pq(r))return{path:n};if(r.formMethod&&!qq(r.formMethod))return{path:n,error:yr(405,{method:r.formMethod})};let o=()=>({path:n,error:yr(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),u=Ck(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ko(a))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((x,v)=>{let[y,A]=v;return""+x+y+"="+A+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ko(a))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}pt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=I2(r.formData),f=r.formData;else if(r.body instanceof FormData)c=I2(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=fE(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=fE(c)}catch{return o()}let p={formMethod:a,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(Ko(p.formMethod))return{path:n,submission:p};let h=Ms(n);return t&&h.search&&Fy(h.search)&&c.append("index",""),h.search="?"+c,{path:gf(h),submission:p}}function Oq(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function aE(e,t,n,r,o,i,a,u,c,f,p,h,m,x,v,y){let A=y?Kr(y[1])?y[1].error:y[1].data:void 0,_=e.createURL(t.location),w=e.createURL(o),S=y&&Kr(y[1])?y[0]:void 0,k=S?Oq(n,S):n,T=y?y[1].statusCode:void 0,E=a&&T&&T>=400,L=k.filter((q,B)=>{let{route:Y}=q;if(Y.lazy)return!0;if(Y.loader==null)return!1;if(i)return typeof Y.loader!="function"||Y.loader.hydrate?!0:t.loaderData[Y.id]===void 0&&(!t.errors||t.errors[Y.id]===void 0);if(Lq(t.loaderData,t.matches[B],q)||c.some(H=>H===q.route.id))return!0;let se=t.matches[B],K=q;return lE(q,on({currentUrl:_,currentParams:se.params,nextUrl:w,nextParams:K.params},r,{actionResult:A,actionStatus:T,defaultShouldRevalidate:E?!1:u||_.pathname+_.search===w.pathname+w.search||_.search!==w.search||Sk(se,K)}))}),$=[];return h.forEach((q,B)=>{if(i||!n.some(Q=>Q.route.id===q.routeId)||p.has(B))return;let Y=na(x,q.path,v);if(!Y){$.push({key:B,routeId:q.routeId,path:q.path,matches:null,match:null,controller:null});return}let se=t.fetchers.get(B),K=sc(Y,q.path),H=!1;m.has(B)?H=!1:f.includes(B)?H=!0:se&&se.state!=="idle"&&se.data===void 0?H=u:H=lE(K,on({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:A,actionStatus:T,defaultShouldRevalidate:E?!1:u})),H&&$.push({key:B,routeId:q.routeId,path:q.path,matches:Y,match:K,controller:new AbortController})}),[L,$]}function Lq(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Sk(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function lE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Nq(e,t,n,r,o,i,a,u){let c=[t,...n.map(f=>f.route.id)].join("-");try{let f=a.get(c);f||(f=e({path:t,matches:n,patch:(p,h)=>{u.aborted||Ek(p,h,r,o,i)}}),a.set(c,f)),f&&jq(f)&&await f}finally{a.delete(c)}}function Ek(e,t,n,r,o){if(e){var i;let a=r[e];pt(a,"No route found to patch children into: routeId = "+e);let u=Wc(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...u):a.children=u}else{let a=Wc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function uE(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];pt(o,"No route found in manifest");let i={};for(let a in r){let c=o[a]!==void 0&&a!=="hasErrorBoundary";Yl(!c,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!tq.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,on({},t(o),{lazy:void 0}))}function Mq(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Bq(e,t,n,r,o,i,a,u){let c=r.reduce((h,m)=>h.add(m.route.id),new Set),f=new Set,p=await e({matches:o.map(h=>{let m=c.has(h.route.id);return on({},h,{shouldLoad:m,resolve:v=>(f.add(h.route.id),m?Iq(t,n,h,i,a,v,u):Promise.resolve({type:Wt.data,result:void 0}))})}),request:n,params:o[0].params,context:u});return o.forEach(h=>pt(f.has(h.route.id),'`match.resolve()` was not called for route id "'+h.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),p.filter((h,m)=>c.has(o[m].route.id))}async function Iq(e,t,n,r,o,i,a){let u,c,f=p=>{let h,m=new Promise((y,A)=>h=A);c=()=>h(),t.signal.addEventListener("abort",c);let x=y=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:a},...y!==void 0?[y]:[]),v;return i?v=i(y=>x(y)):v=(async()=>{try{return{type:"data",result:await x()}}catch(y){return{type:"error",result:y}}})(),Promise.race([v,m])};try{let p=n.route[e];if(n.route.lazy)if(p){let h,[m]=await Promise.all([f(p).catch(x=>{h=x}),uE(n.route,o,r)]);if(h!==void 0)throw h;u=m}else if(await uE(n.route,o,r),p=n.route[e],p)u=await f(p);else if(e==="action"){let h=new URL(t.url),m=h.pathname+h.search;throw yr(405,{method:t.method,pathname:m,routeId:n.route.id})}else return{type:Wt.data,result:void 0};else if(p)u=await f(p);else{let h=new URL(t.url),m=h.pathname+h.search;throw yr(404,{pathname:m})}pt(u.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){return{type:Wt.error,result:p}}finally{c&&t.signal.removeEventListener("abort",c)}return u}async function $q(e){let{result:t,type:n,status:r}=e;if(Ak(t)){let a;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?a=null:a=await t.json():a=await t.text()}catch(u){return{type:Wt.error,error:u}}return n===Wt.error?{type:Wt.error,error:new Iy(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:Wt.data,data:a,statusCode:t.status,headers:t.headers}}if(n===Wt.error)return{type:Wt.error,error:t,statusCode:d0(t)?t.status:r};if(Wq(t)){var o,i;return{type:Wt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Wt.data,data:t,statusCode:r}}function Fq(e,t,n,r,o,i){let a=e.headers.get("Location");if(pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!$y.test(a)){let u=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=B2(new URL(t.url),u,o,!0,a,i),e.headers.set("Location",a)}return e}function cE(e,t,n){if($y.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=vf(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Ya(e,t,n,r){let o=e.createURL(Ck(t)).toString(),i={signal:n};if(r&&Ko(r.formMethod)){let{formMethod:a,formEncType:u}=r;i.method=a.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(r.json)):u==="text/plain"?i.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?i.body=I2(r.formData):i.body=r.formData}return new Request(o,i)}function I2(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function fE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Uq(e,t,n,r,o,i){let a={},u=null,c,f=!1,p={},h=r&&Kr(r[1])?r[1].error:void 0;return n.forEach((m,x)=>{let v=t[x].route.id;if(pt(!la(m),"Cannot handle redirect results in processLoaderData"),Kr(m)){let y=m.error;h!==void 0&&(y=h,h=void 0),u=u||{};{let A=_l(e,v);u[A.route.id]==null&&(u[A.route.id]=y)}a[v]=void 0,f||(f=!0,c=d0(m.error)?m.error.status:500),m.headers&&(p[v]=m.headers)}else aa(m)?(o.set(v,m.deferredData),a[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers)):(a[v]=m.data,m.statusCode&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers))}),h!==void 0&&r&&(u={[r[0]]:h},a[r[0]]=void 0),{loaderData:a,errors:u,statusCode:c||200,loaderHeaders:p}}function dE(e,t,n,r,o,i,a,u){let{loaderData:c,errors:f}=Uq(t,n,r,o,u);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function mE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function yr(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,u="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(u="Bad Request",i==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: -`+a):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?c="defer() is not supported in actions":i==="invalid-body"&&(c="Unable to encode submission body")):e===403?(u="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(u="Not Found",c='No route matches URL "'+n+'"'):e===405&&(u="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new Iy(e||500,u,new Error(c),!0)}function gE(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(la(n))return{result:n,idx:t}}}function Ck(e){let t=typeof e=="string"?Ms(e):e;return gf(on({},t,{hash:""}))}function zq(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function jq(e){return typeof e=="object"&&e!=null&&"then"in e}function Vq(e){return Ak(e.result)&&Aq.has(e.result.status)}function aa(e){return e.type===Wt.deferred}function Kr(e){return e.type===Wt.error}function la(e){return(e&&e.type)===Wt.redirect}function Wq(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Ak(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function qq(e){return Cq.has(e.toLowerCase())}function Ko(e){return Sq.has(e.toLowerCase())}async function vE(e,t,n,r,o,i){for(let a=0;ah.route.id===c.route.id),p=f!=null&&!Sk(f,c)&&(i&&i[c.route.id])!==void 0;if(aa(u)&&(o||p)){let h=r[a];pt(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await Rk(u,h,o).then(m=>{m&&(n[a]=m||n[a])})}}}async function Rk(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Wt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Wt.error,error:o}}return{type:Wt.data,data:e.deferredData.data}}}function Fy(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sc(e,t){let n=typeof t=="string"?Ms(t).search:t.search;if(e[e.length-1].route.index&&Fy(n||""))return e[e.length-1];let r=xk(e);return r[r.length-1]}function yE(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function nv(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Hq(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ku(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Gq(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function is(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Kq(e,t){try{let n=e.sessionStorage.getItem(_k);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Yq(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(_k,JSON.stringify(n))}catch(r){Yl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Yl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function XW(){return Math.random().toString(36).substr(2,8)}function nE(e,t){return{usr:e.state,key:e.key,idx:t}}function Vc(e,t,n,r){return n===void 0&&(n=null),on({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ms(t):t,{state:n,key:t&&t.key||r||XW()})}function gf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZW(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=Dn.Pop,c=null,f=p();f==null&&(f=0,a.replaceState(on({},a.state,{idx:f}),""));function p(){return(a.state||{idx:null}).idx}function h(){u=Dn.Pop;let A=p(),_=A==null?null:A-f;f=A,c&&c({action:u,location:y.location,delta:_})}function m(A,_){u=Dn.Push;let w=Vc(y.location,A,_);f=p()+1;let S=nE(w,f),k=y.createHref(w);try{a.pushState(S,"",k)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(k)}i&&c&&c({action:u,location:y.location,delta:1})}function x(A,_){u=Dn.Replace;let w=Vc(y.location,A,_);f=p();let S=nE(w,f),k=y.createHref(w);a.replaceState(S,"",k),i&&c&&c({action:u,location:y.location,delta:0})}function v(A){let _=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof A=="string"?A:gf(A);return w=w.replace(/ $/,"%20"),pt(_,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,_)}let y={get action(){return u},get location(){return e(o,a)},listen(A){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(tE,h),c=A,()=>{o.removeEventListener(tE,h),c=null}},createHref(A){return t(o,A)},createURL:v,encodeLocation(A){let _=v(A);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:m,replace:x,go(A){return a.go(A)}};return y}var Wt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wt||(Wt={}));const QW=new Set(["lazy","caseSensitive","path","id","index","children"]);function JW(e){return e.index===!0}function Wc(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],u=typeof o.id=="string"?o.id:a.join("-");if(pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),pt(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),JW(o)){let c=on({},o,t(o),{id:u});return r[u]=c,c}else{let c=on({},o,t(o),{id:u,children:void 0});return r[u]=c,o.children&&(c.children=Wc(o.children,t,a,r)),c}})}function ra(e,t,n){return n===void 0&&(n="/"),bp(e,t,n,!1)}function bp(e,t,n,r){let o=typeof t=="string"?Ms(t):t,i=vf(o.pathname||"/",n);if(i==null)return null;let a=gk(e);tq(a);let u=null;for(let c=0;u==null&&c{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(pt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=ha([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),gk(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:lq(f,i.index),routesMeta:p})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let c of vk(i.path))o(i,a,c)}),t}function vk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=vk(r.join("/")),u=[];return u.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&u.push(...a),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function tq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nq=/^:[\w-]+$/,rq=3,oq=2,iq=1,sq=10,aq=-2,rE=e=>e==="*";function lq(e,t){let n=e.split("/"),r=n.length;return n.some(rE)&&(r+=aq),t&&(r+=oq),n.filter(o=>!rE(o)).reduce((o,i)=>o+(nq.test(i)?rq:i===""?iq:sq),r)}function uq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function cq(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let u=0;u{let{paramName:m,isOptional:x}=p;if(m==="*"){let y=u[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[h];return x&&!v?f[m]=void 0:f[m]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function fq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function vf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pq(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ms(e):e;return{pathname:n?n.startsWith("/")?n:hq(n,t):t,search:yq(r),hash:wq(o)}}function hq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ev(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function yk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function mq(e,t){let n=yk(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function gq(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ms(e):(o=on({},e),pt(!o.pathname||!o.pathname.includes("?"),ev("?","pathname","search",o)),pt(!o.pathname||!o.pathname.includes("#"),ev("#","pathname","hash",o)),pt(!o.search||!o.search.includes("#"),ev("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,u;if(a==null)u=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),h-=1;o.pathname=m.join("/")}u=h>=0?t[h]:"/"}let c=pq(o,u),f=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const ha=e=>e.join("/").replace(/\/\/+/g,"/"),vq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class By{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function d0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wk=["post","put","patch","delete"],xq=new Set(wk),bq=["get",...wk],_q=new Set(bq),Sq=new Set([301,302,303,307,308]),Eq=new Set([307,308]),tv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Cq={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Iy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Aq=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),xk="remix-router-transitions";function Rq(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;o=I=>({hasErrorBoundary:N(I)})}else o=Aq;let i={},a=Wc(e.routes,o,void 0,i),u,c=e.basename||"/",f=e.unstable_dataStrategy||Oq,p=e.unstable_patchRoutesOnMiss,h=on({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,x=new Set,v=null,y=null,A=null,_=e.hydrationData!=null,w=ra(a,e.history.location,c),S=null;if(w==null&&!p){let N=yr(404,{pathname:e.history.location.pathname}),{matches:I,route:G}=hE(a);w=I,S={[G.id]:N}}w&&p&&!e.hydrationData&&Tn(w,a,e.history.location.pathname).active&&(w=null);let k;if(!w)k=!1,w=[];else if(w.some(N=>N.route.lazy))k=!1;else if(!w.some(N=>N.route.loader))k=!0;else if(h.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,I=e.hydrationData?e.hydrationData.errors:null,G=ne=>ne.route.loader?typeof ne.route.loader=="function"&&ne.route.loader.hydrate===!0?!1:N&&N[ne.route.id]!==void 0||I&&I[ne.route.id]!==void 0:!0;if(I){let ne=w.findIndex(Se=>I[Se.route.id]!==void 0);k=w.slice(0,ne+1).every(G)}else k=w.every(G)}else k=e.hydrationData!=null;let T,E={historyAction:e.history.action,location:e.history.location,matches:w,initialized:k,navigation:tv,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},L=Dn.Pop,$=!1,q,B=!1,Y=new Map,se=null,K=!1,H=!1,Q=[],le=[],de=new Map,J=0,pe=-1,re=new Map,me=new Set,U=new Map,ae=new Map,te=new Set,we=new Map,fe=new Map,ye=new Map,ge=!1;function he(){if(m=e.history.listen(N=>{let{action:I,location:G,delta:ne}=N;if(ge){ge=!1;return}Yl(fe.size===0||ne!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Se=Ce({currentLocation:E.location,nextLocation:G,historyAction:I});if(Se&&ne!=null){ge=!0,e.history.go(ne*-1),be(Se,{state:"blocked",location:G,proceed(){be(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),e.history.go(ne)},reset(){let Pe=new Map(E.blockers);Pe.set(Se,Gu),Re({blockers:Pe})}});return}return bt(I,G)}),n){qq(t,Y);let N=()=>Hq(t,Y);t.addEventListener("pagehide",N),se=()=>t.removeEventListener("pagehide",N)}return E.initialized||bt(Dn.Pop,E.location,{initialHydration:!0}),T}function We(){m&&m(),se&&se(),x.clear(),q&&q.abort(),E.fetchers.forEach((N,I)=>rr(I)),E.blockers.forEach((N,I)=>_e(I))}function Le(N){return x.add(N),()=>x.delete(N)}function Re(N,I){I===void 0&&(I={}),E=on({},E,N);let G=[],ne=[];h.v7_fetcherPersist&&E.fetchers.forEach((Se,Pe)=>{Se.state==="idle"&&(te.has(Pe)?ne.push(Pe):G.push(Pe))}),[...x].forEach(Se=>Se(E,{deletedFetchers:ne,unstable_viewTransitionOpts:I.viewTransitionOpts,unstable_flushSync:I.flushSync===!0})),h.v7_fetcherPersist&&(G.forEach(Se=>E.fetchers.delete(Se)),ne.forEach(Se=>rr(Se)))}function Ke(N,I,G){var ne,Se;let{flushSync:Pe}=G===void 0?{}:G,Ue=E.actionData!=null&&E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&E.navigation.state==="loading"&&((ne=N.state)==null?void 0:ne._isRedirect)!==!0,xe;I.actionData?Object.keys(I.actionData).length>0?xe=I.actionData:xe=null:Ue?xe=E.actionData:xe=null;let He=I.loaderData?dE(E.loaderData,I.loaderData,I.matches||[],I.errors):E.loaderData,Be=E.blockers;Be.size>0&&(Be=new Map(Be),Be.forEach((vt,Rt)=>Be.set(Rt,Gu)));let $e=$===!0||E.navigation.formMethod!=null&&Ko(E.navigation.formMethod)&&((Se=N.state)==null?void 0:Se._isRedirect)!==!0;u&&(a=u,u=void 0),K||L===Dn.Pop||(L===Dn.Push?e.history.push(N,N.state):L===Dn.Replace&&e.history.replace(N,N.state));let St;if(L===Dn.Pop){let vt=Y.get(E.location.pathname);vt&&vt.has(N.pathname)?St={currentLocation:E.location,nextLocation:N}:Y.has(N.pathname)&&(St={currentLocation:N,nextLocation:E.location})}else if(B){let vt=Y.get(E.location.pathname);vt?vt.add(N.pathname):(vt=new Set([N.pathname]),Y.set(E.location.pathname,vt)),St={currentLocation:E.location,nextLocation:N}}Re(on({},I,{actionData:xe,loaderData:He,historyAction:L,location:N,initialized:!0,navigation:tv,revalidation:"idle",restoreScrollPosition:zt(N,I.matches||E.matches),preventScrollReset:$e,blockers:Be}),{viewTransitionOpts:St,flushSync:Pe===!0}),L=Dn.Pop,$=!1,B=!1,K=!1,H=!1,Q=[],le=[]}async function st(N,I){if(typeof N=="number"){e.history.go(N);return}let G=M2(E.location,E.matches,c,h.v7_prependBasename,N,h.v7_relativeSplatPath,I==null?void 0:I.fromRouteId,I==null?void 0:I.relative),{path:ne,submission:Se,error:Pe}=iE(h.v7_normalizeFormMethod,!1,G,I),Ue=E.location,xe=Vc(E.location,ne,I&&I.state);xe=on({},xe,e.history.encodeLocation(xe));let He=I&&I.replace!=null?I.replace:void 0,Be=Dn.Push;He===!0?Be=Dn.Replace:He===!1||Se!=null&&Ko(Se.formMethod)&&Se.formAction===E.location.pathname+E.location.search&&(Be=Dn.Replace);let $e=I&&"preventScrollReset"in I?I.preventScrollReset===!0:void 0,St=(I&&I.unstable_flushSync)===!0,vt=Ce({currentLocation:Ue,nextLocation:xe,historyAction:Be});if(vt){be(vt,{state:"blocked",location:xe,proceed(){be(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),st(N,I)},reset(){let Rt=new Map(E.blockers);Rt.set(vt,Gu),Re({blockers:Rt})}});return}return await bt(Be,xe,{submission:Se,pendingError:Pe,preventScrollReset:$e,replace:I&&I.replace,enableViewTransition:I&&I.unstable_viewTransition,flushSync:St})}function ht(){if(nn(),Re({revalidation:"loading"}),E.navigation.state!=="submitting"){if(E.navigation.state==="idle"){bt(E.historyAction,E.location,{startUninterruptedRevalidation:!0});return}bt(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation})}}async function bt(N,I,G){q&&q.abort(),q=null,L=N,K=(G&&G.startUninterruptedRevalidation)===!0,kn(E.location,E.matches),$=(G&&G.preventScrollReset)===!0,B=(G&&G.enableViewTransition)===!0;let ne=u||a,Se=G&&G.overrideNavigation,Pe=ra(ne,I,c),Ue=(G&&G.flushSync)===!0,xe=Tn(Pe,ne,I.pathname);if(xe.active&&xe.matches&&(Pe=xe.matches),!Pe){let{error:Ae,notFoundMatches:yt,route:dn}=Fe(I.pathname);Ke(I,{matches:yt,loaderData:{},errors:{[dn.id]:Ae}},{flushSync:Ue});return}if(E.initialized&&!H&&$q(E.location,I)&&!(G&&G.submission&&Ko(G.submission.formMethod))){Ke(I,{matches:Pe},{flushSync:Ue});return}q=new AbortController;let He=Xa(e.history,I,q.signal,G&&G.submission),Be;if(G&&G.pendingError)Be=[_l(Pe).route.id,{type:Wt.error,error:G.pendingError}];else if(G&&G.submission&&Ko(G.submission.formMethod)){let Ae=await mt(He,I,G.submission,Pe,xe.active,{replace:G.replace,flushSync:Ue});if(Ae.shortCircuited)return;if(Ae.pendingActionResult){let[yt,dn]=Ae.pendingActionResult;if(Kr(dn)&&d0(dn.error)&&dn.error.status===404){q=null,Ke(I,{matches:Ae.matches,loaderData:{},errors:{[yt]:dn.error}});return}}Pe=Ae.matches||Pe,Be=Ae.pendingActionResult,Se=nv(I,G.submission),Ue=!1,xe.active=!1,He=Xa(e.history,He.url,He.signal)}let{shortCircuited:$e,matches:St,loaderData:vt,errors:Rt}=await Mn(He,I,Pe,xe.active,Se,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,Ue,Be);$e||(q=null,Ke(I,on({matches:St||Pe},pE(Be),{loaderData:vt,errors:Rt})))}async function mt(N,I,G,ne,Se,Pe){Pe===void 0&&(Pe={}),nn();let Ue=Vq(I,G);if(Re({navigation:Ue},{flushSync:Pe.flushSync===!0}),Se){let Be=await fn(ne,I.pathname,N.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let{boundaryId:$e,error:St}=Me(I.pathname,Be);return{matches:Be.partialMatches,pendingActionResult:[$e,{type:Wt.error,error:St}]}}else if(Be.matches)ne=Be.matches;else{let{notFoundMatches:$e,error:St,route:vt}=Fe(I.pathname);return{matches:$e,pendingActionResult:[vt.id,{type:Wt.error,error:St}]}}}let xe,He=sc(ne,I);if(!He.route.action&&!He.route.lazy)xe={type:Wt.error,error:yr(405,{method:N.method,pathname:I.pathname,routeId:He.route.id})};else if(xe=(await At("action",N,[He],ne))[0],N.signal.aborted)return{shortCircuited:!0};if(ua(xe)){let Be;return Pe&&Pe.replace!=null?Be=Pe.replace:Be=uE(xe.response.headers.get("Location"),new URL(N.url),c)===E.location.pathname+E.location.search,await Ut(N,xe,{submission:G,replace:Be}),{shortCircuited:!0}}if(la(xe))throw yr(400,{type:"defer-action"});if(Kr(xe)){let Be=_l(ne,He.route.id);return(Pe&&Pe.replace)!==!0&&(L=Dn.Push),{matches:ne,pendingActionResult:[Be.route.id,xe]}}return{matches:ne,pendingActionResult:[He.route.id,xe]}}async function Mn(N,I,G,ne,Se,Pe,Ue,xe,He,Be,$e){let St=Se||nv(I,Pe),vt=Pe||Ue||vE(St),Rt=!K&&(!h.v7_partialHydration||!He);if(ne){if(Rt){let Zt=pr($e);Re(on({navigation:St},Zt!==void 0?{actionData:Zt}:{}),{flushSync:Be})}let Qe=await fn(G,I.pathname,N.signal);if(Qe.type==="aborted")return{shortCircuited:!0};if(Qe.type==="error"){let{boundaryId:Zt,error:hr}=Me(I.pathname,Qe);return{matches:Qe.partialMatches,loaderData:{},errors:{[Zt]:hr}}}else if(Qe.matches)G=Qe.matches;else{let{error:Zt,notFoundMatches:hr,route:jt}=Fe(I.pathname);return{matches:hr,loaderData:{},errors:{[jt.id]:Zt}}}}let Ae=u||a,[yt,dn]=sE(e.history,E,G,vt,I,h.v7_partialHydration&&He===!0,h.v7_skipActionErrorRevalidation,H,Q,le,te,U,me,Ae,c,$e);if(Ie(Qe=>!(G&&G.some(Zt=>Zt.route.id===Qe))||yt&&yt.some(Zt=>Zt.route.id===Qe)),pe=++J,yt.length===0&&dn.length===0){let Qe=W();return Ke(I,on({matches:G,loaderData:{},errors:$e&&Kr($e[1])?{[$e[0]]:$e[1].error}:null},pE($e),Qe?{fetchers:new Map(E.fetchers)}:{}),{flushSync:Be}),{shortCircuited:!0}}if(Rt){let Qe={};if(!ne){Qe.navigation=St;let Zt=pr($e);Zt!==void 0&&(Qe.actionData=Zt)}dn.length>0&&(Qe.fetchers=Ct(dn)),Re(Qe,{flushSync:Be})}dn.forEach(Qe=>{de.has(Qe.key)&&Rn(Qe.key),Qe.controller&&de.set(Qe.key,Qe.controller)});let ni=()=>dn.forEach(Qe=>Rn(Qe.key));q&&q.signal.addEventListener("abort",ni);let{loaderResults:ri,fetcherResults:$o}=await An(E.matches,G,yt,dn,N);if(N.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",ni),dn.forEach(Qe=>de.delete(Qe.key));let Hi=mE([...ri,...$o]);if(Hi){if(Hi.idx>=yt.length){let Qe=dn[Hi.idx-yt.length].key;me.add(Qe)}return await Ut(N,Hi.result,{replace:xe}),{shortCircuited:!0}}let{loaderData:Gi,errors:ao}=fE(E,G,yt,ri,$e,dn,$o,we);we.forEach((Qe,Zt)=>{Qe.subscribe(hr=>{(hr||Qe.done)&&we.delete(Zt)})}),h.v7_partialHydration&&He&&E.errors&&Object.entries(E.errors).filter(Qe=>{let[Zt]=Qe;return!yt.some(hr=>hr.route.id===Zt)}).forEach(Qe=>{let[Zt,hr]=Qe;ao=Object.assign(ao||{},{[Zt]:hr})});let $s=W(),Fs=F(pe),Us=$s||Fs||dn.length>0;return on({matches:G,loaderData:Gi,errors:ao},Us?{fetchers:new Map(E.fetchers)}:{})}function pr(N){if(N&&!Kr(N[1]))return{[N[0]]:N[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function Ct(N){return N.forEach(I=>{let G=E.fetchers.get(I.key),ne=Ku(void 0,G?G.data:void 0);E.fetchers.set(I.key,ne)}),new Map(E.fetchers)}function at(N,I,G,ne){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");de.has(N)&&Rn(N);let Se=(ne&&ne.unstable_flushSync)===!0,Pe=u||a,Ue=M2(E.location,E.matches,c,h.v7_prependBasename,G,h.v7_relativeSplatPath,I,ne==null?void 0:ne.relative),xe=ra(Pe,Ue,c),He=Tn(xe,Pe,Ue);if(He.active&&He.matches&&(xe=He.matches),!xe){Oe(N,I,yr(404,{pathname:Ue}),{flushSync:Se});return}let{path:Be,submission:$e,error:St}=iE(h.v7_normalizeFormMethod,!0,Ue,ne);if(St){Oe(N,I,St,{flushSync:Se});return}let vt=sc(xe,Be);if($=(ne&&ne.preventScrollReset)===!0,$e&&Ko($e.formMethod)){un(N,I,Be,vt,xe,He.active,Se,$e);return}U.set(N,{routeId:I,path:Be}),cn(N,I,Be,vt,xe,He.active,Se,$e)}async function un(N,I,G,ne,Se,Pe,Ue,xe){nn(),U.delete(N);function He(jt){if(!jt.route.action&&!jt.route.lazy){let lo=yr(405,{method:xe.formMethod,pathname:G,routeId:I});return Oe(N,I,lo,{flushSync:Ue}),!0}return!1}if(!Pe&&He(ne))return;let Be=E.fetchers.get(N);qe(N,Wq(xe,Be),{flushSync:Ue});let $e=new AbortController,St=Xa(e.history,G,$e.signal,xe);if(Pe){let jt=await fn(Se,G,St.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:lo}=Me(G,jt);Oe(N,I,lo,{flushSync:Ue});return}else if(jt.matches){if(Se=jt.matches,ne=sc(Se,G),He(ne))return}else{Oe(N,I,yr(404,{pathname:G}),{flushSync:Ue});return}}de.set(N,$e);let vt=J,Ae=(await At("action",St,[ne],Se))[0];if(St.signal.aborted){de.get(N)===$e&&de.delete(N);return}if(h.v7_fetcherPersist&&te.has(N)){if(ua(Ae)||Kr(Ae)){qe(N,ss(void 0));return}}else{if(ua(Ae))if(de.delete(N),pe>vt){qe(N,ss(void 0));return}else return me.add(N),qe(N,Ku(xe)),Ut(St,Ae,{fetcherSubmission:xe});if(Kr(Ae)){Oe(N,I,Ae.error);return}}if(la(Ae))throw yr(400,{type:"defer-action"});let yt=E.navigation.location||E.location,dn=Xa(e.history,yt,$e.signal),ni=u||a,ri=E.navigation.state!=="idle"?ra(ni,E.navigation.location,c):E.matches;pt(ri,"Didn't find any matches after fetcher action");let $o=++J;re.set(N,$o);let Hi=Ku(xe,Ae.data);E.fetchers.set(N,Hi);let[Gi,ao]=sE(e.history,E,ri,xe,yt,!1,h.v7_skipActionErrorRevalidation,H,Q,le,te,U,me,ni,c,[ne.route.id,Ae]);ao.filter(jt=>jt.key!==N).forEach(jt=>{let lo=jt.key,gu=E.fetchers.get(lo),Tf=Ku(void 0,gu?gu.data:void 0);E.fetchers.set(lo,Tf),de.has(lo)&&Rn(lo),jt.controller&&de.set(lo,jt.controller)}),Re({fetchers:new Map(E.fetchers)});let $s=()=>ao.forEach(jt=>Rn(jt.key));$e.signal.addEventListener("abort",$s);let{loaderResults:Fs,fetcherResults:Us}=await An(E.matches,ri,Gi,ao,dn);if($e.signal.aborted)return;$e.signal.removeEventListener("abort",$s),re.delete(N),de.delete(N),ao.forEach(jt=>de.delete(jt.key));let Qe=mE([...Fs,...Us]);if(Qe){if(Qe.idx>=Gi.length){let jt=ao[Qe.idx-Gi.length].key;me.add(jt)}return Ut(dn,Qe.result)}let{loaderData:Zt,errors:hr}=fE(E,E.matches,Gi,Fs,void 0,ao,Us,we);if(E.fetchers.has(N)){let jt=ss(Ae.data);E.fetchers.set(N,jt)}F($o),E.navigation.state==="loading"&&$o>pe?(pt(L,"Expected pending action"),q&&q.abort(),Ke(E.navigation.location,{matches:ri,loaderData:Zt,errors:hr,fetchers:new Map(E.fetchers)})):(Re({errors:hr,loaderData:dE(E.loaderData,Zt,ri,hr),fetchers:new Map(E.fetchers)}),H=!1)}async function cn(N,I,G,ne,Se,Pe,Ue,xe){let He=E.fetchers.get(N);qe(N,Ku(xe,He?He.data:void 0),{flushSync:Ue});let Be=new AbortController,$e=Xa(e.history,G,Be.signal);if(Pe){let Ae=await fn(Se,G,$e.signal);if(Ae.type==="aborted")return;if(Ae.type==="error"){let{error:yt}=Me(G,Ae);Oe(N,I,yt,{flushSync:Ue});return}else if(Ae.matches)Se=Ae.matches,ne=sc(Se,G);else{Oe(N,I,yr(404,{pathname:G}),{flushSync:Ue});return}}de.set(N,Be);let St=J,Rt=(await At("loader",$e,[ne],Se))[0];if(la(Rt)&&(Rt=await Ck(Rt,$e.signal,!0)||Rt),de.get(N)===Be&&de.delete(N),!$e.signal.aborted){if(te.has(N)){qe(N,ss(void 0));return}if(ua(Rt))if(pe>St){qe(N,ss(void 0));return}else{me.add(N),await Ut($e,Rt);return}if(Kr(Rt)){Oe(N,I,Rt.error);return}pt(!la(Rt),"Unhandled fetcher deferred data"),qe(N,ss(Rt.data))}}async function Ut(N,I,G){let{submission:ne,fetcherSubmission:Se,replace:Pe}=G===void 0?{}:G;I.response.headers.has("X-Remix-Revalidate")&&(H=!0);let Ue=I.response.headers.get("Location");pt(Ue,"Expected a Location header on the redirect Response"),Ue=uE(Ue,new URL(N.url),c);let xe=Vc(E.location,Ue,{_isRedirect:!0});if(n){let Rt=!1;if(I.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(Iy.test(Ue)){const Ae=e.history.createURL(Ue);Rt=Ae.origin!==t.location.origin||vf(Ae.pathname,c)==null}if(Rt){Pe?t.location.replace(Ue):t.location.assign(Ue);return}}q=null;let He=Pe===!0?Dn.Replace:Dn.Push,{formMethod:Be,formAction:$e,formEncType:St}=E.navigation;!ne&&!Se&&Be&&$e&&St&&(ne=vE(E.navigation));let vt=ne||Se;if(Eq.has(I.response.status)&&vt&&Ko(vt.formMethod))await bt(He,xe,{submission:on({},vt,{formAction:Ue}),preventScrollReset:$});else{let Rt=nv(xe,ne);await bt(He,xe,{overrideNavigation:Rt,fetcherSubmission:Se,preventScrollReset:$})}}async function At(N,I,G,ne){try{let Se=await Lq(f,N,I,G,ne,i,o);return await Promise.all(Se.map((Pe,Ue)=>{if(Uq(Pe)){let xe=Pe.result;return{type:Wt.redirect,response:Bq(xe,I,G[Ue].route.id,ne,c,h.v7_relativeSplatPath)}}return Mq(Pe)}))}catch(Se){return G.map(()=>({type:Wt.error,error:Se}))}}async function An(N,I,G,ne,Se){let[Pe,...Ue]=await Promise.all([G.length?At("loader",Se,G,I):[],...ne.map(xe=>{if(xe.matches&&xe.match&&xe.controller){let He=Xa(e.history,xe.path,xe.controller.signal);return At("loader",He,[xe.match],xe.matches).then(Be=>Be[0])}else return Promise.resolve({type:Wt.error,error:yr(404,{pathname:xe.path})})})]);return await Promise.all([gE(N,G,Pe,Pe.map(()=>Se.signal),!1,E.loaderData),gE(N,ne.map(xe=>xe.match),Ue,ne.map(xe=>xe.controller?xe.controller.signal:null),!0)]),{loaderResults:Pe,fetcherResults:Ue}}function nn(){H=!0,Q.push(...Ie()),U.forEach((N,I)=>{de.has(I)&&(le.push(I),Rn(I))})}function qe(N,I,G){G===void 0&&(G={}),E.fetchers.set(N,I),Re({fetchers:new Map(E.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function Oe(N,I,G,ne){ne===void 0&&(ne={});let Se=_l(E.matches,I);rr(N),Re({errors:{[Se.route.id]:G},fetchers:new Map(E.fetchers)},{flushSync:(ne&&ne.flushSync)===!0})}function Xt(N){return h.v7_fetcherPersist&&(ae.set(N,(ae.get(N)||0)+1),te.has(N)&&te.delete(N)),E.fetchers.get(N)||Cq}function rr(N){let I=E.fetchers.get(N);de.has(N)&&!(I&&I.state==="loading"&&re.has(N))&&Rn(N),U.delete(N),re.delete(N),me.delete(N),te.delete(N),E.fetchers.delete(N)}function Hn(N){if(h.v7_fetcherPersist){let I=(ae.get(N)||0)-1;I<=0?(ae.delete(N),te.add(N)):ae.set(N,I)}else rr(N);Re({fetchers:new Map(E.fetchers)})}function Rn(N){let I=de.get(N);pt(I,"Expected fetch controller: "+N),I.abort(),de.delete(N)}function Io(N){for(let I of N){let G=Xt(I),ne=ss(G.data);E.fetchers.set(I,ne)}}function W(){let N=[],I=!1;for(let G of me){let ne=E.fetchers.get(G);pt(ne,"Expected fetcher: "+G),ne.state==="loading"&&(me.delete(G),N.push(G),I=!0)}return Io(N),I}function F(N){let I=[];for(let[G,ne]of re)if(ne0}function ue(N,I){let G=E.blockers.get(N)||Gu;return fe.get(N)!==I&&fe.set(N,I),G}function _e(N){E.blockers.delete(N),fe.delete(N)}function be(N,I){let G=E.blockers.get(N)||Gu;pt(G.state==="unblocked"&&I.state==="blocked"||G.state==="blocked"&&I.state==="blocked"||G.state==="blocked"&&I.state==="proceeding"||G.state==="blocked"&&I.state==="unblocked"||G.state==="proceeding"&&I.state==="unblocked","Invalid blocker state transition: "+G.state+" -> "+I.state);let ne=new Map(E.blockers);ne.set(N,I),Re({blockers:ne})}function Ce(N){let{currentLocation:I,nextLocation:G,historyAction:ne}=N;if(fe.size===0)return;fe.size>1&&Yl(!1,"A router only supports one blocker at a time");let Se=Array.from(fe.entries()),[Pe,Ue]=Se[Se.length-1],xe=E.blockers.get(Pe);if(!(xe&&xe.state==="proceeding")&&Ue({currentLocation:I,nextLocation:G,historyAction:ne}))return Pe}function Fe(N){let I=yr(404,{pathname:N}),G=u||a,{matches:ne,route:Se}=hE(G);return Ie(),{notFoundMatches:ne,route:Se,error:I}}function Me(N,I){return{boundaryId:_l(I.partialMatches).route.id,error:yr(400,{type:"route-discovery",pathname:N,message:I.error!=null&&"message"in I.error?I.error:String(I.error)})}}function Ie(N){let I=[];return we.forEach((G,ne)=>{(!N||N(ne))&&(G.cancel(),I.push(ne),we.delete(ne))}),I}function Ge(N,I,G){if(v=N,A=I,y=G||null,!_&&E.navigation===tv){_=!0;let ne=zt(E.location,E.matches);ne!=null&&Re({restoreScrollPosition:ne})}return()=>{v=null,A=null,y=null}}function _t(N,I){return y&&y(N,I.map(ne=>eq(ne,E.loaderData)))||N.key}function kn(N,I){if(v&&A){let G=_t(N,I);v[G]=A()}}function zt(N,I){if(v){let G=_t(N,I),ne=v[G];if(typeof ne=="number")return ne}return null}function Tn(N,I,G){if(p)if(N){let ne=N[N.length-1].route;if(ne.path&&(ne.path==="*"||ne.path.endsWith("/*")))return{active:!0,matches:bp(I,G,c,!0)}}else return{active:!0,matches:bp(I,G,c,!0)||[]};return{active:!1,matches:null}}async function fn(N,I,G){let ne=N,Se=ne.length>0?ne[ne.length-1].route:null;for(;;){let Pe=u==null,Ue=u||a;try{await Pq(p,I,ne,Ue,i,o,ye,G)}catch($e){return{type:"error",error:$e,partialMatches:ne}}finally{Pe&&(a=[...a])}if(G.aborted)return{type:"aborted"};let xe=ra(Ue,I,c),He=!1;if(xe){let $e=xe[xe.length-1].route;if($e.index)return{type:"success",matches:xe};if($e.path&&$e.path.length>0)if($e.path==="*")He=!0;else return{type:"success",matches:xe}}let Be=bp(Ue,I,c,!0);if(!Be||ne.map($e=>$e.route.id).join("-")===Be.map($e=>$e.route.id).join("-"))return{type:"success",matches:He?xe:null};if(ne=Be,Se=ne[ne.length-1].route,Se.path==="*")return{type:"success",matches:ne}}}function so(N){i={},u=Wc(N,o,void 0,i)}function or(N,I){let G=u==null;_k(N,I,u||a,i,o),G&&(a=[...a],Re({}))}return T={get basename(){return c},get future(){return h},get state(){return E},get routes(){return a},get window(){return t},initialize:he,subscribe:Le,enableScrollRestoration:Ge,navigate:st,fetch:at,revalidate:ht,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:Xt,deleteFetcher:Hn,dispose:We,getBlocker:ue,deleteBlocker:_e,patchRoutes:or,_internalFetchControllers:de,_internalActiveDeferreds:we,_internalSetRoutes:so},T}function kq(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function M2(e,t,n,r,o,i,a,u){let c,f;if(a){c=[];for(let h of t)if(c.push(h),h.route.id===a){f=h;break}}else c=t,f=t[t.length-1];let p=gq(o||".",mq(c,i),vf(e.pathname,n)||e.pathname,u==="path");return o==null&&(p.search=e.search,p.hash=e.hash),(o==null||o===""||o===".")&&f&&f.route.index&&!$y(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:ha([n,p.pathname])),gf(p)}function iE(e,t,n,r){if(!r||!kq(r))return{path:n};if(r.formMethod&&!jq(r.formMethod))return{path:n,error:yr(405,{method:r.formMethod})};let o=()=>({path:n,error:yr(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),u=Sk(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ko(a))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((x,v)=>{let[y,A]=v;return""+x+y+"="+A+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ko(a))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:u,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}pt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=B2(r.formData),f=r.formData;else if(r.body instanceof FormData)c=B2(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=cE(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=cE(c)}catch{return o()}let p={formMethod:a,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(Ko(p.formMethod))return{path:n,submission:p};let h=Ms(n);return t&&h.search&&$y(h.search)&&c.append("index",""),h.search="?"+c,{path:gf(h),submission:p}}function Tq(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function sE(e,t,n,r,o,i,a,u,c,f,p,h,m,x,v,y){let A=y?Kr(y[1])?y[1].error:y[1].data:void 0,_=e.createURL(t.location),w=e.createURL(o),S=y&&Kr(y[1])?y[0]:void 0,k=S?Tq(n,S):n,T=y?y[1].statusCode:void 0,E=a&&T&&T>=400,L=k.filter((q,B)=>{let{route:Y}=q;if(Y.lazy)return!0;if(Y.loader==null)return!1;if(i)return typeof Y.loader!="function"||Y.loader.hydrate?!0:t.loaderData[Y.id]===void 0&&(!t.errors||t.errors[Y.id]===void 0);if(Dq(t.loaderData,t.matches[B],q)||c.some(H=>H===q.route.id))return!0;let se=t.matches[B],K=q;return aE(q,on({currentUrl:_,currentParams:se.params,nextUrl:w,nextParams:K.params},r,{actionResult:A,actionStatus:T,defaultShouldRevalidate:E?!1:u||_.pathname+_.search===w.pathname+w.search||_.search!==w.search||bk(se,K)}))}),$=[];return h.forEach((q,B)=>{if(i||!n.some(Q=>Q.route.id===q.routeId)||p.has(B))return;let Y=ra(x,q.path,v);if(!Y){$.push({key:B,routeId:q.routeId,path:q.path,matches:null,match:null,controller:null});return}let se=t.fetchers.get(B),K=sc(Y,q.path),H=!1;m.has(B)?H=!1:f.includes(B)?H=!0:se&&se.state!=="idle"&&se.data===void 0?H=u:H=aE(K,on({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:A,actionStatus:T,defaultShouldRevalidate:E?!1:u})),H&&$.push({key:B,routeId:q.routeId,path:q.path,matches:Y,match:K,controller:new AbortController})}),[L,$]}function Dq(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function bk(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function aE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Pq(e,t,n,r,o,i,a,u){let c=[t,...n.map(f=>f.route.id)].join("-");try{let f=a.get(c);f||(f=e({path:t,matches:n,patch:(p,h)=>{u.aborted||_k(p,h,r,o,i)}}),a.set(c,f)),f&&Fq(f)&&await f}finally{a.delete(c)}}function _k(e,t,n,r,o){if(e){var i;let a=r[e];pt(a,"No route found to patch children into: routeId = "+e);let u=Wc(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...u):a.children=u}else{let a=Wc(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function lE(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];pt(o,"No route found in manifest");let i={};for(let a in r){let c=o[a]!==void 0&&a!=="hasErrorBoundary";Yl(!c,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!QW.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,on({},t(o),{lazy:void 0}))}function Oq(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function Lq(e,t,n,r,o,i,a,u){let c=r.reduce((h,m)=>h.add(m.route.id),new Set),f=new Set,p=await e({matches:o.map(h=>{let m=c.has(h.route.id);return on({},h,{shouldLoad:m,resolve:v=>(f.add(h.route.id),m?Nq(t,n,h,i,a,v,u):Promise.resolve({type:Wt.data,result:void 0}))})}),request:n,params:o[0].params,context:u});return o.forEach(h=>pt(f.has(h.route.id),'`match.resolve()` was not called for route id "'+h.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),p.filter((h,m)=>c.has(o[m].route.id))}async function Nq(e,t,n,r,o,i,a){let u,c,f=p=>{let h,m=new Promise((y,A)=>h=A);c=()=>h(),t.signal.addEventListener("abort",c);let x=y=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:a},...y!==void 0?[y]:[]),v;return i?v=i(y=>x(y)):v=(async()=>{try{return{type:"data",result:await x()}}catch(y){return{type:"error",result:y}}})(),Promise.race([v,m])};try{let p=n.route[e];if(n.route.lazy)if(p){let h,[m]=await Promise.all([f(p).catch(x=>{h=x}),lE(n.route,o,r)]);if(h!==void 0)throw h;u=m}else if(await lE(n.route,o,r),p=n.route[e],p)u=await f(p);else if(e==="action"){let h=new URL(t.url),m=h.pathname+h.search;throw yr(405,{method:t.method,pathname:m,routeId:n.route.id})}else return{type:Wt.data,result:void 0};else if(p)u=await f(p);else{let h=new URL(t.url),m=h.pathname+h.search;throw yr(404,{pathname:m})}pt(u.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){return{type:Wt.error,result:p}}finally{c&&t.signal.removeEventListener("abort",c)}return u}async function Mq(e){let{result:t,type:n,status:r}=e;if(Ek(t)){let a;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?a=null:a=await t.json():a=await t.text()}catch(u){return{type:Wt.error,error:u}}return n===Wt.error?{type:Wt.error,error:new By(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:Wt.data,data:a,statusCode:t.status,headers:t.headers}}if(n===Wt.error)return{type:Wt.error,error:t,statusCode:d0(t)?t.status:r};if(zq(t)){var o,i;return{type:Wt.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Wt.data,data:t,statusCode:r}}function Bq(e,t,n,r,o,i){let a=e.headers.get("Location");if(pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Iy.test(a)){let u=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=M2(new URL(t.url),u,o,!0,a,i),e.headers.set("Location",a)}return e}function uE(e,t,n){if(Iy.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=vf(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Xa(e,t,n,r){let o=e.createURL(Sk(t)).toString(),i={signal:n};if(r&&Ko(r.formMethod)){let{formMethod:a,formEncType:u}=r;i.method=a.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(r.json)):u==="text/plain"?i.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?i.body=B2(r.formData):i.body=r.formData}return new Request(o,i)}function B2(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function cE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Iq(e,t,n,r,o,i){let a={},u=null,c,f=!1,p={},h=r&&Kr(r[1])?r[1].error:void 0;return n.forEach((m,x)=>{let v=t[x].route.id;if(pt(!ua(m),"Cannot handle redirect results in processLoaderData"),Kr(m)){let y=m.error;h!==void 0&&(y=h,h=void 0),u=u||{};{let A=_l(e,v);u[A.route.id]==null&&(u[A.route.id]=y)}a[v]=void 0,f||(f=!0,c=d0(m.error)?m.error.status:500),m.headers&&(p[v]=m.headers)}else la(m)?(o.set(v,m.deferredData),a[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers)):(a[v]=m.data,m.statusCode&&m.statusCode!==200&&!f&&(c=m.statusCode),m.headers&&(p[v]=m.headers))}),h!==void 0&&r&&(u={[r[0]]:h},a[r[0]]=void 0),{loaderData:a,errors:u,statusCode:c||200,loaderHeaders:p}}function fE(e,t,n,r,o,i,a,u){let{loaderData:c,errors:f}=Iq(t,n,r,o,u);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function hE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function yr(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,u="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(u="Bad Request",i==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: +`+a):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?c="defer() is not supported in actions":i==="invalid-body"&&(c="Unable to encode submission body")):e===403?(u="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(u="Not Found",c='No route matches URL "'+n+'"'):e===405&&(u="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new By(e||500,u,new Error(c),!0)}function mE(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ua(n))return{result:n,idx:t}}}function Sk(e){let t=typeof e=="string"?Ms(e):e;return gf(on({},t,{hash:""}))}function $q(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Fq(e){return typeof e=="object"&&e!=null&&"then"in e}function Uq(e){return Ek(e.result)&&Sq.has(e.result.status)}function la(e){return e.type===Wt.deferred}function Kr(e){return e.type===Wt.error}function ua(e){return(e&&e.type)===Wt.redirect}function zq(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Ek(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jq(e){return _q.has(e.toLowerCase())}function Ko(e){return xq.has(e.toLowerCase())}async function gE(e,t,n,r,o,i){for(let a=0;ah.route.id===c.route.id),p=f!=null&&!bk(f,c)&&(i&&i[c.route.id])!==void 0;if(la(u)&&(o||p)){let h=r[a];pt(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ck(u,h,o).then(m=>{m&&(n[a]=m||n[a])})}}}async function Ck(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Wt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Wt.error,error:o}}return{type:Wt.data,data:e.deferredData.data}}}function $y(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sc(e,t){let n=typeof t=="string"?Ms(t).search:t.search;if(e[e.length-1].route.index&&$y(n||""))return e[e.length-1];let r=yk(e);return r[r.length-1]}function vE(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function nv(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Vq(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ku(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Wq(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ss(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function qq(e,t){try{let n=e.sessionStorage.getItem(xk);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Hq(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(xk,JSON.stringify(n))}catch(r){Yl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.25.1 * * Copyright (c) Remix Software Inc. @@ -98,7 +98,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function $2(){return $2=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},u,y.params),pathname:pa([c,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:pa([c,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r)}function Qq(){let e=sH(),t=d0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:o},n):null,null)}const Jq=D.createElement(Qq,null);class eH extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(p0.Provider,{value:this.props.routeContext},D.createElement(Pk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tH(e){let{routeContext:t,match:n,children:r}=e,o=D.useContext(kk);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(p0.Provider,{value:t},r)}function nH(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let p=a.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);p>=0||pt(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((p,h,m)=>{let x,v=!1,y=null,A=null;n&&(x=u&&h.route.id?u[h.route.id]:void 0,y=h.route.errorElement||Jq,c&&(f<0&&m===0?(v=!0,A=null):f===m&&(v=!0,A=h.route.hydrateFallbackElement||null)));let _=t.concat(a.slice(0,m+1)),w=()=>{let S;return x?S=y:v?S=A:h.route.Component?S=D.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=p,D.createElement(tH,{match:h,routeContext:{outlet:p,matches:_,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?D.createElement(eH,{location:n.location,revalidation:n.revalidation,component:y,error:x,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}var F2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(F2||{});function rH(e){let t=D.useContext(Tk);return t||pt(!1),t}function oH(e){let t=D.useContext(p0);return t||pt(!1),t}function iH(e){let t=oH(),n=t.matches[t.matches.length-1];return n.route.id||pt(!1),n.route.id}function sH(){var e;let t=D.useContext(Pk),n=rH(F2.UseRouteError),r=iH(F2.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function aH(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Dn.Pop,navigator:i,static:a=!1,future:u}=e;zy()&&pt(!1);let c=t.replace(/^\/*/,"/"),f=D.useMemo(()=>({basename:c,navigator:i,static:a,future:$2({v7_relativeSplatPath:!1},u)}),[c,u,i,a]);typeof r=="string"&&(r=Ms(r));let{pathname:p="/",search:h="",hash:m="",state:x=null,key:v="default"}=r,y=D.useMemo(()=>{let A=vf(p,c);return A==null?null:{location:{pathname:A,search:h,hash:m,state:x,key:v},navigationType:o}},[c,p,h,m,x,v,o]);return y==null?null:D.createElement(Dk.Provider,{value:f},D.createElement(Uy.Provider,{children:n,value:y}))}new Promise(()=>{});function lH(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:D.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},u,y.params),pathname:ha([c,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:ha([c,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r)}function Yq(){let e=rH(),t=d0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:o},n):null,null)}const Xq=D.createElement(Yq,null);class Zq extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(p0.Provider,{value:this.props.routeContext},D.createElement(Tk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qq(e){let{routeContext:t,match:n,children:r}=e,o=D.useContext(Ak);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(p0.Provider,{value:t},r)}function Jq(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let p=a.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);p>=0||pt(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((p,h,m)=>{let x,v=!1,y=null,A=null;n&&(x=u&&h.route.id?u[h.route.id]:void 0,y=h.route.errorElement||Xq,c&&(f<0&&m===0?(v=!0,A=null):f===m&&(v=!0,A=h.route.hydrateFallbackElement||null)));let _=t.concat(a.slice(0,m+1)),w=()=>{let S;return x?S=y:v?S=A:h.route.Component?S=D.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=p,D.createElement(Qq,{match:h,routeContext:{outlet:p,matches:_,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?D.createElement(Zq,{location:n.location,revalidation:n.revalidation,component:y,error:x,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}var $2=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($2||{});function eH(e){let t=D.useContext(Rk);return t||pt(!1),t}function tH(e){let t=D.useContext(p0);return t||pt(!1),t}function nH(e){let t=tH(),n=t.matches[t.matches.length-1];return n.route.id||pt(!1),n.route.id}function rH(){var e;let t=D.useContext(Tk),n=eH($2.UseRouteError),r=nH($2.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function oH(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Dn.Pop,navigator:i,static:a=!1,future:u}=e;Uy()&&pt(!1);let c=t.replace(/^\/*/,"/"),f=D.useMemo(()=>({basename:c,navigator:i,static:a,future:I2({v7_relativeSplatPath:!1},u)}),[c,u,i,a]);typeof r=="string"&&(r=Ms(r));let{pathname:p="/",search:h="",hash:m="",state:x=null,key:v="default"}=r,y=D.useMemo(()=>{let A=vf(p,c);return A==null?null:{location:{pathname:A,search:h,hash:m,state:x,key:v},navigationType:o}},[c,p,h,m,x,v,o]);return y==null?null:D.createElement(kk.Provider,{value:f},D.createElement(Fy.Provider,{children:n,value:y}))}new Promise(()=>{});function iH(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:D.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.25.1 * * Copyright (c) Remix Software Inc. @@ -107,13 +107,13 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function wH(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=D.useState(n.state),[a,u]=D.useState(),[c,f]=D.useState({isTransitioning:!1}),[p,h]=D.useState(),[m,x]=D.useState(),[v,y]=D.useState(),A=D.useRef(new Map),{v7_startTransition:_}=r||{},w=D.useCallback($=>{_?vH($):$()},[_]),S=D.useCallback(($,q)=>{let{deletedFetchers:B,unstable_flushSync:Y,unstable_viewTransitionOpts:se}=q;B.forEach(H=>A.current.delete(H)),$.fetchers.forEach((H,Q)=>{H.data!==void 0&&A.current.set(Q,H.data)});let K=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!se||K){Y?Yu(()=>i($)):w(()=>i($));return}if(Y){Yu(()=>{m&&(p&&p.resolve(),m.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:se.currentLocation,nextLocation:se.nextLocation})});let H=n.window.document.startViewTransition(()=>{Yu(()=>i($))});H.finished.finally(()=>{Yu(()=>{h(void 0),x(void 0),u(void 0),f({isTransitioning:!1})})}),Yu(()=>x(H));return}m?(p&&p.resolve(),m.skipTransition(),y({state:$,currentLocation:se.currentLocation,nextLocation:se.nextLocation})):(u($),f({isTransitioning:!0,flushSync:!1,currentLocation:se.currentLocation,nextLocation:se.nextLocation}))},[n.window,m,p,A,w]);D.useLayoutEffect(()=>n.subscribe(S),[n,S]),D.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new yH)},[c]),D.useEffect(()=>{if(p&&a&&n.window){let $=a,q=p.promise,B=n.window.document.startViewTransition(async()=>{w(()=>i($)),await q});B.finished.finally(()=>{h(void 0),x(void 0),u(void 0),f({isTransitioning:!1})}),x(B)}},[w,a,p,n.window]),D.useEffect(()=>{p&&a&&o.location.key===a.location.key&&p.resolve()},[p,m,o.location,a]),D.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),D.useEffect(()=>{},[]);let k=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:$=>n.navigate($),push:($,q,B)=>n.navigate($,{state:q,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:($,q,B)=>n.navigate($,{replace:!0,state:q,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),T=n.basename||"/",E=D.useMemo(()=>({router:n,navigator:k,static:!1,basename:T}),[n,k,T]),L=D.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return D.createElement(D.Fragment,null,D.createElement(kk.Provider,{value:E},D.createElement(Tk.Provider,{value:o},D.createElement(hH.Provider,{value:A.current},D.createElement(pH.Provider,{value:c},D.createElement(aH,{basename:T,location:o.location,navigationType:o.historyAction,navigator:k,future:L},o.initialized||n.future.v7_partialHydration?D.createElement(xH,{routes:n.routes,future:n.future,state:o}):t))))),null)}const xH=D.memo(bH);function bH(e){let{routes:t,future:n,state:r}=e;return Zq(t,void 0,r,n)}var bE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bE||(bE={}));var _E;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_E||(_E={}));var Ok={},jy={exports:{}},vn={},Lk={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` -`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};function _H(e){return Object.prototype.toString.call(e)}function SH(e){return _H(e)==="[object String]"}var EH=Object.prototype.hasOwnProperty;function Nk(e,t){return e?EH.call(e,t):!1}function CH(e){var t=[].slice.call(arguments,1);return t.forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}var AH=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function RH(e){return e.indexOf("\\")<0?e:e.replace(AH,"$1")}function Mk(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Bk(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var kH=/&([a-z#][a-z0-9]{1,31});/gi,TH=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,SE=Lk;function DH(e,t){var n=0;return Nk(SE,t)?SE[t]:t.charCodeAt(0)===35&&TH.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Mk(n))?Bk(n):e}function PH(e){return e.indexOf("&")<0?e:e.replace(kH,DH)}var OH=/[&<>"]/,LH=/[&<>"]/g,NH={"&":"&","<":"<",">":">",'"':"""};function MH(e){return NH[e]}function BH(e){return OH.test(e)?e.replace(LH,MH):e}vn.assign=CH;vn.isString=SH;vn.has=Nk;vn.unescapeMd=RH;vn.isValidEntityCode=Mk;vn.fromCodePoint=Bk;vn.replaceEntities=PH;vn.escapeHtml=BH;var IH=vn.has,Ik=vn.unescapeMd,qc=vn.replaceEntities,Br=vn.escapeHtml,De={};De.blockquote_open=function(){return`
-`};De.blockquote_close=function(e,t){return"
"+Pa(e,t)};De.code=function(e,t){return e[t].block?"
"+Br(e[t].content)+"
"+Pa(e,t):""+Br(e[t].content)+""};De.fence=function(e,t,n,r,o){var i=e[t],a="",u=n.langPrefix,c="",f,p,h;if(i.params){if(f=i.params.split(/\s+/g),p=f.join(" "),IH(o.rules.fence_custom,f[0]))return o.rules.fence_custom[f[0]](e,t,n,r,o);c=Br(qc(Ik(p))),a=' class="'+u+c+'"'}return n.highlight?h=n.highlight.apply(n.highlight,[i.content].concat(f))||Br(i.content):h=Br(i.content),"
"+h+"
"+Pa(e,t)};De.fence_custom={};De.heading_open=function(e,t){return""};De.heading_close=function(e,t){return" -`};De.hr=function(e,t,n){return(n.xhtmlOut?"
":"
")+Pa(e,t)};De.bullet_list_open=function(){return`
    -`};De.bullet_list_close=function(e,t){return"
"+Pa(e,t)};De.list_item_open=function(){return"
  • "};De.list_item_close=function(){return`
  • + */function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function gH(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=D.useState(n.state),[a,u]=D.useState(),[c,f]=D.useState({isTransitioning:!1}),[p,h]=D.useState(),[m,x]=D.useState(),[v,y]=D.useState(),A=D.useRef(new Map),{v7_startTransition:_}=r||{},w=D.useCallback($=>{_?hH($):$()},[_]),S=D.useCallback(($,q)=>{let{deletedFetchers:B,unstable_flushSync:Y,unstable_viewTransitionOpts:se}=q;B.forEach(H=>A.current.delete(H)),$.fetchers.forEach((H,Q)=>{H.data!==void 0&&A.current.set(Q,H.data)});let K=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!se||K){Y?Yu(()=>i($)):w(()=>i($));return}if(Y){Yu(()=>{m&&(p&&p.resolve(),m.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:se.currentLocation,nextLocation:se.nextLocation})});let H=n.window.document.startViewTransition(()=>{Yu(()=>i($))});H.finished.finally(()=>{Yu(()=>{h(void 0),x(void 0),u(void 0),f({isTransitioning:!1})})}),Yu(()=>x(H));return}m?(p&&p.resolve(),m.skipTransition(),y({state:$,currentLocation:se.currentLocation,nextLocation:se.nextLocation})):(u($),f({isTransitioning:!0,flushSync:!1,currentLocation:se.currentLocation,nextLocation:se.nextLocation}))},[n.window,m,p,A,w]);D.useLayoutEffect(()=>n.subscribe(S),[n,S]),D.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new mH)},[c]),D.useEffect(()=>{if(p&&a&&n.window){let $=a,q=p.promise,B=n.window.document.startViewTransition(async()=>{w(()=>i($)),await q});B.finished.finally(()=>{h(void 0),x(void 0),u(void 0),f({isTransitioning:!1})}),x(B)}},[w,a,p,n.window]),D.useEffect(()=>{p&&a&&o.location.key===a.location.key&&p.resolve()},[p,m,o.location,a]),D.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),D.useEffect(()=>{},[]);let k=D.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:$=>n.navigate($),push:($,q,B)=>n.navigate($,{state:q,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:($,q,B)=>n.navigate($,{replace:!0,state:q,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),T=n.basename||"/",E=D.useMemo(()=>({router:n,navigator:k,static:!1,basename:T}),[n,k,T]),L=D.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return D.createElement(D.Fragment,null,D.createElement(Ak.Provider,{value:E},D.createElement(Rk.Provider,{value:o},D.createElement(fH.Provider,{value:A.current},D.createElement(cH.Provider,{value:c},D.createElement(oH,{basename:T,location:o.location,navigationType:o.historyAction,navigator:k,future:L},o.initialized||n.future.v7_partialHydration?D.createElement(vH,{routes:n.routes,future:n.future,state:o}):t))))),null)}const vH=D.memo(yH);function yH(e){let{routes:t,future:n,state:r}=e;return Kq(t,void 0,r,n)}var xE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xE||(xE={}));var bE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bE||(bE={}));var Dk={},zy={exports:{}},vn={},Pk={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` +`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};function wH(e){return Object.prototype.toString.call(e)}function xH(e){return wH(e)==="[object String]"}var bH=Object.prototype.hasOwnProperty;function Ok(e,t){return e?bH.call(e,t):!1}function _H(e){var t=[].slice.call(arguments,1);return t.forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}var SH=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function EH(e){return e.indexOf("\\")<0?e:e.replace(SH,"$1")}function Lk(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Nk(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var CH=/&([a-z#][a-z0-9]{1,31});/gi,AH=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,_E=Pk;function RH(e,t){var n=0;return Ok(_E,t)?_E[t]:t.charCodeAt(0)===35&&AH.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Lk(n))?Nk(n):e}function kH(e){return e.indexOf("&")<0?e:e.replace(CH,RH)}var TH=/[&<>"]/,DH=/[&<>"]/g,PH={"&":"&","<":"<",">":">",'"':"""};function OH(e){return PH[e]}function LH(e){return TH.test(e)?e.replace(DH,OH):e}vn.assign=_H;vn.isString=xH;vn.has=Ok;vn.unescapeMd=EH;vn.isValidEntityCode=Lk;vn.fromCodePoint=Nk;vn.replaceEntities=kH;vn.escapeHtml=LH;var NH=vn.has,Mk=vn.unescapeMd,qc=vn.replaceEntities,Br=vn.escapeHtml,De={};De.blockquote_open=function(){return`
    +`};De.blockquote_close=function(e,t){return"
    "+Oa(e,t)};De.code=function(e,t){return e[t].block?"
    "+Br(e[t].content)+"
    "+Oa(e,t):""+Br(e[t].content)+""};De.fence=function(e,t,n,r,o){var i=e[t],a="",u=n.langPrefix,c="",f,p,h;if(i.params){if(f=i.params.split(/\s+/g),p=f.join(" "),NH(o.rules.fence_custom,f[0]))return o.rules.fence_custom[f[0]](e,t,n,r,o);c=Br(qc(Mk(p))),a=' class="'+u+c+'"'}return n.highlight?h=n.highlight.apply(n.highlight,[i.content].concat(f))||Br(i.content):h=Br(i.content),"
    "+h+"
    "+Oa(e,t)};De.fence_custom={};De.heading_open=function(e,t){return""};De.heading_close=function(e,t){return" +`};De.hr=function(e,t,n){return(n.xhtmlOut?"
    ":"
    ")+Oa(e,t)};De.bullet_list_open=function(){return`
      +`};De.bullet_list_close=function(e,t){return"
    "+Oa(e,t)};De.list_item_open=function(){return"
  • "};De.list_item_close=function(){return`
  • `};De.ordered_list_open=function(e,t){var n=e[t],r=n.order>1?' start="'+n.order+'"':"";return" -`};De.ordered_list_close=function(e,t){return""+Pa(e,t)};De.paragraph_open=function(e,t){return e[t].tight?"":"

    "};De.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"

    ")+(n?Pa(e,t):"")};De.link_open=function(e,t,n){var r=e[t].title?' title="'+Br(qc(e[t].title))+'"':"",o=n.linkTarget?' target="'+n.linkTarget+'"':"";return'"};De.link_close=function(){return""};De.image=function(e,t,n){var r=' src="'+Br(e[t].src)+'"',o=e[t].title?' title="'+Br(qc(e[t].title))+'"':"",i=' alt="'+(e[t].alt?Br(qc(Ik(e[t].alt))):"")+'"',a=n.xhtmlOut?" /":"";return""};De.table_open=function(){return` +`};De.ordered_list_close=function(e,t){return""+Oa(e,t)};De.paragraph_open=function(e,t){return e[t].tight?"":"

    "};De.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"

    ")+(n?Oa(e,t):"")};De.link_open=function(e,t,n){var r=e[t].title?' title="'+Br(qc(e[t].title))+'"':"",o=n.linkTarget?' target="'+n.linkTarget+'"':"";return'"};De.link_close=function(){return""};De.image=function(e,t,n){var r=' src="'+Br(e[t].src)+'"',o=e[t].title?' title="'+Br(qc(e[t].title))+'"':"",i=' alt="'+(e[t].alt?Br(qc(Mk(e[t].alt))):"")+'"',a=n.xhtmlOut?" /":"";return""};De.table_open=function(){return`
    `};De.table_close=function(){return`
    `};De.thead_open=function(){return` `};De.thead_close=function(){return` @@ -136,9 +136,9 @@ function print() { __p += __j.call(arguments, '') } `};De.dt_open=function(){return"
    "};De.dd_open=function(){return"
    "};De.dl_close=function(){return` `};De.dt_close=function(){return` `};De.dd_close=function(){return`
    -`};function $k(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?$k(e,t+2):t}var Pa=De.getBreak=function(t,n){return n=$k(t,n),n"u"&&(r.abbreviations[":"+c]=f),a)}var qH=function(t){var n=t.tokens,r,o,i,a;if(!t.inlineMode){for(r=1,o=n.length-1;r1)||r===41&&(o--,o<0))break;n++}return a===n||(i=CE(t.src.slice(a,n)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=n,!0)},KH=vn.unescapeMd,zk=function(t,n){var r,o=n,i=t.posMax,a=t.src.charCodeAt(n);if(a!==34&&a!==39&&a!==40)return!1;for(n++,a===40&&(a=41);n"u"&&(r.references[m]={title:h,href:p}),a)}var tG=function(t){var n=t.tokens,r,o,i,a;if(t.env.references=t.env.references||{},!t.inlineMode){for(r=1,o=n.length-1;r0?u[n].count:1,o=0;o=0;n--)if(a=i[n],a.type==="text"){for(f=0,u=a.content,h.lastIndex=0,p=a.level,c=[];m=h.exec(u);)h.lastIndex>f&&c.push({type:"text",content:u.slice(f,m.index+m[1].length),level:p}),c.push({type:"abbr_open",title:t.env.abbreviations[":"+m[2]],level:p++}),c.push({type:"text",content:m[2],level:p}),c.push({type:"abbr_close",level:--p}),f=h.lastIndex-m[3].length;c.length&&(f=0;a--)if(t.tokens[a].type==="inline")for(i=t.tokens[a].children,n=i.length-1;n>=0;n--)r=i[n],r.type==="text"&&(o=r.content,o=lG(o),iG.test(o)&&(o=o.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=o)}},cG=/['"]/,RE=/['"]/g,fG=/[-\s()\[\]]/,kE="’";function TE(e,t){return t<0||t>=e.length?!1:!fG.test(e[t])}function Xa(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var dG=function(t){var n,r,o,i,a,u,c,f,p,h,m,x,v,y,A,_,w;if(t.options.typographer){for(w=[],A=t.tokens.length-1;A>=0;A--)if(t.tokens[A].type==="inline"){for(_=t.tokens[A].children,w.length=0,n=0;n<_.length;n++)if(r=_[n],!(r.type!=="text"||cG.test(r.text))){for(c=_[n].level,v=w.length-1;v>=0&&!(w[v].level<=c);v--);w.length=v+1,o=r.content,a=0,u=o.length;e:for(;a=0&&(h=w[v],!(w[v].level=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?Bk(e,t+2):t}var Oa=De.getBreak=function(t,n){return n=Bk(t,n),n"u"&&(r.abbreviations[":"+c]=f),a)}var jH=function(t){var n=t.tokens,r,o,i,a;if(!t.inlineMode){for(r=1,o=n.length-1;r1)||r===41&&(o--,o<0))break;n++}return a===n||(i=EE(t.src.slice(a,n)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=n,!0)},qH=vn.unescapeMd,Fk=function(t,n){var r,o=n,i=t.posMax,a=t.src.charCodeAt(n);if(a!==34&&a!==39&&a!==40)return!1;for(n++,a===40&&(a=41);n"u"&&(r.references[m]={title:h,href:p}),a)}var QH=function(t){var n=t.tokens,r,o,i,a;if(t.env.references=t.env.references||{},!t.inlineMode){for(r=1,o=n.length-1;r0?u[n].count:1,o=0;o=0;n--)if(a=i[n],a.type==="text"){for(f=0,u=a.content,h.lastIndex=0,p=a.level,c=[];m=h.exec(u);)h.lastIndex>f&&c.push({type:"text",content:u.slice(f,m.index+m[1].length),level:p}),c.push({type:"abbr_open",title:t.env.abbreviations[":"+m[2]],level:p++}),c.push({type:"text",content:m[2],level:p}),c.push({type:"abbr_close",level:--p}),f=h.lastIndex-m[3].length;c.length&&(f=0;a--)if(t.tokens[a].type==="inline")for(i=t.tokens[a].children,n=i.length-1;n>=0;n--)r=i[n],r.type==="text"&&(o=r.content,o=iG(o),nG.test(o)&&(o=o.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=o)}},aG=/['"]/,AE=/['"]/g,lG=/[-\s()\[\]]/,RE="’";function kE(e,t){return t<0||t>=e.length?!1:!lG.test(e[t])}function Za(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var uG=function(t){var n,r,o,i,a,u,c,f,p,h,m,x,v,y,A,_,w;if(t.options.typographer){for(w=[],A=t.tokens.length-1;A>=0;A--)if(t.tokens[A].type==="inline"){for(_=t.tokens[A].children,w.length=0,n=0;n<_.length;n++)if(r=_[n],!(r.type!=="text"||aG.test(r.text))){for(c=_[n].level,v=w.length-1;v>=0&&!(w[v].level<=c);v--);w.length=v+1,o=r.content,a=0,u=o.length;e:for(;a=0&&(h=w[v],!(w[v].levelo&&(i=i??"..",r=r.substring(0,o-i.length)+i),r},indexOf:function(r,o){if(Array.prototype.indexOf)return r.indexOf(o);for(var i=0,a=r.length;i=0;i--)o(r[i])===!0&&r.splice(i,1)},splitAndCapture:function(r,o){if(!o.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var i=[],a=0,u;u=o.exec(r);)i.push(r.substring(a,u.index)),i.push(u[0]),a=u.index+u[0].length;return i.push(r.substring(a)),i},trim:function(r){return r.replace(this.trimRegex,"")}},n.HtmlTag=n.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(r){n.Util.assign(this,r),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(r){return this.tagName=r,this},getTagName:function(){return this.tagName||""},setAttr:function(r,o){var i=this.getAttrs();return i[r]=o,this},getAttr:function(r){return this.getAttrs()[r]},setAttrs:function(r){var o=this.getAttrs();return n.Util.assign(o,r),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(r){return this.setAttr("class",r)},addClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;f=c.shift();)a(u,f)===-1&&u.push(f);return this.getAttrs().class=u.join(" "),this},removeClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;u.length&&(f=c.shift());){var p=a(u,f);p!==-1&&u.splice(p,1)}return this.getAttrs().class=u.join(" "),this},getClass:function(){return this.getAttrs().class||""},hasClass:function(r){return(" "+this.getClass()+" ").indexOf(" "+r+" ")!==-1},setInnerHtml:function(r){return this.innerHtml=r,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var r=this.getTagName(),o=this.buildAttrsStr();return o=o?" "+o:"",["<",r,o,">",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var r=this.getAttrs(),o=[];for(var i in r)r.hasOwnProperty(i)&&o.push(i+'="'+r[i]+'"');return o.join(" ")}}),n.RegexLib=function(){var r="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",i=r+o,a=new RegExp("["+i+".\\-]*["+i+"\\-]"),u=/(?:travelersinsurance|sandvikcoromant|kerryproperties|cancerresearch|weatherchannel|kerrylogistics|spreadbetting|international|wolterskluwer|lifeinsurance|construction|pamperedchef|scholarships|versicherung|bridgestone|creditunion|kerryhotels|investments|productions|blackfriday|enterprises|lamborghini|photography|motorcycles|williamhill|playstation|contractors|barclaycard|accountants|redumbrella|engineering|management|telefonica|protection|consulting|tatamotors|creditcard|vlaanderen|schaeffler|associates|properties|foundation|republican|bnpparibas|boehringer|eurovision|extraspace|industries|immobilien|university|technology|volkswagen|healthcare|restaurant|cuisinella|vistaprint|apartments|accountant|travelers|homedepot|institute|vacations|furniture|fresenius|insurance|christmas|bloomberg|solutions|barcelona|firestone|financial|kuokgroup|fairwinds|community|passagens|goldpoint|equipment|lifestyle|yodobashi|aquarelle|marketing|analytics|education|amsterdam|statefarm|melbourne|allfinanz|directory|microsoft|stockholm|montblanc|accenture|lancaster|landrover|everbank|istanbul|graphics|grainger|ipiranga|softbank|attorney|pharmacy|saarland|catering|airforce|yokohama|mortgage|frontier|mutuelle|stcgroup|memorial|pictures|football|symantec|cipriani|ventures|telecity|cityeats|verisign|flsmidth|boutique|cleaning|firmdale|clinique|clothing|redstone|infiniti|deloitte|feedback|services|broadway|plumbing|commbank|training|barclays|exchange|computer|brussels|software|delivery|barefoot|builders|business|bargains|engineer|holdings|download|security|helsinki|lighting|movistar|discount|hdfcbank|supplies|marriott|property|diamonds|capetown|partners|democrat|jpmorgan|bradesco|budapest|rexroth|zuerich|shriram|academy|science|support|youtube|singles|surgery|alibaba|statoil|dentist|schwarz|android|cruises|cricket|digital|markets|starhub|systems|courses|coupons|netbank|country|domains|corsica|network|neustar|realtor|lincoln|limited|schmidt|yamaxun|cooking|contact|auction|spiegel|liaison|leclerc|latrobe|lasalle|abogado|compare|lanxess|exposed|express|company|cologne|college|avianca|lacaixa|fashion|recipes|ferrero|komatsu|storage|wanggou|clubmed|sandvik|fishing|fitness|bauhaus|kitchen|flights|florist|flowers|watches|weather|temasek|samsung|bentley|forsale|channel|theater|frogans|theatre|okinawa|website|tickets|jewelry|gallery|tiffany|iselect|shiksha|brother|organic|wedding|genting|toshiba|origins|philips|hyundai|hotmail|hoteles|hosting|rentals|windows|cartier|bugatti|holiday|careers|whoswho|hitachi|panerai|caravan|reviews|guitars|capital|trading|hamburg|hangout|finance|stream|family|abbott|health|review|travel|report|hermes|hiphop|gratis|career|toyota|hockey|dating|repair|google|social|soccer|reisen|global|otsuka|giving|unicom|casino|photos|center|broker|rocher|orange|bostik|garden|insure|ryukyu|bharti|safety|physio|sakura|oracle|online|jaguar|gallup|piaget|tienda|futbol|pictet|joburg|webcam|berlin|office|juegos|kaufen|chanel|chrome|xihuan|church|tennis|circle|kinder|flickr|bayern|claims|clinic|viajes|nowruz|xperia|norton|yachts|studio|coffee|camera|sanofi|nissan|author|expert|events|comsec|lawyer|tattoo|viking|estate|villas|condos|realty|yandex|energy|emerck|virgin|vision|durban|living|school|coupon|london|taobao|natura|taipei|nagoya|luxury|walter|aramco|sydney|madrid|credit|maison|makeup|schule|market|anquan|direct|design|swatch|suzuki|alsace|vuelos|dental|alipay|voyage|shouji|voting|airtel|mutual|degree|supply|agency|museum|mobily|dealer|monash|select|mormon|active|moscow|racing|datsun|quebec|nissay|rodeo|email|gifts|works|photo|chloe|edeka|cheap|earth|vista|tushu|koeln|glass|shoes|globo|tunes|gmail|nokia|space|kyoto|black|ricoh|seven|lamer|sener|epson|cisco|praxi|trust|citic|crown|shell|lease|green|legal|lexus|ninja|tatar|gripe|nikon|group|video|wales|autos|gucci|party|nexus|guide|linde|adult|parts|amica|lixil|boats|azure|loans|locus|cymru|lotte|lotto|stada|click|poker|quest|dabur|lupin|nadex|paris|faith|dance|canon|place|gives|trade|skype|rocks|mango|cloud|boots|smile|final|swiss|homes|honda|media|horse|cards|deals|watch|bosch|house|pizza|miami|osaka|tours|total|xerox|coach|sucks|style|delta|toray|iinet|tools|money|codes|beats|tokyo|salon|archi|movie|baidu|study|actor|yahoo|store|apple|world|forex|today|bible|tmall|tirol|irish|tires|forum|reise|vegas|vodka|sharp|omega|weber|jetzt|audio|promo|build|bingo|chase|gallo|drive|dubai|rehab|press|solar|sale|beer|bbva|bank|band|auto|sapo|sarl|saxo|audi|asia|arte|arpa|army|yoga|ally|zara|scor|scot|sexy|seat|zero|seek|aero|adac|zone|aarp|maif|meet|meme|menu|surf|mini|mobi|mtpc|porn|desi|star|ltda|name|talk|navy|love|loan|live|link|news|limo|like|spot|life|nico|lidl|lgbt|land|taxi|team|tech|kred|kpmg|sony|song|kiwi|kddi|jprs|jobs|sohu|java|itau|tips|info|immo|icbc|hsbc|town|host|page|toys|here|help|pars|haus|guru|guge|tube|goog|golf|gold|sncf|gmbh|gift|ggee|gent|gbiz|game|vana|pics|fund|ford|ping|pink|fish|film|fast|farm|play|fans|fail|plus|skin|pohl|fage|moda|post|erni|dvag|prod|doha|prof|docs|viva|diet|luxe|site|dell|sina|dclk|show|qpon|date|vote|cyou|voto|read|coop|cool|wang|club|city|chat|cern|cash|reit|rent|casa|cars|care|camp|rest|call|cafe|weir|wien|rich|wiki|buzz|wine|book|bond|room|work|rsvp|shia|ruhr|blue|bing|shaw|bike|safe|xbox|best|pwc|mtn|lds|aig|boo|fyi|nra|nrw|ntt|car|gal|obi|zip|aeg|vin|how|one|ong|onl|dad|ooo|bet|esq|org|htc|bar|uol|ibm|ovh|gdn|ice|icu|uno|gea|ifm|bot|top|wtf|lol|day|pet|eus|wtc|ubs|tvs|aco|ing|ltd|ink|tab|abb|afl|cat|int|pid|pin|bid|cba|gle|com|cbn|ads|man|wed|ceb|gmo|sky|ist|gmx|tui|mba|fan|ski|iwc|app|pro|med|ceo|jcb|jcp|goo|dev|men|aaa|meo|pub|jlc|bom|jll|gop|jmp|mil|got|gov|win|jot|mma|joy|trv|red|cfa|cfd|bio|moe|moi|mom|ren|biz|aws|xin|bbc|dnp|buy|kfh|mov|thd|xyz|fit|kia|rio|rip|kim|dog|vet|nyc|bcg|mtr|bcn|bms|bmw|run|bzh|rwe|tel|stc|axa|kpn|fly|krd|cab|bnl|foo|crs|eat|tci|sap|srl|nec|sas|net|cal|sbs|sfr|sca|scb|csc|edu|new|xxx|hiv|fox|wme|ngo|nhk|vip|sex|frl|lat|yun|law|you|tax|soy|sew|om|ac|hu|se|sc|sg|sh|sb|sa|rw|ru|rs|ro|re|qa|py|si|pw|pt|ps|sj|sk|pr|pn|pm|pl|sl|sm|pk|sn|ph|so|pg|pf|pe|pa|zw|nz|nu|nr|np|no|nl|ni|ng|nf|sr|ne|st|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|su|mn|mm|ml|mk|mh|mg|me|sv|md|mc|sx|sy|ma|ly|lv|sz|lu|lt|ls|lr|lk|li|lc|lb|la|tc|kz|td|ky|kw|kr|kp|kn|km|ki|kh|tf|tg|th|kg|ke|jp|jo|jm|je|it|is|ir|tj|tk|tl|tm|iq|tn|to|io|in|im|il|ie|ad|sd|ht|hr|hn|hm|tr|hk|gy|gw|gu|gt|gs|gr|gq|tt|gp|gn|gm|gl|tv|gi|tw|tz|ua|gh|ug|uk|gg|gf|ge|gd|us|uy|uz|va|gb|ga|vc|ve|fr|fo|fm|fk|fj|vg|vi|fi|eu|et|es|er|eg|ee|ec|dz|do|dm|dk|vn|dj|de|cz|cy|cx|cw|vu|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|wf|bz|by|bw|bv|bt|bs|br|bo|bn|bm|bj|bi|ws|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ye|ar|aq|ao|am|al|yt|ai|za|ag|af|ae|zm|id)\b/;return{alphaNumericCharsStr:i,domainNameRegex:a,tldRegex:u}}(),n.AnchorTagBuilder=n.Util.extend(Object,{constructor:function(r){n.Util.assign(this,r)},build:function(r){return new n.HtmlTag({tagName:"a",attrs:this.createAttrs(r.getType(),r.getAnchorHref()),innerHtml:this.processAnchorText(r.getAnchorText())})},createAttrs:function(r,o){var i={href:o},a=this.createCssClass(r);return a&&(i.class=a),this.newWindow&&(i.target="_blank",i.rel="noopener noreferrer"),i},createCssClass:function(r){var o=this.className;return o?o+" "+o+"-"+r:""},processAnchorText:function(r){return r=this.doTruncate(r),r},doTruncate:function(r){var o=this.truncate;if(!o||!o.length)return r;var i=o.length,a=o.location;return a==="smart"?n.truncate.TruncateSmart(r,i,".."):a==="middle"?n.truncate.TruncateMiddle(r,i,".."):n.truncate.TruncateEnd(r,i,"..")}}),n.htmlParser.HtmlParser=n.Util.extend(Object,{htmlRegex:function(){var r=/!--([\s\S]+?)--/,o=/[0-9a-zA-Z][0-9a-zA-Z:]*/,i=/[^\s"'>\/=\x00-\x1F\x7F]+/,a=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,u=i.source+"(?:\\s*=\\s*"+a.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",u,"|",a.source+")",")*",">",")","|","(?:","<(/)?","(?:",r.source,"|","(?:","("+o.source+")","(?:","(?:\\s+|\\b)",u,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(r){for(var o=this.htmlRegex,i,a=0,u,c=[];(i=o.exec(r))!==null;){var f=i[0],p=i[3],h=i[1]||i[4],m=!!i[2],x=i.index,v=r.substring(a,x);v&&(u=this.parseTextAndEntityNodes(a,v),c.push.apply(c,u)),p?c.push(this.createCommentNode(x,f,p)):c.push(this.createElementNode(x,f,h,m)),a=x+f.length}if(a0&&A==="@")&&!(v>0&&y&&this.wordCharRegExp.test(A))){if(this.matchHasUnbalancedClosingParen(f))f=f.substr(0,f.length-1);else{var _=this.matchHasInvalidCharAfterTld(f,p);_>-1&&(f=f.substr(0,_))}var w=p?"scheme":h?"www":"tld",S=!!p;u.push(new n.match.Url({tagBuilder:a,matchedText:f,offset:v,urlMatchType:w,url:f,protocolUrlMatch:S,protocolRelativeMatch:!!y,stripPrefix:i}))}}return u},matchHasUnbalancedClosingParen:function(r){var o=r.charAt(r.length-1);if(o===")"){var i=r.match(this.openParensRe),a=r.match(this.closeParensRe),u=i&&i.length||0,c=a&&a.length||0;if(u0&&(u=r.substr(-1*Math.floor(a/2))),(r.substr(0,Math.ceil(a/2))+i+u).substr(0,o)},n.truncate.TruncateSmart=function(r,o,i){var a=function(S){var k={},T=S,E=T.match(/^([a-z]+):\/\//i);return E&&(k.scheme=E[1],T=T.substr(E[0].length)),E=T.match(/^(.*?)(?=(\?|#|\/|$))/i),E&&(k.host=E[1],T=T.substr(E[0].length)),E=T.match(/^\/(.*?)(?=(\?|#|$))/i),E&&(k.path=E[1],T=T.substr(E[0].length)),E=T.match(/^\?(.*?)(?=(#|$))/i),E&&(k.query=E[1],T=T.substr(E[0].length)),E=T.match(/^#(.*?)$/i),E&&(k.fragment=E[1]),k},u=function(S){var k="";return S.scheme&&S.host&&(k+=S.scheme+"://"),S.host&&(k+=S.host),S.path&&(k+="/"+S.path),S.query&&(k+="?"+S.query),S.fragment&&(k+="#"+S.fragment),k},c=function(S,k){var T=k/2,E=Math.ceil(T),L=-1*Math.floor(T),$="";return L<0&&($=S.substr(L)),S.substr(0,E)+i+$};if(r.length<=o)return r;var f=o-i.length,p=a(r);if(p.query){var h=p.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);h&&(p.query=p.query.substr(0,h[1].length),r=u(p))}if(r.length<=o||(p.host&&(p.host=p.host.replace(/^www\./,""),r=u(p)),r.length<=o))return r;var m="";if(p.host&&(m+=p.host),m.length>=f)return p.host.length==o?(p.host.substr(0,o-i.length)+i).substr(0,o):c(m,f).substr(0,o);var x="";if(p.path&&(x+="/"+p.path),p.query&&(x+="?"+p.query),x)if((m+x).length>=f){if((m+x).length==o)return(m+x).substr(0,o);var v=f-m.length;return(m+c(x,v)).substr(0,o)}else m+=x;if(p.fragment){var y="#"+p.fragment;if((m+y).length>=f){if((m+y).length==o)return(m+y).substr(0,o);var A=f-m.length;return(m+c(y,A)).substr(0,o)}else m+=y}if(p.scheme&&p.host){var _=p.scheme+"://";if((m+_).length0&&(w=m.substr(-1*Math.floor(f/2))),(m.substr(0,Math.ceil(f/2))+i+w).substr(0,o)},n})})(Vk);var pG=Vk.exports,hG=pG,mG=/www|@|\:\/\//;function gG(e){return/^\s]/i.test(e)}function vG(e){return/^<\/a\s*>/i.test(e)}function yG(){var e=[],t=new hG({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(n,r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}var wG=function(t){var n,r,o,i,a,u,c,f,p,h,m,x=t.tokens,v=null,y,A;if(t.options.linkify){for(r=0,o=x.length;r=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="htmltag"&&(gG(a.content)&&m>0&&m--,vG(a.content)&&m++),!(m>0)&&a.type==="text"&&mG.test(a.content)){if(v||(v=yG(),y=v.links,A=v.autolinker),u=a.content,y.length=0,A.link(u),!y.length)continue;for(c=[],h=a.level,f=0;f=this.eMarks[t]};Oa.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tr;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Oa.prototype.getLines=function(t,n,r,o){var i,a,u,c,f,p=t;if(t>=n)return"";if(p+1===n)return a=this.bMarks[p]+Math.min(this.tShift[p],r),u=o?this.eMarks[p]+1:this.eMarks[p],this.src.slice(a,u);for(c=new Array(n-t),i=0;pr&&(f=r),f<0&&(f=0),a=this.bMarks[p]+f,p+1=4){o++,i=o;continue}break}return t.line=o,t.tokens.push({type:"code",content:t.getLines(n,i,4+t.blkIndent,!0),block:!0,lines:[n,t.line],level:t.level}),!0},EG=function(t,n,r,o){var i,a,u,c,f,p=!1,h=t.bMarks[n]+t.tShift[n],m=t.eMarks[n];if(h+3>m||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(f=h,h=t.skipChars(h,i),a=h-f,a<3)||(u=t.src.slice(h,m).trim(),u.indexOf("`")>=0))return!1;if(o)return!0;for(c=n;c++,!(c>=r||(h=f=t.bMarks[c]+t.tShift[c],m=t.eMarks[c],h=4)&&(h=t.skipChars(h,i),!(h-f_||t.src.charCodeAt(A++)!==62||t.level>=t.options.maxNesting)return!1;if(o)return!0;for(t.src.charCodeAt(A)===32&&A++,f=t.blkIndent,t.blkIndent=0,c=[t.bMarks[n]],t.bMarks[n]=A,A=A<_?t.skipSpaces(A):A,a=A>=_,u=[t.tShift[n]],t.tShift[n]=A-t.bMarks[n],m=t.parser.ruler.getRules("blockquote"),i=n+1;i=_));i++){if(t.src.charCodeAt(A++)===62){t.src.charCodeAt(A)===32&&A++,c.push(t.bMarks[i]),t.bMarks[i]=A,A=A<_?t.skipSpaces(A):A,a=A>=_,u.push(t.tShift[i]),t.tShift[i]=A-t.bMarks[i];continue}if(a)break;for(y=!1,x=0,v=m.length;xf||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=o||(n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43)||r=o||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=o)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(n===41||n===46)break;return-1}}return r=0)_=!0;else if((m=DE(t,n))>=0)_=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(A=t.src.charCodeAt(m-1),o)return!0;for(S=t.tokens.length,_?(h=t.bMarks[n]+t.tShift[n],y=Number(t.src.substr(h,m-h-1)),t.tokens.push({type:"ordered_list_open",order:y,lines:T=[n,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:T=[n,0],level:t.level++}),i=n,k=!1,$=t.parser.ruler.getRules("list");i=x?v=1:v=w-m,v>4&&(v=1),v<1&&(v=1),a=m-t.bMarks[i]+v,t.tokens.push({type:"list_item_open",lines:E=[n,0],level:t.level++}),c=t.blkIndent,f=t.tight,u=t.tShift[n],p=t.parentType,t.tShift[n]=w-t.bMarks[n],t.blkIndent=a,t.tight=!0,t.parentType="list",t.parser.tokenize(t,n,r,!0),(!t.tight||k)&&(L=!1),k=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[n]=u,t.tight=f,t.parentType=p,t.tokens.push({type:"list_item_close",level:--t.level}),i=n=t.line,E[1]=i,w=t.bMarks[n],!(i>=r||t.isEmpty(i)||t.tShift[i]h||t.src.charCodeAt(p)!==91||t.src.charCodeAt(p+1)!==94||t.level>=t.options.maxNesting)return!1;for(c=p+2;c=h||t.src.charCodeAt(++c)!==58?!1:(o||(c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),f=t.src.slice(p+2,c-2),t.env.footnotes.refs[":"+f]=-1,t.tokens.push({type:"footnote_reference_open",label:f,level:t.level++}),i=t.bMarks[n],a=t.tShift[n],u=t.parentType,t.tShift[n]=t.skipSpaces(c)-c,t.bMarks[n]=c,t.blkIndent+=4,t.parentType="footnote",t.tShift[n]=f||(i=t.src.charCodeAt(c),i!==35||c>=f))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&t.src.charCodeAt(u-1)===32&&(f=u),t.line=n+1,t.tokens.push({type:"heading_open",hLevel:a,lines:[n,t.line],level:t.level}),c=r||t.tShift[u]3||(i=t.bMarks[u]+t.tShift[u],a=t.eMarks[u],i>=a)||(o=t.src.charCodeAt(i),o!==45&&o!==61)||(i=t.skipChars(i,o),i=t.skipSpaces(i),i]/,MG=/^<\/([a-zA-Z]{1,15})[\s>]/;function BG(e){var t=e|32;return t>=97&&t<=122}var IG=function(t,n,r,o){var i,a,u,c=t.bMarks[n],f=t.eMarks[n],p=t.tShift[n];if(c+=p,!t.options.html||p>3||c+2>=f||t.src.charCodeAt(c)!==60)return!1;if(i=t.src.charCodeAt(c+1),i===33||i===63){if(o)return!0}else if(i===47||BG(i)){if(i===47){if(a=t.src.slice(c,f).match(MG),!a)return!1}else if(a=t.src.slice(c,f).match(NG),!a)return!1;if(LG[a[1].toLowerCase()]!==!0)return!1;if(o)return!0}else return!1;for(u=n+1;ur||(f=n+1,t.tShift[f]=t.eMarks[f])||(i=t.src.charCodeAt(u),i!==124&&i!==45&&i!==58)||(a=iv(t,n+1),!/^[-:| ]+$/.test(a))||(p=a.split("|"),p<=2))return!1;for(m=[],c=0;c=i||(r=e.src.charCodeAt(o++),r!==126&&r!==58)||(n=e.skipSpaces(o),o===n)||n>=i?-1:n}function FG(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n=0;if(h=n+1,t.isEmpty(h)&&++h>r||t.tShift[h]=t.options.maxNesting)return!1;p=t.tokens.length,t.tokens.push({type:"dl_open",lines:f=[n,0],level:t.level++}),u=n,a=h;e:for(;;){for(w=!0,_=!1,t.tokens.push({type:"dt_open",lines:[u,u],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(u,u+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[u,u],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[h,0],level:t.level++}),A=t.tight,x=t.ddIndent,m=t.blkIndent,y=t.tShift[a],v=t.parentType,t.blkIndent=t.ddIndent=t.tShift[a]+2,t.tShift[a]=i-t.bMarks[a],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,a,r,!0),(!t.tight||_)&&(w=!1),_=t.line-a>1&&t.isEmpty(t.line-1),t.tShift[a]=y,t.tight=A,t.parentType=v,t.blkIndent=m,t.ddIndent=x,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=h=t.line,h>=r||t.tShift[h]=r||(u=h,t.isEmpty(u))||t.tShift[u]=r)||(t.isEmpty(a)&&a++,a>=r)||t.tShift[a]3)){for(i=!1,a=0,u=f.length;a=n||e.tShift[i]=0&&(e=e.replace(WG,function(u,c){var f;return e.charCodeAt(c)===10?(i=c+1,a=0,u):(f=" ".slice((c-i-a)%4),a=c-i+1,f)})),o=new VG(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};var GG=qy;function KG(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}var YG=function(t,n){for(var r=t.pos;r=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var a=r-2;a>=0;a--)if(t.pending.charCodeAt(a)!==32){t.pending=t.pending.substring(0,a+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(i++;i?@[]^_`{|}~-".split("").forEach(function(e){Hy[e.charCodeAt(0)]=1});var ZG=function(t,n){var r,o=t.pos,i=t.posMax;if(t.src.charCodeAt(o)!==92)return!1;if(o++,o=a||t.src.charCodeAt(u+1)!==126||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===126)||f===126||f===32||f===10)return!1;for(o=u+2;ou+3)return t.pos+=o-u,n||(t.pending+=t.src.slice(u,o)),!0;for(t.pos=u+2,i=1;t.pos+1=a||t.src.charCodeAt(u+1)!==43||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===43)||f===43||f===32||f===10)return!1;for(o=u+2;o=a||t.src.charCodeAt(u+1)!==61||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===61)||f===61||f===32||f===10)return!1;for(o=u+2;o=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function NE(e,t){var n=t,r,o,i,a=!0,u=!0,c=e.posMax,f=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;n=c&&(a=!1),i=n-t,i>=4?a=u=!1:(o=n=t.options.maxNesting)return!1;for(t.pos=h+r,c=[r];t.pos?@[\]^_`{|}~-])/g,oK=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==126||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos?@[\]^_`{|}~-])/g,sK=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==94||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos=t.options.maxNesting||(r=v+1,o=ME(t,v),o<0))return!1;if(c=o+1,c=x)return!1;for(v=c,aK(t,c)?(a=t.linkContent,c=t.pos):a="",v=c;c=x||t.src.charCodeAt(c)!==41)return t.pos=m,!1;c++}else{if(t.linkLevel>0)return!1;for(;c=0?i=t.src.slice(v,c++):c=v-1),i||(typeof i>"u"&&(c=o+1),i=t.src.slice(r,o)),f=t.env.references[uK(i)],!f)return t.pos=m,!1;a=f.href,u=f.title}return n||(t.pos=r,t.posMax=o,h?t.push({type:"image",src:a,title:u,alt:t.src.substr(r,o-r),level:t.level}):(t.push({type:"link_open",href:a,title:u,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=c,t.posMax=x,!0},fK=m0,dK=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;return c+2>=u||t.src.charCodeAt(c)!==94||t.src.charCodeAt(c+1)!==91||t.level>=t.options.maxNesting||(r=c+2,o=fK(t,c+1),o<0)?!1:(n||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),i=t.env.footnotes.list.length,t.pos=r,t.posMax=o,t.push({type:"footnote_ref",id:i,level:t.level}),t.linkLevel++,a=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[i]={tokens:t.tokens.splice(a)},t.linkLevel--),t.pos=o+1,t.posMax=u,!0)},pK=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;if(c+3>u||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(c)!==91||t.src.charCodeAt(c+1)!==94||t.level>=t.options.maxNesting)return!1;for(o=c+2;o=u||(o++,r=t.src.slice(c+2,o-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(n||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:r,count:0},t.env.footnotes.refs[":"+r]=i):i=t.env.footnotes.refs[":"+r],a=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,t.push({type:"footnote_ref",id:i,subId:a,level:t.level})),t.pos=o,t.posMax=u,!0)},hK=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],mK=hK,BE=Fk,gK=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,vK=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/,yK=function(t,n){var r,o,i,a,u,c=t.pos;return t.src.charCodeAt(c)!==60||(r=t.src.slice(c),r.indexOf(">")<0)?!1:(o=r.match(vK),o?mK.indexOf(o[1].toLowerCase())<0||(a=o[0].slice(1,-1),u=BE(a),!t.parser.validateLink(a))?!1:(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,!0):(i=r.match(gK),i?(a=i[0].slice(1,-1),u=BE("mailto:"+a),t.parser.validateLink(u)?(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=i[0].length,!0):!1):!1))},Hk={};function g0(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var wK=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,xK=/[^"'=<>`\x00-\x20]+/,bK=/'[^']*'/,_K=/"[^"]*"/,SK=g0(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",xK)("single_quoted",bK)("double_quoted",_K)(),EK=g0(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",wK)("attr_value",SK)(),CK=g0(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",EK)(),AK=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,RK=/|/,kK=/<[?].*?[?]>/,TK=/]*>/,DK=//,PK=g0(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",CK)("close_tag",AK)("comment",RK)("processing",kK)("declaration",TK)("cdata",DK)();Hk.HTML_TAG_RE=PK;var OK=Hk.HTML_TAG_RE;function LK(e){var t=e|32;return t>=97&&t<=122}var NK=function(t,n){var r,o,i,a=t.pos;return!t.options.html||(i=t.posMax,t.src.charCodeAt(a)!==60||a+2>=i)||(r=t.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!LK(r))||(o=t.src.slice(a).match(OK),!o)?!1:(n||t.push({type:"htmltag",content:t.src.slice(a,a+o[0].length),level:t.level}),t.pos+=o[0].length,!0)},IE=Lk,MK=vn.has,BK=vn.isValidEntityCode,$E=vn.fromCodePoint,IK=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,$K=/^&([a-z][a-z0-9]{1,31});/i,FK=function(t,n){var r,o,i,a=t.pos,u=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+10){e.pos=i;return}for(o=0;o=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};v0.prototype.parse=function(e,t,n,r){var o=new zK(e,this,t,n,r);this.tokenize(o)};function VK(e){var t=["vbscript","javascript","file","data"],n=e.trim().toLowerCase();return n=jK.replaceEntities(n),!(n.indexOf(":")!==-1&&t.indexOf(n.split(":")[0])!==-1)}var WK=v0,qK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","linkify","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},HK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},GK={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},KK=vn.assign,YK=UH,XK=bG,ZK=GG,QK=WK,JK=h0,eY={default:qK,full:HK,commonmark:GK};function Gk(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Bs(e,t){typeof e!="string"&&(t=e,e="default"),this.inline=new QK,this.block=new ZK,this.core=new XK,this.renderer=new YK,this.ruler=new JK,this.options={},this.configure(eY[e]),this.set(t||{})}Bs.prototype.set=function(e){KK(this.options,e)};Bs.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})};Bs.prototype.use=function(e,t){return e(this,t),this};Bs.prototype.parse=function(e,t){var n=new Gk(this,e,t);return this.core.process(n),n.tokens};Bs.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Bs.prototype.parseInline=function(e,t){var n=new Gk(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Bs.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};jy.exports=Bs;jy.exports.utils=vn;var tY=jy.exports,nY=tY,Kk={exports:{}},rY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",oY=rY,iY=oY;function Yk(){}function Xk(){}Xk.resetWarningCache=Yk;var sY=function(){function e(r,o,i,a,u,c){if(c!==iY){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xk,resetWarningCache:Yk};return n.PropTypes=n,n};Kk.exports=sY();var yo=Kk.exports;const aY=r1(yo);Object.defineProperty(Ok,"__esModule",{value:!0});var lY=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Qk=function(t){var n=t.markdown,r=t.options;r=r===void 0?{}:r;var o=r.preset,i=FE(r,["preset"]),a=FE(t,["markdown","options"]),u=new dY.default(o||"default",i),c=u.render(n);return cY.default.createElement("div",lY({},a,{dangerouslySetInnerHTML:{__html:c}}))};Qk.propTypes={markdown:yo.string.isRequired,options:yo.shape({preset:yo.oneOf(["default","commonmark","full"]),html:yo.bool,xhtmlOut:yo.bool,breaks:yo.bool,langPrefix:yo.string,linkify:yo.bool,typographer:yo.bool,quotes:yo.string,highlight:yo.func})};var Jk=Ok.default=Qk;const Hc={black:"#000",white:"#fff"},Za={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ja={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},el={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},tl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Xu={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},pY={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"};function Rs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Zn(fu,--Fr):0,Zl--,On===10&&(Zl=1,w0--),On}function Jr(){return On=Fr2||Kc(On)>3?"":" "}function PY(e,t){for(;--t&&Jr()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return wf(e,_p()+(t<6&&hi()==32&&Jr()==32))}function z2(e){for(;Jr();)switch(On){case e:return Fr;case 34:case 39:e!==34&&e!==39&&z2(On);break;case 40:e===41&&z2(e);break;case 92:Jr();break}return Fr}function OY(e,t){for(;Jr()&&e+On!==57;)if(e+On===84&&hi()===47)break;return"/*"+wf(t,Fr-1)+"*"+y0(e===47?e:Jr())}function LY(e){for(;!Kc(hi());)Jr();return wf(e,Fr)}function NY(e){return s4(Ep("",null,null,null,[""],e=i4(e),0,[0],e))}function Ep(e,t,n,r,o,i,a,u,c){for(var f=0,p=0,h=a,m=0,x=0,v=0,y=1,A=1,_=1,w=0,S="",k=o,T=i,E=r,L=S;A;)switch(v=w,w=Jr()){case 40:if(v!=108&&Zn(L,h-1)==58){U2(L+=Dt(Sp(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:L+=Sp(w);break;case 9:case 10:case 13:case 32:L+=DY(v);break;case 92:L+=PY(_p()-1,7);continue;case 47:switch(hi()){case 42:case 47:Gd(MY(OY(Jr(),_p()),t,n),c);break;default:L+="/"}break;case 123*y:u[f++]=ui(L)*_;case 125*y:case 59:case 0:switch(w){case 0:case 125:A=0;case 59+p:_==-1&&(L=Dt(L,/\f/g,"")),x>0&&ui(L)-h&&Gd(x>32?zE(L+";",r,n,h-1):zE(Dt(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(Gd(E=UE(L,t,n,f,p,o,u,S,k=[],T=[],h),i),w===123)if(p===0)Ep(L,t,E,E,k,i,h,u,T);else switch(m===99&&Zn(L,3)===110?100:m){case 100:case 108:case 109:case 115:Ep(e,E,E,r&&Gd(UE(e,E,E,0,0,o,u,S,o,k=[],h),T),o,T,h,u,r?k:T);break;default:Ep(L,E,E,E,[""],T,0,u,T)}}f=p=x=0,y=_=1,S=L="",h=a;break;case 58:h=1+ui(L),x=v;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&TY()==125)continue}switch(L+=y0(w),w*y){case 38:_=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(ui(L)-1)*_,_=1;break;case 64:hi()===45&&(L+=Sp(Jr())),m=hi(),p=h=ui(S=L+=LY(_p())),w++;break;case 45:v===45&&ui(L)==2&&(y=0)}}return i}function UE(e,t,n,r,o,i,a,u,c,f,p){for(var h=o-1,m=o===0?i:[""],x=Yy(m),v=0,y=0,A=0;v0?m[_]+" "+w:Dt(w,/&\f/g,m[_])))&&(c[A++]=S);return x0(e,t,n,o===0?Gy:u,c,f,p)}function MY(e,t,n){return x0(e,t,n,t4,y0(kY()),Gc(e,2,-2),0)}function zE(e,t,n,r){return x0(e,t,n,Ky,Gc(e,0,r),Gc(e,r+1,-1),r)}function Ll(e,t){for(var n="",r=Yy(e),o=0;o6)switch(Zn(e,t+1)){case 109:if(Zn(e,t+4)!==45)break;case 102:return Dt(e,/(.+:)(.+)-([^]+)/,"$1"+Tt+"$2-$3$1"+uh+(Zn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~U2(e,"stretch")?a4(Dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zn(e,t+1)!==115)break;case 6444:switch(Zn(e,ui(e)-3-(~U2(e,"!important")&&10))){case 107:return Dt(e,":",":"+Tt)+e;case 101:return Dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tt+(Zn(e,14)===45?"inline-":"")+"box$3$1"+Tt+"$2$3$1"+ur+"$2box$3")+e}break;case 5936:switch(Zn(e,t+11)){case 114:return Tt+e+ur+Dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tt+e+ur+Dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tt+e+ur+Dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tt+e+ur+e+e}return e}var WY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ky:t.return=a4(t.value,t.length);break;case n4:return Ll([Zu(t,{value:Dt(t.value,"@","@"+Tt)})],o);case Gy:if(t.length)return RY(t.props,function(i){switch(AY(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ll([Zu(t,{props:[Dt(i,/:(read-\w+)/,":"+uh+"$1")]})],o);case"::placeholder":return Ll([Zu(t,{props:[Dt(i,/:(plac\w+)/,":"+Tt+"input-$1")]}),Zu(t,{props:[Dt(i,/:(plac\w+)/,":"+uh+"$1")]}),Zu(t,{props:[Dt(i,/:(plac\w+)/,ur+"input-$1")]})],o)}return""})}},qY=[WY],l4=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var A=y.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||qY,i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var A=y.getAttribute("data-emotion").split(" "),_=1;_o&&(i=i??"..",r=r.substring(0,o-i.length)+i),r},indexOf:function(r,o){if(Array.prototype.indexOf)return r.indexOf(o);for(var i=0,a=r.length;i=0;i--)o(r[i])===!0&&r.splice(i,1)},splitAndCapture:function(r,o){if(!o.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var i=[],a=0,u;u=o.exec(r);)i.push(r.substring(a,u.index)),i.push(u[0]),a=u.index+u[0].length;return i.push(r.substring(a)),i},trim:function(r){return r.replace(this.trimRegex,"")}},n.HtmlTag=n.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(r){n.Util.assign(this,r),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(r){return this.tagName=r,this},getTagName:function(){return this.tagName||""},setAttr:function(r,o){var i=this.getAttrs();return i[r]=o,this},getAttr:function(r){return this.getAttrs()[r]},setAttrs:function(r){var o=this.getAttrs();return n.Util.assign(o,r),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(r){return this.setAttr("class",r)},addClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;f=c.shift();)a(u,f)===-1&&u.push(f);return this.getAttrs().class=u.join(" "),this},removeClass:function(r){for(var o=this.getClass(),i=this.whitespaceRegex,a=n.Util.indexOf,u=o?o.split(i):[],c=r.split(i),f;u.length&&(f=c.shift());){var p=a(u,f);p!==-1&&u.splice(p,1)}return this.getAttrs().class=u.join(" "),this},getClass:function(){return this.getAttrs().class||""},hasClass:function(r){return(" "+this.getClass()+" ").indexOf(" "+r+" ")!==-1},setInnerHtml:function(r){return this.innerHtml=r,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var r=this.getTagName(),o=this.buildAttrsStr();return o=o?" "+o:"",["<",r,o,">",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var r=this.getAttrs(),o=[];for(var i in r)r.hasOwnProperty(i)&&o.push(i+'="'+r[i]+'"');return o.join(" ")}}),n.RegexLib=function(){var r="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",i=r+o,a=new RegExp("["+i+".\\-]*["+i+"\\-]"),u=/(?:travelersinsurance|sandvikcoromant|kerryproperties|cancerresearch|weatherchannel|kerrylogistics|spreadbetting|international|wolterskluwer|lifeinsurance|construction|pamperedchef|scholarships|versicherung|bridgestone|creditunion|kerryhotels|investments|productions|blackfriday|enterprises|lamborghini|photography|motorcycles|williamhill|playstation|contractors|barclaycard|accountants|redumbrella|engineering|management|telefonica|protection|consulting|tatamotors|creditcard|vlaanderen|schaeffler|associates|properties|foundation|republican|bnpparibas|boehringer|eurovision|extraspace|industries|immobilien|university|technology|volkswagen|healthcare|restaurant|cuisinella|vistaprint|apartments|accountant|travelers|homedepot|institute|vacations|furniture|fresenius|insurance|christmas|bloomberg|solutions|barcelona|firestone|financial|kuokgroup|fairwinds|community|passagens|goldpoint|equipment|lifestyle|yodobashi|aquarelle|marketing|analytics|education|amsterdam|statefarm|melbourne|allfinanz|directory|microsoft|stockholm|montblanc|accenture|lancaster|landrover|everbank|istanbul|graphics|grainger|ipiranga|softbank|attorney|pharmacy|saarland|catering|airforce|yokohama|mortgage|frontier|mutuelle|stcgroup|memorial|pictures|football|symantec|cipriani|ventures|telecity|cityeats|verisign|flsmidth|boutique|cleaning|firmdale|clinique|clothing|redstone|infiniti|deloitte|feedback|services|broadway|plumbing|commbank|training|barclays|exchange|computer|brussels|software|delivery|barefoot|builders|business|bargains|engineer|holdings|download|security|helsinki|lighting|movistar|discount|hdfcbank|supplies|marriott|property|diamonds|capetown|partners|democrat|jpmorgan|bradesco|budapest|rexroth|zuerich|shriram|academy|science|support|youtube|singles|surgery|alibaba|statoil|dentist|schwarz|android|cruises|cricket|digital|markets|starhub|systems|courses|coupons|netbank|country|domains|corsica|network|neustar|realtor|lincoln|limited|schmidt|yamaxun|cooking|contact|auction|spiegel|liaison|leclerc|latrobe|lasalle|abogado|compare|lanxess|exposed|express|company|cologne|college|avianca|lacaixa|fashion|recipes|ferrero|komatsu|storage|wanggou|clubmed|sandvik|fishing|fitness|bauhaus|kitchen|flights|florist|flowers|watches|weather|temasek|samsung|bentley|forsale|channel|theater|frogans|theatre|okinawa|website|tickets|jewelry|gallery|tiffany|iselect|shiksha|brother|organic|wedding|genting|toshiba|origins|philips|hyundai|hotmail|hoteles|hosting|rentals|windows|cartier|bugatti|holiday|careers|whoswho|hitachi|panerai|caravan|reviews|guitars|capital|trading|hamburg|hangout|finance|stream|family|abbott|health|review|travel|report|hermes|hiphop|gratis|career|toyota|hockey|dating|repair|google|social|soccer|reisen|global|otsuka|giving|unicom|casino|photos|center|broker|rocher|orange|bostik|garden|insure|ryukyu|bharti|safety|physio|sakura|oracle|online|jaguar|gallup|piaget|tienda|futbol|pictet|joburg|webcam|berlin|office|juegos|kaufen|chanel|chrome|xihuan|church|tennis|circle|kinder|flickr|bayern|claims|clinic|viajes|nowruz|xperia|norton|yachts|studio|coffee|camera|sanofi|nissan|author|expert|events|comsec|lawyer|tattoo|viking|estate|villas|condos|realty|yandex|energy|emerck|virgin|vision|durban|living|school|coupon|london|taobao|natura|taipei|nagoya|luxury|walter|aramco|sydney|madrid|credit|maison|makeup|schule|market|anquan|direct|design|swatch|suzuki|alsace|vuelos|dental|alipay|voyage|shouji|voting|airtel|mutual|degree|supply|agency|museum|mobily|dealer|monash|select|mormon|active|moscow|racing|datsun|quebec|nissay|rodeo|email|gifts|works|photo|chloe|edeka|cheap|earth|vista|tushu|koeln|glass|shoes|globo|tunes|gmail|nokia|space|kyoto|black|ricoh|seven|lamer|sener|epson|cisco|praxi|trust|citic|crown|shell|lease|green|legal|lexus|ninja|tatar|gripe|nikon|group|video|wales|autos|gucci|party|nexus|guide|linde|adult|parts|amica|lixil|boats|azure|loans|locus|cymru|lotte|lotto|stada|click|poker|quest|dabur|lupin|nadex|paris|faith|dance|canon|place|gives|trade|skype|rocks|mango|cloud|boots|smile|final|swiss|homes|honda|media|horse|cards|deals|watch|bosch|house|pizza|miami|osaka|tours|total|xerox|coach|sucks|style|delta|toray|iinet|tools|money|codes|beats|tokyo|salon|archi|movie|baidu|study|actor|yahoo|store|apple|world|forex|today|bible|tmall|tirol|irish|tires|forum|reise|vegas|vodka|sharp|omega|weber|jetzt|audio|promo|build|bingo|chase|gallo|drive|dubai|rehab|press|solar|sale|beer|bbva|bank|band|auto|sapo|sarl|saxo|audi|asia|arte|arpa|army|yoga|ally|zara|scor|scot|sexy|seat|zero|seek|aero|adac|zone|aarp|maif|meet|meme|menu|surf|mini|mobi|mtpc|porn|desi|star|ltda|name|talk|navy|love|loan|live|link|news|limo|like|spot|life|nico|lidl|lgbt|land|taxi|team|tech|kred|kpmg|sony|song|kiwi|kddi|jprs|jobs|sohu|java|itau|tips|info|immo|icbc|hsbc|town|host|page|toys|here|help|pars|haus|guru|guge|tube|goog|golf|gold|sncf|gmbh|gift|ggee|gent|gbiz|game|vana|pics|fund|ford|ping|pink|fish|film|fast|farm|play|fans|fail|plus|skin|pohl|fage|moda|post|erni|dvag|prod|doha|prof|docs|viva|diet|luxe|site|dell|sina|dclk|show|qpon|date|vote|cyou|voto|read|coop|cool|wang|club|city|chat|cern|cash|reit|rent|casa|cars|care|camp|rest|call|cafe|weir|wien|rich|wiki|buzz|wine|book|bond|room|work|rsvp|shia|ruhr|blue|bing|shaw|bike|safe|xbox|best|pwc|mtn|lds|aig|boo|fyi|nra|nrw|ntt|car|gal|obi|zip|aeg|vin|how|one|ong|onl|dad|ooo|bet|esq|org|htc|bar|uol|ibm|ovh|gdn|ice|icu|uno|gea|ifm|bot|top|wtf|lol|day|pet|eus|wtc|ubs|tvs|aco|ing|ltd|ink|tab|abb|afl|cat|int|pid|pin|bid|cba|gle|com|cbn|ads|man|wed|ceb|gmo|sky|ist|gmx|tui|mba|fan|ski|iwc|app|pro|med|ceo|jcb|jcp|goo|dev|men|aaa|meo|pub|jlc|bom|jll|gop|jmp|mil|got|gov|win|jot|mma|joy|trv|red|cfa|cfd|bio|moe|moi|mom|ren|biz|aws|xin|bbc|dnp|buy|kfh|mov|thd|xyz|fit|kia|rio|rip|kim|dog|vet|nyc|bcg|mtr|bcn|bms|bmw|run|bzh|rwe|tel|stc|axa|kpn|fly|krd|cab|bnl|foo|crs|eat|tci|sap|srl|nec|sas|net|cal|sbs|sfr|sca|scb|csc|edu|new|xxx|hiv|fox|wme|ngo|nhk|vip|sex|frl|lat|yun|law|you|tax|soy|sew|om|ac|hu|se|sc|sg|sh|sb|sa|rw|ru|rs|ro|re|qa|py|si|pw|pt|ps|sj|sk|pr|pn|pm|pl|sl|sm|pk|sn|ph|so|pg|pf|pe|pa|zw|nz|nu|nr|np|no|nl|ni|ng|nf|sr|ne|st|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|su|mn|mm|ml|mk|mh|mg|me|sv|md|mc|sx|sy|ma|ly|lv|sz|lu|lt|ls|lr|lk|li|lc|lb|la|tc|kz|td|ky|kw|kr|kp|kn|km|ki|kh|tf|tg|th|kg|ke|jp|jo|jm|je|it|is|ir|tj|tk|tl|tm|iq|tn|to|io|in|im|il|ie|ad|sd|ht|hr|hn|hm|tr|hk|gy|gw|gu|gt|gs|gr|gq|tt|gp|gn|gm|gl|tv|gi|tw|tz|ua|gh|ug|uk|gg|gf|ge|gd|us|uy|uz|va|gb|ga|vc|ve|fr|fo|fm|fk|fj|vg|vi|fi|eu|et|es|er|eg|ee|ec|dz|do|dm|dk|vn|dj|de|cz|cy|cx|cw|vu|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|wf|bz|by|bw|bv|bt|bs|br|bo|bn|bm|bj|bi|ws|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ye|ar|aq|ao|am|al|yt|ai|za|ag|af|ae|zm|id)\b/;return{alphaNumericCharsStr:i,domainNameRegex:a,tldRegex:u}}(),n.AnchorTagBuilder=n.Util.extend(Object,{constructor:function(r){n.Util.assign(this,r)},build:function(r){return new n.HtmlTag({tagName:"a",attrs:this.createAttrs(r.getType(),r.getAnchorHref()),innerHtml:this.processAnchorText(r.getAnchorText())})},createAttrs:function(r,o){var i={href:o},a=this.createCssClass(r);return a&&(i.class=a),this.newWindow&&(i.target="_blank",i.rel="noopener noreferrer"),i},createCssClass:function(r){var o=this.className;return o?o+" "+o+"-"+r:""},processAnchorText:function(r){return r=this.doTruncate(r),r},doTruncate:function(r){var o=this.truncate;if(!o||!o.length)return r;var i=o.length,a=o.location;return a==="smart"?n.truncate.TruncateSmart(r,i,".."):a==="middle"?n.truncate.TruncateMiddle(r,i,".."):n.truncate.TruncateEnd(r,i,"..")}}),n.htmlParser.HtmlParser=n.Util.extend(Object,{htmlRegex:function(){var r=/!--([\s\S]+?)--/,o=/[0-9a-zA-Z][0-9a-zA-Z:]*/,i=/[^\s"'>\/=\x00-\x1F\x7F]+/,a=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,u=i.source+"(?:\\s*=\\s*"+a.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",u,"|",a.source+")",")*",">",")","|","(?:","<(/)?","(?:",r.source,"|","(?:","("+o.source+")","(?:","(?:\\s+|\\b)",u,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(r){for(var o=this.htmlRegex,i,a=0,u,c=[];(i=o.exec(r))!==null;){var f=i[0],p=i[3],h=i[1]||i[4],m=!!i[2],x=i.index,v=r.substring(a,x);v&&(u=this.parseTextAndEntityNodes(a,v),c.push.apply(c,u)),p?c.push(this.createCommentNode(x,f,p)):c.push(this.createElementNode(x,f,h,m)),a=x+f.length}if(a0&&A==="@")&&!(v>0&&y&&this.wordCharRegExp.test(A))){if(this.matchHasUnbalancedClosingParen(f))f=f.substr(0,f.length-1);else{var _=this.matchHasInvalidCharAfterTld(f,p);_>-1&&(f=f.substr(0,_))}var w=p?"scheme":h?"www":"tld",S=!!p;u.push(new n.match.Url({tagBuilder:a,matchedText:f,offset:v,urlMatchType:w,url:f,protocolUrlMatch:S,protocolRelativeMatch:!!y,stripPrefix:i}))}}return u},matchHasUnbalancedClosingParen:function(r){var o=r.charAt(r.length-1);if(o===")"){var i=r.match(this.openParensRe),a=r.match(this.closeParensRe),u=i&&i.length||0,c=a&&a.length||0;if(u0&&(u=r.substr(-1*Math.floor(a/2))),(r.substr(0,Math.ceil(a/2))+i+u).substr(0,o)},n.truncate.TruncateSmart=function(r,o,i){var a=function(S){var k={},T=S,E=T.match(/^([a-z]+):\/\//i);return E&&(k.scheme=E[1],T=T.substr(E[0].length)),E=T.match(/^(.*?)(?=(\?|#|\/|$))/i),E&&(k.host=E[1],T=T.substr(E[0].length)),E=T.match(/^\/(.*?)(?=(\?|#|$))/i),E&&(k.path=E[1],T=T.substr(E[0].length)),E=T.match(/^\?(.*?)(?=(#|$))/i),E&&(k.query=E[1],T=T.substr(E[0].length)),E=T.match(/^#(.*?)$/i),E&&(k.fragment=E[1]),k},u=function(S){var k="";return S.scheme&&S.host&&(k+=S.scheme+"://"),S.host&&(k+=S.host),S.path&&(k+="/"+S.path),S.query&&(k+="?"+S.query),S.fragment&&(k+="#"+S.fragment),k},c=function(S,k){var T=k/2,E=Math.ceil(T),L=-1*Math.floor(T),$="";return L<0&&($=S.substr(L)),S.substr(0,E)+i+$};if(r.length<=o)return r;var f=o-i.length,p=a(r);if(p.query){var h=p.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);h&&(p.query=p.query.substr(0,h[1].length),r=u(p))}if(r.length<=o||(p.host&&(p.host=p.host.replace(/^www\./,""),r=u(p)),r.length<=o))return r;var m="";if(p.host&&(m+=p.host),m.length>=f)return p.host.length==o?(p.host.substr(0,o-i.length)+i).substr(0,o):c(m,f).substr(0,o);var x="";if(p.path&&(x+="/"+p.path),p.query&&(x+="?"+p.query),x)if((m+x).length>=f){if((m+x).length==o)return(m+x).substr(0,o);var v=f-m.length;return(m+c(x,v)).substr(0,o)}else m+=x;if(p.fragment){var y="#"+p.fragment;if((m+y).length>=f){if((m+y).length==o)return(m+y).substr(0,o);var A=f-m.length;return(m+c(y,A)).substr(0,o)}else m+=y}if(p.scheme&&p.host){var _=p.scheme+"://";if((m+_).length0&&(w=m.substr(-1*Math.floor(f/2))),(m.substr(0,Math.ceil(f/2))+i+w).substr(0,o)},n})})(zk);var cG=zk.exports,fG=cG,dG=/www|@|\:\/\//;function pG(e){return/^\s]/i.test(e)}function hG(e){return/^<\/a\s*>/i.test(e)}function mG(){var e=[],t=new fG({stripPrefix:!1,url:!0,email:!0,twitter:!1,replaceFn:function(n,r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}var gG=function(t){var n,r,o,i,a,u,c,f,p,h,m,x=t.tokens,v=null,y,A;if(t.options.linkify){for(r=0,o=x.length;r=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="htmltag"&&(pG(a.content)&&m>0&&m--,hG(a.content)&&m++),!(m>0)&&a.type==="text"&&dG.test(a.content)){if(v||(v=mG(),y=v.links,A=v.autolinker),u=a.content,y.length=0,A.link(u),!y.length)continue;for(c=[],h=a.level,f=0;f=this.eMarks[t]};La.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tr;)if(n!==this.src.charCodeAt(--t))return t+1;return t};La.prototype.getLines=function(t,n,r,o){var i,a,u,c,f,p=t;if(t>=n)return"";if(p+1===n)return a=this.bMarks[p]+Math.min(this.tShift[p],r),u=o?this.eMarks[p]+1:this.eMarks[p],this.src.slice(a,u);for(c=new Array(n-t),i=0;pr&&(f=r),f<0&&(f=0),a=this.bMarks[p]+f,p+1=4){o++,i=o;continue}break}return t.line=o,t.tokens.push({type:"code",content:t.getLines(n,i,4+t.blkIndent,!0),block:!0,lines:[n,t.line],level:t.level}),!0},bG=function(t,n,r,o){var i,a,u,c,f,p=!1,h=t.bMarks[n]+t.tShift[n],m=t.eMarks[n];if(h+3>m||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(f=h,h=t.skipChars(h,i),a=h-f,a<3)||(u=t.src.slice(h,m).trim(),u.indexOf("`")>=0))return!1;if(o)return!0;for(c=n;c++,!(c>=r||(h=f=t.bMarks[c]+t.tShift[c],m=t.eMarks[c],h=4)&&(h=t.skipChars(h,i),!(h-f_||t.src.charCodeAt(A++)!==62||t.level>=t.options.maxNesting)return!1;if(o)return!0;for(t.src.charCodeAt(A)===32&&A++,f=t.blkIndent,t.blkIndent=0,c=[t.bMarks[n]],t.bMarks[n]=A,A=A<_?t.skipSpaces(A):A,a=A>=_,u=[t.tShift[n]],t.tShift[n]=A-t.bMarks[n],m=t.parser.ruler.getRules("blockquote"),i=n+1;i=_));i++){if(t.src.charCodeAt(A++)===62){t.src.charCodeAt(A)===32&&A++,c.push(t.bMarks[i]),t.bMarks[i]=A,A=A<_?t.skipSpaces(A):A,a=A>=_,u.push(t.tShift[i]),t.tShift[i]=A-t.bMarks[i];continue}if(a)break;for(y=!1,x=0,v=m.length;xf||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=o||(n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43)||r=o||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=o)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(n===41||n===46)break;return-1}}return r=0)_=!0;else if((m=TE(t,n))>=0)_=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(A=t.src.charCodeAt(m-1),o)return!0;for(S=t.tokens.length,_?(h=t.bMarks[n]+t.tShift[n],y=Number(t.src.substr(h,m-h-1)),t.tokens.push({type:"ordered_list_open",order:y,lines:T=[n,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:T=[n,0],level:t.level++}),i=n,k=!1,$=t.parser.ruler.getRules("list");i=x?v=1:v=w-m,v>4&&(v=1),v<1&&(v=1),a=m-t.bMarks[i]+v,t.tokens.push({type:"list_item_open",lines:E=[n,0],level:t.level++}),c=t.blkIndent,f=t.tight,u=t.tShift[n],p=t.parentType,t.tShift[n]=w-t.bMarks[n],t.blkIndent=a,t.tight=!0,t.parentType="list",t.parser.tokenize(t,n,r,!0),(!t.tight||k)&&(L=!1),k=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=c,t.tShift[n]=u,t.tight=f,t.parentType=p,t.tokens.push({type:"list_item_close",level:--t.level}),i=n=t.line,E[1]=i,w=t.bMarks[n],!(i>=r||t.isEmpty(i)||t.tShift[i]h||t.src.charCodeAt(p)!==91||t.src.charCodeAt(p+1)!==94||t.level>=t.options.maxNesting)return!1;for(c=p+2;c=h||t.src.charCodeAt(++c)!==58?!1:(o||(c++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),f=t.src.slice(p+2,c-2),t.env.footnotes.refs[":"+f]=-1,t.tokens.push({type:"footnote_reference_open",label:f,level:t.level++}),i=t.bMarks[n],a=t.tShift[n],u=t.parentType,t.tShift[n]=t.skipSpaces(c)-c,t.bMarks[n]=c,t.blkIndent+=4,t.parentType="footnote",t.tShift[n]=f||(i=t.src.charCodeAt(c),i!==35||c>=f))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&t.src.charCodeAt(u-1)===32&&(f=u),t.line=n+1,t.tokens.push({type:"heading_open",hLevel:a,lines:[n,t.line],level:t.level}),c=r||t.tShift[u]3||(i=t.bMarks[u]+t.tShift[u],a=t.eMarks[u],i>=a)||(o=t.src.charCodeAt(i),o!==45&&o!==61)||(i=t.skipChars(i,o),i=t.skipSpaces(i),i]/,OG=/^<\/([a-zA-Z]{1,15})[\s>]/;function LG(e){var t=e|32;return t>=97&&t<=122}var NG=function(t,n,r,o){var i,a,u,c=t.bMarks[n],f=t.eMarks[n],p=t.tShift[n];if(c+=p,!t.options.html||p>3||c+2>=f||t.src.charCodeAt(c)!==60)return!1;if(i=t.src.charCodeAt(c+1),i===33||i===63){if(o)return!0}else if(i===47||LG(i)){if(i===47){if(a=t.src.slice(c,f).match(OG),!a)return!1}else if(a=t.src.slice(c,f).match(PG),!a)return!1;if(DG[a[1].toLowerCase()]!==!0)return!1;if(o)return!0}else return!1;for(u=n+1;ur||(f=n+1,t.tShift[f]=t.eMarks[f])||(i=t.src.charCodeAt(u),i!==124&&i!==45&&i!==58)||(a=iv(t,n+1),!/^[-:| ]+$/.test(a))||(p=a.split("|"),p<=2))return!1;for(m=[],c=0;c=i||(r=e.src.charCodeAt(o++),r!==126&&r!==58)||(n=e.skipSpaces(o),o===n)||n>=i?-1:n}function BG(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n=0;if(h=n+1,t.isEmpty(h)&&++h>r||t.tShift[h]=t.options.maxNesting)return!1;p=t.tokens.length,t.tokens.push({type:"dl_open",lines:f=[n,0],level:t.level++}),u=n,a=h;e:for(;;){for(w=!0,_=!1,t.tokens.push({type:"dt_open",lines:[u,u],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(u,u+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[u,u],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:c=[h,0],level:t.level++}),A=t.tight,x=t.ddIndent,m=t.blkIndent,y=t.tShift[a],v=t.parentType,t.blkIndent=t.ddIndent=t.tShift[a]+2,t.tShift[a]=i-t.bMarks[a],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,a,r,!0),(!t.tight||_)&&(w=!1),_=t.line-a>1&&t.isEmpty(t.line-1),t.tShift[a]=y,t.tight=A,t.parentType=v,t.blkIndent=m,t.ddIndent=x,t.tokens.push({type:"dd_close",level:--t.level}),c[1]=h=t.line,h>=r||t.tShift[h]=r||(u=h,t.isEmpty(u))||t.tShift[u]=r)||(t.isEmpty(a)&&a++,a>=r)||t.tShift[a]3)){for(i=!1,a=0,u=f.length;a=n||e.tShift[i]=0&&(e=e.replace(zG,function(u,c){var f;return e.charCodeAt(c)===10?(i=c+1,a=0,u):(f=" ".slice((c-i-a)%4),a=c-i+1,f)})),o=new UG(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};var WG=Wy;function qG(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}var HG=function(t,n){for(var r=t.pos;r=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var a=r-2;a>=0;a--)if(t.pending.charCodeAt(a)!==32){t.pending=t.pending.substring(0,a+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(i++;i?@[]^_`{|}~-".split("").forEach(function(e){qy[e.charCodeAt(0)]=1});var KG=function(t,n){var r,o=t.pos,i=t.posMax;if(t.src.charCodeAt(o)!==92)return!1;if(o++,o=a||t.src.charCodeAt(u+1)!==126||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===126)||f===126||f===32||f===10)return!1;for(o=u+2;ou+3)return t.pos+=o-u,n||(t.pending+=t.src.slice(u,o)),!0;for(t.pos=u+2,i=1;t.pos+1=a||t.src.charCodeAt(u+1)!==43||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===43)||f===43||f===32||f===10)return!1;for(o=u+2;o=a||t.src.charCodeAt(u+1)!==61||t.level>=t.options.maxNesting||(c=u>0?t.src.charCodeAt(u-1):-1,f=t.src.charCodeAt(u+2),c===61)||f===61||f===32||f===10)return!1;for(o=u+2;o=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function LE(e,t){var n=t,r,o,i,a=!0,u=!0,c=e.posMax,f=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;n=c&&(a=!1),i=n-t,i>=4?a=u=!1:(o=n=t.options.maxNesting)return!1;for(t.pos=h+r,c=[r];t.pos?@[\]^_`{|}~-])/g,tK=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==126||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos?@[\]^_`{|}~-])/g,rK=function(t,n){var r,o,i=t.posMax,a=t.pos;if(t.src.charCodeAt(a)!==94||n||a+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=a+1;t.pos=t.options.maxNesting||(r=v+1,o=NE(t,v),o<0))return!1;if(c=o+1,c=x)return!1;for(v=c,oK(t,c)?(a=t.linkContent,c=t.pos):a="",v=c;c=x||t.src.charCodeAt(c)!==41)return t.pos=m,!1;c++}else{if(t.linkLevel>0)return!1;for(;c=0?i=t.src.slice(v,c++):c=v-1),i||(typeof i>"u"&&(c=o+1),i=t.src.slice(r,o)),f=t.env.references[sK(i)],!f)return t.pos=m,!1;a=f.href,u=f.title}return n||(t.pos=r,t.posMax=o,h?t.push({type:"image",src:a,title:u,alt:t.src.substr(r,o-r),level:t.level}):(t.push({type:"link_open",href:a,title:u,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=c,t.posMax=x,!0},lK=m0,uK=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;return c+2>=u||t.src.charCodeAt(c)!==94||t.src.charCodeAt(c+1)!==91||t.level>=t.options.maxNesting||(r=c+2,o=lK(t,c+1),o<0)?!1:(n||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),i=t.env.footnotes.list.length,t.pos=r,t.posMax=o,t.push({type:"footnote_ref",id:i,level:t.level}),t.linkLevel++,a=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[i]={tokens:t.tokens.splice(a)},t.linkLevel--),t.pos=o+1,t.posMax=u,!0)},cK=function(t,n){var r,o,i,a,u=t.posMax,c=t.pos;if(c+3>u||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(c)!==91||t.src.charCodeAt(c+1)!==94||t.level>=t.options.maxNesting)return!1;for(o=c+2;o=u||(o++,r=t.src.slice(c+2,o-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(n||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:r,count:0},t.env.footnotes.refs[":"+r]=i):i=t.env.footnotes.refs[":"+r],a=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,t.push({type:"footnote_ref",id:i,subId:a,level:t.level})),t.pos=o,t.posMax=u,!0)},fK=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],dK=fK,ME=Ik,pK=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,hK=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/,mK=function(t,n){var r,o,i,a,u,c=t.pos;return t.src.charCodeAt(c)!==60||(r=t.src.slice(c),r.indexOf(">")<0)?!1:(o=r.match(hK),o?dK.indexOf(o[1].toLowerCase())<0||(a=o[0].slice(1,-1),u=ME(a),!t.parser.validateLink(a))?!1:(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,!0):(i=r.match(pK),i?(a=i[0].slice(1,-1),u=ME("mailto:"+a),t.parser.validateLink(u)?(n||(t.push({type:"link_open",href:u,level:t.level}),t.push({type:"text",content:a,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=i[0].length,!0):!1):!1))},Wk={};function g0(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var gK=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,vK=/[^"'=<>`\x00-\x20]+/,yK=/'[^']*'/,wK=/"[^"]*"/,xK=g0(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",vK)("single_quoted",yK)("double_quoted",wK)(),bK=g0(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",gK)("attr_value",xK)(),_K=g0(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",bK)(),SK=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,EK=/|/,CK=/<[?].*?[?]>/,AK=/]*>/,RK=//,kK=g0(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",_K)("close_tag",SK)("comment",EK)("processing",CK)("declaration",AK)("cdata",RK)();Wk.HTML_TAG_RE=kK;var TK=Wk.HTML_TAG_RE;function DK(e){var t=e|32;return t>=97&&t<=122}var PK=function(t,n){var r,o,i,a=t.pos;return!t.options.html||(i=t.posMax,t.src.charCodeAt(a)!==60||a+2>=i)||(r=t.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!DK(r))||(o=t.src.slice(a).match(TK),!o)?!1:(n||t.push({type:"htmltag",content:t.src.slice(a,a+o[0].length),level:t.level}),t.pos+=o[0].length,!0)},BE=Pk,OK=vn.has,LK=vn.isValidEntityCode,IE=vn.fromCodePoint,NK=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,MK=/^&([a-z][a-z0-9]{1,31});/i,BK=function(t,n){var r,o,i,a=t.pos,u=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+10){e.pos=i;return}for(o=0;o=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};v0.prototype.parse=function(e,t,n,r){var o=new $K(e,this,t,n,r);this.tokenize(o)};function UK(e){var t=["vbscript","javascript","file","data"],n=e.trim().toLowerCase();return n=FK.replaceEntities(n),!(n.indexOf(":")!==-1&&t.indexOf(n.split(":")[0])!==-1)}var zK=v0,jK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","linkify","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},VK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},WK={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},qK=vn.assign,HK=IH,GK=yG,KK=WG,YK=zK,XK=h0,ZK={default:jK,full:VK,commonmark:WK};function qk(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Bs(e,t){typeof e!="string"&&(t=e,e="default"),this.inline=new YK,this.block=new KK,this.core=new GK,this.renderer=new HK,this.ruler=new XK,this.options={},this.configure(ZK[e]),this.set(t||{})}Bs.prototype.set=function(e){qK(this.options,e)};Bs.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})};Bs.prototype.use=function(e,t){return e(this,t),this};Bs.prototype.parse=function(e,t){var n=new qk(this,e,t);return this.core.process(n),n.tokens};Bs.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Bs.prototype.parseInline=function(e,t){var n=new qk(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Bs.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};zy.exports=Bs;zy.exports.utils=vn;var QK=zy.exports,JK=QK,Hk={exports:{}},eY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",tY=eY,nY=tY;function Gk(){}function Kk(){}Kk.resetWarningCache=Gk;var rY=function(){function e(r,o,i,a,u,c){if(c!==nY){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Kk,resetWarningCache:Gk};return n.PropTypes=n,n};Hk.exports=rY();var yo=Hk.exports;const oY=n1(yo);Object.defineProperty(Dk,"__esModule",{value:!0});var iY=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Xk=function(t){var n=t.markdown,r=t.options;r=r===void 0?{}:r;var o=r.preset,i=$E(r,["preset"]),a=$E(t,["markdown","options"]),u=new uY.default(o||"default",i),c=u.render(n);return aY.default.createElement("div",iY({},a,{dangerouslySetInnerHTML:{__html:c}}))};Xk.propTypes={markdown:yo.string.isRequired,options:yo.shape({preset:yo.oneOf(["default","commonmark","full"]),html:yo.bool,xhtmlOut:yo.bool,breaks:yo.bool,langPrefix:yo.string,linkify:yo.bool,typographer:yo.bool,quotes:yo.string,highlight:yo.func})};var Zk=Dk.default=Xk;const Hc={black:"#000",white:"#fff"},Qa={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ja={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},el={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},tl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},nl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Xu={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},cY={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"};function ks(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Qn(fu,--Fr):0,Zl--,On===10&&(Zl=1,w0--),On}function Jr(){return On=Fr2||Kc(On)>3?"":" "}function TY(e,t){for(;--t&&Jr()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return wf(e,_p()+(t<6&&hi()==32&&Jr()==32))}function U2(e){for(;Jr();)switch(On){case e:return Fr;case 34:case 39:e!==34&&e!==39&&U2(On);break;case 40:e===41&&U2(e);break;case 92:Jr();break}return Fr}function DY(e,t){for(;Jr()&&e+On!==57;)if(e+On===84&&hi()===47)break;return"/*"+wf(t,Fr-1)+"*"+y0(e===47?e:Jr())}function PY(e){for(;!Kc(hi());)Jr();return wf(e,Fr)}function OY(e){return o4(Ep("",null,null,null,[""],e=r4(e),0,[0],e))}function Ep(e,t,n,r,o,i,a,u,c){for(var f=0,p=0,h=a,m=0,x=0,v=0,y=1,A=1,_=1,w=0,S="",k=o,T=i,E=r,L=S;A;)switch(v=w,w=Jr()){case 40:if(v!=108&&Qn(L,h-1)==58){F2(L+=Dt(Sp(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:L+=Sp(w);break;case 9:case 10:case 13:case 32:L+=kY(v);break;case 92:L+=TY(_p()-1,7);continue;case 47:switch(hi()){case 42:case 47:Gd(LY(DY(Jr(),_p()),t,n),c);break;default:L+="/"}break;case 123*y:u[f++]=ui(L)*_;case 125*y:case 59:case 0:switch(w){case 0:case 125:A=0;case 59+p:_==-1&&(L=Dt(L,/\f/g,"")),x>0&&ui(L)-h&&Gd(x>32?UE(L+";",r,n,h-1):UE(Dt(L," ","")+";",r,n,h-2),c);break;case 59:L+=";";default:if(Gd(E=FE(L,t,n,f,p,o,u,S,k=[],T=[],h),i),w===123)if(p===0)Ep(L,t,E,E,k,i,h,u,T);else switch(m===99&&Qn(L,3)===110?100:m){case 100:case 108:case 109:case 115:Ep(e,E,E,r&&Gd(FE(e,E,E,0,0,o,u,S,o,k=[],h),T),o,T,h,u,r?k:T);break;default:Ep(L,E,E,E,[""],T,0,u,T)}}f=p=x=0,y=_=1,S=L="",h=a;break;case 58:h=1+ui(L),x=v;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&RY()==125)continue}switch(L+=y0(w),w*y){case 38:_=p>0?1:(L+="\f",-1);break;case 44:u[f++]=(ui(L)-1)*_,_=1;break;case 64:hi()===45&&(L+=Sp(Jr())),m=hi(),p=h=ui(S=L+=PY(_p())),w++;break;case 45:v===45&&ui(L)==2&&(y=0)}}return i}function FE(e,t,n,r,o,i,a,u,c,f,p){for(var h=o-1,m=o===0?i:[""],x=Ky(m),v=0,y=0,A=0;v0?m[_]+" "+w:Dt(w,/&\f/g,m[_])))&&(c[A++]=S);return x0(e,t,n,o===0?Hy:u,c,f,p)}function LY(e,t,n){return x0(e,t,n,Jk,y0(AY()),Gc(e,2,-2),0)}function UE(e,t,n,r){return x0(e,t,n,Gy,Gc(e,0,r),Gc(e,r+1,-1),r)}function Ll(e,t){for(var n="",r=Ky(e),o=0;o6)switch(Qn(e,t+1)){case 109:if(Qn(e,t+4)!==45)break;case 102:return Dt(e,/(.+:)(.+)-([^]+)/,"$1"+Tt+"$2-$3$1"+uh+(Qn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~F2(e,"stretch")?i4(Dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qn(e,t+1)!==115)break;case 6444:switch(Qn(e,ui(e)-3-(~F2(e,"!important")&&10))){case 107:return Dt(e,":",":"+Tt)+e;case 101:return Dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tt+(Qn(e,14)===45?"inline-":"")+"box$3$1"+Tt+"$2$3$1"+ur+"$2box$3")+e}break;case 5936:switch(Qn(e,t+11)){case 114:return Tt+e+ur+Dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tt+e+ur+Dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tt+e+ur+Dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tt+e+ur+e+e}return e}var jY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Gy:t.return=i4(t.value,t.length);break;case e4:return Ll([Zu(t,{value:Dt(t.value,"@","@"+Tt)})],o);case Hy:if(t.length)return CY(t.props,function(i){switch(EY(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ll([Zu(t,{props:[Dt(i,/:(read-\w+)/,":"+uh+"$1")]})],o);case"::placeholder":return Ll([Zu(t,{props:[Dt(i,/:(plac\w+)/,":"+Tt+"input-$1")]}),Zu(t,{props:[Dt(i,/:(plac\w+)/,":"+uh+"$1")]}),Zu(t,{props:[Dt(i,/:(plac\w+)/,ur+"input-$1")]})],o)}return""})}},VY=[jY],s4=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var A=y.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||VY,i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var A=y.getAttribute("data-emotion").split(" "),_=1;_=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 rX={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,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},oX=!1,iX=/[A-Z]|^ms/g,sX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m4=function(t){return t.charCodeAt(1)===45},VE=function(t){return t!=null&&typeof t!="boolean"},av=e4(function(e){return m4(e)?e:e.replace(iX,"-$&").toLowerCase()}),WE=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(sX,function(r,o,i){return ci={name:o,styles:i,next:ci},o})}return rX[t]!==1&&!m4(t)&&typeof n=="number"&&n!==0?n+"px":n},aX="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Yc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ci={name:o.name,styles:o.styles,next:ci},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ci={name:a.name,styles:a.styles,next:ci},a=a.next;var u=i.styles+";";return u}return lX(e,t,n)}case"function":{if(e!==void 0){var c=ci,f=n(e);return ci=c,Yc(e,t,f)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function lX(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?pX:hX},YE=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},mX=!1,gX=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return p4(n,r,o),cX(function(){return h4(n,r,o)}),null},vX=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var u=YE(t,n,r),c=u||KE(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,x=1;xt(wX(o)?n:o):t;return P.jsx(dX,{styles:r})}function ew(e,t){return j2(e,t)}const S4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},xX=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:_4,StyledEngineProvider:b4,ThemeContext:xf,css:x4,default:ew,internal_processStyles:S4,keyframes:bf},Symbol.toStringTag,{value:"Module"}));function Li(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 E4(e){if(!Li(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=E4(e[n])}),t}function ko(e,t,n={clone:!0}){const r=n.clone?V({},e):e;return Li(e)&&Li(t)&&Object.keys(t).forEach(o=>{Li(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Li(e[o])?r[o]=ko(e[o],t[o],n):n.clone?r[o]=Li(t[o])?E4(t[o]):t[o]:r[o]=t[o]}),r}const bX=Object.freeze(Object.defineProperty({__proto__:null,default:ko,isPlainObject:Li},Symbol.toStringTag,{value:"Module"})),_X=["values","unit","step"],SX=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>V({},n,{[r.key]:r.val}),{})};function C4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=it(e,_X),i=SX(t),a=Object.keys(i);function u(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,x){const v=a.indexOf(x);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:x)-r/100}${n})`}function p(m){return a.indexOf(m)+1`@media (min-width:${tw[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||XE;return t.reduce((a,u,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||XE;return Object.keys(t).reduce((a,u)=>{if(Object.keys(i.values||tw).indexOf(u)!==-1){const c=i.up(u);a[c]=n(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return n(t)}function A4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function R4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function CX(e,...t){const n=A4(e),r=[n,...t].reduce((o,i)=>ko(o,i),{});return R4(Object.keys(n),r)}function AX(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function uv({values:e,breakpoints:t,base:n}){const r=n||AX(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,u,c)=>(Array.isArray(e)?(a[u]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[u]=e[u]!=null?e[u]:e[i],i=u):a[u]=e,a),{})}function Bt(e){if(typeof e!="string")throw new Error(Rs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const RX=Object.freeze(Object.defineProperty({__proto__:null,default:Bt},Symbol.toStringTag,{value:"Module"}));function Ql(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ch(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ql(e,n)||r,t&&(o=t(o,r,e)),o}function En(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,f=Ql(c,r)||{};return ei(a,u,h=>{let m=ch(f,o,h);return h===m&&typeof h=="string"&&(m=ch(f,o,`${t}${h==="default"?"":Bt(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function kX(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const TX={m:"margin",p:"padding"},DX={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},PX=kX(e=>{if(e.length>2)if(ZE[e])e=ZE[e];else return[e];const[t,n]=e.split(""),r=TX[t],o=DX[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),nw=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nw,...rw];function _f(e,t,n,r){var o;const i=(o=Ql(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function ow(e){return _f(e,"spacing",8)}function Ea(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function OX(e,t){return n=>e.reduce((r,o)=>(r[o]=Ea(t,n),r),{})}function LX(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=PX(n),i=OX(o,r),a=e[n];return ei(e,a,i)}function k4(e,t){const n=ow(e.theme);return Object.keys(e).map(r=>LX(e,t,r,n)).reduce(bc,{})}function hn(e){return k4(e,nw)}hn.propTypes={};hn.filterProps=nw;function mn(e){return k4(e,rw)}mn.propTypes={};mn.filterProps=rw;function NX(e=8){if(e.mui)return e;const t=ow({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function P0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?bc(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Co(e){return typeof e!="number"?e:`${e}px solid`}function Mo(e,t){return En({prop:e,themeKey:"borders",transform:t})}const MX=Mo("border",Co),BX=Mo("borderTop",Co),IX=Mo("borderRight",Co),$X=Mo("borderBottom",Co),FX=Mo("borderLeft",Co),UX=Mo("borderColor"),zX=Mo("borderTopColor"),jX=Mo("borderRightColor"),VX=Mo("borderBottomColor"),WX=Mo("borderLeftColor"),qX=Mo("outline",Co),HX=Mo("outlineColor"),O0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_f(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ea(t,r)});return ei(e,e.borderRadius,n)}return null};O0.propTypes={};O0.filterProps=["borderRadius"];P0(MX,BX,IX,$X,FX,UX,zX,jX,VX,WX,O0,qX,HX);const L0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_f(e.theme,"spacing",8),n=r=>({gap:Ea(t,r)});return ei(e,e.gap,n)}return null};L0.propTypes={};L0.filterProps=["gap"];const N0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_f(e.theme,"spacing",8),n=r=>({columnGap:Ea(t,r)});return ei(e,e.columnGap,n)}return null};N0.propTypes={};N0.filterProps=["columnGap"];const M0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_f(e.theme,"spacing",8),n=r=>({rowGap:Ea(t,r)});return ei(e,e.rowGap,n)}return null};M0.propTypes={};M0.filterProps=["rowGap"];const GX=En({prop:"gridColumn"}),KX=En({prop:"gridRow"}),YX=En({prop:"gridAutoFlow"}),XX=En({prop:"gridAutoColumns"}),ZX=En({prop:"gridAutoRows"}),QX=En({prop:"gridTemplateColumns"}),JX=En({prop:"gridTemplateRows"}),eZ=En({prop:"gridTemplateAreas"}),tZ=En({prop:"gridArea"});P0(L0,N0,M0,GX,KX,YX,XX,ZX,QX,JX,eZ,tZ);function Nl(e,t){return t==="grey"?t:e}const nZ=En({prop:"color",themeKey:"palette",transform:Nl}),rZ=En({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nl}),oZ=En({prop:"backgroundColor",themeKey:"palette",transform:Nl});P0(nZ,rZ,oZ);function Yr(e){return e<=1&&e!==0?`${e*100}%`:e}const iZ=En({prop:"width",transform:Yr}),iw=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||tw[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Yr(n)}};return ei(e,e.maxWidth,t)}return null};iw.filterProps=["maxWidth"];const sZ=En({prop:"minWidth",transform:Yr}),aZ=En({prop:"height",transform:Yr}),lZ=En({prop:"maxHeight",transform:Yr}),uZ=En({prop:"minHeight",transform:Yr});En({prop:"size",cssProperty:"width",transform:Yr});En({prop:"size",cssProperty:"height",transform:Yr});const cZ=En({prop:"boxSizing"});P0(iZ,iw,sZ,aZ,lZ,uZ,cZ);const Sf={border:{themeKey:"borders",transform:Co},borderTop:{themeKey:"borders",transform:Co},borderRight:{themeKey:"borders",transform:Co},borderBottom:{themeKey:"borders",transform:Co},borderLeft:{themeKey:"borders",transform:Co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:O0},color:{themeKey:"palette",transform:Nl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nl},backgroundColor:{themeKey:"palette",transform:Nl},p:{style:mn},pt:{style:mn},pr:{style:mn},pb:{style:mn},pl:{style:mn},px:{style:mn},py:{style:mn},padding:{style:mn},paddingTop:{style:mn},paddingRight:{style:mn},paddingBottom:{style:mn},paddingLeft:{style:mn},paddingX:{style:mn},paddingY:{style:mn},paddingInline:{style:mn},paddingInlineStart:{style:mn},paddingInlineEnd:{style:mn},paddingBlock:{style:mn},paddingBlockStart:{style:mn},paddingBlockEnd:{style:mn},m:{style:hn},mt:{style:hn},mr:{style:hn},mb:{style:hn},ml:{style:hn},mx:{style:hn},my:{style:hn},margin:{style:hn},marginTop:{style:hn},marginRight:{style:hn},marginBottom:{style:hn},marginLeft:{style:hn},marginX:{style:hn},marginY:{style:hn},marginInline:{style:hn},marginInlineStart:{style:hn},marginInlineEnd:{style:hn},marginBlock:{style:hn},marginBlockStart:{style:hn},marginBlockEnd:{style:hn},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:L0},rowGap:{style:M0},columnGap:{style:N0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yr},maxWidth:{style:iw},minWidth:{transform:Yr},height:{transform:Yr},maxHeight:{transform:Yr},minHeight:{transform:Yr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fZ(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function dZ(e,t){return typeof e=="function"?e(t):e}function T4(){function e(n,r,o,i){const a={[n]:r,theme:o},u=i[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:h}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const m=Ql(o,f)||{};return h?h(a):ei(a,r,v=>{let y=ch(m,p,v);return v===y&&typeof v=="string"&&(y=ch(m,p,`${n}${v==="default"?"":Bt(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Sf;function u(c){let f=c;if(typeof c=="function")f=c(i);else if(typeof c!="object")return c;if(!f)return null;const p=A4(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(x=>{const v=dZ(f[x],i);if(v!=null)if(typeof v=="object")if(a[x])m=bc(m,e(x,v,i,a));else{const y=ei({theme:i},v,A=>({[x]:A}));fZ(y,v)?m[x]=t({sx:v,theme:i}):m=bc(m,y)}else m=bc(m,e(x,v,i,a))}),R4(h,m)}return Array.isArray(o)?o.map(u):u(o)}return t}const du=T4();du.filterProps=["sx"];function D4(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const pZ=["breakpoints","palette","spacing","shape"];function Ef(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=it(e,pZ),u=C4(n),c=NX(o);let f=ko({breakpoints:u,direction:"ltr",components:{},palette:V({mode:"light"},r),spacing:c,shape:V({},EX,i)},a);return f.applyStyles=D4,f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=V({},Sf,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return du({sx:h,theme:this})},f}const hZ=Object.freeze(Object.defineProperty({__proto__:null,default:Ef,private_createBreakpoints:C4,unstable_applyStyles:D4},Symbol.toStringTag,{value:"Module"}));function mZ(e){return Object.keys(e).length===0}function P4(e=null){const t=D.useContext(xf);return!t||mZ(t)?e:t}const gZ=Ef();function B0(e=gZ){return P4(e)}function vZ({styles:e,themeId:t,defaultTheme:n={}}){const r=B0(n),o=typeof e=="function"?e(t&&r[t]||r):e;return P.jsx(_4,{styles:o})}const yZ=["sx"],wZ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Sf;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function I0(e){const{sx:t}=e,n=it(e,yZ),{systemProps:r,otherProps:o}=wZ(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return Li(u)?V({},r,u):r}:i=V({},r,t),V({},o,{sx:i})}const xZ=Object.freeze(Object.defineProperty({__proto__:null,default:du,extendSxProp:I0,unstable_createStyleFunctionSx:T4,unstable_defaultSxConfig:Sf},Symbol.toStringTag,{value:"Module"})),QE=e=>e,bZ=()=>{let e=QE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=QE}}},O4=bZ();function L4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tu!=="theme"&&u!=="sx"&&u!=="as"})(du);return D.forwardRef(function(c,f){const p=B0(n),h=I0(c),{className:m,component:x="div"}=h,v=it(h,_Z);return P.jsx(i,V({as:x,ref:f,className:gt(m,o?o(r):r),theme:t&&p[t]||p},v))})}const EZ={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 tr(e,t,n="Mui"){const r=EZ[t];return r?`${n}-${r}`:`${O4.generate(e)}-${t}`}function nr(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tr(e,o,n)}),r}var N4={exports:{}},Mt={};/** + */var Wn=typeof Symbol=="function"&&Symbol.for,Yy=Wn?Symbol.for("react.element"):60103,Xy=Wn?Symbol.for("react.portal"):60106,b0=Wn?Symbol.for("react.fragment"):60107,_0=Wn?Symbol.for("react.strict_mode"):60108,S0=Wn?Symbol.for("react.profiler"):60114,E0=Wn?Symbol.for("react.provider"):60109,C0=Wn?Symbol.for("react.context"):60110,Zy=Wn?Symbol.for("react.async_mode"):60111,A0=Wn?Symbol.for("react.concurrent_mode"):60111,R0=Wn?Symbol.for("react.forward_ref"):60112,k0=Wn?Symbol.for("react.suspense"):60113,WY=Wn?Symbol.for("react.suspense_list"):60120,T0=Wn?Symbol.for("react.memo"):60115,D0=Wn?Symbol.for("react.lazy"):60116,qY=Wn?Symbol.for("react.block"):60121,HY=Wn?Symbol.for("react.fundamental"):60117,GY=Wn?Symbol.for("react.responder"):60118,KY=Wn?Symbol.for("react.scope"):60119;function io(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yy:switch(e=e.type,e){case Zy:case A0:case b0:case S0:case _0:case k0:return e;default:switch(e=e&&e.$$typeof,e){case C0:case R0:case D0:case T0:case E0:return e;default:return t}}case Xy:return t}}}function l4(e){return io(e)===A0}Nt.AsyncMode=Zy;Nt.ConcurrentMode=A0;Nt.ContextConsumer=C0;Nt.ContextProvider=E0;Nt.Element=Yy;Nt.ForwardRef=R0;Nt.Fragment=b0;Nt.Lazy=D0;Nt.Memo=T0;Nt.Portal=Xy;Nt.Profiler=S0;Nt.StrictMode=_0;Nt.Suspense=k0;Nt.isAsyncMode=function(e){return l4(e)||io(e)===Zy};Nt.isConcurrentMode=l4;Nt.isContextConsumer=function(e){return io(e)===C0};Nt.isContextProvider=function(e){return io(e)===E0};Nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yy};Nt.isForwardRef=function(e){return io(e)===R0};Nt.isFragment=function(e){return io(e)===b0};Nt.isLazy=function(e){return io(e)===D0};Nt.isMemo=function(e){return io(e)===T0};Nt.isPortal=function(e){return io(e)===Xy};Nt.isProfiler=function(e){return io(e)===S0};Nt.isStrictMode=function(e){return io(e)===_0};Nt.isSuspense=function(e){return io(e)===k0};Nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===b0||e===A0||e===S0||e===_0||e===k0||e===WY||typeof e=="object"&&e!==null&&(e.$$typeof===D0||e.$$typeof===T0||e.$$typeof===E0||e.$$typeof===C0||e.$$typeof===R0||e.$$typeof===HY||e.$$typeof===GY||e.$$typeof===KY||e.$$typeof===qY)};Nt.typeOf=io;a4.exports=Nt;var YY=a4.exports,u4=YY,XY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ZY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c4={};c4[u4.ForwardRef]=XY;c4[u4.Memo]=ZY;var QY=!0;function JY(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var f4=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||QY===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},d4=function(t,n,r){f4(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function eX(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 tX={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,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},nX=!1,rX=/[A-Z]|^ms/g,oX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p4=function(t){return t.charCodeAt(1)===45},jE=function(t){return t!=null&&typeof t!="boolean"},av=Qk(function(e){return p4(e)?e:e.replace(rX,"-$&").toLowerCase()}),VE=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(oX,function(r,o,i){return ci={name:o,styles:i,next:ci},o})}return tX[t]!==1&&!p4(t)&&typeof n=="number"&&n!==0?n+"px":n},iX="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Yc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ci={name:o.name,styles:o.styles,next:ci},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ci={name:a.name,styles:a.styles,next:ci},a=a.next;var u=i.styles+";";return u}return sX(e,t,n)}case"function":{if(e!==void 0){var c=ci,f=n(e);return ci=c,Yc(e,t,f)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function sX(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?fX:dX},GE=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},pX=!1,hX=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return f4(n,r,o),lX(function(){return d4(n,r,o)}),null},mX=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var u=GE(t,n,r),c=u||HE(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,x=1;xt(vX(o)?n:o):t;return P.jsx(cX,{styles:r})}function Jy(e,t){return z2(e,t)}const x4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},yX=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:w4,StyledEngineProvider:y4,ThemeContext:xf,css:v4,default:Jy,internal_processStyles:x4,keyframes:bf},Symbol.toStringTag,{value:"Module"}));function Li(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 b4(e){if(!Li(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=b4(e[n])}),t}function ko(e,t,n={clone:!0}){const r=n.clone?V({},e):e;return Li(e)&&Li(t)&&Object.keys(t).forEach(o=>{Li(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Li(e[o])?r[o]=ko(e[o],t[o],n):n.clone?r[o]=Li(t[o])?b4(t[o]):t[o]:r[o]=t[o]}),r}const wX=Object.freeze(Object.defineProperty({__proto__:null,default:ko,isPlainObject:Li},Symbol.toStringTag,{value:"Module"})),xX=["values","unit","step"],bX=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>V({},n,{[r.key]:r.val}),{})};function _4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=it(e,xX),i=bX(t),a=Object.keys(i);function u(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,x){const v=a.indexOf(x);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:x)-r/100}${n})`}function p(m){return a.indexOf(m)+1`@media (min-width:${ew[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||KE;return t.reduce((a,u,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||KE;return Object.keys(t).reduce((a,u)=>{if(Object.keys(i.values||ew).indexOf(u)!==-1){const c=i.up(u);a[c]=n(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return n(t)}function S4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function E4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function SX(e,...t){const n=S4(e),r=[n,...t].reduce((o,i)=>ko(o,i),{});return E4(Object.keys(n),r)}function EX(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function lv({values:e,breakpoints:t,base:n}){const r=n||EX(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,u,c)=>(Array.isArray(e)?(a[u]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[u]=e[u]!=null?e[u]:e[i],i=u):a[u]=e,a),{})}function Bt(e){if(typeof e!="string")throw new Error(ks(7));return e.charAt(0).toUpperCase()+e.slice(1)}const CX=Object.freeze(Object.defineProperty({__proto__:null,default:Bt},Symbol.toStringTag,{value:"Module"}));function Ql(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ch(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ql(e,n)||r,t&&(o=t(o,r,e)),o}function En(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,f=Ql(c,r)||{};return ei(a,u,h=>{let m=ch(f,o,h);return h===m&&typeof h=="string"&&(m=ch(f,o,`${t}${h==="default"?"":Bt(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function AX(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const RX={m:"margin",p:"padding"},kX={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},YE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},TX=AX(e=>{if(e.length>2)if(YE[e])e=YE[e];else return[e];const[t,n]=e.split(""),r=RX[t],o=kX[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),tw=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],nw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...tw,...nw];function _f(e,t,n,r){var o;const i=(o=Ql(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function rw(e){return _f(e,"spacing",8)}function Ca(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function DX(e,t){return n=>e.reduce((r,o)=>(r[o]=Ca(t,n),r),{})}function PX(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=TX(n),i=DX(o,r),a=e[n];return ei(e,a,i)}function C4(e,t){const n=rw(e.theme);return Object.keys(e).map(r=>PX(e,t,r,n)).reduce(bc,{})}function hn(e){return C4(e,tw)}hn.propTypes={};hn.filterProps=tw;function mn(e){return C4(e,nw)}mn.propTypes={};mn.filterProps=nw;function OX(e=8){if(e.mui)return e;const t=rw({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function P0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?bc(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Co(e){return typeof e!="number"?e:`${e}px solid`}function Mo(e,t){return En({prop:e,themeKey:"borders",transform:t})}const LX=Mo("border",Co),NX=Mo("borderTop",Co),MX=Mo("borderRight",Co),BX=Mo("borderBottom",Co),IX=Mo("borderLeft",Co),$X=Mo("borderColor"),FX=Mo("borderTopColor"),UX=Mo("borderRightColor"),zX=Mo("borderBottomColor"),jX=Mo("borderLeftColor"),VX=Mo("outline",Co),WX=Mo("outlineColor"),O0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_f(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ca(t,r)});return ei(e,e.borderRadius,n)}return null};O0.propTypes={};O0.filterProps=["borderRadius"];P0(LX,NX,MX,BX,IX,$X,FX,UX,zX,jX,O0,VX,WX);const L0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_f(e.theme,"spacing",8),n=r=>({gap:Ca(t,r)});return ei(e,e.gap,n)}return null};L0.propTypes={};L0.filterProps=["gap"];const N0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_f(e.theme,"spacing",8),n=r=>({columnGap:Ca(t,r)});return ei(e,e.columnGap,n)}return null};N0.propTypes={};N0.filterProps=["columnGap"];const M0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_f(e.theme,"spacing",8),n=r=>({rowGap:Ca(t,r)});return ei(e,e.rowGap,n)}return null};M0.propTypes={};M0.filterProps=["rowGap"];const qX=En({prop:"gridColumn"}),HX=En({prop:"gridRow"}),GX=En({prop:"gridAutoFlow"}),KX=En({prop:"gridAutoColumns"}),YX=En({prop:"gridAutoRows"}),XX=En({prop:"gridTemplateColumns"}),ZX=En({prop:"gridTemplateRows"}),QX=En({prop:"gridTemplateAreas"}),JX=En({prop:"gridArea"});P0(L0,N0,M0,qX,HX,GX,KX,YX,XX,ZX,QX,JX);function Nl(e,t){return t==="grey"?t:e}const eZ=En({prop:"color",themeKey:"palette",transform:Nl}),tZ=En({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nl}),nZ=En({prop:"backgroundColor",themeKey:"palette",transform:Nl});P0(eZ,tZ,nZ);function Yr(e){return e<=1&&e!==0?`${e*100}%`:e}const rZ=En({prop:"width",transform:Yr}),ow=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ew[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Yr(n)}};return ei(e,e.maxWidth,t)}return null};ow.filterProps=["maxWidth"];const oZ=En({prop:"minWidth",transform:Yr}),iZ=En({prop:"height",transform:Yr}),sZ=En({prop:"maxHeight",transform:Yr}),aZ=En({prop:"minHeight",transform:Yr});En({prop:"size",cssProperty:"width",transform:Yr});En({prop:"size",cssProperty:"height",transform:Yr});const lZ=En({prop:"boxSizing"});P0(rZ,ow,oZ,iZ,sZ,aZ,lZ);const Sf={border:{themeKey:"borders",transform:Co},borderTop:{themeKey:"borders",transform:Co},borderRight:{themeKey:"borders",transform:Co},borderBottom:{themeKey:"borders",transform:Co},borderLeft:{themeKey:"borders",transform:Co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:O0},color:{themeKey:"palette",transform:Nl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nl},backgroundColor:{themeKey:"palette",transform:Nl},p:{style:mn},pt:{style:mn},pr:{style:mn},pb:{style:mn},pl:{style:mn},px:{style:mn},py:{style:mn},padding:{style:mn},paddingTop:{style:mn},paddingRight:{style:mn},paddingBottom:{style:mn},paddingLeft:{style:mn},paddingX:{style:mn},paddingY:{style:mn},paddingInline:{style:mn},paddingInlineStart:{style:mn},paddingInlineEnd:{style:mn},paddingBlock:{style:mn},paddingBlockStart:{style:mn},paddingBlockEnd:{style:mn},m:{style:hn},mt:{style:hn},mr:{style:hn},mb:{style:hn},ml:{style:hn},mx:{style:hn},my:{style:hn},margin:{style:hn},marginTop:{style:hn},marginRight:{style:hn},marginBottom:{style:hn},marginLeft:{style:hn},marginX:{style:hn},marginY:{style:hn},marginInline:{style:hn},marginInlineStart:{style:hn},marginInlineEnd:{style:hn},marginBlock:{style:hn},marginBlockStart:{style:hn},marginBlockEnd:{style:hn},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:L0},rowGap:{style:M0},columnGap:{style:N0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yr},maxWidth:{style:ow},minWidth:{transform:Yr},height:{transform:Yr},maxHeight:{transform:Yr},minHeight:{transform:Yr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uZ(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function cZ(e,t){return typeof e=="function"?e(t):e}function A4(){function e(n,r,o,i){const a={[n]:r,theme:o},u=i[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:h}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const m=Ql(o,f)||{};return h?h(a):ei(a,r,v=>{let y=ch(m,p,v);return v===y&&typeof v=="string"&&(y=ch(m,p,`${n}${v==="default"?"":Bt(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Sf;function u(c){let f=c;if(typeof c=="function")f=c(i);else if(typeof c!="object")return c;if(!f)return null;const p=S4(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(x=>{const v=cZ(f[x],i);if(v!=null)if(typeof v=="object")if(a[x])m=bc(m,e(x,v,i,a));else{const y=ei({theme:i},v,A=>({[x]:A}));uZ(y,v)?m[x]=t({sx:v,theme:i}):m=bc(m,y)}else m=bc(m,e(x,v,i,a))}),E4(h,m)}return Array.isArray(o)?o.map(u):u(o)}return t}const du=A4();du.filterProps=["sx"];function R4(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const fZ=["breakpoints","palette","spacing","shape"];function Ef(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=it(e,fZ),u=_4(n),c=OX(o);let f=ko({breakpoints:u,direction:"ltr",components:{},palette:V({mode:"light"},r),spacing:c,shape:V({},_X,i)},a);return f.applyStyles=R4,f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=V({},Sf,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return du({sx:h,theme:this})},f}const dZ=Object.freeze(Object.defineProperty({__proto__:null,default:Ef,private_createBreakpoints:_4,unstable_applyStyles:R4},Symbol.toStringTag,{value:"Module"}));function pZ(e){return Object.keys(e).length===0}function k4(e=null){const t=D.useContext(xf);return!t||pZ(t)?e:t}const hZ=Ef();function B0(e=hZ){return k4(e)}function mZ({styles:e,themeId:t,defaultTheme:n={}}){const r=B0(n),o=typeof e=="function"?e(t&&r[t]||r):e;return P.jsx(w4,{styles:o})}const gZ=["sx"],vZ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Sf;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function I0(e){const{sx:t}=e,n=it(e,gZ),{systemProps:r,otherProps:o}=vZ(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return Li(u)?V({},r,u):r}:i=V({},r,t),V({},o,{sx:i})}const yZ=Object.freeze(Object.defineProperty({__proto__:null,default:du,extendSxProp:I0,unstable_createStyleFunctionSx:A4,unstable_defaultSxConfig:Sf},Symbol.toStringTag,{value:"Module"})),XE=e=>e,wZ=()=>{let e=XE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=XE}}},T4=wZ();function D4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tu!=="theme"&&u!=="sx"&&u!=="as"})(du);return D.forwardRef(function(c,f){const p=B0(n),h=I0(c),{className:m,component:x="div"}=h,v=it(h,xZ);return P.jsx(i,V({as:x,ref:f,className:gt(m,o?o(r):r),theme:t&&p[t]||p},v))})}const _Z={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 tr(e,t,n="Mui"){const r=_Z[t];return r?`${n}-${r}`:`${T4.generate(e)}-${t}`}function nr(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=tr(e,o,n)}),r}var P4={exports:{}},Mt={};/** * @license React * react-is.production.min.js * @@ -162,7 +162,7 @@ function print() { __p += __j.call(arguments, '') } * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sw=Symbol.for("react.element"),aw=Symbol.for("react.portal"),$0=Symbol.for("react.fragment"),F0=Symbol.for("react.strict_mode"),U0=Symbol.for("react.profiler"),z0=Symbol.for("react.provider"),j0=Symbol.for("react.context"),CZ=Symbol.for("react.server_context"),V0=Symbol.for("react.forward_ref"),W0=Symbol.for("react.suspense"),q0=Symbol.for("react.suspense_list"),H0=Symbol.for("react.memo"),G0=Symbol.for("react.lazy"),AZ=Symbol.for("react.offscreen"),M4;M4=Symbol.for("react.module.reference");function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sw:switch(e=e.type,e){case $0:case U0:case F0:case W0:case q0:return e;default:switch(e=e&&e.$$typeof,e){case CZ:case j0:case V0:case G0:case H0:case z0:return e;default:return t}}case aw:return t}}}Mt.ContextConsumer=j0;Mt.ContextProvider=z0;Mt.Element=sw;Mt.ForwardRef=V0;Mt.Fragment=$0;Mt.Lazy=G0;Mt.Memo=H0;Mt.Portal=aw;Mt.Profiler=U0;Mt.StrictMode=F0;Mt.Suspense=W0;Mt.SuspenseList=q0;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return Bo(e)===j0};Mt.isContextProvider=function(e){return Bo(e)===z0};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sw};Mt.isForwardRef=function(e){return Bo(e)===V0};Mt.isFragment=function(e){return Bo(e)===$0};Mt.isLazy=function(e){return Bo(e)===G0};Mt.isMemo=function(e){return Bo(e)===H0};Mt.isPortal=function(e){return Bo(e)===aw};Mt.isProfiler=function(e){return Bo(e)===U0};Mt.isStrictMode=function(e){return Bo(e)===F0};Mt.isSuspense=function(e){return Bo(e)===W0};Mt.isSuspenseList=function(e){return Bo(e)===q0};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$0||e===U0||e===F0||e===W0||e===q0||e===AZ||typeof e=="object"&&e!==null&&(e.$$typeof===G0||e.$$typeof===H0||e.$$typeof===z0||e.$$typeof===j0||e.$$typeof===V0||e.$$typeof===M4||e.getModuleId!==void 0)};Mt.typeOf=Bo;N4.exports=Mt;var JE=N4.exports;const RZ=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function B4(e){const t=`${e}`.match(RZ);return t&&t[1]||""}function I4(e,t=""){return e.displayName||e.name||B4(e)||t}function e3(e,t,n){const r=I4(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function kZ(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return I4(e,"Component");if(typeof e=="object")switch(e.$$typeof){case JE.ForwardRef:return e3(e,e.render,"ForwardRef");case JE.Memo:return e3(e,e.type,"memo");default:return}}}const TZ=Object.freeze(Object.defineProperty({__proto__:null,default:kZ,getFunctionName:B4},Symbol.toStringTag,{value:"Module"})),DZ=["ownerState"],PZ=["variants"],OZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function LZ(e){return Object.keys(e).length===0}function NZ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const MZ=Ef(),BZ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Kd({defaultTheme:e,theme:t,themeId:n}){return LZ(t)?e:t[n]||t}function IZ(e){return e?(t,n)=>n[e]:null}function Cp(e,t){let{ownerState:n}=t,r=it(t,DZ);const o=typeof e=="function"?e(V({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Cp(i,V({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=it(o,PZ);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(V({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(V({ownerState:n},r,n)):c.style))}),u}return o}function $Z(e={}){const{themeId:t,defaultTheme:n=MZ,rootShouldForwardProp:r=cv,slotShouldForwardProp:o=cv}=e,i=a=>du(V({},a,{theme:Kd(V({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{S4(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=IZ(BZ(f))}=u,x=it(u,OZ),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,_=cv;f==="Root"||f==="root"?_=r:f?_=o:NZ(a)&&(_=void 0);const w=ew(a,V({shouldForwardProp:_,label:A},x)),S=T=>typeof T=="function"&&T.__emotion_real!==T||Li(T)?E=>Cp(T,V({},E,{theme:Kd({theme:E.theme,defaultTheme:n,themeId:t})})):T,k=(T,...E)=>{let L=S(T);const $=E?E.map(S):[];c&&m&&$.push(Y=>{const se=Kd(V({},Y,{defaultTheme:n,themeId:t}));if(!se.components||!se.components[c]||!se.components[c].styleOverrides)return null;const K=se.components[c].styleOverrides,H={};return Object.entries(K).forEach(([Q,le])=>{H[Q]=Cp(le,V({},Y,{theme:se}))}),m(Y,H)}),c&&!v&&$.push(Y=>{var se;const K=Kd(V({},Y,{defaultTheme:n,themeId:t})),H=K==null||(se=K.components)==null||(se=se[c])==null?void 0:se.variants;return Cp({variants:H},V({},Y,{theme:K}))}),y||$.push(i);const q=$.length-E.length;if(Array.isArray(T)&&q>0){const Y=new Array(q).fill("");L=[...T,...Y],L.raw=[...T.raw,...Y]}const B=w(L,...$);return a.muiName&&(B.muiName=a.muiName),B};return w.withConfig&&(k.withConfig=w.withConfig),k}}const FZ=$Z();function Xc(e,t){const n=V({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=V({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=V({},i),Object.keys(o).forEach(a=>{n[r][a]=Xc(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function UZ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Xc(t.components[n].defaultProps,r)}function zZ({props:e,name:t,defaultTheme:n,themeId:r}){let o=B0(n);return r&&(o=o[r]||o),UZ({theme:o,name:t,props:e})}const vi=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const jZ=Object.freeze(Object.defineProperty({__proto__:null,default:$4},Symbol.toStringTag,{value:"Module"}));function VZ(e,t=0,n=1){return $4(e,t,n)}function WZ(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(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function F4(e){if(e.type)return e;if(e.charAt(0)==="#")return F4(WZ(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Rs(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Rs(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function qZ(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Yn(e,t){return e=F4(e),t=VZ(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qZ(e)}function HZ(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Ap(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function W2(e){return e&&e.ownerDocument||document}function t3(e){return W2(e).defaultView||window}function q2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let n3=0;function GZ(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(n3+=1,n(`mui-${n3}`))},[t]),r}const r3=Dp.useId;function KZ(e){if(r3!==void 0){const t=r3();return e??t}return GZ(e)}function YZ({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),u=o?e:i,c=D.useCallback(f=>{o||a(f)},[]);return[u,c]}function Sl(e){const t=D.useRef(e);return vi(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function to(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{q2(n,t)})},e)}const o3={};function XZ(e,t){const n=D.useRef(o3);return n.current===o3&&(n.current=e(t)),n}const ZZ=[];function QZ(e){D.useEffect(e,ZZ)}class Cf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function El(){const e=XZ(Cf.create).current;return QZ(e.disposeEffect),e}let K0=!0,H2=!1;const JZ=new Cf,eQ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function tQ(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&eQ[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function nQ(e){e.metaKey||e.altKey||e.ctrlKey||(K0=!0)}function fv(){K0=!1}function rQ(){this.visibilityState==="hidden"&&H2&&(K0=!0)}function oQ(e){e.addEventListener("keydown",nQ,!0),e.addEventListener("mousedown",fv,!0),e.addEventListener("pointerdown",fv,!0),e.addEventListener("touchstart",fv,!0),e.addEventListener("visibilitychange",rQ,!0)}function iQ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return K0||tQ(t)}function lw(){const e=D.useCallback(o=>{o!=null&&oQ(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(H2=!0,JZ.start(100,()=>{H2=!1}),t.current=!1,!0):!1}function r(o){return iQ(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function dr(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function Zc(e){return typeof e=="string"}function ac(e,t,n){return e===void 0||Zc(e)?t:V({},t,{ownerState:V({},t.ownerState,n)})}function sQ(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function i3(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 aQ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const x=gt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=V({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=V({},n,o,r);return x.length>0&&(y.className=x),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const a=sQ(V({},o,r)),u=i3(r),c=i3(o),f=t(a),p=gt(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=V({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=V({},f,n,c,u);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}function lQ(e,t,n){return typeof e=="function"?e(t,n):e}const uQ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cQ(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=it(e,uQ),u=i?{}:lQ(r,o),{props:c,internalRef:f}=aQ(V({},a,{externalSlotProps:u})),p=to(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return ac(n,V({},c,{ref:p}),o)}const U4=D.createContext(null);function z4(){return D.useContext(U4)}const fQ=typeof Symbol=="function"&&Symbol.for,dQ=fQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function pQ(e,t){return typeof t=="function"?t(e):V({},e,t)}function hQ(e){const{children:t,theme:n}=e,r=z4(),o=D.useMemo(()=>{const i=r===null?n:pQ(r,n);return i!=null&&(i[dQ]=r!==null),i},[n,r]);return P.jsx(U4.Provider,{value:o,children:t})}const mQ=["value"],j4=D.createContext();function gQ(e){let{value:t}=e,n=it(e,mQ);return P.jsx(j4.Provider,V({value:t??!0},n))}const vQ=()=>{const e=D.useContext(j4);return e??!1},V4=D.createContext(void 0);function yQ({value:e,children:t}){return P.jsx(V4.Provider,{value:e,children:t})}function wQ(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Xc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Xc(o,r):r}function xQ({props:e,name:t}){const n=D.useContext(V4);return wQ({props:e,name:t,theme:{components:n}})}const s3={};function a3(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?V({},t,{[e]:i}):i;return r?()=>a:a}return e?V({},t,{[e]:n}):V({},t,n)},[e,t,n,r])}function bQ(e){const{children:t,theme:n,themeId:r}=e,o=P4(s3),i=z4()||s3,a=a3(r,o,n),u=a3(r,i,n,!0),c=a.direction==="rtl";return P.jsx(hQ,{theme:u,children:P.jsx(xf.Provider,{value:a,children:P.jsx(gQ,{value:c,children:P.jsx(yQ,{value:a==null?void 0:a.components,children:t})})})})}const _Q=["component","direction","spacing","divider","children","className","useFlexGap"],SQ=Ef(),EQ=FZ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function CQ(e){return zZ({props:e,name:"MuiStack",defaultTheme:SQ})}function AQ(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],kQ=({ownerState:e,theme:t})=>{let n=V({display:"flex",flexDirection:"column"},ei({theme:t},uv({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ow(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),i=uv({values:e.direction,base:o}),a=uv({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,f,p)=>{if(!i[c]){const m=f>0?i[p[f-1]]:"column";i[c]=m}}),n=ko(n,ei({theme:t},a,(c,f)=>e.useFlexGap?{gap:Ea(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${RQ(f?i[f]:e.direction)}`]:Ea(r,c)}}))}return n=CX(t.breakpoints,n),n};function TQ(e={}){const{createStyledComponent:t=EQ,useThemeProps:n=CQ,componentName:r="MuiStack"}=e,o=()=>dr({root:["root"]},c=>tr(r,c),{}),i=t(kQ);return D.forwardRef(function(c,f){const p=n(c),h=I0(p),{component:m="div",direction:x="column",spacing:v=0,divider:y,children:A,className:_,useFlexGap:w=!1}=h,S=it(h,_Q),k={direction:x,spacing:v,useFlexGap:w},T=o();return P.jsx(i,V({as:m,ownerState:k,ref:f,className:gt(T.root,_)},S,{children:y?AQ(A,y):A}))})}function DQ(e,t){return V({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Cn={},W4={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(W4);var q4=W4.exports;const PQ=ks(hY),OQ=ks(jZ);var H4=q4;Object.defineProperty(Cn,"__esModule",{value:!0});var xr=Cn.alpha=X4;Cn.blend=qQ;Cn.colorChannel=void 0;var LQ=Cn.darken=cw;Cn.decomposeColor=Oo;Cn.emphasize=Z4;var NQ=Cn.getContrastRatio=UQ;Cn.getLuminance=fh;Cn.hexToRgb=G4;Cn.hslToRgb=Y4;var MQ=Cn.lighten=fw;Cn.private_safeAlpha=zQ;Cn.private_safeColorChannel=void 0;Cn.private_safeDarken=jQ;Cn.private_safeEmphasize=WQ;Cn.private_safeLighten=VQ;Cn.recomposeColor=pu;Cn.rgbToHex=FQ;var l3=H4(PQ),BQ=H4(OQ);function uw(e,t=0,n=1){return(0,BQ.default)(e,t,n)}function G4(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(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function IQ(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Oo(e){if(e.type)return e;if(e.charAt(0)==="#")return Oo(G4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,l3.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,l3.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const K4=e=>{const t=Oo(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Cn.colorChannel=K4;const $Q=(e,t)=>{try{return K4(e)}catch{return e}};Cn.private_safeColorChannel=$Q;function pu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function FQ(e){if(e.indexOf("#")===0)return e;const{values:t}=Oo(e);return`#${t.map((n,r)=>IQ(r===3?Math.round(255*n):n)).join("")}`}function Y4(e){e=Oo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),pu({type:u,values:c})}function fh(e){e=Oo(e);let t=e.type==="hsl"||e.type==="hsla"?Oo(Y4(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 UQ(e,t){const n=fh(e),r=fh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function X4(e,t){return e=Oo(e),t=uw(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pu(e)}function zQ(e,t,n){try{return X4(e,t)}catch{return e}}function cw(e,t){if(e=Oo(e),t=uw(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pu(e)}function jQ(e,t,n){try{return cw(e,t)}catch{return e}}function fw(e,t){if(e=Oo(e),t=uw(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pu(e)}function VQ(e,t,n){try{return fw(e,t)}catch{return e}}function Z4(e,t=.15){return fh(e)>.5?cw(e,t):fw(e,t)}function WQ(e,t,n){try{return Z4(e,t)}catch{return e}}function qQ(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),i=Oo(e),a=Oo(t),u=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return pu({type:"rgb",values:u})}const HQ=["mode","contrastThreshold","tonalOffset"],u3={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:Hc.white,default:Hc.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}},dv={text:{primary:Hc.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:Hc.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}};function c3(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=MQ(e.main,o):t==="dark"&&(e.dark=LQ(e.main,i)))}function GQ(e="light"){return e==="dark"?{main:Ja[200],light:Ja[50],dark:Ja[400]}:{main:Ja[700],light:Ja[400],dark:Ja[800]}}function KQ(e="light"){return e==="dark"?{main:Qa[200],light:Qa[50],dark:Qa[400]}:{main:Qa[500],light:Qa[300],dark:Qa[700]}}function YQ(e="light"){return e==="dark"?{main:Za[500],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[400],dark:Za[800]}}function XQ(e="light"){return e==="dark"?{main:el[400],light:el[300],dark:el[700]}:{main:el[700],light:el[500],dark:el[900]}}function ZQ(e="light"){return e==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[800],light:tl[500],dark:tl[900]}}function QQ(e="light"){return e==="dark"?{main:Xu[400],light:Xu[300],dark:Xu[700]}:{main:"#ed6c02",light:Xu[500],dark:Xu[900]}}function JQ(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=it(e,HQ),i=e.primary||GQ(t),a=e.secondary||KQ(t),u=e.error||YQ(t),c=e.info||XQ(t),f=e.success||ZQ(t),p=e.warning||QQ(t);function h(y){return NQ(y,dv.text.primary)>=n?dv.text.primary:u3.text.primary}const m=({color:y,name:A,mainShade:_=500,lightShade:w=300,darkShade:S=700})=>{if(y=V({},y),!y.main&&y[_]&&(y.main=y[_]),!y.hasOwnProperty("main"))throw new Error(Rs(11,A?` (${A})`:"",_));if(typeof y.main!="string")throw new Error(Rs(12,A?` (${A})`:"",JSON.stringify(y.main)));return c3(y,"light",w,r),c3(y,"dark",S,r),y.contrastText||(y.contrastText=h(y.main)),y},x={dark:dv,light:u3};return ko(V({common:V({},Hc),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:f,name:"success"}),grey:pY,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},x[t]),o)}const eJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function tJ(e){return Math.round(e*1e5)/1e5}const f3={textTransform:"uppercase"},d3='"Roboto", "Helvetica", "Arial", sans-serif';function nJ(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=d3,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=it(n,eJ),x=o/14,v=h||(_=>`${_/f*x}rem`),y=(_,w,S,k,T)=>V({fontFamily:r,fontWeight:_,fontSize:v(w),lineHeight:S},r===d3?{letterSpacing:`${tJ(k/w)}em`}:{},T,p),A={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(u,14,1.75,.4,f3),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,f3),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ko(V({htmlFontSize:f,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c},A),m,{clone:!1})}const rJ=.2,oJ=.14,iJ=.12;function Jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${oJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${iJ})`].join(",")}const sJ=["none",Jt(0,2,1,-1,0,1,1,0,0,1,3,0),Jt(0,3,1,-2,0,2,2,0,0,1,5,0),Jt(0,3,3,-2,0,3,4,0,0,1,8,0),Jt(0,2,4,-1,0,4,5,0,0,1,10,0),Jt(0,3,5,-1,0,5,8,0,0,1,14,0),Jt(0,3,5,-1,0,6,10,0,0,1,18,0),Jt(0,4,5,-2,0,7,10,1,0,2,16,1),Jt(0,5,5,-3,0,8,10,1,0,3,14,2),Jt(0,5,6,-3,0,9,12,1,0,3,16,2),Jt(0,6,6,-3,0,10,14,1,0,4,18,3),Jt(0,6,7,-4,0,11,15,1,0,4,20,3),Jt(0,7,8,-4,0,12,17,2,0,5,22,4),Jt(0,7,8,-4,0,13,19,2,0,5,24,4),Jt(0,7,9,-4,0,14,21,2,0,5,26,4),Jt(0,8,9,-5,0,15,22,2,0,6,28,5),Jt(0,8,10,-5,0,16,24,2,0,6,30,5),Jt(0,8,11,-5,0,17,26,2,0,6,32,5),Jt(0,9,11,-5,0,18,28,2,0,7,34,6),Jt(0,9,12,-6,0,19,29,2,0,7,36,6),Jt(0,10,13,-6,0,20,31,3,0,8,38,7),Jt(0,10,13,-6,0,21,33,3,0,8,40,7),Jt(0,10,14,-6,0,22,35,3,0,8,42,7),Jt(0,11,14,-7,0,23,36,3,0,9,44,8),Jt(0,11,15,-7,0,24,38,3,0,9,46,8)],aJ=["duration","easing","delay"],lJ={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)"},uJ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function p3(e){return`${Math.round(e)}ms`}function cJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function fJ(e){const t=V({},lJ,e.easing),n=V({},uJ,e.duration);return V({getAutoHeightDuration:cJ,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:u=t.easeInOut,delay:c=0}=i;return it(i,aJ),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:p3(a)} ${u} ${typeof c=="string"?c:p3(c)}`).join(",")}},e,{easing:t,duration:n})}const dJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},pJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Y0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=it(e,pJ);if(e.vars)throw new Error(Rs(18));const u=JQ(r),c=Ef(e);let f=ko(c,{mixins:DQ(c.breakpoints,n),palette:u,shadows:sJ.slice(),typography:nJ(u,i),transitions:fJ(o),zIndex:V({},dJ)});return f=ko(f,a),f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=V({},Sf,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return du({sx:h,theme:this})},f}const dw=Y0();function X0(){const e=B0(dw);return e[Xl]||e}var Af={},pv={exports:{}},h3;function hJ(){return h3||(h3=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(pv)),pv.exports}const Q4=ks(xX),mJ=ks(bX),gJ=ks(RX),vJ=ks(TZ),yJ=ks(hZ),wJ=ks(xZ);var hu=q4;Object.defineProperty(Af,"__esModule",{value:!0});var xJ=Af.default=LJ;Af.shouldForwardProp=Rp;Af.systemDefaultTheme=void 0;var wo=hu(w4()),G2=hu(hJ()),m3=RJ(Q4),bJ=mJ;hu(gJ);hu(vJ);var _J=hu(yJ),SJ=hu(wJ);const EJ=["ownerState"],CJ=["variants"],AJ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function J4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(J4=function(r){return r?n:t})(e)}function RJ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=J4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function kJ(e){return Object.keys(e).length===0}function TJ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Rp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const DJ=Af.systemDefaultTheme=(0,_J.default)(),PJ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Yd({defaultTheme:e,theme:t,themeId:n}){return kJ(t)?e:t[n]||t}function OJ(e){return e?(t,n)=>n[e]:null}function kp(e,t){let{ownerState:n}=t,r=(0,G2.default)(t,EJ);const o=typeof e=="function"?e((0,wo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>kp(i,(0,wo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=(0,G2.default)(o,CJ);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,wo.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,wo.default)({ownerState:n},r,n)):c.style))}),u}return o}function LJ(e={}){const{themeId:t,defaultTheme:n=DJ,rootShouldForwardProp:r=Rp,slotShouldForwardProp:o=Rp}=e,i=a=>(0,SJ.default)((0,wo.default)({},a,{theme:Yd((0,wo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{(0,m3.internal_processStyles)(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=OJ(PJ(f))}=u,x=(0,G2.default)(u,AJ),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,_=Rp;f==="Root"||f==="root"?_=r:f?_=o:TJ(a)&&(_=void 0);const w=(0,m3.default)(a,(0,wo.default)({shouldForwardProp:_,label:A},x)),S=T=>typeof T=="function"&&T.__emotion_real!==T||(0,bJ.isPlainObject)(T)?E=>kp(T,(0,wo.default)({},E,{theme:Yd({theme:E.theme,defaultTheme:n,themeId:t})})):T,k=(T,...E)=>{let L=S(T);const $=E?E.map(S):[];c&&m&&$.push(Y=>{const se=Yd((0,wo.default)({},Y,{defaultTheme:n,themeId:t}));if(!se.components||!se.components[c]||!se.components[c].styleOverrides)return null;const K=se.components[c].styleOverrides,H={};return Object.entries(K).forEach(([Q,le])=>{H[Q]=kp(le,(0,wo.default)({},Y,{theme:se}))}),m(Y,H)}),c&&!v&&$.push(Y=>{var se;const K=Yd((0,wo.default)({},Y,{defaultTheme:n,themeId:t})),H=K==null||(se=K.components)==null||(se=se[c])==null?void 0:se.variants;return kp({variants:H},(0,wo.default)({},Y,{theme:K}))}),y||$.push(i);const q=$.length-E.length;if(Array.isArray(T)&&q>0){const Y=new Array(q).fill("");L=[...T,...Y],L.raw=[...T.raw,...Y]}const B=w(L,...$);return a.muiName&&(B.muiName=a.muiName),B};return w.withConfig&&(k.withConfig=w.withConfig),k}}function NJ(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mu=e=>NJ(e)&&e!=="classes",It=xJ({themeId:Xl,defaultTheme:dw,rootShouldForwardProp:mu}),MJ=["theme"];function BJ(e){let{theme:t}=e,n=it(e,MJ);const r=t[Xl];return P.jsx(bQ,V({},n,{themeId:r?Xl:void 0,theme:r||t}))}function Wn(e){return xQ(e)}function K2(e,t){return K2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},K2(e,t)}function eT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,K2(e,t)}const g3={disabled:!1},dh=Ze.createContext(null);var IJ=function(t){return t.scrollTop},lc="unmounted",Qs="exited",Js="entering",il="entered",Y2="exiting",Wi=function(e){eT(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,u=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?u?(c=Qs,i.appearStatus=Js):c=il:r.unmountOnExit||r.mountOnEnter?c=lc:c=Qs,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===lc?{status:Qs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Js&&a!==il&&(i=Js):(a===Js||a===il)&&(i=Y2)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Js){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:xl.findDOMNode(this);a&&IJ(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qs&&this.setState({status:lc})},n.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[xl.findDOMNode(this),u],f=c[0],p=c[1],h=this.getTimeouts(),m=u?h.appear:h.enter;if(!o&&!a||g3.disabled){this.safeSetState({status:il},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Js},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:il},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:xl.findDOMNode(this);if(!i||g3.disabled){this.safeSetState({status:Qs},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Y2},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Qs},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:xl.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===lc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=it(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ze.createElement(dh.Provider,{value:null},typeof a=="function"?a(o,u):Ze.cloneElement(Ze.Children.only(a),u))},t}(Ze.Component);Wi.contextType=dh;Wi.propTypes={};function nl(){}Wi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nl,onEntering:nl,onEntered:nl,onExit:nl,onExiting:nl,onExited:nl};Wi.UNMOUNTED=lc;Wi.EXITED=Qs;Wi.ENTERING=Js;Wi.ENTERED=il;Wi.EXITING=Y2;function $J(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pw(e,t){var n=function(i){return t&&D.isValidElement(i)?t(i):i},r=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function FJ(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(r[c])for(a=0;ae.scrollTop;function v3(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function qJ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:f}=e,[p,h]=D.useState(!1),m=gt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=gt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&h(!0),D.useEffect(()=>{if(!u&&c!=null){const y=setTimeout(c,f);return()=>{clearTimeout(y)}}},[c,u,f]),P.jsx("span",{className:m,style:x,children:P.jsx("span",{className:v})})}const xo=nr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),HJ=["center","classes","className"];let Z0=e=>e,y3,w3,x3,b3;const X2=550,GJ=80,KJ=bf(y3||(y3=Z0` + */var iw=Symbol.for("react.element"),sw=Symbol.for("react.portal"),$0=Symbol.for("react.fragment"),F0=Symbol.for("react.strict_mode"),U0=Symbol.for("react.profiler"),z0=Symbol.for("react.provider"),j0=Symbol.for("react.context"),SZ=Symbol.for("react.server_context"),V0=Symbol.for("react.forward_ref"),W0=Symbol.for("react.suspense"),q0=Symbol.for("react.suspense_list"),H0=Symbol.for("react.memo"),G0=Symbol.for("react.lazy"),EZ=Symbol.for("react.offscreen"),O4;O4=Symbol.for("react.module.reference");function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iw:switch(e=e.type,e){case $0:case U0:case F0:case W0:case q0:return e;default:switch(e=e&&e.$$typeof,e){case SZ:case j0:case V0:case G0:case H0:case z0:return e;default:return t}}case sw:return t}}}Mt.ContextConsumer=j0;Mt.ContextProvider=z0;Mt.Element=iw;Mt.ForwardRef=V0;Mt.Fragment=$0;Mt.Lazy=G0;Mt.Memo=H0;Mt.Portal=sw;Mt.Profiler=U0;Mt.StrictMode=F0;Mt.Suspense=W0;Mt.SuspenseList=q0;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return Bo(e)===j0};Mt.isContextProvider=function(e){return Bo(e)===z0};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iw};Mt.isForwardRef=function(e){return Bo(e)===V0};Mt.isFragment=function(e){return Bo(e)===$0};Mt.isLazy=function(e){return Bo(e)===G0};Mt.isMemo=function(e){return Bo(e)===H0};Mt.isPortal=function(e){return Bo(e)===sw};Mt.isProfiler=function(e){return Bo(e)===U0};Mt.isStrictMode=function(e){return Bo(e)===F0};Mt.isSuspense=function(e){return Bo(e)===W0};Mt.isSuspenseList=function(e){return Bo(e)===q0};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$0||e===U0||e===F0||e===W0||e===q0||e===EZ||typeof e=="object"&&e!==null&&(e.$$typeof===G0||e.$$typeof===H0||e.$$typeof===z0||e.$$typeof===j0||e.$$typeof===V0||e.$$typeof===O4||e.getModuleId!==void 0)};Mt.typeOf=Bo;P4.exports=Mt;var ZE=P4.exports;const CZ=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function L4(e){const t=`${e}`.match(CZ);return t&&t[1]||""}function N4(e,t=""){return e.displayName||e.name||L4(e)||t}function QE(e,t,n){const r=N4(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function AZ(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return N4(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ZE.ForwardRef:return QE(e,e.render,"ForwardRef");case ZE.Memo:return QE(e,e.type,"memo");default:return}}}const RZ=Object.freeze(Object.defineProperty({__proto__:null,default:AZ,getFunctionName:L4},Symbol.toStringTag,{value:"Module"})),kZ=["ownerState"],TZ=["variants"],DZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function PZ(e){return Object.keys(e).length===0}function OZ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function uv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const LZ=Ef(),NZ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Kd({defaultTheme:e,theme:t,themeId:n}){return PZ(t)?e:t[n]||t}function MZ(e){return e?(t,n)=>n[e]:null}function Cp(e,t){let{ownerState:n}=t,r=it(t,kZ);const o=typeof e=="function"?e(V({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Cp(i,V({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=it(o,TZ);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(V({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(V({ownerState:n},r,n)):c.style))}),u}return o}function BZ(e={}){const{themeId:t,defaultTheme:n=LZ,rootShouldForwardProp:r=uv,slotShouldForwardProp:o=uv}=e,i=a=>du(V({},a,{theme:Kd(V({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{x4(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=MZ(NZ(f))}=u,x=it(u,DZ),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,_=uv;f==="Root"||f==="root"?_=r:f?_=o:OZ(a)&&(_=void 0);const w=Jy(a,V({shouldForwardProp:_,label:A},x)),S=T=>typeof T=="function"&&T.__emotion_real!==T||Li(T)?E=>Cp(T,V({},E,{theme:Kd({theme:E.theme,defaultTheme:n,themeId:t})})):T,k=(T,...E)=>{let L=S(T);const $=E?E.map(S):[];c&&m&&$.push(Y=>{const se=Kd(V({},Y,{defaultTheme:n,themeId:t}));if(!se.components||!se.components[c]||!se.components[c].styleOverrides)return null;const K=se.components[c].styleOverrides,H={};return Object.entries(K).forEach(([Q,le])=>{H[Q]=Cp(le,V({},Y,{theme:se}))}),m(Y,H)}),c&&!v&&$.push(Y=>{var se;const K=Kd(V({},Y,{defaultTheme:n,themeId:t})),H=K==null||(se=K.components)==null||(se=se[c])==null?void 0:se.variants;return Cp({variants:H},V({},Y,{theme:K}))}),y||$.push(i);const q=$.length-E.length;if(Array.isArray(T)&&q>0){const Y=new Array(q).fill("");L=[...T,...Y],L.raw=[...T.raw,...Y]}const B=w(L,...$);return a.muiName&&(B.muiName=a.muiName),B};return w.withConfig&&(k.withConfig=w.withConfig),k}}const IZ=BZ();function Xc(e,t){const n=V({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=V({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=V({},i),Object.keys(o).forEach(a=>{n[r][a]=Xc(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function $Z(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Xc(t.components[n].defaultProps,r)}function FZ({props:e,name:t,defaultTheme:n,themeId:r}){let o=B0(n);return r&&(o=o[r]||o),$Z({theme:o,name:t,props:e})}const vi=typeof window<"u"?D.useLayoutEffect:D.useEffect;function M4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const UZ=Object.freeze(Object.defineProperty({__proto__:null,default:M4},Symbol.toStringTag,{value:"Module"}));function zZ(e,t=0,n=1){return M4(e,t,n)}function jZ(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(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function B4(e){if(e.type)return e;if(e.charAt(0)==="#")return B4(jZ(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ks(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(ks(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function VZ(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Xn(e,t){return e=B4(e),t=zZ(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,VZ(e)}function WZ(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Ap(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function V2(e){return e&&e.ownerDocument||document}function JE(e){return V2(e).defaultView||window}function W2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let e3=0;function qZ(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(e3+=1,n(`mui-${e3}`))},[t]),r}const t3=Dp.useId;function HZ(e){if(t3!==void 0){const t=t3();return e??t}return qZ(e)}function GZ({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),u=o?e:i,c=D.useCallback(f=>{o||a(f)},[]);return[u,c]}function Sl(e){const t=D.useRef(e);return vi(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function to(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{W2(n,t)})},e)}const n3={};function KZ(e,t){const n=D.useRef(n3);return n.current===n3&&(n.current=e(t)),n}const YZ=[];function XZ(e){D.useEffect(e,YZ)}class Cf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function El(){const e=KZ(Cf.create).current;return XZ(e.disposeEffect),e}let K0=!0,q2=!1;const ZZ=new Cf,QZ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function JZ(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&QZ[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function eQ(e){e.metaKey||e.altKey||e.ctrlKey||(K0=!0)}function cv(){K0=!1}function tQ(){this.visibilityState==="hidden"&&q2&&(K0=!0)}function nQ(e){e.addEventListener("keydown",eQ,!0),e.addEventListener("mousedown",cv,!0),e.addEventListener("pointerdown",cv,!0),e.addEventListener("touchstart",cv,!0),e.addEventListener("visibilitychange",tQ,!0)}function rQ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return K0||JZ(t)}function aw(){const e=D.useCallback(o=>{o!=null&&nQ(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(q2=!0,ZZ.start(100,()=>{q2=!1}),t.current=!1,!0):!1}function r(o){return rQ(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function dr(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function Zc(e){return typeof e=="string"}function ac(e,t,n){return e===void 0||Zc(e)?t:V({},t,{ownerState:V({},t.ownerState,n)})}function oQ(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function r3(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 iQ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const x=gt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=V({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=V({},n,o,r);return x.length>0&&(y.className=x),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const a=oQ(V({},o,r)),u=r3(r),c=r3(o),f=t(a),p=gt(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=V({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=V({},f,n,c,u);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}function sQ(e,t,n){return typeof e=="function"?e(t,n):e}const aQ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function lQ(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=it(e,aQ),u=i?{}:sQ(r,o),{props:c,internalRef:f}=iQ(V({},a,{externalSlotProps:u})),p=to(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return ac(n,V({},c,{ref:p}),o)}const I4=D.createContext(null);function $4(){return D.useContext(I4)}const uQ=typeof Symbol=="function"&&Symbol.for,cQ=uQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function fQ(e,t){return typeof t=="function"?t(e):V({},e,t)}function dQ(e){const{children:t,theme:n}=e,r=$4(),o=D.useMemo(()=>{const i=r===null?n:fQ(r,n);return i!=null&&(i[cQ]=r!==null),i},[n,r]);return P.jsx(I4.Provider,{value:o,children:t})}const pQ=["value"],F4=D.createContext();function hQ(e){let{value:t}=e,n=it(e,pQ);return P.jsx(F4.Provider,V({value:t??!0},n))}const mQ=()=>{const e=D.useContext(F4);return e??!1},U4=D.createContext(void 0);function gQ({value:e,children:t}){return P.jsx(U4.Provider,{value:e,children:t})}function vQ(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Xc(o.defaultProps,r):!o.styleOverrides&&!o.variants?Xc(o,r):r}function yQ({props:e,name:t}){const n=D.useContext(U4);return vQ({props:e,name:t,theme:{components:n}})}const o3={};function i3(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?V({},t,{[e]:i}):i;return r?()=>a:a}return e?V({},t,{[e]:n}):V({},t,n)},[e,t,n,r])}function wQ(e){const{children:t,theme:n,themeId:r}=e,o=k4(o3),i=$4()||o3,a=i3(r,o,n),u=i3(r,i,n,!0),c=a.direction==="rtl";return P.jsx(dQ,{theme:u,children:P.jsx(xf.Provider,{value:a,children:P.jsx(hQ,{value:c,children:P.jsx(gQ,{value:a==null?void 0:a.components,children:t})})})})}const xQ=["component","direction","spacing","divider","children","className","useFlexGap"],bQ=Ef(),_Q=IZ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function SQ(e){return FZ({props:e,name:"MuiStack",defaultTheme:bQ})}function EQ(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],AQ=({ownerState:e,theme:t})=>{let n=V({display:"flex",flexDirection:"column"},ei({theme:t},lv({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=rw(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),i=lv({values:e.direction,base:o}),a=lv({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,f,p)=>{if(!i[c]){const m=f>0?i[p[f-1]]:"column";i[c]=m}}),n=ko(n,ei({theme:t},a,(c,f)=>e.useFlexGap?{gap:Ca(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${CQ(f?i[f]:e.direction)}`]:Ca(r,c)}}))}return n=SX(t.breakpoints,n),n};function RQ(e={}){const{createStyledComponent:t=_Q,useThemeProps:n=SQ,componentName:r="MuiStack"}=e,o=()=>dr({root:["root"]},c=>tr(r,c),{}),i=t(AQ);return D.forwardRef(function(c,f){const p=n(c),h=I0(p),{component:m="div",direction:x="column",spacing:v=0,divider:y,children:A,className:_,useFlexGap:w=!1}=h,S=it(h,xQ),k={direction:x,spacing:v,useFlexGap:w},T=o();return P.jsx(i,V({as:m,ownerState:k,ref:f,className:gt(T.root,_)},S,{children:y?EQ(A,y):A}))})}function kQ(e,t){return V({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Cn={},z4={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(z4);var j4=z4.exports;const TQ=ji(fY),DQ=ji(UZ);var V4=j4;Object.defineProperty(Cn,"__esModule",{value:!0});var xr=Cn.alpha=G4;Cn.blend=VQ;Cn.colorChannel=void 0;var PQ=Cn.darken=uw;Cn.decomposeColor=Oo;Cn.emphasize=K4;var OQ=Cn.getContrastRatio=$Q;Cn.getLuminance=fh;Cn.hexToRgb=W4;Cn.hslToRgb=H4;var LQ=Cn.lighten=cw;Cn.private_safeAlpha=FQ;Cn.private_safeColorChannel=void 0;Cn.private_safeDarken=UQ;Cn.private_safeEmphasize=jQ;Cn.private_safeLighten=zQ;Cn.recomposeColor=pu;Cn.rgbToHex=IQ;var s3=V4(TQ),NQ=V4(DQ);function lw(e,t=0,n=1){return(0,NQ.default)(e,t,n)}function W4(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(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function MQ(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Oo(e){if(e.type)return e;if(e.charAt(0)==="#")return Oo(W4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,s3.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,s3.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const q4=e=>{const t=Oo(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Cn.colorChannel=q4;const BQ=(e,t)=>{try{return q4(e)}catch{return e}};Cn.private_safeColorChannel=BQ;function pu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function IQ(e){if(e.indexOf("#")===0)return e;const{values:t}=Oo(e);return`#${t.map((n,r)=>MQ(r===3?Math.round(255*n):n)).join("")}`}function H4(e){e=Oo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),pu({type:u,values:c})}function fh(e){e=Oo(e);let t=e.type==="hsl"||e.type==="hsla"?Oo(H4(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 $Q(e,t){const n=fh(e),r=fh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function G4(e,t){return e=Oo(e),t=lw(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pu(e)}function FQ(e,t,n){try{return G4(e,t)}catch{return e}}function uw(e,t){if(e=Oo(e),t=lw(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pu(e)}function UQ(e,t,n){try{return uw(e,t)}catch{return e}}function cw(e,t){if(e=Oo(e),t=lw(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pu(e)}function zQ(e,t,n){try{return cw(e,t)}catch{return e}}function K4(e,t=.15){return fh(e)>.5?uw(e,t):cw(e,t)}function jQ(e,t,n){try{return K4(e,t)}catch{return e}}function VQ(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),i=Oo(e),a=Oo(t),u=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return pu({type:"rgb",values:u})}const WQ=["mode","contrastThreshold","tonalOffset"],a3={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:Hc.white,default:Hc.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}},fv={text:{primary:Hc.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:Hc.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}};function l3(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=LQ(e.main,o):t==="dark"&&(e.dark=PQ(e.main,i)))}function qQ(e="light"){return e==="dark"?{main:el[200],light:el[50],dark:el[400]}:{main:el[700],light:el[400],dark:el[800]}}function HQ(e="light"){return e==="dark"?{main:Ja[200],light:Ja[50],dark:Ja[400]}:{main:Ja[500],light:Ja[300],dark:Ja[700]}}function GQ(e="light"){return e==="dark"?{main:Qa[500],light:Qa[300],dark:Qa[700]}:{main:Qa[700],light:Qa[400],dark:Qa[800]}}function KQ(e="light"){return e==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[700],light:tl[500],dark:tl[900]}}function YQ(e="light"){return e==="dark"?{main:nl[400],light:nl[300],dark:nl[700]}:{main:nl[800],light:nl[500],dark:nl[900]}}function XQ(e="light"){return e==="dark"?{main:Xu[400],light:Xu[300],dark:Xu[700]}:{main:"#ed6c02",light:Xu[500],dark:Xu[900]}}function ZQ(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=it(e,WQ),i=e.primary||qQ(t),a=e.secondary||HQ(t),u=e.error||GQ(t),c=e.info||KQ(t),f=e.success||YQ(t),p=e.warning||XQ(t);function h(y){return OQ(y,fv.text.primary)>=n?fv.text.primary:a3.text.primary}const m=({color:y,name:A,mainShade:_=500,lightShade:w=300,darkShade:S=700})=>{if(y=V({},y),!y.main&&y[_]&&(y.main=y[_]),!y.hasOwnProperty("main"))throw new Error(ks(11,A?` (${A})`:"",_));if(typeof y.main!="string")throw new Error(ks(12,A?` (${A})`:"",JSON.stringify(y.main)));return l3(y,"light",w,r),l3(y,"dark",S,r),y.contrastText||(y.contrastText=h(y.main)),y},x={dark:fv,light:a3};return ko(V({common:V({},Hc),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:f,name:"success"}),grey:cY,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},x[t]),o)}const QQ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function JQ(e){return Math.round(e*1e5)/1e5}const u3={textTransform:"uppercase"},c3='"Roboto", "Helvetica", "Arial", sans-serif';function eJ(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=c3,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=it(n,QQ),x=o/14,v=h||(_=>`${_/f*x}rem`),y=(_,w,S,k,T)=>V({fontFamily:r,fontWeight:_,fontSize:v(w),lineHeight:S},r===c3?{letterSpacing:`${JQ(k/w)}em`}:{},T,p),A={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(u,14,1.75,.4,u3),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,u3),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ko(V({htmlFontSize:f,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c},A),m,{clone:!1})}const tJ=.2,nJ=.14,rJ=.12;function Jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${tJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${rJ})`].join(",")}const oJ=["none",Jt(0,2,1,-1,0,1,1,0,0,1,3,0),Jt(0,3,1,-2,0,2,2,0,0,1,5,0),Jt(0,3,3,-2,0,3,4,0,0,1,8,0),Jt(0,2,4,-1,0,4,5,0,0,1,10,0),Jt(0,3,5,-1,0,5,8,0,0,1,14,0),Jt(0,3,5,-1,0,6,10,0,0,1,18,0),Jt(0,4,5,-2,0,7,10,1,0,2,16,1),Jt(0,5,5,-3,0,8,10,1,0,3,14,2),Jt(0,5,6,-3,0,9,12,1,0,3,16,2),Jt(0,6,6,-3,0,10,14,1,0,4,18,3),Jt(0,6,7,-4,0,11,15,1,0,4,20,3),Jt(0,7,8,-4,0,12,17,2,0,5,22,4),Jt(0,7,8,-4,0,13,19,2,0,5,24,4),Jt(0,7,9,-4,0,14,21,2,0,5,26,4),Jt(0,8,9,-5,0,15,22,2,0,6,28,5),Jt(0,8,10,-5,0,16,24,2,0,6,30,5),Jt(0,8,11,-5,0,17,26,2,0,6,32,5),Jt(0,9,11,-5,0,18,28,2,0,7,34,6),Jt(0,9,12,-6,0,19,29,2,0,7,36,6),Jt(0,10,13,-6,0,20,31,3,0,8,38,7),Jt(0,10,13,-6,0,21,33,3,0,8,40,7),Jt(0,10,14,-6,0,22,35,3,0,8,42,7),Jt(0,11,14,-7,0,23,36,3,0,9,44,8),Jt(0,11,15,-7,0,24,38,3,0,9,46,8)],iJ=["duration","easing","delay"],sJ={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)"},aJ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function f3(e){return`${Math.round(e)}ms`}function lJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function uJ(e){const t=V({},sJ,e.easing),n=V({},aJ,e.duration);return V({getAutoHeightDuration:lJ,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:u=t.easeInOut,delay:c=0}=i;return it(i,iJ),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:f3(a)} ${u} ${typeof c=="string"?c:f3(c)}`).join(",")}},e,{easing:t,duration:n})}const cJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},fJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Y0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=it(e,fJ);if(e.vars)throw new Error(ks(18));const u=ZQ(r),c=Ef(e);let f=ko(c,{mixins:kQ(c.breakpoints,n),palette:u,shadows:oJ.slice(),typography:eJ(u,i),transitions:uJ(o),zIndex:V({},cJ)});return f=ko(f,a),f=t.reduce((p,h)=>ko(p,h),f),f.unstable_sxConfig=V({},Sf,a==null?void 0:a.unstable_sxConfig),f.unstable_sx=function(h){return du({sx:h,theme:this})},f}const fw=Y0();function X0(){const e=B0(fw);return e[Xl]||e}var Af={};const dJ=ji(dY);var dv={exports:{}},d3;function pJ(){return d3||(d3=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(dv)),dv.exports}const Y4=ji(yX),hJ=ji(wX),mJ=ji(CX),gJ=ji(RZ),vJ=ji(dZ),yJ=ji(yZ);var hu=j4;Object.defineProperty(Af,"__esModule",{value:!0});var wJ=Af.default=OJ;Af.shouldForwardProp=Rp;Af.systemDefaultTheme=void 0;var wo=hu(dJ),H2=hu(pJ()),p3=AJ(Y4),xJ=hJ;hu(mJ);hu(gJ);var bJ=hu(vJ),_J=hu(yJ);const SJ=["ownerState"],EJ=["variants"],CJ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function X4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(X4=function(r){return r?n:t})(e)}function AJ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=X4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function RJ(e){return Object.keys(e).length===0}function kJ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Rp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const TJ=Af.systemDefaultTheme=(0,bJ.default)(),DJ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Yd({defaultTheme:e,theme:t,themeId:n}){return RJ(t)?e:t[n]||t}function PJ(e){return e?(t,n)=>n[e]:null}function kp(e,t){let{ownerState:n}=t,r=(0,H2.default)(t,SJ);const o=typeof e=="function"?e((0,wo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>kp(i,(0,wo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let u=(0,H2.default)(o,EJ);return i.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,wo.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,wo.default)({ownerState:n},r,n)):c.style))}),u}return o}function OJ(e={}){const{themeId:t,defaultTheme:n=TJ,rootShouldForwardProp:r=Rp,slotShouldForwardProp:o=Rp}=e,i=a=>(0,_J.default)((0,wo.default)({},a,{theme:Yd((0,wo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,u={})=>{(0,p3.internal_processStyles)(a,T=>T.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m=PJ(DJ(f))}=u,x=(0,H2.default)(u,CJ),v=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=h||!1;let A,_=Rp;f==="Root"||f==="root"?_=r:f?_=o:kJ(a)&&(_=void 0);const w=(0,p3.default)(a,(0,wo.default)({shouldForwardProp:_,label:A},x)),S=T=>typeof T=="function"&&T.__emotion_real!==T||(0,xJ.isPlainObject)(T)?E=>kp(T,(0,wo.default)({},E,{theme:Yd({theme:E.theme,defaultTheme:n,themeId:t})})):T,k=(T,...E)=>{let L=S(T);const $=E?E.map(S):[];c&&m&&$.push(Y=>{const se=Yd((0,wo.default)({},Y,{defaultTheme:n,themeId:t}));if(!se.components||!se.components[c]||!se.components[c].styleOverrides)return null;const K=se.components[c].styleOverrides,H={};return Object.entries(K).forEach(([Q,le])=>{H[Q]=kp(le,(0,wo.default)({},Y,{theme:se}))}),m(Y,H)}),c&&!v&&$.push(Y=>{var se;const K=Yd((0,wo.default)({},Y,{defaultTheme:n,themeId:t})),H=K==null||(se=K.components)==null||(se=se[c])==null?void 0:se.variants;return kp({variants:H},(0,wo.default)({},Y,{theme:K}))}),y||$.push(i);const q=$.length-E.length;if(Array.isArray(T)&&q>0){const Y=new Array(q).fill("");L=[...T,...Y],L.raw=[...T.raw,...Y]}const B=w(L,...$);return a.muiName&&(B.muiName=a.muiName),B};return w.withConfig&&(k.withConfig=w.withConfig),k}}function LJ(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mu=e=>LJ(e)&&e!=="classes",It=wJ({themeId:Xl,defaultTheme:fw,rootShouldForwardProp:mu}),NJ=["theme"];function MJ(e){let{theme:t}=e,n=it(e,NJ);const r=t[Xl];return P.jsx(wQ,V({},n,{themeId:r?Xl:void 0,theme:r||t}))}function qn(e){return yQ(e)}function G2(e,t){return G2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},G2(e,t)}function Z4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,G2(e,t)}const h3={disabled:!1},dh=Ze.createContext(null);var BJ=function(t){return t.scrollTop},lc="unmounted",Js="exited",ea="entering",il="entered",K2="exiting",qi=function(e){Z4(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,u=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?u?(c=Js,i.appearStatus=ea):c=il:r.unmountOnExit||r.mountOnEnter?c=lc:c=Js,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===lc?{status:Js}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ea&&a!==il&&(i=ea):(a===ea||a===il)&&(i=K2)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ea){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:xl.findDOMNode(this);a&&BJ(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Js&&this.setState({status:lc})},n.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[xl.findDOMNode(this),u],f=c[0],p=c[1],h=this.getTimeouts(),m=u?h.appear:h.enter;if(!o&&!a||h3.disabled){this.safeSetState({status:il},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:ea},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:il},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:xl.findDOMNode(this);if(!i||h3.disabled){this.safeSetState({status:Js},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:K2},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Js},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:xl.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===lc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=it(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ze.createElement(dh.Provider,{value:null},typeof a=="function"?a(o,u):Ze.cloneElement(Ze.Children.only(a),u))},t}(Ze.Component);qi.contextType=dh;qi.propTypes={};function rl(){}qi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rl,onEntering:rl,onEntered:rl,onExit:rl,onExiting:rl,onExited:rl};qi.UNMOUNTED=lc;qi.EXITED=Js;qi.ENTERING=ea;qi.ENTERED=il;qi.EXITING=K2;function IJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(e,t){var n=function(i){return t&&D.isValidElement(i)?t(i):i},r=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function $J(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(r[c])for(a=0;ae.scrollTop;function m3(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function WJ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:f}=e,[p,h]=D.useState(!1),m=gt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=gt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&h(!0),D.useEffect(()=>{if(!u&&c!=null){const y=setTimeout(c,f);return()=>{clearTimeout(y)}}},[c,u,f]),P.jsx("span",{className:m,style:x,children:P.jsx("span",{className:v})})}const xo=nr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qJ=["center","classes","className"];let Z0=e=>e,g3,v3,y3,w3;const Y2=550,HJ=80,GJ=bf(g3||(g3=Z0` 0% { transform: scale(0); opacity: 0.1; @@ -172,7 +172,7 @@ function print() { __p += __j.call(arguments, '') } transform: scale(1); opacity: 0.3; } -`)),YJ=bf(w3||(w3=Z0` +`)),KJ=bf(v3||(v3=Z0` 0% { opacity: 1; } @@ -180,7 +180,7 @@ function print() { __p += __j.call(arguments, '') } 100% { opacity: 0; } -`)),XJ=bf(x3||(x3=Z0` +`)),YJ=bf(y3||(y3=Z0` 0% { transform: scale(1); } @@ -192,7 +192,7 @@ function print() { __p += __j.call(arguments, '') } 100% { transform: scale(1); } -`)),ZJ=It("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),QJ=It(qJ,{name:"MuiTouchRipple",slot:"Ripple"})(b3||(b3=Z0` +`)),XJ=It("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ZJ=It(WJ,{name:"MuiTouchRipple",slot:"Ripple"})(w3||(w3=Z0` opacity: 0; position: absolute; @@ -235,12 +235,12 @@ function print() { __p += __j.call(arguments, '') } animation-iteration-count: infinite; animation-delay: 200ms; } -`),xo.rippleVisible,KJ,X2,({theme:e})=>e.transitions.easing.easeInOut,xo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xo.child,xo.childLeaving,YJ,X2,({theme:e})=>e.transitions.easing.easeInOut,xo.childPulsate,XJ,({theme:e})=>e.transitions.easing.easeInOut),JJ=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,u=it(r,HJ),[c,f]=D.useState([]),p=D.useRef(0),h=D.useRef(null);D.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=D.useRef(!1),x=El(),v=D.useRef(null),y=D.useRef(null),A=D.useCallback(k=>{const{pulsate:T,rippleX:E,rippleY:L,rippleSize:$,cb:q}=k;f(B=>[...B,P.jsx(QJ,{classes:{ripple:gt(i.ripple,xo.ripple),rippleVisible:gt(i.rippleVisible,xo.rippleVisible),ripplePulsate:gt(i.ripplePulsate,xo.ripplePulsate),child:gt(i.child,xo.child),childLeaving:gt(i.childLeaving,xo.childLeaving),childPulsate:gt(i.childPulsate,xo.childPulsate)},timeout:X2,pulsate:T,rippleX:E,rippleY:L,rippleSize:$},p.current)]),p.current+=1,h.current=q},[i]),_=D.useCallback((k={},T={},E=()=>{})=>{const{pulsate:L=!1,center:$=o||T.pulsate,fakeElement:q=!1}=T;if((k==null?void 0:k.type)==="mousedown"&&m.current){m.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(m.current=!0);const B=q?null:y.current,Y=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let se,K,H;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)se=Math.round(Y.width/2),K=Math.round(Y.height/2);else{const{clientX:Q,clientY:le}=k.touches&&k.touches.length>0?k.touches[0]:k;se=Math.round(Q-Y.left),K=Math.round(le-Y.top)}if($)H=Math.sqrt((2*Y.width**2+Y.height**2)/3),H%2===0&&(H+=1);else{const Q=Math.max(Math.abs((B?B.clientWidth:0)-se),se)*2+2,le=Math.max(Math.abs((B?B.clientHeight:0)-K),K)*2+2;H=Math.sqrt(Q**2+le**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{A({pulsate:L,rippleX:se,rippleY:K,rippleSize:H,cb:E})},x.start(GJ,()=>{v.current&&(v.current(),v.current=null)})):A({pulsate:L,rippleX:se,rippleY:K,rippleSize:H,cb:E})},[o,A,x]),w=D.useCallback(()=>{_({},{pulsate:!0})},[_]),S=D.useCallback((k,T)=>{if(x.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,x.start(0,()=>{S(k,T)});return}v.current=null,f(E=>E.length>0?E.slice(1):E),h.current=T},[x]);return D.useImperativeHandle(n,()=>({pulsate:w,start:_,stop:S}),[w,_,S]),P.jsx(ZJ,V({className:gt(xo.root,i.root,a),ref:y},u,{children:P.jsx(hw,{component:null,exit:!0,children:c})}))});function eee(e){return tr("MuiButtonBase",e)}const tee=nr("MuiButtonBase",["root","disabled","focusVisible"]),nee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ree=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=dr({root:["root",t&&"disabled",n&&"focusVisible"]},eee,o);return n&&r&&(a.root+=` ${r}`),a},oee=It("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"},[`&.${tee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mw=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:x="a",onBlur:v,onClick:y,onContextMenu:A,onDragLeave:_,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:T,onMouseDown:E,onMouseLeave:L,onMouseUp:$,onTouchEnd:q,onTouchMove:B,onTouchStart:Y,tabIndex:se=0,TouchRippleProps:K,touchRippleRef:H,type:Q}=r,le=it(r,nee),de=D.useRef(null),J=D.useRef(null),pe=to(J,H),{isFocusVisibleRef:re,onFocus:me,onBlur:U,ref:ae}=lw(),[te,we]=D.useState(!1);f&&te&&we(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{we(!0),de.current.focus()}}),[]);const[fe,ye]=D.useState(!1);D.useEffect(()=>{ye(!0)},[]);const ge=fe&&!p&&!f;D.useEffect(()=>{te&&m&&!p&&fe&&J.current.pulsate()},[p,m,te,fe]);function he(Oe,Xt,rr=h){return Sl(qn=>(Xt&&Xt(qn),!rr&&J.current&&J.current[Oe](qn),!0))}const We=he("start",E),Le=he("stop",A),Re=he("stop",_),Ke=he("stop",$),st=he("stop",Oe=>{te&&Oe.preventDefault(),L&&L(Oe)}),ht=he("start",Y),bt=he("stop",q),mt=he("stop",B),Mn=he("stop",Oe=>{U(Oe),re.current===!1&&we(!1),v&&v(Oe)},!1),pr=Sl(Oe=>{de.current||(de.current=Oe.currentTarget),me(Oe),re.current===!0&&(we(!0),S&&S(Oe)),w&&w(Oe)}),Ct=()=>{const Oe=de.current;return c&&c!=="button"&&!(Oe.tagName==="A"&&Oe.href)},at=D.useRef(!1),un=Sl(Oe=>{m&&!at.current&&te&&J.current&&Oe.key===" "&&(at.current=!0,J.current.stop(Oe,()=>{J.current.start(Oe)})),Oe.target===Oe.currentTarget&&Ct()&&Oe.key===" "&&Oe.preventDefault(),k&&k(Oe),Oe.target===Oe.currentTarget&&Ct()&&Oe.key==="Enter"&&!f&&(Oe.preventDefault(),y&&y(Oe))}),cn=Sl(Oe=>{m&&Oe.key===" "&&J.current&&te&&!Oe.defaultPrevented&&(at.current=!1,J.current.stop(Oe,()=>{J.current.pulsate(Oe)})),T&&T(Oe),y&&Oe.target===Oe.currentTarget&&Ct()&&Oe.key===" "&&!Oe.defaultPrevented&&y(Oe)});let Ut=c;Ut==="button"&&(le.href||le.to)&&(Ut=x);const At={};Ut==="button"?(At.type=Q===void 0?"button":Q,At.disabled=f):(!le.href&&!le.to&&(At.role="button"),f&&(At["aria-disabled"]=f));const An=to(n,ae,de),nn=V({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:se,focusVisible:te}),qe=ree(nn);return P.jsxs(oee,V({as:Ut,className:gt(qe.root,u),ownerState:nn,onBlur:Mn,onClick:y,onContextMenu:Le,onFocus:pr,onKeyDown:un,onKeyUp:cn,onMouseDown:We,onMouseLeave:st,onMouseUp:Ke,onDragLeave:Re,onTouchEnd:bt,onTouchMove:mt,onTouchStart:ht,ref:An,tabIndex:f?-1:se,type:Q},At,le,{children:[a,ge?P.jsx(JJ,V({ref:pe,center:i},K)):null]}))});function iee(e){return tr("MuiTypography",e)}nr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const see=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],aee=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${Bt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return dr(u,iee,a)},lee=It("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${Bt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>V({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),_3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cee=e=>uee[e]||e,Qn=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiTypography"}),o=cee(r.color),i=I0(V({},r,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:x=_3}=i,v=it(i,see),y=V({},i,{align:a,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:x}),A=c||(h?"p":x[m]||_3[m])||"span",_=aee(y);return P.jsx(lee,V({as:A,ref:n,ownerState:y,className:gt(_.root,u)},v))});var gw={};Object.defineProperty(gw,"__esModule",{value:!0});var tT=gw.default=void 0,fee=pee(D),dee=Q4;function nT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nT=function(r){return r?n:t})(e)}function pee(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function hee(e){return Object.keys(e).length===0}function mee(e=null){const t=fee.useContext(dee.ThemeContext);return!t||hee(t)?e:t}tT=gw.default=mee;var Ir="top",Lo="bottom",No="right",$r="left",vw="auto",Rf=[Ir,Lo,No,$r],Jl="start",Qc="end",gee="clippingParents",rT="viewport",Qu="popper",vee="reference",S3=Rf.reduce(function(e,t){return e.concat([t+"-"+Jl,t+"-"+Qc])},[]),oT=[].concat(Rf,[vw]).reduce(function(e,t){return e.concat([t,t+"-"+Jl,t+"-"+Qc])},[]),yee="beforeRead",wee="read",xee="afterRead",bee="beforeMain",_ee="main",See="afterMain",Eee="beforeWrite",Cee="write",Aee="afterWrite",Ree=[yee,wee,xee,bee,_ee,See,Eee,Cee,Aee];function yi(e){return e?(e.nodeName||"").toLowerCase():null}function no(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ca(e){var t=no(e).Element;return e instanceof t||e instanceof Element}function To(e){var t=no(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yw(e){if(typeof ShadowRoot>"u")return!1;var t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kee(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!To(i)||!yi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var u=o[a];u===!1?i.removeAttribute(a):i.setAttribute(a,u===!0?"":u)}))})}function Tee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(c,f){return c[f]="",c},{});!To(o)||!yi(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const Dee={name:"applyStyles",enabled:!0,phase:"write",fn:kee,effect:Tee,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var ha=Math.max,ph=Math.min,eu=Math.round;function Z2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iT(){return!/^((?!chrome|android).)*safari/i.test(Z2())}function tu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&To(e)&&(o=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var a=Ca(e)?no(e):window,u=a.visualViewport,c=!iT()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function ww(e){var t=tu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zi(e){return no(e).getComputedStyle(e)}function Pee(e){return["table","td","th"].indexOf(yi(e))>=0}function Is(e){return((Ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function Q0(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(yw(e)?e.host:null)||Is(e)}function E3(e){return!To(e)||zi(e).position==="fixed"?null:e.offsetParent}function Oee(e){var t=/firefox/i.test(Z2()),n=/Trident/i.test(Z2());if(n&&To(e)){var r=zi(e);if(r.position==="fixed")return null}var o=Q0(e);for(yw(o)&&(o=o.host);To(o)&&["html","body"].indexOf(yi(o))<0;){var i=zi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function kf(e){for(var t=no(e),n=E3(e);n&&Pee(n)&&zi(n).position==="static";)n=E3(n);return n&&(yi(n)==="html"||yi(n)==="body"&&zi(n).position==="static")?t:n||Oee(e)||t}function xw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _c(e,t,n){return ha(e,ph(t,n))}function Lee(e,t,n){var r=_c(e,t,n);return r>n?n:r}function aT(){return{top:0,right:0,bottom:0,left:0}}function lT(e){return Object.assign({},aT(),e)}function uT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Nee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lT(typeof t!="number"?t:uT(t,Rf))};function Mee(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,u=mi(n.placement),c=xw(u),f=[$r,No].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!a)){var h=Nee(o.padding,n),m=ww(i),x=c==="y"?Ir:$r,v=c==="y"?Lo:No,y=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],A=a[c]-n.rects.reference[c],_=kf(i),w=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-A/2,k=h[x],T=w-m[p]-h[v],E=w/2-m[p]/2+S,L=_c(k,E,T),$=c;n.modifiersData[r]=(t={},t[$]=L,t.centerOffset=L-E,t)}}function Bee(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||sT(t.elements.popper,o)&&(t.elements.arrow=o))}const Iee={name:"arrow",enabled:!0,phase:"main",fn:Mee,effect:Bee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nu(e){return e.split("-")[1]}var $ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:eu(n*o)/o||0,y:eu(r*o)/o||0}}function C3(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=a.x,x=m===void 0?0:m,v=a.y,y=v===void 0?0:v,A=typeof p=="function"?p({x,y}):{x,y};x=A.x,y=A.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=$r,k=Ir,T=window;if(f){var E=kf(n),L="clientHeight",$="clientWidth";if(E===no(n)&&(E=Is(n),zi(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",$="scrollWidth")),E=E,o===Ir||(o===$r||o===No)&&i===Qc){k=Lo;var q=h&&E===T&&T.visualViewport?T.visualViewport.height:E[L];y-=q-r.height,y*=c?1:-1}if(o===$r||(o===Ir||o===Lo)&&i===Qc){S=No;var B=h&&E===T&&T.visualViewport?T.visualViewport.width:E[$];x-=B-r.width,x*=c?1:-1}}var Y=Object.assign({position:u},f&&$ee),se=p===!0?Fee({x,y},no(n)):{x,y};if(x=se.x,y=se.y,c){var K;return Object.assign({},Y,(K={},K[k]=w?"0":"",K[S]=_?"0":"",K.transform=(T.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",K))}return Object.assign({},Y,(t={},t[k]=w?y+"px":"",t[S]=_?x+"px":"",t.transform="",t))}function Uee(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:mi(t.placement),variation:nu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,C3(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,C3(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const zee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Uee,data:{}};var Xd={passive:!0};function jee(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,u=a===void 0?!0:a,c=no(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Xd)}),u&&c.addEventListener("resize",n.update,Xd),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Xd)}),u&&c.removeEventListener("resize",n.update,Xd)}}const Vee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jee,data:{}};var Wee={left:"right",right:"left",bottom:"top",top:"bottom"};function Tp(e){return e.replace(/left|right|bottom|top/g,function(t){return Wee[t]})}var qee={start:"end",end:"start"};function A3(e){return e.replace(/start|end/g,function(t){return qee[t]})}function bw(e){var t=no(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _w(e){return tu(Is(e)).left+bw(e).scrollLeft}function Hee(e,t){var n=no(e),r=Is(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,c=0;if(o){i=o.width,a=o.height;var f=iT();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+_w(e),y:c}}function Gee(e){var t,n=Is(e),r=bw(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ha(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ha(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+_w(e),c=-r.scrollTop;return zi(o||n).direction==="rtl"&&(u+=ha(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}function Sw(e){var t=zi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function cT(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:To(e)&&Sw(e)?e:cT(Q0(e))}function Sc(e,t){var n;t===void 0&&(t=[]);var r=cT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],Sw(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Sc(Q0(a)))}function Q2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kee(e,t){var n=tu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function R3(e,t,n){return t===rT?Q2(Hee(e,n)):Ca(t)?Kee(t,n):Q2(Gee(Is(e)))}function Yee(e){var t=Sc(Q0(e)),n=["absolute","fixed"].indexOf(zi(e).position)>=0,r=n&&To(e)?kf(e):e;return Ca(r)?t.filter(function(o){return Ca(o)&&sT(o,r)&&yi(o)!=="body"}):[]}function Xee(e,t,n,r){var o=t==="clippingParents"?Yee(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce(function(c,f){var p=R3(e,f,r);return c.top=ha(p.top,c.top),c.right=ph(p.right,c.right),c.bottom=ph(p.bottom,c.bottom),c.left=ha(p.left,c.left),c},R3(e,a,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function fT(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?nu(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case Ir:c={x:a,y:t.y-n.height};break;case Lo:c={x:a,y:t.y+t.height};break;case No:c={x:t.x+t.width,y:u};break;case $r:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?xw(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Jl:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Qc:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Jc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,u=n.boundary,c=u===void 0?gee:u,f=n.rootBoundary,p=f===void 0?rT:f,h=n.elementContext,m=h===void 0?Qu:h,x=n.altBoundary,v=x===void 0?!1:x,y=n.padding,A=y===void 0?0:y,_=lT(typeof A!="number"?A:uT(A,Rf)),w=m===Qu?vee:Qu,S=e.rects.popper,k=e.elements[v?w:m],T=Xee(Ca(k)?k:k.contextElement||Is(e.elements.popper),c,p,a),E=tu(e.elements.reference),L=fT({reference:E,element:S,strategy:"absolute",placement:o}),$=Q2(Object.assign({},S,L)),q=m===Qu?$:E,B={top:T.top-q.top+_.top,bottom:q.bottom-T.bottom+_.bottom,left:T.left-q.left+_.left,right:q.right-T.right+_.right},Y=e.modifiersData.offset;if(m===Qu&&Y){var se=Y[o];Object.keys(B).forEach(function(K){var H=[No,Lo].indexOf(K)>=0?1:-1,Q=[Ir,Lo].indexOf(K)>=0?"y":"x";B[K]+=se[Q]*H})}return B}function Zee(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?oT:c,p=nu(r),h=p?u?S3:S3.filter(function(v){return nu(v)===p}):Rf,m=h.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=h);var x=m.reduce(function(v,y){return v[y]=Jc(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[mi(y)],v},{});return Object.keys(x).sort(function(v,y){return x[v]-x[y]})}function Qee(e){if(mi(e)===vw)return[];var t=Tp(e);return[A3(e),t,A3(t)]}function Jee(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,u=a===void 0?!0:a,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,x=n.flipVariations,v=x===void 0?!0:x,y=n.allowedAutoPlacements,A=t.options.placement,_=mi(A),w=_===A,S=c||(w||!v?[Tp(A)]:Qee(A)),k=[A].concat(S).reduce(function(te,we){return te.concat(mi(we)===vw?Zee(t,{placement:we,boundary:p,rootBoundary:h,padding:f,flipVariations:v,allowedAutoPlacements:y}):we)},[]),T=t.rects.reference,E=t.rects.popper,L=new Map,$=!0,q=k[0],B=0;B=0,Q=H?"width":"height",le=Jc(t,{placement:Y,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),de=H?K?No:$r:K?Lo:Ir;T[Q]>E[Q]&&(de=Tp(de));var J=Tp(de),pe=[];if(i&&pe.push(le[se]<=0),u&&pe.push(le[de]<=0,le[J]<=0),pe.every(function(te){return te})){q=Y,$=!1;break}L.set(Y,pe)}if($)for(var re=v?3:1,me=function(we){var fe=k.find(function(ye){var ge=L.get(ye);if(ge)return ge.slice(0,we).every(function(he){return he})});if(fe)return q=fe,"break"},U=re;U>0;U--){var ae=me(U);if(ae==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}const ete={name:"flip",enabled:!0,phase:"main",fn:Jee,requiresIfExists:["offset"],data:{_skip:!1}};function k3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function T3(e){return[Ir,No,Lo,$r].some(function(t){return e[t]>=0})}function tte(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Jc(t,{elementContext:"reference"}),u=Jc(t,{altBoundary:!0}),c=k3(a,r),f=k3(u,o,i),p=T3(c),h=T3(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const nte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tte};function rte(e,t,n){var r=mi(e),o=[$r,Ir].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[$r,No].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function ote(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=oT.reduce(function(p,h){return p[h]=rte(h,t.rects,i),p},{}),u=a[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const ite={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ote};function ste(e){var t=e.state,n=e.name;t.modifiersData[n]=fT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ate={name:"popperOffsets",enabled:!0,phase:"read",fn:ste,data:{}};function lte(e){return e==="x"?"y":"x"}function ute(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,u=a===void 0?!1:a,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,x=m===void 0?!0:m,v=n.tetherOffset,y=v===void 0?0:v,A=Jc(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),_=mi(t.placement),w=nu(t.placement),S=!w,k=xw(_),T=lte(k),E=t.modifiersData.popperOffsets,L=t.rects.reference,$=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,B=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,se={x:0,y:0};if(E){if(i){var K,H=k==="y"?Ir:$r,Q=k==="y"?Lo:No,le=k==="y"?"height":"width",de=E[k],J=de+A[H],pe=de-A[Q],re=x?-$[le]/2:0,me=w===Jl?L[le]:$[le],U=w===Jl?-$[le]:-L[le],ae=t.elements.arrow,te=x&&ae?ww(ae):{width:0,height:0},we=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aT(),fe=we[H],ye=we[Q],ge=_c(0,L[le],te[le]),he=S?L[le]/2-re-ge-fe-B.mainAxis:me-ge-fe-B.mainAxis,We=S?-L[le]/2+re+ge+ye+B.mainAxis:U+ge+ye+B.mainAxis,Le=t.elements.arrow&&kf(t.elements.arrow),Re=Le?k==="y"?Le.clientTop||0:Le.clientLeft||0:0,Ke=(K=Y==null?void 0:Y[k])!=null?K:0,st=de+he-Ke-Re,ht=de+We-Ke,bt=_c(x?ph(J,st):J,de,x?ha(pe,ht):pe);E[k]=bt,se[k]=bt-de}if(u){var mt,Mn=k==="x"?Ir:$r,pr=k==="x"?Lo:No,Ct=E[T],at=T==="y"?"height":"width",un=Ct+A[Mn],cn=Ct-A[pr],Ut=[Ir,$r].indexOf(_)!==-1,At=(mt=Y==null?void 0:Y[T])!=null?mt:0,An=Ut?un:Ct-L[at]-$[at]-At+B.altAxis,nn=Ut?Ct+L[at]+$[at]-At-B.altAxis:cn,qe=x&&Ut?Lee(An,Ct,nn):_c(x?An:un,Ct,x?nn:cn);E[T]=qe,se[T]=qe-Ct}t.modifiersData[r]=se}}const cte={name:"preventOverflow",enabled:!0,phase:"main",fn:ute,requiresIfExists:["offset"]};function fte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dte(e){return e===no(e)||!To(e)?bw(e):fte(e)}function pte(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function hte(e,t,n){n===void 0&&(n=!1);var r=To(t),o=To(t)&&pte(t),i=Is(t),a=tu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||Sw(i))&&(u=dte(t)),To(t)?(c=tu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=_w(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function mte(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function gte(e){var t=mte(e);return Ree.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function vte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yte(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var D3={placement:"bottom",modifiers:[],strategy:"absolute"};function P3(){for(var e=arguments.length,t=new Array(e),n=0;n{i||u(_te(o)||document.body)},[o,i]),vi(()=>{if(a&&!i)return q2(n,a),()=>{q2(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const f={ref:c};return D.cloneElement(r,f)}return P.jsx(D.Fragment,{children:r})}return P.jsx(D.Fragment,{children:a&&Lh.createPortal(r,a)})});function Ete(e){return tr("MuiPopper",e)}nr("MuiPopper",["root"]);const Cte=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ate=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Rte(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function J2(e){return typeof e=="function"?e():e}function kte(e){return e.nodeType!==void 0}const Tte=e=>{const{classes:t}=e;return dr({root:["root"]},Ete,t)},Dte={},Pte=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:x={},slots:v={},TransitionProps:y}=t,A=it(t,Cte),_=D.useRef(null),w=to(_,n),S=D.useRef(null),k=to(S,m),T=D.useRef(k);vi(()=>{T.current=k},[k]),D.useImperativeHandle(m,()=>S.current,[]);const E=Rte(p,a),[L,$]=D.useState(E),[q,B]=D.useState(J2(o));D.useEffect(()=>{S.current&&S.current.forceUpdate()}),D.useEffect(()=>{o&&B(J2(o))},[o]),vi(()=>{if(!q||!f)return;const Q=J=>{$(J.placement)};let le=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{Q(J)}}];c!=null&&(le=le.concat(c)),h&&h.modifiers!=null&&(le=le.concat(h.modifiers));const de=bte(q,_.current,V({placement:E},h,{modifiers:le}));return T.current(de),()=>{de.destroy(),T.current(null)}},[q,u,c,f,h,E]);const Y={placement:L};y!==null&&(Y.TransitionProps=y);const se=Tte(t),K=(r=v.root)!=null?r:"div",H=cQ({elementType:K,externalSlotProps:x.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:se.root});return P.jsx(K,V({},H,{children:typeof i=="function"?i(Y):i}))}),Ote=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=Dte,popperRef:x,style:v,transition:y=!1,slotProps:A={},slots:_={}}=t,w=it(t,Ate),[S,k]=D.useState(!0),T=()=>{k(!1)},E=()=>{k(!0)};if(!c&&!p&&(!y||S))return null;let L;if(i)L=i;else if(r){const B=J2(r);L=B&&kte(B)?W2(B).body:W2(null).body}const $=!p&&c&&(!y||S)?"none":void 0,q=y?{in:p,onEnter:T,onExited:E}:void 0;return P.jsx(Ste,{disablePortal:u,container:L,children:P.jsx(Pte,V({anchorEl:r,direction:a,disablePortal:u,modifiers:f,ref:n,open:y?!S:p,placement:h,popperOptions:m,popperRef:x,slotProps:A,slots:_},w,{style:V({position:"fixed",top:0,left:0,display:$},v),TransitionProps:q,children:o}))})}),Lte=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Nte=It(Ote,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dT=D.forwardRef(function(t,n){var r;const o=tT(),i=Wn({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:x,open:v,placement:y,popperOptions:A,popperRef:_,transition:w,slots:S,slotProps:k}=i,T=it(i,Lte),E=(r=S==null?void 0:S.root)!=null?r:c==null?void 0:c.Root,L=V({anchorEl:a,container:p,disablePortal:h,keepMounted:m,modifiers:x,open:v,placement:y,popperOptions:A,popperRef:_,transition:w},T);return P.jsx(Nte,V({as:u,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k??f},L,{ref:n}))}),Mte=["onChange","maxRows","minRows","style","value"];function Zd(e){return parseInt(e,10)||0}const Bte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ite(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const $te=D.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:u}=t,c=it(t,Mte),{current:f}=D.useRef(u!=null),p=D.useRef(null),h=to(n,p),m=D.useRef(null),x=D.useRef(null),v=D.useCallback(()=>{const _=p.current,S=t3(_).getComputedStyle(_);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const k=x.current;k.style.width=S.width,k.value=_.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const T=S.boxSizing,E=Zd(S.paddingBottom)+Zd(S.paddingTop),L=Zd(S.borderBottomWidth)+Zd(S.borderTopWidth),$=k.scrollHeight;k.value="x";const q=k.scrollHeight;let B=$;i&&(B=Math.max(Number(i)*q,B)),o&&(B=Math.min(Number(o)*q,B)),B=Math.max(B,q);const Y=B+(T==="border-box"?E+L:0),se=Math.abs(B-$)<=1;return{outerHeightStyle:Y,overflowing:se}},[o,i,t.placeholder]),y=D.useCallback(()=>{const _=v();if(Ite(_))return;const w=_.outerHeightStyle,S=p.current;m.current!==w&&(m.current=w,S.style.height=`${w}px`),S.style.overflow=_.overflowing?"hidden":""},[v]);vi(()=>{const _=()=>{y()};let w;const S=HZ(_),k=p.current,T=t3(k);T.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(_),E.observe(k)),()=>{S.clear(),cancelAnimationFrame(w),T.removeEventListener("resize",S),E&&E.disconnect()}},[v,y]),vi(()=>{y()});const A=_=>{f||y(),r&&r(_)};return P.jsxs(D.Fragment,{children:[P.jsx("textarea",V({value:u,onChange:A,ref:h,rows:i,style:a},c)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:V({},Bte.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function pT({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const J0=D.createContext(void 0);function Ew(){return D.useContext(J0)}function hT(e){return P.jsx(vZ,V({},e,{defaultTheme:dw,themeId:Xl}))}function O3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function e1(e,t=!1){return e&&(O3(e.value)&&e.value!==""||t&&O3(e.defaultValue)&&e.defaultValue!=="")}function Fte(e){return e.startAdornment}function Ute(e){return tr("MuiInputBase",e)}const hh=nr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),zte=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],mT=(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${Bt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},gT=(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]},jte=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:u,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:h,size:m,startAdornment:x,type:v}=e,y={root:["root",`color${Bt(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",m&&m!=="medium"&&`size${Bt(m)}`,p&&"multiline",x&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",x&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return dr(y,Ute,t)},vT=It("div",{name:"MuiInputBase",slot:"Root",overridesResolver:mT})(({theme:e,ownerState:t})=>V({},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",[`&.${hh.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&V({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),yT=It("input",{name:"MuiInputBase",slot:"Input",overridesResolver:gT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=V({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return V({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hh.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${hh.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Vte=P.jsx(hT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Wte=D.forwardRef(function(t,n){var r;const o=Wn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:x,endAdornment:v,fullWidth:y=!1,id:A,inputComponent:_="input",inputProps:w={},inputRef:S,maxRows:k,minRows:T,multiline:E=!1,name:L,onBlur:$,onChange:q,onClick:B,onFocus:Y,onKeyDown:se,onKeyUp:K,placeholder:H,readOnly:Q,renderSuffix:le,rows:de,slotProps:J={},slots:pe={},startAdornment:re,type:me="text",value:U}=o,ae=it(o,zte),te=w.value!=null?w.value:U,{current:we}=D.useRef(te!=null),fe=D.useRef(),ye=D.useCallback(qe=>{},[]),ge=to(fe,S,w.ref,ye),[he,We]=D.useState(!1),Le=Ew(),Re=pT({props:o,muiFormControl:Le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Re.focused=Le?Le.focused:he,D.useEffect(()=>{!Le&&m&&he&&(We(!1),$&&$())},[Le,m,he,$]);const Ke=Le&&Le.onFilled,st=Le&&Le.onEmpty,ht=D.useCallback(qe=>{e1(qe)?Ke&&Ke():st&&st()},[Ke,st]);vi(()=>{we&&ht({value:te})},[te,ht,we]);const bt=qe=>{if(Re.disabled){qe.stopPropagation();return}Y&&Y(qe),w.onFocus&&w.onFocus(qe),Le&&Le.onFocus?Le.onFocus(qe):We(!0)},mt=qe=>{$&&$(qe),w.onBlur&&w.onBlur(qe),Le&&Le.onBlur?Le.onBlur(qe):We(!1)},Mn=(qe,...Oe)=>{if(!we){const Xt=qe.target||fe.current;if(Xt==null)throw new Error(Rs(1));ht({value:Xt.value})}w.onChange&&w.onChange(qe,...Oe),q&&q(qe,...Oe)};D.useEffect(()=>{ht(fe.current)},[]);const pr=qe=>{fe.current&&qe.currentTarget===qe.target&&fe.current.focus(),B&&B(qe)};let Ct=_,at=w;E&&Ct==="input"&&(de?at=V({type:void 0,minRows:de,maxRows:de},at):at=V({type:void 0,maxRows:k,minRows:T},at),Ct=$te);const un=qe=>{ht(qe.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};D.useEffect(()=>{Le&&Le.setAdornedStart(!!re)},[Le,re]);const cn=V({},o,{color:Re.color||"primary",disabled:Re.disabled,endAdornment:v,error:Re.error,focused:Re.focused,formControl:Le,fullWidth:y,hiddenLabel:Re.hiddenLabel,multiline:E,size:Re.size,startAdornment:re,type:me}),Ut=jte(cn),At=pe.root||f.Root||vT,An=J.root||p.root||{},nn=pe.input||f.Input||yT;return at=V({},at,(r=J.input)!=null?r:p.input),P.jsxs(D.Fragment,{children:[!x&&Vte,P.jsxs(At,V({},An,!Zc(At)&&{ownerState:V({},cn,An.ownerState)},{ref:n,onClick:pr},ae,{className:gt(Ut.root,An.className,c,Q&&"MuiInputBase-readOnly"),children:[re,P.jsx(J0.Provider,{value:null,children:P.jsx(nn,V({ownerState:cn,"aria-invalid":Re.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:h,disabled:Re.disabled,id:A,onAnimationStart:un,name:L,placeholder:H,readOnly:Q,required:Re.required,rows:de,value:te,onKeyDown:se,onKeyUp:K,type:me},at,!Zc(nn)&&{as:Ct,ownerState:V({},cn,at.ownerState)},{ref:ge,className:gt(Ut.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:mt,onChange:Mn,onFocus:bt}))}),v,le?le(V({},Re,{startAdornment:re})):null]}))]})}),qte=Wte;function Hte(e){return tr("MuiOutlinedInput",e)}const os=V({},hh,nr("MuiOutlinedInput",["root","notchedOutline","input"])),Gte=nr("MuiBox",["root"]),Kte=Y0(),ma=SZ({themeId:Xl,defaultTheme:Kte,defaultClassName:Gte.root,generateClassName:O4.generate});function Yte(e){return tr("MuiButton",e)}const Qd=nr("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"]),Xte=D.createContext({}),Zte=D.createContext(void 0),Qte=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Jte=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${Bt(t)}`,`size${Bt(o)}`,`${i}Size${Bt(o)}`,`color${Bt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Bt(o)}`],endIcon:["icon","endIcon",`iconSize${Bt(o)}`]},c=dr(u,Yte,a);return V({},a,c)},wT=e=>V({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ene=It(mw,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Bt(n.color)}`],t[`size${Bt(n.size)}`],t[`${n.variant}Size${Bt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return V({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":V({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Qd.focusVisible}`]:V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Qd.disabled}`]:V({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${xr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Qd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qd.disabled}`]:{boxShadow:"none"}}),tne=It("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Bt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},wT(e))),nne=It("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Bt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},wT(e))),mh=D.forwardRef(function(t,n){const r=D.useContext(Xte),o=D.useContext(Zte),i=Xc(r,t),a=Wn({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:x=!1,endIcon:v,focusVisibleClassName:y,fullWidth:A=!1,size:_="medium",startIcon:w,type:S,variant:k="text"}=a,T=it(a,Qte),E=V({},a,{color:c,component:f,disabled:h,disableElevation:m,disableFocusRipple:x,fullWidth:A,size:_,type:S,variant:k}),L=Jte(E),$=w&&P.jsx(tne,{className:L.startIcon,ownerState:E,children:w}),q=v&&P.jsx(nne,{className:L.endIcon,ownerState:E,children:v}),B=o||"";return P.jsxs(ene,V({ownerState:E,className:gt(r.className,L.root,p,B),component:f,disabled:h,focusRipple:!x,focusVisibleClassName:gt(L.focusVisible,y),ref:n,type:S},T,{classes:L,children:[$,u,q]}))}),rne=(e,t)=>V({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),one=e=>V({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}}),ine=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,u])=>{var c;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=V({html:rne(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:V({margin:0},one(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function sne(e){const t=Wn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return P.jsxs(D.Fragment,{children:[P.jsx(hT,{styles:o=>ine(o,r)}),n]})}function ane(e){return tr("MuiFormControl",e)}nr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const lne=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],une=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Bt(n)}`,r&&"fullWidth"]};return dr(o,ane,t)},cne=It("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>V({},t.root,t[`margin${Bt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>V({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),xT=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:u="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:x="none",required:v=!1,size:y="medium",variant:A="outlined"}=r,_=it(r,lne),w=V({},r,{color:a,component:u,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:x,required:v,size:y,variant:A}),S=une(w),[k,T]=D.useState(()=>{let K=!1;return o&&D.Children.forEach(o,H=>{if(!Ap(H,["Input","Select"]))return;const Q=Ap(H,["Select"])?H.props.input:H;Q&&Fte(Q.props)&&(K=!0)}),K}),[E,L]=D.useState(()=>{let K=!1;return o&&D.Children.forEach(o,H=>{Ap(H,["Input","Select"])&&(e1(H.props,!0)||e1(H.props.inputProps,!0))&&(K=!0)}),K}),[$,q]=D.useState(!1);c&&$&&q(!1);const B=p!==void 0&&!c?p:$;let Y;const se=D.useMemo(()=>({adornedStart:k,setAdornedStart:T,color:a,disabled:c,error:f,filled:E,focused:B,fullWidth:h,hiddenLabel:m,size:y,onBlur:()=>{q(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{q(!0)},registerEffect:Y,required:v,variant:A}),[k,a,c,f,E,B,h,m,Y,v,y,A]);return P.jsx(J0.Provider,{value:se,children:P.jsx(cne,V({as:u,ownerState:w,className:gt(S.root,i),ref:n},_,{children:o}))})}),Et=TQ({createStyledComponent:It("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Wn({props:e,name:"MuiStack"})}),fne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function t1(e){return`scale(${e}, ${e**2})`}const dne={entering:{opacity:1,transform:t1(1)},entered:{opacity:1,transform:"none"}},hv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),n1=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:x,style:v,timeout:y="auto",TransitionComponent:A=Wi}=t,_=it(t,fne),w=El(),S=D.useRef(),k=X0(),T=D.useRef(null),E=to(T,i.ref,n),L=Q=>le=>{if(Q){const de=T.current;le===void 0?Q(de):Q(de,le)}},$=L(p),q=L((Q,le)=>{WJ(Q);const{duration:de,delay:J,easing:pe}=v3({style:v,timeout:y,easing:a},{mode:"enter"});let re;y==="auto"?(re=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=re):re=de,Q.style.transition=[k.transitions.create("opacity",{duration:re,delay:J}),k.transitions.create("transform",{duration:hv?re:re*.666,delay:J,easing:pe})].join(","),c&&c(Q,le)}),B=L(f),Y=L(x),se=L(Q=>{const{duration:le,delay:de,easing:J}=v3({style:v,timeout:y,easing:a},{mode:"exit"});let pe;y==="auto"?(pe=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=pe):pe=le,Q.style.transition=[k.transitions.create("opacity",{duration:pe,delay:de}),k.transitions.create("transform",{duration:hv?pe:pe*.666,delay:hv?de:de||pe*.333,easing:J})].join(","),Q.style.opacity=0,Q.style.transform=t1(.75),h&&h(Q)}),K=L(m),H=Q=>{y==="auto"&&w.start(S.current||0,Q),r&&r(T.current,Q)};return P.jsx(A,V({appear:o,in:u,nodeRef:T,onEnter:q,onEntered:B,onEntering:$,onExit:se,onExited:K,onExiting:Y,addEndListener:H,timeout:y==="auto"?null:y},_,{children:(Q,le)=>D.cloneElement(i,V({style:V({opacity:0,transform:t1(.75),visibility:Q==="exited"&&!u?"hidden":void 0},dne[Q],v,i.props.style),ref:E},le))}))});n1.muiSupportAuto=!0;function pne(e){return tr("MuiInputAdornment",e)}const L3=nr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var N3;const hne=["children","className","component","disablePointerEvents","disableTypography","position","variant"],mne=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Bt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},gne=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,u={root:["root",n&&"disablePointerEvents",o&&`position${Bt(o)}`,a,r&&"hiddenLabel",i&&`size${Bt(i)}`]};return dr(u,pne,t)},vne=It("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:mne})(({theme:e,ownerState:t})=>V({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${L3.positionStart}&:not(.${L3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yne=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:u=!1,disableTypography:c=!1,position:f,variant:p}=r,h=it(r,hne),m=Ew()||{};let x=p;p&&m.variant,m&&!x&&(x=m.variant);const v=V({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:x}),y=gne(v);return P.jsx(J0.Provider,{value:null,children:P.jsx(vne,V({as:a,ownerState:v,className:gt(y.root,i),ref:n},h,{children:typeof o=="string"&&!c?P.jsx(Qn,{color:"text.secondary",children:o}):P.jsxs(D.Fragment,{children:[f==="start"?N3||(N3=P.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function wne(e){return tr("MuiLink",e)}const xne=nr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),bT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bne=e=>bT[e]||e,_ne=({theme:e,ownerState:t})=>{const n=bne(t.color),r=Ql(e,`palette.${n}`,!1)||t.color,o=Ql(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xr(r,.4)},Sne=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Ene=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Bt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return dr(i,wne,t)},Cne=It(Qn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Bt(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>V({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&V({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:_ne({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${xne.focusVisible}`]:{outline:"auto"}})),gh=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:u,onFocus:c,TypographyClasses:f,underline:p="always",variant:h="inherit",sx:m}=r,x=it(r,Sne),{isFocusVisibleRef:v,onBlur:y,onFocus:A,ref:_}=lw(),[w,S]=D.useState(!1),k=to(n,_),T=q=>{y(q),v.current===!1&&S(!1),u&&u(q)},E=q=>{A(q),v.current===!0&&S(!0),c&&c(q)},L=V({},r,{color:i,component:a,focusVisible:w,underline:p,variant:h}),$=Ene(L);return P.jsx(Cne,V({color:i,className:gt($.root,o),classes:f,component:a,onBlur:T,onFocus:E,ref:k,ownerState:L,variant:h,sx:[...Object.keys(bT).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},x))}),Es=D.createContext({});function Ane(e){return tr("MuiList",e)}nr("MuiList",["root","padding","dense","subheader"]);const Rne=["children","className","component","dense","disablePadding","subheader"],kne=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return dr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Ane,t)},Tne=It("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]}})(({ownerState:e})=>V({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Cw=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=it(r,Rne),h=D.useMemo(()=>({dense:u}),[u]),m=V({},r,{component:a,dense:u,disablePadding:c}),x=kne(m);return P.jsx(Es.Provider,{value:h,children:P.jsxs(Tne,V({as:a,className:gt(x.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})});function Dne(e){return tr("MuiListItem",e)}const sl=nr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Pne(e){return tr("MuiListItemButton",e)}const al=nr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),One=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Lne=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Nne=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:u}=e,f=dr({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},Pne,n);return V({},n,f)},Mne=It(mw,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Lne})(({theme:e,ownerState:t})=>V({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${al.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${al.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${al.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xr(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})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${al.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${al.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Bne=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:u,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1,className:x}=r,v=it(r,One),y=D.useContext(Es),A=D.useMemo(()=>({dense:c||y.dense||!1,alignItems:o,disableGutters:f}),[o,y.dense,c,f]),_=D.useRef(null);vi(()=>{i&&_.current&&_.current.focus()},[i]);const w=V({},r,{alignItems:o,dense:A.dense,disableGutters:f,divider:p,selected:m}),S=Nne(w),k=to(_,n);return P.jsx(Es.Provider,{value:A,children:P.jsx(Mne,V({ref:k,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"button":a,focusVisibleClassName:gt(S.focusVisible,h),ownerState:w,className:gt(S.root,x)},v,{classes:S,children:u}))})});function Ine(e){return tr("MuiListItemSecondaryAction",e)}nr("MuiListItemSecondaryAction",["root","disableGutters"]);const $ne=["className"],Fne=e=>{const{disableGutters:t,classes:n}=e;return dr({root:["root",t&&"disableGutters"]},Ine,n)},Une=It("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>V({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),_T=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=it(r,$ne),a=D.useContext(Es),u=V({},r,{disableGutters:a.disableGutters}),c=Fne(u);return P.jsx(Une,V({className:gt(c.root,o),ownerState:u,ref:n},i))});_T.muiName="ListItemSecondaryAction";const zne=["className"],jne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Vne=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Wne=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return dr({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},Dne,r)},qne=It("div",{name:"MuiListItem",slot:"Root",overridesResolver:Vne})(({theme:e,ownerState:t})=>V({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&V({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${al.root}`]:{paddingRight:48}},{[`&.${sl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xr(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})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Hne=It("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Aw=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:u,className:c,component:f,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:x}={},dense:v=!1,disabled:y=!1,disableGutters:A=!1,disablePadding:_=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:T=!1,slotProps:E={},slots:L={}}=r,$=it(r.ContainerProps,zne),q=it(r,jne),B=D.useContext(Es),Y=D.useMemo(()=>({dense:v||B.dense||!1,alignItems:o,disableGutters:A}),[o,B.dense,v,A]),se=D.useRef(null);vi(()=>{i&&se.current&&se.current.focus()},[i]);const K=D.Children.toArray(u),H=K.length&&Ap(K[K.length-1],["ListItemSecondaryAction"]),Q=V({},r,{alignItems:o,autoFocus:i,button:a,dense:Y.dense,disabled:y,disableGutters:A,disablePadding:_,divider:w,hasSecondaryAction:H,selected:T}),le=Wne(Q),de=to(se,n),J=L.root||p.Root||qne,pe=E.root||h.root||{},re=V({className:gt(le.root,pe.className,c),disabled:y},q);let me=f||"li";return a&&(re.component=f||"div",re.focusVisibleClassName=gt(sl.focusVisible,S),me=mw),H?(me=!re.component&&!f?"div":me,m==="li"&&(me==="li"?me="div":re.component==="li"&&(re.component="div")),P.jsx(Es.Provider,{value:Y,children:P.jsxs(Hne,V({as:m,className:gt(le.container,x),ref:de,ownerState:Q},$,{children:[P.jsx(J,V({},pe,!Zc(J)&&{as:me,ownerState:V({},Q,pe.ownerState)},re,{children:K})),K.pop()]}))})):P.jsx(Es.Provider,{value:Y,children:P.jsxs(J,V({},pe,{as:me,ref:de},!Zc(J)&&{ownerState:V({},Q,pe.ownerState)},re,{children:[K,k&&P.jsx(_T,{children:k})]}))})});function Gne(e){return tr("MuiListItemText",e)}const M3=nr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kne=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Yne=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return dr({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Gne,t)},Xne=It("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${M3.primary}`]:t.primary},{[`& .${M3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>V({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Zne=D.forwardRef(function(t,n){const r=Wn({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=it(r,Kne),{dense:x}=D.useContext(Es);let v=c??o,y=p;const A=V({},r,{disableTypography:a,inset:u,primary:!!v,secondary:!!y,dense:x}),_=Yne(A);return v!=null&&v.type!==Qn&&!a&&(v=P.jsx(Qn,V({variant:x?"body2":"body1",className:_.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:v}))),y!=null&&y.type!==Qn&&!a&&(y=P.jsx(Qn,V({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:y}))),P.jsxs(Xne,V({className:gt(_.root,i),ownerState:A,ref:n},m,{children:[v,y]}))});var B3;const Qne=["children","classes","className","label","notched"],Jne=It("fieldset",{shouldForwardProp:mu})({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%"}),ere=It("legend",{shouldForwardProp:mu})(({ownerState:e,theme:t})=>V({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&V({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function tre(e){const{className:t,label:n,notched:r}=e,o=it(e,Qne),i=n!=null&&n!=="",a=V({},e,{notched:r,withLabel:i});return P.jsx(Jne,V({"aria-hidden":!0,className:t,ownerState:a},o,{children:P.jsx(ere,{ownerState:a,children:i?P.jsx("span",{children:n}):B3||(B3=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const nre=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],rre=e=>{const{classes:t}=e,r=dr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Hte,t);return V({},t,r)},ore=It(vT,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:mT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return V({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${os.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${os.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${os.focused} .${os.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${os.error} .${os.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${os.disabled} .${os.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&V({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),ire=It(tre,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({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}}),sre=It(yT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:gT})(({theme:e,ownerState:t})=>V({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Rw=D.forwardRef(function(t,n){var r,o,i,a,u;const c=Wn({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:x=!1,notched:v,slots:y={},type:A="text"}=c,_=it(c,nre),w=rre(c),S=Ew(),k=pT({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=V({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:x,size:k.size,type:A}),E=(r=(o=y.root)!=null?o:f.Root)!=null?r:ore,L=(i=(a=y.input)!=null?a:f.Input)!=null?i:sre;return P.jsx(qte,V({slots:{root:E,input:L},renderSuffix:$=>P.jsx(ire,{ownerState:T,className:w.notchedOutline,label:m!=null&&m!==""&&k.required?u||(u=P.jsxs(D.Fragment,{children:[m," ","*"]})):m,notched:typeof v<"u"?v:!!($.startAdornment||$.filled||$.focused)}),fullWidth:p,inputComponent:h,multiline:x,ref:n,type:A},_,{classes:V({},w,{notchedOutline:null})}))});Rw.muiName="Input";function are(e){return tr("MuiTooltip",e)}const ms=nr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),lre=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function ure(e){return Math.round(e*1e5)/1e5}const cre=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Bt(i.split("-")[0])}`],arrow:["arrow"]};return dr(a,are,t)},fre=It(dT,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>V({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ms.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ms.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ms.arrow}`]:V({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ms.arrow}`]:V({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),dre=It("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Bt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>V({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${ure(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ms.popper}[data-popper-placement*="left"] &`]:V({transformOrigin:"right center"},t.isRtl?V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):V({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ms.popper}[data-popper-placement*="right"] &`]:V({transformOrigin:"left center"},t.isRtl?V({marginRight:"14px"},t.touch&&{marginRight:"24px"}):V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ms.popper}[data-popper-placement*="top"] &`]:V({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ms.popper}[data-popper-placement*="bottom"] &`]:V({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),pre=It("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Jd=!1;const I3=new Cf;let Ju={x:0,y:0};function ep(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ml=D.forwardRef(function(t,n){var r,o,i,a,u,c,f,p,h,m,x,v,y,A,_,w,S,k,T;const E=Wn({props:t,name:"MuiTooltip"}),{arrow:L=!1,children:$,components:q={},componentsProps:B={},describeChild:Y=!1,disableFocusListener:se=!1,disableHoverListener:K=!1,disableInteractive:H=!1,disableTouchListener:Q=!1,enterDelay:le=100,enterNextDelay:de=0,enterTouchDelay:J=700,followCursor:pe=!1,id:re,leaveDelay:me=0,leaveTouchDelay:U=1500,onClose:ae,onOpen:te,open:we,placement:fe="bottom",PopperComponent:ye,PopperProps:ge={},slotProps:he={},slots:We={},title:Le,TransitionComponent:Re=n1,TransitionProps:Ke}=E,st=it(E,lre),ht=D.isValidElement($)?$:P.jsx("span",{children:$}),bt=X0(),mt=vQ(),[Mn,pr]=D.useState(),[Ct,at]=D.useState(null),un=D.useRef(!1),cn=H||pe,Ut=El(),At=El(),An=El(),nn=El(),[qe,Oe]=YZ({controlled:we,default:!1,name:"Tooltip",state:"open"});let Xt=qe;const rr=KZ(re),qn=D.useRef(),Rn=Sl(()=>{qn.current!==void 0&&(document.body.style.WebkitUserSelect=qn.current,qn.current=void 0),nn.clear()});D.useEffect(()=>Rn,[Rn]);const Io=Ae=>{I3.clear(),Jd=!0,Oe(!0),te&&!Xt&&te(Ae)},W=Sl(Ae=>{I3.start(800+me,()=>{Jd=!1}),Oe(!1),ae&&Xt&&ae(Ae),Ut.start(bt.transitions.duration.shortest,()=>{un.current=!1})}),F=Ae=>{un.current&&Ae.type!=="touchstart"||(Mn&&Mn.removeAttribute("title"),At.clear(),An.clear(),le||Jd&&de?At.start(Jd?de:le,()=>{Io(Ae)}):Io(Ae))},ue=Ae=>{At.clear(),An.start(me,()=>{W(Ae)})},{isFocusVisibleRef:_e,onBlur:be,onFocus:Ce,ref:Fe}=lw(),[,Me]=D.useState(!1),Ie=Ae=>{be(Ae),_e.current===!1&&(Me(!1),ue(Ae))},Ge=Ae=>{Mn||pr(Ae.currentTarget),Ce(Ae),_e.current===!0&&(Me(!0),F(Ae))},_t=Ae=>{un.current=!0;const yt=ht.props;yt.onTouchStart&&yt.onTouchStart(Ae)},kn=Ae=>{_t(Ae),An.clear(),Ut.clear(),Rn(),qn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nn.start(J,()=>{document.body.style.WebkitUserSelect=qn.current,F(Ae)})},zt=Ae=>{ht.props.onTouchEnd&&ht.props.onTouchEnd(Ae),Rn(),An.start(U,()=>{W(Ae)})};D.useEffect(()=>{if(!Xt)return;function Ae(yt){(yt.key==="Escape"||yt.key==="Esc")&&W(yt)}return document.addEventListener("keydown",Ae),()=>{document.removeEventListener("keydown",Ae)}},[W,Xt]);const Tn=to(ht.ref,Fe,pr,n);!Le&&Le!==0&&(Xt=!1);const fn=D.useRef(),so=Ae=>{const yt=ht.props;yt.onMouseMove&&yt.onMouseMove(Ae),Ju={x:Ae.clientX,y:Ae.clientY},fn.current&&fn.current.update()},or={},N=typeof Le=="string";Y?(or.title=!Xt&&N&&!K?Le:null,or["aria-describedby"]=Xt?rr:null):(or["aria-label"]=N?Le:null,or["aria-labelledby"]=Xt&&!N?rr:null);const I=V({},or,st,ht.props,{className:gt(st.className,ht.props.className),onTouchStart:_t,ref:Tn},pe?{onMouseMove:so}:{}),G={};Q||(I.onTouchStart=kn,I.onTouchEnd=zt),K||(I.onMouseOver=ep(F,I.onMouseOver),I.onMouseLeave=ep(ue,I.onMouseLeave),cn||(G.onMouseOver=F,G.onMouseLeave=ue)),se||(I.onFocus=ep(Ge,I.onFocus),I.onBlur=ep(Ie,I.onBlur),cn||(G.onFocus=Ge,G.onBlur=Ie));const ne=D.useMemo(()=>{var Ae;let yt=[{name:"arrow",enabled:!!Ct,options:{element:Ct,padding:4}}];return(Ae=ge.popperOptions)!=null&&Ae.modifiers&&(yt=yt.concat(ge.popperOptions.modifiers)),V({},ge.popperOptions,{modifiers:yt})},[Ct,ge]),Se=V({},E,{isRtl:mt,arrow:L,disableInteractive:cn,placement:fe,PopperComponentProp:ye,touch:un.current}),Pe=cre(Se),Ue=(r=(o=We.popper)!=null?o:q.Popper)!=null?r:fre,xe=(i=(a=(u=We.transition)!=null?u:q.Transition)!=null?a:Re)!=null?i:n1,He=(c=(f=We.tooltip)!=null?f:q.Tooltip)!=null?c:dre,Be=(p=(h=We.arrow)!=null?h:q.Arrow)!=null?p:pre,$e=ac(Ue,V({},ge,(m=he.popper)!=null?m:B.popper,{className:gt(Pe.popper,ge==null?void 0:ge.className,(x=(v=he.popper)!=null?v:B.popper)==null?void 0:x.className)}),Se),St=ac(xe,V({},Ke,(y=he.transition)!=null?y:B.transition),Se),vt=ac(He,V({},(A=he.tooltip)!=null?A:B.tooltip,{className:gt(Pe.tooltip,(_=(w=he.tooltip)!=null?w:B.tooltip)==null?void 0:_.className)}),Se),Rt=ac(Be,V({},(S=he.arrow)!=null?S:B.arrow,{className:gt(Pe.arrow,(k=(T=he.arrow)!=null?T:B.arrow)==null?void 0:k.className)}),Se);return P.jsxs(D.Fragment,{children:[D.cloneElement(ht,I),P.jsx(Ue,V({as:ye??dT,placement:fe,anchorEl:pe?{getBoundingClientRect:()=>({top:Ju.y,left:Ju.x,right:Ju.x,bottom:Ju.y,width:0,height:0})}:Mn,popperRef:fn,open:Mn?Xt:!1,id:rr,transition:!0},G,$e,{popperOptions:ne,children:({TransitionProps:Ae})=>P.jsx(xe,V({timeout:bt.transitions.duration.shorter},Ae,St,{children:P.jsxs(He,V({},vt,{children:[Le,L?P.jsx(Be,V({},Rt,{ref:at})):null]}))}))}))]})}),hre=bf` +`),xo.rippleVisible,GJ,Y2,({theme:e})=>e.transitions.easing.easeInOut,xo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xo.child,xo.childLeaving,KJ,Y2,({theme:e})=>e.transitions.easing.easeInOut,xo.childPulsate,YJ,({theme:e})=>e.transitions.easing.easeInOut),QJ=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,u=it(r,qJ),[c,f]=D.useState([]),p=D.useRef(0),h=D.useRef(null);D.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=D.useRef(!1),x=El(),v=D.useRef(null),y=D.useRef(null),A=D.useCallback(k=>{const{pulsate:T,rippleX:E,rippleY:L,rippleSize:$,cb:q}=k;f(B=>[...B,P.jsx(ZJ,{classes:{ripple:gt(i.ripple,xo.ripple),rippleVisible:gt(i.rippleVisible,xo.rippleVisible),ripplePulsate:gt(i.ripplePulsate,xo.ripplePulsate),child:gt(i.child,xo.child),childLeaving:gt(i.childLeaving,xo.childLeaving),childPulsate:gt(i.childPulsate,xo.childPulsate)},timeout:Y2,pulsate:T,rippleX:E,rippleY:L,rippleSize:$},p.current)]),p.current+=1,h.current=q},[i]),_=D.useCallback((k={},T={},E=()=>{})=>{const{pulsate:L=!1,center:$=o||T.pulsate,fakeElement:q=!1}=T;if((k==null?void 0:k.type)==="mousedown"&&m.current){m.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(m.current=!0);const B=q?null:y.current,Y=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let se,K,H;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)se=Math.round(Y.width/2),K=Math.round(Y.height/2);else{const{clientX:Q,clientY:le}=k.touches&&k.touches.length>0?k.touches[0]:k;se=Math.round(Q-Y.left),K=Math.round(le-Y.top)}if($)H=Math.sqrt((2*Y.width**2+Y.height**2)/3),H%2===0&&(H+=1);else{const Q=Math.max(Math.abs((B?B.clientWidth:0)-se),se)*2+2,le=Math.max(Math.abs((B?B.clientHeight:0)-K),K)*2+2;H=Math.sqrt(Q**2+le**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{A({pulsate:L,rippleX:se,rippleY:K,rippleSize:H,cb:E})},x.start(HJ,()=>{v.current&&(v.current(),v.current=null)})):A({pulsate:L,rippleX:se,rippleY:K,rippleSize:H,cb:E})},[o,A,x]),w=D.useCallback(()=>{_({},{pulsate:!0})},[_]),S=D.useCallback((k,T)=>{if(x.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,x.start(0,()=>{S(k,T)});return}v.current=null,f(E=>E.length>0?E.slice(1):E),h.current=T},[x]);return D.useImperativeHandle(n,()=>({pulsate:w,start:_,stop:S}),[w,_,S]),P.jsx(XJ,V({className:gt(xo.root,i.root,a),ref:y},u,{children:P.jsx(pw,{component:null,exit:!0,children:c})}))});function JJ(e){return tr("MuiButtonBase",e)}const eee=nr("MuiButtonBase",["root","disabled","focusVisible"]),tee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],nee=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=dr({root:["root",t&&"disabled",n&&"focusVisible"]},JJ,o);return n&&r&&(a.root+=` ${r}`),a},ree=It("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"},[`&.${eee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hw=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:x="a",onBlur:v,onClick:y,onContextMenu:A,onDragLeave:_,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:T,onMouseDown:E,onMouseLeave:L,onMouseUp:$,onTouchEnd:q,onTouchMove:B,onTouchStart:Y,tabIndex:se=0,TouchRippleProps:K,touchRippleRef:H,type:Q}=r,le=it(r,tee),de=D.useRef(null),J=D.useRef(null),pe=to(J,H),{isFocusVisibleRef:re,onFocus:me,onBlur:U,ref:ae}=aw(),[te,we]=D.useState(!1);f&&te&&we(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{we(!0),de.current.focus()}}),[]);const[fe,ye]=D.useState(!1);D.useEffect(()=>{ye(!0)},[]);const ge=fe&&!p&&!f;D.useEffect(()=>{te&&m&&!p&&fe&&J.current.pulsate()},[p,m,te,fe]);function he(Oe,Xt,rr=h){return Sl(Hn=>(Xt&&Xt(Hn),!rr&&J.current&&J.current[Oe](Hn),!0))}const We=he("start",E),Le=he("stop",A),Re=he("stop",_),Ke=he("stop",$),st=he("stop",Oe=>{te&&Oe.preventDefault(),L&&L(Oe)}),ht=he("start",Y),bt=he("stop",q),mt=he("stop",B),Mn=he("stop",Oe=>{U(Oe),re.current===!1&&we(!1),v&&v(Oe)},!1),pr=Sl(Oe=>{de.current||(de.current=Oe.currentTarget),me(Oe),re.current===!0&&(we(!0),S&&S(Oe)),w&&w(Oe)}),Ct=()=>{const Oe=de.current;return c&&c!=="button"&&!(Oe.tagName==="A"&&Oe.href)},at=D.useRef(!1),un=Sl(Oe=>{m&&!at.current&&te&&J.current&&Oe.key===" "&&(at.current=!0,J.current.stop(Oe,()=>{J.current.start(Oe)})),Oe.target===Oe.currentTarget&&Ct()&&Oe.key===" "&&Oe.preventDefault(),k&&k(Oe),Oe.target===Oe.currentTarget&&Ct()&&Oe.key==="Enter"&&!f&&(Oe.preventDefault(),y&&y(Oe))}),cn=Sl(Oe=>{m&&Oe.key===" "&&J.current&&te&&!Oe.defaultPrevented&&(at.current=!1,J.current.stop(Oe,()=>{J.current.pulsate(Oe)})),T&&T(Oe),y&&Oe.target===Oe.currentTarget&&Ct()&&Oe.key===" "&&!Oe.defaultPrevented&&y(Oe)});let Ut=c;Ut==="button"&&(le.href||le.to)&&(Ut=x);const At={};Ut==="button"?(At.type=Q===void 0?"button":Q,At.disabled=f):(!le.href&&!le.to&&(At.role="button"),f&&(At["aria-disabled"]=f));const An=to(n,ae,de),nn=V({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:se,focusVisible:te}),qe=nee(nn);return P.jsxs(ree,V({as:Ut,className:gt(qe.root,u),ownerState:nn,onBlur:Mn,onClick:y,onContextMenu:Le,onFocus:pr,onKeyDown:un,onKeyUp:cn,onMouseDown:We,onMouseLeave:st,onMouseUp:Ke,onDragLeave:Re,onTouchEnd:bt,onTouchMove:mt,onTouchStart:ht,ref:An,tabIndex:f?-1:se,type:Q},At,le,{children:[a,ge?P.jsx(QJ,V({ref:pe,center:i},K)):null]}))});function oee(e){return tr("MuiTypography",e)}nr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const iee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],see=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${Bt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return dr(u,oee,a)},aee=It("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${Bt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>V({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),x3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},uee=e=>lee[e]||e,Un=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiTypography"}),o=uee(r.color),i=I0(V({},r,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:x=x3}=i,v=it(i,iee),y=V({},i,{align:a,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:x}),A=c||(h?"p":x[m]||x3[m])||"span",_=see(y);return P.jsx(aee,V({as:A,ref:n,ownerState:y,className:gt(_.root,u)},v))});var mw={};Object.defineProperty(mw,"__esModule",{value:!0});var Q4=mw.default=void 0,cee=dee(D),fee=Y4;function J4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(J4=function(r){return r?n:t})(e)}function dee(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=J4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function pee(e){return Object.keys(e).length===0}function hee(e=null){const t=cee.useContext(fee.ThemeContext);return!t||pee(t)?e:t}Q4=mw.default=hee;var Ir="top",Lo="bottom",No="right",$r="left",gw="auto",Rf=[Ir,Lo,No,$r],Jl="start",Qc="end",mee="clippingParents",eT="viewport",Qu="popper",gee="reference",b3=Rf.reduce(function(e,t){return e.concat([t+"-"+Jl,t+"-"+Qc])},[]),tT=[].concat(Rf,[gw]).reduce(function(e,t){return e.concat([t,t+"-"+Jl,t+"-"+Qc])},[]),vee="beforeRead",yee="read",wee="afterRead",xee="beforeMain",bee="main",_ee="afterMain",See="beforeWrite",Eee="write",Cee="afterWrite",Aee=[vee,yee,wee,xee,bee,_ee,See,Eee,Cee];function yi(e){return e?(e.nodeName||"").toLowerCase():null}function no(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Aa(e){var t=no(e).Element;return e instanceof t||e instanceof Element}function To(e){var t=no(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vw(e){if(typeof ShadowRoot>"u")return!1;var t=no(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ree(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!To(i)||!yi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var u=o[a];u===!1?i.removeAttribute(a):i.setAttribute(a,u===!0?"":u)}))})}function kee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(c,f){return c[f]="",c},{});!To(o)||!yi(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const Tee={name:"applyStyles",enabled:!0,phase:"write",fn:Ree,effect:kee,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var ma=Math.max,ph=Math.min,eu=Math.round;function X2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function nT(){return!/^((?!chrome|android).)*safari/i.test(X2())}function tu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&To(e)&&(o=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var a=Aa(e)?no(e):window,u=a.visualViewport,c=!nT()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function yw(e){var t=tu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function rT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zi(e){return no(e).getComputedStyle(e)}function Dee(e){return["table","td","th"].indexOf(yi(e))>=0}function Is(e){return((Aa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Q0(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(vw(e)?e.host:null)||Is(e)}function _3(e){return!To(e)||zi(e).position==="fixed"?null:e.offsetParent}function Pee(e){var t=/firefox/i.test(X2()),n=/Trident/i.test(X2());if(n&&To(e)){var r=zi(e);if(r.position==="fixed")return null}var o=Q0(e);for(vw(o)&&(o=o.host);To(o)&&["html","body"].indexOf(yi(o))<0;){var i=zi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function kf(e){for(var t=no(e),n=_3(e);n&&Dee(n)&&zi(n).position==="static";)n=_3(n);return n&&(yi(n)==="html"||yi(n)==="body"&&zi(n).position==="static")?t:n||Pee(e)||t}function ww(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _c(e,t,n){return ma(e,ph(t,n))}function Oee(e,t,n){var r=_c(e,t,n);return r>n?n:r}function oT(){return{top:0,right:0,bottom:0,left:0}}function iT(e){return Object.assign({},oT(),e)}function sT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,iT(typeof t!="number"?t:sT(t,Rf))};function Nee(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,u=mi(n.placement),c=ww(u),f=[$r,No].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!a)){var h=Lee(o.padding,n),m=yw(i),x=c==="y"?Ir:$r,v=c==="y"?Lo:No,y=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],A=a[c]-n.rects.reference[c],_=kf(i),w=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-A/2,k=h[x],T=w-m[p]-h[v],E=w/2-m[p]/2+S,L=_c(k,E,T),$=c;n.modifiersData[r]=(t={},t[$]=L,t.centerOffset=L-E,t)}}function Mee(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||rT(t.elements.popper,o)&&(t.elements.arrow=o))}const Bee={name:"arrow",enabled:!0,phase:"main",fn:Nee,effect:Mee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nu(e){return e.split("-")[1]}var Iee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $ee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:eu(n*o)/o||0,y:eu(r*o)/o||0}}function S3(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=a.x,x=m===void 0?0:m,v=a.y,y=v===void 0?0:v,A=typeof p=="function"?p({x,y}):{x,y};x=A.x,y=A.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=$r,k=Ir,T=window;if(f){var E=kf(n),L="clientHeight",$="clientWidth";if(E===no(n)&&(E=Is(n),zi(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",$="scrollWidth")),E=E,o===Ir||(o===$r||o===No)&&i===Qc){k=Lo;var q=h&&E===T&&T.visualViewport?T.visualViewport.height:E[L];y-=q-r.height,y*=c?1:-1}if(o===$r||(o===Ir||o===Lo)&&i===Qc){S=No;var B=h&&E===T&&T.visualViewport?T.visualViewport.width:E[$];x-=B-r.width,x*=c?1:-1}}var Y=Object.assign({position:u},f&&Iee),se=p===!0?$ee({x,y},no(n)):{x,y};if(x=se.x,y=se.y,c){var K;return Object.assign({},Y,(K={},K[k]=w?"0":"",K[S]=_?"0":"",K.transform=(T.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",K))}return Object.assign({},Y,(t={},t[k]=w?y+"px":"",t[S]=_?x+"px":"",t.transform="",t))}function Fee(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:mi(t.placement),variation:nu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,S3(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,S3(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Uee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fee,data:{}};var Xd={passive:!0};function zee(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,u=a===void 0?!0:a,c=no(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Xd)}),u&&c.addEventListener("resize",n.update,Xd),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Xd)}),u&&c.removeEventListener("resize",n.update,Xd)}}const jee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zee,data:{}};var Vee={left:"right",right:"left",bottom:"top",top:"bottom"};function Tp(e){return e.replace(/left|right|bottom|top/g,function(t){return Vee[t]})}var Wee={start:"end",end:"start"};function E3(e){return e.replace(/start|end/g,function(t){return Wee[t]})}function xw(e){var t=no(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function bw(e){return tu(Is(e)).left+xw(e).scrollLeft}function qee(e,t){var n=no(e),r=Is(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,c=0;if(o){i=o.width,a=o.height;var f=nT();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:u+bw(e),y:c}}function Hee(e){var t,n=Is(e),r=xw(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ma(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ma(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+bw(e),c=-r.scrollTop;return zi(o||n).direction==="rtl"&&(u+=ma(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}function _w(e){var t=zi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function aT(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:To(e)&&_w(e)?e:aT(Q0(e))}function Sc(e,t){var n;t===void 0&&(t=[]);var r=aT(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],_w(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Sc(Q0(a)))}function Z2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Gee(e,t){var n=tu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function C3(e,t,n){return t===eT?Z2(qee(e,n)):Aa(t)?Gee(t,n):Z2(Hee(Is(e)))}function Kee(e){var t=Sc(Q0(e)),n=["absolute","fixed"].indexOf(zi(e).position)>=0,r=n&&To(e)?kf(e):e;return Aa(r)?t.filter(function(o){return Aa(o)&&rT(o,r)&&yi(o)!=="body"}):[]}function Yee(e,t,n,r){var o=t==="clippingParents"?Kee(e):[].concat(t),i=[].concat(o,[n]),a=i[0],u=i.reduce(function(c,f){var p=C3(e,f,r);return c.top=ma(p.top,c.top),c.right=ph(p.right,c.right),c.bottom=ph(p.bottom,c.bottom),c.left=ma(p.left,c.left),c},C3(e,a,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function lT(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?nu(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case Ir:c={x:a,y:t.y-n.height};break;case Lo:c={x:a,y:t.y+t.height};break;case No:c={x:t.x+t.width,y:u};break;case $r:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?ww(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Jl:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Qc:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Jc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,u=n.boundary,c=u===void 0?mee:u,f=n.rootBoundary,p=f===void 0?eT:f,h=n.elementContext,m=h===void 0?Qu:h,x=n.altBoundary,v=x===void 0?!1:x,y=n.padding,A=y===void 0?0:y,_=iT(typeof A!="number"?A:sT(A,Rf)),w=m===Qu?gee:Qu,S=e.rects.popper,k=e.elements[v?w:m],T=Yee(Aa(k)?k:k.contextElement||Is(e.elements.popper),c,p,a),E=tu(e.elements.reference),L=lT({reference:E,element:S,strategy:"absolute",placement:o}),$=Z2(Object.assign({},S,L)),q=m===Qu?$:E,B={top:T.top-q.top+_.top,bottom:q.bottom-T.bottom+_.bottom,left:T.left-q.left+_.left,right:q.right-T.right+_.right},Y=e.modifiersData.offset;if(m===Qu&&Y){var se=Y[o];Object.keys(B).forEach(function(K){var H=[No,Lo].indexOf(K)>=0?1:-1,Q=[Ir,Lo].indexOf(K)>=0?"y":"x";B[K]+=se[Q]*H})}return B}function Xee(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?tT:c,p=nu(r),h=p?u?b3:b3.filter(function(v){return nu(v)===p}):Rf,m=h.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=h);var x=m.reduce(function(v,y){return v[y]=Jc(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[mi(y)],v},{});return Object.keys(x).sort(function(v,y){return x[v]-x[y]})}function Zee(e){if(mi(e)===gw)return[];var t=Tp(e);return[E3(e),t,E3(t)]}function Qee(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,u=a===void 0?!0:a,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,x=n.flipVariations,v=x===void 0?!0:x,y=n.allowedAutoPlacements,A=t.options.placement,_=mi(A),w=_===A,S=c||(w||!v?[Tp(A)]:Zee(A)),k=[A].concat(S).reduce(function(te,we){return te.concat(mi(we)===gw?Xee(t,{placement:we,boundary:p,rootBoundary:h,padding:f,flipVariations:v,allowedAutoPlacements:y}):we)},[]),T=t.rects.reference,E=t.rects.popper,L=new Map,$=!0,q=k[0],B=0;B=0,Q=H?"width":"height",le=Jc(t,{placement:Y,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),de=H?K?No:$r:K?Lo:Ir;T[Q]>E[Q]&&(de=Tp(de));var J=Tp(de),pe=[];if(i&&pe.push(le[se]<=0),u&&pe.push(le[de]<=0,le[J]<=0),pe.every(function(te){return te})){q=Y,$=!1;break}L.set(Y,pe)}if($)for(var re=v?3:1,me=function(we){var fe=k.find(function(ye){var ge=L.get(ye);if(ge)return ge.slice(0,we).every(function(he){return he})});if(fe)return q=fe,"break"},U=re;U>0;U--){var ae=me(U);if(ae==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}const Jee={name:"flip",enabled:!0,phase:"main",fn:Qee,requiresIfExists:["offset"],data:{_skip:!1}};function A3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function R3(e){return[Ir,No,Lo,$r].some(function(t){return e[t]>=0})}function ete(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Jc(t,{elementContext:"reference"}),u=Jc(t,{altBoundary:!0}),c=A3(a,r),f=A3(u,o,i),p=R3(c),h=R3(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const tte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ete};function nte(e,t,n){var r=mi(e),o=[$r,Ir].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[$r,No].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function rte(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=tT.reduce(function(p,h){return p[h]=nte(h,t.rects,i),p},{}),u=a[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const ote={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rte};function ite(e){var t=e.state,n=e.name;t.modifiersData[n]=lT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ste={name:"popperOffsets",enabled:!0,phase:"read",fn:ite,data:{}};function ate(e){return e==="x"?"y":"x"}function lte(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,u=a===void 0?!1:a,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,x=m===void 0?!0:m,v=n.tetherOffset,y=v===void 0?0:v,A=Jc(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),_=mi(t.placement),w=nu(t.placement),S=!w,k=ww(_),T=ate(k),E=t.modifiersData.popperOffsets,L=t.rects.reference,$=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,B=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,se={x:0,y:0};if(E){if(i){var K,H=k==="y"?Ir:$r,Q=k==="y"?Lo:No,le=k==="y"?"height":"width",de=E[k],J=de+A[H],pe=de-A[Q],re=x?-$[le]/2:0,me=w===Jl?L[le]:$[le],U=w===Jl?-$[le]:-L[le],ae=t.elements.arrow,te=x&&ae?yw(ae):{width:0,height:0},we=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oT(),fe=we[H],ye=we[Q],ge=_c(0,L[le],te[le]),he=S?L[le]/2-re-ge-fe-B.mainAxis:me-ge-fe-B.mainAxis,We=S?-L[le]/2+re+ge+ye+B.mainAxis:U+ge+ye+B.mainAxis,Le=t.elements.arrow&&kf(t.elements.arrow),Re=Le?k==="y"?Le.clientTop||0:Le.clientLeft||0:0,Ke=(K=Y==null?void 0:Y[k])!=null?K:0,st=de+he-Ke-Re,ht=de+We-Ke,bt=_c(x?ph(J,st):J,de,x?ma(pe,ht):pe);E[k]=bt,se[k]=bt-de}if(u){var mt,Mn=k==="x"?Ir:$r,pr=k==="x"?Lo:No,Ct=E[T],at=T==="y"?"height":"width",un=Ct+A[Mn],cn=Ct-A[pr],Ut=[Ir,$r].indexOf(_)!==-1,At=(mt=Y==null?void 0:Y[T])!=null?mt:0,An=Ut?un:Ct-L[at]-$[at]-At+B.altAxis,nn=Ut?Ct+L[at]+$[at]-At-B.altAxis:cn,qe=x&&Ut?Oee(An,Ct,nn):_c(x?An:un,Ct,x?nn:cn);E[T]=qe,se[T]=qe-Ct}t.modifiersData[r]=se}}const ute={name:"preventOverflow",enabled:!0,phase:"main",fn:lte,requiresIfExists:["offset"]};function cte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fte(e){return e===no(e)||!To(e)?xw(e):cte(e)}function dte(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pte(e,t,n){n===void 0&&(n=!1);var r=To(t),o=To(t)&&dte(t),i=Is(t),a=tu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||_w(i))&&(u=fte(t)),To(t)?(c=tu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=bw(i))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function hte(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function mte(e){var t=hte(e);return Aee.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function gte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vte(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var k3={placement:"bottom",modifiers:[],strategy:"absolute"};function T3(){for(var e=arguments.length,t=new Array(e),n=0;n{i||u(bte(o)||document.body)},[o,i]),vi(()=>{if(a&&!i)return W2(n,a),()=>{W2(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const f={ref:c};return D.cloneElement(r,f)}return P.jsx(D.Fragment,{children:r})}return P.jsx(D.Fragment,{children:a&&Lh.createPortal(r,a)})});function Ste(e){return tr("MuiPopper",e)}nr("MuiPopper",["root"]);const Ete=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Cte=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ate(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Q2(e){return typeof e=="function"?e():e}function Rte(e){return e.nodeType!==void 0}const kte=e=>{const{classes:t}=e;return dr({root:["root"]},Ste,t)},Tte={},Dte=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:x={},slots:v={},TransitionProps:y}=t,A=it(t,Ete),_=D.useRef(null),w=to(_,n),S=D.useRef(null),k=to(S,m),T=D.useRef(k);vi(()=>{T.current=k},[k]),D.useImperativeHandle(m,()=>S.current,[]);const E=Ate(p,a),[L,$]=D.useState(E),[q,B]=D.useState(Q2(o));D.useEffect(()=>{S.current&&S.current.forceUpdate()}),D.useEffect(()=>{o&&B(Q2(o))},[o]),vi(()=>{if(!q||!f)return;const Q=J=>{$(J.placement)};let le=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{Q(J)}}];c!=null&&(le=le.concat(c)),h&&h.modifiers!=null&&(le=le.concat(h.modifiers));const de=xte(q,_.current,V({placement:E},h,{modifiers:le}));return T.current(de),()=>{de.destroy(),T.current(null)}},[q,u,c,f,h,E]);const Y={placement:L};y!==null&&(Y.TransitionProps=y);const se=kte(t),K=(r=v.root)!=null?r:"div",H=lQ({elementType:K,externalSlotProps:x.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:se.root});return P.jsx(K,V({},H,{children:typeof i=="function"?i(Y):i}))}),Pte=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=Tte,popperRef:x,style:v,transition:y=!1,slotProps:A={},slots:_={}}=t,w=it(t,Cte),[S,k]=D.useState(!0),T=()=>{k(!1)},E=()=>{k(!0)};if(!c&&!p&&(!y||S))return null;let L;if(i)L=i;else if(r){const B=Q2(r);L=B&&Rte(B)?V2(B).body:V2(null).body}const $=!p&&c&&(!y||S)?"none":void 0,q=y?{in:p,onEnter:T,onExited:E}:void 0;return P.jsx(_te,{disablePortal:u,container:L,children:P.jsx(Dte,V({anchorEl:r,direction:a,disablePortal:u,modifiers:f,ref:n,open:y?!S:p,placement:h,popperOptions:m,popperRef:x,slotProps:A,slots:_},w,{style:V({position:"fixed",top:0,left:0,display:$},v),TransitionProps:q,children:o}))})}),Ote=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Lte=It(Pte,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uT=D.forwardRef(function(t,n){var r;const o=Q4(),i=qn({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:x,open:v,placement:y,popperOptions:A,popperRef:_,transition:w,slots:S,slotProps:k}=i,T=it(i,Ote),E=(r=S==null?void 0:S.root)!=null?r:c==null?void 0:c.Root,L=V({anchorEl:a,container:p,disablePortal:h,keepMounted:m,modifiers:x,open:v,placement:y,popperOptions:A,popperRef:_,transition:w},T);return P.jsx(Lte,V({as:u,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k??f},L,{ref:n}))}),Nte=["onChange","maxRows","minRows","style","value"];function Zd(e){return parseInt(e,10)||0}const Mte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Bte(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Ite=D.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:u}=t,c=it(t,Nte),{current:f}=D.useRef(u!=null),p=D.useRef(null),h=to(n,p),m=D.useRef(null),x=D.useRef(null),v=D.useCallback(()=>{const _=p.current,S=JE(_).getComputedStyle(_);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const k=x.current;k.style.width=S.width,k.value=_.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const T=S.boxSizing,E=Zd(S.paddingBottom)+Zd(S.paddingTop),L=Zd(S.borderBottomWidth)+Zd(S.borderTopWidth),$=k.scrollHeight;k.value="x";const q=k.scrollHeight;let B=$;i&&(B=Math.max(Number(i)*q,B)),o&&(B=Math.min(Number(o)*q,B)),B=Math.max(B,q);const Y=B+(T==="border-box"?E+L:0),se=Math.abs(B-$)<=1;return{outerHeightStyle:Y,overflowing:se}},[o,i,t.placeholder]),y=D.useCallback(()=>{const _=v();if(Bte(_))return;const w=_.outerHeightStyle,S=p.current;m.current!==w&&(m.current=w,S.style.height=`${w}px`),S.style.overflow=_.overflowing?"hidden":""},[v]);vi(()=>{const _=()=>{y()};let w;const S=WZ(_),k=p.current,T=JE(k);T.addEventListener("resize",S);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(_),E.observe(k)),()=>{S.clear(),cancelAnimationFrame(w),T.removeEventListener("resize",S),E&&E.disconnect()}},[v,y]),vi(()=>{y()});const A=_=>{f||y(),r&&r(_)};return P.jsxs(D.Fragment,{children:[P.jsx("textarea",V({value:u,onChange:A,ref:h,rows:i,style:a},c)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:V({},Mte.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function cT({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const J0=D.createContext(void 0);function Sw(){return D.useContext(J0)}function fT(e){return P.jsx(mZ,V({},e,{defaultTheme:fw,themeId:Xl}))}function D3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function J2(e,t=!1){return e&&(D3(e.value)&&e.value!==""||t&&D3(e.defaultValue)&&e.defaultValue!=="")}function $te(e){return e.startAdornment}function Fte(e){return tr("MuiInputBase",e)}const hh=nr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ute=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],dT=(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${Bt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},pT=(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]},zte=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:u,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:h,size:m,startAdornment:x,type:v}=e,y={root:["root",`color${Bt(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",u&&"formControl",m&&m!=="medium"&&`size${Bt(m)}`,p&&"multiline",x&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",x&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return dr(y,Fte,t)},hT=It("div",{name:"MuiInputBase",slot:"Root",overridesResolver:dT})(({theme:e,ownerState:t})=>V({},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",[`&.${hh.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&V({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),mT=It("input",{name:"MuiInputBase",slot:"Input",overridesResolver:pT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=V({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return V({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hh.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${hh.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),jte=P.jsx(fT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Vte=D.forwardRef(function(t,n){var r;const o=qn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:x,endAdornment:v,fullWidth:y=!1,id:A,inputComponent:_="input",inputProps:w={},inputRef:S,maxRows:k,minRows:T,multiline:E=!1,name:L,onBlur:$,onChange:q,onClick:B,onFocus:Y,onKeyDown:se,onKeyUp:K,placeholder:H,readOnly:Q,renderSuffix:le,rows:de,slotProps:J={},slots:pe={},startAdornment:re,type:me="text",value:U}=o,ae=it(o,Ute),te=w.value!=null?w.value:U,{current:we}=D.useRef(te!=null),fe=D.useRef(),ye=D.useCallback(qe=>{},[]),ge=to(fe,S,w.ref,ye),[he,We]=D.useState(!1),Le=Sw(),Re=cT({props:o,muiFormControl:Le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Re.focused=Le?Le.focused:he,D.useEffect(()=>{!Le&&m&&he&&(We(!1),$&&$())},[Le,m,he,$]);const Ke=Le&&Le.onFilled,st=Le&&Le.onEmpty,ht=D.useCallback(qe=>{J2(qe)?Ke&&Ke():st&&st()},[Ke,st]);vi(()=>{we&&ht({value:te})},[te,ht,we]);const bt=qe=>{if(Re.disabled){qe.stopPropagation();return}Y&&Y(qe),w.onFocus&&w.onFocus(qe),Le&&Le.onFocus?Le.onFocus(qe):We(!0)},mt=qe=>{$&&$(qe),w.onBlur&&w.onBlur(qe),Le&&Le.onBlur?Le.onBlur(qe):We(!1)},Mn=(qe,...Oe)=>{if(!we){const Xt=qe.target||fe.current;if(Xt==null)throw new Error(ks(1));ht({value:Xt.value})}w.onChange&&w.onChange(qe,...Oe),q&&q(qe,...Oe)};D.useEffect(()=>{ht(fe.current)},[]);const pr=qe=>{fe.current&&qe.currentTarget===qe.target&&fe.current.focus(),B&&B(qe)};let Ct=_,at=w;E&&Ct==="input"&&(de?at=V({type:void 0,minRows:de,maxRows:de},at):at=V({type:void 0,maxRows:k,minRows:T},at),Ct=Ite);const un=qe=>{ht(qe.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};D.useEffect(()=>{Le&&Le.setAdornedStart(!!re)},[Le,re]);const cn=V({},o,{color:Re.color||"primary",disabled:Re.disabled,endAdornment:v,error:Re.error,focused:Re.focused,formControl:Le,fullWidth:y,hiddenLabel:Re.hiddenLabel,multiline:E,size:Re.size,startAdornment:re,type:me}),Ut=zte(cn),At=pe.root||f.Root||hT,An=J.root||p.root||{},nn=pe.input||f.Input||mT;return at=V({},at,(r=J.input)!=null?r:p.input),P.jsxs(D.Fragment,{children:[!x&&jte,P.jsxs(At,V({},An,!Zc(At)&&{ownerState:V({},cn,An.ownerState)},{ref:n,onClick:pr},ae,{className:gt(Ut.root,An.className,c,Q&&"MuiInputBase-readOnly"),children:[re,P.jsx(J0.Provider,{value:null,children:P.jsx(nn,V({ownerState:cn,"aria-invalid":Re.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:h,disabled:Re.disabled,id:A,onAnimationStart:un,name:L,placeholder:H,readOnly:Q,required:Re.required,rows:de,value:te,onKeyDown:se,onKeyUp:K,type:me},at,!Zc(nn)&&{as:Ct,ownerState:V({},cn,at.ownerState)},{ref:ge,className:gt(Ut.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:mt,onChange:Mn,onFocus:bt}))}),v,le?le(V({},Re,{startAdornment:re})):null]}))]})}),Wte=Vte;function qte(e){return tr("MuiOutlinedInput",e)}const is=V({},hh,nr("MuiOutlinedInput",["root","notchedOutline","input"])),Hte=nr("MuiBox",["root"]),Gte=Y0(),ga=bZ({themeId:Xl,defaultTheme:Gte,defaultClassName:Hte.root,generateClassName:T4.generate});function Kte(e){return tr("MuiButton",e)}const Qd=nr("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"]),Yte=D.createContext({}),Xte=D.createContext(void 0),Zte=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Qte=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${Bt(t)}`,`size${Bt(o)}`,`${i}Size${Bt(o)}`,`color${Bt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Bt(o)}`],endIcon:["icon","endIcon",`iconSize${Bt(o)}`]},c=dr(u,Kte,a);return V({},a,c)},gT=e=>V({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Jte=It(hw,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Bt(n.color)}`],t[`size${Bt(n.size)}`],t[`${n.variant}Size${Bt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return V({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":V({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Qd.focusVisible}`]:V({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Qd.disabled}`]:V({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${xr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Qd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qd.disabled}`]:{boxShadow:"none"}}),ene=It("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Bt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},gT(e))),tne=It("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Bt(n.size)}`]]}})(({ownerState:e})=>V({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},gT(e))),mh=D.forwardRef(function(t,n){const r=D.useContext(Yte),o=D.useContext(Xte),i=Xc(r,t),a=qn({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:x=!1,endIcon:v,focusVisibleClassName:y,fullWidth:A=!1,size:_="medium",startIcon:w,type:S,variant:k="text"}=a,T=it(a,Zte),E=V({},a,{color:c,component:f,disabled:h,disableElevation:m,disableFocusRipple:x,fullWidth:A,size:_,type:S,variant:k}),L=Qte(E),$=w&&P.jsx(ene,{className:L.startIcon,ownerState:E,children:w}),q=v&&P.jsx(tne,{className:L.endIcon,ownerState:E,children:v}),B=o||"";return P.jsxs(Jte,V({ownerState:E,className:gt(r.className,L.root,p,B),component:f,disabled:h,focusRipple:!x,focusVisibleClassName:gt(L.focusVisible,y),ref:n,type:S},T,{classes:L,children:[$,u,q]}))}),nne=(e,t)=>V({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),rne=e=>V({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}}),one=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,u])=>{var c;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=V({html:nne(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:V({margin:0},rne(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function ine(e){const t=qn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return P.jsxs(D.Fragment,{children:[P.jsx(fT,{styles:o=>one(o,r)}),n]})}function sne(e){return tr("MuiFormControl",e)}nr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ane=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],lne=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Bt(n)}`,r&&"fullWidth"]};return dr(o,sne,t)},une=It("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>V({},t.root,t[`margin${Bt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>V({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),vT=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:u="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:x="none",required:v=!1,size:y="medium",variant:A="outlined"}=r,_=it(r,ane),w=V({},r,{color:a,component:u,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:x,required:v,size:y,variant:A}),S=lne(w),[k,T]=D.useState(()=>{let K=!1;return o&&D.Children.forEach(o,H=>{if(!Ap(H,["Input","Select"]))return;const Q=Ap(H,["Select"])?H.props.input:H;Q&&$te(Q.props)&&(K=!0)}),K}),[E,L]=D.useState(()=>{let K=!1;return o&&D.Children.forEach(o,H=>{Ap(H,["Input","Select"])&&(J2(H.props,!0)||J2(H.props.inputProps,!0))&&(K=!0)}),K}),[$,q]=D.useState(!1);c&&$&&q(!1);const B=p!==void 0&&!c?p:$;let Y;const se=D.useMemo(()=>({adornedStart:k,setAdornedStart:T,color:a,disabled:c,error:f,filled:E,focused:B,fullWidth:h,hiddenLabel:m,size:y,onBlur:()=>{q(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{q(!0)},registerEffect:Y,required:v,variant:A}),[k,a,c,f,E,B,h,m,Y,v,y,A]);return P.jsx(J0.Provider,{value:se,children:P.jsx(une,V({as:u,ownerState:w,className:gt(S.root,i),ref:n},_,{children:o}))})}),Et=RQ({createStyledComponent:It("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>qn({props:e,name:"MuiStack"})}),cne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function e1(e){return`scale(${e}, ${e**2})`}const fne={entering:{opacity:1,transform:e1(1)},entered:{opacity:1,transform:"none"}},pv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),t1=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:x,style:v,timeout:y="auto",TransitionComponent:A=qi}=t,_=it(t,cne),w=El(),S=D.useRef(),k=X0(),T=D.useRef(null),E=to(T,i.ref,n),L=Q=>le=>{if(Q){const de=T.current;le===void 0?Q(de):Q(de,le)}},$=L(p),q=L((Q,le)=>{VJ(Q);const{duration:de,delay:J,easing:pe}=m3({style:v,timeout:y,easing:a},{mode:"enter"});let re;y==="auto"?(re=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=re):re=de,Q.style.transition=[k.transitions.create("opacity",{duration:re,delay:J}),k.transitions.create("transform",{duration:pv?re:re*.666,delay:J,easing:pe})].join(","),c&&c(Q,le)}),B=L(f),Y=L(x),se=L(Q=>{const{duration:le,delay:de,easing:J}=m3({style:v,timeout:y,easing:a},{mode:"exit"});let pe;y==="auto"?(pe=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=pe):pe=le,Q.style.transition=[k.transitions.create("opacity",{duration:pe,delay:de}),k.transitions.create("transform",{duration:pv?pe:pe*.666,delay:pv?de:de||pe*.333,easing:J})].join(","),Q.style.opacity=0,Q.style.transform=e1(.75),h&&h(Q)}),K=L(m),H=Q=>{y==="auto"&&w.start(S.current||0,Q),r&&r(T.current,Q)};return P.jsx(A,V({appear:o,in:u,nodeRef:T,onEnter:q,onEntered:B,onEntering:$,onExit:se,onExited:K,onExiting:Y,addEndListener:H,timeout:y==="auto"?null:y},_,{children:(Q,le)=>D.cloneElement(i,V({style:V({opacity:0,transform:e1(.75),visibility:Q==="exited"&&!u?"hidden":void 0},fne[Q],v,i.props.style),ref:E},le))}))});t1.muiSupportAuto=!0;function dne(e){return tr("MuiInputAdornment",e)}const P3=nr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var O3;const pne=["children","className","component","disablePointerEvents","disableTypography","position","variant"],hne=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Bt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},mne=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,u={root:["root",n&&"disablePointerEvents",o&&`position${Bt(o)}`,a,r&&"hiddenLabel",i&&`size${Bt(i)}`]};return dr(u,dne,t)},gne=It("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:hne})(({theme:e,ownerState:t})=>V({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${P3.positionStart}&:not(.${P3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),vne=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:u=!1,disableTypography:c=!1,position:f,variant:p}=r,h=it(r,pne),m=Sw()||{};let x=p;p&&m.variant,m&&!x&&(x=m.variant);const v=V({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:x}),y=mne(v);return P.jsx(J0.Provider,{value:null,children:P.jsx(gne,V({as:a,ownerState:v,className:gt(y.root,i),ref:n},h,{children:typeof o=="string"&&!c?P.jsx(Un,{color:"text.secondary",children:o}):P.jsxs(D.Fragment,{children:[f==="start"?O3||(O3=P.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function yne(e){return tr("MuiLink",e)}const wne=nr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),yT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xne=e=>yT[e]||e,bne=({theme:e,ownerState:t})=>{const n=xne(t.color),r=Ql(e,`palette.${n}`,!1)||t.color,o=Ql(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xr(r,.4)},_ne=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Sne=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Bt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return dr(i,yne,t)},Ene=It(Un,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Bt(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>V({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&V({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:bne({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${wne.focusVisible}`]:{outline:"auto"}})),gh=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:u,onFocus:c,TypographyClasses:f,underline:p="always",variant:h="inherit",sx:m}=r,x=it(r,_ne),{isFocusVisibleRef:v,onBlur:y,onFocus:A,ref:_}=aw(),[w,S]=D.useState(!1),k=to(n,_),T=q=>{y(q),v.current===!1&&S(!1),u&&u(q)},E=q=>{A(q),v.current===!0&&S(!0),c&&c(q)},L=V({},r,{color:i,component:a,focusVisible:w,underline:p,variant:h}),$=Sne(L);return P.jsx(Ene,V({color:i,className:gt($.root,o),classes:f,component:a,onBlur:T,onFocus:E,ref:k,ownerState:L,variant:h,sx:[...Object.keys(yT).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},x))}),Cs=D.createContext({});function Cne(e){return tr("MuiList",e)}nr("MuiList",["root","padding","dense","subheader"]);const Ane=["children","className","component","dense","disablePadding","subheader"],Rne=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return dr({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Cne,t)},kne=It("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]}})(({ownerState:e})=>V({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ew=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=it(r,Ane),h=D.useMemo(()=>({dense:u}),[u]),m=V({},r,{component:a,dense:u,disablePadding:c}),x=Rne(m);return P.jsx(Cs.Provider,{value:h,children:P.jsxs(kne,V({as:a,className:gt(x.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})});function Tne(e){return tr("MuiListItem",e)}const sl=nr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Dne(e){return tr("MuiListItemButton",e)}const al=nr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Pne=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],One=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Lne=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:u}=e,f=dr({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},Dne,n);return V({},n,f)},Nne=It(hw,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:One})(({theme:e,ownerState:t})=>V({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${al.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${al.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${al.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xr(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})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${al.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${al.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Mne=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:u,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1,className:x}=r,v=it(r,Pne),y=D.useContext(Cs),A=D.useMemo(()=>({dense:c||y.dense||!1,alignItems:o,disableGutters:f}),[o,y.dense,c,f]),_=D.useRef(null);vi(()=>{i&&_.current&&_.current.focus()},[i]);const w=V({},r,{alignItems:o,dense:A.dense,disableGutters:f,divider:p,selected:m}),S=Lne(w),k=to(_,n);return P.jsx(Cs.Provider,{value:A,children:P.jsx(Nne,V({ref:k,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"button":a,focusVisibleClassName:gt(S.focusVisible,h),ownerState:w,className:gt(S.root,x)},v,{classes:S,children:u}))})});function Bne(e){return tr("MuiListItemSecondaryAction",e)}nr("MuiListItemSecondaryAction",["root","disableGutters"]);const Ine=["className"],$ne=e=>{const{disableGutters:t,classes:n}=e;return dr({root:["root",t&&"disableGutters"]},Bne,n)},Fne=It("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>V({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),wT=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=it(r,Ine),a=D.useContext(Cs),u=V({},r,{disableGutters:a.disableGutters}),c=$ne(u);return P.jsx(Fne,V({className:gt(c.root,o),ownerState:u,ref:n},i))});wT.muiName="ListItemSecondaryAction";const Une=["className"],zne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],jne=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Vne=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return dr({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},Tne,r)},Wne=It("div",{name:"MuiListItem",slot:"Root",overridesResolver:jne})(({theme:e,ownerState:t})=>V({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&V({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${al.root}`]:{paddingRight:48}},{[`&.${sl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xr(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})`:xr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),qne=It("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Cw=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:u,className:c,component:f,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:x}={},dense:v=!1,disabled:y=!1,disableGutters:A=!1,disablePadding:_=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:T=!1,slotProps:E={},slots:L={}}=r,$=it(r.ContainerProps,Une),q=it(r,zne),B=D.useContext(Cs),Y=D.useMemo(()=>({dense:v||B.dense||!1,alignItems:o,disableGutters:A}),[o,B.dense,v,A]),se=D.useRef(null);vi(()=>{i&&se.current&&se.current.focus()},[i]);const K=D.Children.toArray(u),H=K.length&&Ap(K[K.length-1],["ListItemSecondaryAction"]),Q=V({},r,{alignItems:o,autoFocus:i,button:a,dense:Y.dense,disabled:y,disableGutters:A,disablePadding:_,divider:w,hasSecondaryAction:H,selected:T}),le=Vne(Q),de=to(se,n),J=L.root||p.Root||Wne,pe=E.root||h.root||{},re=V({className:gt(le.root,pe.className,c),disabled:y},q);let me=f||"li";return a&&(re.component=f||"div",re.focusVisibleClassName=gt(sl.focusVisible,S),me=hw),H?(me=!re.component&&!f?"div":me,m==="li"&&(me==="li"?me="div":re.component==="li"&&(re.component="div")),P.jsx(Cs.Provider,{value:Y,children:P.jsxs(qne,V({as:m,className:gt(le.container,x),ref:de,ownerState:Q},$,{children:[P.jsx(J,V({},pe,!Zc(J)&&{as:me,ownerState:V({},Q,pe.ownerState)},re,{children:K})),K.pop()]}))})):P.jsx(Cs.Provider,{value:Y,children:P.jsxs(J,V({},pe,{as:me,ref:de},!Zc(J)&&{ownerState:V({},Q,pe.ownerState)},re,{children:[K,k&&P.jsx(wT,{children:k})]}))})});function Hne(e){return tr("MuiListItemText",e)}const L3=nr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Gne=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Kne=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return dr({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Hne,t)},Yne=It("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${L3.primary}`]:t.primary},{[`& .${L3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>V({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Xne=D.forwardRef(function(t,n){const r=qn({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=it(r,Gne),{dense:x}=D.useContext(Cs);let v=c??o,y=p;const A=V({},r,{disableTypography:a,inset:u,primary:!!v,secondary:!!y,dense:x}),_=Kne(A);return v!=null&&v.type!==Un&&!a&&(v=P.jsx(Un,V({variant:x?"body2":"body1",className:_.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:v}))),y!=null&&y.type!==Un&&!a&&(y=P.jsx(Un,V({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:y}))),P.jsxs(Yne,V({className:gt(_.root,i),ownerState:A,ref:n},m,{children:[v,y]}))});var N3;const Zne=["children","classes","className","label","notched"],Qne=It("fieldset",{shouldForwardProp:mu})({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%"}),Jne=It("legend",{shouldForwardProp:mu})(({ownerState:e,theme:t})=>V({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&V({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function ere(e){const{className:t,label:n,notched:r}=e,o=it(e,Zne),i=n!=null&&n!=="",a=V({},e,{notched:r,withLabel:i});return P.jsx(Qne,V({"aria-hidden":!0,className:t,ownerState:a},o,{children:P.jsx(Jne,{ownerState:a,children:i?P.jsx("span",{children:n}):N3||(N3=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const tre=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nre=e=>{const{classes:t}=e,r=dr({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qte,t);return V({},t,r)},rre=It(hT,{shouldForwardProp:e=>mu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:dT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return V({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${is.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${is.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${is.focused} .${is.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${is.error} .${is.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${is.disabled} .${is.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&V({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),ore=It(ere,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({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}}),ire=It(mT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:pT})(({theme:e,ownerState:t})=>V({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Aw=D.forwardRef(function(t,n){var r,o,i,a,u;const c=qn({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:x=!1,notched:v,slots:y={},type:A="text"}=c,_=it(c,tre),w=nre(c),S=Sw(),k=cT({props:c,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=V({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:x,size:k.size,type:A}),E=(r=(o=y.root)!=null?o:f.Root)!=null?r:rre,L=(i=(a=y.input)!=null?a:f.Input)!=null?i:ire;return P.jsx(Wte,V({slots:{root:E,input:L},renderSuffix:$=>P.jsx(ore,{ownerState:T,className:w.notchedOutline,label:m!=null&&m!==""&&k.required?u||(u=P.jsxs(D.Fragment,{children:[m," ","*"]})):m,notched:typeof v<"u"?v:!!($.startAdornment||$.filled||$.focused)}),fullWidth:p,inputComponent:h,multiline:x,ref:n,type:A},_,{classes:V({},w,{notchedOutline:null})}))});Aw.muiName="Input";function sre(e){return tr("MuiTooltip",e)}const gs=nr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),are=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function lre(e){return Math.round(e*1e5)/1e5}const ure=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Bt(i.split("-")[0])}`],arrow:["arrow"]};return dr(a,sre,t)},cre=It(uT,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>V({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${gs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${gs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${gs.arrow}`]:V({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${gs.arrow}`]:V({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),fre=It("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Bt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>V({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${lre(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${gs.popper}[data-popper-placement*="left"] &`]:V({transformOrigin:"right center"},t.isRtl?V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):V({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${gs.popper}[data-popper-placement*="right"] &`]:V({transformOrigin:"left center"},t.isRtl?V({marginRight:"14px"},t.touch&&{marginRight:"24px"}):V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${gs.popper}[data-popper-placement*="top"] &`]:V({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${gs.popper}[data-popper-placement*="bottom"] &`]:V({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),dre=It("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Jd=!1;const M3=new Cf;let Ju={x:0,y:0};function ep(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ml=D.forwardRef(function(t,n){var r,o,i,a,u,c,f,p,h,m,x,v,y,A,_,w,S,k,T;const E=qn({props:t,name:"MuiTooltip"}),{arrow:L=!1,children:$,components:q={},componentsProps:B={},describeChild:Y=!1,disableFocusListener:se=!1,disableHoverListener:K=!1,disableInteractive:H=!1,disableTouchListener:Q=!1,enterDelay:le=100,enterNextDelay:de=0,enterTouchDelay:J=700,followCursor:pe=!1,id:re,leaveDelay:me=0,leaveTouchDelay:U=1500,onClose:ae,onOpen:te,open:we,placement:fe="bottom",PopperComponent:ye,PopperProps:ge={},slotProps:he={},slots:We={},title:Le,TransitionComponent:Re=t1,TransitionProps:Ke}=E,st=it(E,are),ht=D.isValidElement($)?$:P.jsx("span",{children:$}),bt=X0(),mt=mQ(),[Mn,pr]=D.useState(),[Ct,at]=D.useState(null),un=D.useRef(!1),cn=H||pe,Ut=El(),At=El(),An=El(),nn=El(),[qe,Oe]=GZ({controlled:we,default:!1,name:"Tooltip",state:"open"});let Xt=qe;const rr=HZ(re),Hn=D.useRef(),Rn=Sl(()=>{Hn.current!==void 0&&(document.body.style.WebkitUserSelect=Hn.current,Hn.current=void 0),nn.clear()});D.useEffect(()=>Rn,[Rn]);const Io=Ae=>{M3.clear(),Jd=!0,Oe(!0),te&&!Xt&&te(Ae)},W=Sl(Ae=>{M3.start(800+me,()=>{Jd=!1}),Oe(!1),ae&&Xt&&ae(Ae),Ut.start(bt.transitions.duration.shortest,()=>{un.current=!1})}),F=Ae=>{un.current&&Ae.type!=="touchstart"||(Mn&&Mn.removeAttribute("title"),At.clear(),An.clear(),le||Jd&&de?At.start(Jd?de:le,()=>{Io(Ae)}):Io(Ae))},ue=Ae=>{At.clear(),An.start(me,()=>{W(Ae)})},{isFocusVisibleRef:_e,onBlur:be,onFocus:Ce,ref:Fe}=aw(),[,Me]=D.useState(!1),Ie=Ae=>{be(Ae),_e.current===!1&&(Me(!1),ue(Ae))},Ge=Ae=>{Mn||pr(Ae.currentTarget),Ce(Ae),_e.current===!0&&(Me(!0),F(Ae))},_t=Ae=>{un.current=!0;const yt=ht.props;yt.onTouchStart&&yt.onTouchStart(Ae)},kn=Ae=>{_t(Ae),An.clear(),Ut.clear(),Rn(),Hn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nn.start(J,()=>{document.body.style.WebkitUserSelect=Hn.current,F(Ae)})},zt=Ae=>{ht.props.onTouchEnd&&ht.props.onTouchEnd(Ae),Rn(),An.start(U,()=>{W(Ae)})};D.useEffect(()=>{if(!Xt)return;function Ae(yt){(yt.key==="Escape"||yt.key==="Esc")&&W(yt)}return document.addEventListener("keydown",Ae),()=>{document.removeEventListener("keydown",Ae)}},[W,Xt]);const Tn=to(ht.ref,Fe,pr,n);!Le&&Le!==0&&(Xt=!1);const fn=D.useRef(),so=Ae=>{const yt=ht.props;yt.onMouseMove&&yt.onMouseMove(Ae),Ju={x:Ae.clientX,y:Ae.clientY},fn.current&&fn.current.update()},or={},N=typeof Le=="string";Y?(or.title=!Xt&&N&&!K?Le:null,or["aria-describedby"]=Xt?rr:null):(or["aria-label"]=N?Le:null,or["aria-labelledby"]=Xt&&!N?rr:null);const I=V({},or,st,ht.props,{className:gt(st.className,ht.props.className),onTouchStart:_t,ref:Tn},pe?{onMouseMove:so}:{}),G={};Q||(I.onTouchStart=kn,I.onTouchEnd=zt),K||(I.onMouseOver=ep(F,I.onMouseOver),I.onMouseLeave=ep(ue,I.onMouseLeave),cn||(G.onMouseOver=F,G.onMouseLeave=ue)),se||(I.onFocus=ep(Ge,I.onFocus),I.onBlur=ep(Ie,I.onBlur),cn||(G.onFocus=Ge,G.onBlur=Ie));const ne=D.useMemo(()=>{var Ae;let yt=[{name:"arrow",enabled:!!Ct,options:{element:Ct,padding:4}}];return(Ae=ge.popperOptions)!=null&&Ae.modifiers&&(yt=yt.concat(ge.popperOptions.modifiers)),V({},ge.popperOptions,{modifiers:yt})},[Ct,ge]),Se=V({},E,{isRtl:mt,arrow:L,disableInteractive:cn,placement:fe,PopperComponentProp:ye,touch:un.current}),Pe=ure(Se),Ue=(r=(o=We.popper)!=null?o:q.Popper)!=null?r:cre,xe=(i=(a=(u=We.transition)!=null?u:q.Transition)!=null?a:Re)!=null?i:t1,He=(c=(f=We.tooltip)!=null?f:q.Tooltip)!=null?c:fre,Be=(p=(h=We.arrow)!=null?h:q.Arrow)!=null?p:dre,$e=ac(Ue,V({},ge,(m=he.popper)!=null?m:B.popper,{className:gt(Pe.popper,ge==null?void 0:ge.className,(x=(v=he.popper)!=null?v:B.popper)==null?void 0:x.className)}),Se),St=ac(xe,V({},Ke,(y=he.transition)!=null?y:B.transition),Se),vt=ac(He,V({},(A=he.tooltip)!=null?A:B.tooltip,{className:gt(Pe.tooltip,(_=(w=he.tooltip)!=null?w:B.tooltip)==null?void 0:_.className)}),Se),Rt=ac(Be,V({},(S=he.arrow)!=null?S:B.arrow,{className:gt(Pe.arrow,(k=(T=he.arrow)!=null?T:B.arrow)==null?void 0:k.className)}),Se);return P.jsxs(D.Fragment,{children:[D.cloneElement(ht,I),P.jsx(Ue,V({as:ye??uT,placement:fe,anchorEl:pe?{getBoundingClientRect:()=>({top:Ju.y,left:Ju.x,right:Ju.x,bottom:Ju.y,width:0,height:0})}:Mn,popperRef:fn,open:Mn?Xt:!1,id:rr,transition:!0},G,$e,{popperOptions:ne,children:({TransitionProps:Ae})=>P.jsx(xe,V({timeout:bt.transitions.duration.shorter},Ae,St,{children:P.jsxs(He,V({},vt,{children:[Le,L?P.jsx(Be,V({},Rt,{ref:at})):null]}))}))}))]})}),pre=bf` 0% { opacity: 0.2; } 100% { opacity: 1; } -`,mre=({visible:e})=>e&&P.jsxs(Et,{spacing:"16px",direction:"row",sx:{display:"flex",px:"15px",alignItems:"center"},children:[P.jsx(ma,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsx(ma,{sx:{display:"flex",gap:"4px"},children:[1,2,3].map((t,n)=>P.jsx(ma,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"rgb(173, 173, 179)",animation:`${hre} 1s infinite`,animationDelay:`${n*.2}s`}},t))})]}),gre=({onClose:e,onDrawerOpen:t,onMinimize:n,...r})=>P.jsxs(Et,{direction:"row",justifyContent:"space-between",paddingRight:"24px",paddingLeft:"14px",height:"56px",...r,children:[P.jsxs(Et,{direction:"row",spacing:"24px",alignItems:"center",children:[P.jsx(Ml,{title:"Settings",sx:{zIndex:9999},children:P.jsx("button",{style:{background:"none",border:"none",height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Open Chat Drawer",onClick:t,children:P.jsx("svg",{width:"4",height:"18",viewBox:"0 0 4 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:P.jsxs("g",{fill:"#DEDEDE",children:[P.jsx("circle",{cx:"2",cy:"2",r:"2"}),P.jsx("circle",{cx:"2",cy:"9",r:"2"}),P.jsx("circle",{cx:"2",cy:"16",r:"2"})]})})})}),P.jsxs(Et,{direction:"row",spacing:"8px",justifyContent:"center",alignItems:"center",sx:{marginLeft:"5px !important"},children:[P.jsx(ma,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsx(Qn,{sx:{fontWeight:500,fontSize:"16px"},children:"OWC Chatbot"})]})]}),P.jsxs(Et,{direction:"row",spacing:"5px",alignItems:"center",position:"relative",children:[P.jsx(Ml,{title:"Minimize Chat",children:P.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Minimize Chat",onClick:()=>n(!1),children:P.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:P.jsxs("g",{fill:"none",children:[P.jsx("path",{d:"M0 0h14v14H0z"}),P.jsx("g",{mask:"url(#hr8sptrh4b)",stroke:"#1470D2",children:P.jsx("path",{d:"M.5 7h13"})})]})})})}),P.jsx(Ml,{title:"End Chat",sx:{zIndex:9999},children:P.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:e,children:P.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("g",{stroke:"#1470D2",fill:"none",children:P.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})})]})]}),vre=({onMessage:e,value:t,input:n,loading:r})=>{const o=D.useRef(null);return D.useEffect(()=>{o.current&&o.current.focus()},[]),P.jsx(Et,{spacing:1,sx:{padding:"12px 15px"},children:P.jsxs(Et,{spacing:1,children:[P.jsx(xT,{variant:"outlined",sx:{width:"100%"},children:P.jsx(Rw,{inputRef:o,value:t,onChange:i=>n(i.target.value),onKeyUp:i=>{i.key==="Enter"&&!r&&e()},endAdornment:P.jsx(yne,{position:"end",sx:{cursor:r?"not-allowed":"pointer",opacity:r?.5:1},children:P.jsx("button",{onClick:()=>{r||e()},style:{background:"none",border:"none",padding:0,height:"28px",width:"28px",cursor:r?"not-allowed":"pointer",opacity:r?.5:1},"aria-label":"Send Message",children:P.jsx("svg",{"aria-hidden":"true",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"none",children:[P.jsx("circle",{fill:"#1470D2",cx:"14",cy:"14",r:"14"}),P.jsx("path",{d:"m20.385 14.677-5.658-6.593c-.005-.005-.012-.007-.017-.012a.69.69 0 0 0-.513-.232.693.693 0 0 0-.51.228c-.006.007-.015.01-.021.016l-5.658 6.593a.7.7 0 0 0 1.062.91l4.429-5.16V20.58a.698.698 0 1 0 1.398 0V10.429l4.428 5.158a.695.695 0 0 0 .986.075.698.698 0 0 0 .074-.985",fill:"#FFF"})]})})})}),placeholder:"Ask our Chatbot...",sx:{height:"45px",borderRadius:"16px","> input::placeholder":{color:"#222222",opacity:1},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})}),P.jsxs(Qn,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",P.jsx(gh,{href:"/support/site-terms",children:"Terms and Conditions"})," and ",P.jsx(gh,{href:"/support/privacy-policy",children:"Privacy Policy"}),"."]})]})})},yre=()=>P.jsxs(Et,{spacing:0,justifyContent:"center",alignItems:"center",py:5,marginBottom:"70px !important",children:[P.jsx(ma,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"72px",height:"72px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"62",height:"34",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsx(Qn,{sx:{fontWeight:500,fontSize:"20px",mt:"19px"},children:"OWC Chatbot"}),P.jsx(Qn,{sx:{fontSize:"14px"},children:"Ask us anything or select a topic to get started."})]}),wre=({drawer:e,onClose:t,updateChatSettings:n})=>{const r=X0(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null),f=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce"),setTimeout(()=>{c.current&&c.current.focus()},320)):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const m=x=>{e&&f.current&&!f.current.contains(x.target)&&(x.stopPropagation(),x.preventDefault(),c.current.focus())};return e?document.addEventListener("focus",m,!0):document.removeEventListener("focus",m,!0),()=>{document.removeEventListener("focus",m,!0)}},[e]);const p={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}},h=()=>{n({agent:"Live Agent"}),t(!1)};return a&&P.jsxs(Et,{ref:f,...p,className:o,children:[P.jsxs(Et,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"12px"},children:[P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"Settings"}),P.jsx("button",{ref:c,style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>t(!1),children:P.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("g",{stroke:"#1470D2",fill:"none",children:P.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})]}),P.jsx(Et,{sx:{height:"100%",paddingInline:"15px"},children:P.jsx(Cw,{sx:{".MuiListItemButton-root":{borderRadius:"8px"}},children:P.jsx(Aw,{disablePadding:!0,children:P.jsx(Bne,{onClick:h,children:P.jsx(Zne,{primary:"Speak With a Live Agent"})})})})}),P.jsx(Et,{sx:{position:"relative",borderTop:"1px solid #dedede",display:"flex",alignItems:"center",paddingBlock:"12px",minHeight:"65px"},children:P.jsxs(Qn,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",P.jsx(gh,{href:"#",children:"Terms and Conditions"})," and ",P.jsx(gh,{href:"#",children:"Privacy Policy"}),"."]})})]})},xre=({drawer:e,children:t,...n})=>{const r=X0(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce")):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const p=h=>{e&&c.current&&!c.current.contains(h.target)&&(h.stopPropagation(),h.preventDefault())};return e?document.addEventListener("focus",p,!0):document.removeEventListener("focus",p,!0),()=>{document.removeEventListener("focus",p,!0)}},[e]);const f={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return a&&P.jsx(Et,{ref:c,...f,className:o,...n,children:t})},bre=({drawer:e,dialog:t,onClick:n})=>P.jsx(Et,{sx:{position:"absolute",top:0,bottom:0,width:"100%",height:"100%",border:0,padding:0,margin:0,opacity:e||t?1:0,visibility:e||t?"visible":"hidden",background:"rgba(0, 0, 0, 0.25)",transition:"opacity 320ms, visibility 320ms",animation:e||t?"fadeIn 320ms ease":"fadeOut 320ms ease","@keyframes fadeIn":{from:{opacity:0},to:{opacity:1}},"@keyframes fadeOut":{from:{opacity:1},to:{opacity:0}}},onClick:n}),_re=["Welcome to OWC! I am your OWC Virtual Assistant!","Feel free to ask me anything about our products, orders, or returns. Type your question or select a topic, and I’ll do my best to assist!"],Sre=({isMessageEmpty:e})=>P.jsxs(Et,{spacing:"8px",px:"15px",direction:"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease",...e?{marginBottom:"-16px !important"}:""},children:[P.jsx(ma,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",...e?"":{backgroundColor:"#005ea4"},borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsx(Cw,{sx:{paddingBlock:0,height:"fit-content"},children:_re.map((t,n)=>P.jsx(Aw,{sx:{width:"fit-content",minHeight:"48px",marginTop:n===0?"0":"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"13px 14.5px"},children:t},n))})]}),rl="assistant_message",Ere=({message:e,index:t,sources:n,feedback:r,handleSources:o,chatData:i})=>{const{actions:a,chatSettingsValue:u,askUser:c}=zR(),{replyMessage:f,callAction:p,updateChatSettings:h}=GR(),m={width:"fit-content",marginTop:"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"0 14.5px"},x={background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},v={size:"small",variant:"outlined",disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,style:{width:"fit-content",borderRadius:"2px"}};return P.jsxs(Et,{children:[P.jsxs(Et,{spacing:"8px",px:"15px",direction:e.type!==rl?"row-reverse":"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease"},children:[e.type===rl&&P.jsx(ma,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsx(Cw,{sx:{paddingBlock:0,height:"fit-content"},children:P.jsx(Aw,{sx:{...m,...e.type!==rl&&{color:"#222",backgroundColor:"#edf5fa"},p:{marginBlock:"1em !important"}},children:P.jsx(Jk,{markdown:e.output})})})]}),e.type===rl&&P.jsxs(Et,{direction:"row",spacing:"16.6px",marginTop:"8px",marginLeft:7,children:[P.jsx("button",{style:x,onClick:()=>r(e,1),children:P.jsx(Ml,{title:"Helpful",children:P.jsxs("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("defs",{children:P.jsx("path",{id:"6mcpzcblqa",d:"M0 0h15.383v15H0z"})}),P.jsxs("g",{fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"nl4n4evbwb",fill:"#fff",children:P.jsx("use",{xlinkHref:"#6mcpzcblqa"})}),P.jsx("path",{d:"m14.288 7.786-.198.317c-.237.355-.336.79-.257 1.205l.04.178c.039.178 0 .336-.1.494l-.177.276c-.237.356-.336.79-.257 1.206l.04.178c.038.177 0 .336-.1.474l-.335.494a1.598 1.598 0 0 0-.218.494l-.099.395a.653.653 0 0 1-.632.494H4.96V7.333a2.184 2.184 0 0 0 1.363-.968l2.095-3.3c.198-.316.317-.692.317-1.087v-.751a.24.24 0 0 1 .237-.237c.573 0 1.048.474 1.048 1.047 0 .317-.04.633-.139.93l-.988 3.122c-.04.158-.02.316.079.434a.515.515 0 0 0 .395.198h4.407c.336 0 .613.257.653.593-.02.197-.06.355-.14.473zm-13.3 6.167h2.985V6.779H.988v7.174zm14.387-6.72c-.1-.83-.791-1.482-1.641-1.482H9.999l.79-2.49c.12-.395.198-.81.198-1.225C10.987.909 10.078 0 8.952 0 8.28 0 7.727.554 7.727 1.225v.751c0 .198-.06.395-.159.554L5.474 5.85a1.32 1.32 0 0 1-.533.455v-.02a.49.49 0 0 0-.494-.494H.494A.49.49 0 0 0 0 6.285v8.162a.49.49 0 0 0 .494.494h3.973l7.51.059c.75 0 1.403-.514 1.6-1.225l.1-.395a.38.38 0 0 1 .098-.198l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.634.634 0 0 1 .099-.495l.177-.276c.237-.356.336-.79.257-1.206l-.04-.158a.634.634 0 0 1 .1-.494l.197-.317c.218-.295.317-.69.277-1.086z",fill:"#989898",mask:"url(#nl4n4evbwb)"})]})]})})}),P.jsx("button",{style:x,onClick:()=>r(e,0),children:P.jsx(Ml,{title:"Not Helpful",children:P.jsxs("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("defs",{children:P.jsx("path",{id:"42svq9gc7a",d:"M0 0h15.383v15H0z"})}),P.jsxs("g",{transform:"rotate(-180 7.692 7.5)",fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"fna5jsjxab",fill:"#fff",children:P.jsx("use",{xlinkHref:"#42svq9gc7a"})}),P.jsx("path",{d:"m14.288 7.786-.198.317c-.237.355-.336.79-.257 1.205l.04.178c.039.178 0 .336-.1.494l-.177.276c-.237.356-.336.79-.257 1.206l.04.178c.038.177 0 .336-.1.474l-.335.494a1.598 1.598 0 0 0-.218.494l-.099.395a.653.653 0 0 1-.632.494H4.96V7.333a2.184 2.184 0 0 0 1.363-.968l2.095-3.3c.198-.316.317-.692.317-1.087v-.751a.24.24 0 0 1 .237-.237c.573 0 1.048.474 1.048 1.047 0 .317-.04.633-.139.93l-.988 3.122c-.04.158-.02.316.079.434a.515.515 0 0 0 .395.198h4.407c.336 0 .613.257.653.593-.02.197-.06.355-.14.473zm-13.3 6.167h2.985V6.779H.988v7.174zm14.387-6.72c-.1-.83-.791-1.482-1.641-1.482H9.999l.79-2.49c.12-.395.198-.81.198-1.225C10.987.909 10.078 0 8.952 0 8.28 0 7.727.554 7.727 1.225v.751c0 .198-.06.395-.159.554L5.474 5.85a1.32 1.32 0 0 1-.533.455v-.02a.49.49 0 0 0-.494-.494H.494A.49.49 0 0 0 0 6.285v8.162a.49.49 0 0 0 .494.494h3.973l7.51.059c.75 0 1.403-.514 1.6-1.225l.1-.395a.38.38 0 0 1 .098-.198l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.634.634 0 0 1 .099-.495l.177-.276c.237-.356.336-.79.257-1.206l-.04-.158a.634.634 0 0 1 .1-.494l.197-.317c.218-.295.317-.69.277-1.086z",fill:"#989898",mask:"url(#fna5jsjxab)"})]})]})})}),n.length>0&&!e.waitForAnswer&&u.agent!=="Live Agent"&&P.jsx("button",{style:x,onClick:()=>o(e.id),children:P.jsx(Ml,{title:"View Sources",children:P.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"#989898",stroke:"#989898",strokeWidth:".35",fillRule:"evenodd",children:[P.jsx("path",{d:"M15.226 15.42H1.774a.196.196 0 0 1-.194-.194V4.796h13.84v10.43a.196.196 0 0 1-.194.194M1.774 1.58h13.452c.105 0 .194.089.194.194v2.442H1.58V1.774c0-.105.089-.194.194-.194M15.226 1H1.774A.775.775 0 0 0 1 1.774v13.452c0 .427.347.774.774.774h13.452a.775.775 0 0 0 .774-.774V1.774A.775.775 0 0 0 15.226 1"}),P.jsx("path",{d:"M13.124 12.58H3.84a.29.29 0 1 0 0 .58h9.285a.29.29 0 1 0 0-.58M4.058 10.801a.29.29 0 0 0 .205-.085L5.94 9.038a.289.289 0 0 0 .085-.209.289.289 0 0 0-.085-.21L4.263 6.943a.29.29 0 0 0-.41.41L5.328 8.83l-1.477 1.477a.29.29 0 0 0 .206.495z"})]})})})})]}),P.jsxs(Et,{direction:"row",spacing:1,justifyContent:"flex-end",paddingRight:"15px",sx:{...e.type===rl&&e.waitForAnswer&&{marginLeft:7}},children:[a.length>0&&a.map((y,A)=>y.forId===e.id&&P.jsx(mh,{...v,onClick:()=>{p(y)},children:y.label},A)),e.type===rl&&!e.waitForAnswer&&u.agent!=="Live Agent"&&P.jsx(mh,{...v,onClick:()=>{h({agent:"Live Agent"})},children:"Speak With a Live Agent"})]})]})},Cre=({show:e,onMinimize:t,...n})=>{const{sendMessage:r,replyMessage:o,clear:i,updateChatSettings:a}=GR(),{elements:u,loading:c,askUser:f}=zR();let{messages:p}=bV();const[h,m]=D.useState([]),x=D.useRef(null),v=D.useContext(s0),[y,A]=D.useState([]),[_,w]=D.useState(()=>P.jsx(P.Fragment,{})),[S,k]=D.useState(""),[T,E]=D.useState(""),[L,$]=D.useState(!1),[q,B]=D.useState(!1),[Y,se]=D.useState([]),[K,H]=D.useState(""),Q=D.useRef([]),le=()=>{var ye;(ye=x.current)==null||ye.scrollIntoView({behavior:"smooth"})},de=()=>{var ge;if(p.length===0)return!1;const ye=(ge=p[p.length-1])==null?void 0:ge.output.trim();return ye===""||ye===K.trim()};D.useEffect(()=>{le()},[h]),D.useEffect(()=>{if(le(),de(),p.length>0){const ye=p.filter(ge=>ge.name);m([...Q.current,...ye])}},[p]),D.useEffect(()=>{const ye=JSON.parse(sessionStorage.getItem("chatState"));ye&&(Q.current=ye,m(ye))},[]),D.useEffect(()=>{h.length>0&&sessionStorage.setItem("chatState",JSON.stringify(h))},[h]),D.useEffect(()=>{const ye=async()=>{if(u.length!==0)try{const ge=await Promise.all(u.filter(he=>p.some(We=>We.id===he.forId)).map(async he=>({sources:(await _n.get(he.url)).data,id:he.forId})));A(ge)}catch(ge){console.error(ge)}};p.length>0&&ye()},[u]),D.useEffect(()=>{se(y)},[y]),D.useEffect(()=>{le()},[Y]),D.useEffect(()=>{T&&w(fe)},[T]);const J=()=>{B(!0),w(te)},pe=async(ye,ge)=>{B(!0),w(P.jsx(we,{action:ge,topic:ye}))},re=()=>{t(!1),B(!1),i(),sessionStorage.removeItem("chatState"),Q.current=[],m([])},me=ye=>{E(ye),B(!0)},U=async ye=>{const ge=ye||S.trim();H(ge);const he=e0();if(ge){const We={name:"User",type:"user_message",sender:"user",output:ge,content:ge,createdAt:new Date().toISOString(),id:he};f?(console.log("messages",p),console.log("askUser:",f),o(We)):r(We,[]),k("")}},ae={borderRadius:"2px",minHeight:"48px",fontFamily:"Exo, Roboto, sans-serif",fontWeight:600},te=()=>P.jsxs(Ze.Fragment,{children:[P.jsxs(Et,{spacing:1,sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"25px",paddingBottom:"7px"},children:[P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"End Chat"}),P.jsx(Qn,{children:"Are you sure you want to end chat?"})]}),P.jsxs(Et,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",paddingTop:1,marginBottom:4},children:[P.jsx(mh,{fullWidth:!0,variant:"contained",sx:ae,onClick:re,children:"End Chat"}),P.jsx(mh,{sx:ae,onClick:()=>{B(!1)},children:"Cancel"})]})]}),we=({action:ye,topic:ge})=>{const[he,We]=Ze.useState("");return P.jsxs(Ze.Fragment,{children:[P.jsxs(Et,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[P.jsx(Et,{direction:"row",spacing:1,children:P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"Add a Comment"})}),P.jsx("button",{style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>B(!1),children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[P.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),P.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),P.jsx(Et,{sx:{paddingInline:"15px",paddingBlock:"24px"},children:P.jsx(xT,{variant:"outlined",sx:{width:"100%"},children:P.jsx(Rw,{multiline:!0,rows:5,onInput:Le=>We(Le.target.value),sx:{borderRadius:"16px","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})})}),P.jsx(Et,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",marginBottom:4},children:P.jsx("button",{style:{...ae,color:"#fff",background:"#1470D2",fontFamily:"Exo",fontWeight:600,border:"none",width:"100%",borderRadius:0,cursor:"pointer"},onClick:()=>{v.setFeedback({forId:ge.id,threadId:ge.threadId,value:ye,comment:he},localStorage.getItem("accessToken")),B(!1)},children:"Submit Feedback"})})]})},fe=D.useCallback(()=>{const ye=Y.filter(ge=>ge.id===T);if(ye.length!==0)return P.jsxs(Ze.Fragment,{children:[P.jsxs(Et,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[P.jsxs(Et,{direction:"row",spacing:1,children:[P.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"#222",stroke:"#222",strokeWidth:".35",fillRule:"evenodd",children:[P.jsx("path",{d:"M20.917 21.188H2.083a.274.274 0 0 1-.27-.271V6.314h19.374v14.603c0 .146-.124.27-.27.27M2.083 1.813h18.834c.146 0 .27.125.27.271v3.419H1.812V2.083c0-.146.125-.27.271-.27M20.917 1H2.083C1.486 1 1 1.486 1 2.083v18.834C1 21.514 1.486 22 2.083 22h18.834c.597 0 1.083-.486 1.083-1.083V2.083C22 1.486 21.514 1 20.917 1"}),P.jsx("path",{d:"M17.974 17.211h-13a.406.406 0 1 0 0 .813h13a.406.406 0 1 0 0-.813M5.28 14.722c.105 0 .208-.04.288-.12l2.349-2.348c.08-.081.12-.187.118-.293a.404.404 0 0 0-.118-.293l-2.35-2.35a.406.406 0 0 0-.574.575l2.068 2.068-2.068 2.067a.406.406 0 0 0 .288.694z"})]})}),P.jsx(Qn,{fontSize:"17px",fontWeight:500,children:"Sources"})]}),P.jsx("button",{style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>B(!1),children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[P.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),P.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),P.jsx(Et,{sx:{paddingInline:"15px",paddingTop:"10px",paddingBottom:"20px",maxHeight:"350px",overflow:"auto",a:{color:"#1470d2",fontFamily:"Roboto",fontSize:"13px",lineHeight:"18px",fontWeight:"normal"}},children:ye.map((ge,he)=>P.jsx(Jk,{markdown:ge.sources},he))})]})},[T,Y]);return P.jsx(Et,{position:"relative",children:P.jsxs(Et,{sx:{position:"fixed",display:"flex",bottom:24,left:{xs:17,sm:24},width:{xs:"calc(100% - 35px)",sm:464},height:"calc(100% - 24px)",maxHeight:"766px",bgcolor:"background.paper",border:"solid 1px #dedede",borderRadius:"16px",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",paddingTop:"13px",opacity:0,zIndex:999,visibility:"hidden",transform:"translate(0px, 100px)",transition:"transform 200ms, opacity 200ms, visibility linear 200ms",...n.className.includes("chat-box__open")&&{visibility:"visible",opacity:1,transform:"translate(0px, 0px)"},...n.className.includes("chat-box__close")&&{visibility:"hidden",opacity:0,transform:"translate(0px, 100px)"}},...n,children:[P.jsx(gre,{onClose:J,onMinimize:t,onDrawerOpen:()=>$(!0)}),P.jsxs(Et,{spacing:2,sx:{display:"flex",overflow:"auto",flexDirection:"column",paddingBottom:0,height:"100%"},children:[P.jsx(yre,{}),P.jsx(Sre,{isMessageEmpty:p.length}),h.filter(ye=>ye.output.trim()!=="").map((ye,ge)=>P.jsx(Ere,{index:ge,message:ye,sources:Y,feedback:pe,handleSources:me},ge)),P.jsx(mre,{visible:de()}),P.jsx("div",{ref:x})]}),P.jsx(vre,{onMessage:U,value:S,input:k,loading:c}),P.jsx(bre,{drawer:L,dialog:q,onClick:()=>{$(!1),B(!1)}}),P.jsx(wre,{drawer:L,onClose:()=>$(!1),updateChatSettings:a}),P.jsx(xre,{drawer:q,children:_})]})})},Are=({toggle:e,sx:t,...n})=>P.jsxs(Et,{sx:{gap:"13px",bottom:24,left:24,width:"fit-content",height:"55px",zIndex:99999,paddingX:"24px",cursor:"pointer",position:"fixed",bgcolor:"#1470d2",borderRadius:27.5,flexDirection:"row",alignItems:"center",border:"solid 1px #1163bb",outline:"none",opacity:0,visibility:"hidden",transform:"translate(0px, 100px)",transition:"transform 200ms, opacity 200ms, visibility linear 200ms",...n.className.includes("chat-bubble__open")&&{visibility:"visible",opacity:1,transform:"translate(0px, 0px)"},...n.className.includes("chat-bubble__close")&&{visibility:"hidden",opacity:0,transform:"translate(0px, 100px)"},...t},...n,onClick:e,children:[P.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"none",children:[P.jsxs("g",{children:[P.jsx("path",{d:"M0 0h28.906v35H0z"}),P.jsx("path",{d:"M26.98 24.4a2.89 2.89 0 0 1-2.891 2.891H14.32a.961.961 0 0 0-.634.239l-5.014 4.383v-3.659a.964.964 0 0 0-.964-.963h-2.89a2.89 2.89 0 0 1-2.892-2.89V10.91c0-.768.305-1.503.848-2.044a2.883 2.883 0 0 1 2.043-.847H24.09c.767 0 1.502.304 2.044.847.542.541.846 1.276.846 2.043V24.4zm.516-16.897a4.822 4.822 0 0 0-3.407-1.41h-8.605V3.638c.388-.24.699-.607.847-1.076a1.97 1.97 0 0 0-3.757-1.185 1.965 1.965 0 0 0 .848 2.264v2.452H4.817a4.825 4.825 0 0 0-3.407 1.41A4.825 4.825 0 0 0 0 10.91V24.4a4.818 4.818 0 0 0 4.817 4.819h1.928v4.817a.962.962 0 0 0 1.597.726l6.34-5.543h9.407a4.819 4.819 0 0 0 4.818-4.818V10.91a4.822 4.822 0 0 0-1.411-3.408z",fill:"#FFF",mask:"url(#xk5421jfwb)"})]}),P.jsx("path",{d:"M10.276 15.512a1.97 1.97 0 1 0-3.939 0 1.97 1.97 0 0 0 3.94 0M21.192 13.634a1.97 1.97 0 1 0-1.186 3.758 1.97 1.97 0 0 0 1.186-3.758M19.292 19.615c-4.809 3.165-9.59.134-9.798-.001A1.032 1.032 0 0 0 8.36 21.34c.162.106 2.767 1.78 6.232 1.78 1.789 0 3.806-.444 5.836-1.78a1.033 1.033 0 0 0-1.136-1.725",fill:"#FFF"})]})}),P.jsx(Qn,{sx:{color:"#fff",fontFamily:"Roboto",fontSize:"16px",fontWeight:500},children:"Chat"})]}),Rre=()=>{const[e,t]=D.useState(!1);return P.jsxs(Ze.Fragment,{children:[P.jsx(Are,{toggle:t,className:e?"chat-bubble__close":"chat-bubble__open"}),P.jsx(Cre,{show:e,className:e?"chat-box__open":"chat-box__close",onMinimize:t})]})};var kre={VITE_APP_VERSION:"v1.0.0",VITE_APP_SSL_URL:"https://owcbot.macsales.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Tre=cH([{path:"*",element:P.jsx(Rre,{})}],{basename:kre.VITE_APP_BASE_NAME});function Dre(){return Y0({palette:{common:{black:"#000",white:"#fff"},text:{primary:"#000",secondary:"#333",disabled:"grey"},action:{disabled:"grey"},divider:"grey",background:{paper:"white",default:"white"},primary:{main:"#1470d2"}}})}function Pre(e){return{htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,color:"#222222",h1:{fontWeight:800,fontSize:"3.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"2.575rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"initial"}}}let ef;(function(e){e.LIGHT="light",e.DARK="dark"})(ef||(ef={}));ef.LIGHT;function Ore(e){return{button:e.palette.mode===ef.DARK?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z1:e.palette.mode===ef.DARK?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${Yn(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Yn(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Yn(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Yn(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Yn(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Yn(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Yn(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Yn(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Yn(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Yn(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Yn(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Yn(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Yn(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Yn(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Yn(e.palette.grey[500],.2)}`}}function Lre(e,t){switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}function Nre(e,t){switch(t){case"secondary":return e.customShadows.secondary;case"error":return e.customShadows.error;case"warning":return e.customShadows.warning;case"info":return e.customShadows.info;case"success":return e.customShadows.success;default:return e.customShadows.primary}}function wt({variant:e,color:t,theme:n}){const r=Lre(n,t),{lighter:o,main:i,dark:a,darker:u,contrastText:c}=r,f=`${t}Button`,p=Nre(n,f),h={"&::after":{boxShadow:`0 0 5px 5px ${Yn(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Yn(i,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...h};case"shadow":return{color:c,backgroundColor:i,boxShadow:p,"&:hover":{boxShadow:"none",backgroundColor:a},...h};case"outlined":return{borderColor:i,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...h};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:a,borderColor:a},...h};case"text":default:return{color:a,"&:hover":{color:u,backgroundColor:o},...h}}}function Mre(e){const t=wt({variant:"dashed",color:"primary",theme:e}),n=wt({variant:"shadow",color:"primary",theme:e}),r=wt({variant:"contained",color:"#c00",theme:e}),o={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},i={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0},styleOverrides:{root:{borderRadius:7,fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...o,...r},outlined:{...o},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...i},startIcon:{...i},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":wt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":wt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":wt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":wt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":wt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":wt({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":wt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":wt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":wt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":wt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":wt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":wt({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:wt({variant:"contained",color:"primary",theme:e}),containedSecondary:wt({variant:"contained",color:"secondary",theme:e}),containedError:wt({variant:"contained",color:"error",theme:e}),containedSuccess:wt({variant:"contained",color:"success",theme:e}),containedInfo:wt({variant:"contained",color:"info",theme:e}),containedWarning:wt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:wt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:wt({variant:"outlined",color:"secondary",theme:e}),outlinedError:wt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:wt({variant:"outlined",color:"success",theme:e}),outlinedInfo:wt({variant:"outlined",color:"info",theme:e}),outlinedWarning:wt({variant:"outlined",color:"warning",theme:e}),textPrimary:wt({variant:"text",color:"primary",theme:e}),textSecondary:wt({variant:"text",color:"secondary",theme:e}),textError:wt({variant:"text",color:"error",theme:e}),textSuccess:wt({variant:"text",color:"success",theme:e}),textInfo:wt({variant:"text",color:"info",theme:e}),textWarning:wt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Bre(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Ire(e){return{MuiTooltip:{styleOverrides:{tooltip:{background:"#222",zIndex:9999}}}}}function $re(e){return Da.merge(Mre(e),Bre(),Ire())}function ST({children:e}){const t=D.useMemo(()=>Dre(),["light","default"]),n=D.useMemo(()=>Pre("'Roboto', 'Exo'"),["Roboto","Exo"]),r=D.useMemo(()=>Ore(t),[t]),o=D.useMemo(()=>({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:t.palette,customShadows:r,typography:n}),[t,n]),i=Y0(o);return i.components=$re(i),P.jsx(b4,{injectFirst:!0,children:P.jsxs(BJ,{theme:i,children:[P.jsx(sne,{enableColorScheme:!0}),e]})})}ST.propTypes={children:aY.node};const ET=D.createContext(),Fre=({children:e})=>{const t=_V();return P.jsx(ET.Provider,{value:t,children:e})},Ure=()=>D.useContext(ET),zre=()=>{const{connect:e,disconnect:t}=Ure(),n=Pn(r0);return D.useEffect(()=>n!=null&&n.socket.connected?void 0:((async()=>{try{const o=window.location.protocol,a=(await _n.post("https://owcbot.macsales.com/login",new URLSearchParams({username:"owc-user",password:"owc-user"}))).data.access_token;localStorage.setItem("accessToken",`Bearer ${a}`),e({accessToken:`Bearer ${a}`})}catch(o){console.error("Login failed:",o)}})(),()=>{t()}),[e]),P.jsx(ST,{children:P.jsx(wH,{router:Tre})})},jre=()=>P.jsx(Fre,{children:P.jsx(zre,{})}),Vre="https://owcbot.macsales.com",Wre=new HR(Vre,"webapp");document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("aibotroot");e?mv.createRoot(e).render(P.jsx(Ze.StrictMode,{children:P.jsx(s0.Provider,{value:Wre,children:P.jsx(jz,{children:P.jsx(jre,{})})})})):console.log("Root element for Chatbot not found")}); +`,hre=({visible:e})=>e&&P.jsxs(Et,{spacing:"16px",direction:"row",sx:{display:"flex",px:"15px",alignItems:"center"},children:[P.jsx(ga,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsx(ga,{sx:{display:"flex",gap:"4px"},children:[1,2,3].map((t,n)=>P.jsx(ga,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"rgb(173, 173, 179)",animation:`${pre} 1s infinite`,animationDelay:`${n*.2}s`}},t))})]}),mre=({onClose:e,onDrawerOpen:t,onMinimize:n,...r})=>P.jsxs(Et,{direction:"row",justifyContent:"space-between",paddingRight:"24px",paddingLeft:"14px",height:"56px",...r,children:[P.jsxs(Et,{direction:"row",spacing:"24px",alignItems:"center",children:[P.jsx(Ml,{title:"Settings",sx:{zIndex:9999},children:P.jsx("button",{style:{background:"none",border:"none",height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Open Chat Drawer",onClick:t,children:P.jsx("svg",{width:"4",height:"18",viewBox:"0 0 4 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:P.jsxs("g",{fill:"#DEDEDE",children:[P.jsx("circle",{cx:"2",cy:"2",r:"2"}),P.jsx("circle",{cx:"2",cy:"9",r:"2"}),P.jsx("circle",{cx:"2",cy:"16",r:"2"})]})})})}),P.jsxs(Et,{direction:"row",spacing:"8px",justifyContent:"center",alignItems:"center",sx:{marginLeft:"5px !important"},children:[P.jsx(ga,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsx(Un,{sx:{fontWeight:500,fontSize:"16px"},children:"OWC Chatbot"})]})]}),P.jsxs(Et,{direction:"row",spacing:"5px",alignItems:"center",position:"relative",children:[P.jsx(Ml,{title:"Minimize Chat",children:P.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Minimize Chat",onClick:()=>n(!1),children:P.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:P.jsxs("g",{fill:"none",children:[P.jsx("path",{d:"M0 0h14v14H0z"}),P.jsx("g",{mask:"url(#hr8sptrh4b)",stroke:"#1470D2",children:P.jsx("path",{d:"M.5 7h13"})})]})})})}),P.jsx(Ml,{title:"End Chat",sx:{zIndex:9999},children:P.jsx("button",{style:{background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:e,children:P.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("g",{stroke:"#1470D2",fill:"none",children:P.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})})]})]}),gre=({onMessage:e,value:t,input:n,loading:r})=>{const o=D.useRef(null);return D.useEffect(()=>{o.current&&o.current.focus()},[]),P.jsx(Et,{spacing:1,sx:{padding:"12px 15px"},children:P.jsxs(Et,{spacing:1,children:[P.jsx(vT,{variant:"outlined",sx:{width:"100%"},children:P.jsx(Aw,{inputRef:o,value:t,onChange:i=>n(i.target.value),onKeyUp:i=>{i.key==="Enter"&&!r&&e()},endAdornment:P.jsx(vne,{position:"end",sx:{cursor:r?"not-allowed":"pointer",opacity:r?.5:1},children:P.jsx("button",{onClick:()=>{r||e()},style:{background:"none",border:"none",padding:0,height:"28px",width:"28px",cursor:r?"not-allowed":"pointer",opacity:r?.5:1},"aria-label":"Send Message",children:P.jsx("svg",{"aria-hidden":"true",width:"28",height:"28",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"none",children:[P.jsx("circle",{fill:"#1470D2",cx:"14",cy:"14",r:"14"}),P.jsx("path",{d:"m20.385 14.677-5.658-6.593c-.005-.005-.012-.007-.017-.012a.69.69 0 0 0-.513-.232.693.693 0 0 0-.51.228c-.006.007-.015.01-.021.016l-5.658 6.593a.7.7 0 0 0 1.062.91l4.429-5.16V20.58a.698.698 0 1 0 1.398 0V10.429l4.428 5.158a.695.695 0 0 0 .986.075.698.698 0 0 0 .074-.985",fill:"#FFF"})]})})})}),placeholder:"Ask our Chatbot...",sx:{height:"45px",borderRadius:"16px","> input::placeholder":{color:"#222222",opacity:1},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})}),P.jsxs(Un,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",P.jsx(gh,{href:"/support/site-terms",children:"Terms and Conditions"})," and ",P.jsx(gh,{href:"/support/privacy-policy",children:"Privacy Policy"}),"."]})]})})},vre=()=>P.jsxs(Et,{spacing:0,justifyContent:"center",alignItems:"center",py:5,marginBottom:"70px !important",children:[P.jsx(ga,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"72px",height:"72px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"62",height:"34",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsx(Un,{sx:{fontWeight:500,fontSize:"20px",mt:"19px"},children:"OWC Chatbot"}),P.jsx(Un,{sx:{fontSize:"14px"},children:"Ask us anything or select a topic to get started."})]}),yre=({drawer:e,onClose:t,updateChatSettings:n})=>{const r=X0(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null),f=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce"),setTimeout(()=>{c.current&&c.current.focus()},320)):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const m=x=>{e&&f.current&&!f.current.contains(x.target)&&(x.stopPropagation(),x.preventDefault(),c.current.focus())};return e?document.addEventListener("focus",m,!0):document.removeEventListener("focus",m,!0),()=>{document.removeEventListener("focus",m,!0)}},[e]);const p={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}},h=()=>{n({agent:"Live Agent"}),t(!1)};return a&&P.jsxs(Et,{ref:f,...p,className:o,children:[P.jsxs(Et,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"12px"},children:[P.jsx(Un,{fontSize:"17px",fontWeight:500,children:"Settings"}),P.jsx("button",{ref:c,style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"30px",width:"30px",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>t(!1),children:P.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("g",{stroke:"#1470D2",fill:"none",children:P.jsx("path",{d:"M22.036 7.894 7.894 22.036M7.964 7.894l14.142 14.142"})})})})]}),P.jsx(Et,{sx:{height:"100%",paddingInline:"15px"},children:P.jsx(Ew,{sx:{".MuiListItemButton-root":{borderRadius:"8px"}},children:P.jsx(Cw,{disablePadding:!0,children:P.jsx(Mne,{onClick:h,children:P.jsx(Xne,{primary:"Speak With a Live Agent"})})})})}),P.jsx(Et,{sx:{position:"relative",borderTop:"1px solid #dedede",display:"flex",alignItems:"center",paddingBlock:"12px",minHeight:"65px"},children:P.jsxs(Un,{sx:{color:"#595959",fontSize:"12px",textAlign:"center"},children:["By continuing, you agree to our ",P.jsx(gh,{href:"#",children:"Terms and Conditions"})," and ",P.jsx(gh,{href:"#",children:"Privacy Policy"}),"."]})})]})},wre=({drawer:e,children:t,...n})=>{const r=X0(),[o,i]=D.useState(""),[a,u]=D.useState(!1),c=D.useRef(null);D.useEffect(()=>{e?(u(!0),i("slideInBounce")):(i("slideOutBounce"),setTimeout(()=>u(!1),320))},[e]),D.useEffect(()=>{const p=h=>{e&&c.current&&!c.current.contains(h.target)&&(h.stopPropagation(),h.preventDefault())};return e?document.addEventListener("focus",p,!0):document.removeEventListener("focus",p,!0),()=>{document.removeEventListener("focus",p,!0)}},[e]);const f={sx:{position:"absolute",width:"100%",height:"fit-content",maxHeight:"100%",bottom:a?"-20px":"-270px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",zIndex:1,overflow:"auto",boxShadow:"rgba(0, 0, 0, 0.12) 0px 12px 48px 4px",background:r.palette.background.paper,opacity:e?1:0,transition:"opacity 320ms ease-in-out, bottom 320ms ease-in-out","&.slideInBounce":{animation:"slideInBounce 320ms ease-in-out"},"&.slideOutBounce":{animation:"slideOutBounce 320ms ease-in-out"},"@keyframes slideInBounce":{"0%":{transform:"translateY(100%)",opacity:0},"80%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@keyframes slideOutBounce":{"0%":{transform:"translateY(0)",opacity:1},"20%":{transform:"translateY(-10px)",opacity:1},"100%":{transform:"translateY(100%)",opacity:1}}}};return a&&P.jsx(Et,{ref:c,...f,className:o,...n,children:t})},xre=({drawer:e,dialog:t,onClick:n})=>P.jsx(Et,{sx:{position:"absolute",top:0,bottom:0,width:"100%",height:"100%",border:0,padding:0,margin:0,opacity:e||t?1:0,visibility:e||t?"visible":"hidden",background:"rgba(0, 0, 0, 0.25)",transition:"opacity 320ms, visibility 320ms",animation:e||t?"fadeIn 320ms ease":"fadeOut 320ms ease","@keyframes fadeIn":{from:{opacity:0},to:{opacity:1}},"@keyframes fadeOut":{from:{opacity:1},to:{opacity:0}}},onClick:n}),bre=["Welcome to OWC! I am your OWC Virtual Assistant!","Feel free to ask me anything about our products, orders, or returns. Type your question or select a topic, and I’ll do my best to assist!"],_re=({isMessageEmpty:e})=>P.jsxs(Et,{spacing:"8px",px:"15px",direction:"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease",...e?{marginBottom:"-16px !important"}:""},children:[P.jsx(ga,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",...e?"":{backgroundColor:"#005ea4"},borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsxs(Ew,{sx:{paddingBlock:0,height:"fit-content"},children:[P.jsx(Un,{sx:{marginLeft:"14.5px",marginBottom:"8px",color:"#595959",fontSize:"14px",fontFamily:"Roboto"},children:"OWC Chatbot"}),bre.map((t,n)=>P.jsx(Cw,{sx:{width:"fit-content",minHeight:"48px",marginTop:n===0?"0":"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"13px 14.5px"},children:t},n))]})]}),Xs="assistant_message",Sre=({message:e,index:t,sources:n,feedback:r,handleSources:o,chatData:i})=>{const{actions:a,chatSettingsValue:u,askUser:c}=FR(),{replyMessage:f,callAction:p,updateChatSettings:h}=qR(),m={width:"fit-content",marginTop:"8px",backgroundColor:"#f3f3f3",borderRadius:"22px",padding:"0 14.5px"},x={background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},v={size:"small",variant:"outlined",disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0,style:{width:"fit-content",borderRadius:"2px"}};return P.jsxs(Et,{children:[P.jsxs(Et,{spacing:"8px",px:"15px",direction:e.type!==Xs?"row-reverse":"row",alignItems:"flex-end",sx:{transition:"align-items 300ms ease"},children:[e.type===Xs&&P.jsx(ga,{sx:{display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",width:"32px",height:"32px",backgroundColor:"#005ea4",borderRadius:"100%"},children:P.jsx("svg",{width:"27.6",height:"15",viewBox:"0 0 62 34",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M44.385 17.7c-.128-.464-.468-.844-1.02-1.182-.553-.296-1.318-.465-2.21-.465-.68 0-1.317.085-1.87.296-.552.211-1.02.465-1.36.845-.34.338-.595.718-.68 1.098-.127.38-.212.972-.34 1.732l-.425 3.084c-.127 1.056-.17 1.817-.042 2.324.127.507.467.929 1.02 1.225.552.295 1.275.422 2.21.422.892 0 1.657-.169 2.294-.507.638-.338 1.105-.76 1.318-1.225.255-.465.425-1.225.595-2.323l.042-.423h-3.144l-.17 1.352c-.085.591-.17.972-.255 1.098-.085.17-.255.254-.468.254-.255 0-.382-.085-.425-.254-.042-.169-.042-.507.043-1.013l.68-4.943c.085-.55.17-.887.255-1.056.085-.17.255-.254.51-.254.212 0 .382.085.425.211.042.127.042.465-.043 1.014l-.255 1.86h3.145l.127-1.015c.128-.93.128-1.647.043-2.154m-15.767 9.167c.85-2.788 1.403-4.647 1.658-5.534 0 2.07.042 3.929.17 5.576h3.91l2.847-10.603h-3.06c-.723 2.45-1.36 4.985-1.912 7.52l.212-4.056c.085-2.028.128-3.21.17-3.507h-3.272c-.893 3-1.488 5.408-1.87 7.267l.17-3.591.17-3.718h-3.06l-.043 9.336c-.51-.169-.977-.338-1.487-.549.043-.084.043-.169.085-.253.128-.423.255-1.183.382-2.282l.255-1.816c.17-1.098.213-1.859.213-2.281 0-.423-.128-.845-.383-1.225-.254-.38-.637-.634-1.147-.845a5.295 5.295 0 0 0-1.7-.296c-.68 0-1.317.084-1.827.296-.553.21-.978.464-1.36.845-.34.38-.595.76-.723 1.225-.127.422-.255 1.183-.382 2.28l-.213 1.564a80.405 80.405 0 0 1-2.677-1.267c.383-9.04 7.905-16.307 17.127-16.307 9.434 0 17.126 7.646 17.126 17.025 0 3.422-1.02 6.59-2.762 9.251-4.462-.718-9.902-1.985-15.64-3.802-.297 0-.637-.126-.977-.253m-8.5-1.774c-.084.169-.212.253-.467.253-.212 0-.34-.084-.382-.211-.043-.127 0-.507.085-1.14l.68-4.943c.085-.55.17-.888.255-.972.085-.127.255-.169.382-.169.213 0 .298.084.383.211.042.127.042.465-.043.93l-.637 4.858c-.085.633-.17 1.014-.255 1.183m32.978.887c2.635 1.69 4.037 3.21 3.697 4.267-.382 1.182-2.847 1.605-6.672 1.351 1.53-2.957 2.422-6.294 2.422-9.843 0-11.828-9.69-21.503-21.63-21.503-10.838 0-19.847 7.985-21.377 18.377-2.763-1.774-4.25-3.337-3.91-4.393.34-1.056 2.337-1.521 5.482-1.394C4.735 11.786.527 11.87.102 13.265c-.552 1.901 6.12 5.788 16.277 9.8-.085.804-.17 1.395-.17 1.733 0 .422.127.845.382 1.225.255.38.638.634 1.148.845a5.092 5.092 0 0 0 1.7.296c.68 0 1.275-.085 1.827-.296.553-.211.978-.465 1.318-.845.127-.169.255-.296.382-.465.553.212 1.147.38 1.742.592v.76h2.338c.807.254 1.615.507 2.465.803 17.041 5.323 31.533 7.52 32.383 4.9.425-1.436-2.975-3.844-8.797-6.632",fill:"#FFF"})})}),P.jsxs(Ew,{sx:{paddingBlock:0,height:"fit-content"},children:[e.type===Xs&&P.jsx(Un,{sx:{marginLeft:"14.5px",marginBottom:"8px",color:"#595959",fontSize:"14px",fontFamily:"Roboto, sans-serif"},children:e.sender||"OWC Chatbot"}),P.jsx(Cw,{sx:{...m,...e.type!==Xs&&{color:"#222",backgroundColor:"#edf5fa"},"div p":{marginBlock:"1em !important"}},children:P.jsx(Zk,{markdown:e.output})})]})]}),e.type===Xs&&P.jsxs(Et,{direction:"row",spacing:"16.6px",marginTop:"8px",marginLeft:7,children:[P.jsx("button",{style:x,onClick:()=>r(e,1),children:P.jsx(Ml,{title:"Helpful",children:P.jsxs("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("defs",{children:P.jsx("path",{id:"6mcpzcblqa",d:"M0 0h15.383v15H0z"})}),P.jsxs("g",{fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"nl4n4evbwb",fill:"#fff",children:P.jsx("use",{xlinkHref:"#6mcpzcblqa"})}),P.jsx("path",{d:"m14.288 7.786-.198.317c-.237.355-.336.79-.257 1.205l.04.178c.039.178 0 .336-.1.494l-.177.276c-.237.356-.336.79-.257 1.206l.04.178c.038.177 0 .336-.1.474l-.335.494a1.598 1.598 0 0 0-.218.494l-.099.395a.653.653 0 0 1-.632.494H4.96V7.333a2.184 2.184 0 0 0 1.363-.968l2.095-3.3c.198-.316.317-.692.317-1.087v-.751a.24.24 0 0 1 .237-.237c.573 0 1.048.474 1.048 1.047 0 .317-.04.633-.139.93l-.988 3.122c-.04.158-.02.316.079.434a.515.515 0 0 0 .395.198h4.407c.336 0 .613.257.653.593-.02.197-.06.355-.14.473zm-13.3 6.167h2.985V6.779H.988v7.174zm14.387-6.72c-.1-.83-.791-1.482-1.641-1.482H9.999l.79-2.49c.12-.395.198-.81.198-1.225C10.987.909 10.078 0 8.952 0 8.28 0 7.727.554 7.727 1.225v.751c0 .198-.06.395-.159.554L5.474 5.85a1.32 1.32 0 0 1-.533.455v-.02a.49.49 0 0 0-.494-.494H.494A.49.49 0 0 0 0 6.285v8.162a.49.49 0 0 0 .494.494h3.973l7.51.059c.75 0 1.403-.514 1.6-1.225l.1-.395a.38.38 0 0 1 .098-.198l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.634.634 0 0 1 .099-.495l.177-.276c.237-.356.336-.79.257-1.206l-.04-.158a.634.634 0 0 1 .1-.494l.197-.317c.218-.295.317-.69.277-1.086z",fill:"#989898",mask:"url(#nl4n4evbwb)"})]})]})})}),P.jsx("button",{style:x,onClick:()=>r(e,0),children:P.jsx(Ml,{title:"Not Helpful",children:P.jsxs("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("defs",{children:P.jsx("path",{id:"42svq9gc7a",d:"M0 0h15.383v15H0z"})}),P.jsxs("g",{transform:"rotate(-180 7.692 7.5)",fill:"none",fillRule:"evenodd",children:[P.jsx("mask",{id:"fna5jsjxab",fill:"#fff",children:P.jsx("use",{xlinkHref:"#42svq9gc7a"})}),P.jsx("path",{d:"m14.288 7.786-.198.317c-.237.355-.336.79-.257 1.205l.04.178c.039.178 0 .336-.1.494l-.177.276c-.237.356-.336.79-.257 1.206l.04.178c.038.177 0 .336-.1.474l-.335.494a1.598 1.598 0 0 0-.218.494l-.099.395a.653.653 0 0 1-.632.494H4.96V7.333a2.184 2.184 0 0 0 1.363-.968l2.095-3.3c.198-.316.317-.692.317-1.087v-.751a.24.24 0 0 1 .237-.237c.573 0 1.048.474 1.048 1.047 0 .317-.04.633-.139.93l-.988 3.122c-.04.158-.02.316.079.434a.515.515 0 0 0 .395.198h4.407c.336 0 .613.257.653.593-.02.197-.06.355-.14.473zm-13.3 6.167h2.985V6.779H.988v7.174zm14.387-6.72c-.1-.83-.791-1.482-1.641-1.482H9.999l.79-2.49c.12-.395.198-.81.198-1.225C10.987.909 10.078 0 8.952 0 8.28 0 7.727.554 7.727 1.225v.751c0 .198-.06.395-.159.554L5.474 5.85a1.32 1.32 0 0 1-.533.455v-.02a.49.49 0 0 0-.494-.494H.494A.49.49 0 0 0 0 6.285v8.162a.49.49 0 0 0 .494.494h3.973l7.51.059c.75 0 1.403-.514 1.6-1.225l.1-.395a.38.38 0 0 1 .098-.198l.336-.494c.237-.356.336-.79.257-1.206l-.06-.217a.634.634 0 0 1 .099-.495l.177-.276c.237-.356.336-.79.257-1.206l-.04-.158a.634.634 0 0 1 .1-.494l.197-.317c.218-.295.317-.69.277-1.086z",fill:"#989898",mask:"url(#fna5jsjxab)"})]})]})})}),n.length>0&&!e.waitForAnswer&&u.agent!=="Live Agent"&&P.jsx("button",{style:x,onClick:()=>o(e.id),children:P.jsx(Ml,{title:"View Sources",children:P.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"#989898",stroke:"#989898",strokeWidth:".35",fillRule:"evenodd",children:[P.jsx("path",{d:"M15.226 15.42H1.774a.196.196 0 0 1-.194-.194V4.796h13.84v10.43a.196.196 0 0 1-.194.194M1.774 1.58h13.452c.105 0 .194.089.194.194v2.442H1.58V1.774c0-.105.089-.194.194-.194M15.226 1H1.774A.775.775 0 0 0 1 1.774v13.452c0 .427.347.774.774.774h13.452a.775.775 0 0 0 .774-.774V1.774A.775.775 0 0 0 15.226 1"}),P.jsx("path",{d:"M13.124 12.58H3.84a.29.29 0 1 0 0 .58h9.285a.29.29 0 1 0 0-.58M4.058 10.801a.29.29 0 0 0 .205-.085L5.94 9.038a.289.289 0 0 0 .085-.209.289.289 0 0 0-.085-.21L4.263 6.943a.29.29 0 0 0-.41.41L5.328 8.83l-1.477 1.477a.29.29 0 0 0 .206.495z"})]})})})})]}),P.jsxs(Et,{direction:"row",spacing:1,justifyContent:"flex-end",paddingRight:"15px",sx:{...e.type===Xs&&e.waitForAnswer&&{marginLeft:7}},children:[a.length>0&&a.map((y,A)=>y.forId===e.id&&P.jsx(mh,{...v,onClick:()=>{p(y)},children:y.label},A)),e.type===Xs&&!e.waitForAnswer&&u.agent!=="Live Agent"&&P.jsx(mh,{...v,onClick:()=>{h({agent:"Live Agent"})},children:"Speak With a Live Agent"})]})]})},Ere=({show:e,onMinimize:t,...n})=>{const{sendMessage:r,replyMessage:o,clear:i,updateChatSettings:a}=qR(),{elements:u,loading:c,askUser:f}=FR();let{messages:p}=yV();const[h,m]=D.useState([]),x=D.useRef(null),v=D.useContext(s0),[y,A]=D.useState([]),[_,w]=D.useState(()=>P.jsx(P.Fragment,{})),[S,k]=D.useState(""),[T,E]=D.useState(""),[L,$]=D.useState(!1),[q,B]=D.useState(!1),[Y,se]=D.useState([]),[K,H]=D.useState(""),Q=D.useRef([]),le=()=>{var ye;(ye=x.current)==null||ye.scrollIntoView({behavior:"smooth"})},de=()=>{var ge;if(p.length===0)return!1;const ye=(ge=p[p.length-1])==null?void 0:ge.output.trim();return ye===""||ye===K.trim()};D.useEffect(()=>{le()},[h]),D.useEffect(()=>{if(le(),de(),p.length>0){const ye=p.filter(ge=>ge.name);m([...Q.current,...ye])}},[p]),D.useEffect(()=>{const ye=JSON.parse(sessionStorage.getItem("chatState"));ye&&(Q.current=ye,m(ye))},[]),D.useEffect(()=>{h.length>0&&sessionStorage.setItem("chatState",JSON.stringify(h))},[h]),D.useEffect(()=>{const ye=async()=>{if(u.length!==0)try{const ge=await Promise.all(u.filter(he=>p.some(We=>We.id===he.forId)).map(async he=>({sources:(await _n.get(he.url)).data,id:he.forId})));A(ge)}catch(ge){console.error(ge)}};p.length>0&&ye()},[u]),D.useEffect(()=>{se(y)},[y]),D.useEffect(()=>{le()},[Y]),D.useEffect(()=>{T&&w(fe)},[T]);const J=()=>{B(!0),w(te)},pe=async(ye,ge)=>{B(!0),w(P.jsx(we,{action:ge,topic:ye}))},re=()=>{t(!1),B(!1),i(),sessionStorage.removeItem("chatState"),Q.current=[],m([])},me=ye=>{E(ye),B(!0)},U=async ye=>{const ge=ye||S.trim();H(ge);const he=e0();if(ge){const We={name:"User",type:"user_message",sender:"user",output:ge,content:ge,createdAt:new Date().toISOString(),id:he};f?(console.log("messages",p),console.log("askUser:",f),o(We)):r(We,[]),k("")}},ae={borderRadius:"2px",minHeight:"48px",fontFamily:"Exo, Roboto, sans-serif",fontWeight:600},te=()=>P.jsxs(Ze.Fragment,{children:[P.jsxs(Et,{spacing:1,sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"25px",paddingBottom:"7px"},children:[P.jsx(Un,{fontSize:"17px",fontWeight:500,children:"End Chat"}),P.jsx(Un,{children:"Are you sure you want to end chat?"})]}),P.jsxs(Et,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",paddingTop:1,marginBottom:4},children:[P.jsx(mh,{fullWidth:!0,variant:"contained",sx:ae,onClick:re,children:"End Chat"}),P.jsx(mh,{sx:ae,onClick:()=>{B(!1)},children:"Cancel"})]})]}),we=({action:ye,topic:ge})=>{const[he,We]=Ze.useState("");return P.jsxs(Ze.Fragment,{children:[P.jsxs(Et,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[P.jsx(Et,{direction:"row",spacing:1,children:P.jsx(Un,{fontSize:"17px",fontWeight:500,children:"Add a Comment"})}),P.jsx("button",{style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>B(!1),children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[P.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),P.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),P.jsx(Et,{sx:{paddingInline:"15px",paddingBlock:"24px"},children:P.jsx(vT,{variant:"outlined",sx:{width:"100%"},children:P.jsx(Aw,{multiline:!0,rows:5,onInput:Le=>We(Le.target.value),sx:{borderRadius:"16px","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#1470D2"}}})})}),P.jsx(Et,{spacing:1,sx:{display:"flex",alignItems:"center",paddingInline:"15px",marginBottom:4},children:P.jsx("button",{style:{...ae,color:"#fff",background:"#1470D2",fontFamily:"Exo",fontWeight:600,border:"none",width:"100%",borderRadius:0,cursor:"pointer"},onClick:()=>{v.setFeedback({forId:ge.id,threadId:ge.threadId,value:ye,comment:he},localStorage.getItem("accessToken")),B(!1)},children:"Submit Feedback"})})]})},fe=D.useCallback(()=>{const ye=Y.filter(ge=>ge.id===T);if(ye.length!==0)return P.jsxs(Ze.Fragment,{children:[P.jsxs(Et,{sx:{position:"relative",borderBottom:"1px solid #dedede",display:"flex",justifyContent:"center",alignItems:"center",paddingBlock:"15px"},children:[P.jsxs(Et,{direction:"row",spacing:1,children:[P.jsx("svg",{width:"23",height:"23",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"#222",stroke:"#222",strokeWidth:".35",fillRule:"evenodd",children:[P.jsx("path",{d:"M20.917 21.188H2.083a.274.274 0 0 1-.27-.271V6.314h19.374v14.603c0 .146-.124.27-.27.27M2.083 1.813h18.834c.146 0 .27.125.27.271v3.419H1.812V2.083c0-.146.125-.27.271-.27M20.917 1H2.083C1.486 1 1 1.486 1 2.083v18.834C1 21.514 1.486 22 2.083 22h18.834c.597 0 1.083-.486 1.083-1.083V2.083C22 1.486 21.514 1 20.917 1"}),P.jsx("path",{d:"M17.974 17.211h-13a.406.406 0 1 0 0 .813h13a.406.406 0 1 0 0-.813M5.28 14.722c.105 0 .208-.04.288-.12l2.349-2.348c.08-.081.12-.187.118-.293a.404.404 0 0 0-.118-.293l-2.35-2.35a.406.406 0 0 0-.574.575l2.068 2.068-2.068 2.067a.406.406 0 0 0 .288.694z"})]})}),P.jsx(Un,{fontSize:"17px",fontWeight:500,children:"Sources"})]}),P.jsx("button",{style:{position:"absolute",right:10,background:"none",border:"none",padding:0,height:"fit-content",width:"fit-content",cursor:"pointer"},"aria-label":"Close Chat",onClick:()=>B(!1),children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{transform:"translate(1 1)",fillRule:"nonzero",stroke:"#1773B0",fill:"none",strokeLinecap:"round",children:[P.jsx("circle",{cx:"11.25",cy:"11.25",r:"11.25"}),P.jsx("path",{d:"M7.5 7.5 15 15M15 7.5 7.5 15"})]})})})]}),P.jsx(Et,{sx:{paddingInline:"15px",paddingTop:"10px",paddingBottom:"20px",maxHeight:"350px",overflow:"auto",a:{color:"#1470d2",fontFamily:"Roboto",fontSize:"13px",lineHeight:"18px",fontWeight:"normal"}},children:ye.map((ge,he)=>P.jsx(Zk,{markdown:ge.sources},he))})]})},[T,Y]);return P.jsx(Et,{position:"relative",children:P.jsxs(Et,{sx:{position:"fixed",display:"flex",bottom:24,left:{xs:17,sm:24},width:{xs:"calc(100% - 35px)",sm:464},height:"calc(100% - 64px)",maxHeight:"766px",bgcolor:"background.paper",border:"solid 1px #dedede",borderRadius:"16px",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",paddingTop:"13px",boxShadow:"0 2px 4px 0 rgba(12, 62, 91, 0.16)",opacity:0,zIndex:999,visibility:"hidden",transform:"translate(0px, 100px)",transition:"transform 200ms, opacity 200ms, visibility linear 200ms",...n.className.includes("chat-box__open")&&{visibility:"visible",opacity:1,transform:"translate(0px, 0px)"},...n.className.includes("chat-box__close")&&{visibility:"hidden",opacity:0,transform:"translate(0px, 100px)"}},...n,children:[P.jsx(mre,{onClose:J,onMinimize:t,onDrawerOpen:()=>$(!0)}),P.jsxs(Et,{spacing:2,sx:{display:"flex",overflow:"auto",flexDirection:"column",paddingBottom:0,height:"100%"},children:[P.jsx(vre,{}),P.jsx(_re,{isMessageEmpty:p.length}),h.filter(ye=>ye.output.trim()!=="").map((ye,ge)=>P.jsx(Sre,{index:ge,message:ye,sources:Y,feedback:pe,handleSources:me},ge)),P.jsx(hre,{visible:de()}),P.jsx("div",{ref:x})]}),P.jsx(gre,{onMessage:U,value:S,input:k,loading:c}),P.jsx(xre,{drawer:L,dialog:q,onClick:()=>{$(!1),B(!1)}}),P.jsx(yre,{drawer:L,onClose:()=>$(!1),updateChatSettings:a}),P.jsx(wre,{drawer:q,children:_})]})})},Cre=({toggle:e,sx:t,...n})=>P.jsxs(Et,{sx:{gap:"13px",bottom:24,left:24,width:"fit-content",height:"55px",zIndex:99999,paddingX:"24px",cursor:"pointer",position:"fixed",bgcolor:"#1470d2",borderRadius:27.5,flexDirection:"row",alignItems:"center",border:"solid 1px #1163bb",outline:"none",opacity:0,visibility:"hidden",boxShadow:"0 0 0 1px #fff, inset 0 0 0 1px #fff, inset 0 0 0 1px #1163bb, 0 2px 4px 0 rgba(0, 0, 0, 0.5)",transform:"translate(0px, 100px)",transition:"transform 200ms, opacity 200ms, visibility linear 200ms",...n.className.includes("chat-bubble__open")&&{visibility:"visible",opacity:1,transform:"translate(0px, 0px)"},...n.className.includes("chat-bubble__close")&&{visibility:"hidden",opacity:0,transform:"translate(0px, 100px)"},...t},...n,onClick:e,children:[P.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",xmlns:"http://www.w3.org/2000/svg",children:P.jsxs("g",{fill:"none",children:[P.jsxs("g",{children:[P.jsx("path",{d:"M0 0h28.906v35H0z"}),P.jsx("path",{d:"M26.98 24.4a2.89 2.89 0 0 1-2.891 2.891H14.32a.961.961 0 0 0-.634.239l-5.014 4.383v-3.659a.964.964 0 0 0-.964-.963h-2.89a2.89 2.89 0 0 1-2.892-2.89V10.91c0-.768.305-1.503.848-2.044a2.883 2.883 0 0 1 2.043-.847H24.09c.767 0 1.502.304 2.044.847.542.541.846 1.276.846 2.043V24.4zm.516-16.897a4.822 4.822 0 0 0-3.407-1.41h-8.605V3.638c.388-.24.699-.607.847-1.076a1.97 1.97 0 0 0-3.757-1.185 1.965 1.965 0 0 0 .848 2.264v2.452H4.817a4.825 4.825 0 0 0-3.407 1.41A4.825 4.825 0 0 0 0 10.91V24.4a4.818 4.818 0 0 0 4.817 4.819h1.928v4.817a.962.962 0 0 0 1.597.726l6.34-5.543h9.407a4.819 4.819 0 0 0 4.818-4.818V10.91a4.822 4.822 0 0 0-1.411-3.408z",fill:"#FFF",mask:"url(#xk5421jfwb)"})]}),P.jsx("path",{d:"M10.276 15.512a1.97 1.97 0 1 0-3.939 0 1.97 1.97 0 0 0 3.94 0M21.192 13.634a1.97 1.97 0 1 0-1.186 3.758 1.97 1.97 0 0 0 1.186-3.758M19.292 19.615c-4.809 3.165-9.59.134-9.798-.001A1.032 1.032 0 0 0 8.36 21.34c.162.106 2.767 1.78 6.232 1.78 1.789 0 3.806-.444 5.836-1.78a1.033 1.033 0 0 0-1.136-1.725",fill:"#FFF"})]})}),P.jsx(Un,{sx:{color:"#fff",fontFamily:"Roboto",fontSize:"16px",fontWeight:500},children:"Chat"})]}),Are=()=>{const[e,t]=D.useState(!1);return P.jsxs(Ze.Fragment,{children:[P.jsx(Cre,{toggle:t,className:e?"chat-bubble__close":"chat-bubble__open"}),P.jsx(Ere,{show:e,className:e?"chat-box__open":"chat-box__close",onMinimize:t})]})};var Rre={VITE_APP_VERSION:"v1.0.0",VITE_APP_SSL_URL:"https://owcbot.macsales.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const kre=aH([{path:"*",element:P.jsx(Are,{})}],{basename:Rre.VITE_APP_BASE_NAME});function Tre(){return Y0({palette:{common:{black:"#000",white:"#fff"},text:{primary:"#000",secondary:"#333",disabled:"grey"},action:{disabled:"grey"},divider:"grey",background:{paper:"white",default:"white"},primary:{main:"#1470d2"}}})}function Dre(e){return{htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,color:"#222222",h1:{fontWeight:800,fontSize:"3.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"2.575rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"initial"}}}let ef;(function(e){e.LIGHT="light",e.DARK="dark"})(ef||(ef={}));ef.LIGHT;function Pre(e){return{button:e.palette.mode===ef.DARK?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z1:e.palette.mode===ef.DARK?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${Xn(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Xn(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Xn(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Xn(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Xn(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Xn(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Xn(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Xn(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Xn(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Xn(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Xn(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Xn(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Xn(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Xn(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Xn(e.palette.grey[500],.2)}`}}function Ore(e,t){switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}function Lre(e,t){switch(t){case"secondary":return e.customShadows.secondary;case"error":return e.customShadows.error;case"warning":return e.customShadows.warning;case"info":return e.customShadows.info;case"success":return e.customShadows.success;default:return e.customShadows.primary}}function wt({variant:e,color:t,theme:n}){const r=Ore(n,t),{lighter:o,main:i,dark:a,darker:u,contrastText:c}=r,f=`${t}Button`,p=Lre(n,f),h={"&::after":{boxShadow:`0 0 5px 5px ${Xn(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Xn(i,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...h};case"shadow":return{color:c,backgroundColor:i,boxShadow:p,"&:hover":{boxShadow:"none",backgroundColor:a},...h};case"outlined":return{borderColor:i,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...h};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:a,borderColor:a},...h};case"text":default:return{color:a,"&:hover":{color:u,backgroundColor:o},...h}}}function Nre(e){const t=wt({variant:"dashed",color:"primary",theme:e}),n=wt({variant:"shadow",color:"primary",theme:e}),r=wt({variant:"contained",color:"#c00",theme:e}),o={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},i={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,disableTouchRipple:!0,disableFocusRipple:!0},styleOverrides:{root:{borderRadius:7,fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...o,...r},outlined:{...o},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...i},startIcon:{...i},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":wt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":wt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":wt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":wt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":wt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":wt({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":wt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":wt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":wt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":wt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":wt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":wt({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:wt({variant:"contained",color:"primary",theme:e}),containedSecondary:wt({variant:"contained",color:"secondary",theme:e}),containedError:wt({variant:"contained",color:"error",theme:e}),containedSuccess:wt({variant:"contained",color:"success",theme:e}),containedInfo:wt({variant:"contained",color:"info",theme:e}),containedWarning:wt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:wt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:wt({variant:"outlined",color:"secondary",theme:e}),outlinedError:wt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:wt({variant:"outlined",color:"success",theme:e}),outlinedInfo:wt({variant:"outlined",color:"info",theme:e}),outlinedWarning:wt({variant:"outlined",color:"warning",theme:e}),textPrimary:wt({variant:"text",color:"primary",theme:e}),textSecondary:wt({variant:"text",color:"secondary",theme:e}),textError:wt({variant:"text",color:"error",theme:e}),textSuccess:wt({variant:"text",color:"success",theme:e}),textInfo:wt({variant:"text",color:"info",theme:e}),textWarning:wt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Mre(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Bre(e){return{MuiTooltip:{styleOverrides:{tooltip:{background:"#222",zIndex:9999}}}}}function Ire(e){return Pa.merge(Nre(e),Mre(),Bre())}function xT({children:e}){const t=D.useMemo(()=>Tre(),["light","default"]),n=D.useMemo(()=>Dre("'Roboto', 'Exo'"),["Roboto","Exo"]),r=D.useMemo(()=>Pre(t),[t]),o=D.useMemo(()=>({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:t.palette,customShadows:r,typography:n}),[t,n]),i=Y0(o);return i.components=Ire(i),P.jsx(y4,{injectFirst:!0,children:P.jsxs(MJ,{theme:i,children:[P.jsx(ine,{enableColorScheme:!0}),e]})})}xT.propTypes={children:oY.node};const bT=D.createContext(),$re=({children:e})=>{const t=wV();return P.jsx(bT.Provider,{value:t,children:e})},Fre=()=>D.useContext(bT),Ure=()=>{const{connect:e,disconnect:t}=Fre(),n=Pn(r0);return D.useEffect(()=>n!=null&&n.socket.connected?void 0:((async()=>{try{const o=window.location.protocol,a=(await _n.post("https://owcbot.macsales.com/login",new URLSearchParams({username:"owc-user",password:"owc-user"}))).data.access_token;localStorage.setItem("accessToken",`Bearer ${a}`),e({accessToken:`Bearer ${a}`})}catch(o){console.error("Login failed:",o)}})(),()=>{t()}),[e]),P.jsx(xT,{children:P.jsx(gH,{router:kre})})},zre=()=>P.jsx($re,{children:P.jsx(Ure,{})}),jre="https://owcbot.macsales.com",Vre=new WR(jre,"webapp");document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("aibotroot");e?hv.createRoot(e).render(P.jsx(Ze.StrictMode,{children:P.jsx(s0.Provider,{value:Vre,children:P.jsx(Fz,{children:P.jsx(zre,{})})})})):console.log("Root element for Chatbot not found")});