From c07efe056b895f29359895226e75cd76a9133161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 22 Jul 2024 07:05:16 +0200 Subject: [PATCH] npm run build --- .../{index-C12UM6g5.js => index-Di_tc01d.js} | 26 +++++++++---------- src/pydase/frontend/index.html | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) rename src/pydase/frontend/assets/{index-C12UM6g5.js => index-Di_tc01d.js} (64%) diff --git a/src/pydase/frontend/assets/index-C12UM6g5.js b/src/pydase/frontend/assets/index-Di_tc01d.js similarity index 64% rename from src/pydase/frontend/assets/index-C12UM6g5.js rename to src/pydase/frontend/assets/index-Di_tc01d.js index 20dbc73..4f8496c 100644 --- a/src/pydase/frontend/assets/index-C12UM6g5.js +++ b/src/pydase/frontend/assets/index-Di_tc01d.js @@ -1,4 +1,4 @@ -function vk(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 s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yn(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 l0={exports:{}},su={},u0={exports:{}},q={};/** +function gk(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 s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yn(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 u0={exports:{}},su={},c0={exports:{}},q={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function vk(e,t){for(var n=0;n=0)continue;n[r]=e[r]}return n}function Om(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Fk(e){var t=zk(e,"string");return typeof t=="symbol"?t:String(t)}function zk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function S0(e,t,n){var r=h.useRef(e!==void 0),o=h.useState(t),i=o[0],s=o[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&i!==t&&s(t),[a?e:i,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f=0)continue;n[r]=e[r]}return n}function $m(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function zk(e){var t=Uk(e,"string");return typeof t=="symbol"?t:String(t)}function Uk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function x0(e,t,n){var r=h.useRef(e!==void 0),o=h.useState(t),i=o[0],s=o[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&i!==t&&s(t),[a?e:i,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,v=!1,g=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,y(_),!g)if(n(l)!==null)g=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){g=!1,S&&(S=!1,m(O),O=-1),v=!0;var F=f;try{for(y(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),y(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,v=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(m(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),g||v||(g=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(T0);_0.exports=T0;var ob=_0.exports;/** + */(function(e){function t(_,I){var F=_.length;_.push(I);e:for(;0>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,v=!1,g=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,y(_),!g)if(n(l)!==null)g=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){g=!1,S&&(S=!1,m(O),O=-1),v=!0;var F=f;try{for(y(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),y(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,v=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(m(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),g||v||(g=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(R0);T0.exports=R0;var ib=T0.exports;/** * @license React * react-dom.production.min.js * @@ -34,21 +34,21 @@ function vk(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$f=Object.prototype.hasOwnProperty,sb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$m={},_m={};function ab(e){return $f.call(_m,e)?!0:$f.call($m,e)?!1:sb.test(e)?_m[e]=!0:($m[e]=!0,!1)}function lb(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 ub(e,t,n,r){if(t===null||typeof t>"u"||lb(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 lt(e,t,n,r,o,i,s){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=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(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){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var gp=/[\-:]([a-z])/g;function wp(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(gp,wp);Ge[t]=new lt(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(gp,wp);Ge[t]=new lt(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(gp,wp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sp(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$f=Object.prototype.hasOwnProperty,ab=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_m={},Tm={};function lb(e){return $f.call(Tm,e)?!0:$f.call(_m,e)?!1:ab.test(e)?Tm[e]=!0:(_m[e]=!0,!1)}function ub(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 cb(e,t,n,r){if(t===null||typeof t>"u"||ub(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 lt(e,t,n,r,o,i,s){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=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(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){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wp=/[\-:]([a-z])/g;function Sp(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(wp,Sp);Ge[t]=new lt(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(wp,Sp);Ge[t]=new lt(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(wp,Sp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xp(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function cb(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(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 xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case xp:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A0:return(e.displayName||"Context")+".Consumer";case N0:return(e._context.displayName||"Context")+".Provider";case Ep:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function fb(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 Nf(t);case 8:return t===xp?"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 xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function j0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function db(e){var t=j0(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(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=db(e))}function L0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=j0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(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 Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(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 I0(e,t){t=t.checked,t!=null&&Sp(e,"checked",t,!1)}function Pf(e,t){I0(e,t);var n=xr(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")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nm(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 jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hi={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},pb=["Webkit","ms","Moz","O"];Object.keys(Hi).forEach(function(e){pb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hi[t]=Hi[e]})});function F0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hi.hasOwnProperty(e)&&Hi[e]?(""+t).trim():t+"px"}function z0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=F0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var hb=be({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 Mf(e,t){if(t){if(hb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(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 Df=null;function bp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function jm(e){if(e=Ds(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function U0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function W0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,jm(e),t)for(e=0;e>>=0,e===0?32:31-(Cb(e)/Ob|0)|0}var ra=64,oa=4194304;function Mi(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 ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Mi(a):(i&=s,i!==0&&(r=Mi(i)))}else s=n&~o,s!==0?r=Mi(s):i!==0&&(r=Mi(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 Ms(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Rb(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=Ki),Wm=" ",Hm=!1;function u1(e,t){switch(e){case"keyup":return oC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function sC(e,t){switch(e){case"compositionend":return c1(t);case"keypress":return t.which!==32?null:(Hm=!0,Wm);case"textInput":return e=t.data,e===Wm&&Hm?null:e;default:return null}}function aC(e,t){if(Eo)return e==="compositionend"||!Ap&&u1(e,t)?(e=a1(),ja=Tp=ur=null,Eo=!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=qm(n)}}function h1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?h1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function m1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function Pp(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 yC(e){var t=m1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&h1(n.ownerDocument.documentElement,n)){if(r!==null&&Pp(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=Qm(n,i);var s=Qm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,qi=null,Gf=!1;function Ym(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&Pp(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}),qi&&ms(qi,r)||(qi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},et=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;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 dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(et)}function ry(e,t,n){if(et.current!==Er)throw Error(R(168));he(et,t),he(ft,n)}function b1(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(R(108,fb(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=et.current,he(et,e),he(ft,ft.current),!0}function oy(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=b1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(et),he(et,e)):ye(ft),he(ft,n)}var jn=null,pu=!1,Mc=!1;function C1(e){jn===null?jn=[e]:jn.push(e)}function _C(e){pu=!0,C1(e)}function Or(){if(!Mc&&jn!==null){Mc=!0;var e=0,t=ue;try{var n=jn;for(ue=1;e>=s,o-=s,Mn=1<<32-nn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(m,b,y[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(m,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===y.length)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(m,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(m,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;!$.done;O++,$=y.next())$=d(m,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(m,O),C}for(b=r(m,b);!$.done;O++,$=y.next())$=v(b,m,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(m,U)}),xe&&Nr(m,O),C}function k(m,p,y,E){if(typeof y=="object"&&y!==null&&y.type===xo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ea:e:{for(var C=y.key,x=p;x!==null;){if(x.key===C){if(C=y.type,C===xo){if(x.tag===7){n(m,x.sibling),p=o(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&ay(C)===x.type){n(m,x.sibling),p=o(x,y.props),p.ref=bi(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===xo?(p=Br(y.props.children,m.mode,E,y.key),p.return=m,m=p):(E=Ua(y.type,y.key,y.props,null,m.mode,E),E.ref=bi(m,p,y),E.return=m,m=E)}return s(m);case So:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Vc(y,m.mode,E),p.return=m,m=p}return s(m);case nr:return x=y._init,k(m,p,x(y._payload),E)}if(Ii(y))return g(m,p,y,E);if(wi(y))return S(m,p,y,E);fa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return k}var Ko=T1(!0),R1=T1(!1),bl=Cr(null),Cl=null,To=null,Mp=null;function Bp(){Mp=To=Cl=null}function Dp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(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 Mo(e,t){Cl=e,Mp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Mp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function Fp(e){jr===null?jr=[e]:jr.push(e)}function N1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Fp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(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 rr=!1;function zp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function A1(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 zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,Fp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(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,Op(e,n)}}function ly(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,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 Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,S=a;switch(f=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function uy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function Q1(){return Ft().memoizedState}function AC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Y1(e))X1(t,n);else if(n=N1(e,t,n,r),n!==null){var o=st();rn(n,e,r,o),J1(n,t,r)}}function PC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Y1(e))X1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,sn(a,s)){var l=t.interleaved;l===null?(o.next=o,Fp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=N1(e,t,o,r),n!==null&&(o=st(),rn(n,e,r,o),J1(n,t,r))}}function Y1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function X1(e,t){Qi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function J1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Op(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},jC={readContext:Dt,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:fy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,H1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=fn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fn();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=AC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:cy,useDebugValue:Qp,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=cy(!1),t=e[0];return e=NC.bind(null,e[1]),fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=fn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||I1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,fy(B1.bind(null,r,i,e),[e]),r.flags|=2048,ks(9,M1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=fn(),t=Fe.identifierPrefix;if(xe){var n=Bn,r=Mn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xs++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function fb(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(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 xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case Ep:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case P0:return(e.displayName||"Context")+".Consumer";case A0:return(e._context.displayName||"Context")+".Provider";case kp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function db(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 Nf(t);case 8:return t===Ep?"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 xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function L0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pb(e){var t=L0(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(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=pb(e))}function I0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=L0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(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 Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(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 M0(e,t){t=t.checked,t!=null&&xp(e,"checked",t,!1)}function Pf(e,t){M0(e,t);var n=xr(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")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Am(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 jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hi={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},hb=["Webkit","ms","Moz","O"];Object.keys(Hi).forEach(function(e){hb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hi[t]=Hi[e]})});function z0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hi.hasOwnProperty(e)&&Hi[e]?(""+t).trim():t+"px"}function U0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=z0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mb=be({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 Mf(e,t){if(t){if(mb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(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 Df=null;function Cp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function Lm(e){if(e=Ds(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function W0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function H0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,Lm(e),t)for(e=0;e>>=0,e===0?32:31-(Ob(e)/$b|0)|0}var ra=64,oa=4194304;function Mi(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 ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Mi(a):(i&=s,i!==0&&(r=Mi(i)))}else s=n&~o,s!==0?r=Mi(s):i!==0&&(r=Mi(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 Ms(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Nb(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=Ki),Hm=" ",Vm=!1;function c1(e,t){switch(e){case"keyup":return iC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function aC(e,t){switch(e){case"compositionend":return f1(t);case"keypress":return t.which!==32?null:(Vm=!0,Hm);case"textInput":return e=t.data,e===Hm&&Vm?null:e;default:return null}}function lC(e,t){if(Eo)return e==="compositionend"||!Pp&&c1(e,t)?(e=l1(),ja=Rp=ur=null,Eo=!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=Qm(n)}}function m1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?m1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function y1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function jp(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 vC(e){var t=y1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&m1(n.ownerDocument.documentElement,n)){if(r!==null&&jp(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=Ym(n,i);var s=Ym(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,qi=null,Gf=!1;function Xm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&jp(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}),qi&&ms(qi,r)||(qi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},et=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;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 dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(et)}function oy(e,t,n){if(et.current!==Er)throw Error(R(168));he(et,t),he(ft,n)}function C1(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(R(108,db(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=et.current,he(et,e),he(ft,ft.current),!0}function iy(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=C1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(et),he(et,e)):ye(ft),he(ft,n)}var jn=null,pu=!1,Mc=!1;function O1(e){jn===null?jn=[e]:jn.push(e)}function TC(e){pu=!0,O1(e)}function Or(){if(!Mc&&jn!==null){Mc=!0;var e=0,t=ue;try{var n=jn;for(ue=1;e>=s,o-=s,Mn=1<<32-nn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(m,b,y[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(m,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===y.length)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(m,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(m,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;!$.done;O++,$=y.next())$=d(m,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(m,O),C}for(b=r(m,b);!$.done;O++,$=y.next())$=v(b,m,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(m,U)}),xe&&Nr(m,O),C}function k(m,p,y,E){if(typeof y=="object"&&y!==null&&y.type===xo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ea:e:{for(var C=y.key,x=p;x!==null;){if(x.key===C){if(C=y.type,C===xo){if(x.tag===7){n(m,x.sibling),p=o(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&ly(C)===x.type){n(m,x.sibling),p=o(x,y.props),p.ref=bi(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===xo?(p=Br(y.props.children,m.mode,E,y.key),p.return=m,m=p):(E=Ua(y.type,y.key,y.props,null,m.mode,E),E.ref=bi(m,p,y),E.return=m,m=E)}return s(m);case So:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Vc(y,m.mode,E),p.return=m,m=p}return s(m);case nr:return x=y._init,k(m,p,x(y._payload),E)}if(Ii(y))return g(m,p,y,E);if(wi(y))return S(m,p,y,E);fa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return k}var Ko=R1(!0),N1=R1(!1),bl=Cr(null),Cl=null,To=null,Bp=null;function Dp(){Bp=To=Cl=null}function Fp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(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 Mo(e,t){Cl=e,Bp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function zp(e){jr===null?jr=[e]:jr.push(e)}function A1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(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 rr=!1;function Up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function P1(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 zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(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,$p(e,n)}}function uy(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,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 Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,S=a;switch(f=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function cy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function Y1(){return Ft().memoizedState}function PC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},X1(e))J1(t,n);else if(n=A1(e,t,n,r),n!==null){var o=st();rn(n,e,r,o),Z1(n,t,r)}}function jC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(X1(e))J1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,sn(a,s)){var l=t.interleaved;l===null?(o.next=o,zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=A1(e,t,o,r),n!==null&&(o=st(),rn(n,e,r,o),Z1(n,t,r))}}function X1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function J1(e,t){Qi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Z1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},LC={readContext:Dt,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:dy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,V1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=fn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fn();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=PC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:fy,useDebugValue:Yp,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=fy(!1),t=e[0];return e=AC.bind(null,e[1]),fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=fn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||M1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,dy(D1.bind(null,r,i,e),[e]),r.flags|=2048,ks(9,B1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=fn(),t=Fe.identifierPrefix;if(xe){var n=Bn,r=Mn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yn]=t,e[gs]=r,lw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return th(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function UC(e,t){switch(Lp(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(et),Hp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Dp(t.type._context),null;case 22:case 23:return th(),null;case 24:return null;default:return null}}var pa=!1,Ze=!1,WC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Ey=!1;function HC(e,t){if(qf=yl,e=m1(),Pp(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 s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,k=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Ey,Ey=!1,g}function Yi(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&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(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 dd(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 fw(e){var t=e.alternate;t!==null&&(e.alternate=null,fw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[gs],delete t[Jf],delete t[OC],delete t[$C])),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 dw(e){return e.tag===5||e.tag===3||e.tag===4}function ky(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dw(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 pd(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=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(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(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Jt=!1;function er(e,t,n){for(n=n.child;n!==null;)pw(e,t,n),n=n.sibling}function pw(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Ze||Ro(n,t);case 6:var r=He,o=Jt;He=null,er(e,t,n),He=r,Jt=o,He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),ps(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Jt,He=n.stateNode.containerInfo,Jt=!0,er(e,t,n),He=r,Jt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!Ze&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,er(e,t,n),Ze=r):er(e,t,n);break;default:er(e,t,n)}}function by(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new WC),t.forEach(function(r){var o=ZC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*KC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,te&6)throw Error(R(331));var o=te;for(te|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-Zp?Mr(e,0):Jp|=n),pt(e,t)}function xw(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Ms(e,t,n),pt(e,n))}function JC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xw(e,n)}function ZC(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(R(314))}r!==null&&r.delete(t),xw(e,n)}var Ew;Ew=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,FC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&O1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,et.current);Mo(t,n),o=Kp(null,t,r,e,o,n);var i=Gp();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,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zp(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&jp(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=tO(r),e=Xt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=wy(null,t,r,e,n);break e;case 11:t=vy(null,t,r,e,n);break e;case 14:t=gy(null,t,r,Xt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),wy(e,t,r,o,n);case 3:e:{if(iw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,A1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=Sy(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=Sy(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,en=null,n=R1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return P1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),ow(e,t),rt(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return sw(e,t,n);case 4:return Up(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),vy(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(sn(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=zn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),gy(e,t,r,o,n);case 15:return nw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),Z1(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return aw(e,t,n);case 22:return rw(e,t,n)}throw Error(R(156,t.tag))};function kw(e,t){return Y0(e,t)}function eO(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 It(e,t,n,r){return new eO(e,t,n,r)}function rh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tO(e){if(typeof e=="function")return rh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ep)return 11;if(e===kp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(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 Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")rh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case xp:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case P0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N0:s=10;break e;case A0:s=9;break e;case Ep:s=11;break e;case kp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=P0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nO(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=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function oh(e,t,n,r,o,i,s,a,l){return e=new nO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zp(i),e}function rO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($w)}catch{}}$w(),$0.exports=Ct;var _w=$0.exports;const Ir=si(_w),Ay={disabled:!1},Tw=ne.createContext(null);var lO=function(t){return t.scrollTop},Di="unmounted",or="exited",Pt="entering",In="entered",Yo="exiting",Jn=function(e){Wk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=In:r.unmountOnExit||r.mountOnEnter?l=Di:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Di?{status:or}: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 s=this.state.status;this.props.in?s!==Pt&&s!==In&&(i=Pt):(s===Pt||s===In)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&lO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Di})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||Ay.disabled){this.safeSetState({status:In},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||Ay.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},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,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Di)return null;var i=this.props,s=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 a=an(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(Tw.Provider,{value:null},typeof s=="function"?s(o,a):ne.cloneElement(ne.Children.only(s),a))},t}(ne.Component);Jn.contextType=Tw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Di;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=In;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function uO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function cO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Dn(e,t,n,r){return uO(e,t,n,r),function(){cO(e,t,n,r)}}function fO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function dO(e){var t=Fn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function pO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||fO(e,"transitionend",!0)},t+n),i=Dn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function hO(e,t,n,r){n==null&&(n=dO(e)||0);var o=pO(e,n,r),i=Dn(e,"transitionend",t);return function(){o(),i()}}function Py(e,t){const n=Fn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function lh(e,t){const n=Py(e,"transitionDuration"),r=Py(e,"transitionDelay"),o=hO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function $i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Rw(e){e.offsetHeight}const jy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function mO(e,t){const n=jy(e),r=jy(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>mO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const uh=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),v=x=>{f(Ll(x))},g=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(g(e),[e]),k=h.useCallback(g(t),[t]),m=h.useCallback(g(n),[n]),p=h.useCallback(g(r),[r]),y=h.useCallback(g(o),[o]),E=h.useCallback(g(i),[i]),C=h.useCallback(g(s),[s]);return w.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:m,onEntering:k,onExit:p,onExited:E,onExiting:y,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:v}):ne.cloneElement(a,{ref:v})})}),yO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function vO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=yO[e];return r+parseInt(Fn(t,o[0]),10)+parseInt(Fn(t,o[1]),10)}const gO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[In]:"collapse show"},bu=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:v=vO,...g},S)=>{const k=typeof a=="function"?a():a,m=h.useMemo(()=>$i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>$i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),y=h.useMemo(()=>$i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>$i(x=>{x.style[k]=`${v(k,x)}px`,Rw(x)},r),[r,v,k]),C=h.useMemo(()=>$i(x=>{x.style[k]=null},o),[k,o]);return w.jsx(uh,{ref:S,addEndListener:lh,...g,"aria-expanded":g.role?l:null,onEnter:m,onEntering:p,onEntered:y,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>ne.cloneElement(s,{...b,className:M(i,s.props.className,gO[x],k==="width"&&"collapse-horizontal")})})});function wO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=wO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const ch=e=>h.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:M(t.className,e)}));function Ly(){return h.useState(null)}function fh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function SO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const xO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",EO=typeof document<"u",Il=EO||xO?h.useLayoutEffect:h.useEffect,kO=["as","disabled"];function bO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function CO(e){return!e||e.trim()==="#"}function Nw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&CO(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const OO=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=bO(e,kO);const[i,{tagName:s}]=Nw(Object.assign({tagName:n,disabled:r},o));return w.jsx(s,Object.assign({},o,i,{ref:t}))});OO.displayName="Button";const $O={[Pt]:"show",[In]:"show"},Cs=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Rw(l),r==null||r(l,u)},[r]);return w.jsx(uh,{ref:i,addEndListener:lh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,$O[l],n[l])})})});Cs.displayName="Fade";const _O={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>w.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=_O;const Aw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return w.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Aw.displayName="Badge";const zs=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=Nw({tagName:e,disabled:i,...a}),f=d;return w.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});zs.displayName="Button";const dh=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));dh.displayName="CardBody";const Pw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),w.jsx(n,{ref:o,className:M(e,t),...r})));Pw.displayName="CardFooter";const jw=h.createContext(null);jw.displayName="CardHeaderContext";const Lw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return w.jsx(jw.Provider,{value:s,children:w.jsx(n,{ref:o,...r,className:M(t,i)})})});Lw.displayName="CardHeader";const Iw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return w.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});Iw.displayName="CardImg";const Mw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),w.jsx(n,{ref:o,className:M(e,t),...r})));Mw.displayName="CardImgOverlay";const Bw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),w.jsx(n,{ref:o,className:M(e,t),...r})));Bw.displayName="CardLink";const TO=ch("h6"),Dw=h.forwardRef(({className:e,bsPrefix:t,as:n=TO,...r},o)=>(t=z(t,"card-subtitle"),w.jsx(n,{ref:o,className:M(e,t),...r})));Dw.displayName="CardSubtitle";const Fw=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));Fw.displayName="CardText";const RO=ch("h5"),zw=h.forwardRef(({className:e,bsPrefix:t,as:n=RO,...r},o)=>(t=z(t,"card-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));zw.displayName="CardTitle";const Uw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return w.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?w.jsx(dh,{children:s}):s})});Uw.displayName="Card";const Do=Object.assign(Uw,{Img:Iw,Title:zw,Subtitle:Dw,Body:dh,Link:Bw,Text:Fw,Header:Lw,Footer:Pw,ImgOverlay:Mw});function NO(e){const t=h.useRef(e);return t.current=e,t}function Ww(e){const t=NO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Hw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Hw(e,t,n),xd)}function Vw(){const e=fh(),t=h.useRef();return Ww(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Hw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function AO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function PO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=x0(),i=E0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const v=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),f!=null&&a.push(`order${v}-${f}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const dn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=PO(e);return w.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});dn.displayName="Col";const Kw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return w.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Kw.displayName="Container";var jO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return jO(e.querySelectorAll(t))}var Iy=Object.prototype.hasOwnProperty;function My(e,t,n){for(n of e.keys())if(Zi(n,t))return n}function Zi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=My(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=My(t,o),!o)||!Zi(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Iy.call(e,n)&&++r&&!Iy.call(t,n)||!(n in t)||!Zi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function LO(e){const t=fh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",ph="auto",Us=[ht,zt,Ut,mt],Xo="start",Os="end",IO="clippingParents",Gw="viewport",_i="popper",MO="reference",By=Us.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+Os])},[]),qw=[].concat(Us,[ph]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+Os])},[]),BO="beforeRead",DO="read",FO="afterRead",zO="beforeMain",UO="main",WO="afterMain",HO="beforeWrite",VO="write",KO="afterWrite",GO=[BO,DO,FO,zO,UO,WO,HO,VO,KO];function wn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Sn(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){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 Qw(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Sn(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!Qw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function mh(e){var t=Zo(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 Yw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function qO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(hh(e)?e.host:null)||$r(e)}function Dy(e){return!Sn(e)||Gn(e).position==="fixed"?null:e.offsetParent}function QO(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Sn(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(hh(o)&&(o=o.host);Sn(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(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 Ws(e){for(var t=bt(e),n=Dy(e);n&&qO(n)&&Gn(n).position==="static";)n=Dy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||QO(e)||t}function yh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function es(e,t,n){return Dr(e,Ml(t,n))}function YO(e,t,n){var r=es(e,t,n);return r>n?n:r}function Xw(){return{top:0,right:0,bottom:0,left:0}}function Jw(e){return Object.assign({},Xw(),e)}function Zw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var XO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jw(typeof t!="number"?t:Zw(t,Us))};function JO(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=wn(n.placement),l=yh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=XO(o.padding,n),f=mh(i),v=l==="y"?ht:mt,g=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],m=Ws(i),p=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=S/2-k/2,E=d[v],C=p-f[c]-d[g],x=p/2-f[c]/2+y,b=es(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function ZO(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)||Yw(t.elements.popper,o)&&(t.elements.arrow=o))}const e2={name:"arrow",enabled:!0,phase:"main",fn:JO,effect:ZO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var t2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function n2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function Fy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,v=f===void 0?0:f,g=s.y,S=g===void 0?0:g,k=typeof c=="function"?c({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var m=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),y=mt,E=ht,C=window;if(u){var x=Ws(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===Os){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===Os){y=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];v-=$-r.width,v*=l?1:-1}}var A=Object.assign({position:a},u&&t2),U=c===!0?n2({x:v,y:S},bt(n)):{x:v,y:S};if(v=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[y]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[y]=m?v+"px":"",t.transform="",t))}function r2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:wn(t.placement),variation:ei(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,Fy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const o2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:r2,data:{}};var ya={passive:!0};function i2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ya)}),a&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ya)}),a&&l.removeEventListener("resize",n.update,ya)}}const s2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:i2,data:{}};var a2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return a2[t]})}var l2={start:"end",end:"start"};function zy(e){return e.replace(/start|end/g,function(t){return l2[t]})}function vh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function gh(e){return Zo($r(e)).left+vh(e).scrollLeft}function u2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Qw();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+gh(e),y:l}}function c2(e){var t,n=$r(e),r=vh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+gh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function wh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:Sn(e)&&wh(e)?e:eS(Ou(e))}function ts(e,t){var n;t===void 0&&(t=[]);var r=eS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],wh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ts(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f2(e,t){var n=Zo(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 Uy(e,t,n){return t===Gw?kd(u2(e,n)):Gr(t)?f2(t,n):kd(c2($r(e)))}function d2(e){var t=ts(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&Sn(e)?Ws(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&Yw(o,r)&&kr(o)!=="body"}):[]}function p2(e,t,n,r){var o=t==="clippingParents"?d2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Uy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Uy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function tS(e){var t=e.reference,n=e.element,r=e.placement,o=r?wn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?yh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Os:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function $s(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?IO:a,u=n.rootBoundary,c=u===void 0?Gw:u,d=n.elementContext,f=d===void 0?_i:d,v=n.altBoundary,g=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,m=Jw(typeof k!="number"?k:Zw(k,Us)),p=f===_i?MO:_i,y=e.rects.popper,E=e.elements[g?p:f],C=p2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=tS({reference:x,element:y,strategy:"absolute",placement:o}),O=kd(Object.assign({},y,b)),T=f===_i?O:x,$={top:C.top-T.top+m.top,bottom:T.bottom-C.bottom+m.bottom,left:C.left-T.left+m.left,right:T.right-C.right+m.right},A=e.modifiersData.offset;if(f===_i&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function h2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?qw:l,c=ei(r),d=c?a?By:By.filter(function(g){return ei(g)===c}):Us,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var v=f.reduce(function(g,S){return g[S]=$s(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[wn(S)],g},{});return Object.keys(v).sort(function(g,S){return v[g]-v[S]})}function m2(e){if(wn(e)===ph)return[];var t=Wa(e);return[zy(e),t,zy(t)]}function y2(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,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,S=n.allowedAutoPlacements,k=t.options.placement,m=wn(k),p=m===k,y=l||(p||!g?[Wa(k)]:m2(k)),E=[k].concat(y).reduce(function(X,re){return X.concat(wn(re)===ph?h2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=$s(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=g?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const v2={name:"flip",enabled:!0,phase:"main",fn:y2,requiresIfExists:["offset"],data:{_skip:!1}};function Wy(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 Hy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function g2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=$s(t,{elementContext:"reference"}),a=$s(t,{altBoundary:!0}),l=Wy(s,r),u=Wy(a,o,i),c=Hy(l),d=Hy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const w2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:g2};function S2(e,t,n){var r=wn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function x2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=qw.reduce(function(c,d){return c[d]=S2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const E2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:x2};function k2(e){var t=e.state,n=e.name;t.modifiersData[n]=tS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const b2={name:"popperOffsets",enabled:!0,phase:"read",fn:k2,data:{}};function C2(e){return e==="x"?"y":"x"}function O2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,v=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,k=$s(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=wn(t.placement),p=ei(t.placement),y=!p,E=yh(m),C=C2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=v?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=v&&ve?mh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xw(),ge=re[K],Me=re[W],qe=es(0,b[G],X[G]),_t=y?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,_n=y?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Tn=t.elements.arrow&&Ws(t.elements.arrow),Rn=Tn?E==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Rn,H=V+_n-Qe,Ue=es(v?Ml(_,de):_,V,v?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var nt,vt=E==="x"?ht:mt,vi=E==="x"?zt:Ut,we=x[C],Gt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[vi],Rr=[ht,mt].indexOf(m)!==-1,gi=(nt=A==null?void 0:A[C])!=null?nt:0,no=Rr?eo:we-b[Gt]-O[Gt]-gi+$.altAxis,Zn=Rr?we+b[Gt]+O[Gt]-gi-$.altAxis:to,N=v&&Rr?YO(no,we,Zn):es(v?no:eo,we,v?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const $2={name:"preventOverflow",enabled:!0,phase:"main",fn:O2,requiresIfExists:["offset"]};function _2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function T2(e){return e===bt(e)||!Sn(e)?vh(e):_2(e)}function R2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function N2(e,t,n){n===void 0&&(n=!1);var r=Sn(t),o=Sn(t)&&R2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||wh(i))&&(a=T2(t)),Sn(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=gh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function A2(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 s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function P2(e){var t=A2(e);return GO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function j2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function L2(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 Vy={placement:"bottom",modifiers:[],strategy:"absolute"};function Ky(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const F2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},z2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},U2=[];function W2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=U2}=n,a=D2(n,B2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,v]=LO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const m={},p={};Object.keys(k.elements).forEach(y=>{m[y]=k.styles[y],p[y]=k.attributes[y]}),v({state:k,styles:m,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,v]),S=h.useMemo(()=>(Zi(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,g,F2]})},[i,o,g,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=M2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,z2,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,v(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function _s(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var H2=function(){},V2=H2;const K2=si(V2),Gy=()=>{};function G2(e){return e.button===0}function q2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),qy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Q2(e,t=Gy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);K2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||q2(u)||!G2(u)||!!_s(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&_s(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Is(Ha(e)),f=d.defaultView||window;let v=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,g=null;qy[r]&&(g=Dn(d,qy[r],a,!0));const S=Dn(d,r,s,!0),k=Dn(d,r,p=>{if(p===v){v=void 0;return}l(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>Dn(p,"mousemove",Gy))),()=>{g==null||g(),S(),k(),m.forEach(p=>p())}},[e,n,r,s,a,l])}function Y2(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function X2(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function J2({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,v;const g=Y2(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:X2(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(c=g.preventOverflow)==null?void 0:c.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(v=g.arrow)==null?void 0:v.options,{element:a})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const Z2=h.createContext(null),e$="data-rr-ui-";function t$(e){return`${e$}${e}`}const nS=h.createContext(ku?window:void 0);nS.Provider;function Sh(){return h.useContext(nS)}const rS=h.createContext(null);rS.displayName="InputGroupContext";const ci=h.createContext(null);ci.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const oS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),w.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));oS.displayName="Image";const n$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>w.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=n$;const qn=h.createContext({}),Hs=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),w.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Hs.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),w.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const iS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:v="",type:g="checkbox",label:S,children:k,as:m="input",...p},y)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||AO(k,Bl),b=w.jsx(Hs,{...p,type:g==="switch"?"checkbox":g,ref:y,isValid:s,isInvalid:a,disabled:i,as:m});return w.jsx(qn.Provider,{value:C,children:w.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,g==="switch"&&n),children:k||w.jsxs(w.Fragment,{children:[b,x&&w.jsx(Bl,{title:v,children:S}),u&&w.jsx($u,{type:c,tooltip:l,children:u})]})})})});iS.displayName="FormCheck";const Dl=Object.assign(iS,{Input:Hs,Label:Bl}),sS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:v}=h.useContext(qn);return e=z(e,"form-control"),w.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||v,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});sS.displayName="FormControl";const r$=Object.assign(sS,{Feedback:$u}),aS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),w.jsx(n,{ref:o,className:M(e,t),...r})));aS.displayName="FormFloating";const xh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return w.jsx(qn.Provider,{value:o,children:w.jsx(t,{...n,ref:r})})});xh.displayName="FormGroup";const lS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?w.jsx(dn,{ref:a,as:"label",className:c,htmlFor:i,...s}):w.jsx(e,{ref:a,className:c,htmlFor:i,...s})});lS.displayName="FormLabel";const uS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),w.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});uS.displayName="FormRange";const cS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),w.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});cS.displayName="FormSelect";const fS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),w.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));fS.displayName="FormText";const dS=h.forwardRef((e,t)=>w.jsx(Dl,{...e,ref:t,type:"switch"}));dS.displayName="Switch";const o$=Object.assign(dS,{Input:Dl.Input,Label:Dl.Label}),pS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),w.jsxs(xh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,w.jsx("label",{htmlFor:r,children:o})]})));pS.displayName="FloatingLabel";const i$={_ref:pe.any,validated:pe.bool,as:pe.elementType},Eh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>w.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));Eh.displayName="Form";Eh.propTypes=i$;const ot=Object.assign(Eh,{Group:xh,Control:r$,Floating:aS,Check:Dl,Switch:o$,Label:lS,Text:fS,Range:uS,Select:cS,FloatingLabel:pS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const s$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"checkbox",...e})}),a$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"radio",...e})}),hS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return w.jsx(rS.Provider,{value:a,children:w.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});hS.displayName="InputGroup";const Un=Object.assign(hS,{Text:_u,Radio:a$,Checkbox:s$});function Gc(e){e===void 0&&(e=Is());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function l$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Qy=t$("modal-open");class kh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return l$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Fn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Qy,""),Fn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Qy),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Is()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=Sh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function u$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function mS(e){return e.code==="Escape"||e.keyCode===27}function c$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const f$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function d$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function p$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=d$(e,f$);const{major:c}=c$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),v=Yr(f,typeof l=="function"?null:d),g=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(g(t),[t]),k=h.useCallback(g(n),[n]),m=h.useCallback(g(r),[r]),p=h.useCallback(g(o),[o]),y=h.useCallback(g(i),[i]),E=h.useCallback(g(s),[s]),C=h.useCallback(g(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:m},o&&{onExit:p},i&&{onExiting:y},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:v})):h.cloneElement(l,{ref:v})})}const h$=["component"];function m$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const y$=h.forwardRef((e,t)=>{let{component:n}=e,r=m$(e,h$);const o=p$(r);return w.jsx(n,Object.assign({ref:t},o))});function v$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function g$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=v$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?w.jsx(y$,Object.assign({},n,{component:e})):t?w.jsx(g$,Object.assign({},n,{transition:t})):w.jsx(u$,Object.assign({},n))}const w$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function S$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function x$(e){return Qc||(Qc=new kh({ownerDocument:e==null?void 0:e.document})),Qc}function E$(e){const t=Sh(),n=e||x$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const yS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:v,runBackdropTransition:g,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:y,renderBackdrop:E=H=>w.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=S$(e,w$);const G=Sh(),V=bd(x),_=E$(C),I=fh(),F=SO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),_n.current=Dn(document,"keydown",qe),_t.current=Dn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const nt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&nt&&!_s(_.dialog,nt)&&(ve.current=nt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),_n.current==null||_n.current(),_t.current==null||_t.current(),m){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),Ww(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!_s(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&mS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),_n=h.useRef(),Tn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Rn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(Rn):w.jsx("div",Object.assign({},Rn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Tn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(v,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),w.jsx(w.Fragment,{children:Ir.createPortal(w.jsxs(w.Fragment,{children:[de,Qe]}),V)})});yS.displayName="Modal";const k$=Object.assign(yS,{Manager:kh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function b$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Yy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function C$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Yy(e.className,t):e.setAttribute("class",Yy(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class vS extends kh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,Fn(n,{[t]:`${parseFloat(Fn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Fn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(b$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();C$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function O$(e){return Yc||(Yc=new vS(e)),Yc}const gS=h.createContext({onHide(){}}),$$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(gS),l=it(()=>{a==null||a.onHide(),r==null||r()});return w.jsxs("div",{ref:s,...i,children:[o,n&&w.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),wS=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return w.jsx(i,{...r,ref:o,className:M(t,e)})});wS.displayName="NavbarBrand";const SS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(ci);return w.jsx(bu,{in:!!(o&&o.expanded),...n,children:w.jsx("div",{ref:r,className:t,children:e})})});SS.displayName="NavbarCollapse";const xS=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(ci)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),w.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||w.jsx("span",{className:`${e}-icon`})})});xS.displayName="NavbarToggle";const $d=new WeakMap,Xy=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function _$(e,t=typeof window>"u"?void 0:window){const n=Xy(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=Xy(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function T$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[v,g])=>((g==="up"||g===!0)&&(f=n(f,i(v))),(g==="down"||g===!0)&&(f=n(f,o(v))),f),""),[JSON.stringify(c)]);return _$(d,u)}return s}const R$=T$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),ES=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));ES.displayName="OffcanvasBody";const N$={[Pt]:"show",[In]:"show"},kS=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),w.jsx(uh,{ref:l,addEndListener:lh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,N$[u])})})));kS.displayName="OffcanvasToggling";const bS=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),w.jsx($$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));bS.displayName="OffcanvasHeader";const A$=ch("h5"),CS=h.forwardRef(({className:e,bsPrefix:t,as:n=A$,...r},o)=>(t=z(t,"offcanvas-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));CS.displayName="OffcanvasTitle";function P$(e){return w.jsx(kS,{...e})}function j$(e){return w.jsx(Cs,{...e})}const OS=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:v,autoFocus:g=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:m,onEntered:p,onExit:y,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(ci)||{},[W,G]=h.useState(!1),V=R$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new vS({handleContainerOverflow:!1})),B.current):O$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>w.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>w.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return w.jsxs(w.Fragment,{children:[!W&&(i||$)&&X({}),w.jsx(gS.Provider,{value:I,children:w.jsx(k$,{show:W,ref:U,backdrop:a,container:v,keyboard:l,autoFocus:g,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:y,onExiting:E,onExited:Z,manager:F(),transition:P$,backdropTransition:j$,renderBackdrop:ve,renderDialog:X})})]})});OS.displayName="Offcanvas";const Fi=Object.assign(OS,{Body:ES,Header:bS,Title:CS}),$S=h.forwardRef((e,t)=>{const n=h.useContext(ci);return w.jsx(Fi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});$S.displayName="NavbarOffcanvas";const _S=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_S.displayName="NavbarText";const TS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:v=!1,...g}=Uk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...y)=>{f==null||f(...y),v&&c&&(d==null||d(!1))},[f,v,c,d]);g.role===void 0&&u!=="nav"&&(g.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return w.jsx(ci.Provider,{value:p,children:w.jsx(Z2.Provider,{value:k,children:w.jsx(u,{ref:t,...g,className:M(l,S,r&&m,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});TS.displayName="Navbar";const Xc=Object.assign(TS,{Brand:wS,Collapse:SS,Offcanvas:$S,Text:_S,Toggle:xS}),L$=()=>{};function I$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||L$;Q2(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{mS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Is(Ha(e));let a=(s.defaultView||window).event;const l=Dn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const RS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=Ly(),[d,f]=Ly(),v=Yr(c,t),g=bd(e.container),S=bd(e.target),[k,m]=h.useState(!e.show),p=W2(S,u,J2({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&m(!1);const y=(...A)=>{m(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(I$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:v}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:y,onEnter:b,onEntering:O,onEntered:T}),g?Ir.createPortal($,g):null});RS.displayName="Overlay";const NS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),w.jsx(n,{ref:o,className:M(e,t),...r})));NS.displayName="PopoverHeader";const bh=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));bh.displayName="PopoverBody";function AS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function PS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const M$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),v=k0(),[g]=(t==null?void 0:t.split("-"))||[],S=AS(g,v);let k=r;return u&&!a&&(k={...r,...PS(l==null?void 0:l.strategy)}),w.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":g,className:M(n,f,g&&`bs-popover-${S}`),...c,children:[w.jsx("div",{className:"popover-arrow",...s}),i?w.jsx(bh,{children:o}):o]})}),B$=Object.assign(M$,{Header:NS,Body:bh,POPPER_OFFSET:[0,8]}),jS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=k0(),[f]=(t==null?void 0:t.split("-"))||[],v=AS(f,d);let g=r;return l&&!s&&(g={...r,...PS(a==null?void 0:a.strategy)}),w.jsxs("div",{ref:c,style:g,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${v}`),...u,children:[w.jsx("div",{className:"tooltip-arrow",...i}),w.jsx("div",{className:`${e}-inner`,children:o})]})});jS.displayName="Tooltip";const LS=Object.assign(jS,{TOOLTIP_OFFSET:[0,6]});function D$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return B$.POPPER_OFFSET;if(Od(t.current,r))return LS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function F$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const IS=h.forwardRef(({children:e,transition:t=Cs,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=D$(s.offset),v=Yr(a,d),g=t===!0?Cs:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),w.jsx(RS,{...s,ref:v,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:g,rootClose:r,placement:o,show:i,children:(k,{arrowProps:m,popper:p,show:y})=>{var E;F$(k,m);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:y,...!t&&y&&{className:"show"},popper:x,arrowProps:m,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:m,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&y&&"show"),style:{...e.props.style,...k.style}})}})});IS.displayName="Overlay";function z$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Jy(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!_s(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const U$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),v=Vw(),g=h.useRef(""),[S,k]=S0(o,i,s),m=z$(a),{onFocus:p,onBlur:y,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(v.clear(),g.current="show",!m.show){k(!0);return}v.set(()=>{g.current==="show"&&k(!0)},m.show)},[m.show,k,v]),b=h.useCallback(()=>{if(v.clear(),g.current="hide",!m.hide){k(!1);return}v.set(()=>{g.current==="hide"&&k(!1)},m.hide)},[m.hide,k,v]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),y==null||y(...W)},[b,y]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{Jy(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{Jy(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),w.jsxs(w.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),w.jsx(IS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=x0(),a=E0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const v=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${v}-${f}`)}),w.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const MS=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return w.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});MS.displayName="Spinner";const W$={[Pt]:"showing",[Yo]:"showing show"},BS=h.forwardRef((e,t)=>w.jsx(Cs,{...e,ref:t,transitionClasses:W$}));BS.displayName="ToastFade";const DS=h.createContext({onClose(){}}),FS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(DS),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return w.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&w.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});FS.displayName="ToastHeader";const zS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));zS.displayName="ToastBody";const US=h.forwardRef(({bsPrefix:e,className:t,transition:n=BS,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:v,bg:g,...S},k)=>{e=z(e,"toast");const m=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{m.current=i,p.current=a},[i,a]);const y=Vw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{y.set(C,m.current)},[y,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=w.jsx("div",{...S,ref:k,className:M(e,t,g&&`bg-${g}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return w.jsx(DS.Provider,{value:x,children:b&&n?w.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:O}):O})});US.displayName="Toast";const ns=Object.assign(US,{Body:zS,Header:FS}),H$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},Ch=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),w.jsx(o,{ref:s,...i,className:M(e,t&&H$[t],n&&`position-${n}`,r)})));Ch.displayName="ToastContainer";const V$=()=>{},Oh=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),w.jsxs(w.Fragment,{children:[w.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||V$,id:l}),w.jsx(zs,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));Oh.displayName="ToggleButton";const bn=Object.create(null);bn.open="0";bn.close="1";bn.ping="2";bn.pong="3";bn.message="4";bn.upgrade="5";bn.noop="6";const Va=Object.create(null);Object.keys(bn).forEach(e=>{Va[bn[e]]=e});const _d={type:"error",data:"parser error"},WS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",HS=typeof ArrayBuffer=="function",VS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,$h=({type:e,data:t},n,r)=>WS&&t instanceof Blob?n?r(t):Zy(t,r):HS&&(t instanceof ArrayBuffer||VS(t))?n?r(t):Zy(new Blob([t]),r):r(bn[e]+(t||"")),Zy=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function ev(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function K$(e,t){if(WS&&e.data instanceof Blob)return e.data.arrayBuffer().then(ev).then(t);if(HS&&(e.data instanceof ArrayBuffer||VS(e.data)))return t(ev(e.data));$h(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const tv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},q$=typeof ArrayBuffer=="function",_h=(e,t)=>{if(typeof e!="string")return{type:"message",data:KS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Q$(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},Q$=(e,t)=>{if(q$){const n=G$(e);return KS(n,t)}else return{base64:!0,data:e}},KS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},GS="",Y$=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{$h(i,!1,a=>{r[s]=a,++o===n&&t(r.join(GS))})})},X$=(e,t)=>{const n=e.split(GS),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 Zc;function va(e){return e.reduce((t,n)=>t+n.length,0)}function ga(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){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(va(n)e){a.enqueue(_d);break}}}})}const qS=4;function je(e){if(e)return e_(e)}function e_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.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 t_=jt.setTimeout,n_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=t_.bind(jt),e.clearTimeoutFn=n_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const r_=1.33;function o_(e){return typeof e=="string"?i_(e):Math.ceil((e.byteLength||e.size)*r_)}function i_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function s_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function a_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function XS(){const e=ov(+new Date);return e!==rv?(nv=0,rv=e):e+"."+ov(nv++)}for(;wa{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)};X$(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,Y$(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]=XS()),!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 xn(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}}class xn extends je{constructor(t,n){super(),Tu(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=QS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new ZS(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=xn.requestsCount++,xn.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=f_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete xn.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()}}xn.requestsCount=0;xn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",iv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,iv,!1)}}function iv(){for(let e in xn.requests)xn.requests.hasOwnProperty(e)&&xn.requests[e].abort()}const Rh=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Sa=jt.WebSocket||jt.MozWebSocket,sv=!0,h_="arraybuffer",av=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class m_ extends Th{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=av?{}:QS(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=sv&&!av?n?new Sa(t,n):new Sa(t):new Sa(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 s={};try{sv&&this.ws.send(i)}catch{}o&&Rh(()=>{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]=XS()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Sa}}class y_ extends Th{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=Z$(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=J$();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Rh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const v_={websocket:m_,webtransport:y_,polling:p_},g_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,w_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(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=g_.exec(e||""),i={},s=14;for(;s--;)i[w_[s]]=o[s]||"";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=S_(i,i.path),i.queryKey=x_(i,i.query),i}function S_(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 x_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let ex=class vo extends je{constructor(t,n={}){super(),this.binaryType=h_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(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=Rd(n.host).host),Tu(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=a_(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=qS,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 v_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.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;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.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){vo.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,tx=Object.prototype.toString,C_=typeof Blob=="function"||typeof Blob<"u"&&tx.call(Blob)==="[object BlobConstructor]",O_=typeof File=="function"||typeof File<"u"&&tx.call(File)==="[object FileConstructor]";function Nh(e){return k_&&(e instanceof ArrayBuffer||b_(e))||C_&&e instanceof Blob||O_&&e instanceof File}function Ka(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 a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);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:J.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 J.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 J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.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:J.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:J.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}fi.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};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(e){this.ms=e};fi.prototype.setMax=function(e){this.max=e};fi.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{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,Tu(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 fi({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||P_;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 ex(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Zt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zt(t,"ping",this.onping.bind(this)),Zt(t,"data",this.ondata.bind(this)),Zt(t,"error",this.onerror.bind(this)),Zt(t,"close",this.onclose.bind(this)),Zt(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){Rh(()=>{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 nx(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 Ti={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=E_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ti[o]&&i in Ti[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ti[o]||(Ti[o]=new Pd(r,t)),l=Ti[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:nx,io:Ga,connect:Ga});const rx=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},L_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&rx(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},I_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=rx(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},Ui=window.location.hostname,Wi=window.location.port,M_=`ws://${Ui}:${Wi}/`,Ln=Ga(M_,{path:"/ws/socket.io",transports:["websocket"]}),B_=(e,t)=>{t?Ln.emit("update_value",{access_path:e.full_access_path,value:e},t):Ln.emit("update_value",{access_path:e.full_access_path,value:e})},ox=(e,t=[],n={},r)=>{const o=L_(t),i=I_(n);Ln.emit("trigger_method",{access_path:e,args:o,kwargs:i})},ix=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return w.jsx(Ch,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?w.jsxs(ns,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[w.jsxs(ns.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[w.jsx("strong",{className:"me-auto",children:o.levelname}),w.jsx("small",{children:o.timeStamp})]}),w.jsx(ns.Body,{children:o.message})]},o.id):null)})});ix.displayName="Notifications";const jd=ne.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return w.jsx(Ch,{position:"bottom-center",className:"toastContainer",children:w.jsx(ns,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:w.jsxs(ns.Body,{className:"d-flex justify-content-between",children:[i,w.jsx(zs,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function sx(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function D_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function F_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(cv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=cv(),e[t];throw new Error(`Key not found: ${t}`)}}function uv(e,t,n=!1){const r=D_(t);try{return F_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function z_(e,t,n){const r=sx(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=w.jsx(LS,{id:"tooltip",children:t});return w.jsx(U$,{placement:"bottom",overlay:n,children:w.jsx(Aw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});ln.displayName="DocStringComponent";function Cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const lx=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return w.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,w.jsxs(Oh,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,w.jsx(ln,{docString:o})]})]})});lx.displayName="ButtonComponent";const U_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},H_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{if(e==="."&&t.includes("."))return{value:t,selectionStart:n};let o=t;return r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1}},zl=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,v]=h.useState(null),[g,S]=h.useState(n.toString());Cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y==="-")if(O===0&&!x.startsWith("-"))T="-"+x,O++;else if(x.startsWith("-")&&O===1)T=x.substring(1),O--;else return;else if(y>="0"&&y<="9")({value:T,selectionStart:O}=fv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=fv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=U_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=W_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=H_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),v(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(g),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(g):parseFloat(g);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),w.jsxs("div",{className:"component numberComponent",id:d,children:[!1,w.jsxs(Un,{children:[c&&w.jsxs(Un.Text,{children:[c,w.jsx(ln,{docString:i})]}),w.jsx(ot.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&w.jsx(Un.Text,{children:a})]})]})});zl.displayName="NumberComponent";const Ts={black:"#000",white:"#fff"},lo={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"},uo={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"},co={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"},fo={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"},po={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"},Ri={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"},V_={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?Ve(di,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||As(Ae)>3?"":" "}function uT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Vs(e,qa()+(t<6&&En()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function cT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&En()===47)break;return"/*"+Vs(t,yt-1)+"*"+Ru(e===47?e:Et())}function fT(e){for(;!As(En());)Et();return Vs(e,yt)}function dT(e){return mx(Ya("",null,null,null,[""],e=hx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(g=p,p=Et()){case 40:if(g!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=lT(g);break;case 92:b+=uT(qa()-1,7);continue;case 47:switch(En()){case 42:case 47:xa(pT(cT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=pn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),v>0&&pn(b)-d&&xa(v>32?pv(b+";",r,n,d-1):pv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=dv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(dv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=v=0,S=m=1,y=b="",d=s;break;case 58:d=1+pn(b),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&aT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(pn(b)-1)*m,m=1;break;case 64:En()===45&&(b+=Qa(Et())),f=En(),c=d=pn(y=b+=fT(qa())),p++;break;case 45:g===45&&pn(b)==2&&(S=0)}}return i}function dv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Lh(f),g=0,S=0,k=0;g0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?Ph:a,l,u,c)}function pT(e,t,n){return Au(e,t,n,cx,Ru(sT()),Ns(e,2,-2),0)}function pv(e,t,n,r){return Au(e,t,n,jh,Ns(e,0,r),Ns(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Lh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?yx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,pn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var ET=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case jh:t.return=yx(t.value,t.length);break;case fx:return Fo([Ni(t,{value:ae(t.value,"@","@"+se)})],o);case Ph:if(t.length)return iT(t.props,function(i){switch(oT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ni(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ni(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},kT=[ET],vx=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(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||kT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yn]=t,e[gs]=r,uw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return nh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function WC(e,t){switch(Ip(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(et),Vp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var pa=!1,Ze=!1,HC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var ky=!1;function VC(e,t){if(qf=yl,e=y1(),jp(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 s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,k=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=ky,ky=!1,g}function Yi(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&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(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 dd(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 dw(e){var t=e.alternate;t!==null&&(e.alternate=null,dw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[gs],delete t[Jf],delete t[$C],delete t[_C])),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 pw(e){return e.tag===5||e.tag===3||e.tag===4}function by(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pw(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 pd(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=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(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(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Jt=!1;function er(e,t,n){for(n=n.child;n!==null;)hw(e,t,n),n=n.sibling}function hw(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Ze||Ro(n,t);case 6:var r=He,o=Jt;He=null,er(e,t,n),He=r,Jt=o,He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),ps(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Jt,He=n.stateNode.containerInfo,Jt=!0,er(e,t,n),He=r,Jt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!Ze&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,er(e,t,n),Ze=r):er(e,t,n);break;default:er(e,t,n)}}function Cy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new HC),t.forEach(function(r){var o=eO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*GC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,te&6)throw Error(R(331));var o=te;for(te|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-eh?Mr(e,0):Zp|=n),pt(e,t)}function Ew(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Ms(e,t,n),pt(e,n))}function ZC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ew(e,n)}function eO(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(R(314))}r!==null&&r.delete(t),Ew(e,n)}var kw;kw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,zC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&$1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,et.current);Mo(t,n),o=Gp(null,t,r,e,o,n);var i=qp();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,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Up(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Lp(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=nO(r),e=Xt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=Sy(null,t,r,e,n);break e;case 11:t=gy(null,t,r,e,n);break e;case 14:t=wy(null,t,r,Xt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Sy(e,t,r,o,n);case 3:e:{if(sw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,P1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=xy(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=xy(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,en=null,n=N1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return j1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),iw(e,t),rt(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return aw(e,t,n);case 4:return Wp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),gy(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(sn(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=zn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),wy(e,t,r,o,n);case 15:return rw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),ew(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return lw(e,t,n);case 22:return ow(e,t,n)}throw Error(R(156,t.tag))};function bw(e,t){return X0(e,t)}function tO(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 It(e,t,n,r){return new tO(e,t,n,r)}function oh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nO(e){if(typeof e=="function")return oh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kp)return 11;if(e===bp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(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 Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")oh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case Ep:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case j0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A0:s=10;break e;case P0:s=9;break e;case kp:s=11;break e;case bp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=j0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rO(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=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ih(e,t,n,r,o,i,s,a,l){return e=new rO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Up(i),e}function oO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_w)}catch{}}_w(),_0.exports=Ct;var Tw=_0.exports;const Ir=si(Tw),Py={disabled:!1},Rw=ne.createContext(null);var uO=function(t){return t.scrollTop},Di="unmounted",or="exited",Pt="entering",In="entered",Yo="exiting",Jn=function(e){Hk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=In:r.unmountOnExit||r.mountOnEnter?l=Di:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Di?{status:or}: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 s=this.state.status;this.props.in?s!==Pt&&s!==In&&(i=Pt):(s===Pt||s===In)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&uO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Di})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||Py.disabled){this.safeSetState({status:In},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||Py.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},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,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Di)return null;var i=this.props,s=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 a=an(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(Rw.Provider,{value:null},typeof s=="function"?s(o,a):ne.cloneElement(ne.Children.only(s),a))},t}(ne.Component);Jn.contextType=Rw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Di;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=In;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function cO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function fO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Dn(e,t,n,r){return cO(e,t,n,r),function(){fO(e,t,n,r)}}function dO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function pO(e){var t=Fn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function hO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||dO(e,"transitionend",!0)},t+n),i=Dn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function mO(e,t,n,r){n==null&&(n=pO(e)||0);var o=hO(e,n,r),i=Dn(e,"transitionend",t);return function(){o(),i()}}function jy(e,t){const n=Fn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function uh(e,t){const n=jy(e,"transitionDuration"),r=jy(e,"transitionDelay"),o=mO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function $i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Nw(e){e.offsetHeight}const Ly=e=>!e||typeof e=="function"?e:t=>{e.current=t};function yO(e,t){const n=Ly(e),r=Ly(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>yO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const ch=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),v=x=>{f(Ll(x))},g=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(g(e),[e]),k=h.useCallback(g(t),[t]),m=h.useCallback(g(n),[n]),p=h.useCallback(g(r),[r]),y=h.useCallback(g(o),[o]),E=h.useCallback(g(i),[i]),C=h.useCallback(g(s),[s]);return w.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:m,onEntering:k,onExit:p,onExited:E,onExiting:y,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:v}):ne.cloneElement(a,{ref:v})})}),vO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function gO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=vO[e];return r+parseInt(Fn(t,o[0]),10)+parseInt(Fn(t,o[1]),10)}const wO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[In]:"collapse show"},bu=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:v=gO,...g},S)=>{const k=typeof a=="function"?a():a,m=h.useMemo(()=>$i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>$i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),y=h.useMemo(()=>$i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>$i(x=>{x.style[k]=`${v(k,x)}px`,Nw(x)},r),[r,v,k]),C=h.useMemo(()=>$i(x=>{x.style[k]=null},o),[k,o]);return w.jsx(ch,{ref:S,addEndListener:uh,...g,"aria-expanded":g.role?l:null,onEnter:m,onEntering:p,onEntered:y,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>ne.cloneElement(s,{...b,className:M(i,s.props.className,wO[x],k==="width"&&"collapse-horizontal")})})});function SO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=SO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fh=e=>h.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:M(t.className,e)}));function Iy(){return h.useState(null)}function dh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function xO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const EO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",kO=typeof document<"u",Il=kO||EO?h.useLayoutEffect:h.useEffect,bO=["as","disabled"];function CO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function OO(e){return!e||e.trim()==="#"}function Aw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&OO(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const $O=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=CO(e,bO);const[i,{tagName:s}]=Aw(Object.assign({tagName:n,disabled:r},o));return w.jsx(s,Object.assign({},o,i,{ref:t}))});$O.displayName="Button";const _O={[Pt]:"show",[In]:"show"},Cs=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Nw(l),r==null||r(l,u)},[r]);return w.jsx(ch,{ref:i,addEndListener:uh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,_O[l],n[l])})})});Cs.displayName="Fade";const TO={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>w.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=TO;const Pw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return w.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Pw.displayName="Badge";const zs=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=Aw({tagName:e,disabled:i,...a}),f=d;return w.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});zs.displayName="Button";const ph=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));ph.displayName="CardBody";const jw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),w.jsx(n,{ref:o,className:M(e,t),...r})));jw.displayName="CardFooter";const Lw=h.createContext(null);Lw.displayName="CardHeaderContext";const Iw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return w.jsx(Lw.Provider,{value:s,children:w.jsx(n,{ref:o,...r,className:M(t,i)})})});Iw.displayName="CardHeader";const Mw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return w.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});Mw.displayName="CardImg";const Bw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),w.jsx(n,{ref:o,className:M(e,t),...r})));Bw.displayName="CardImgOverlay";const Dw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),w.jsx(n,{ref:o,className:M(e,t),...r})));Dw.displayName="CardLink";const RO=fh("h6"),Fw=h.forwardRef(({className:e,bsPrefix:t,as:n=RO,...r},o)=>(t=z(t,"card-subtitle"),w.jsx(n,{ref:o,className:M(e,t),...r})));Fw.displayName="CardSubtitle";const zw=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));zw.displayName="CardText";const NO=fh("h5"),Uw=h.forwardRef(({className:e,bsPrefix:t,as:n=NO,...r},o)=>(t=z(t,"card-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));Uw.displayName="CardTitle";const Ww=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return w.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?w.jsx(ph,{children:s}):s})});Ww.displayName="Card";const Do=Object.assign(Ww,{Img:Mw,Title:Uw,Subtitle:Fw,Body:ph,Link:Dw,Text:zw,Header:Iw,Footer:jw,ImgOverlay:Bw});function AO(e){const t=h.useRef(e);return t.current=e,t}function Hw(e){const t=AO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Vw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Vw(e,t,n),xd)}function Kw(){const e=dh(),t=h.useRef();return Hw(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Vw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function PO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function jO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=E0(),i=k0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const v=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),f!=null&&a.push(`order${v}-${f}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const dn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=jO(e);return w.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});dn.displayName="Col";const Gw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return w.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Gw.displayName="Container";var LO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return LO(e.querySelectorAll(t))}var My=Object.prototype.hasOwnProperty;function By(e,t,n){for(n of e.keys())if(Zi(n,t))return n}function Zi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=By(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=By(t,o),!o)||!Zi(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(My.call(e,n)&&++r&&!My.call(t,n)||!(n in t)||!Zi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function IO(e){const t=dh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",hh="auto",Us=[ht,zt,Ut,mt],Xo="start",Os="end",MO="clippingParents",qw="viewport",_i="popper",BO="reference",Dy=Us.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+Os])},[]),Qw=[].concat(Us,[hh]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+Os])},[]),DO="beforeRead",FO="read",zO="afterRead",UO="beforeMain",WO="main",HO="afterMain",VO="beforeWrite",KO="write",GO="afterWrite",qO=[DO,FO,zO,UO,WO,HO,VO,KO,GO];function wn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Sn(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){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 Yw(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Sn(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!Yw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function yh(e){var t=Zo(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 Xw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function QO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(mh(e)?e.host:null)||$r(e)}function Fy(e){return!Sn(e)||Gn(e).position==="fixed"?null:e.offsetParent}function YO(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Sn(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(mh(o)&&(o=o.host);Sn(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(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 Ws(e){for(var t=bt(e),n=Fy(e);n&&QO(n)&&Gn(n).position==="static";)n=Fy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||YO(e)||t}function vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function es(e,t,n){return Dr(e,Ml(t,n))}function XO(e,t,n){var r=es(e,t,n);return r>n?n:r}function Jw(){return{top:0,right:0,bottom:0,left:0}}function Zw(e){return Object.assign({},Jw(),e)}function eS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var JO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zw(typeof t!="number"?t:eS(t,Us))};function ZO(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=wn(n.placement),l=vh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=JO(o.padding,n),f=yh(i),v=l==="y"?ht:mt,g=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],m=Ws(i),p=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=S/2-k/2,E=d[v],C=p-f[c]-d[g],x=p/2-f[c]/2+y,b=es(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function e2(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)||Xw(t.elements.popper,o)&&(t.elements.arrow=o))}const t2={name:"arrow",enabled:!0,phase:"main",fn:ZO,effect:e2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var n2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function r2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function zy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,v=f===void 0?0:f,g=s.y,S=g===void 0?0:g,k=typeof c=="function"?c({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var m=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),y=mt,E=ht,C=window;if(u){var x=Ws(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===Os){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===Os){y=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];v-=$-r.width,v*=l?1:-1}}var A=Object.assign({position:a},u&&n2),U=c===!0?r2({x:v,y:S},bt(n)):{x:v,y:S};if(v=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[y]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[y]=m?v+"px":"",t.transform="",t))}function o2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:wn(t.placement),variation:ei(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,zy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const i2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:o2,data:{}};var ya={passive:!0};function s2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ya)}),a&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ya)}),a&&l.removeEventListener("resize",n.update,ya)}}const a2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:s2,data:{}};var l2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return l2[t]})}var u2={start:"end",end:"start"};function Uy(e){return e.replace(/start|end/g,function(t){return u2[t]})}function gh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wh(e){return Zo($r(e)).left+gh(e).scrollLeft}function c2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Yw();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wh(e),y:l}}function f2(e){var t,n=$r(e),r=gh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Sh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function tS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:Sn(e)&&Sh(e)?e:tS(Ou(e))}function ts(e,t){var n;t===void 0&&(t=[]);var r=tS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],Sh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ts(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function d2(e,t){var n=Zo(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 Wy(e,t,n){return t===qw?kd(c2(e,n)):Gr(t)?d2(t,n):kd(f2($r(e)))}function p2(e){var t=ts(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&Sn(e)?Ws(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&Xw(o,r)&&kr(o)!=="body"}):[]}function h2(e,t,n,r){var o=t==="clippingParents"?p2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Wy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Wy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function nS(e){var t=e.reference,n=e.element,r=e.placement,o=r?wn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?vh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Os:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function $s(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?MO:a,u=n.rootBoundary,c=u===void 0?qw:u,d=n.elementContext,f=d===void 0?_i:d,v=n.altBoundary,g=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,m=Zw(typeof k!="number"?k:eS(k,Us)),p=f===_i?BO:_i,y=e.rects.popper,E=e.elements[g?p:f],C=h2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=nS({reference:x,element:y,strategy:"absolute",placement:o}),O=kd(Object.assign({},y,b)),T=f===_i?O:x,$={top:C.top-T.top+m.top,bottom:T.bottom-C.bottom+m.bottom,left:C.left-T.left+m.left,right:T.right-C.right+m.right},A=e.modifiersData.offset;if(f===_i&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function m2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Qw:l,c=ei(r),d=c?a?Dy:Dy.filter(function(g){return ei(g)===c}):Us,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var v=f.reduce(function(g,S){return g[S]=$s(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[wn(S)],g},{});return Object.keys(v).sort(function(g,S){return v[g]-v[S]})}function y2(e){if(wn(e)===hh)return[];var t=Wa(e);return[Uy(e),t,Uy(t)]}function v2(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,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,S=n.allowedAutoPlacements,k=t.options.placement,m=wn(k),p=m===k,y=l||(p||!g?[Wa(k)]:y2(k)),E=[k].concat(y).reduce(function(X,re){return X.concat(wn(re)===hh?m2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=$s(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=g?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const g2={name:"flip",enabled:!0,phase:"main",fn:v2,requiresIfExists:["offset"],data:{_skip:!1}};function Hy(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 Vy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function w2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=$s(t,{elementContext:"reference"}),a=$s(t,{altBoundary:!0}),l=Hy(s,r),u=Hy(a,o,i),c=Vy(l),d=Vy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const S2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:w2};function x2(e,t,n){var r=wn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function E2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Qw.reduce(function(c,d){return c[d]=x2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const k2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:E2};function b2(e){var t=e.state,n=e.name;t.modifiersData[n]=nS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const C2={name:"popperOffsets",enabled:!0,phase:"read",fn:b2,data:{}};function O2(e){return e==="x"?"y":"x"}function $2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,v=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,k=$s(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=wn(t.placement),p=ei(t.placement),y=!p,E=vh(m),C=O2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=v?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=v&&ve?yh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Jw(),ge=re[K],Me=re[W],qe=es(0,b[G],X[G]),_t=y?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,_n=y?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Tn=t.elements.arrow&&Ws(t.elements.arrow),Rn=Tn?E==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Rn,H=V+_n-Qe,Ue=es(v?Ml(_,de):_,V,v?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var nt,vt=E==="x"?ht:mt,vi=E==="x"?zt:Ut,we=x[C],Gt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[vi],Rr=[ht,mt].indexOf(m)!==-1,gi=(nt=A==null?void 0:A[C])!=null?nt:0,no=Rr?eo:we-b[Gt]-O[Gt]-gi+$.altAxis,Zn=Rr?we+b[Gt]+O[Gt]-gi-$.altAxis:to,N=v&&Rr?XO(no,we,Zn):es(v?no:eo,we,v?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const _2={name:"preventOverflow",enabled:!0,phase:"main",fn:$2,requiresIfExists:["offset"]};function T2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function R2(e){return e===bt(e)||!Sn(e)?gh(e):T2(e)}function N2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function A2(e,t,n){n===void 0&&(n=!1);var r=Sn(t),o=Sn(t)&&N2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||Sh(i))&&(a=R2(t)),Sn(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function P2(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 s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function j2(e){var t=P2(e);return qO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function L2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function I2(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 Ky={placement:"bottom",modifiers:[],strategy:"absolute"};function Gy(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const z2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},U2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},W2=[];function H2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=W2}=n,a=F2(n,D2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,v]=IO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const m={},p={};Object.keys(k.elements).forEach(y=>{m[y]=k.styles[y],p[y]=k.attributes[y]}),v({state:k,styles:m,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,v]),S=h.useMemo(()=>(Zi(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,g,z2]})},[i,o,g,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=B2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,U2,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,v(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function _s(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var V2=function(){},K2=V2;const G2=si(K2),qy=()=>{};function q2(e){return e.button===0}function Q2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),Qy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Y2(e,t=qy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);G2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||Q2(u)||!q2(u)||!!_s(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&_s(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Is(Ha(e)),f=d.defaultView||window;let v=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,g=null;Qy[r]&&(g=Dn(d,Qy[r],a,!0));const S=Dn(d,r,s,!0),k=Dn(d,r,p=>{if(p===v){v=void 0;return}l(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>Dn(p,"mousemove",qy))),()=>{g==null||g(),S(),k(),m.forEach(p=>p())}},[e,n,r,s,a,l])}function X2(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function J2(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Z2({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,v;const g=X2(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:J2(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(c=g.preventOverflow)==null?void 0:c.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(v=g.arrow)==null?void 0:v.options,{element:a})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const e$=h.createContext(null),t$="data-rr-ui-";function n$(e){return`${t$}${e}`}const rS=h.createContext(ku?window:void 0);rS.Provider;function xh(){return h.useContext(rS)}const oS=h.createContext(null);oS.displayName="InputGroupContext";const ci=h.createContext(null);ci.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const iS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),w.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));iS.displayName="Image";const r$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>w.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=r$;const qn=h.createContext({}),Hs=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),w.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Hs.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),w.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const sS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:v="",type:g="checkbox",label:S,children:k,as:m="input",...p},y)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||PO(k,Bl),b=w.jsx(Hs,{...p,type:g==="switch"?"checkbox":g,ref:y,isValid:s,isInvalid:a,disabled:i,as:m});return w.jsx(qn.Provider,{value:C,children:w.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,g==="switch"&&n),children:k||w.jsxs(w.Fragment,{children:[b,x&&w.jsx(Bl,{title:v,children:S}),u&&w.jsx($u,{type:c,tooltip:l,children:u})]})})})});sS.displayName="FormCheck";const Dl=Object.assign(sS,{Input:Hs,Label:Bl}),aS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:v}=h.useContext(qn);return e=z(e,"form-control"),w.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||v,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});aS.displayName="FormControl";const o$=Object.assign(aS,{Feedback:$u}),lS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),w.jsx(n,{ref:o,className:M(e,t),...r})));lS.displayName="FormFloating";const Eh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return w.jsx(qn.Provider,{value:o,children:w.jsx(t,{...n,ref:r})})});Eh.displayName="FormGroup";const uS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?w.jsx(dn,{ref:a,as:"label",className:c,htmlFor:i,...s}):w.jsx(e,{ref:a,className:c,htmlFor:i,...s})});uS.displayName="FormLabel";const cS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),w.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});cS.displayName="FormRange";const fS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),w.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});fS.displayName="FormSelect";const dS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),w.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));dS.displayName="FormText";const pS=h.forwardRef((e,t)=>w.jsx(Dl,{...e,ref:t,type:"switch"}));pS.displayName="Switch";const i$=Object.assign(pS,{Input:Dl.Input,Label:Dl.Label}),hS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),w.jsxs(Eh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,w.jsx("label",{htmlFor:r,children:o})]})));hS.displayName="FloatingLabel";const s$={_ref:pe.any,validated:pe.bool,as:pe.elementType},kh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>w.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));kh.displayName="Form";kh.propTypes=s$;const ot=Object.assign(kh,{Group:Eh,Control:o$,Floating:lS,Check:Dl,Switch:i$,Label:uS,Text:dS,Range:cS,Select:fS,FloatingLabel:hS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const a$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"checkbox",...e})}),l$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"radio",...e})}),mS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return w.jsx(oS.Provider,{value:a,children:w.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});mS.displayName="InputGroup";const Un=Object.assign(mS,{Text:_u,Radio:l$,Checkbox:a$});function Gc(e){e===void 0&&(e=Is());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function u$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Yy=n$("modal-open");class bh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return u$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Fn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Yy,""),Fn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Yy),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Is()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=xh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function c$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function yS(e){return e.code==="Escape"||e.keyCode===27}function f$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const d$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function p$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function h$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=p$(e,d$);const{major:c}=f$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),v=Yr(f,typeof l=="function"?null:d),g=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(g(t),[t]),k=h.useCallback(g(n),[n]),m=h.useCallback(g(r),[r]),p=h.useCallback(g(o),[o]),y=h.useCallback(g(i),[i]),E=h.useCallback(g(s),[s]),C=h.useCallback(g(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:m},o&&{onExit:p},i&&{onExiting:y},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:v})):h.cloneElement(l,{ref:v})})}const m$=["component"];function y$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const v$=h.forwardRef((e,t)=>{let{component:n}=e,r=y$(e,m$);const o=h$(r);return w.jsx(n,Object.assign({ref:t},o))});function g$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function w$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=g$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?w.jsx(v$,Object.assign({},n,{component:e})):t?w.jsx(w$,Object.assign({},n,{transition:t})):w.jsx(c$,Object.assign({},n))}const S$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function x$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function E$(e){return Qc||(Qc=new bh({ownerDocument:e==null?void 0:e.document})),Qc}function k$(e){const t=xh(),n=e||E$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const vS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:v,runBackdropTransition:g,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:y,renderBackdrop:E=H=>w.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=x$(e,S$);const G=xh(),V=bd(x),_=k$(C),I=dh(),F=xO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),_n.current=Dn(document,"keydown",qe),_t.current=Dn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const nt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&nt&&!_s(_.dialog,nt)&&(ve.current=nt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),_n.current==null||_n.current(),_t.current==null||_t.current(),m){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),Hw(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!_s(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&yS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),_n=h.useRef(),Tn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Rn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(Rn):w.jsx("div",Object.assign({},Rn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Tn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(v,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),w.jsx(w.Fragment,{children:Ir.createPortal(w.jsxs(w.Fragment,{children:[de,Qe]}),V)})});vS.displayName="Modal";const b$=Object.assign(vS,{Manager:bh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function C$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Xy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function O$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Xy(e.className,t):e.setAttribute("class",Xy(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class gS extends bh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,Fn(n,{[t]:`${parseFloat(Fn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Fn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(C$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();O$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function $$(e){return Yc||(Yc=new gS(e)),Yc}const wS=h.createContext({onHide(){}}),_$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(wS),l=it(()=>{a==null||a.onHide(),r==null||r()});return w.jsxs("div",{ref:s,...i,children:[o,n&&w.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),SS=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return w.jsx(i,{...r,ref:o,className:M(t,e)})});SS.displayName="NavbarBrand";const xS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(ci);return w.jsx(bu,{in:!!(o&&o.expanded),...n,children:w.jsx("div",{ref:r,className:t,children:e})})});xS.displayName="NavbarCollapse";const ES=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(ci)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),w.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||w.jsx("span",{className:`${e}-icon`})})});ES.displayName="NavbarToggle";const $d=new WeakMap,Jy=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function T$(e,t=typeof window>"u"?void 0:window){const n=Jy(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=Jy(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function R$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[v,g])=>((g==="up"||g===!0)&&(f=n(f,i(v))),(g==="down"||g===!0)&&(f=n(f,o(v))),f),""),[JSON.stringify(c)]);return T$(d,u)}return s}const N$=R$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),kS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));kS.displayName="OffcanvasBody";const A$={[Pt]:"show",[In]:"show"},bS=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),w.jsx(ch,{ref:l,addEndListener:uh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,A$[u])})})));bS.displayName="OffcanvasToggling";const CS=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),w.jsx(_$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));CS.displayName="OffcanvasHeader";const P$=fh("h5"),OS=h.forwardRef(({className:e,bsPrefix:t,as:n=P$,...r},o)=>(t=z(t,"offcanvas-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));OS.displayName="OffcanvasTitle";function j$(e){return w.jsx(bS,{...e})}function L$(e){return w.jsx(Cs,{...e})}const $S=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:v,autoFocus:g=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:m,onEntered:p,onExit:y,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(ci)||{},[W,G]=h.useState(!1),V=N$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new gS({handleContainerOverflow:!1})),B.current):$$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>w.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>w.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return w.jsxs(w.Fragment,{children:[!W&&(i||$)&&X({}),w.jsx(wS.Provider,{value:I,children:w.jsx(b$,{show:W,ref:U,backdrop:a,container:v,keyboard:l,autoFocus:g,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:y,onExiting:E,onExited:Z,manager:F(),transition:j$,backdropTransition:L$,renderBackdrop:ve,renderDialog:X})})]})});$S.displayName="Offcanvas";const Fi=Object.assign($S,{Body:kS,Header:CS,Title:OS}),_S=h.forwardRef((e,t)=>{const n=h.useContext(ci);return w.jsx(Fi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});_S.displayName="NavbarOffcanvas";const TS=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));TS.displayName="NavbarText";const RS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:v=!1,...g}=Wk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...y)=>{f==null||f(...y),v&&c&&(d==null||d(!1))},[f,v,c,d]);g.role===void 0&&u!=="nav"&&(g.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return w.jsx(ci.Provider,{value:p,children:w.jsx(e$.Provider,{value:k,children:w.jsx(u,{ref:t,...g,className:M(l,S,r&&m,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});RS.displayName="Navbar";const Xc=Object.assign(RS,{Brand:SS,Collapse:xS,Offcanvas:_S,Text:TS,Toggle:ES}),I$=()=>{};function M$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||I$;Y2(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{yS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Is(Ha(e));let a=(s.defaultView||window).event;const l=Dn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const NS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=Iy(),[d,f]=Iy(),v=Yr(c,t),g=bd(e.container),S=bd(e.target),[k,m]=h.useState(!e.show),p=H2(S,u,Z2({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&m(!1);const y=(...A)=>{m(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(M$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:v}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:y,onEnter:b,onEntering:O,onEntered:T}),g?Ir.createPortal($,g):null});NS.displayName="Overlay";const AS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),w.jsx(n,{ref:o,className:M(e,t),...r})));AS.displayName="PopoverHeader";const Ch=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ch.displayName="PopoverBody";function PS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function jS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const B$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),v=b0(),[g]=(t==null?void 0:t.split("-"))||[],S=PS(g,v);let k=r;return u&&!a&&(k={...r,...jS(l==null?void 0:l.strategy)}),w.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":g,className:M(n,f,g&&`bs-popover-${S}`),...c,children:[w.jsx("div",{className:"popover-arrow",...s}),i?w.jsx(Ch,{children:o}):o]})}),D$=Object.assign(B$,{Header:AS,Body:Ch,POPPER_OFFSET:[0,8]}),LS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=b0(),[f]=(t==null?void 0:t.split("-"))||[],v=PS(f,d);let g=r;return l&&!s&&(g={...r,...jS(a==null?void 0:a.strategy)}),w.jsxs("div",{ref:c,style:g,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${v}`),...u,children:[w.jsx("div",{className:"tooltip-arrow",...i}),w.jsx("div",{className:`${e}-inner`,children:o})]})});LS.displayName="Tooltip";const IS=Object.assign(LS,{TOOLTIP_OFFSET:[0,6]});function F$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return D$.POPPER_OFFSET;if(Od(t.current,r))return IS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function z$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const MS=h.forwardRef(({children:e,transition:t=Cs,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=F$(s.offset),v=Yr(a,d),g=t===!0?Cs:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),w.jsx(NS,{...s,ref:v,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:g,rootClose:r,placement:o,show:i,children:(k,{arrowProps:m,popper:p,show:y})=>{var E;z$(k,m);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:y,...!t&&y&&{className:"show"},popper:x,arrowProps:m,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:m,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&y&&"show"),style:{...e.props.style,...k.style}})}})});MS.displayName="Overlay";function U$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Zy(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!_s(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const W$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),v=Kw(),g=h.useRef(""),[S,k]=x0(o,i,s),m=U$(a),{onFocus:p,onBlur:y,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(v.clear(),g.current="show",!m.show){k(!0);return}v.set(()=>{g.current==="show"&&k(!0)},m.show)},[m.show,k,v]),b=h.useCallback(()=>{if(v.clear(),g.current="hide",!m.hide){k(!1);return}v.set(()=>{g.current==="hide"&&k(!1)},m.hide)},[m.hide,k,v]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),y==null||y(...W)},[b,y]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{Zy(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{Zy(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),w.jsxs(w.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),w.jsx(MS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=E0(),a=k0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const v=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${v}-${f}`)}),w.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const BS=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return w.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});BS.displayName="Spinner";const H$={[Pt]:"showing",[Yo]:"showing show"},DS=h.forwardRef((e,t)=>w.jsx(Cs,{...e,ref:t,transitionClasses:H$}));DS.displayName="ToastFade";const FS=h.createContext({onClose(){}}),zS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(FS),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return w.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&w.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});zS.displayName="ToastHeader";const US=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));US.displayName="ToastBody";const WS=h.forwardRef(({bsPrefix:e,className:t,transition:n=DS,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:v,bg:g,...S},k)=>{e=z(e,"toast");const m=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{m.current=i,p.current=a},[i,a]);const y=Kw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{y.set(C,m.current)},[y,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=w.jsx("div",{...S,ref:k,className:M(e,t,g&&`bg-${g}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return w.jsx(FS.Provider,{value:x,children:b&&n?w.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:O}):O})});WS.displayName="Toast";const ns=Object.assign(WS,{Body:US,Header:zS}),V$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},Oh=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),w.jsx(o,{ref:s,...i,className:M(e,t&&V$[t],n&&`position-${n}`,r)})));Oh.displayName="ToastContainer";const K$=()=>{},$h=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),w.jsxs(w.Fragment,{children:[w.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||K$,id:l}),w.jsx(zs,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));$h.displayName="ToggleButton";const bn=Object.create(null);bn.open="0";bn.close="1";bn.ping="2";bn.pong="3";bn.message="4";bn.upgrade="5";bn.noop="6";const Va=Object.create(null);Object.keys(bn).forEach(e=>{Va[bn[e]]=e});const _d={type:"error",data:"parser error"},HS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",VS=typeof ArrayBuffer=="function",KS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,_h=({type:e,data:t},n,r)=>HS&&t instanceof Blob?n?r(t):ev(t,r):VS&&(t instanceof ArrayBuffer||KS(t))?n?r(t):ev(new Blob([t]),r):r(bn[e]+(t||"")),ev=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function tv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function G$(e,t){if(HS&&e.data instanceof Blob)return e.data.arrayBuffer().then(tv).then(t);if(VS&&(e.data instanceof ArrayBuffer||KS(e.data)))return t(tv(e.data));_h(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const nv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},Q$=typeof ArrayBuffer=="function",Th=(e,t)=>{if(typeof e!="string")return{type:"message",data:GS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Y$(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},Y$=(e,t)=>{if(Q$){const n=q$(e);return GS(n,t)}else return{base64:!0,data:e}},GS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},qS="",X$=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{_h(i,!1,a=>{r[s]=a,++o===n&&t(r.join(qS))})})},J$=(e,t)=>{const n=e.split(qS),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 Zc;function va(e){return e.reduce((t,n)=>t+n.length,0)}function ga(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){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(va(n)e){a.enqueue(_d);break}}}})}const QS=4;function je(e){if(e)return t_(e)}function t_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.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 n_=jt.setTimeout,r_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=n_.bind(jt),e.clearTimeoutFn=r_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const o_=1.33;function i_(e){return typeof e=="string"?s_(e):Math.ceil((e.byteLength||e.size)*o_)}function s_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function a_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function l_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function JS(){const e=iv(+new Date);return e!==ov?(rv=0,ov=e):e+"."+iv(rv++)}for(;wa{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)};J$(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,X$(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]=JS()),!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 xn(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}}class xn extends je{constructor(t,n){super(),Tu(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=YS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new ex(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=xn.requestsCount++,xn.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=d_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete xn.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()}}xn.requestsCount=0;xn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",sv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,sv,!1)}}function sv(){for(let e in xn.requests)xn.requests.hasOwnProperty(e)&&xn.requests[e].abort()}const Nh=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Sa=jt.WebSocket||jt.MozWebSocket,av=!0,m_="arraybuffer",lv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class y_ extends Rh{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=lv?{}:YS(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=av&&!lv?n?new Sa(t,n):new Sa(t):new Sa(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 s={};try{av&&this.ws.send(i)}catch{}o&&Nh(()=>{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]=JS()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Sa}}class v_ extends Rh{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=e_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Z$();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const g_={websocket:y_,webtransport:v_,polling:h_},w_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,S_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(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=w_.exec(e||""),i={},s=14;for(;s--;)i[S_[s]]=o[s]||"";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=x_(i,i.path),i.queryKey=E_(i,i.query),i}function x_(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 E_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let tx=class vo extends je{constructor(t,n={}){super(),this.binaryType=m_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(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=Rd(n.host).host),Tu(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=l_(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=QS,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 g_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.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;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.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){vo.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,nx=Object.prototype.toString,O_=typeof Blob=="function"||typeof Blob<"u"&&nx.call(Blob)==="[object BlobConstructor]",$_=typeof File=="function"||typeof File<"u"&&nx.call(File)==="[object FileConstructor]";function Ah(e){return b_&&(e instanceof ArrayBuffer||C_(e))||O_&&e instanceof Blob||$_&&e instanceof File}function Ka(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 a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);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:J.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 J.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 J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.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:J.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:J.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}fi.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};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(e){this.ms=e};fi.prototype.setMax=function(e){this.max=e};fi.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{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,Tu(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 fi({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||j_;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 tx(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Zt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zt(t,"ping",this.onping.bind(this)),Zt(t,"data",this.ondata.bind(this)),Zt(t,"error",this.onerror.bind(this)),Zt(t,"close",this.onclose.bind(this)),Zt(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){Nh(()=>{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 rx(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 Ti={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=k_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ti[o]&&i in Ti[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ti[o]||(Ti[o]=new Pd(r,t)),l=Ti[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:rx,io:Ga,connect:Ga});const ox=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},I_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&ox(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},M_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=ox(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},Ui=window.location.hostname,Wi=window.location.port,B_=`ws://${Ui}:${Wi}/`,Ln=Ga(B_,{path:"/ws/socket.io",transports:["websocket"]}),D_=(e,t)=>{t?Ln.emit("update_value",{access_path:e.full_access_path,value:e},t):Ln.emit("update_value",{access_path:e.full_access_path,value:e})},ix=(e,t=[],n={},r)=>{const o=I_(t),i=M_(n);Ln.emit("trigger_method",{access_path:e,args:o,kwargs:i})},sx=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return w.jsx(Oh,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?w.jsxs(ns,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[w.jsxs(ns.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[w.jsx("strong",{className:"me-auto",children:o.levelname}),w.jsx("small",{children:o.timeStamp})]}),w.jsx(ns.Body,{children:o.message})]},o.id):null)})});sx.displayName="Notifications";const jd=ne.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return w.jsx(Oh,{position:"bottom-center",className:"toastContainer",children:w.jsx(ns,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:w.jsxs(ns.Body,{className:"d-flex justify-content-between",children:[i,w.jsx(zs,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function ax(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function F_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function z_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(fv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=fv(),e[t];throw new Error(`Key not found: ${t}`)}}function cv(e,t,n=!1){const r=F_(t);try{return z_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function U_(e,t,n){const r=ax(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=w.jsx(IS,{id:"tooltip",children:t});return w.jsx(W$,{placement:"bottom",overlay:n,children:w.jsx(Pw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});ln.displayName="DocStringComponent";function Cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const ux=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return w.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,w.jsxs($h,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,w.jsx(ln,{docString:o})]})]})});ux.displayName="ButtonComponent";const W_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},V_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{if(e==="."&&t.includes("."))return{value:t,selectionStart:n};let o=t;return r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1}},zl=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,v]=h.useState(null),[g,S]=h.useState(n.toString());Cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y==="-")if(O===0&&!x.startsWith("-"))T="-"+x,O++;else if(x.startsWith("-")&&O===1)T=x.substring(1),O--;else return;else if(y>="0"&&y<="9")({value:T,selectionStart:O}=dv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=dv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=W_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=H_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=V_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),v(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(g),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(g):parseFloat(g);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),w.jsxs("div",{className:"component numberComponent",id:d,children:[!1,w.jsxs(Un,{children:[c&&w.jsxs(Un.Text,{children:[c,w.jsx(ln,{docString:i})]}),w.jsx(ot.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&w.jsx(Un.Text,{children:a})]})]})});zl.displayName="NumberComponent";const Ts={black:"#000",white:"#fff"},lo={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"},uo={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"},co={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"},fo={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"},po={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"},Ri={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"},K_={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?Ve(di,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||As(Ae)>3?"":" "}function cT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Vs(e,qa()+(t<6&&En()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function fT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&En()===47)break;return"/*"+Vs(t,yt-1)+"*"+Ru(e===47?e:Et())}function dT(e){for(;!As(En());)Et();return Vs(e,yt)}function pT(e){return yx(Ya("",null,null,null,[""],e=mx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(g=p,p=Et()){case 40:if(g!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=uT(g);break;case 92:b+=cT(qa()-1,7);continue;case 47:switch(En()){case 42:case 47:xa(hT(fT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=pn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),v>0&&pn(b)-d&&xa(v>32?hv(b+";",r,n,d-1):hv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=pv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(pv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=v=0,S=m=1,y=b="",d=s;break;case 58:d=1+pn(b),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&lT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(pn(b)-1)*m,m=1;break;case 64:En()===45&&(b+=Qa(Et())),f=En(),c=d=pn(y=b+=dT(qa())),p++;break;case 45:g===45&&pn(b)==2&&(S=0)}}return i}function pv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Ih(f),g=0,S=0,k=0;g0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?jh:a,l,u,c)}function hT(e,t,n){return Au(e,t,n,fx,Ru(aT()),Ns(e,2,-2),0)}function hv(e,t,n,r){return Au(e,t,n,Lh,Ns(e,0,r),Ns(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Ih(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?vx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,pn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var kT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Lh:t.return=vx(t.value,t.length);break;case dx:return Fo([Ni(t,{value:ae(t.value,"@","@"+se)})],o);case jh:if(t.length)return sT(t.props,function(i){switch(iT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ni(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ni(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},bT=[kT],gx=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(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||bT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m=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 LT={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},IT=/[A-Z]|^ms/g,MT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bx=function(t){return t.charCodeAt(1)===45},mv=function(t){return t!=null&&typeof t!="boolean"},ef=ux(function(e){return bx(e)?e:e.replace(IT,"-$&").toLowerCase()}),yv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(MT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return LT[t]!==1&&!bx(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ps(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return BT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,Ps(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function BT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?HT:VT},xv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},KT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ex(n,r,o),FT(function(){return kx(n,r,o)}),null},GT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=xv(t,n,r),l=a||Sv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(YT(o)?n:o):t;return w.jsx(UT,{styles:r})}function JT(e,t){return Md(e,t)}const ZT=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},eR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:XT,StyledEngineProvider:QT,ThemeContext:Fh,css:Tx,default:JT,internal_processStyles:ZT,keyframes:WT},Symbol.toStringTag,{value:"Module"}));function lr(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 Rx(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Rx(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Rx(t[o]):t[o]:r[o]=t[o]}),r}const tR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),nR=["values","unit","step"],rR=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)=>j({},n,{[r.key]:r.val}),{})};function Nx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,nR),i=rR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${zh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Ev;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Ev;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||zh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function iR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function sR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(Rs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const aR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Wu(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 Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function lR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const uR={m:"margin",p:"padding"},cR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fR=lR(e=>{if(e.length>2)if(kv[e])e=kv[e];else return[e];const[t,n]=e.split(""),r=uR[t],o=cR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Uh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Uh,...Wh];function Ks(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Ax(e){return Ks(e,"spacing",8)}function Gs(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 dR(e,t){return n=>e.reduce((r,o)=>(r[o]=Gs(t,n),r),{})}function pR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=fR(n),i=dR(o,r),s=e[n];return Qn(e,s,i)}function Px(e,t){const n=Ax(e.theme);return Object.keys(e).map(r=>pR(e,t,r,n)).reduce(rs,{})}function Ce(e){return Px(e,Uh)}Ce.propTypes={};Ce.filterProps=Uh;function Oe(e){return Px(e,Wh)}Oe.propTypes={};Oe.filterProps=Wh;function hR(e=8){if(e.mui)return e;const t=Ax({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...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]?rs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const mR=Ht("border",Lt),yR=Ht("borderTop",Lt),vR=Ht("borderRight",Lt),gR=Ht("borderBottom",Lt),wR=Ht("borderLeft",Lt),SR=Ht("borderColor"),xR=Ht("borderTopColor"),ER=Ht("borderRightColor"),kR=Ht("borderBottomColor"),bR=Ht("borderLeftColor"),CR=Ht("outline",Lt),OR=Ht("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gs(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(mR,yR,vR,gR,wR,SR,xR,ER,kR,bR,Vu,CR,OR);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({gap:Gs(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({columnGap:Gs(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({rowGap:Gs(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const $R=Te({prop:"gridColumn"}),_R=Te({prop:"gridRow"}),TR=Te({prop:"gridAutoFlow"}),RR=Te({prop:"gridAutoColumns"}),NR=Te({prop:"gridAutoRows"}),AR=Te({prop:"gridTemplateColumns"}),PR=Te({prop:"gridTemplateRows"}),jR=Te({prop:"gridTemplateAreas"}),LR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,$R,_R,TR,RR,NR,AR,PR,jR,LR);function zo(e,t){return t==="grey"?t:e}const IR=Te({prop:"color",themeKey:"palette",transform:zo}),MR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),BR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(IR,MR,BR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const DR=Te({prop:"width",transform:wt}),Hh=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])||zh[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:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Hh.filterProps=["maxWidth"];const FR=Te({prop:"minWidth",transform:wt}),zR=Te({prop:"height",transform:wt}),UR=Te({prop:"maxHeight",transform:wt}),WR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const HR=Te({prop:"boxSizing"});Hu(DR,Hh,FR,zR,UR,WR,HR);const VR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},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:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Hh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qs=VR;function KR(...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 GR(e,t){return typeof e=="function"?e(t):e}function jx(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Wl(f,c,g);return g===S&&typeof g=="string"&&(S=Wl(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:qs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=iR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=GR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=rs(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));KR(S,g)?f[v]=t({sx:g,theme:i}):f=rs(f,S)}else f=rs(f,e(v,g,i,s))}),sR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Lx=jx();Lx.filterProps=["sx"];const Vh=Lx;function Ix(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 qR=["breakpoints","palette","spacing","shape"];function Mx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,qR),a=Nx(n),l=hR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},oR,i)},s);return u.applyStyles=Ix,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Vh({sx:d,theme:this})},u}const QR=Object.freeze(Object.defineProperty({__proto__:null,default:Mx,private_createBreakpoints:Nx,unstable_applyStyles:Ix},Symbol.toStringTag,{value:"Module"})),YR=["sx"],XR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function JR(e){const{sx:t}=e,n=an(e,YR),{systemProps:r,otherProps:o}=XR(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const ZR=Object.freeze(Object.defineProperty({__proto__:null,default:Vh,extendSxProp:JR,unstable_createStyleFunctionSx:jx,unstable_defaultSxConfig:qs},Symbol.toStringTag,{value:"Module"})),bv=e=>e,eN=()=>{let e=bv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=bv}}},tN=eN();function Bx(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;t{r[o]=Dx(e,o,n)}),r}var Fx={exports:{}},fe={};/** + */var ze=typeof Symbol=="function"&&Symbol.for,Mh=ze?Symbol.for("react.element"):60103,Bh=ze?Symbol.for("react.portal"):60106,Pu=ze?Symbol.for("react.fragment"):60107,ju=ze?Symbol.for("react.strict_mode"):60108,Lu=ze?Symbol.for("react.profiler"):60114,Iu=ze?Symbol.for("react.provider"):60109,Mu=ze?Symbol.for("react.context"):60110,Dh=ze?Symbol.for("react.async_mode"):60111,Bu=ze?Symbol.for("react.concurrent_mode"):60111,Du=ze?Symbol.for("react.forward_ref"):60112,Fu=ze?Symbol.for("react.suspense"):60113,CT=ze?Symbol.for("react.suspense_list"):60120,zu=ze?Symbol.for("react.memo"):60115,Uu=ze?Symbol.for("react.lazy"):60116,OT=ze?Symbol.for("react.block"):60121,$T=ze?Symbol.for("react.fundamental"):60117,_T=ze?Symbol.for("react.responder"):60118,TT=ze?Symbol.for("react.scope"):60119;function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mh:switch(e=e.type,e){case Dh:case Bu:case Pu:case Lu:case ju:case Fu:return e;default:switch(e=e&&e.$$typeof,e){case Mu:case Du:case Uu:case zu:case Iu:return e;default:return t}}case Bh:return t}}}function Sx(e){return $t(e)===Bu}ce.AsyncMode=Dh;ce.ConcurrentMode=Bu;ce.ContextConsumer=Mu;ce.ContextProvider=Iu;ce.Element=Mh;ce.ForwardRef=Du;ce.Fragment=Pu;ce.Lazy=Uu;ce.Memo=zu;ce.Portal=Bh;ce.Profiler=Lu;ce.StrictMode=ju;ce.Suspense=Fu;ce.isAsyncMode=function(e){return Sx(e)||$t(e)===Dh};ce.isConcurrentMode=Sx;ce.isContextConsumer=function(e){return $t(e)===Mu};ce.isContextProvider=function(e){return $t(e)===Iu};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mh};ce.isForwardRef=function(e){return $t(e)===Du};ce.isFragment=function(e){return $t(e)===Pu};ce.isLazy=function(e){return $t(e)===Uu};ce.isMemo=function(e){return $t(e)===zu};ce.isPortal=function(e){return $t(e)===Bh};ce.isProfiler=function(e){return $t(e)===Lu};ce.isStrictMode=function(e){return $t(e)===ju};ce.isSuspense=function(e){return $t(e)===Fu};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pu||e===Bu||e===Lu||e===ju||e===Fu||e===CT||typeof e=="object"&&e!==null&&(e.$$typeof===Uu||e.$$typeof===zu||e.$$typeof===Iu||e.$$typeof===Mu||e.$$typeof===Du||e.$$typeof===$T||e.$$typeof===_T||e.$$typeof===TT||e.$$typeof===OT)};ce.typeOf=$t;wx.exports=ce;var RT=wx.exports,xx=RT,NT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},AT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ex={};Ex[xx.ForwardRef]=NT;Ex[xx.Memo]=AT;var PT=!0;function jT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var kx=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||PT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},bx=function(t,n,r){kx(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 LT(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 IT={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},MT=/[A-Z]|^ms/g,BT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cx=function(t){return t.charCodeAt(1)===45},yv=function(t){return t!=null&&typeof t!="boolean"},ef=cx(function(e){return Cx(e)?e:e.replace(MT,"-$&").toLowerCase()}),vv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(BT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return IT[t]!==1&&!Cx(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ps(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return DT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,Ps(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function DT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?VT:KT},Ev=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},GT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kx(n,r,o),zT(function(){return bx(n,r,o)}),null},qT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Ev(t,n,r),l=a||xv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(XT(o)?n:o):t;return w.jsx(WT,{styles:r})}function ZT(e,t){return Md(e,t)}const eR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},tR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:JT,StyledEngineProvider:YT,ThemeContext:zh,css:Rx,default:ZT,internal_processStyles:eR,keyframes:HT},Symbol.toStringTag,{value:"Module"}));function lr(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 Nx(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Nx(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Nx(t[o]):t[o]:r[o]=t[o]}),r}const nR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),rR=["values","unit","step"],oR=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)=>j({},n,{[r.key]:r.val}),{})};function Ax(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,rR),i=oR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Uh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||kv;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||kv;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Uh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function sR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function aR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(Rs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const lR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Wu(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 Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function uR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cR={m:"margin",p:"padding"},fR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dR=uR(e=>{if(e.length>2)if(bv[e])e=bv[e];else return[e];const[t,n]=e.split(""),r=cR[t],o=fR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Wh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Wh,...Hh];function Ks(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Px(e){return Ks(e,"spacing",8)}function Gs(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 pR(e,t){return n=>e.reduce((r,o)=>(r[o]=Gs(t,n),r),{})}function hR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=dR(n),i=pR(o,r),s=e[n];return Qn(e,s,i)}function jx(e,t){const n=Px(e.theme);return Object.keys(e).map(r=>hR(e,t,r,n)).reduce(rs,{})}function Ce(e){return jx(e,Wh)}Ce.propTypes={};Ce.filterProps=Wh;function Oe(e){return jx(e,Hh)}Oe.propTypes={};Oe.filterProps=Hh;function mR(e=8){if(e.mui)return e;const t=Px({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...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]?rs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const yR=Ht("border",Lt),vR=Ht("borderTop",Lt),gR=Ht("borderRight",Lt),wR=Ht("borderBottom",Lt),SR=Ht("borderLeft",Lt),xR=Ht("borderColor"),ER=Ht("borderTopColor"),kR=Ht("borderRightColor"),bR=Ht("borderBottomColor"),CR=Ht("borderLeftColor"),OR=Ht("outline",Lt),$R=Ht("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gs(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(yR,vR,gR,wR,SR,xR,ER,kR,bR,CR,Vu,OR,$R);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({gap:Gs(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({columnGap:Gs(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({rowGap:Gs(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const _R=Te({prop:"gridColumn"}),TR=Te({prop:"gridRow"}),RR=Te({prop:"gridAutoFlow"}),NR=Te({prop:"gridAutoColumns"}),AR=Te({prop:"gridAutoRows"}),PR=Te({prop:"gridTemplateColumns"}),jR=Te({prop:"gridTemplateRows"}),LR=Te({prop:"gridTemplateAreas"}),IR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,_R,TR,RR,NR,AR,PR,jR,LR,IR);function zo(e,t){return t==="grey"?t:e}const MR=Te({prop:"color",themeKey:"palette",transform:zo}),BR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),DR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(MR,BR,DR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const FR=Te({prop:"width",transform:wt}),Vh=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])||Uh[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:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Vh.filterProps=["maxWidth"];const zR=Te({prop:"minWidth",transform:wt}),UR=Te({prop:"height",transform:wt}),WR=Te({prop:"maxHeight",transform:wt}),HR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const VR=Te({prop:"boxSizing"});Hu(FR,Vh,zR,UR,WR,HR,VR);const KR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},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:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Vh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qs=KR;function GR(...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 qR(e,t){return typeof e=="function"?e(t):e}function Lx(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Wl(f,c,g);return g===S&&typeof g=="string"&&(S=Wl(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:qs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=sR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=qR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=rs(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));GR(S,g)?f[v]=t({sx:g,theme:i}):f=rs(f,S)}else f=rs(f,e(v,g,i,s))}),aR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Ix=Lx();Ix.filterProps=["sx"];const Kh=Ix;function Mx(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 QR=["breakpoints","palette","spacing","shape"];function Bx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,QR),a=Ax(n),l=mR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},iR,i)},s);return u.applyStyles=Mx,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Kh({sx:d,theme:this})},u}const YR=Object.freeze(Object.defineProperty({__proto__:null,default:Bx,private_createBreakpoints:Ax,unstable_applyStyles:Mx},Symbol.toStringTag,{value:"Module"})),XR=["sx"],JR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function ZR(e){const{sx:t}=e,n=an(e,XR),{systemProps:r,otherProps:o}=JR(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const eN=Object.freeze(Object.defineProperty({__proto__:null,default:Kh,extendSxProp:ZR,unstable_createStyleFunctionSx:Lx,unstable_defaultSxConfig:qs},Symbol.toStringTag,{value:"Module"})),Cv=e=>e,tN=()=>{let e=Cv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cv}}},nN=tN();function Dx(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;t{r[o]=Fx(e,o,n)}),r}var zx={exports:{}},fe={};/** * @license React * react-is.production.min.js * @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Kh=Symbol.for("react.element"),Gh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),oN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),iN=Symbol.for("react.offscreen"),zx;zx=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Kh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case oN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case Gh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=Kh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=Gh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Vt(e)===Zu};fe.isContextProvider=function(e){return Vt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kh};fe.isForwardRef=function(e){return Vt(e)===ec};fe.isFragment=function(e){return Vt(e)===Qu};fe.isLazy=function(e){return Vt(e)===oc};fe.isMemo=function(e){return Vt(e)===rc};fe.isPortal=function(e){return Vt(e)===Gh};fe.isProfiler=function(e){return Vt(e)===Xu};fe.isStrictMode=function(e){return Vt(e)===Yu};fe.isSuspense=function(e){return Vt(e)===tc};fe.isSuspenseList=function(e){return Vt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===iN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===zx||e.getModuleId!==void 0)};fe.typeOf=Vt;Fx.exports=fe;var Cv=Fx.exports;const sN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ux(e){const t=`${e}`.match(sN);return t&&t[1]||""}function Wx(e,t=""){return e.displayName||e.name||Ux(e)||t}function Ov(e,t,n){const r=Wx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function aN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Wx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Cv.ForwardRef:return Ov(e,e.render,"ForwardRef");case Cv.Memo:return Ov(e,e.type,"memo");default:return}}}const lN=Object.freeze(Object.defineProperty({__proto__:null,default:aN,getFunctionName:Ux},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},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]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Hx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const uN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function cN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function fN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Hx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{cN(n,t)})},e)}class qh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new qh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const dN=new qh,pN={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 hN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&pN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function mN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function yN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function vN(e){e.addEventListener("keydown",mN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",yN,!0)}function gN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||hN(t)}function wN(){const e=h.useCallback(o=>{o!=null&&vN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,dN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return gN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const SN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function xN(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const EN=h.createContext(),kN=()=>{const e=h.useContext(EN);return e??!1},bN=h.createContext(void 0);function CN(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?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function ON({props:e,name:t}){const n=h.useContext(bN);return CN({props:e,name:t,theme:{components:n}})}function $N(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Vx={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})(Vx);var Kx=Vx.exports;const _N=Yn(K_),TN=Yn(uN);var Gx=Kx;Object.defineProperty(Re,"__esModule",{value:!0});var $v=Re.alpha=Xx;Re.blend=FN;Re.colorChannel=void 0;var Ud=Re.darken=Yh;Re.decomposeColor=Wt;Re.emphasize=Jx;var RN=Re.getContrastRatio=LN;Re.getLuminance=Hl;Re.hexToRgb=qx;Re.hslToRgb=Yx;var Wd=Re.lighten=Xh;Re.private_safeAlpha=IN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=MN;Re.private_safeEmphasize=DN;Re.private_safeLighten=BN;Re.recomposeColor=pi;Re.rgbToHex=jN;var _v=Gx(_N),NN=Gx(TN);function Qh(e,t=0,n=1){return(0,NN.default)(e,t,n)}function qx(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 AN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(qx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,_v.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,_v.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Qx=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=Qx;const PN=(e,t)=>{try{return Qx(e)}catch{return e}};Re.private_safeColorChannel=PN;function pi(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 jN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>AN(r===3?Math.round(255*n):n)).join("")}`}function Yx(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(Yx(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 LN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Xx(e,t){return e=Wt(e),t=Qh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function IN(e,t,n){try{return Xx(e,t)}catch{return e}}function Yh(e,t){if(e=Wt(e),t=Qh(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 pi(e)}function MN(e,t,n){try{return Yh(e,t)}catch{return e}}function Xh(e,t){if(e=Wt(e),t=Qh(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 pi(e)}function BN(e,t,n){try{return Xh(e,t)}catch{return e}}function Jx(e,t=.15){return Hl(e)>.5?Yh(e,t):Xh(e,t)}function DN(e,t,n){try{return Jx(e,t)}catch{return e}}function FN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const zN=["mode","contrastThreshold","tonalOffset"],Tv={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:Ts.white,default:Ts.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}},of={text:{primary:Ts.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:Ts.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 Rv(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=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function UN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function WN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function HN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function VN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function KN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function GN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function qN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,zN),i=e.primary||UN(t),s=e.secondary||WN(t),a=e.error||HN(t),l=e.info||VN(t),u=e.success||KN(t),c=e.warning||GN(t);function d(S){return RN(S,of.text.primary)>=n?of.text.primary:Tv.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Rs(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Rs(12,k?` (${k})`:"",JSON.stringify(S.main)));return Rv(S,"light",p,r),Rv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:of,light:Tv};return kn(j({common:j({},Ts),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:V_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const QN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function YN(e){return Math.round(e*1e5)/1e5}const Nv={textTransform:"uppercase"},Av='"Roboto", "Helvetica", "Arial", sans-serif';function XN(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Av,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,QN),v=o/14,g=d||(m=>`${m/u*v}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:g(p),lineHeight:y},r===Av?{letterSpacing:`${YN(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,Nv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,Nv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const JN=.2,ZN=.14,eA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${JN})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ZN})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eA})`].join(",")}const tA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],nA=["duration","easing","delay"],rA={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)"},oA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pv(e){return`${Math.round(e)}ms`}function iA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sA(e){const t=j({},rA,e.easing),n=j({},oA,e.duration);return j({getAutoHeightDuration:iA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,nA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Pv(s)} ${a} ${typeof l=="string"?l:Pv(l)}`).join(",")}},e,{easing:t,duration:n})}const aA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function uA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,lA);if(e.vars)throw new Error(Rs(18));const a=qN(r),l=Mx(e);let u=kn(l,{mixins:$N(l.breakpoints,n),palette:a,shadows:tA.slice(),typography:XN(a,i),transitions:sA(o),zIndex:j({},aA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Vh({sx:d,theme:this})},u}const cA=uA();var Qs={},sf={exports:{}},jv;function fA(){return jv||(jv=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.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const dA=Yn(eR),pA=Yn(tR),hA=Yn(aR),mA=Yn(lN),yA=Yn(QR),vA=Yn(ZR);var hi=Kx;Object.defineProperty(Qs,"__esModule",{value:!0});var gA=Qs.default=NA;Qs.shouldForwardProp=Ja;Qs.systemDefaultTheme=void 0;var Rt=hi(_x()),Hd=hi(fA()),Lv=CA(dA),wA=pA;hi(hA);hi(mA);var SA=hi(yA),xA=hi(vA);const EA=["ownerState"],kA=["variants"],bA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Zx=function(r){return r?n:t})(e)}function CA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Zx(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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function OA(e){return Object.keys(e).length===0}function $A(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _A=Qs.systemDefaultTheme=(0,SA.default)(),TA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return OA(t)?e:t[n]||t}function RA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,EA);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,kA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function NA(e={}){const{themeId:t,defaultTheme:n=_A,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,xA.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Lv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=RA(TA(u))}=a,v=(0,Hd.default)(a,bA),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:$A(s)&&(m=void 0);const p=(0,Lv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,wA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function Jh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const AA=e=>Jh(e)&&e!=="classes",Xr=gA({themeId:G_,defaultTheme:cA,rootShouldForwardProp:AA});function PA(e){return ON(e)}function os(e){return typeof e=="string"}function jA(e,t,n){return e===void 0||os(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function LA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(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 IA(e,t,n){return typeof e=="function"?e(t,n):e}function Iv(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 MA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=Iv(r),l=Iv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const BA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,BA),a=i?{}:IA(r,o),{props:l,internalRef:u}=MA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return jA(n,j({},l,{ref:c}),o)}const DA=2;function eE(e,t){return e-t}function Mv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},HA=e=>e;let Oa;function Dv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function VA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=HA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=fN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(eE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=wN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Hx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=FA(un,l,a),S)le=UA(le,S,l);else{const ro=Mv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Mv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=Bv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>DA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),nt=nf(N=>{if(r)return;Dv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:Dv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ba({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),Gt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:WA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},SN,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const KA=e=>!e||!os(e);function GA(e){return Dx("MuiSlider",e)}const Mt=rN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),qA=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function QA(e){const{children:t,className:n,value:r}=e,o=qA(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const YA=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Fv(e){return e}const XA=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),JA=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ZA=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),eP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${$v(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${$v(e.palette[n].main,.16)}`})}}))]}}),tP=Xr(QA,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),nP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Jh(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),rP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Jh(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),oP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return xN(u,GA,s)},iP=({children:e})=>e,sP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,m,p,y,E,C,x,b,O,T,$;const A=PA({props:t,name:"MuiSlider"}),U=kN(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=Fv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=Fv}=A,vi=an(A,YA),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=VA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=oP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:XA,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:JA,gm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:ZA,wm=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:eP,Sm=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:tP,cc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:nP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:rP,xm=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,lk=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,uk=(O=de==null?void 0:de.mark)!=null?O:_.mark,ck=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,fk=($=de==null?void 0:de.input)!=null?$:_.input,dk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:vi,additionalProps:j({},KA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),pk=tr({elementType:ro,externalSlotProps:lk,ownerState:we,className:le.rail}),hk=tr({elementType:gm,externalSlotProps:pc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:wm,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),mk=tr({elementType:Sm,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:uk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:ck,ownerState:we,className:le.markLabel}),yk=tr({elementType:xm,getSlotProps:to,externalSlotProps:fk,ownerState:we});return w.jsxs(Tt,j({},dk,{children:[w.jsx(ro,j({},pk)),w.jsx(gm,j({},hk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Xs=Gt[Zn].offset(wc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(cc,j({"data-index":We},vc,!os(cc)&&{markActive:Nn},{style:j({},Xs,vc.style),className:Sr(vc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!os(fc)&&{markLabelActive:Nn},{style:j({},Xs,gc.style),className:Sr(le.markLabel,gc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Xs=Gt[Zn].offset(wc),Nn=nt==="off"?iP:Sm;return w.jsx(Nn,j({},!os(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},mk,{children:w.jsx(wm,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Xs,un(We),yc.style),children:w.jsx(xm,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},yk))}))}),We)})]}))});var zv=Object.prototype.toString,tE=function(t){var n=zv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&zv.call(t.callee)==="[object Function]"),r},af,Uv;function aP(){if(Uv)return af;Uv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=tE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),m=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":TP,"%eval%":eval,"%EvalError%":RP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":oE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":NP,"%ReferenceError%":AP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":jP,"%TypedArray%":IP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":PP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var MP=Be(Be(e));zr["%Error.prototype%"]=MP}var BP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Gv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ys=tm,Kl=rE,DP=Ys.call(Function.call,Array.prototype.concat),FP=Ys.call(Function.apply,Array.prototype.splice),qv=Ys.call(Function.call,String.prototype.replace),Gl=Ys.call(Function.call,String.prototype.slice),zP=Ys.call(Function.call,RegExp.prototype.exec),UP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,WP=/\\(\\)?/g,HP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return qv(t,UP,function(i,s,a,l){o[o.length]=a?qv(l,WP,"$1"):s||i}),o},VP=function(t,n){var r=t,o;if(Kl(Gv,r)&&(o=Gv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=BP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(zP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=HP(t),o=r.length>0?r[0]:"",i=VP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],FP(r,DP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},KP=On,nl=KP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var nm=nl,GP=On,rl=GP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var rm=rl,Qv=nm,qP=nE,mo=_r,Yv=rm,om=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Yv&&Yv(t,n);if(Qv)Qv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new qP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=nm,iE=function(){return!!Vd};iE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var im=iE,QP=Zh,YP=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",XP=Object.prototype.toString,JP=Array.prototype.concat,Xv=om,ZP=function(e){return typeof e=="function"&&XP.call(e)==="[object Function]"},sE=im(),e3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!ZP(r)||!r())return}sE?Xv(e,t,n,!0):Xv(e,t,n)},aE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=QP(t);YP&&(r=JP.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||r3(n)!==n)throw new eg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&Zv){var s=Zv(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(n3?Jv(t,"length",n,!0,!0):Jv(t,"length",n)),t};(function(e){var t=tm,n=On,r=o3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=nm,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(lE);var mi=lE.exports,uE=On,cE=mi,i3=cE(uE("String.prototype.indexOf")),Kt=function(t,n){var r=uE(t,!!n);return typeof r=="function"&&i3(t,".prototype.")>-1?cE(r):r},s3=Zh,fE=sc(),dE=Kt,tg=Object,a3=dE("Array.prototype.push"),ng=dE("Object.prototype.propertyIsEnumerable"),l3=fE?Object.getOwnPropertySymbols:null,pE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=tg(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||k3)&&(E3?rg(t,"name",n,!0,!0):rg(t,"name",n)),t},O3=C3,$3=_r,_3=Object,vE=O3(function(){if(this==null||this!==_3(this))throw new $3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),T3=vE,R3=Jr.supportsDescriptors,N3=Object.getOwnPropertyDescriptor,gE=function(){if(R3&&/a/mig.flags==="gim"){var t=N3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return T3},A3=Jr.supportsDescriptors,P3=gE,j3=Object.getOwnPropertyDescriptor,L3=Object.defineProperty,I3=TypeError,og=Object.getPrototypeOf,M3=/a/,B3=function(){if(!A3||!og)throw new I3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=P3(),n=og(M3),r=j3(n,"flags");return(!r||r.get!==t)&&L3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},D3=Jr,F3=mi,z3=vE,wE=gE,U3=B3,SE=F3(wE());D3(SE,{getPolyfill:wE,implementation:z3,shim:U3});var W3=SE,ol={exports:{}},H3=sc,Zr=function(){return H3()&&!!Symbol.toStringTag},V3=Zr(),K3=Kt,Kd=K3("Object.prototype.toString"),ac=function(t){return V3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},xE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},G3=function(){return ac(arguments)}();ac.isLegacyArguments=xE;var EE=G3?ac:xE;const q3={},Q3=Object.freeze(Object.defineProperty({__proto__:null,default:q3},Symbol.toStringTag,{value:"Module"})),Y3=Yn(Q3);var sm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&sm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=sm&&df&&typeof df.get=="function"?df.get:null,ig=sm&&Map.prototype.forEach,am=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&am?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=am&&pf&&typeof pf.get=="function"?pf.get:null,sg=am&&Set.prototype.forEach,X3=typeof WeakMap=="function"&&WeakMap.prototype,ss=X3?WeakMap.prototype.has:null,J3=typeof WeakSet=="function"&&WeakSet.prototype,as=J3?WeakSet.prototype.has:null,Z3=typeof WeakRef=="function"&&WeakRef.prototype,ag=Z3?WeakRef.prototype.deref:null,ej=Boolean.prototype.valueOf,tj=Object.prototype.toString,nj=Function.prototype.toString,rj=String.prototype.match,lm=String.prototype.slice,fr=String.prototype.replace,oj=String.prototype.toUpperCase,lg=String.prototype.toLowerCase,kE=RegExp.prototype.test,ug=Array.prototype.concat,mn=Array.prototype.join,ij=Array.prototype.slice,cg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,bE=Object.prototype.propertyIsEnumerable,fg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function dg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||kE.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-cg(-e):cg(e);if(r!==e){var o=String(r),i=lm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=Y3,pg=Qd.custom,hg=OE(pg)?pg:null,sj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return _E(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?dg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?dg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=bj(i,r);if(typeof o>"u")o=[];else if($E(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=ij.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!mg(t)){var v=mj(t),g=$a(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if(OE(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if(xj(t)){for(var k="<"+lg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!kj(y)?"["+Xd(y,d)+"]":"[ "+mn.call(y,", ")+" ]"}if(uj(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!bE.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(ug.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(hg&&typeof t[hg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(yj(t)){var C=[];return ig&&ig.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),yg("Map",ql.call(t),C,d)}if(wj(t)){var x=[];return sg&&sg.call(t,function(B){x.push(f(B,t))}),yg("Set",Ql.call(t),x,d)}if(vj(t))return mf("WeakMap");if(Sj(t))return mf("WeakSet");if(gj(t))return mf("WeakRef");if(fj(t))return Ai(f(Number(t)));if(pj(t))return Ai(f(Gd.call(t)));if(dj(t))return Ai(ej.call(t));if(cj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!lj(t)&&!mg(t)){var b=$a(t,f),O=fg?fg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?lm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(ug.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function CE(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function aj(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function lj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function mg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function uj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function cj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function fj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function dj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function OE(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function pj(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var hj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return hj.call(e,t)}function Tr(e){return tj.call(e)}function mj(e){if(e.name)return e.name;var t=rj.call(nj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $E(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return _E(lm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ej);return CE(o,"single",t)}function Ej(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+oj.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function yg(e,t,n,r){var o=r?Xd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function kj(e){for(var t=0;t=0)return!1;return!0}function bj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=` + */var Gh=Symbol.for("react.element"),qh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),iN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),sN=Symbol.for("react.offscreen"),Ux;Ux=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Gh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case iN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case qh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=Gh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=qh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Vt(e)===Zu};fe.isContextProvider=function(e){return Vt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gh};fe.isForwardRef=function(e){return Vt(e)===ec};fe.isFragment=function(e){return Vt(e)===Qu};fe.isLazy=function(e){return Vt(e)===oc};fe.isMemo=function(e){return Vt(e)===rc};fe.isPortal=function(e){return Vt(e)===qh};fe.isProfiler=function(e){return Vt(e)===Xu};fe.isStrictMode=function(e){return Vt(e)===Yu};fe.isSuspense=function(e){return Vt(e)===tc};fe.isSuspenseList=function(e){return Vt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===sN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Ux||e.getModuleId!==void 0)};fe.typeOf=Vt;zx.exports=fe;var Ov=zx.exports;const aN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Wx(e){const t=`${e}`.match(aN);return t&&t[1]||""}function Hx(e,t=""){return e.displayName||e.name||Wx(e)||t}function $v(e,t,n){const r=Hx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function lN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Hx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ov.ForwardRef:return $v(e,e.render,"ForwardRef");case Ov.Memo:return $v(e,e.type,"memo");default:return}}}const uN=Object.freeze(Object.defineProperty({__proto__:null,default:lN,getFunctionName:Wx},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},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]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Vx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const cN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function fN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function dN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Vx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{fN(n,t)})},e)}class Qh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const pN=new Qh,hN={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 mN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&hN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function yN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function vN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function gN(e){e.addEventListener("keydown",yN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",vN,!0)}function wN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||mN(t)}function SN(){const e=h.useCallback(o=>{o!=null&&gN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,pN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return wN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const xN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function EN(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const kN=h.createContext(),bN=()=>{const e=h.useContext(kN);return e??!1},CN=h.createContext(void 0);function ON(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?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function $N({props:e,name:t}){const n=h.useContext(CN);return ON({props:e,name:t,theme:{components:n}})}function _N(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Kx={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})(Kx);var Gx=Kx.exports;const TN=Yn(G_),RN=Yn(cN);var qx=Gx;Object.defineProperty(Re,"__esModule",{value:!0});var _v=Re.alpha=Jx;Re.blend=zN;Re.colorChannel=void 0;var Ud=Re.darken=Xh;Re.decomposeColor=Wt;Re.emphasize=Zx;var NN=Re.getContrastRatio=IN;Re.getLuminance=Hl;Re.hexToRgb=Qx;Re.hslToRgb=Xx;var Wd=Re.lighten=Jh;Re.private_safeAlpha=MN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=BN;Re.private_safeEmphasize=FN;Re.private_safeLighten=DN;Re.recomposeColor=pi;Re.rgbToHex=LN;var Tv=qx(TN),AN=qx(RN);function Yh(e,t=0,n=1){return(0,AN.default)(e,t,n)}function Qx(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 PN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Qx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Tv.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,Tv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Yx=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=Yx;const jN=(e,t)=>{try{return Yx(e)}catch{return e}};Re.private_safeColorChannel=jN;function pi(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 LN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>PN(r===3?Math.round(255*n):n)).join("")}`}function Xx(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(Xx(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 IN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Jx(e,t){return e=Wt(e),t=Yh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function MN(e,t,n){try{return Jx(e,t)}catch{return e}}function Xh(e,t){if(e=Wt(e),t=Yh(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 pi(e)}function BN(e,t,n){try{return Xh(e,t)}catch{return e}}function Jh(e,t){if(e=Wt(e),t=Yh(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 pi(e)}function DN(e,t,n){try{return Jh(e,t)}catch{return e}}function Zx(e,t=.15){return Hl(e)>.5?Xh(e,t):Jh(e,t)}function FN(e,t,n){try{return Zx(e,t)}catch{return e}}function zN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const UN=["mode","contrastThreshold","tonalOffset"],Rv={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:Ts.white,default:Ts.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}},of={text:{primary:Ts.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:Ts.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 Nv(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=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function WN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function HN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function VN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function KN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function GN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function qN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function QN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,UN),i=e.primary||WN(t),s=e.secondary||HN(t),a=e.error||VN(t),l=e.info||KN(t),u=e.success||GN(t),c=e.warning||qN(t);function d(S){return NN(S,of.text.primary)>=n?of.text.primary:Rv.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Rs(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Rs(12,k?` (${k})`:"",JSON.stringify(S.main)));return Nv(S,"light",p,r),Nv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:of,light:Rv};return kn(j({common:j({},Ts),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:K_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const YN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function XN(e){return Math.round(e*1e5)/1e5}const Av={textTransform:"uppercase"},Pv='"Roboto", "Helvetica", "Arial", sans-serif';function JN(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Pv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,YN),v=o/14,g=d||(m=>`${m/u*v}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:g(p),lineHeight:y},r===Pv?{letterSpacing:`${XN(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,Av),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,Av),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const ZN=.2,eA=.14,tA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ZN})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${eA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tA})`].join(",")}const nA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],rA=["duration","easing","delay"],oA={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)"},iA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jv(e){return`${Math.round(e)}ms`}function sA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function aA(e){const t=j({},oA,e.easing),n=j({},iA,e.duration);return j({getAutoHeightDuration:sA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,rA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:jv(s)} ${a} ${typeof l=="string"?l:jv(l)}`).join(",")}},e,{easing:t,duration:n})}const lA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,uA);if(e.vars)throw new Error(Rs(18));const a=QN(r),l=Bx(e);let u=kn(l,{mixins:_N(l.breakpoints,n),palette:a,shadows:nA.slice(),typography:JN(a,i),transitions:aA(o),zIndex:j({},lA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Kh({sx:d,theme:this})},u}const fA=cA();var Qs={},sf={exports:{}},Lv;function dA(){return Lv||(Lv=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.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const pA=Yn(tR),hA=Yn(nR),mA=Yn(lR),yA=Yn(uN),vA=Yn(YR),gA=Yn(eN);var hi=Gx;Object.defineProperty(Qs,"__esModule",{value:!0});var wA=Qs.default=AA;Qs.shouldForwardProp=Ja;Qs.systemDefaultTheme=void 0;var Rt=hi(Tx()),Hd=hi(dA()),Iv=OA(pA),SA=hA;hi(mA);hi(yA);var xA=hi(vA),EA=hi(gA);const kA=["ownerState"],bA=["variants"],CA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function eE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(eE=function(r){return r?n:t})(e)}function OA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=eE(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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function $A(e){return Object.keys(e).length===0}function _A(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const TA=Qs.systemDefaultTheme=(0,xA.default)(),RA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return $A(t)?e:t[n]||t}function NA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,kA);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,bA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function AA(e={}){const{themeId:t,defaultTheme:n=TA,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,EA.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Iv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=NA(RA(u))}=a,v=(0,Hd.default)(a,CA),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:_A(s)&&(m=void 0);const p=(0,Iv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,SA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function Zh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const PA=e=>Zh(e)&&e!=="classes",Xr=wA({themeId:q_,defaultTheme:fA,rootShouldForwardProp:PA});function jA(e){return $N(e)}function os(e){return typeof e=="string"}function LA(e,t,n){return e===void 0||os(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function IA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(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 MA(e,t,n){return typeof e=="function"?e(t,n):e}function Mv(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 BA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=Mv(r),l=Mv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const DA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,DA),a=i?{}:MA(r,o),{props:l,internalRef:u}=BA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return LA(n,j({},l,{ref:c}),o)}const FA=2;function tE(e,t){return e-t}function Bv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},VA=e=>e;let Oa;function Fv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function KA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=VA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=dN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(tE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=SN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Vx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=zA(un,l,a),S)le=WA(le,S,l);else{const ro=Bv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Bv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=Dv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>FA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),nt=nf(N=>{if(r)return;Fv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:Fv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ba({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),Gt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:HA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},xN,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const GA=e=>!e||!os(e);function qA(e){return Fx("MuiSlider",e)}const Mt=oN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),QA=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function YA(e){const{children:t,className:n,value:r}=e,o=QA(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const XA=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function zv(e){return e}const JA=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),ZA=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),eP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),tP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${_v(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${_v(e.palette[n].main,.16)}`})}}))]}}),nP=Xr(YA,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),rP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Zh(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),oP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Zh(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),iP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return EN(u,qA,s)},sP=({children:e})=>e,aP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,m,p,y,E,C,x,b,O,T,$;const A=jA({props:t,name:"MuiSlider"}),U=bN(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=zv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=zv}=A,vi=an(A,XA),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=KA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=iP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:JA,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:ZA,wm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:eP,Sm=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:tP,xm=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:nP,cc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:rP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:oP,Em=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,uk=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,ck=(O=de==null?void 0:de.mark)!=null?O:_.mark,fk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,dk=($=de==null?void 0:de.input)!=null?$:_.input,pk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:vi,additionalProps:j({},GA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),hk=tr({elementType:ro,externalSlotProps:uk,ownerState:we,className:le.rail}),mk=tr({elementType:wm,externalSlotProps:pc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:Sm,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),yk=tr({elementType:xm,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:ck,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:fk,ownerState:we,className:le.markLabel}),vk=tr({elementType:Em,getSlotProps:to,externalSlotProps:dk,ownerState:we});return w.jsxs(Tt,j({},pk,{children:[w.jsx(ro,j({},hk)),w.jsx(wm,j({},mk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Xs=Gt[Zn].offset(wc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(cc,j({"data-index":We},vc,!os(cc)&&{markActive:Nn},{style:j({},Xs,vc.style),className:Sr(vc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!os(fc)&&{markLabelActive:Nn},{style:j({},Xs,gc.style),className:Sr(le.markLabel,gc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Xs=Gt[Zn].offset(wc),Nn=nt==="off"?sP:xm;return w.jsx(Nn,j({},!os(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},yk,{children:w.jsx(Sm,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Xs,un(We),yc.style),children:w.jsx(Em,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},vk))}))}),We)})]}))});var Uv=Object.prototype.toString,nE=function(t){var n=Uv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Uv.call(t.callee)==="[object Function]"),r},af,Wv;function lP(){if(Wv)return af;Wv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=nE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),m=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":RP,"%eval%":eval,"%EvalError%":NP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":iE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":AP,"%ReferenceError%":PP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":LP,"%TypedArray%":MP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":jP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var BP=Be(Be(e));zr["%Error.prototype%"]=BP}var DP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},qv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ys=nm,Kl=oE,FP=Ys.call(Function.call,Array.prototype.concat),zP=Ys.call(Function.apply,Array.prototype.splice),Qv=Ys.call(Function.call,String.prototype.replace),Gl=Ys.call(Function.call,String.prototype.slice),UP=Ys.call(Function.call,RegExp.prototype.exec),WP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,HP=/\\(\\)?/g,VP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Qv(t,WP,function(i,s,a,l){o[o.length]=a?Qv(l,HP,"$1"):s||i}),o},KP=function(t,n){var r=t,o;if(Kl(qv,r)&&(o=qv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=DP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(UP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=VP(t),o=r.length>0?r[0]:"",i=KP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],zP(r,FP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},GP=On,nl=GP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var rm=nl,qP=On,rl=qP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var om=rl,Yv=rm,QP=rE,mo=_r,Xv=om,im=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Xv&&Xv(t,n);if(Yv)Yv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new QP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=rm,sE=function(){return!!Vd};sE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var sm=sE,YP=em,XP=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",JP=Object.prototype.toString,ZP=Array.prototype.concat,Jv=im,e3=function(e){return typeof e=="function"&&JP.call(e)==="[object Function]"},aE=sm(),t3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!e3(r)||!r())return}aE?Jv(e,t,n,!0):Jv(e,t,n)},lE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=YP(t);XP&&(r=ZP.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||o3(n)!==n)throw new tg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&eg){var s=eg(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(r3?Zv(t,"length",n,!0,!0):Zv(t,"length",n)),t};(function(e){var t=nm,n=On,r=i3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=rm,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(uE);var mi=uE.exports,cE=On,fE=mi,s3=fE(cE("String.prototype.indexOf")),Kt=function(t,n){var r=cE(t,!!n);return typeof r=="function"&&s3(t,".prototype.")>-1?fE(r):r},a3=em,dE=sc(),pE=Kt,ng=Object,l3=pE("Array.prototype.push"),rg=pE("Object.prototype.propertyIsEnumerable"),u3=dE?Object.getOwnPropertySymbols:null,hE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=ng(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||b3)&&(k3?og(t,"name",n,!0,!0):og(t,"name",n)),t},$3=O3,_3=_r,T3=Object,gE=$3(function(){if(this==null||this!==T3(this))throw new _3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),R3=gE,N3=Jr.supportsDescriptors,A3=Object.getOwnPropertyDescriptor,wE=function(){if(N3&&/a/mig.flags==="gim"){var t=A3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return R3},P3=Jr.supportsDescriptors,j3=wE,L3=Object.getOwnPropertyDescriptor,I3=Object.defineProperty,M3=TypeError,ig=Object.getPrototypeOf,B3=/a/,D3=function(){if(!P3||!ig)throw new M3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=j3(),n=ig(B3),r=L3(n,"flags");return(!r||r.get!==t)&&I3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},F3=Jr,z3=mi,U3=gE,SE=wE,W3=D3,xE=z3(SE());F3(xE,{getPolyfill:SE,implementation:U3,shim:W3});var H3=xE,ol={exports:{}},V3=sc,Zr=function(){return V3()&&!!Symbol.toStringTag},K3=Zr(),G3=Kt,Kd=G3("Object.prototype.toString"),ac=function(t){return K3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},EE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},q3=function(){return ac(arguments)}();ac.isLegacyArguments=EE;var kE=q3?ac:EE;const Q3={},Y3=Object.freeze(Object.defineProperty({__proto__:null,default:Q3},Symbol.toStringTag,{value:"Module"})),X3=Yn(Y3);var am=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&am?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=am&&df&&typeof df.get=="function"?df.get:null,sg=am&&Map.prototype.forEach,lm=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=lm&&pf&&typeof pf.get=="function"?pf.get:null,ag=lm&&Set.prototype.forEach,J3=typeof WeakMap=="function"&&WeakMap.prototype,ss=J3?WeakMap.prototype.has:null,Z3=typeof WeakSet=="function"&&WeakSet.prototype,as=Z3?WeakSet.prototype.has:null,ej=typeof WeakRef=="function"&&WeakRef.prototype,lg=ej?WeakRef.prototype.deref:null,tj=Boolean.prototype.valueOf,nj=Object.prototype.toString,rj=Function.prototype.toString,oj=String.prototype.match,um=String.prototype.slice,fr=String.prototype.replace,ij=String.prototype.toUpperCase,ug=String.prototype.toLowerCase,bE=RegExp.prototype.test,cg=Array.prototype.concat,mn=Array.prototype.join,sj=Array.prototype.slice,fg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,CE=Object.prototype.propertyIsEnumerable,dg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function pg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||bE.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-fg(-e):fg(e);if(r!==e){var o=String(r),i=um.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=X3,hg=Qd.custom,mg=$E(hg)?hg:null,aj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return TE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?pg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?pg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=Cj(i,r);if(typeof o>"u")o=[];else if(_E(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=sj.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!yg(t)){var v=yj(t),g=$a(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if($E(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if(Ej(t)){for(var k="<"+ug.call(String(t.nodeName)),m=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!bj(y)?"["+Xd(y,d)+"]":"[ "+mn.call(y,", ")+" ]"}if(cj(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!CE.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(cg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(mg&&typeof t[mg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(vj(t)){var C=[];return sg&&sg.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),vg("Map",ql.call(t),C,d)}if(Sj(t)){var x=[];return ag&&ag.call(t,function(B){x.push(f(B,t))}),vg("Set",Ql.call(t),x,d)}if(gj(t))return mf("WeakMap");if(xj(t))return mf("WeakSet");if(wj(t))return mf("WeakRef");if(dj(t))return Ai(f(Number(t)));if(hj(t))return Ai(f(Gd.call(t)));if(pj(t))return Ai(tj.call(t));if(fj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!uj(t)&&!yg(t)){var b=$a(t,f),O=dg?dg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?um.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(cg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function OE(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function lj(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function uj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function yg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function cj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function fj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function dj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function pj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function $E(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function hj(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var mj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return mj.call(e,t)}function Tr(e){return nj.call(e)}function yj(e){if(e.name)return e.name;var t=oj.call(rj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _E(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return TE(um.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kj);return OE(o,"single",t)}function kj(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+ij.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function vg(e,t,n,r){var o=r?Xd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function bj(e){for(var t=0;t=0)return!1;return!0}function Cj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=` `+t.prev+t.base;return n+mn.call(e,","+n)+` -`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=bg(t,n);if(o<55296||o>56319)return n+1;var i=bg(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},Cg=function(t,n){if(qj(t)||Sg(t))return vf(t);if(Qj(t)){var r=0;return{next:function(){var i=Zj(t,r),s=Jj(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Yj&&!Xj)ol.exports=function(t){if(t!=null)return Cg(t,!0)};else{var e4=jE,t4=IE,Og=Yt("Map.prototype.forEach",!0),$g=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var _g=Yt("Map.prototype.iterator",!0),Tg=Yt("Set.prototype.iterator",!0);var Rg=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),Ng=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),n4=function(t){if(e4(t)){if(_g)return xg(_g(t));if(Rg)return Rg(t);if(Og){var n=[];return Og(t,function(o,i){kg(n,[i,o])}),vf(n)}}if(t4(t)){if(Tg)return xg(Tg(t));if(Ng)return Ng(t);if($g){var r=[];return $g(t,function(o){kg(r,o)}),vf(r)}}};ol.exports=function(t){return n4(t)||Cg(t)}}}var r4=ol.exports,Ag=function(e){return e!==e},ME=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Ag(t)&&Ag(n))},o4=ME,BE=function(){return typeof Object.is=="function"?Object.is:o4},i4=BE,s4=Jr,a4=function(){var t=i4();return s4(Object,{is:t},{is:function(){return Object.is!==t}}),t},l4=Jr,u4=mi,c4=ME,DE=BE,f4=a4,FE=u4(DE(),Object);l4(FE,{getPolyfill:DE,implementation:c4,shim:f4});var d4=FE,p4=mi,zE=Kt,h4=On,Jd=h4("%ArrayBuffer%",!0),il=zE("ArrayBuffer.prototype.byteLength",!0),m4=zE("Object.prototype.toString"),Pg=!!Jd&&!il&&new Jd(0).slice,jg=!!Pg&&p4(Pg),UE=il||jg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):jg(t,0),!0}catch{return!1}}:Jd?function(t){return m4(t)==="[object ArrayBuffer]"}:function(t){return!1},y4=Date.prototype.getDay,v4=function(t){try{return y4.call(t),!0}catch{return!1}},g4=Object.prototype.toString,w4="[object Date]",S4=Zr(),x4=function(t){return typeof t!="object"||t===null?!1:S4?v4(t):g4.call(t)===w4},Zd=Kt,WE=Zr(),HE,VE,ep,tp;if(WE){HE=Zd("Object.prototype.hasOwnProperty"),VE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var E4=Zd("Object.prototype.toString"),k4=Object.getOwnPropertyDescriptor,b4="[object RegExp]",C4=WE?function(t){if(!t||typeof t!="object")return!1;var n=k4(t,"lastIndex"),r=n&&HE(n,"value");if(!r)return!1;try{VE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:E4(t)===b4},O4=Kt,Lg=O4("SharedArrayBuffer.prototype.byteLength",!0),$4=Lg?function(t){if(!t||typeof t!="object")return!1;try{return Lg(t),!0}catch{return!1}}:function(t){return!1},_4=Number.prototype.toString,T4=function(t){try{return _4.call(t),!0}catch{return!1}},R4=Object.prototype.toString,N4="[object Number]",A4=Zr(),P4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:A4?T4(t):R4.call(t)===N4},KE=Kt,j4=KE("Boolean.prototype.toString"),L4=KE("Object.prototype.toString"),I4=function(t){try{return j4(t),!0}catch{return!1}},M4="[object Boolean]",B4=Zr(),D4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:B4&&Symbol.toStringTag in t?I4(t):L4(t)===M4},np={exports:{}},F4=Object.prototype.toString,z4=em();if(z4){var U4=Symbol.prototype.toString,W4=/^Symbol\(.*\)$/,H4=function(t){return typeof t.valueOf()!="symbol"?!1:W4.test(U4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(F4.call(t)!=="[object Symbol]")return!1;try{return H4(t)}catch{return!1}}}else np.exports=function(t){return!1};var V4=np.exports,rp={exports:{}},Ig=typeof BigInt<"u"&&BigInt,K4=function(){return typeof Ig=="function"&&typeof BigInt=="function"&&typeof Ig(42)=="bigint"&&typeof BigInt(42)=="bigint"},G4=K4();if(G4){var q4=BigInt.prototype.valueOf,Q4=function(t){try{return q4.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Q4(t)}}else rp.exports=function(t){return!1};var Y4=rp.exports,X4=AE,J4=P4,Z4=D4,e5=V4,t5=Y4,n5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(X4(t))return"String";if(J4(t))return"Number";if(Z4(t))return"Boolean";if(e5(t))return"Symbol";if(t5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Mg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Mg?Mg.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var r5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},o5=On,GE=Kt,i5=o5("%WeakSet%",!0),Sf=GE("WeakSet.prototype.has",!0);if(Sf){var xf=GE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof i5}catch{}return!1}}else ip.exports=function(t){return!1};var s5=ip.exports,a5=jE,l5=IE,u5=r5,c5=s5,f5=function(t){if(t&&typeof t=="object"){if(a5(t))return"Map";if(l5(t))return"Set";if(u5(t))return"WeakMap";if(c5(t))return"WeakSet"}return!1},qE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var d5=/^\s*class\b/,ap=function(t){try{var n=qE.call(t);return d5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(qE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,p5="[object Object]",h5="[object Function]",m5="[object GeneratorFunction]",y5="[object HTMLAllCollection]",v5="[object HTML document.all class]",g5="[object HTMLCollection]",w5=typeof Symbol=="function"&&!!Symbol.toStringTag,S5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var x5=document.all;al.call(x5)===al.call(document.all)&&(lp=function(t){if((S5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===y5||n===v5||n===g5||n===p5)&&t("")==null}catch{}return!1})}var E5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(w5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==h5&&n!==m5&&!/^\[object HTML/.test(n)?!1:Ef(t)},k5=E5,b5=Object.prototype.toString,QE=Object.prototype.hasOwnProperty,C5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),b5.call(t)==="[object Array]"?C5(t,n,o):typeof t=="string"?O5(t,n,o):$5(t,n,o)},T5=_5,R5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=R5,N5=typeof globalThis>"u"?cl:globalThis,A5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=P5(),hm=pm("String.prototype.slice"),bf=Object.getPrototypeOf,L5=pm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:M5(t)}return ll?I5(t):null},D5=Kt,Fg=D5("ArrayBuffer.prototype.byteLength",!0),F5=UE,z5=function(t){return F5(t)?Fg?Fg(t):t.byteLength:NaN},XE=w3,$n=Kt,zg=W3,U5=On,oi=r4,W5=RE,Ug=d4,Wg=EE,Hg=NE,Vg=UE,Kg=x4,Gg=C4,qg=$4,Qg=Zh,Yg=n5,Xg=f5,Jg=B5,Zg=z5,e0=$n("SharedArrayBuffer.prototype.byteLength",!0),t0=$n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,n0=$n("Object.prototype.toString"),nu=U5("%Set%",!0),cp=$n("Map.prototype.has",!0),ru=$n("Map.prototype.get",!0),r0=$n("Map.prototype.size",!0),ou=$n("Set.prototype.add",!0),JE=$n("Set.prototype.delete",!0),iu=$n("Set.prototype.has",!0),ul=$n("Set.prototype.size",!0);function o0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return JE(e,i.value),!0;return!1}function ZE(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function H5(e,t,n,r,o,i){var s=ZE(n);if(s!=null)return s;var a=ru(t,s),l=XE({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!on(r,a,l,i)?!1:!cp(e,s)&&on(r,a,l,i)}function V5(e,t,n){var r=ZE(n);return r??(iu(t,r)&&!iu(e,r))}function i0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,ru(t,l),o,i))return JE(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Ug(e,t):e===t)return!0;var i=Yg(e),s=Yg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Ug(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),q5(e,t,o,r)}function s0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function K5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!V5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!o0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!o0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function G5(e,t,n,r){if(r0(e)!==r0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!on(c,d,n,r)){if(n.strict||!H5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!i0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(ru(e,u),d,n,r))&&!i0(l,e,u,d,XE({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function q5(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||n0(e)!==n0(t)||Wg(e)!==Wg(t))return!1;var s=Hg(e),a=Hg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Gg(e),d=Gg(t);if(c!==d||(c||d)&&(e.source!==t.source||zg(e)!==zg(t)))return!1;var f=Kg(e),v=Kg(t);if(f!==v||(f||v)&&t0(e)!==t0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var g=Jg(e),S=Jg(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=Xg(e),T=Xg(t);return O!==T?!1:O==="Set"||T==="Set"?K5(e,t,n,r):O==="Map"?G5(e,t,n,r):!0}var Q5=function(t,n,r){return on(t,n,r,W5())};const Y5=si(Q5),mm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!Y5(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},ek=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Fl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(sP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>g(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx(Oh,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(bu,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},mm);ek.displayName="SliderComponent";const tk=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Fl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},mm);tk.displayName="EnumComponent";const ym=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),ox(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(zs,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},mm);ym.displayName="MethodComponent";const nk=ne.memo(e=>{const{fullAccessPath:t,docString:n,value:r,addNotification:o,displayName:i,id:s}=e;if(!e.render)return null;Cn();const a=h.useRef(null),[l,u]=h.useState(!1),c=t.split(".").at(-1),d=t.slice(0,-(c.length+1));h.useEffect(()=>{let v;r===null?v=`${t} task was stopped.`:v=`${t} was started.`,o(v),u(!1)},[e.value]);const f=async v=>{v.preventDefault();let g;r!=null?g=`stop_${c}`:g=`start_${c}`;const S=[d,g].filter(k=>k).join(".");u(!0),ox(S)};return w.jsxs("div",{className:"component asyncMethodComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:f,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(zs,{id:`button-${s}`,type:"submit",children:l?w.jsx(MS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});nk.displayName="AsyncMethodComponent";const rk=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});rk.displayName="StringComponent";const ok=ne.memo(e=>{const{value:t,docString:n,isInstantUpdate:r,addNotification:o,id:i}=e;return Cn(),w.jsxs("div",{className:"listComponent",id:i,children:[!1,w.jsx(ln,{docString:n}),t.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:r,addNotification:o},s.full_access_path))]})});ok.displayName="ListComponent";var X5=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z5(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=J5(e,X5);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var eL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=tL(e,eL);return ne.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const vm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=h.useState(()=>{const a=localStorage.getItem(`dataServiceComponent-${o}-open`);return a!==null?JSON.parse(a):!0});return h.useEffect(()=>{localStorage.setItem(`dataServiceComponent-${o}-open`,JSON.stringify(i))},[i]),r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:i,children:w.jsx(Do.Body,{children:Object.entries(e).map(([a,l])=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},a))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:Object.entries(e).map(([a,l])=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},a))})});vm.displayName="DataServiceComponent";const ik=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(ym,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(vm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});ik.displayName="DeviceConnectionComponent";const sk=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(oS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});sk.displayName="ImageComponent";function rL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const ak=ne.memo(e=>{const{value:t,docString:n,isInstantUpdate:r,addNotification:o,id:i}=e;Cn();const s=Object.values(t);return w.jsxs("div",{className:"listComponent",id:i,children:[!1,w.jsx(ln,{docString:n}),s.map(a=>w.jsx(ii,{attribute:a,isInstantUpdate:r,addNotification:o},a.full_access_path))]})});ak.displayName="DictComponent";const oL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},iL=e=>{const t=[],n=sx(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return oL(t)};function yo(e,t=()=>{}){B_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=rL(r),i=h.useContext(ax);let s=iL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(lx,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(ek,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(tk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?e.async?w.jsx(nk,{fullAccessPath:r,docString:e.doc,value:e.value,addNotification:n,displayName:s,id:o,render:e.frontend_render}):w.jsx(ym,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(rk,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="DataService"?w.jsx(vm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(ik,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(ok,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(ak,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(sk,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const sL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:z_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},aL=()=>{const[e,t]=h.useReducer(sL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=h.useState(()=>{const x=localStorage.getItem("isInstantUpdate");return x!==null?JSON.parse(x):!1}),[l,u]=h.useState(!1),[c,d]=h.useState(()=>{const x=localStorage.getItem("showNotification");return x!==null?JSON.parse(x):!1}),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${Ui}:${Wi}/custom.css`).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`http://${Ui}:${Wi}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`http://${Ui}:${Wi}/service-properties`).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`http://${Ui}:${Wi}/web-settings`).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]),h.useEffect(()=>{localStorage.setItem("isInstantUpdate",JSON.stringify(s))},[s]),h.useEffect(()=>{localStorage.setItem("showNotification",JSON.stringify(c))},[c]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(Kw,{fluid:!0,children:[w.jsx(Xc.Brand,{children:n}),w.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),w.jsx(ix,{showNotification:c,notifications:f,removeNotificationById:m}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(ax.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(jd,{connectionStatus:g})]}):w.jsx(jd,{connectionStatus:g})};var pp={},a0=_w;pp.createRoot=a0.createRoot,pp.hydrateRoot=a0.hydrateRoot;pp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(aL,{})})); +`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=Cg(t,n);if(o<55296||o>56319)return n+1;var i=Cg(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},Og=function(t,n){if(Qj(t)||xg(t))return vf(t);if(Yj(t)){var r=0;return{next:function(){var i=e4(t,r),s=Zj(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Xj&&!Jj)ol.exports=function(t){if(t!=null)return Og(t,!0)};else{var t4=LE,n4=ME,$g=Yt("Map.prototype.forEach",!0),_g=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Tg=Yt("Map.prototype.iterator",!0),Rg=Yt("Set.prototype.iterator",!0);var Ng=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),Ag=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),r4=function(t){if(t4(t)){if(Tg)return Eg(Tg(t));if(Ng)return Ng(t);if($g){var n=[];return $g(t,function(o,i){bg(n,[i,o])}),vf(n)}}if(n4(t)){if(Rg)return Eg(Rg(t));if(Ag)return Ag(t);if(_g){var r=[];return _g(t,function(o){bg(r,o)}),vf(r)}}};ol.exports=function(t){return r4(t)||Og(t)}}}var o4=ol.exports,Pg=function(e){return e!==e},BE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Pg(t)&&Pg(n))},i4=BE,DE=function(){return typeof Object.is=="function"?Object.is:i4},s4=DE,a4=Jr,l4=function(){var t=s4();return a4(Object,{is:t},{is:function(){return Object.is!==t}}),t},u4=Jr,c4=mi,f4=BE,FE=DE,d4=l4,zE=c4(FE(),Object);u4(zE,{getPolyfill:FE,implementation:f4,shim:d4});var p4=zE,h4=mi,UE=Kt,m4=On,Jd=m4("%ArrayBuffer%",!0),il=UE("ArrayBuffer.prototype.byteLength",!0),y4=UE("Object.prototype.toString"),jg=!!Jd&&!il&&new Jd(0).slice,Lg=!!jg&&h4(jg),WE=il||Lg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):Lg(t,0),!0}catch{return!1}}:Jd?function(t){return y4(t)==="[object ArrayBuffer]"}:function(t){return!1},v4=Date.prototype.getDay,g4=function(t){try{return v4.call(t),!0}catch{return!1}},w4=Object.prototype.toString,S4="[object Date]",x4=Zr(),E4=function(t){return typeof t!="object"||t===null?!1:x4?g4(t):w4.call(t)===S4},Zd=Kt,HE=Zr(),VE,KE,ep,tp;if(HE){VE=Zd("Object.prototype.hasOwnProperty"),KE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var k4=Zd("Object.prototype.toString"),b4=Object.getOwnPropertyDescriptor,C4="[object RegExp]",O4=HE?function(t){if(!t||typeof t!="object")return!1;var n=b4(t,"lastIndex"),r=n&&VE(n,"value");if(!r)return!1;try{KE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:k4(t)===C4},$4=Kt,Ig=$4("SharedArrayBuffer.prototype.byteLength",!0),_4=Ig?function(t){if(!t||typeof t!="object")return!1;try{return Ig(t),!0}catch{return!1}}:function(t){return!1},T4=Number.prototype.toString,R4=function(t){try{return T4.call(t),!0}catch{return!1}},N4=Object.prototype.toString,A4="[object Number]",P4=Zr(),j4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:P4?R4(t):N4.call(t)===A4},GE=Kt,L4=GE("Boolean.prototype.toString"),I4=GE("Object.prototype.toString"),M4=function(t){try{return L4(t),!0}catch{return!1}},B4="[object Boolean]",D4=Zr(),F4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:D4&&Symbol.toStringTag in t?M4(t):I4(t)===B4},np={exports:{}},z4=Object.prototype.toString,U4=tm();if(U4){var W4=Symbol.prototype.toString,H4=/^Symbol\(.*\)$/,V4=function(t){return typeof t.valueOf()!="symbol"?!1:H4.test(W4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(z4.call(t)!=="[object Symbol]")return!1;try{return V4(t)}catch{return!1}}}else np.exports=function(t){return!1};var K4=np.exports,rp={exports:{}},Mg=typeof BigInt<"u"&&BigInt,G4=function(){return typeof Mg=="function"&&typeof BigInt=="function"&&typeof Mg(42)=="bigint"&&typeof BigInt(42)=="bigint"},q4=G4();if(q4){var Q4=BigInt.prototype.valueOf,Y4=function(t){try{return Q4.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Y4(t)}}else rp.exports=function(t){return!1};var X4=rp.exports,J4=PE,Z4=j4,e5=F4,t5=K4,n5=X4,r5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(J4(t))return"String";if(Z4(t))return"Number";if(e5(t))return"Boolean";if(t5(t))return"Symbol";if(n5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Bg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Bg?Bg.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var o5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},i5=On,qE=Kt,s5=i5("%WeakSet%",!0),Sf=qE("WeakSet.prototype.has",!0);if(Sf){var xf=qE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof s5}catch{}return!1}}else ip.exports=function(t){return!1};var a5=ip.exports,l5=LE,u5=ME,c5=o5,f5=a5,d5=function(t){if(t&&typeof t=="object"){if(l5(t))return"Map";if(u5(t))return"Set";if(c5(t))return"WeakMap";if(f5(t))return"WeakSet"}return!1},QE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var p5=/^\s*class\b/,ap=function(t){try{var n=QE.call(t);return p5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(QE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,h5="[object Object]",m5="[object Function]",y5="[object GeneratorFunction]",v5="[object HTMLAllCollection]",g5="[object HTML document.all class]",w5="[object HTMLCollection]",S5=typeof Symbol=="function"&&!!Symbol.toStringTag,x5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var E5=document.all;al.call(E5)===al.call(document.all)&&(lp=function(t){if((x5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===v5||n===g5||n===w5||n===h5)&&t("")==null}catch{}return!1})}var k5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(S5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==m5&&n!==y5&&!/^\[object HTML/.test(n)?!1:Ef(t)},b5=k5,C5=Object.prototype.toString,YE=Object.prototype.hasOwnProperty,O5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),C5.call(t)==="[object Array]"?O5(t,n,o):typeof t=="string"?$5(t,n,o):_5(t,n,o)},R5=T5,N5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=N5,A5=typeof globalThis>"u"?cl:globalThis,P5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=j5(),mm=hm("String.prototype.slice"),bf=Object.getPrototypeOf,I5=hm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:B5(t)}return ll?M5(t):null},F5=Kt,zg=F5("ArrayBuffer.prototype.byteLength",!0),z5=WE,U5=function(t){return z5(t)?zg?zg(t):t.byteLength:NaN},JE=S3,$n=Kt,Ug=H3,W5=On,oi=o4,H5=NE,Wg=p4,Hg=kE,Vg=AE,Kg=WE,Gg=E4,qg=O4,Qg=_4,Yg=em,Xg=r5,Jg=d5,Zg=D5,e0=U5,t0=$n("SharedArrayBuffer.prototype.byteLength",!0),n0=$n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,r0=$n("Object.prototype.toString"),nu=W5("%Set%",!0),cp=$n("Map.prototype.has",!0),ru=$n("Map.prototype.get",!0),o0=$n("Map.prototype.size",!0),ou=$n("Set.prototype.add",!0),ZE=$n("Set.prototype.delete",!0),iu=$n("Set.prototype.has",!0),ul=$n("Set.prototype.size",!0);function i0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return ZE(e,i.value),!0;return!1}function ek(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function V5(e,t,n,r,o,i){var s=ek(n);if(s!=null)return s;var a=ru(t,s),l=JE({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!on(r,a,l,i)?!1:!cp(e,s)&&on(r,a,l,i)}function K5(e,t,n){var r=ek(n);return r??(iu(t,r)&&!iu(e,r))}function s0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,ru(t,l),o,i))return ZE(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Wg(e,t):e===t)return!0;var i=Xg(e),s=Xg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Wg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),Q5(e,t,o,r)}function a0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function G5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!K5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!i0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!i0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function q5(e,t,n,r){if(o0(e)!==o0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!on(c,d,n,r)){if(n.strict||!V5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!s0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(ru(e,u),d,n,r))&&!s0(l,e,u,d,JE({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function Q5(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||r0(e)!==r0(t)||Hg(e)!==Hg(t))return!1;var s=Vg(e),a=Vg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=qg(e),d=qg(t);if(c!==d||(c||d)&&(e.source!==t.source||Ug(e)!==Ug(t)))return!1;var f=Gg(e),v=Gg(t);if(f!==v||(f||v)&&n0(e)!==n0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var g=Zg(e),S=Zg(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=Jg(e),T=Jg(t);return O!==T?!1:O==="Set"||T==="Set"?G5(e,t,n,r):O==="Map"?q5(e,t,n,r):!0}var Y5=function(t,n,r){return on(t,n,r,H5())};const X5=si(Y5),ym=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!X5(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},tk=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Fl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(aP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>g(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx($h,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(bu,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},ym);tk.displayName="SliderComponent";const nk=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Fl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},ym);nk.displayName="EnumComponent";const vm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),ix(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(zs,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},ym);vm.displayName="MethodComponent";const rk=ne.memo(e=>{const{fullAccessPath:t,docString:n,value:r,addNotification:o,displayName:i,id:s}=e;if(!e.render)return null;Cn();const a=h.useRef(null),[l,u]=h.useState(!1),c=t.split(".").at(-1),d=t.slice(0,-(c.length+1));h.useEffect(()=>{let v;r===null?v=`${t} task was stopped.`:v=`${t} was started.`,o(v),u(!1)},[e.value]);const f=async v=>{v.preventDefault();let g;r!=null?g=`stop_${c}`:g=`start_${c}`;const S=[d,g].filter(k=>k).join(".");u(!0),ix(S)};return w.jsxs("div",{className:"component asyncMethodComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:f,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(zs,{id:`button-${s}`,type:"submit",children:l?w.jsx(BS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});rk.displayName="AsyncMethodComponent";const ok=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});ok.displayName="StringComponent";const ik=ne.memo(e=>{const{value:t,docString:n,isInstantUpdate:r,addNotification:o,id:i}=e;return Cn(),w.jsxs("div",{className:"listComponent",id:i,children:[!1,w.jsx(ln,{docString:n}),t.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:r,addNotification:o},s.full_access_path))]})});ik.displayName="ListComponent";var J5=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Z5(e,J5);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var tL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=nL(e,tL);return ne.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function pp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const gm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=pp(`dataServiceComponent-${o}-open`,!0);return r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:i,children:w.jsx(Do.Body,{children:Object.entries(e).map(([a,l])=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},a))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:Object.entries(e).map(([a,l])=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},a))})});gm.displayName="DataServiceComponent";const sk=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(vm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(gm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});sk.displayName="DeviceConnectionComponent";const ak=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(iS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});ak.displayName="ImageComponent";function oL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const lk=ne.memo(e=>{const{value:t,docString:n,isInstantUpdate:r,addNotification:o,id:i}=e;Cn();const s=Object.values(t);return w.jsxs("div",{className:"listComponent",id:i,children:[!1,w.jsx(ln,{docString:n}),s.map(a=>w.jsx(ii,{attribute:a,isInstantUpdate:r,addNotification:o},a.full_access_path))]})});lk.displayName="DictComponent";const iL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},sL=e=>{const t=[],n=ax(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return iL(t)};function yo(e,t=()=>{}){D_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=oL(r),i=h.useContext(lx);let s=sL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(ux,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(tk,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(nk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?e.async?w.jsx(rk,{fullAccessPath:r,docString:e.doc,value:e.value,addNotification:n,displayName:s,id:o,render:e.frontend_render}):w.jsx(vm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(ok,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="DataService"?w.jsx(gm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(sk,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(ik,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(lk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(ak,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const aL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:U_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},lL=()=>{const[e,t]=h.useReducer(aL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=pp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=pp("showNotification",!1),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${Ui}:${Wi}/custom.css`).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`http://${Ui}:${Wi}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`http://${Ui}:${Wi}/service-properties`).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`http://${Ui}:${Wi}/web-settings`).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(Gw,{fluid:!0,children:[w.jsx(Xc.Brand,{children:n}),w.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),w.jsx(sx,{showNotification:c,notifications:f,removeNotificationById:m}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(lx.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(jd,{connectionStatus:g})]}):w.jsx(jd,{connectionStatus:g})};var hp={},l0=Tw;hp.createRoot=l0.createRoot,hp.hydrateRoot=l0.hydrateRoot;hp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(lL,{})})); diff --git a/src/pydase/frontend/index.html b/src/pydase/frontend/index.html index 99709a7..364f2c5 100644 --- a/src/pydase/frontend/index.html +++ b/src/pydase/frontend/index.html @@ -6,7 +6,7 @@ - +