@interopio/intent-resolver-ui 4.6.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -956,21 +956,21 @@
956
956
  * This source code is licensed under the MIT license found in the
957
957
  * LICENSE file in the root directory of this source tree.
958
958
  */
959
- var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$2=Symbol.for("react.fragment"),q$2=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$1=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z$2=Symbol.iterator;function A$1(a){if(null===a||"object"!==typeof a)return null;a=z$2&&a[z$2]||a["@@iterator"];return "function"===typeof a?a:null}
960
- var B$2={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$2=Object.assign,D$2={};function E$2(a,b,e){this.props=a;this.context=b;this.refs=D$2;this.updater=e||B$2;}E$2.prototype.isReactComponent={};
961
- E$2.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E$2.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F$1(){}F$1.prototype=E$2.prototype;function G$2(a,b,e){this.props=a;this.context=b;this.refs=D$2;this.updater=e||B$2;}var H$2=G$2.prototype=new F$1;
962
- H$2.constructor=G$2;C$2(H$2,E$2.prototype);H$2.isPureReactComponent=!0;var I$2=Array.isArray,J$1=Object.prototype.hasOwnProperty,K$2={current:null},L$2={key:!0,ref:!0,__self:!0,__source:!0};
963
- function M$2(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J$1.call(b,d)&&!L$2.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l$1,type:a,key:k,ref:h,props:c,_owner:K$2.current}}
964
- function N$2(a,b){return {$$typeof:l$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O$1(a){return "object"===typeof a&&null!==a&&a.$$typeof===l$1}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P$2=/\/+/g;function Q$2(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
965
- function R$2(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l$1:case n$1:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q$2(h,0):d,I$2(c)?(e="",null!=a&&(e=a.replace(P$2,"$&/")+"/"),R$2(c,b,e,"",function(a){return a})):null!=c&&(O$1(c)&&(c=N$2(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P$2,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I$2(a))for(var g=0;g<a.length;g++){k=
966
- a[g];var f=d+Q$2(k,g);h+=R$2(k,b,e,f,c);}else if(f=A$1(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q$2(k,g++),h+=R$2(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
959
+ var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$2=Symbol.for("react.fragment"),q$2=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$1=Symbol.for("react.forward_ref"),w$1=Symbol.for("react.suspense"),x$1=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z$2=Symbol.iterator;function A$2(a){if(null===a||"object"!==typeof a)return null;a=z$2&&a[z$2]||a["@@iterator"];return "function"===typeof a?a:null}
960
+ var B$2={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$2={};function E$1(a,b,e){this.props=a;this.context=b;this.refs=D$2;this.updater=e||B$2;}E$1.prototype.isReactComponent={};
961
+ E$1.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E$1.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F$1(){}F$1.prototype=E$1.prototype;function G$2(a,b,e){this.props=a;this.context=b;this.refs=D$2;this.updater=e||B$2;}var H$2=G$2.prototype=new F$1;
962
+ H$2.constructor=G$2;C$1(H$2,E$1.prototype);H$2.isPureReactComponent=!0;var I$1=Array.isArray,J$1=Object.prototype.hasOwnProperty,K$2={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};
963
+ function M$2(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J$1.call(b,d)&&!L$1.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l$1,type:a,key:k,ref:h,props:c,_owner:K$2.current}}
964
+ function N$2(a,b){return {$$typeof:l$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O$2(a){return "object"===typeof a&&null!==a&&a.$$typeof===l$1}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P$2=/\/+/g;function Q$2(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
965
+ function R$2(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l$1:case n$1:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q$2(h,0):d,I$1(c)?(e="",null!=a&&(e=a.replace(P$2,"$&/")+"/"),R$2(c,b,e,"",function(a){return a})):null!=c&&(O$2(c)&&(c=N$2(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P$2,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I$1(a))for(var g=0;g<a.length;g++){k=
966
+ a[g];var f=d+Q$2(k,g);h+=R$2(k,b,e,f,c);}else if(f=A$2(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q$2(k,g++),h+=R$2(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
967
967
  function S$2(a,b,e){if(null==a)return a;var d=[],c=0;R$2(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T$2(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
968
968
  var U$2={current:null},V$2={transition:null},W$2={ReactCurrentDispatcher:U$2,ReactCurrentBatchConfig:V$2,ReactCurrentOwner:K$2};function X$2(){throw Error("act(...) is not supported in production builds of React.");}
969
- react_production_min.Children={map:S$2,forEach:function(a,b,e){S$2(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S$2(a,function(){b++;});return b},toArray:function(a){return S$2(a,function(a){return a})||[]},only:function(a){if(!O$1(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E$2;react_production_min.Fragment=p$2;react_production_min.Profiler=r;react_production_min.PureComponent=G$2;react_production_min.StrictMode=q$2;react_production_min.Suspense=w;
969
+ react_production_min.Children={map:S$2,forEach:function(a,b,e){S$2(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S$2(a,function(){b++;});return b},toArray:function(a){return S$2(a,function(a){return a})||[]},only:function(a){if(!O$2(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E$1;react_production_min.Fragment=p$2;react_production_min.Profiler=r;react_production_min.PureComponent=G$2;react_production_min.StrictMode=q$2;react_production_min.Suspense=w$1;
970
970
  react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$2;react_production_min.act=X$2;
971
- react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C$2({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K$2.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J$1.call(b,f)&&!L$2.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
971
+ react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C$1({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K$2.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J$1.call(b,f)&&!L$1.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
972
972
  for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l$1,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};react_production_min.createElement=M$2;react_production_min.createFactory=function(a){var b=M$2.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
973
- react_production_min.forwardRef=function(a){return {$$typeof:v$1,render:a}};react_production_min.isValidElement=O$1;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T$2}};react_production_min.memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V$2.transition;V$2.transition={};try{a();}finally{V$2.transition=b;}};react_production_min.unstable_act=X$2;react_production_min.useCallback=function(a,b){return U$2.current.useCallback(a,b)};react_production_min.useContext=function(a){return U$2.current.useContext(a)};
973
+ react_production_min.forwardRef=function(a){return {$$typeof:v$1,render:a}};react_production_min.isValidElement=O$2;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T$2}};react_production_min.memo=function(a,b){return {$$typeof:x$1,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V$2.transition;V$2.transition={};try{a();}finally{V$2.transition=b;}};react_production_min.unstable_act=X$2;react_production_min.useCallback=function(a,b){return U$2.current.useCallback(a,b)};react_production_min.useContext=function(a){return U$2.current.useContext(a)};
974
974
  react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(a){return U$2.current.useDeferredValue(a)};react_production_min.useEffect=function(a,b){return U$2.current.useEffect(a,b)};react_production_min.useId=function(){return U$2.current.useId()};react_production_min.useImperativeHandle=function(a,b,e){return U$2.current.useImperativeHandle(a,b,e)};react_production_min.useInsertionEffect=function(a,b){return U$2.current.useInsertionEffect(a,b)};react_production_min.useLayoutEffect=function(a,b){return U$2.current.useLayoutEffect(a,b)};
975
975
  react_production_min.useMemo=function(a,b){return U$2.current.useMemo(a,b)};react_production_min.useReducer=function(a,b,e){return U$2.current.useReducer(a,b,e)};react_production_min.useRef=function(a){return U$2.current.useRef(a)};react_production_min.useState=function(a){return U$2.current.useState(a)};react_production_min.useSyncExternalStore=function(a,b,e){return U$2.current.useSyncExternalStore(a,b,e)};react_production_min.useTransition=function(){return U$2.current.useTransition()};react_production_min.version="18.3.1";
976
976
 
@@ -1032,106 +1032,106 @@
1032
1032
  * This source code is licensed under the MIT license found in the
1033
1033
  * LICENSE file in the root directory of this source tree.
1034
1034
  */
1035
- var aa$1=reactExports,ca$1=schedulerExports;function p$1(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da$1=new Set,ea$1={};function fa$1(a,b){ha$1(a,b);ha$1(a+"Capture",b);}
1035
+ var aa=reactExports,ca=schedulerExports;function p$1(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da$1=new Set,ea$1={};function fa$1(a,b){ha$1(a,b);ha$1(a+"Capture",b);}
1036
1036
  function ha$1(a,b){ea$1[a]=b;for(a=0;a<b.length;a++)da$1.add(b[a]);}
1037
- var ia$1=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ja$1=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la$1=
1038
- {},ma$1={};function oa$1(a){if(ja$1.call(ma$1,a))return !0;if(ja$1.call(la$1,a))return !1;if(ka.test(a))return ma$1[a]=!0;la$1[a]=!0;return !1}function pa$1(a,b,c,d){if(null!==c&&0===c.type)return !1;switch(typeof b){case "function":case "symbol":return !0;case "boolean":if(d)return !1;if(null!==c)return !c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return "data-"!==a&&"aria-"!==a;default:return !1}}
1037
+ var ia$1=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ja$1=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la=
1038
+ {},ma={};function oa$1(a){if(ja$1.call(ma,a))return !0;if(ja$1.call(la,a))return !1;if(ka.test(a))return ma[a]=!0;la[a]=!0;return !1}function pa$1(a,b,c,d){if(null!==c&&0===c.type)return !1;switch(typeof b){case "function":case "symbol":return !0;case "boolean":if(d)return !1;if(null!==c)return !c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return "data-"!==a&&"aria-"!==a;default:return !1}}
1039
1039
  function qa$1(a,b,c,d){if(null===b||"undefined"===typeof b||pa$1(a,b,c,d))return !0;if(d)return !1;if(null!==c)switch(c.type){case 3:return !b;case 4:return !1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return !1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g;}var z$1={};
1040
1040
  "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){z$1[a]=new v(a,0,!1,a,null,!1,!1);});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];z$1[b]=new v(b,1,!1,a[1],null,!1,!1);});["contentEditable","draggable","spellCheck","value"].forEach(function(a){z$1[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1);});
1041
1041
  ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){z$1[a]=new v(a,2,!1,a,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(a){z$1[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1);});
1042
- ["checked","multiple","muted","selected"].forEach(function(a){z$1[a]=new v(a,3,!0,a,null,!1,!1);});["capture","download"].forEach(function(a){z$1[a]=new v(a,4,!1,a,null,!1,!1);});["cols","rows","size","span"].forEach(function(a){z$1[a]=new v(a,6,!1,a,null,!1,!1);});["rowSpan","start"].forEach(function(a){z$1[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1);});var ra$1=/[\-:]([a-z])/g;function sa$1(a){return a[1].toUpperCase()}
1042
+ ["checked","multiple","muted","selected"].forEach(function(a){z$1[a]=new v(a,3,!0,a,null,!1,!1);});["capture","download"].forEach(function(a){z$1[a]=new v(a,4,!1,a,null,!1,!1);});["cols","rows","size","span"].forEach(function(a){z$1[a]=new v(a,6,!1,a,null,!1,!1);});["rowSpan","start"].forEach(function(a){z$1[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1);});var ra$1=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}
1043
1043
  "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(a){var b=a.replace(ra$1,
1044
- sa$1);z$1[b]=new v(b,1,!1,a,null,!1,!1);});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(ra$1,sa$1);z$1[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1);});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(ra$1,sa$1);z$1[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1);});["tabIndex","crossOrigin"].forEach(function(a){z$1[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1);});
1044
+ sa);z$1[b]=new v(b,1,!1,a,null,!1,!1);});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(ra$1,sa);z$1[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1);});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(ra$1,sa);z$1[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1);});["tabIndex","crossOrigin"].forEach(function(a){z$1[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1);});
1045
1045
  z$1.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){z$1[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0);});
1046
1046
  function ta$1(a,b,c,d){var e=z$1.hasOwnProperty(b)?z$1[b]:null;if(null!==e?0!==e.type:d||!(2<b.length)||"o"!==b[0]&&"O"!==b[0]||"n"!==b[1]&&"N"!==b[1])qa$1(b,c,e,d)&&(c=null),d||null===e?oa$1(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,""+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:"":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?"":""+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)));}
1047
- var ua$1=aa$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya$1=Symbol.for("react.fragment"),za$1=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga$1=Symbol.for("react.memo"),Ha$1=Symbol.for("react.lazy");var Ia=Symbol.for("react.offscreen");var Ja=Symbol.iterator;function Ka$1(a){if(null===a||"object"!==typeof a)return null;a=Ja&&a[Ja]||a["@@iterator"];return "function"===typeof a?a:null}var A=Object.assign,La;function Ma(a){if(void 0===La)try{throw Error();}catch(c){var b=c.stack.trim().match(/\n( *(at )?)/);La=b&&b[1]||"";}return "\n"+La+a}var Na=!1;
1048
- function Oa$1(a,b){if(!a||Na)return "";Na=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error();},Object.defineProperty(b.prototype,"props",{set:function(){throw Error();}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[]);}catch(l){var d=l;}Reflect.construct(a,[],b);}else {try{b.call();}catch(l){d=l;}a.call(b.prototype);}else {try{throw Error();}catch(l){d=l;}a();}}catch(l){if(l&&d&&"string"===typeof l.stack){for(var e=l.stack.split("\n"),
1047
+ var ua$1=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba$1=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da$1=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy");var Ia=Symbol.for("react.offscreen");var Ja=Symbol.iterator;function Ka$1(a){if(null===a||"object"!==typeof a)return null;a=Ja&&a[Ja]||a["@@iterator"];return "function"===typeof a?a:null}var A$1=Object.assign,La;function Ma(a){if(void 0===La)try{throw Error();}catch(c){var b=c.stack.trim().match(/\n( *(at )?)/);La=b&&b[1]||"";}return "\n"+La+a}var Na=!1;
1048
+ function Oa(a,b){if(!a||Na)return "";Na=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error();},Object.defineProperty(b.prototype,"props",{set:function(){throw Error();}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[]);}catch(l){var d=l;}Reflect.construct(a,[],b);}else {try{b.call();}catch(l){d=l;}a.call(b.prototype);}else {try{throw Error();}catch(l){d=l;}a();}}catch(l){if(l&&d&&"string"===typeof l.stack){for(var e=l.stack.split("\n"),
1049
1049
  f=d.stack.split("\n"),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(1!==g||1!==h){do if(g--,h--,0>h||e[g]!==f[h]){var k="\n"+e[g].replace(" at new "," at ");a.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c;}return (a=a?a.displayName||a.name:"")?Ma(a):""}
1050
- function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa$1(a.type,!1),a;case 11:return a=Oa$1(a.type.render,!1),a;case 1:return a=Oa$1(a.type,!0),a;default:return ""}}
1051
- function Qa$1(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case ya$1:return "Fragment";case wa:return "Portal";case Aa:return "Profiler";case za$1:return "StrictMode";case Ea:return "Suspense";case Fa:return "SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return (a.displayName||"Context")+".Consumer";case Ba:return (a._context.displayName||"Context")+".Provider";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||
1052
- b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case Ga$1:return b=a.displayName||null,null!==b?b:Qa$1(a.type)||"Memo";case Ha$1:b=a._payload;a=a._init;try{return Qa$1(a(b))}catch(c){}}return null}
1053
- function Ra(a){var b=a.type;switch(a.tag){case 24:return "Cache";case 9:return (b.displayName||"Context")+".Consumer";case 10:return (b._context.displayName||"Context")+".Provider";case 18:return "DehydratedFragment";case 11:return a=b.render,a=a.displayName||a.name||"",b.displayName||(""!==a?"ForwardRef("+a+")":"ForwardRef");case 7:return "Fragment";case 5:return b;case 4:return "Portal";case 3:return "Root";case 6:return "Text";case 16:return Qa$1(b);case 8:return b===za$1?"StrictMode":"Mode";case 22:return "Offscreen";
1050
+ function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return ""}}
1051
+ function Qa$1(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case ya:return "Fragment";case wa:return "Portal";case Aa:return "Profiler";case za:return "StrictMode";case Ea:return "Suspense";case Fa:return "SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return (a.displayName||"Context")+".Consumer";case Ba$1:return (a._context.displayName||"Context")+".Provider";case Da$1:var b=a.render;a=a.displayName;a||(a=b.displayName||
1052
+ b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa$1(a.type)||"Memo";case Ha:b=a._payload;a=a._init;try{return Qa$1(a(b))}catch(c){}}return null}
1053
+ function Ra(a){var b=a.type;switch(a.tag){case 24:return "Cache";case 9:return (b.displayName||"Context")+".Consumer";case 10:return (b._context.displayName||"Context")+".Provider";case 18:return "DehydratedFragment";case 11:return a=b.render,a=a.displayName||a.name||"",b.displayName||(""!==a?"ForwardRef("+a+")":"ForwardRef");case 7:return "Fragment";case 5:return b;case 4:return "Portal";case 3:return "Root";case 6:return "Text";case 16:return Qa$1(b);case 8:return b===za?"StrictMode":"Mode";case 22:return "Offscreen";
1054
1054
  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("function"===typeof b)return b.displayName||b.name||null;if("string"===typeof b)return b}return null}function Sa(a){switch(typeof a){case "boolean":case "number":case "string":case "undefined":return a;case "object":return a;default:return ""}}
1055
1055
  function Ta(a){var b=a.type;return (a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}
1056
1056
  function Ua$1(a){var b=Ta(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&"undefined"!==typeof c&&"function"===typeof c.get&&"function"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=""+a;f.call(this,a);}});Object.defineProperty(a,b,{enumerable:c.enumerable});return {getValue:function(){return d},setValue:function(a){d=""+a;},stopTracking:function(){a._valueTracker=
1057
- null;delete a[b];}}}}function Va$1(a){a._valueTracker||(a._valueTracker=Ua$1(a));}function Wa$1(a){if(!a)return !1;var b=a._valueTracker;if(!b)return !0;var c=b.getValue();var d="";a&&(d=Ta(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa$1(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}
1058
- function Ya$1(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za$1(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value};}function ab$1(a,b){b=b.checked;null!=b&&ta$1(a,"checked",b,!1);}
1059
- function bb(a,b){ab$1(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if("number"===d){if(0===c&&""===a.value||a.value!=c)a.value=""+c;}else a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d){a.removeAttribute("value");return}b.hasOwnProperty("value")?cb$1(a,b.type,c):b.hasOwnProperty("defaultValue")&&cb$1(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked);}
1060
- function db(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b;}c=a.name;""!==c&&(a.name="");a.defaultChecked=!!a._wrapperState.initialChecked;""!==c&&(a.name=c);}
1061
- function cb$1(a,b,c){if("number"!==b||Xa$1(a.ownerDocument)!==a)null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c);}var eb$1=Array.isArray;
1062
- function fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b["$"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty("$"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0);}else {c=""+Sa(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e]);}null!==b&&(b.selected=!0);}}
1063
- function gb(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(p$1(91));return A({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(p$1(92));if(eb$1(c)){if(1<c.length)throw Error(p$1(93));c=c[0];}b=c;}null==b&&(b="");c=b;}a._wrapperState={initialValue:Sa(c)};}
1064
- function ib(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d);}function jb$1(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b);}function kb(a){switch(a){case "svg":return "http://www.w3.org/2000/svg";case "math":return "http://www.w3.org/1998/Math/MathML";default:return "http://www.w3.org/1999/xhtml"}}
1065
- function lb$1(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?kb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}
1066
- var mb,nb$1=function(a){return "undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)});}:a}(function(a,b){if("http://www.w3.org/2000/svg"!==a.namespaceURI||"innerHTML"in a)a.innerHTML=b;else {mb=mb||document.createElement("div");mb.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild);}});
1067
- function ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b;}
1068
- var pb={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,
1069
- zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a];});});function rb$1(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(""+b).trim():b+"px"}
1070
- function sb$1(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=rb$1(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e;}}var tb$1=A({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});
1071
- function ub(a,b){if(b){if(tb$1[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p$1(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p$1(60));if("object"!==typeof b.dangerouslySetInnerHTML||!("__html"in b.dangerouslySetInnerHTML))throw Error(p$1(61));}if(null!=b.style&&"object"!==typeof b.style)throw Error(p$1(62));}}
1072
- function vb(a,b){if(-1===a.indexOf("-"))return "string"===typeof b.is;switch(a){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 wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb$1=null,Ab$1=null;
1073
- function Bb(a){if(a=Cb(a)){if("function"!==typeof yb)throw Error(p$1(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b));}}function Eb(a){zb$1?Ab$1?Ab$1.push(a):Ab$1=[a]:zb$1=a;}function Fb(){if(zb$1){var a=zb$1,b=Ab$1;Ab$1=zb$1=null;Bb(a);if(b)for(a=0;a<b.length;a++)Bb(b[a]);}}function Gb(a,b){return a(b)}function Hb$1(){}var Ib=!1;function Jb(a,b,c){if(Ib)return a(b,c);Ib=!0;try{return Gb(a,b,c)}finally{if(Ib=!1,null!==zb$1||null!==Ab$1)Hb$1(),Fb();}}
1074
- function Kb$1(a,b){var c=a.stateNode;if(null===c)return null;var d=Db(c);if(null===d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1;}if(a)return null;if(c&&"function"!==
1075
- typeof c)throw Error(p$1(231,b,typeof c));return c}var Lb=!1;if(ia$1)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0;}});window.addEventListener("test",Mb,Mb);window.removeEventListener("test",Mb,Mb);}catch(a){Lb=!1;}function Nb(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l);}catch(m){this.onError(m);}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0;Pb=a;}};function Tb(a,b,c,d,e,f,g,h,k){Ob=!1;Pb=null;Nb.apply(Sb,arguments);}
1076
- function Ub$1(a,b,c,d,e,f,g,h,k){Tb.apply(this,arguments);if(Ob){if(Ob){var l=Pb;Ob=!1;Pb=null;}else throw Error(p$1(198));Qb||(Qb=!0,Rb=l);}}function Vb$1(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else {a=b;do b=a,0!==(b.flags&4098)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function Wb$1(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function Xb(a){if(Vb$1(a)!==a)throw Error(p$1(188));}
1077
- function Yb(a){var b=a.alternate;if(!b){b=Vb$1(a);if(null===b)throw Error(p$1(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Xb(e),a;if(f===d)return Xb(e),b;f=f.sibling;}throw Error(p$1(188));}if(c.return!==d.return)c=e,d=f;else {for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling;}if(!g){for(h=f.child;h;){if(h===
1078
- c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling;}if(!g)throw Error(p$1(189));}}if(c.alternate!==d)throw Error(p$1(190));}if(3!==c.tag)throw Error(p$1(188));return c.stateNode.current===c?a:b}function Zb(a){a=Yb(a);return null!==a?$b(a):null}function $b(a){if(5===a.tag||6===a.tag)return a;for(a=a.child;null!==a;){var b=$b(a);if(null!==b)return b;a=a.sibling;}return null}
1079
- var ac$1=ca$1.unstable_scheduleCallback,bc$1=ca$1.unstable_cancelCallback,cc$1=ca$1.unstable_shouldYield,dc$1=ca$1.unstable_requestPaint,B$1=ca$1.unstable_now,ec$1=ca$1.unstable_getCurrentPriorityLevel,fc$1=ca$1.unstable_ImmediatePriority,gc$1=ca$1.unstable_UserBlockingPriority,hc$1=ca$1.unstable_NormalPriority,ic$1=ca$1.unstable_LowPriority,jc$1=ca$1.unstable_IdlePriority,kc$1=null,lc$1=null;function mc$1(a){if(lc$1&&"function"===typeof lc$1.onCommitFiberRoot)try{lc$1.onCommitFiberRoot(kc$1,a,void 0,128===(a.current.flags&128));}catch(b){}}
1080
- var oc$1=Math.clz32?Math.clz32:nc$1,pc$1=Math.log,qc$1=Math.LN2;function nc$1(a){a>>>=0;return 0===a?32:31-(pc$1(a)/qc$1|0)|0}var rc$1=64,sc$1=4194304;
1081
- function tc$1(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;
1082
- default:return a}}function uc$1(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc$1(h):(f&=g,0!==f&&(d=tc$1(f)));}else g=c&~e,0!==g?d=tc$1(g):0!==f&&(d=tc$1(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0<b;)c=31-oc$1(b),e=1<<c,d|=a[c],b&=~e;return d}
1083
- function vc$1(a,b){switch(a){case 1:case 2:case 4:return b+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return b+5E3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return -1;case 134217728:case 268435456:case 536870912:case 1073741824:return -1;default:return -1}}
1084
- function wc$1(a,b){for(var c=a.suspendedLanes,d=a.pingedLanes,e=a.expirationTimes,f=a.pendingLanes;0<f;){var g=31-oc$1(f),h=1<<g,k=e[g];if(-1===k){if(0===(h&c)||0!==(h&d))e[g]=vc$1(h,b);}else k<=b&&(a.expiredLanes|=h);f&=~h;}}function xc$1(a){a=a.pendingLanes&-1073741825;return 0!==a?a:a&1073741824?1073741824:0}function yc$1(){var a=rc$1;rc$1<<=1;0===(rc$1&4194240)&&(rc$1=64);return a}function zc$1(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}
1085
- function Ac$1(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc$1(b);a[b]=c;}function Bc$1(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0<c;){var e=31-oc$1(c),f=1<<e;b[e]=0;d[e]=-1;a[e]=-1;c&=~f;}}
1086
- function Cc$1(a,b){var c=a.entangledLanes|=b;for(a=a.entanglements;c;){var d=31-oc$1(c),e=1<<d;e&b|a[d]&b&&(a[d]|=b);c&=~e;}}var C$1=0;function Dc$1(a){a&=-a;return 1<a?4<a?0!==(a&268435455)?16:536870912:4:1}var Ec$1,Fc$1,Gc$1,Hc$1,Ic$1,Jc$1=!1,Kc$1=[],Lc$1=null,Mc$1=null,Nc$1=null,Oc$1=new Map,Pc$1=new Map,Qc$1=[],Rc$1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
1087
- function Sc$1(a,b){switch(a){case "focusin":case "focusout":Lc$1=null;break;case "dragenter":case "dragleave":Mc$1=null;break;case "mouseover":case "mouseout":Nc$1=null;break;case "pointerover":case "pointerout":Oc$1.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":Pc$1.delete(b.pointerId);}}
1088
- function Tc$1(a,b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a={blockedOn:b,domEventName:c,eventSystemFlags:d,nativeEvent:f,targetContainers:[e]},null!==b&&(b=Cb(b),null!==b&&Fc$1(b)),a;a.eventSystemFlags|=d;b=a.targetContainers;null!==e&&-1===b.indexOf(e)&&b.push(e);return a}
1089
- function Uc$1(a,b,c,d,e){switch(b){case "focusin":return Lc$1=Tc$1(Lc$1,a,b,c,d,e),!0;case "dragenter":return Mc$1=Tc$1(Mc$1,a,b,c,d,e),!0;case "mouseover":return Nc$1=Tc$1(Nc$1,a,b,c,d,e),!0;case "pointerover":var f=e.pointerId;Oc$1.set(f,Tc$1(Oc$1.get(f)||null,a,b,c,d,e));return !0;case "gotpointercapture":return f=e.pointerId,Pc$1.set(f,Tc$1(Pc$1.get(f)||null,a,b,c,d,e)),!0}return !1}
1090
- function Vc$1(a){var b=Wc$1(a.target);if(null!==b){var c=Vb$1(b);if(null!==c)if(b=c.tag,13===b){if(b=Wb$1(c),null!==b){a.blockedOn=b;Ic$1(a.priority,function(){Gc$1(c);});return}}else if(3===b&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null;}
1091
- function Xc$1(a){if(null!==a.blockedOn)return !1;for(var b=a.targetContainers;0<b.length;){var c=Yc$1(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null===c){c=a.nativeEvent;var d=new c.constructor(c.type,c);wb=d;c.target.dispatchEvent(d);wb=null;}else return b=Cb(c),null!==b&&Fc$1(b),a.blockedOn=c,!1;b.shift();}return !0}function Zc$1(a,b,c){Xc$1(a)&&c.delete(b);}function $c$1(){Jc$1=!1;null!==Lc$1&&Xc$1(Lc$1)&&(Lc$1=null);null!==Mc$1&&Xc$1(Mc$1)&&(Mc$1=null);null!==Nc$1&&Xc$1(Nc$1)&&(Nc$1=null);Oc$1.forEach(Zc$1);Pc$1.forEach(Zc$1);}
1092
- function ad$1(a,b){a.blockedOn===b&&(a.blockedOn=null,Jc$1||(Jc$1=!0,ca$1.unstable_scheduleCallback(ca$1.unstable_NormalPriority,$c$1)));}
1093
- function bd$1(a){function b(b){return ad$1(b,a)}if(0<Kc$1.length){ad$1(Kc$1[0],a);for(var c=1;c<Kc$1.length;c++){var d=Kc$1[c];d.blockedOn===a&&(d.blockedOn=null);}}null!==Lc$1&&ad$1(Lc$1,a);null!==Mc$1&&ad$1(Mc$1,a);null!==Nc$1&&ad$1(Nc$1,a);Oc$1.forEach(b);Pc$1.forEach(b);for(c=0;c<Qc$1.length;c++)d=Qc$1[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<Qc$1.length&&(c=Qc$1[0],null===c.blockedOn);)Vc$1(c),null===c.blockedOn&&Qc$1.shift();}var cd$1=ua$1.ReactCurrentBatchConfig,dd$1=!0;
1094
- function ed$1(a,b,c,d){var e=C$1,f=cd$1.transition;cd$1.transition=null;try{C$1=1,fd$1(a,b,c,d);}finally{C$1=e,cd$1.transition=f;}}function gd$1(a,b,c,d){var e=C$1,f=cd$1.transition;cd$1.transition=null;try{C$1=4,fd$1(a,b,c,d);}finally{C$1=e,cd$1.transition=f;}}
1095
- function fd$1(a,b,c,d){if(dd$1){var e=Yc$1(a,b,c,d);if(null===e)hd$1(a,b,d,id$1,c),Sc$1(a,d);else if(Uc$1(e,a,b,c,d))d.stopPropagation();else if(Sc$1(a,d),b&4&&-1<Rc$1.indexOf(a)){for(;null!==e;){var f=Cb(e);null!==f&&Ec$1(f);f=Yc$1(a,b,c,d);null===f&&hd$1(a,b,d,id$1,c);if(f===e)break;e=f;}null!==e&&d.stopPropagation();}else hd$1(a,b,d,null,c);}}var id$1=null;
1096
- function Yc$1(a,b,c,d){id$1=null;a=xb(d);a=Wc$1(a);if(null!==a)if(b=Vb$1(a),null===b)a=null;else if(c=b.tag,13===c){a=Wb$1(b);if(null!==a)return a;a=null;}else if(3===c){if(b.stateNode.current.memoizedState.isDehydrated)return 3===b.tag?b.stateNode.containerInfo:null;a=null;}else b!==a&&(a=null);id$1=a;return null}
1057
+ null;delete a[b];}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua$1(a));}function Wa(a){if(!a)return !1;var b=a._valueTracker;if(!b)return !0;var c=b.getValue();var d="";a&&(d=Ta(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}
1058
+ function Ya$1(a,b){var c=b.checked;return A$1({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value};}function ab$1(a,b){b=b.checked;null!=b&&ta$1(a,"checked",b,!1);}
1059
+ function bb$1(a,b){ab$1(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if("number"===d){if(0===c&&""===a.value||a.value!=c)a.value=""+c;}else a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d){a.removeAttribute("value");return}b.hasOwnProperty("value")?cb$1(a,b.type,c):b.hasOwnProperty("defaultValue")&&cb$1(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked);}
1060
+ function db$1(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b;}c=a.name;""!==c&&(a.name="");a.defaultChecked=!!a._wrapperState.initialChecked;""!==c&&(a.name=c);}
1061
+ function cb$1(a,b,c){if("number"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c);}var eb$1=Array.isArray;
1062
+ function fb$1(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b["$"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty("$"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0);}else {c=""+Sa(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e]);}null!==b&&(b.selected=!0);}}
1063
+ function gb$1(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(p$1(91));return A$1({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb$1(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(p$1(92));if(eb$1(c)){if(1<c.length)throw Error(p$1(93));c=c[0];}b=c;}null==b&&(b="");c=b;}a._wrapperState={initialValue:Sa(c)};}
1064
+ function ib$1(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d);}function jb$1(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b);}function kb$1(a){switch(a){case "svg":return "http://www.w3.org/2000/svg";case "math":return "http://www.w3.org/1998/Math/MathML";default:return "http://www.w3.org/1999/xhtml"}}
1065
+ function lb$1(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?kb$1(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}
1066
+ var mb$1,nb$1=function(a){return "undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)});}:a}(function(a,b){if("http://www.w3.org/2000/svg"!==a.namespaceURI||"innerHTML"in a)a.innerHTML=b;else {mb$1=mb$1||document.createElement("div");mb$1.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";for(b=mb$1.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild);}});
1067
+ function ob$1(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b;}
1068
+ var pb$1={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,
1069
+ zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb$1=["Webkit","ms","Moz","O"];Object.keys(pb$1).forEach(function(a){qb$1.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb$1[b]=pb$1[a];});});function rb$1(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||pb$1.hasOwnProperty(a)&&pb$1[a]?(""+b).trim():b+"px"}
1070
+ function sb$1(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=rb$1(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e;}}var tb$1=A$1({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});
1071
+ function ub$1(a,b){if(b){if(tb$1[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p$1(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p$1(60));if("object"!==typeof b.dangerouslySetInnerHTML||!("__html"in b.dangerouslySetInnerHTML))throw Error(p$1(61));}if(null!=b.style&&"object"!==typeof b.style)throw Error(p$1(62));}}
1072
+ function vb$1(a,b){if(-1===a.indexOf("-"))return "string"===typeof b.is;switch(a){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 wb$1=null;function xb$1(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb$1=null,zb$1=null,Ab$1=null;
1073
+ function Bb$1(a){if(a=Cb$1(a)){if("function"!==typeof yb$1)throw Error(p$1(280));var b=a.stateNode;b&&(b=Db$1(b),yb$1(a.stateNode,a.type,b));}}function Eb$1(a){zb$1?Ab$1?Ab$1.push(a):Ab$1=[a]:zb$1=a;}function Fb$1(){if(zb$1){var a=zb$1,b=Ab$1;Ab$1=zb$1=null;Bb$1(a);if(b)for(a=0;a<b.length;a++)Bb$1(b[a]);}}function Gb$1(a,b){return a(b)}function Hb$1(){}var Ib$1=!1;function Jb$1(a,b,c){if(Ib$1)return a(b,c);Ib$1=!0;try{return Gb$1(a,b,c)}finally{if(Ib$1=!1,null!==zb$1||null!==Ab$1)Hb$1(),Fb$1();}}
1074
+ function Kb$1(a,b){var c=a.stateNode;if(null===c)return null;var d=Db$1(c);if(null===d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1;}if(a)return null;if(c&&"function"!==
1075
+ typeof c)throw Error(p$1(231,b,typeof c));return c}var Lb$1=!1;if(ia$1)try{var Mb$1={};Object.defineProperty(Mb$1,"passive",{get:function(){Lb$1=!0;}});window.addEventListener("test",Mb$1,Mb$1);window.removeEventListener("test",Mb$1,Mb$1);}catch(a){Lb$1=!1;}function Nb$1(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l);}catch(m){this.onError(m);}}var Ob$1=!1,Pb$1=null,Qb$1=!1,Rb$1=null,Sb$1={onError:function(a){Ob$1=!0;Pb$1=a;}};function Tb$1(a,b,c,d,e,f,g,h,k){Ob$1=!1;Pb$1=null;Nb$1.apply(Sb$1,arguments);}
1076
+ function Ub$1(a,b,c,d,e,f,g,h,k){Tb$1.apply(this,arguments);if(Ob$1){if(Ob$1){var l=Pb$1;Ob$1=!1;Pb$1=null;}else throw Error(p$1(198));Qb$1||(Qb$1=!0,Rb$1=l);}}function Vb$1(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else {a=b;do b=a,0!==(b.flags&4098)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function Wb$1(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function Xb$1(a){if(Vb$1(a)!==a)throw Error(p$1(188));}
1077
+ function Yb$1(a){var b=a.alternate;if(!b){b=Vb$1(a);if(null===b)throw Error(p$1(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Xb$1(e),a;if(f===d)return Xb$1(e),b;f=f.sibling;}throw Error(p$1(188));}if(c.return!==d.return)c=e,d=f;else {for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling;}if(!g){for(h=f.child;h;){if(h===
1078
+ c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling;}if(!g)throw Error(p$1(189));}}if(c.alternate!==d)throw Error(p$1(190));}if(3!==c.tag)throw Error(p$1(188));return c.stateNode.current===c?a:b}function Zb$1(a){a=Yb$1(a);return null!==a?$b$1(a):null}function $b$1(a){if(5===a.tag||6===a.tag)return a;for(a=a.child;null!==a;){var b=$b$1(a);if(null!==b)return b;a=a.sibling;}return null}
1079
+ var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B$1=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(a){if(lc&&"function"===typeof lc.onCommitFiberRoot)try{lc.onCommitFiberRoot(kc,a,void 0,128===(a.current.flags&128));}catch(b){}}
1080
+ var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a){a>>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;
1081
+ function tc(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;
1082
+ default:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)));}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0<b;)c=31-oc(b),e=1<<c,d|=a[c],b&=~e;return d}
1083
+ function vc(a,b){switch(a){case 1:case 2:case 4:return b+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return b+5E3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return -1;case 134217728:case 268435456:case 536870912:case 1073741824:return -1;default:return -1}}
1084
+ function wc(a,b){for(var c=a.suspendedLanes,d=a.pingedLanes,e=a.expirationTimes,f=a.pendingLanes;0<f;){var g=31-oc(f),h=1<<g,k=e[g];if(-1===k){if(0===(h&c)||0!==(h&d))e[g]=vc(h,b);}else k<=b&&(a.expiredLanes|=h);f&=~h;}}function xc(a){a=a.pendingLanes&-1073741825;return 0!==a?a:a&1073741824?1073741824:0}function yc(){var a=rc;rc<<=1;0===(rc&4194240)&&(rc=64);return a}function zc(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}
1085
+ function Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c;}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0<c;){var e=31-oc(c),f=1<<e;b[e]=0;d[e]=-1;a[e]=-1;c&=~f;}}
1086
+ function Cc(a,b){var c=a.entangledLanes|=b;for(a=a.entanglements;c;){var d=31-oc(c),e=1<<d;e&b|a[d]&b&&(a[d]|=b);c&=~e;}}var C=0;function Dc(a){a&=-a;return 1<a?4<a?0!==(a&268435455)?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
1087
+ function Sc(a,b){switch(a){case "focusin":case "focusout":Lc=null;break;case "dragenter":case "dragleave":Mc=null;break;case "mouseover":case "mouseout":Nc=null;break;case "pointerover":case "pointerout":Oc.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":Pc.delete(b.pointerId);}}
1088
+ function Tc(a,b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a={blockedOn:b,domEventName:c,eventSystemFlags:d,nativeEvent:f,targetContainers:[e]},null!==b&&(b=Cb$1(b),null!==b&&Fc(b)),a;a.eventSystemFlags|=d;b=a.targetContainers;null!==e&&-1===b.indexOf(e)&&b.push(e);return a}
1089
+ function Uc(a,b,c,d,e){switch(b){case "focusin":return Lc=Tc(Lc,a,b,c,d,e),!0;case "dragenter":return Mc=Tc(Mc,a,b,c,d,e),!0;case "mouseover":return Nc=Tc(Nc,a,b,c,d,e),!0;case "pointerover":var f=e.pointerId;Oc.set(f,Tc(Oc.get(f)||null,a,b,c,d,e));return !0;case "gotpointercapture":return f=e.pointerId,Pc.set(f,Tc(Pc.get(f)||null,a,b,c,d,e)),!0}return !1}
1090
+ function Vc(a){var b=Wc(a.target);if(null!==b){var c=Vb$1(b);if(null!==c)if(b=c.tag,13===b){if(b=Wb$1(c),null!==b){a.blockedOn=b;Ic(a.priority,function(){Gc(c);});return}}else if(3===b&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null;}
1091
+ function Xc(a){if(null!==a.blockedOn)return !1;for(var b=a.targetContainers;0<b.length;){var c=Yc(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null===c){c=a.nativeEvent;var d=new c.constructor(c.type,c);wb$1=d;c.target.dispatchEvent(d);wb$1=null;}else return b=Cb$1(c),null!==b&&Fc(b),a.blockedOn=c,!1;b.shift();}return !0}function Zc(a,b,c){Xc(a)&&c.delete(b);}function $c(){Jc=!1;null!==Lc&&Xc(Lc)&&(Lc=null);null!==Mc&&Xc(Mc)&&(Mc=null);null!==Nc&&Xc(Nc)&&(Nc=null);Oc.forEach(Zc);Pc.forEach(Zc);}
1092
+ function ad$1(a,b){a.blockedOn===b&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)));}
1093
+ function bd$1(a){function b(b){return ad$1(b,a)}if(0<Kc.length){ad$1(Kc[0],a);for(var c=1;c<Kc.length;c++){var d=Kc[c];d.blockedOn===a&&(d.blockedOn=null);}}null!==Lc&&ad$1(Lc,a);null!==Mc&&ad$1(Mc,a);null!==Nc&&ad$1(Nc,a);Oc.forEach(b);Pc.forEach(b);for(c=0;c<Qc.length;c++)d=Qc[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<Qc.length&&(c=Qc[0],null===c.blockedOn);)Vc(c),null===c.blockedOn&&Qc.shift();}var cd$1=ua$1.ReactCurrentBatchConfig,dd$1=!0;
1094
+ function ed$1(a,b,c,d){var e=C,f=cd$1.transition;cd$1.transition=null;try{C=1,fd$1(a,b,c,d);}finally{C=e,cd$1.transition=f;}}function gd$1(a,b,c,d){var e=C,f=cd$1.transition;cd$1.transition=null;try{C=4,fd$1(a,b,c,d);}finally{C=e,cd$1.transition=f;}}
1095
+ function fd$1(a,b,c,d){if(dd$1){var e=Yc(a,b,c,d);if(null===e)hd$1(a,b,d,id$1,c),Sc(a,d);else if(Uc(e,a,b,c,d))d.stopPropagation();else if(Sc(a,d),b&4&&-1<Rc.indexOf(a)){for(;null!==e;){var f=Cb$1(e);null!==f&&Ec(f);f=Yc(a,b,c,d);null===f&&hd$1(a,b,d,id$1,c);if(f===e)break;e=f;}null!==e&&d.stopPropagation();}else hd$1(a,b,d,null,c);}}var id$1=null;
1096
+ function Yc(a,b,c,d){id$1=null;a=xb$1(d);a=Wc(a);if(null!==a)if(b=Vb$1(a),null===b)a=null;else if(c=b.tag,13===c){a=Wb$1(b);if(null!==a)return a;a=null;}else if(3===c){if(b.stateNode.current.memoizedState.isDehydrated)return 3===b.tag?b.stateNode.containerInfo:null;a=null;}else b!==a&&(a=null);id$1=a;return null}
1097
1097
  function jd$1(a){switch(a){case "cancel":case "click":case "close":case "contextmenu":case "copy":case "cut":case "auxclick":case "dblclick":case "dragend":case "dragstart":case "drop":case "focusin":case "focusout":case "input":case "invalid":case "keydown":case "keypress":case "keyup":case "mousedown":case "mouseup":case "paste":case "pause":case "play":case "pointercancel":case "pointerdown":case "pointerup":case "ratechange":case "reset":case "resize":case "seeked":case "submit":case "touchcancel":case "touchend":case "touchstart":case "volumechange":case "change":case "selectionchange":case "textInput":case "compositionstart":case "compositionend":case "compositionupdate":case "beforeblur":case "afterblur":case "beforeinput":case "blur":case "fullscreenchange":case "focus":case "hashchange":case "popstate":case "select":case "selectstart":return 1;case "drag":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "mousemove":case "mouseout":case "mouseover":case "pointermove":case "pointerout":case "pointerover":case "scroll":case "toggle":case "touchmove":case "wheel":case "mouseenter":case "mouseleave":case "pointerenter":case "pointerleave":return 4;
1098
- case "message":switch(ec$1()){case fc$1:return 1;case gc$1:return 4;case hc$1:case ic$1:return 16;case jc$1:return 536870912;default:return 16}default:return 16}}var kd$1=null,ld$1=null,md$1=null;function nd$1(){if(md$1)return md$1;var a,b=ld$1,c=b.length,d,e="value"in kd$1?kd$1.value:kd$1.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return md$1=e.slice(a,1<d?1-d:void 0)}
1099
- function od$1(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}function pd$1(){return !0}function qd(){return !1}
1100
- function rd$1(a){function b(b,d,e,f,g){this._reactName=b;this._targetInst=e;this.type=d;this.nativeEvent=f;this.target=g;this.currentTarget=null;for(var c in a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?pd$1:qd;this.isPropagationStopped=qd;return this}A(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&
1098
+ case "message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd$1=null,ld$1=null,md$1=null;function nd$1(){if(md$1)return md$1;var a,b=ld$1,c=b.length,d,e="value"in kd$1?kd$1.value:kd$1.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return md$1=e.slice(a,1<d?1-d:void 0)}
1099
+ function od$1(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}function pd$1(){return !0}function qd$1(){return !1}
1100
+ function rd$1(a){function b(b,d,e,f,g){this._reactName=b;this._targetInst=e;this.type=d;this.nativeEvent=f;this.target=g;this.currentTarget=null;for(var c in a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?pd$1:qd$1;this.isPropagationStopped=qd$1;return this}A$1(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&
1101
1101
  (a.returnValue=!1),this.isDefaultPrevented=pd$1);},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=pd$1);},persist:function(){},isPersistent:pd$1});return b}
1102
- var sd$1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td$1=rd$1(sd$1),ud$1=A({},sd$1,{view:0,detail:0}),vd$1=rd$1(ud$1),wd$1,xd$1,yd$1,Ad$1=A({},ud$1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd$1,button:0,buttons:0,relatedTarget:function(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in
1103
- a)return a.movementX;a!==yd$1&&(yd$1&&"mousemove"===a.type?(wd$1=a.screenX-yd$1.screenX,xd$1=a.screenY-yd$1.screenY):xd$1=wd$1=0,yd$1=a);return wd$1},movementY:function(a){return "movementY"in a?a.movementY:xd$1}}),Bd$1=rd$1(Ad$1),Cd$1=A({},Ad$1,{dataTransfer:0}),Dd$1=rd$1(Cd$1),Ed$1=A({},ud$1,{relatedTarget:0}),Fd$1=rd$1(Ed$1),Gd=A({},sd$1,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd$1=rd$1(Gd),Id$1=A({},sd$1,{clipboardData:function(a){return "clipboardData"in a?a.clipboardData:window.clipboardData}}),Jd=rd$1(Id$1),Kd=A({},sd$1,{data:0}),Ld$1=rd$1(Kd),Md$1={Esc:"Escape",
1102
+ var sd$1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td$1=rd$1(sd$1),ud$1=A$1({},sd$1,{view:0,detail:0}),vd$1=rd$1(ud$1),wd$1,xd$1,yd$1,Ad$1=A$1({},ud$1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd$1,button:0,buttons:0,relatedTarget:function(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in
1103
+ a)return a.movementX;a!==yd$1&&(yd$1&&"mousemove"===a.type?(wd$1=a.screenX-yd$1.screenX,xd$1=a.screenY-yd$1.screenY):xd$1=wd$1=0,yd$1=a);return wd$1},movementY:function(a){return "movementY"in a?a.movementY:xd$1}}),Bd$1=rd$1(Ad$1),Cd$1=A$1({},Ad$1,{dataTransfer:0}),Dd$1=rd$1(Cd$1),Ed$1=A$1({},ud$1,{relatedTarget:0}),Fd$1=rd$1(Ed$1),Gd$1=A$1({},sd$1,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd$1=rd$1(Gd$1),Id$1=A$1({},sd$1,{clipboardData:function(a){return "clipboardData"in a?a.clipboardData:window.clipboardData}}),Jd$1=rd$1(Id$1),Kd$1=A$1({},sd$1,{data:0}),Ld$1=rd$1(Kd$1),Md$1={Esc:"Escape",
1104
1104
  Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd$1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",
1105
1105
  119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od$1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd$1(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Od$1[a])?!!b[a]:!1}function zd$1(){return Pd$1}
1106
- var Qd=A({},ud$1,{key:function(a){if(a.key){var b=Md$1[a.key]||a.key;if("Unidentified"!==b)return b}return "keypress"===a.type?(a=od$1(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?Nd$1[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd$1,charCode:function(a){return "keypress"===a.type?od$1(a):0},keyCode:function(a){return "keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return "keypress"===
1107
- a.type?od$1(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),Rd$1=rd$1(Qd),Sd$1=A({},Ad$1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td$1=rd$1(Sd$1),Ud$1=A({},ud$1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd$1}),Vd$1=rd$1(Ud$1),Wd$1=A({},sd$1,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd$1(Wd$1),Yd=A({},Ad$1,{deltaX:function(a){return "deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},
1108
- deltaY:function(a){return "deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd$1(Yd),$d$1=[9,13,27,32],ae$1=ia$1&&"CompositionEvent"in window,be$1=null;ia$1&&"documentMode"in document&&(be$1=document.documentMode);var ce$1=ia$1&&"TextEvent"in window&&!be$1,de$1=ia$1&&(!ae$1||be$1&&8<be$1&&11>=be$1),ee$1=String.fromCharCode(32),fe$1=!1;
1106
+ var Qd$1=A$1({},ud$1,{key:function(a){if(a.key){var b=Md$1[a.key]||a.key;if("Unidentified"!==b)return b}return "keypress"===a.type?(a=od$1(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?Nd$1[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd$1,charCode:function(a){return "keypress"===a.type?od$1(a):0},keyCode:function(a){return "keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return "keypress"===
1107
+ a.type?od$1(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),Rd$1=rd$1(Qd$1),Sd$1=A$1({},Ad$1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td$1=rd$1(Sd$1),Ud$1=A$1({},ud$1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd$1}),Vd$1=rd$1(Ud$1),Wd$1=A$1({},sd$1,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd$1=rd$1(Wd$1),Yd$1=A$1({},Ad$1,{deltaX:function(a){return "deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},
1108
+ deltaY:function(a){return "deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd$1=rd$1(Yd$1),$d$1=[9,13,27,32],ae$1=ia$1&&"CompositionEvent"in window,be$1=null;ia$1&&"documentMode"in document&&(be$1=document.documentMode);var ce$1=ia$1&&"TextEvent"in window&&!be$1,de$1=ia$1&&(!ae$1||be$1&&8<be$1&&11>=be$1),ee$1=String.fromCharCode(32),fe$1=!1;
1109
1109
  function ge$1(a,b){switch(a){case "keyup":return -1!==$d$1.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "focusout":return !0;default:return !1}}function he$1(a){a=a.detail;return "object"===typeof a&&"data"in a?a.data:null}var ie$1=!1;function je$1(a,b){switch(a){case "compositionend":return he$1(b);case "keypress":if(32!==b.which)return null;fe$1=!0;return ee$1;case "textInput":return a=b.data,a===ee$1&&fe$1?null:a;default:return null}}
1110
1110
  function ke$1(a,b){if(ie$1)return "compositionend"===a||!ae$1&&ge$1(a,b)?(a=nd$1(),md$1=ld$1=kd$1=null,ie$1=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case "compositionend":return de$1&&"ko"!==b.locale?null:b.data;default:return null}}
1111
- var le$1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me$1(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return "input"===b?!!le$1[a.type]:"textarea"===b?!0:!1}function ne$1(a,b,c,d){Eb(d);b=oe$1(b,"onChange");0<b.length&&(c=new td$1("onChange","change",null,c,d),a.push({event:c,listeners:b}));}var pe$1=null,qe$1=null;function re$1(a){se$1(a,0);}function te$1(a){var b=ue$1(a);if(Wa$1(b))return a}
1112
- function ve$1(a,b){if("change"===a)return b}var we$1=!1;if(ia$1){var xe$1;if(ia$1){var ye$1="oninput"in document;if(!ye$1){var ze$1=document.createElement("div");ze$1.setAttribute("oninput","return;");ye$1="function"===typeof ze$1.oninput;}xe$1=ye$1;}else xe$1=!1;we$1=xe$1&&(!document.documentMode||9<document.documentMode);}function Ae$1(){pe$1&&(pe$1.detachEvent("onpropertychange",Be$1),qe$1=pe$1=null);}function Be$1(a){if("value"===a.propertyName&&te$1(qe$1)){var b=[];ne$1(b,qe$1,a,xb(a));Jb(re$1,b);}}
1111
+ var le$1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me$1(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return "input"===b?!!le$1[a.type]:"textarea"===b?!0:!1}function ne$1(a,b,c,d){Eb$1(d);b=oe$1(b,"onChange");0<b.length&&(c=new td$1("onChange","change",null,c,d),a.push({event:c,listeners:b}));}var pe$1=null,qe$1=null;function re$1(a){se$1(a,0);}function te$1(a){var b=ue$1(a);if(Wa(b))return a}
1112
+ function ve$1(a,b){if("change"===a)return b}var we$1=!1;if(ia$1){var xe$1;if(ia$1){var ye$1="oninput"in document;if(!ye$1){var ze$1=document.createElement("div");ze$1.setAttribute("oninput","return;");ye$1="function"===typeof ze$1.oninput;}xe$1=ye$1;}else xe$1=!1;we$1=xe$1&&(!document.documentMode||9<document.documentMode);}function Ae$1(){pe$1&&(pe$1.detachEvent("onpropertychange",Be$1),qe$1=pe$1=null);}function Be$1(a){if("value"===a.propertyName&&te$1(qe$1)){var b=[];ne$1(b,qe$1,a,xb$1(a));Jb$1(re$1,b);}}
1113
1113
  function Ce$1(a,b,c){"focusin"===a?(Ae$1(),pe$1=b,qe$1=c,pe$1.attachEvent("onpropertychange",Be$1)):"focusout"===a&&Ae$1();}function De$1(a){if("selectionchange"===a||"keyup"===a||"keydown"===a)return te$1(qe$1)}function Ee$1(a,b){if("click"===a)return te$1(b)}function Fe$1(a,b){if("input"===a||"change"===a)return te$1(b)}function Ge$1(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var He$1="function"===typeof Object.is?Object.is:Ge$1;
1114
1114
  function Ie$1(a,b){if(He$1(a,b))return !0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return !1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return !1;for(d=0;d<c.length;d++){var e=c[d];if(!ja$1.call(b,e)||!He$1(a[e],b[e]))return !1}return !0}function Je$1(a){for(;a&&a.firstChild;)a=a.firstChild;return a}
1115
1115
  function Ke$1(a,b){var c=Je$1(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return {node:c,offset:b-a};a=d;}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode;}c=void 0;}c=Je$1(c);}}function Le$1(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le$1(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}
1116
- function Me$1(){for(var a=window,b=Xa$1();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href;}catch(d){c=!1;}if(c)a=b.contentWindow;else break;b=Xa$1(a.document);}return b}function Ne$1(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}
1116
+ function Me$1(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href;}catch(d){c=!1;}if(c)a=b.contentWindow;else break;b=Xa(a.document);}return b}function Ne$1(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}
1117
1117
  function Oe$1(a){var b=Me$1(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le$1(c.ownerDocument.documentElement,c)){if(null!==d&&Ne$1(c))if(b=d.start,a=d.end,void 0===a&&(a=b),"selectionStart"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke$1(c,f);var g=Ke$1(c,
1118
1118
  d);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)));}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});"function"===typeof c.focus&&c.focus();for(c=0;c<b.length;c++)a=b[c],a.element.scrollLeft=a.left,a.element.scrollTop=a.top;}}
1119
1119
  var Pe$1=ia$1&&"documentMode"in document&&11>=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;
1120
- function Ue$1(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te$1||null==Qe$1||Qe$1!==Xa$1(d)||(d=Qe$1,"selectionStart"in d&&Ne$1(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se$1&&Ie$1(Se$1,d)||(Se$1=d,d=oe$1(Re$1,"onSelect"),0<d.length&&(b=new td$1("onSelect","select",null,b,c),a.push({event:b,listeners:d}),b.target=Qe$1)));}
1120
+ function Ue$1(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te$1||null==Qe$1||Qe$1!==Xa(d)||(d=Qe$1,"selectionStart"in d&&Ne$1(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se$1&&Ie$1(Se$1,d)||(Se$1=d,d=oe$1(Re$1,"onSelect"),0<d.length&&(b=new td$1("onSelect","select",null,b,c),a.push({event:b,listeners:d}),b.target=Qe$1)));}
1121
1121
  function Ve$1(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var We$1={animationend:Ve$1("Animation","AnimationEnd"),animationiteration:Ve$1("Animation","AnimationIteration"),animationstart:Ve$1("Animation","AnimationStart"),transitionend:Ve$1("Transition","TransitionEnd")},Xe$1={},Ye$1={};
1122
- ia$1&&(Ye$1=document.createElement("div").style,"AnimationEvent"in window||(delete We$1.animationend.animation,delete We$1.animationiteration.animation,delete We$1.animationstart.animation),"TransitionEvent"in window||delete We$1.transitionend.transition);function Ze$1(a){if(Xe$1[a])return Xe$1[a];if(!We$1[a])return a;var b=We$1[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Ye$1)return Xe$1[a]=b[c];return a}var $e$1=Ze$1("animationend"),af=Ze$1("animationiteration"),bf$1=Ze$1("animationstart"),cf$1=Ze$1("transitionend"),df$1=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
1123
- function ff$1(a,b){df$1.set(a,b);fa$1(b,[a]);}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf$1=hf.toLowerCase(),kf$1=hf[0].toUpperCase()+hf.slice(1);ff$1(jf$1,"on"+kf$1);}ff$1($e$1,"onAnimationEnd");ff$1(af,"onAnimationIteration");ff$1(bf$1,"onAnimationStart");ff$1("dblclick","onDoubleClick");ff$1("focusin","onFocus");ff$1("focusout","onBlur");ff$1(cf$1,"onTransitionEnd");ha$1("onMouseEnter",["mouseout","mouseover"]);ha$1("onMouseLeave",["mouseout","mouseover"]);ha$1("onPointerEnter",["pointerout","pointerover"]);
1122
+ ia$1&&(Ye$1=document.createElement("div").style,"AnimationEvent"in window||(delete We$1.animationend.animation,delete We$1.animationiteration.animation,delete We$1.animationstart.animation),"TransitionEvent"in window||delete We$1.transitionend.transition);function Ze$1(a){if(Xe$1[a])return Xe$1[a];if(!We$1[a])return a;var b=We$1[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Ye$1)return Xe$1[a]=b[c];return a}var $e$1=Ze$1("animationend"),af$1=Ze$1("animationiteration"),bf$1=Ze$1("animationstart"),cf$1=Ze$1("transitionend"),df$1=new Map,ef$1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
1123
+ function ff$1(a,b){df$1.set(a,b);fa$1(b,[a]);}for(var gf$1=0;gf$1<ef$1.length;gf$1++){var hf$1=ef$1[gf$1],jf$1=hf$1.toLowerCase(),kf$1=hf$1[0].toUpperCase()+hf$1.slice(1);ff$1(jf$1,"on"+kf$1);}ff$1($e$1,"onAnimationEnd");ff$1(af$1,"onAnimationIteration");ff$1(bf$1,"onAnimationStart");ff$1("dblclick","onDoubleClick");ff$1("focusin","onFocus");ff$1("focusout","onBlur");ff$1(cf$1,"onTransitionEnd");ha$1("onMouseEnter",["mouseout","mouseover"]);ha$1("onMouseLeave",["mouseout","mouseover"]);ha$1("onPointerEnter",["pointerout","pointerover"]);
1124
1124
  ha$1("onPointerLeave",["pointerout","pointerover"]);fa$1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa$1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa$1("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa$1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa$1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));
1125
- fa$1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf$1="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf$1));
1126
- function nf(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;Ub$1(d,b,void 0,a);a.currentTarget=null;}
1127
- function se$1(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k;}else for(g=0;g<d.length;g++){h=d[g];k=h.instance;l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k;}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a;}
1128
- function D$1(a,b){var c=b[of];void 0===c&&(c=b[of]=new Set);var d=a+"__bubble";c.has(d)||(pf(b,a,2,!1),c.add(d));}function qf$1(a,b,c){var d=0;b&&(d|=4);pf(c,a,d,b);}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0;da$1.forEach(function(b){"selectionchange"!==b&&(mf.has(b)||qf$1(b,!1,a),qf$1(b,!0,a));});var b=9===a.nodeType?a:a.ownerDocument;null===b||b[rf]||(b[rf]=!0,qf$1("selectionchange",!1,b));}}
1129
- function pf(a,b,c,d){switch(jd$1(b)){case 1:var e=ed$1;break;case 4:e=gd$1;break;default:e=fd$1;}c=e.bind(null,b,c,a);e=void 0;!Lb||"touchstart"!==b&&"touchmove"!==b&&"wheel"!==b||(e=!0);d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1);}
1130
- function hd$1(a,b,c,d,e){var f=d;if(0===(b&1)&&0===(b&2)&&null!==d)a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if(3===k||4===k)if(k=g.stateNode.containerInfo,k===e||8===k.nodeType&&k.parentNode===e)return;g=g.return;}for(;null!==h;){g=Wc$1(h);if(null===g)return;k=g.tag;if(5===k||6===k){d=f=g;continue a}h=h.parentNode;}}d=d.return;}Jb(function(){var d=f,e=xb(c),g=[];
1125
+ fa$1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf$1="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf$1=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf$1));
1126
+ function nf$1(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;Ub$1(d,b,void 0,a);a.currentTarget=null;}
1127
+ function se$1(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf$1(e,h,l);f=k;}else for(g=0;g<d.length;g++){h=d[g];k=h.instance;l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf$1(e,h,l);f=k;}}}if(Qb$1)throw a=Rb$1,Qb$1=!1,Rb$1=null,a;}
1128
+ function D$1(a,b){var c=b[of$1];void 0===c&&(c=b[of$1]=new Set);var d=a+"__bubble";c.has(d)||(pf$1(b,a,2,!1),c.add(d));}function qf$1(a,b,c){var d=0;b&&(d|=4);pf$1(c,a,d,b);}var rf$1="_reactListening"+Math.random().toString(36).slice(2);function sf$1(a){if(!a[rf$1]){a[rf$1]=!0;da$1.forEach(function(b){"selectionchange"!==b&&(mf$1.has(b)||qf$1(b,!1,a),qf$1(b,!0,a));});var b=9===a.nodeType?a:a.ownerDocument;null===b||b[rf$1]||(b[rf$1]=!0,qf$1("selectionchange",!1,b));}}
1129
+ function pf$1(a,b,c,d){switch(jd$1(b)){case 1:var e=ed$1;break;case 4:e=gd$1;break;default:e=fd$1;}c=e.bind(null,b,c,a);e=void 0;!Lb$1||"touchstart"!==b&&"touchmove"!==b&&"wheel"!==b||(e=!0);d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1);}
1130
+ function hd$1(a,b,c,d,e){var f=d;if(0===(b&1)&&0===(b&2)&&null!==d)a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if(3===k||4===k)if(k=g.stateNode.containerInfo,k===e||8===k.nodeType&&k.parentNode===e)return;g=g.return;}for(;null!==h;){g=Wc(h);if(null===g)return;k=g.tag;if(5===k||6===k){d=f=g;continue a}h=h.parentNode;}}d=d.return;}Jb$1(function(){var d=f,e=xb$1(c),g=[];
1131
1131
  a:{var h=df$1.get(a);if(void 0!==h){var k=td$1,n=a;switch(a){case "keypress":if(0===od$1(c))break a;case "keydown":case "keyup":k=Rd$1;break;case "focusin":n="focus";k=Fd$1;break;case "focusout":n="blur";k=Fd$1;break;case "beforeblur":case "afterblur":k=Fd$1;break;case "click":if(2===c.button)break a;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":k=Bd$1;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":k=
1132
- Dd$1;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":k=Vd$1;break;case $e$1:case af:case bf$1:k=Hd$1;break;case cf$1:k=Xd;break;case "scroll":k=vd$1;break;case "wheel":k=Zd;break;case "copy":case "cut":case "paste":k=Jd;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":k=Td$1;}var t=0!==(b&4),J=!t&&"scroll"===a,x=t?null!==h?h+"Capture":null:h;t=[];for(var w=d,u;null!==
1133
- w;){u=w;var F=u.stateNode;5===u.tag&&null!==F&&(u=F,null!==x&&(F=Kb$1(w,x),null!=F&&t.push(tf$1(w,F,u))));if(J)break;w=w.return;}0<t.length&&(h=new k(h,n,null,c,e),g.push({event:h,listeners:t}));}}if(0===(b&7)){a:{h="mouseover"===a||"pointerover"===a;k="mouseout"===a||"pointerout"===a;if(h&&c!==wb&&(n=c.relatedTarget||c.fromElement)&&(Wc$1(n)||n[uf$1]))break a;if(k||h){h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||h.parentWindow:window;if(k){if(n=c.relatedTarget||c.toElement,k=d,n=n?Wc$1(n):null,null!==
1134
- n&&(J=Vb$1(n),n!==J||5!==n.tag&&6!==n.tag))n=null;}else k=null,n=d;if(k!==n){t=Bd$1;F="onMouseLeave";x="onMouseEnter";w="mouse";if("pointerout"===a||"pointerover"===a)t=Td$1,F="onPointerLeave",x="onPointerEnter",w="pointer";J=null==k?h:ue$1(k);u=null==n?h:ue$1(n);h=new t(F,w+"leave",k,c,e);h.target=J;h.relatedTarget=u;F=null;Wc$1(e)===d&&(t=new t(x,w+"enter",n,c,e),t.target=u,t.relatedTarget=J,F=t);J=F;if(k&&n)b:{t=k;x=n;w=0;for(u=t;u;u=vf$1(u))w++;u=0;for(F=x;F;F=vf$1(F))u++;for(;0<w-u;)t=vf$1(t),w--;for(;0<u-w;)x=
1132
+ Dd$1;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":k=Vd$1;break;case $e$1:case af$1:case bf$1:k=Hd$1;break;case cf$1:k=Xd$1;break;case "scroll":k=vd$1;break;case "wheel":k=Zd$1;break;case "copy":case "cut":case "paste":k=Jd$1;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":k=Td$1;}var t=0!==(b&4),J=!t&&"scroll"===a,x=t?null!==h?h+"Capture":null:h;t=[];for(var w=d,u;null!==
1133
+ w;){u=w;var F=u.stateNode;5===u.tag&&null!==F&&(u=F,null!==x&&(F=Kb$1(w,x),null!=F&&t.push(tf$1(w,F,u))));if(J)break;w=w.return;}0<t.length&&(h=new k(h,n,null,c,e),g.push({event:h,listeners:t}));}}if(0===(b&7)){a:{h="mouseover"===a||"pointerover"===a;k="mouseout"===a||"pointerout"===a;if(h&&c!==wb$1&&(n=c.relatedTarget||c.fromElement)&&(Wc(n)||n[uf$1]))break a;if(k||h){h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||h.parentWindow:window;if(k){if(n=c.relatedTarget||c.toElement,k=d,n=n?Wc(n):null,null!==
1134
+ n&&(J=Vb$1(n),n!==J||5!==n.tag&&6!==n.tag))n=null;}else k=null,n=d;if(k!==n){t=Bd$1;F="onMouseLeave";x="onMouseEnter";w="mouse";if("pointerout"===a||"pointerover"===a)t=Td$1,F="onPointerLeave",x="onPointerEnter",w="pointer";J=null==k?h:ue$1(k);u=null==n?h:ue$1(n);h=new t(F,w+"leave",k,c,e);h.target=J;h.relatedTarget=u;F=null;Wc(e)===d&&(t=new t(x,w+"enter",n,c,e),t.target=u,t.relatedTarget=J,F=t);J=F;if(k&&n)b:{t=k;x=n;w=0;for(u=t;u;u=vf$1(u))w++;u=0;for(F=x;F;F=vf$1(F))u++;for(;0<w-u;)t=vf$1(t),w--;for(;0<u-w;)x=
1135
1135
  vf$1(x),u--;for(;w--;){if(t===x||null!==x&&t===x.alternate)break b;t=vf$1(t);x=vf$1(x);}t=null;}else t=null;null!==k&&wf$1(g,h,k,t,!1);null!==n&&null!==J&&wf$1(g,J,n,t,!0);}}}a:{h=d?ue$1(d):window;k=h.nodeName&&h.nodeName.toLowerCase();if("select"===k||"input"===k&&"file"===h.type)var na=ve$1;else if(me$1(h))if(we$1)na=Fe$1;else {na=De$1;var xa=Ce$1;}else (k=h.nodeName)&&"input"===k.toLowerCase()&&("checkbox"===h.type||"radio"===h.type)&&(na=Ee$1);if(na&&(na=na(a,d))){ne$1(g,na,c,e);break a}xa&&xa(a,h,d);"focusout"===a&&(xa=h._wrapperState)&&
1136
1136
  xa.controlled&&"number"===h.type&&cb$1(h,"number",h.value);}xa=d?ue$1(d):window;switch(a){case "focusin":if(me$1(xa)||"true"===xa.contentEditable)Qe$1=xa,Re$1=d,Se$1=null;break;case "focusout":Se$1=Re$1=Qe$1=null;break;case "mousedown":Te$1=!0;break;case "contextmenu":case "mouseup":case "dragend":Te$1=!1;Ue$1(g,c,e);break;case "selectionchange":if(Pe$1)break;case "keydown":case "keyup":Ue$1(g,c,e);}var $a;if(ae$1)b:{switch(a){case "compositionstart":var ba="onCompositionStart";break b;case "compositionend":ba="onCompositionEnd";
1137
1137
  break b;case "compositionupdate":ba="onCompositionUpdate";break b}ba=void 0;}else ie$1?ge$1(a,c)&&(ba="onCompositionEnd"):"keydown"===a&&229===c.keyCode&&(ba="onCompositionStart");ba&&(de$1&&"ko"!==c.locale&&(ie$1||"onCompositionStart"!==ba?"onCompositionEnd"===ba&&ie$1&&($a=nd$1()):(kd$1=e,ld$1="value"in kd$1?kd$1.value:kd$1.textContent,ie$1=!0)),xa=oe$1(d,ba),0<xa.length&&(ba=new Ld$1(ba,a,null,c,e),g.push({event:ba,listeners:xa}),$a?ba.data=$a:($a=he$1(c),null!==$a&&(ba.data=$a))));if($a=ce$1?je$1(a,c):ke$1(a,c))d=oe$1(d,"onBeforeInput"),
@@ -1140,66 +1140,66 @@
1140
1140
  var Cf$1=null,Df$1=null;function Ef$1(a,b){return "textarea"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}
1141
1141
  var Ff$1="function"===typeof setTimeout?setTimeout:void 0,Gf$1="function"===typeof clearTimeout?clearTimeout:void 0,Hf$1="function"===typeof Promise?Promise:void 0,Jf$1="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof Hf$1?function(a){return Hf$1.resolve(null).then(a).catch(If$1)}:Ff$1;function If$1(a){setTimeout(function(){throw a;});}
1142
1142
  function Kf$1(a,b){var c=b,d=0;do{var e=c.nextSibling;a.removeChild(c);if(e&&8===e.nodeType)if(c=e.data,"/$"===c){if(0===d){a.removeChild(e);bd$1(b);return}d--;}else "$"!==c&&"$?"!==c&&"$!"!==c||d++;c=e;}while(c);bd$1(b);}function Lf$1(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break;if(8===b){b=a.data;if("$"===b||"$!"===b||"$?"===b)break;if("/$"===b)return null}}return a}
1143
- function Mf$1(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if("$"===c||"$!"===c||"$?"===c){if(0===b)return a;b--;}else "/$"===c&&b++;}a=a.previousSibling;}return null}var Nf$1=Math.random().toString(36).slice(2),Of$1="__reactFiber$"+Nf$1,Pf$1="__reactProps$"+Nf$1,uf$1="__reactContainer$"+Nf$1,of="__reactEvents$"+Nf$1,Qf$1="__reactListeners$"+Nf$1,Rf$1="__reactHandles$"+Nf$1;
1144
- function Wc$1(a){var b=a[Of$1];if(b)return b;for(var c=a.parentNode;c;){if(b=c[uf$1]||c[Of$1]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Mf$1(a);null!==a;){if(c=a[Of$1])return c;a=Mf$1(a);}return b}a=c;c=a.parentNode;}return null}function Cb(a){a=a[Of$1]||a[uf$1];return !a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue$1(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(p$1(33));}function Db(a){return a[Pf$1]||null}var Sf$1=[],Tf$1=-1;function Uf$1(a){return {current:a}}
1145
- function E$1(a){0>Tf$1||(a.current=Sf$1[Tf$1],Sf$1[Tf$1]=null,Tf$1--);}function G$1(a,b){Tf$1++;Sf$1[Tf$1]=a.current;a.current=b;}var Vf$1={},H$1=Uf$1(Vf$1),Wf$1=Uf$1(!1),Xf$1=Vf$1;function Yf$1(a,b){var c=a.type.contextTypes;if(!c)return Vf$1;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}
1146
- function Zf$1(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E$1(Wf$1);E$1(H$1);}function ag$1(a,b,c){if(H$1.current!==Vf$1)throw Error(p$1(168));G$1(H$1,b);G$1(Wf$1,c);}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p$1(108,Ra(a)||"Unknown",e));return A({},c,d)}
1147
- function cg$1(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf$1;Xf$1=H$1.current;G$1(H$1,a);G$1(Wf$1,Wf$1.current);return !0}function dg$1(a,b,c){var d=a.stateNode;if(!d)throw Error(p$1(169));c?(a=bg(a,b,Xf$1),d.__reactInternalMemoizedMergedChildContext=a,E$1(Wf$1),E$1(H$1),G$1(H$1,a)):E$1(Wf$1);G$1(Wf$1,c);}var eg$1=null,fg$1=!1,gg=!1;function hg(a){null===eg$1?eg$1=[a]:eg$1.push(a);}function ig$1(a){fg$1=!0;hg(a);}
1148
- function jg(){if(!gg&&null!==eg$1){gg=!0;var a=0,b=C$1;try{var c=eg$1;for(C$1=1;a<c.length;a++){var d=c[a];do d=d(!0);while(null!==d)}eg$1=null;fg$1=!1;}catch(e){throw null!==eg$1&&(eg$1=eg$1.slice(a+1)),ac$1(fc$1,jg),e;}finally{C$1=b,gg=!1;}}return null}var kg=[],lg$1=0,mg=null,ng$1=0,og$1=[],pg=0,qg=null,rg$1=1,sg$1="";function tg$1(a,b){kg[lg$1++]=ng$1;kg[lg$1++]=mg;mg=a;ng$1=b;}
1149
- function ug$1(a,b,c){og$1[pg++]=rg$1;og$1[pg++]=sg$1;og$1[pg++]=qg;qg=a;var d=rg$1;a=sg$1;var e=32-oc$1(d)-1;d&=~(1<<e);c+=1;var f=32-oc$1(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32);d>>=g;e-=g;rg$1=1<<32-oc$1(b)+e|c<<e|d;sg$1=f+a;}else rg$1=1<<f|c<<e|d,sg$1=a;}function vg(a){null!==a.return&&(tg$1(a,1),ug$1(a,1,0));}function wg(a){for(;a===mg;)mg=kg[--lg$1],kg[lg$1]=null,ng$1=kg[--lg$1],kg[lg$1]=null;for(;a===qg;)qg=og$1[--pg],og$1[pg]=null,sg$1=og$1[--pg],og$1[pg]=null,rg$1=og$1[--pg],og$1[pg]=null;}var xg=null,yg=null,I$1=!1,zg=null;
1150
- function Ag$1(a,b){var c=Bg(5,null,null,0);c.elementType="DELETED";c.stateNode=b;c.return=a;b=a.deletions;null===b?(a.deletions=[c],a.flags|=16):b.push(c);}
1151
- function Cg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,xg=a,yg=Lf$1(b.firstChild),!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,xg=a,yg=null,!0):!1;case 13:return b=8!==b.nodeType?null:b,null!==b?(c=null!==qg?{id:rg$1,overflow:sg$1}:null,a.memoizedState={dehydrated:b,treeContext:c,retryLane:1073741824},c=Bg(18,null,null,0),c.stateNode=b,c.return=a,a.child=c,xg=a,yg=
1152
- null,!0):!1;default:return !1}}function Dg(a){return 0!==(a.mode&1)&&0===(a.flags&128)}function Eg(a){if(I$1){var b=yg;if(b){var c=b;if(!Cg(a,b)){if(Dg(a))throw Error(p$1(418));b=Lf$1(c.nextSibling);var d=xg;b&&Cg(a,b)?Ag$1(d,c):(a.flags=a.flags&-4097|2,I$1=!1,xg=a);}}else {if(Dg(a))throw Error(p$1(418));a.flags=a.flags&-4097|2;I$1=!1;xg=a;}}}function Fg$1(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;xg=a;}
1153
- function Gg(a){if(a!==xg)return !1;if(!I$1)return Fg$1(a),I$1=!0,!1;var b;(b=3!==a.tag)&&!(b=5!==a.tag)&&(b=a.type,b="head"!==b&&"body"!==b&&!Ef$1(a.type,a.memoizedProps));if(b&&(b=yg)){if(Dg(a))throw Hg(),Error(p$1(418));for(;b;)Ag$1(a,b),b=Lf$1(b.nextSibling);}Fg$1(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(p$1(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if("/$"===c){if(0===b){yg=Lf$1(a.nextSibling);break a}b--;}else "$"!==c&&"$!"!==c&&"$?"!==c||b++;}a=a.nextSibling;}yg=
1154
- null;}}else yg=xg?Lf$1(a.stateNode.nextSibling):null;return !0}function Hg(){for(var a=yg;a;)a=Lf$1(a.nextSibling);}function Ig(){yg=xg=null;I$1=!1;}function Jg$1(a){null===zg?zg=[a]:zg.push(a);}var Kg$1=ua$1.ReactCurrentBatchConfig;
1155
- function Lg(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==c.tag)throw Error(p$1(309));var d=c.stateNode;}if(!d)throw Error(p$1(147,a));var e=d,f=""+a;if(null!==b&&null!==b.ref&&"function"===typeof b.ref&&b.ref._stringRef===f)return b.ref;b=function(a){var b=e.refs;null===a?delete b[f]:b[f]=a;};b._stringRef=f;return b}if("string"!==typeof a)throw Error(p$1(284));if(!c._owner)throw Error(p$1(290,a));}return a}
1156
- function Mg$1(a,b){a=Object.prototype.toString.call(b);throw Error(p$1(31,"[object Object]"===a?"object with keys {"+Object.keys(b).join(", ")+"}":a));}function Ng(a){var b=a._init;return b(a._payload)}
1157
- function Og(a){function b(b,c){if(a){var d=b.deletions;null===d?(b.deletions=[c],b.flags|=16):d.push(c);}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){a=Pg(a,b);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return b.flags|=1048576,c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.flags|=2,c):d;b.flags|=2;return c}function g(b){a&&
1158
- null===b.alternate&&(b.flags|=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=Qg$1(c,a.mode,d),b.return=a,b;b=e(b,c);b.return=a;return b}function k(a,b,c,d){var f=c.type;if(f===ya$1)return m(a,b,c.props.children,d,c.key);if(null!==b&&(b.elementType===f||"object"===typeof f&&null!==f&&f.$$typeof===Ha$1&&Ng(f)===b.type))return d=e(b,c.props),d.ref=Lg(a,b,c),d.return=a,d;d=Rg(c.type,c.key,c.props,null,a.mode,d);d.ref=Lg(a,b,c);d.return=a;return d}function l(a,b,c,d){if(null===b||4!==b.tag||
1159
- b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=Sg(c,a.mode,d),b.return=a,b;b=e(b,c.children||[]);b.return=a;return b}function m(a,b,c,d,f){if(null===b||7!==b.tag)return b=Tg(c,a.mode,d,f),b.return=a,b;b=e(b,c);b.return=a;return b}function q(a,b,c){if("string"===typeof b&&""!==b||"number"===typeof b)return b=Qg$1(""+b,a.mode,c),b.return=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case va:return c=Rg(b.type,b.key,b.props,null,a.mode,c),
1160
- c.ref=Lg(a,null,b),c.return=a,c;case wa:return b=Sg(b,a.mode,c),b.return=a,b;case Ha$1:var d=b._init;return q(a,d(b._payload),c)}if(eb$1(b)||Ka$1(b))return b=Tg(b,a.mode,c,null),b.return=a,b;Mg$1(a,b);}return null}function r(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c&&""!==c||"number"===typeof c)return null!==e?null:h(a,b,""+c,d);if("object"===typeof c&&null!==c){switch(c.$$typeof){case va:return c.key===e?k(a,b,c,d):null;case wa:return c.key===e?l(a,b,c,d):null;case Ha$1:return e=c._init,r(a,
1161
- b,e(c._payload),d)}if(eb$1(c)||Ka$1(c))return null!==e?null:m(a,b,c,d,null);Mg$1(a,c);}return null}function y(a,b,c,d,e){if("string"===typeof d&&""!==d||"number"===typeof d)return a=a.get(c)||null,h(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case va:return a=a.get(null===d.key?c:d.key)||null,k(b,a,d,e);case wa:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e);case Ha$1:var f=d._init;return y(a,b,c,f(d._payload),e)}if(eb$1(d)||Ka$1(d))return a=a.get(c)||null,m(b,a,d,e,null);Mg$1(b,d);}return null}
1162
- function n(e,g,h,k){for(var l=null,m=null,u=g,w=g=0,x=null;null!==u&&w<h.length;w++){u.index>w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x;}if(w===h.length)return c(e,u),I$1&&tg$1(e,w),l;if(null===u){for(;w<h.length;w++)u=q(e,h[w],k),null!==u&&(g=f(u,g,w),null===m?l=u:m.sibling=u,m=u);I$1&&tg$1(e,w);return l}for(u=d(e,u);w<h.length;w++)x=y(u,e,w,h[w],k),null!==x&&(a&&null!==x.alternate&&u.delete(null===
1163
- x.key?w:x.key),g=f(x,g,w),null===m?l=x:m.sibling=x,m=x);a&&u.forEach(function(a){return b(e,a)});I$1&&tg$1(e,w);return l}function t(e,g,h,k){var l=Ka$1(h);if("function"!==typeof l)throw Error(p$1(150));h=l.call(h);if(null==h)throw Error(p$1(151));for(var u=l=null,m=g,w=g=0,x=null,n=h.next();null!==m&&!n.done;w++,n=h.next()){m.index>w?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x;}if(n.done)return c(e,
1164
- m),I$1&&tg$1(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I$1&&tg$1(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I$1&&tg$1(e,w);return l}function J(a,d,f,h){"object"===typeof f&&null!==f&&f.type===ya$1&&null===f.key&&(f=f.props.children);if("object"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=
1165
- f.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya$1){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||"object"===typeof k&&null!==k&&k.$$typeof===Ha$1&&Ng(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=Lg(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling;}f.type===ya$1?(d=Tg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Rg(f.type,f.key,f.props,null,a.mode,h),h.ref=Lg(a,d,f),h.return=a,a=h);}return g(a);case wa:a:{for(l=f.key;null!==
1166
- d;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else {c(a,d);break}else b(a,d);d=d.sibling;}d=Sg(f,a.mode,h);d.return=a;a=d;}return g(a);case Ha$1:return l=f._init,J(a,d,l(f._payload),h)}if(eb$1(f))return n(a,d,f,h);if(Ka$1(f))return t(a,d,f,h);Mg$1(a,f);}return "string"===typeof f&&""!==f||"number"===typeof f?(f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):
1167
- (c(a,d),d=Qg$1(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Ug=Og(!0),Vg$1=Og(!1),Wg=Uf$1(null),Xg=null,Yg=null,Zg$1=null;function $g(){Zg$1=Yg=Xg=null;}function ah$1(a){var b=Wg.current;E$1(Wg);a._currentValue=b;}function bh$1(a,b,c){for(;null!==a;){var d=a.alternate;(a.childLanes&b)!==b?(a.childLanes|=b,null!==d&&(d.childLanes|=b)):null!==d&&(d.childLanes&b)!==b&&(d.childLanes|=b);if(a===c)break;a=a.return;}}
1168
- function ch(a,b){Xg=a;Zg$1=Yg=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(dh=!0),a.firstContext=null);}function eh$1(a){var b=a._currentValue;if(Zg$1!==a)if(a={context:a,memoizedValue:b,next:null},null===Yg){if(null===Xg)throw Error(p$1(308));Yg=a;Xg.dependencies={lanes:0,firstContext:a};}else Yg=Yg.next=a;return b}var fh$1=null;function gh$1(a){null===fh$1?fh$1=[a]:fh$1.push(a);}
1169
- function hh$1(a,b,c,d){var e=b.interleaved;null===e?(c.next=c,gh$1(b)):(c.next=e.next,e.next=c);b.interleaved=c;return ih$1(a,d)}function ih$1(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}var jh=!1;function kh$1(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};}
1170
- function lh(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects});}function mh$1(a,b){return {eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}
1171
- function nh$1(a,b,c){var d=a.updateQueue;if(null===d)return null;d=d.shared;if(0!==(K$1&2)){var e=d.pending;null===e?b.next=b:(b.next=e.next,e.next=b);d.pending=b;return ih$1(a,c)}e=d.interleaved;null===e?(b.next=b,gh$1(d)):(b.next=e.next,e.next=b);d.interleaved=b;return ih$1(a,c)}function oh$1(a,b,c){b=b.updateQueue;if(null!==b&&(b=b.shared,0!==(c&4194240))){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc$1(a,c);}}
1143
+ function Mf$1(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if("$"===c||"$!"===c||"$?"===c){if(0===b)return a;b--;}else "/$"===c&&b++;}a=a.previousSibling;}return null}var Nf$1=Math.random().toString(36).slice(2),Of$1="__reactFiber$"+Nf$1,Pf$1="__reactProps$"+Nf$1,uf$1="__reactContainer$"+Nf$1,of$1="__reactEvents$"+Nf$1,Qf$1="__reactListeners$"+Nf$1,Rf$1="__reactHandles$"+Nf$1;
1144
+ function Wc(a){var b=a[Of$1];if(b)return b;for(var c=a.parentNode;c;){if(b=c[uf$1]||c[Of$1]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Mf$1(a);null!==a;){if(c=a[Of$1])return c;a=Mf$1(a);}return b}a=c;c=a.parentNode;}return null}function Cb$1(a){a=a[Of$1]||a[uf$1];return !a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue$1(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(p$1(33));}function Db$1(a){return a[Pf$1]||null}var Sf$1=[],Tf$1=-1;function Uf$1(a){return {current:a}}
1145
+ function E(a){0>Tf$1||(a.current=Sf$1[Tf$1],Sf$1[Tf$1]=null,Tf$1--);}function G$1(a,b){Tf$1++;Sf$1[Tf$1]=a.current;a.current=b;}var Vf$1={},H$1=Uf$1(Vf$1),Wf$1=Uf$1(!1),Xf$1=Vf$1;function Yf$1(a,b){var c=a.type.contextTypes;if(!c)return Vf$1;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}
1146
+ function Zf$1(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f$1(){E(Wf$1);E(H$1);}function ag$1(a,b,c){if(H$1.current!==Vf$1)throw Error(p$1(168));G$1(H$1,b);G$1(Wf$1,c);}function bg$1(a,b,c){var d=a.stateNode;b=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p$1(108,Ra(a)||"Unknown",e));return A$1({},c,d)}
1147
+ function cg$1(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf$1;Xf$1=H$1.current;G$1(H$1,a);G$1(Wf$1,Wf$1.current);return !0}function dg$1(a,b,c){var d=a.stateNode;if(!d)throw Error(p$1(169));c?(a=bg$1(a,b,Xf$1),d.__reactInternalMemoizedMergedChildContext=a,E(Wf$1),E(H$1),G$1(H$1,a)):E(Wf$1);G$1(Wf$1,c);}var eg$1=null,fg$1=!1,gg$1=!1;function hg$1(a){null===eg$1?eg$1=[a]:eg$1.push(a);}function ig$1(a){fg$1=!0;hg$1(a);}
1148
+ function jg$1(){if(!gg$1&&null!==eg$1){gg$1=!0;var a=0,b=C;try{var c=eg$1;for(C=1;a<c.length;a++){var d=c[a];do d=d(!0);while(null!==d)}eg$1=null;fg$1=!1;}catch(e){throw null!==eg$1&&(eg$1=eg$1.slice(a+1)),ac(fc,jg$1),e;}finally{C=b,gg$1=!1;}}return null}var kg$1=[],lg$1=0,mg$1=null,ng$1=0,og$1=[],pg$1=0,qg$1=null,rg$1=1,sg$1="";function tg$1(a,b){kg$1[lg$1++]=ng$1;kg$1[lg$1++]=mg$1;mg$1=a;ng$1=b;}
1149
+ function ug$1(a,b,c){og$1[pg$1++]=rg$1;og$1[pg$1++]=sg$1;og$1[pg$1++]=qg$1;qg$1=a;var d=rg$1;a=sg$1;var e=32-oc(d)-1;d&=~(1<<e);c+=1;var f=32-oc(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32);d>>=g;e-=g;rg$1=1<<32-oc(b)+e|c<<e|d;sg$1=f+a;}else rg$1=1<<f|c<<e|d,sg$1=a;}function vg$1(a){null!==a.return&&(tg$1(a,1),ug$1(a,1,0));}function wg$1(a){for(;a===mg$1;)mg$1=kg$1[--lg$1],kg$1[lg$1]=null,ng$1=kg$1[--lg$1],kg$1[lg$1]=null;for(;a===qg$1;)qg$1=og$1[--pg$1],og$1[pg$1]=null,sg$1=og$1[--pg$1],og$1[pg$1]=null,rg$1=og$1[--pg$1],og$1[pg$1]=null;}var xg$1=null,yg$1=null,I=!1,zg$1=null;
1150
+ function Ag$1(a,b){var c=Bg$1(5,null,null,0);c.elementType="DELETED";c.stateNode=b;c.return=a;b=a.deletions;null===b?(a.deletions=[c],a.flags|=16):b.push(c);}
1151
+ function Cg$1(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,xg$1=a,yg$1=Lf$1(b.firstChild),!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,xg$1=a,yg$1=null,!0):!1;case 13:return b=8!==b.nodeType?null:b,null!==b?(c=null!==qg$1?{id:rg$1,overflow:sg$1}:null,a.memoizedState={dehydrated:b,treeContext:c,retryLane:1073741824},c=Bg$1(18,null,null,0),c.stateNode=b,c.return=a,a.child=c,xg$1=a,yg$1=
1152
+ null,!0):!1;default:return !1}}function Dg$1(a){return 0!==(a.mode&1)&&0===(a.flags&128)}function Eg$1(a){if(I){var b=yg$1;if(b){var c=b;if(!Cg$1(a,b)){if(Dg$1(a))throw Error(p$1(418));b=Lf$1(c.nextSibling);var d=xg$1;b&&Cg$1(a,b)?Ag$1(d,c):(a.flags=a.flags&-4097|2,I=!1,xg$1=a);}}else {if(Dg$1(a))throw Error(p$1(418));a.flags=a.flags&-4097|2;I=!1;xg$1=a;}}}function Fg$1(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;xg$1=a;}
1153
+ function Gg$1(a){if(a!==xg$1)return !1;if(!I)return Fg$1(a),I=!0,!1;var b;(b=3!==a.tag)&&!(b=5!==a.tag)&&(b=a.type,b="head"!==b&&"body"!==b&&!Ef$1(a.type,a.memoizedProps));if(b&&(b=yg$1)){if(Dg$1(a))throw Hg$1(),Error(p$1(418));for(;b;)Ag$1(a,b),b=Lf$1(b.nextSibling);}Fg$1(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(p$1(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if("/$"===c){if(0===b){yg$1=Lf$1(a.nextSibling);break a}b--;}else "$"!==c&&"$!"!==c&&"$?"!==c||b++;}a=a.nextSibling;}yg$1=
1154
+ null;}}else yg$1=xg$1?Lf$1(a.stateNode.nextSibling):null;return !0}function Hg$1(){for(var a=yg$1;a;)a=Lf$1(a.nextSibling);}function Ig$1(){yg$1=xg$1=null;I=!1;}function Jg$1(a){null===zg$1?zg$1=[a]:zg$1.push(a);}var Kg$1=ua$1.ReactCurrentBatchConfig;
1155
+ function Lg$1(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==c.tag)throw Error(p$1(309));var d=c.stateNode;}if(!d)throw Error(p$1(147,a));var e=d,f=""+a;if(null!==b&&null!==b.ref&&"function"===typeof b.ref&&b.ref._stringRef===f)return b.ref;b=function(a){var b=e.refs;null===a?delete b[f]:b[f]=a;};b._stringRef=f;return b}if("string"!==typeof a)throw Error(p$1(284));if(!c._owner)throw Error(p$1(290,a));}return a}
1156
+ function Mg$1(a,b){a=Object.prototype.toString.call(b);throw Error(p$1(31,"[object Object]"===a?"object with keys {"+Object.keys(b).join(", ")+"}":a));}function Ng$1(a){var b=a._init;return b(a._payload)}
1157
+ function Og$1(a){function b(b,c){if(a){var d=b.deletions;null===d?(b.deletions=[c],b.flags|=16):d.push(c);}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){a=Pg$1(a,b);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return b.flags|=1048576,c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.flags|=2,c):d;b.flags|=2;return c}function g(b){a&&
1158
+ null===b.alternate&&(b.flags|=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=Qg$1(c,a.mode,d),b.return=a,b;b=e(b,c);b.return=a;return b}function k(a,b,c,d){var f=c.type;if(f===ya)return m(a,b,c.props.children,d,c.key);if(null!==b&&(b.elementType===f||"object"===typeof f&&null!==f&&f.$$typeof===Ha&&Ng$1(f)===b.type))return d=e(b,c.props),d.ref=Lg$1(a,b,c),d.return=a,d;d=Rg$1(c.type,c.key,c.props,null,a.mode,d);d.ref=Lg$1(a,b,c);d.return=a;return d}function l(a,b,c,d){if(null===b||4!==b.tag||
1159
+ b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=Sg$1(c,a.mode,d),b.return=a,b;b=e(b,c.children||[]);b.return=a;return b}function m(a,b,c,d,f){if(null===b||7!==b.tag)return b=Tg$1(c,a.mode,d,f),b.return=a,b;b=e(b,c);b.return=a;return b}function q(a,b,c){if("string"===typeof b&&""!==b||"number"===typeof b)return b=Qg$1(""+b,a.mode,c),b.return=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case va:return c=Rg$1(b.type,b.key,b.props,null,a.mode,c),
1160
+ c.ref=Lg$1(a,null,b),c.return=a,c;case wa:return b=Sg$1(b,a.mode,c),b.return=a,b;case Ha:var d=b._init;return q(a,d(b._payload),c)}if(eb$1(b)||Ka$1(b))return b=Tg$1(b,a.mode,c,null),b.return=a,b;Mg$1(a,b);}return null}function r(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c&&""!==c||"number"===typeof c)return null!==e?null:h(a,b,""+c,d);if("object"===typeof c&&null!==c){switch(c.$$typeof){case va:return c.key===e?k(a,b,c,d):null;case wa:return c.key===e?l(a,b,c,d):null;case Ha:return e=c._init,r(a,
1161
+ b,e(c._payload),d)}if(eb$1(c)||Ka$1(c))return null!==e?null:m(a,b,c,d,null);Mg$1(a,c);}return null}function y(a,b,c,d,e){if("string"===typeof d&&""!==d||"number"===typeof d)return a=a.get(c)||null,h(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case va:return a=a.get(null===d.key?c:d.key)||null,k(b,a,d,e);case wa:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e);case Ha:var f=d._init;return y(a,b,c,f(d._payload),e)}if(eb$1(d)||Ka$1(d))return a=a.get(c)||null,m(b,a,d,e,null);Mg$1(b,d);}return null}
1162
+ function n(e,g,h,k){for(var l=null,m=null,u=g,w=g=0,x=null;null!==u&&w<h.length;w++){u.index>w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x;}if(w===h.length)return c(e,u),I&&tg$1(e,w),l;if(null===u){for(;w<h.length;w++)u=q(e,h[w],k),null!==u&&(g=f(u,g,w),null===m?l=u:m.sibling=u,m=u);I&&tg$1(e,w);return l}for(u=d(e,u);w<h.length;w++)x=y(u,e,w,h[w],k),null!==x&&(a&&null!==x.alternate&&u.delete(null===
1163
+ x.key?w:x.key),g=f(x,g,w),null===m?l=x:m.sibling=x,m=x);a&&u.forEach(function(a){return b(e,a)});I&&tg$1(e,w);return l}function t(e,g,h,k){var l=Ka$1(h);if("function"!==typeof l)throw Error(p$1(150));h=l.call(h);if(null==h)throw Error(p$1(151));for(var u=l=null,m=g,w=g=0,x=null,n=h.next();null!==m&&!n.done;w++,n=h.next()){m.index>w?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x;}if(n.done)return c(e,
1164
+ m),I&&tg$1(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg$1(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg$1(e,w);return l}function J(a,d,f,h){"object"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if("object"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=
1165
+ f.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||"object"===typeof k&&null!==k&&k.$$typeof===Ha&&Ng$1(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=Lg$1(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling;}f.type===ya?(d=Tg$1(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Rg$1(f.type,f.key,f.props,null,a.mode,h),h.ref=Lg$1(a,d,f),h.return=a,a=h);}return g(a);case wa:a:{for(l=f.key;null!==
1166
+ d;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else {c(a,d);break}else b(a,d);d=d.sibling;}d=Sg$1(f,a.mode,h);d.return=a;a=d;}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb$1(f))return n(a,d,f,h);if(Ka$1(f))return t(a,d,f,h);Mg$1(a,f);}return "string"===typeof f&&""!==f||"number"===typeof f?(f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):
1167
+ (c(a,d),d=Qg$1(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Ug$1=Og$1(!0),Vg$1=Og$1(!1),Wg$1=Uf$1(null),Xg$1=null,Yg$1=null,Zg$1=null;function $g$1(){Zg$1=Yg$1=Xg$1=null;}function ah$1(a){var b=Wg$1.current;E(Wg$1);a._currentValue=b;}function bh(a,b,c){for(;null!==a;){var d=a.alternate;(a.childLanes&b)!==b?(a.childLanes|=b,null!==d&&(d.childLanes|=b)):null!==d&&(d.childLanes&b)!==b&&(d.childLanes|=b);if(a===c)break;a=a.return;}}
1168
+ function ch$1(a,b){Xg$1=a;Zg$1=Yg$1=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(dh$1=!0),a.firstContext=null);}function eh$1(a){var b=a._currentValue;if(Zg$1!==a)if(a={context:a,memoizedValue:b,next:null},null===Yg$1){if(null===Xg$1)throw Error(p$1(308));Yg$1=a;Xg$1.dependencies={lanes:0,firstContext:a};}else Yg$1=Yg$1.next=a;return b}var fh$1=null;function gh(a){null===fh$1?fh$1=[a]:fh$1.push(a);}
1169
+ function hh$1(a,b,c,d){var e=b.interleaved;null===e?(c.next=c,gh(b)):(c.next=e.next,e.next=c);b.interleaved=c;return ih$1(a,d)}function ih$1(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}var jh$1=!1;function kh$1(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};}
1170
+ function lh$1(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects});}function mh$1(a,b){return {eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}
1171
+ function nh$1(a,b,c){var d=a.updateQueue;if(null===d)return null;d=d.shared;if(0!==(K$1&2)){var e=d.pending;null===e?b.next=b:(b.next=e.next,e.next=b);d.pending=b;return ih$1(a,c)}e=d.interleaved;null===e?(b.next=b,gh(d)):(b.next=e.next,e.next=b);d.interleaved=b;return ih$1(a,c)}function oh$1(a,b,c){b=b.updateQueue;if(null!==b&&(b=b.shared,0!==(c&4194240))){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c);}}
1172
1172
  function ph$1(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&(d=d.updateQueue,c===d)){var e=null,f=null;c=c.firstBaseUpdate;if(null!==c){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g;c=c.next;}while(null!==c);null===f?e=f=b:f=f.next=b;}else e=f=b;c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects};a.updateQueue=c;return}a=c.lastBaseUpdate;null===a?c.firstBaseUpdate=b:a.next=
1173
1173
  b;c.lastBaseUpdate=b;}
1174
- function qh$1(a,b,c,d){var e=a.updateQueue;jh=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null;null===g?f=l:g.next=l;g=k;var m=a.alternate;null!==m&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==g&&(null===h?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k));}if(null!==f){var q=e.baseState;g=0;m=l=k=null;h=f;do{var r=h.lane,y=h.eventTime;if((d&r)===r){null!==m&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,
1175
- next:null});a:{var n=a,t=h;r=b;y=c;switch(t.tag){case 1:n=t.payload;if("function"===typeof n){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:n=t.payload;r="function"===typeof n?n.call(y,q,r):n;if(null===r||void 0===r)break a;q=A({},q,r);break a;case 2:jh=!0;}}null!==h.callback&&0!==h.lane&&(a.flags|=64,r=e.effects,null===r?e.effects=[h]:r.push(h));}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;
1174
+ function qh$1(a,b,c,d){var e=a.updateQueue;jh$1=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null;null===g?f=l:g.next=l;g=k;var m=a.alternate;null!==m&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==g&&(null===h?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k));}if(null!==f){var q=e.baseState;g=0;m=l=k=null;h=f;do{var r=h.lane,y=h.eventTime;if((d&r)===r){null!==m&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,
1175
+ next:null});a:{var n=a,t=h;r=b;y=c;switch(t.tag){case 1:n=t.payload;if("function"===typeof n){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:n=t.payload;r="function"===typeof n?n.call(y,q,r):n;if(null===r||void 0===r)break a;q=A$1({},q,r);break a;case 2:jh$1=!0;}}null!==h.callback&&0!==h.lane&&(a.flags|=64,r=e.effects,null===r?e.effects=[h]:r.push(h));}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;
1176
1176
  h=h.next;if(null===h)if(h=e.shared.pending,null===h)break;else r=h,h=r.next,r.next=null,e.lastBaseUpdate=r,e.shared.pending=null;}while(1);null===m&&(k=q);e.baseState=k;e.firstBaseUpdate=l;e.lastBaseUpdate=m;b=e.shared.interleaved;if(null!==b){e=b;do g|=e.lane,e=e.next;while(e!==b)}else null===f&&(e.shared.lanes=0);rh$1|=g;a.lanes=g;a.memoizedState=q;}}
1177
- function sh$1(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if("function"!==typeof e)throw Error(p$1(191,e));e.call(d);}}}var th$1={},uh=Uf$1(th$1),vh$1=Uf$1(th$1),wh$1=Uf$1(th$1);function xh$1(a){if(a===th$1)throw Error(p$1(174));return a}
1178
- function yh$1(a,b){G$1(wh$1,b);G$1(vh$1,a);G$1(uh,th$1);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb$1(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb$1(b,a);}E$1(uh);G$1(uh,b);}function zh(){E$1(uh);E$1(vh$1);E$1(wh$1);}function Ah(a){xh$1(wh$1.current);var b=xh$1(uh.current);var c=lb$1(b,a.type);b!==c&&(G$1(vh$1,a),G$1(uh,c));}function Bh(a){vh$1.current===a&&(E$1(uh),E$1(vh$1));}var L$1=Uf$1(0);
1179
- function Ch$1(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||"$?"===c.data||"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return;}b.sibling.return=b.return;b=b.sibling;}return null}var Dh=[];
1180
- function Eh$1(){for(var a=0;a<Dh.length;a++)Dh[a]._workInProgressVersionPrimary=null;Dh.length=0;}var Fh=ua$1.ReactCurrentDispatcher,Gh$1=ua$1.ReactCurrentBatchConfig,Hh$1=0,M$1=null,N$1=null,O=null,Ih=!1,Jh$1=!1,Kh$1=0,Lh=0;function P$1(){throw Error(p$1(321));}function Mh(a,b){if(null===b)return !1;for(var c=0;c<b.length&&c<a.length;c++)if(!He$1(a[c],b[c]))return !1;return !0}
1181
- function Nh$1(a,b,c,d,e,f){Hh$1=f;M$1=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Fh.current=null===a||null===a.memoizedState?Oh:Ph$1;a=c(d,e);if(Jh$1){f=0;do{Jh$1=!1;Kh$1=0;if(25<=f)throw Error(p$1(301));f+=1;O=N$1=null;b.updateQueue=null;Fh.current=Qh$1;a=c(d,e);}while(Jh$1)}Fh.current=Rh;b=null!==N$1&&null!==N$1.next;Hh$1=0;O=N$1=M$1=null;Ih=!1;if(b)throw Error(p$1(300));return a}function Sh$1(){var a=0!==Kh$1;Kh$1=0;return a}
1182
- function Th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===O?M$1.memoizedState=O=a:O=O.next=a;return O}function Uh$1(){if(null===N$1){var a=M$1.alternate;a=null!==a?a.memoizedState:null;}else a=N$1.next;var b=null===O?M$1.memoizedState:O.next;if(null!==b)O=b,N$1=a;else {if(null===a)throw Error(p$1(310));N$1=a;a={memoizedState:N$1.memoizedState,baseState:N$1.baseState,baseQueue:N$1.baseQueue,queue:N$1.queue,next:null};null===O?M$1.memoizedState=O=a:O=O.next=a;}return O}
1183
- function Vh(a,b){return "function"===typeof b?b(a):b}
1184
- function Wh(a){var b=Uh$1(),c=b.queue;if(null===c)throw Error(p$1(311));c.lastRenderedReducer=a;var d=N$1,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g;}d.baseQueue=e=f;c.pending=null;}if(null!==e){f=e.next;d=d.baseState;var h=g=null,k=null,l=f;do{var m=l.lane;if((Hh$1&m)===m)null!==k&&(k=k.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d=l.hasEagerState?l.eagerState:a(d,l.action);else {var q={lane:m,action:l.action,hasEagerState:l.hasEagerState,
1185
- eagerState:l.eagerState,next:null};null===k?(h=k=q,g=d):k=k.next=q;M$1.lanes|=m;rh$1|=m;}l=l.next;}while(null!==l&&l!==f);null===k?g=d:k.next=h;He$1(d,b.memoizedState)||(dh=!0);b.memoizedState=d;b.baseState=g;b.baseQueue=k;c.lastRenderedState=d;}a=c.interleaved;if(null!==a){e=a;do f=e.lane,M$1.lanes|=f,rh$1|=f,e=e.next;while(e!==a)}else null===e&&(c.lanes=0);return [b.memoizedState,c.dispatch]}
1186
- function Xh$1(a){var b=Uh$1(),c=b.queue;if(null===c)throw Error(p$1(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);He$1(f,b.memoizedState)||(dh=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f;}return [f,d]}function Yh$1(){}
1187
- function Zh$1(a,b){var c=M$1,d=Uh$1(),e=b(),f=!He$1(d.memoizedState,e);f&&(d.memoizedState=e,dh=!0);d=d.queue;$h(ai$1.bind(null,c,d,a),[a]);if(d.getSnapshot!==b||f||null!==O&&O.memoizedState.tag&1){c.flags|=2048;bi$1(9,ci$1.bind(null,c,d,e,b),void 0,null);if(null===Q$1)throw Error(p$1(349));0!==(Hh$1&30)||di$1(c,b,e);}return e}function di$1(a,b,c){a.flags|=16384;a={getSnapshot:b,value:c};b=M$1.updateQueue;null===b?(b={lastEffect:null,stores:null},M$1.updateQueue=b,b.stores=[a]):(c=b.stores,null===c?b.stores=[a]:c.push(a));}
1177
+ function sh$1(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if("function"!==typeof e)throw Error(p$1(191,e));e.call(d);}}}var th$1={},uh$1=Uf$1(th$1),vh$1=Uf$1(th$1),wh$1=Uf$1(th$1);function xh$1(a){if(a===th$1)throw Error(p$1(174));return a}
1178
+ function yh$1(a,b){G$1(wh$1,b);G$1(vh$1,a);G$1(uh$1,th$1);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb$1(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb$1(b,a);}E(uh$1);G$1(uh$1,b);}function zh$1(){E(uh$1);E(vh$1);E(wh$1);}function Ah$1(a){xh$1(wh$1.current);var b=xh$1(uh$1.current);var c=lb$1(b,a.type);b!==c&&(G$1(vh$1,a),G$1(uh$1,c));}function Bh$1(a){vh$1.current===a&&(E(uh$1),E(vh$1));}var L=Uf$1(0);
1179
+ function Ch$1(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||"$?"===c.data||"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return;}b.sibling.return=b.return;b=b.sibling;}return null}var Dh$1=[];
1180
+ function Eh$1(){for(var a=0;a<Dh$1.length;a++)Dh$1[a]._workInProgressVersionPrimary=null;Dh$1.length=0;}var Fh$1=ua$1.ReactCurrentDispatcher,Gh$1=ua$1.ReactCurrentBatchConfig,Hh$1=0,M$1=null,N$1=null,O$1=null,Ih$1=!1,Jh$1=!1,Kh$1=0,Lh$1=0;function P$1(){throw Error(p$1(321));}function Mh$1(a,b){if(null===b)return !1;for(var c=0;c<b.length&&c<a.length;c++)if(!He$1(a[c],b[c]))return !1;return !0}
1181
+ function Nh$1(a,b,c,d,e,f){Hh$1=f;M$1=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Fh$1.current=null===a||null===a.memoizedState?Oh$1:Ph$1;a=c(d,e);if(Jh$1){f=0;do{Jh$1=!1;Kh$1=0;if(25<=f)throw Error(p$1(301));f+=1;O$1=N$1=null;b.updateQueue=null;Fh$1.current=Qh$1;a=c(d,e);}while(Jh$1)}Fh$1.current=Rh$1;b=null!==N$1&&null!==N$1.next;Hh$1=0;O$1=N$1=M$1=null;Ih$1=!1;if(b)throw Error(p$1(300));return a}function Sh$1(){var a=0!==Kh$1;Kh$1=0;return a}
1182
+ function Th$1(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===O$1?M$1.memoizedState=O$1=a:O$1=O$1.next=a;return O$1}function Uh$1(){if(null===N$1){var a=M$1.alternate;a=null!==a?a.memoizedState:null;}else a=N$1.next;var b=null===O$1?M$1.memoizedState:O$1.next;if(null!==b)O$1=b,N$1=a;else {if(null===a)throw Error(p$1(310));N$1=a;a={memoizedState:N$1.memoizedState,baseState:N$1.baseState,baseQueue:N$1.baseQueue,queue:N$1.queue,next:null};null===O$1?M$1.memoizedState=O$1=a:O$1=O$1.next=a;}return O$1}
1183
+ function Vh$1(a,b){return "function"===typeof b?b(a):b}
1184
+ function Wh$1(a){var b=Uh$1(),c=b.queue;if(null===c)throw Error(p$1(311));c.lastRenderedReducer=a;var d=N$1,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g;}d.baseQueue=e=f;c.pending=null;}if(null!==e){f=e.next;d=d.baseState;var h=g=null,k=null,l=f;do{var m=l.lane;if((Hh$1&m)===m)null!==k&&(k=k.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d=l.hasEagerState?l.eagerState:a(d,l.action);else {var q={lane:m,action:l.action,hasEagerState:l.hasEagerState,
1185
+ eagerState:l.eagerState,next:null};null===k?(h=k=q,g=d):k=k.next=q;M$1.lanes|=m;rh$1|=m;}l=l.next;}while(null!==l&&l!==f);null===k?g=d:k.next=h;He$1(d,b.memoizedState)||(dh$1=!0);b.memoizedState=d;b.baseState=g;b.baseQueue=k;c.lastRenderedState=d;}a=c.interleaved;if(null!==a){e=a;do f=e.lane,M$1.lanes|=f,rh$1|=f,e=e.next;while(e!==a)}else null===e&&(c.lanes=0);return [b.memoizedState,c.dispatch]}
1186
+ function Xh$1(a){var b=Uh$1(),c=b.queue;if(null===c)throw Error(p$1(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);He$1(f,b.memoizedState)||(dh$1=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f;}return [f,d]}function Yh$1(){}
1187
+ function Zh$1(a,b){var c=M$1,d=Uh$1(),e=b(),f=!He$1(d.memoizedState,e);f&&(d.memoizedState=e,dh$1=!0);d=d.queue;$h$1(ai$1.bind(null,c,d,a),[a]);if(d.getSnapshot!==b||f||null!==O$1&&O$1.memoizedState.tag&1){c.flags|=2048;bi$1(9,ci$1.bind(null,c,d,e,b),void 0,null);if(null===Q$1)throw Error(p$1(349));0!==(Hh$1&30)||di$1(c,b,e);}return e}function di$1(a,b,c){a.flags|=16384;a={getSnapshot:b,value:c};b=M$1.updateQueue;null===b?(b={lastEffect:null,stores:null},M$1.updateQueue=b,b.stores=[a]):(c=b.stores,null===c?b.stores=[a]:c.push(a));}
1188
1188
  function ci$1(a,b,c,d){b.value=c;b.getSnapshot=d;ei$1(b)&&fi$1(a);}function ai$1(a,b,c){return c(function(){ei$1(b)&&fi$1(a);})}function ei$1(a){var b=a.getSnapshot;a=a.value;try{var c=b();return !He$1(a,c)}catch(d){return !0}}function fi$1(a){var b=ih$1(a,1);null!==b&&gi$1(b,a,1,-1);}
1189
- function hi$1(a){var b=Th();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:a};b.queue=a;a=a.dispatch=ii$1.bind(null,M$1,a);return [b.memoizedState,a]}
1190
- function bi$1(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=M$1.updateQueue;null===b?(b={lastEffect:null,stores:null},M$1.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function ji$1(){return Uh$1().memoizedState}function ki$1(a,b,c,d){var e=Th();M$1.flags|=a;e.memoizedState=bi$1(1|b,c,void 0,void 0===d?null:d);}
1191
- function li$1(a,b,c,d){var e=Uh$1();d=void 0===d?null:d;var f=void 0;if(null!==N$1){var g=N$1.memoizedState;f=g.destroy;if(null!==d&&Mh(d,g.deps)){e.memoizedState=bi$1(b,c,f,d);return}}M$1.flags|=a;e.memoizedState=bi$1(1|b,c,f,d);}function mi$1(a,b){return ki$1(8390656,8,a,b)}function $h(a,b){return li$1(2048,8,a,b)}function ni(a,b){return li$1(4,2,a,b)}function oi$1(a,b){return li$1(4,4,a,b)}
1192
- function pi$1(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null);};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null;}}function qi$1(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return li$1(4,4,pi$1.bind(null,b,a),c)}function ri$1(){}function si$1(a,b){var c=Uh$1();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Mh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}
1193
- function ti(a,b){var c=Uh$1();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Mh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function ui$1(a,b,c){if(0===(Hh$1&21))return a.baseState&&(a.baseState=!1,dh=!0),a.memoizedState=c;He$1(c,b)||(c=yc$1(),M$1.lanes|=c,rh$1|=c,a.baseState=!0);return b}function vi$1(a,b){var c=C$1;C$1=0!==c&&4>c?c:4;a(!0);var d=Gh$1.transition;Gh$1.transition={};try{a(!1),b();}finally{C$1=c,Gh$1.transition=d;}}function wi$1(){return Uh$1().memoizedState}
1189
+ function hi$1(a){var b=Th$1();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh$1,lastRenderedState:a};b.queue=a;a=a.dispatch=ii$1.bind(null,M$1,a);return [b.memoizedState,a]}
1190
+ function bi$1(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=M$1.updateQueue;null===b?(b={lastEffect:null,stores:null},M$1.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function ji$1(){return Uh$1().memoizedState}function ki$1(a,b,c,d){var e=Th$1();M$1.flags|=a;e.memoizedState=bi$1(1|b,c,void 0,void 0===d?null:d);}
1191
+ function li$1(a,b,c,d){var e=Uh$1();d=void 0===d?null:d;var f=void 0;if(null!==N$1){var g=N$1.memoizedState;f=g.destroy;if(null!==d&&Mh$1(d,g.deps)){e.memoizedState=bi$1(b,c,f,d);return}}M$1.flags|=a;e.memoizedState=bi$1(1|b,c,f,d);}function mi$1(a,b){return ki$1(8390656,8,a,b)}function $h$1(a,b){return li$1(2048,8,a,b)}function ni(a,b){return li$1(4,2,a,b)}function oi(a,b){return li$1(4,4,a,b)}
1192
+ function pi$1(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null);};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null;}}function qi$1(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return li$1(4,4,pi$1.bind(null,b,a),c)}function ri$1(){}function si$1(a,b){var c=Uh$1();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Mh$1(b,d[1]))return d[0];c.memoizedState=[a,b];return a}
1193
+ function ti$1(a,b){var c=Uh$1();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Mh$1(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function ui$1(a,b,c){if(0===(Hh$1&21))return a.baseState&&(a.baseState=!1,dh$1=!0),a.memoizedState=c;He$1(c,b)||(c=yc(),M$1.lanes|=c,rh$1|=c,a.baseState=!0);return b}function vi$1(a,b){var c=C;C=0!==c&&4>c?c:4;a(!0);var d=Gh$1.transition;Gh$1.transition={};try{a(!1),b();}finally{C=c,Gh$1.transition=d;}}function wi$1(){return Uh$1().memoizedState}
1194
1194
  function xi$1(a,b,c){var d=yi$1(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi$1(a))Ai$1(b,c);else if(c=hh$1(a,b,c,d),null!==c){var e=R$1();gi$1(c,a,d,e);Bi$1(c,b,d);}}
1195
- function ii$1(a,b,c){var d=yi$1(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi$1(a))Ai$1(b,e);else {var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He$1(h,g)){var k=b.interleaved;null===k?(e.next=e,gh$1(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=hh$1(a,b,e,d);null!==c&&(e=R$1(),gi$1(c,a,d,e),Bi$1(c,b,d));}}
1196
- function zi$1(a){var b=a.alternate;return a===M$1||null!==b&&b===M$1}function Ai$1(a,b){Jh$1=Ih=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b;}function Bi$1(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc$1(a,c);}}
1197
- var Rh={readContext:eh$1,useCallback:P$1,useContext:P$1,useEffect:P$1,useImperativeHandle:P$1,useInsertionEffect:P$1,useLayoutEffect:P$1,useMemo:P$1,useReducer:P$1,useRef:P$1,useState:P$1,useDebugValue:P$1,useDeferredValue:P$1,useTransition:P$1,useMutableSource:P$1,useSyncExternalStore:P$1,useId:P$1,unstable_isNewReconciler:!1},Oh={readContext:eh$1,useCallback:function(a,b){Th().memoizedState=[a,void 0===b?null:b];return a},useContext:eh$1,useEffect:mi$1,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ki$1(4194308,
1198
- 4,pi$1.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ki$1(4194308,4,a,b)},useInsertionEffect:function(a,b){return ki$1(4,2,a,b)},useMemo:function(a,b){var c=Th();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=Th();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=xi$1.bind(null,M$1,a);return [d.memoizedState,a]},useRef:function(a){var b=
1199
- Th();a={current:a};return b.memoizedState=a},useState:hi$1,useDebugValue:ri$1,useDeferredValue:function(a){return Th().memoizedState=a},useTransition:function(){var a=hi$1(!1),b=a[0];a=vi$1.bind(null,a[1]);Th().memoizedState=a;return [b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=M$1,e=Th();if(I$1){if(void 0===c)throw Error(p$1(407));c=c();}else {c=b();if(null===Q$1)throw Error(p$1(349));0!==(Hh$1&30)||di$1(d,b,c);}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;mi$1(ai$1.bind(null,d,
1200
- f,a),[a]);d.flags|=2048;bi$1(9,ci$1.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=Th(),b=Q$1.identifierPrefix;if(I$1){var c=sg$1;var d=rg$1;c=(d&~(1<<32-oc$1(d)-1)).toString(32)+c;b=":"+b+"R"+c;c=Kh$1++;0<c&&(b+="H"+c.toString(32));b+=":";}else c=Lh++,b=":"+b+"r"+c.toString(32)+":";return a.memoizedState=b},unstable_isNewReconciler:!1},Ph$1={readContext:eh$1,useCallback:si$1,useContext:eh$1,useEffect:$h,useImperativeHandle:qi$1,useInsertionEffect:ni,useLayoutEffect:oi$1,useMemo:ti,useReducer:Wh,useRef:ji$1,useState:function(){return Wh(Vh)},
1201
- useDebugValue:ri$1,useDeferredValue:function(a){var b=Uh$1();return ui$1(b,N$1.memoizedState,a)},useTransition:function(){var a=Wh(Vh)[0],b=Uh$1().memoizedState;return [a,b]},useMutableSource:Yh$1,useSyncExternalStore:Zh$1,useId:wi$1,unstable_isNewReconciler:!1},Qh$1={readContext:eh$1,useCallback:si$1,useContext:eh$1,useEffect:$h,useImperativeHandle:qi$1,useInsertionEffect:ni,useLayoutEffect:oi$1,useMemo:ti,useReducer:Xh$1,useRef:ji$1,useState:function(){return Xh$1(Vh)},useDebugValue:ri$1,useDeferredValue:function(a){var b=Uh$1();return null===
1202
- N$1?b.memoizedState=a:ui$1(b,N$1.memoizedState,a)},useTransition:function(){var a=Xh$1(Vh)[0],b=Uh$1().memoizedState;return [a,b]},useMutableSource:Yh$1,useSyncExternalStore:Zh$1,useId:wi$1,unstable_isNewReconciler:!1};function Ci$1(a,b){if(a&&a.defaultProps){b=A({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}function Di$1(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:A({},b,c);a.memoizedState=c;0===a.lanes&&(a.updateQueue.baseState=c);}
1195
+ function ii$1(a,b,c){var d=yi$1(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi$1(a))Ai$1(b,e);else {var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He$1(h,g)){var k=b.interleaved;null===k?(e.next=e,gh(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=hh$1(a,b,e,d);null!==c&&(e=R$1(),gi$1(c,a,d,e),Bi$1(c,b,d));}}
1196
+ function zi$1(a){var b=a.alternate;return a===M$1||null!==b&&b===M$1}function Ai$1(a,b){Jh$1=Ih$1=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b;}function Bi$1(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c);}}
1197
+ var Rh$1={readContext:eh$1,useCallback:P$1,useContext:P$1,useEffect:P$1,useImperativeHandle:P$1,useInsertionEffect:P$1,useLayoutEffect:P$1,useMemo:P$1,useReducer:P$1,useRef:P$1,useState:P$1,useDebugValue:P$1,useDeferredValue:P$1,useTransition:P$1,useMutableSource:P$1,useSyncExternalStore:P$1,useId:P$1,unstable_isNewReconciler:!1},Oh$1={readContext:eh$1,useCallback:function(a,b){Th$1().memoizedState=[a,void 0===b?null:b];return a},useContext:eh$1,useEffect:mi$1,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ki$1(4194308,
1198
+ 4,pi$1.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ki$1(4194308,4,a,b)},useInsertionEffect:function(a,b){return ki$1(4,2,a,b)},useMemo:function(a,b){var c=Th$1();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=Th$1();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=xi$1.bind(null,M$1,a);return [d.memoizedState,a]},useRef:function(a){var b=
1199
+ Th$1();a={current:a};return b.memoizedState=a},useState:hi$1,useDebugValue:ri$1,useDeferredValue:function(a){return Th$1().memoizedState=a},useTransition:function(){var a=hi$1(!1),b=a[0];a=vi$1.bind(null,a[1]);Th$1().memoizedState=a;return [b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=M$1,e=Th$1();if(I){if(void 0===c)throw Error(p$1(407));c=c();}else {c=b();if(null===Q$1)throw Error(p$1(349));0!==(Hh$1&30)||di$1(d,b,c);}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;mi$1(ai$1.bind(null,d,
1200
+ f,a),[a]);d.flags|=2048;bi$1(9,ci$1.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=Th$1(),b=Q$1.identifierPrefix;if(I){var c=sg$1;var d=rg$1;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=":"+b+"R"+c;c=Kh$1++;0<c&&(b+="H"+c.toString(32));b+=":";}else c=Lh$1++,b=":"+b+"r"+c.toString(32)+":";return a.memoizedState=b},unstable_isNewReconciler:!1},Ph$1={readContext:eh$1,useCallback:si$1,useContext:eh$1,useEffect:$h$1,useImperativeHandle:qi$1,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti$1,useReducer:Wh$1,useRef:ji$1,useState:function(){return Wh$1(Vh$1)},
1201
+ useDebugValue:ri$1,useDeferredValue:function(a){var b=Uh$1();return ui$1(b,N$1.memoizedState,a)},useTransition:function(){var a=Wh$1(Vh$1)[0],b=Uh$1().memoizedState;return [a,b]},useMutableSource:Yh$1,useSyncExternalStore:Zh$1,useId:wi$1,unstable_isNewReconciler:!1},Qh$1={readContext:eh$1,useCallback:si$1,useContext:eh$1,useEffect:$h$1,useImperativeHandle:qi$1,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti$1,useReducer:Xh$1,useRef:ji$1,useState:function(){return Xh$1(Vh$1)},useDebugValue:ri$1,useDeferredValue:function(a){var b=Uh$1();return null===
1202
+ N$1?b.memoizedState=a:ui$1(b,N$1.memoizedState,a)},useTransition:function(){var a=Xh$1(Vh$1)[0],b=Uh$1().memoizedState;return [a,b]},useMutableSource:Yh$1,useSyncExternalStore:Zh$1,useId:wi$1,unstable_isNewReconciler:!1};function Ci$1(a,b){if(a&&a.defaultProps){b=A$1({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}function Di$1(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:A$1({},b,c);a.memoizedState=c;0===a.lanes&&(a.updateQueue.baseState=c);}
1203
1203
  var Ei$1={isMounted:function(a){return (a=a._reactInternals)?Vb$1(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternals;var d=R$1(),e=yi$1(a),f=mh$1(d,e);f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=nh$1(a,f,e);null!==b&&(gi$1(b,a,e,d),oh$1(b,a,e));},enqueueReplaceState:function(a,b,c){a=a._reactInternals;var d=R$1(),e=yi$1(a),f=mh$1(d,e);f.tag=1;f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=nh$1(a,f,e);null!==b&&(gi$1(b,a,e,d),oh$1(b,a,e));},enqueueForceUpdate:function(a,b){a=a._reactInternals;var c=R$1(),d=
1204
1204
  yi$1(a),e=mh$1(c,d);e.tag=2;void 0!==b&&null!==b&&(e.callback=b);b=nh$1(a,e,d);null!==b&&(gi$1(b,a,d,c),oh$1(b,a,d));}};function Fi$1(a,b,c,d,e,f,g){a=a.stateNode;return "function"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!Ie$1(c,d)||!Ie$1(e,f):!0}
1205
1205
  function Gi$1(a,b,c){var d=!1,e=Vf$1;var f=b.contextType;"object"===typeof f&&null!==f?f=eh$1(f):(e=Zf$1(b)?Xf$1:H$1.current,d=b.contextTypes,f=(d=null!==d&&void 0!==d)?Yf$1(a,e):Vf$1);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=Ei$1;a.stateNode=b;b._reactInternals=a;d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f);return b}
@@ -1209,138 +1209,138 @@
1209
1209
  function Ki$1(a,b,c){return {value:a,source:null,stack:null!=c?c:null,digest:null!=b?b:null}}function Li$1(a,b){try{console.error(b.value);}catch(c){setTimeout(function(){throw c;});}}var Mi$1="function"===typeof WeakMap?WeakMap:Map;function Ni$1(a,b,c){c=mh$1(-1,c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){Oi$1||(Oi$1=!0,Pi$1=d);Li$1(a,b);};return c}
1210
1210
  function Qi$1(a,b,c){c=mh$1(-1,c);c.tag=3;var d=a.type.getDerivedStateFromError;if("function"===typeof d){var e=b.value;c.payload=function(){return d(e)};c.callback=function(){Li$1(a,b);};}var f=a.stateNode;null!==f&&"function"===typeof f.componentDidCatch&&(c.callback=function(){Li$1(a,b);"function"!==typeof d&&(null===Ri$1?Ri$1=new Set([this]):Ri$1.add(this));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:""});});return c}
1211
1211
  function Si$1(a,b,c){var d=a.pingCache;if(null===d){d=a.pingCache=new Mi$1;var e=new Set;d.set(b,e);}else e=d.get(b),void 0===e&&(e=new Set,d.set(b,e));e.has(c)||(e.add(c),a=Ti$1.bind(null,a,b,c),b.then(a,a));}function Ui$1(a){do{var b;if(b=13===a.tag)b=a.memoizedState,b=null!==b?null!==b.dehydrated?!0:!1:!0;if(b)return a;a=a.return;}while(null!==a);return null}
1212
- function Vi$1(a,b,c,d,e){if(0===(a.mode&1))return a===b?a.flags|=65536:(a.flags|=128,c.flags|=131072,c.flags&=-52805,1===c.tag&&(null===c.alternate?c.tag=17:(b=mh$1(-1,1),b.tag=2,nh$1(c,b,1))),c.lanes|=1),a;a.flags|=65536;a.lanes=e;return a}var Wi$1=ua$1.ReactCurrentOwner,dh=!1;function Xi$1(a,b,c,d){b.child=null===a?Vg$1(b,null,c,d):Ug(b,a.child,c,d);}
1213
- function Yi$1(a,b,c,d,e){c=c.render;var f=b.ref;ch(b,e);d=Nh$1(a,b,c,d,f,e);c=Sh$1();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi$1(a,b,e);I$1&&c&&vg(b);b.flags|=1;Xi$1(a,b,d,e);return b.child}
1214
- function $i$1(a,b,c,d,e){if(null===a){var f=c.type;if("function"===typeof f&&!aj(f)&&void 0===f.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=f,bj(a,b,f,d,e);a=Rg(c.type,null,d,b,b.mode,e);a.ref=b.ref;a.return=b;return b.child=a}f=a.child;if(0===(a.lanes&e)){var g=f.memoizedProps;c=c.compare;c=null!==c?c:Ie$1;if(c(g,d)&&a.ref===b.ref)return Zi$1(a,b,e)}b.flags|=1;a=Pg(f,d);a.ref=b.ref;a.return=b;return b.child=a}
1215
- function bj(a,b,c,d,e){if(null!==a){var f=a.memoizedProps;if(Ie$1(f,d)&&a.ref===b.ref)if(dh=!1,b.pendingProps=d=f,0!==(a.lanes&e))0!==(a.flags&131072)&&(dh=!0);else return b.lanes=a.lanes,Zi$1(a,b,e)}return cj(a,b,c,d,e)}
1212
+ function Vi$1(a,b,c,d,e){if(0===(a.mode&1))return a===b?a.flags|=65536:(a.flags|=128,c.flags|=131072,c.flags&=-52805,1===c.tag&&(null===c.alternate?c.tag=17:(b=mh$1(-1,1),b.tag=2,nh$1(c,b,1))),c.lanes|=1),a;a.flags|=65536;a.lanes=e;return a}var Wi$1=ua$1.ReactCurrentOwner,dh$1=!1;function Xi$1(a,b,c,d){b.child=null===a?Vg$1(b,null,c,d):Ug$1(b,a.child,c,d);}
1213
+ function Yi$1(a,b,c,d,e){c=c.render;var f=b.ref;ch$1(b,e);d=Nh$1(a,b,c,d,f,e);c=Sh$1();if(null!==a&&!dh$1)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi$1(a,b,e);I&&c&&vg$1(b);b.flags|=1;Xi$1(a,b,d,e);return b.child}
1214
+ function $i$1(a,b,c,d,e){if(null===a){var f=c.type;if("function"===typeof f&&!aj(f)&&void 0===f.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=f,bj(a,b,f,d,e);a=Rg$1(c.type,null,d,b,b.mode,e);a.ref=b.ref;a.return=b;return b.child=a}f=a.child;if(0===(a.lanes&e)){var g=f.memoizedProps;c=c.compare;c=null!==c?c:Ie$1;if(c(g,d)&&a.ref===b.ref)return Zi$1(a,b,e)}b.flags|=1;a=Pg$1(f,d);a.ref=b.ref;a.return=b;return b.child=a}
1215
+ function bj(a,b,c,d,e){if(null!==a){var f=a.memoizedProps;if(Ie$1(f,d)&&a.ref===b.ref)if(dh$1=!1,b.pendingProps=d=f,0!==(a.lanes&e))0!==(a.flags&131072)&&(dh$1=!0);else return b.lanes=a.lanes,Zi$1(a,b,e)}return cj(a,b,c,d,e)}
1216
1216
  function dj(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if("hidden"===d.mode)if(0===(b.mode&1))b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$1(ej,fj),fj|=c;else {if(0===(c&1073741824))return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a,cachePool:null,transitions:null},b.updateQueue=null,G$1(ej,fj),fj|=a,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null};d=null!==f?f.baseLanes:c;G$1(ej,fj);fj|=d;}else null!==
1217
- f?(d=f.baseLanes|c,b.memoizedState=null):d=c,G$1(ej,fj),fj|=d;Xi$1(a,b,e,c);return b.child}function gj(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=512,b.flags|=2097152;}function cj(a,b,c,d,e){var f=Zf$1(c)?Xf$1:H$1.current;f=Yf$1(b,f);ch(b,e);c=Nh$1(a,b,c,d,f,e);d=Sh$1();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi$1(a,b,e);I$1&&d&&vg(b);b.flags|=1;Xi$1(a,b,c,e);return b.child}
1218
- function hj(a,b,c,d,e){if(Zf$1(c)){var f=!0;cg$1(b);}else f=!1;ch(b,e);if(null===b.stateNode)ij(a,b),Gi$1(b,c,d),Ii$1(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"===typeof l&&null!==l?l=eh$1(l):(l=Zf$1(c)?Xf$1:H$1.current,l=Yf$1(b,l));var m=c.getDerivedStateFromProps,q="function"===typeof m||"function"===typeof g.getSnapshotBeforeUpdate;q||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||
1219
- (h!==d||k!==l)&&Hi$1(b,g,d,l);jh=!1;var r=b.memoizedState;g.state=r;qh$1(b,d,g,e);k=b.memoizedState;h!==d||r!==k||Wf$1.current||jh?("function"===typeof m&&(Di$1(b,c,m,d),k=b.memoizedState),(h=jh||Fi$1(b,c,h,d,r,k,l))?(q||"function"!==typeof g.UNSAFE_componentWillMount&&"function"!==typeof g.componentWillMount||("function"===typeof g.componentWillMount&&g.componentWillMount(),"function"===typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),"function"===typeof g.componentDidMount&&(b.flags|=4194308)):
1220
- ("function"===typeof g.componentDidMount&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"===typeof g.componentDidMount&&(b.flags|=4194308),d=!1);}else {g=b.stateNode;lh(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:Ci$1(b.type,h);g.props=l;q=b.pendingProps;r=g.context;k=c.contextType;"object"===typeof k&&null!==k?k=eh$1(k):(k=Zf$1(c)?Xf$1:H$1.current,k=Yf$1(b,k));var y=c.getDerivedStateFromProps;(m="function"===typeof y||"function"===typeof g.getSnapshotBeforeUpdate)||
1221
- "function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||(h!==q||r!==k)&&Hi$1(b,g,d,k);jh=!1;r=b.memoizedState;g.state=r;qh$1(b,d,g,e);var n=b.memoizedState;h!==q||r!==n||Wf$1.current||jh?("function"===typeof y&&(Di$1(b,c,y,d),n=b.memoizedState),(l=jh||Fi$1(b,c,l,d,r,n,k)||!1)?(m||"function"!==typeof g.UNSAFE_componentWillUpdate&&"function"!==typeof g.componentWillUpdate||("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,n,k),"function"===typeof g.UNSAFE_componentWillUpdate&&
1217
+ f?(d=f.baseLanes|c,b.memoizedState=null):d=c,G$1(ej,fj),fj|=d;Xi$1(a,b,e,c);return b.child}function gj(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=512,b.flags|=2097152;}function cj(a,b,c,d,e){var f=Zf$1(c)?Xf$1:H$1.current;f=Yf$1(b,f);ch$1(b,e);c=Nh$1(a,b,c,d,f,e);d=Sh$1();if(null!==a&&!dh$1)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi$1(a,b,e);I&&d&&vg$1(b);b.flags|=1;Xi$1(a,b,c,e);return b.child}
1218
+ function hj(a,b,c,d,e){if(Zf$1(c)){var f=!0;cg$1(b);}else f=!1;ch$1(b,e);if(null===b.stateNode)ij(a,b),Gi$1(b,c,d),Ii$1(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"===typeof l&&null!==l?l=eh$1(l):(l=Zf$1(c)?Xf$1:H$1.current,l=Yf$1(b,l));var m=c.getDerivedStateFromProps,q="function"===typeof m||"function"===typeof g.getSnapshotBeforeUpdate;q||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||
1219
+ (h!==d||k!==l)&&Hi$1(b,g,d,l);jh$1=!1;var r=b.memoizedState;g.state=r;qh$1(b,d,g,e);k=b.memoizedState;h!==d||r!==k||Wf$1.current||jh$1?("function"===typeof m&&(Di$1(b,c,m,d),k=b.memoizedState),(h=jh$1||Fi$1(b,c,h,d,r,k,l))?(q||"function"!==typeof g.UNSAFE_componentWillMount&&"function"!==typeof g.componentWillMount||("function"===typeof g.componentWillMount&&g.componentWillMount(),"function"===typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),"function"===typeof g.componentDidMount&&(b.flags|=4194308)):
1220
+ ("function"===typeof g.componentDidMount&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"===typeof g.componentDidMount&&(b.flags|=4194308),d=!1);}else {g=b.stateNode;lh$1(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:Ci$1(b.type,h);g.props=l;q=b.pendingProps;r=g.context;k=c.contextType;"object"===typeof k&&null!==k?k=eh$1(k):(k=Zf$1(c)?Xf$1:H$1.current,k=Yf$1(b,k));var y=c.getDerivedStateFromProps;(m="function"===typeof y||"function"===typeof g.getSnapshotBeforeUpdate)||
1221
+ "function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||(h!==q||r!==k)&&Hi$1(b,g,d,k);jh$1=!1;r=b.memoizedState;g.state=r;qh$1(b,d,g,e);var n=b.memoizedState;h!==q||r!==n||Wf$1.current||jh$1?("function"===typeof y&&(Di$1(b,c,y,d),n=b.memoizedState),(l=jh$1||Fi$1(b,c,l,d,r,n,k)||!1)?(m||"function"!==typeof g.UNSAFE_componentWillUpdate&&"function"!==typeof g.componentWillUpdate||("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,n,k),"function"===typeof g.UNSAFE_componentWillUpdate&&
1222
1222
  g.UNSAFE_componentWillUpdate(d,n,k)),"function"===typeof g.componentDidUpdate&&(b.flags|=4),"function"===typeof g.getSnapshotBeforeUpdate&&(b.flags|=1024)):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),b.memoizedProps=d,b.memoizedState=n),g.props=d,g.state=n,g.context=k,d=l):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===
1223
1223
  a.memoizedState||(b.flags|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),d=!1);}return jj(a,b,c,d,f,e)}
1224
- function jj(a,b,c,d,e,f){gj(a,b);var g=0!==(b.flags&128);if(!d&&!g)return e&&dg$1(b,c,!1),Zi$1(a,b,f);d=b.stateNode;Wi$1.current=b;var h=g&&"function"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=Ug(b,a.child,null,f),b.child=Ug(b,null,h,f)):Xi$1(a,b,h,f);b.memoizedState=d.state;e&&dg$1(b,c,!0);return b.child}function kj(a){var b=a.stateNode;b.pendingContext?ag$1(a,b.pendingContext,b.pendingContext!==b.context):b.context&&ag$1(a,b.context,!1);yh$1(a,b.containerInfo);}
1225
- function lj(a,b,c,d,e){Ig();Jg$1(e);b.flags|=256;Xi$1(a,b,c,d);return b.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(a){return {baseLanes:a,cachePool:null,transitions:null}}
1226
- function oj(a,b,c){var d=b.pendingProps,e=L$1.current,f=!1,g=0!==(b.flags&128),h;(h=g)||(h=null!==a&&null===a.memoizedState?!1:0!==(e&2));if(h)f=!0,b.flags&=-129;else if(null===a||null!==a.memoizedState)e|=1;G$1(L$1,e&1);if(null===a){Eg(b);a=b.memoizedState;if(null!==a&&(a=a.dehydrated,null!==a))return 0===(b.mode&1)?b.lanes=1:"$!"===a.data?b.lanes=8:b.lanes=1073741824,null;g=d.children;a=d.fallback;return f?(d=b.mode,f=b.child,g={mode:"hidden",children:g},0===(d&1)&&null!==f?(f.childLanes=0,f.pendingProps=
1227
- g):f=pj(g,d,0,null),a=Tg(a,d,c,null),f.return=b,a.return=b,f.sibling=a,b.child=f,b.child.memoizedState=nj(c),b.memoizedState=mj,a):qj(b,g)}e=a.memoizedState;if(null!==e&&(h=e.dehydrated,null!==h))return rj(a,b,g,d,h,e,c);if(f){f=d.fallback;g=b.mode;e=a.child;h=e.sibling;var k={mode:"hidden",children:d.children};0===(g&1)&&b.child!==e?(d=b.child,d.childLanes=0,d.pendingProps=k,b.deletions=null):(d=Pg(e,k),d.subtreeFlags=e.subtreeFlags&14680064);null!==h?f=Pg(h,f):(f=Tg(f,g,c,null),f.flags|=2);f.return=
1228
- b;d.return=b;d.sibling=f;b.child=d;d=f;f=b.child;g=a.child.memoizedState;g=null===g?nj(c):{baseLanes:g.baseLanes|c,cachePool:null,transitions:g.transitions};f.memoizedState=g;f.childLanes=a.childLanes&~c;b.memoizedState=mj;return d}f=a.child;a=f.sibling;d=Pg(f,{mode:"visible",children:d.children});0===(b.mode&1)&&(d.lanes=c);d.return=b;d.sibling=null;null!==a&&(c=b.deletions,null===c?(b.deletions=[a],b.flags|=16):c.push(a));b.child=d;b.memoizedState=null;return d}
1229
- function qj(a,b){b=pj({mode:"visible",children:b},a.mode,0,null);b.return=a;return a.child=b}function sj(a,b,c,d){null!==d&&Jg$1(d);Ug(b,a.child,null,c);a=qj(b,b.pendingProps.children);a.flags|=2;b.memoizedState=null;return a}
1230
- function rj(a,b,c,d,e,f,g){if(c){if(b.flags&256)return b.flags&=-257,d=Ki$1(Error(p$1(422))),sj(a,b,g,d);if(null!==b.memoizedState)return b.child=a.child,b.flags|=128,null;f=d.fallback;e=b.mode;d=pj({mode:"visible",children:d.children},e,0,null);f=Tg(f,e,g,null);f.flags|=2;d.return=b;f.return=b;d.sibling=f;b.child=d;0!==(b.mode&1)&&Ug(b,a.child,null,g);b.child.memoizedState=nj(g);b.memoizedState=mj;return f}if(0===(b.mode&1))return sj(a,b,g,null);if("$!"===e.data){d=e.nextSibling&&e.nextSibling.dataset;
1231
- if(d)var h=d.dgst;d=h;f=Error(p$1(419));d=Ki$1(f,d,void 0);return sj(a,b,g,d)}h=0!==(g&a.childLanes);if(dh||h){d=Q$1;if(null!==d){switch(g&-g){case 4:e=2;break;case 16:e=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:e=32;break;case 536870912:e=268435456;break;default:e=0;}e=0!==(e&(d.suspendedLanes|g))?0:e;
1232
- 0!==e&&e!==f.retryLane&&(f.retryLane=e,ih$1(a,e),gi$1(d,a,e,-1));}tj();d=Ki$1(Error(p$1(421)));return sj(a,b,g,d)}if("$?"===e.data)return b.flags|=128,b.child=a.child,b=uj.bind(null,a),e._reactRetry=b,null;a=f.treeContext;yg=Lf$1(e.nextSibling);xg=b;I$1=!0;zg=null;null!==a&&(og$1[pg++]=rg$1,og$1[pg++]=sg$1,og$1[pg++]=qg,rg$1=a.id,sg$1=a.overflow,qg=b);b=qj(b,d.children);b.flags|=4096;return b}function vj(a,b,c){a.lanes|=b;var d=a.alternate;null!==d&&(d.lanes|=b);bh$1(a.return,b,c);}
1224
+ function jj(a,b,c,d,e,f){gj(a,b);var g=0!==(b.flags&128);if(!d&&!g)return e&&dg$1(b,c,!1),Zi$1(a,b,f);d=b.stateNode;Wi$1.current=b;var h=g&&"function"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=Ug$1(b,a.child,null,f),b.child=Ug$1(b,null,h,f)):Xi$1(a,b,h,f);b.memoizedState=d.state;e&&dg$1(b,c,!0);return b.child}function kj(a){var b=a.stateNode;b.pendingContext?ag$1(a,b.pendingContext,b.pendingContext!==b.context):b.context&&ag$1(a,b.context,!1);yh$1(a,b.containerInfo);}
1225
+ function lj(a,b,c,d,e){Ig$1();Jg$1(e);b.flags|=256;Xi$1(a,b,c,d);return b.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(a){return {baseLanes:a,cachePool:null,transitions:null}}
1226
+ function oj(a,b,c){var d=b.pendingProps,e=L.current,f=!1,g=0!==(b.flags&128),h;(h=g)||(h=null!==a&&null===a.memoizedState?!1:0!==(e&2));if(h)f=!0,b.flags&=-129;else if(null===a||null!==a.memoizedState)e|=1;G$1(L,e&1);if(null===a){Eg$1(b);a=b.memoizedState;if(null!==a&&(a=a.dehydrated,null!==a))return 0===(b.mode&1)?b.lanes=1:"$!"===a.data?b.lanes=8:b.lanes=1073741824,null;g=d.children;a=d.fallback;return f?(d=b.mode,f=b.child,g={mode:"hidden",children:g},0===(d&1)&&null!==f?(f.childLanes=0,f.pendingProps=
1227
+ g):f=pj(g,d,0,null),a=Tg$1(a,d,c,null),f.return=b,a.return=b,f.sibling=a,b.child=f,b.child.memoizedState=nj(c),b.memoizedState=mj,a):qj(b,g)}e=a.memoizedState;if(null!==e&&(h=e.dehydrated,null!==h))return rj(a,b,g,d,h,e,c);if(f){f=d.fallback;g=b.mode;e=a.child;h=e.sibling;var k={mode:"hidden",children:d.children};0===(g&1)&&b.child!==e?(d=b.child,d.childLanes=0,d.pendingProps=k,b.deletions=null):(d=Pg$1(e,k),d.subtreeFlags=e.subtreeFlags&14680064);null!==h?f=Pg$1(h,f):(f=Tg$1(f,g,c,null),f.flags|=2);f.return=
1228
+ b;d.return=b;d.sibling=f;b.child=d;d=f;f=b.child;g=a.child.memoizedState;g=null===g?nj(c):{baseLanes:g.baseLanes|c,cachePool:null,transitions:g.transitions};f.memoizedState=g;f.childLanes=a.childLanes&~c;b.memoizedState=mj;return d}f=a.child;a=f.sibling;d=Pg$1(f,{mode:"visible",children:d.children});0===(b.mode&1)&&(d.lanes=c);d.return=b;d.sibling=null;null!==a&&(c=b.deletions,null===c?(b.deletions=[a],b.flags|=16):c.push(a));b.child=d;b.memoizedState=null;return d}
1229
+ function qj(a,b){b=pj({mode:"visible",children:b},a.mode,0,null);b.return=a;return a.child=b}function sj(a,b,c,d){null!==d&&Jg$1(d);Ug$1(b,a.child,null,c);a=qj(b,b.pendingProps.children);a.flags|=2;b.memoizedState=null;return a}
1230
+ function rj(a,b,c,d,e,f,g){if(c){if(b.flags&256)return b.flags&=-257,d=Ki$1(Error(p$1(422))),sj(a,b,g,d);if(null!==b.memoizedState)return b.child=a.child,b.flags|=128,null;f=d.fallback;e=b.mode;d=pj({mode:"visible",children:d.children},e,0,null);f=Tg$1(f,e,g,null);f.flags|=2;d.return=b;f.return=b;d.sibling=f;b.child=d;0!==(b.mode&1)&&Ug$1(b,a.child,null,g);b.child.memoizedState=nj(g);b.memoizedState=mj;return f}if(0===(b.mode&1))return sj(a,b,g,null);if("$!"===e.data){d=e.nextSibling&&e.nextSibling.dataset;
1231
+ if(d)var h=d.dgst;d=h;f=Error(p$1(419));d=Ki$1(f,d,void 0);return sj(a,b,g,d)}h=0!==(g&a.childLanes);if(dh$1||h){d=Q$1;if(null!==d){switch(g&-g){case 4:e=2;break;case 16:e=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:e=32;break;case 536870912:e=268435456;break;default:e=0;}e=0!==(e&(d.suspendedLanes|g))?0:e;
1232
+ 0!==e&&e!==f.retryLane&&(f.retryLane=e,ih$1(a,e),gi$1(d,a,e,-1));}tj();d=Ki$1(Error(p$1(421)));return sj(a,b,g,d)}if("$?"===e.data)return b.flags|=128,b.child=a.child,b=uj.bind(null,a),e._reactRetry=b,null;a=f.treeContext;yg$1=Lf$1(e.nextSibling);xg$1=b;I=!0;zg$1=null;null!==a&&(og$1[pg$1++]=rg$1,og$1[pg$1++]=sg$1,og$1[pg$1++]=qg$1,rg$1=a.id,sg$1=a.overflow,qg$1=b);b=qj(b,d.children);b.flags|=4096;return b}function vj(a,b,c){a.lanes|=b;var d=a.alternate;null!==d&&(d.lanes|=b);bh(a.return,b,c);}
1233
1233
  function wj(a,b,c,d,e){var f=a.memoizedState;null===f?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e}:(f.isBackwards=b,f.rendering=null,f.renderingStartTime=0,f.last=d,f.tail=c,f.tailMode=e);}
1234
- function xj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;Xi$1(a,b,d.children,c);d=L$1.current;if(0!==(d&2))d=d&1|2,b.flags|=128;else {if(null!==a&&0!==(a.flags&128))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&vj(a,c,b);else if(19===a.tag)vj(a,c,b);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return;}a.sibling.return=a.return;a=a.sibling;}d&=1;}G$1(L$1,d);if(0===(b.mode&1))b.memoizedState=
1234
+ function xj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;Xi$1(a,b,d.children,c);d=L.current;if(0!==(d&2))d=d&1|2,b.flags|=128;else {if(null!==a&&0!==(a.flags&128))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&vj(a,c,b);else if(19===a.tag)vj(a,c,b);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return;}a.sibling.return=a.return;a=a.sibling;}d&=1;}G$1(L,d);if(0===(b.mode&1))b.memoizedState=
1235
1235
  null;else switch(e){case "forwards":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===Ch$1(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);wj(b,!1,e,c,f);break;case "backwards":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===Ch$1(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a;}wj(b,!0,c,null,f);break;case "together":wj(b,!1,null,null,void 0);break;default:b.memoizedState=null;}return b.child}
1236
- function ij(a,b){0===(b.mode&1)&&null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);}function Zi$1(a,b,c){null!==a&&(b.dependencies=a.dependencies);rh$1|=b.lanes;if(0===(c&b.childLanes))return null;if(null!==a&&b.child!==a.child)throw Error(p$1(153));if(null!==b.child){a=b.child;c=Pg(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Pg(a,a.pendingProps),c.return=b;c.sibling=null;}return b.child}
1237
- function yj(a,b,c){switch(b.tag){case 3:kj(b);Ig();break;case 5:Ah(b);break;case 1:Zf$1(b.type)&&cg$1(b);break;case 4:yh$1(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G$1(Wg,d._currentValue);d._currentValue=e;break;case 13:d=b.memoizedState;if(null!==d){if(null!==d.dehydrated)return G$1(L$1,L$1.current&1),b.flags|=128,null;if(0!==(c&b.child.childLanes))return oj(a,b,c);G$1(L$1,L$1.current&1);a=Zi$1(a,b,c);return null!==a?a.sibling:null}G$1(L$1,L$1.current&1);break;case 19:d=0!==(c&
1238
- b.childLanes);if(0!==(a.flags&128)){if(d)return xj(a,b,c);b.flags|=128;}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);G$1(L$1,L$1.current);if(d)break;else return null;case 22:case 23:return b.lanes=0,dj(a,b,c)}return Zi$1(a,b,c)}var zj,Aj,Bj,Cj;
1236
+ function ij(a,b){0===(b.mode&1)&&null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);}function Zi$1(a,b,c){null!==a&&(b.dependencies=a.dependencies);rh$1|=b.lanes;if(0===(c&b.childLanes))return null;if(null!==a&&b.child!==a.child)throw Error(p$1(153));if(null!==b.child){a=b.child;c=Pg$1(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Pg$1(a,a.pendingProps),c.return=b;c.sibling=null;}return b.child}
1237
+ function yj(a,b,c){switch(b.tag){case 3:kj(b);Ig$1();break;case 5:Ah$1(b);break;case 1:Zf$1(b.type)&&cg$1(b);break;case 4:yh$1(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G$1(Wg$1,d._currentValue);d._currentValue=e;break;case 13:d=b.memoizedState;if(null!==d){if(null!==d.dehydrated)return G$1(L,L.current&1),b.flags|=128,null;if(0!==(c&b.child.childLanes))return oj(a,b,c);G$1(L,L.current&1);a=Zi$1(a,b,c);return null!==a?a.sibling:null}G$1(L,L.current&1);break;case 19:d=0!==(c&
1238
+ b.childLanes);if(0!==(a.flags&128)){if(d)return xj(a,b,c);b.flags|=128;}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);G$1(L,L.current);if(d)break;else return null;case 22:case 23:return b.lanes=0,dj(a,b,c)}return Zi$1(a,b,c)}var zj,Aj,Bj,Cj;
1239
1239
  zj=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return;}c.sibling.return=c.return;c=c.sibling;}};Aj=function(){};
1240
- Bj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;xh$1(uh.current);var f=null;switch(c){case "input":e=Ya$1(a,e);d=Ya$1(a,d);f=[];break;case "select":e=A({},e,{value:void 0});d=A({},d,{value:void 0});f=[];break;case "textarea":e=gb(a,e);d=gb(a,d);f=[];break;default:"function"!==typeof e.onClick&&"function"===typeof d.onClick&&(a.onclick=Bf$1);}ub(c,d);var g;c=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if("style"===l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&
1240
+ Bj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;xh$1(uh$1.current);var f=null;switch(c){case "input":e=Ya$1(a,e);d=Ya$1(a,d);f=[];break;case "select":e=A$1({},e,{value:void 0});d=A$1({},d,{value:void 0});f=[];break;case "textarea":e=gb$1(a,e);d=gb$1(a,d);f=[];break;default:"function"!==typeof e.onClick&&"function"===typeof d.onClick&&(a.onclick=Bf$1);}ub$1(c,d);var g;c=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if("style"===l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&
1241
1241
  (c||(c={}),c[g]="");}else "dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(ea$1.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k=d[l];h=null!=e?e[l]:void 0;if(d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if("style"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]="");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||(c={}),c[g]=k[g]);}else c||(f||(f=[]),f.push(l,
1242
1242
  c)),c=k;else "dangerouslySetInnerHTML"===l?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(l,k)):"children"===l?"string"!==typeof k&&"number"!==typeof k||(f=f||[]).push(l,""+k):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(ea$1.hasOwnProperty(l)?(null!=k&&"onScroll"===l&&D$1("scroll",a),f||h===k||(f=[])):(f=f||[]).push(l,k));}c&&(f=f||[]).push("style",c);var l=f;if(b.updateQueue=l)b.flags|=4;}};Cj=function(a,b,c,d){c!==d&&(b.flags|=4);};
1243
- function Dj(a,b){if(!I$1)switch(a.tailMode){case "hidden":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case "collapsed":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null;}}
1243
+ function Dj(a,b){if(!I)switch(a.tailMode){case "hidden":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case "collapsed":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null;}}
1244
1244
  function S$1(a){var b=null!==a.alternate&&a.alternate.child===a.child,c=0,d=0;if(b)for(var e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags&14680064,d|=e.flags&14680064,e.return=a,e=e.sibling;else for(e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags,d|=e.flags,e.return=a,e=e.sibling;a.subtreeFlags|=d;a.childLanes=c;return b}
1245
- function Ej(a,b,c){var d=b.pendingProps;wg(b);switch(b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$1(b),null;case 1:return Zf$1(b.type)&&$f(),S$1(b),null;case 3:d=b.stateNode;zh();E$1(Wf$1);E$1(H$1);Eh$1();d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)Gg(b)?b.flags|=4:null===a||a.memoizedState.isDehydrated&&0===(b.flags&256)||(b.flags|=1024,null!==zg&&(Fj(zg),zg=null));Aj(a,b);S$1(b);return null;case 5:Bh(b);var e=xh$1(wh$1.current);
1246
- c=b.type;if(null!==a&&null!=b.stateNode)Bj(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else {if(!d){if(null===b.stateNode)throw Error(p$1(166));S$1(b);return null}a=xh$1(uh.current);if(Gg(b)){d=b.stateNode;c=b.type;var f=b.memoizedProps;d[Of$1]=b;d[Pf$1]=f;a=0!==(b.mode&1);switch(c){case "dialog":D$1("cancel",d);D$1("close",d);break;case "iframe":case "object":case "embed":D$1("load",d);break;case "video":case "audio":for(e=0;e<lf$1.length;e++)D$1(lf$1[e],d);break;case "source":D$1("error",d);break;case "img":case "image":case "link":D$1("error",
1247
- d);D$1("load",d);break;case "details":D$1("toggle",d);break;case "input":Za$1(d,f);D$1("invalid",d);break;case "select":d._wrapperState={wasMultiple:!!f.multiple};D$1("invalid",d);break;case "textarea":hb(d,f),D$1("invalid",d);}ub(c,f);e=null;for(var g in f)if(f.hasOwnProperty(g)){var h=f[g];"children"===g?"string"===typeof h?d.textContent!==h&&(!0!==f.suppressHydrationWarning&&Af$1(d.textContent,h,a),e=["children",h]):"number"===typeof h&&d.textContent!==""+h&&(!0!==f.suppressHydrationWarning&&Af$1(d.textContent,
1248
- h,a),e=["children",""+h]):ea$1.hasOwnProperty(g)&&null!=h&&"onScroll"===g&&D$1("scroll",d);}switch(c){case "input":Va$1(d);db(d,f,!0);break;case "textarea":Va$1(d);jb$1(d);break;case "select":case "option":break;default:"function"===typeof f.onClick&&(d.onclick=Bf$1);}d=e;b.updateQueue=d;null!==d&&(b.flags|=4);}else {g=9===e.nodeType?e:e.ownerDocument;"http://www.w3.org/1999/xhtml"===a&&(a=kb(c));"http://www.w3.org/1999/xhtml"===a?"script"===c?(a=g.createElement("div"),a.innerHTML="<script>\x3c/script>",a=a.removeChild(a.firstChild)):
1249
- "string"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),"select"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of$1]=b;a[Pf$1]=d;zj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case "dialog":D$1("cancel",a);D$1("close",a);e=d;break;case "iframe":case "object":case "embed":D$1("load",a);e=d;break;case "video":case "audio":for(e=0;e<lf$1.length;e++)D$1(lf$1[e],a);e=d;break;case "source":D$1("error",a);e=d;break;case "img":case "image":case "link":D$1("error",
1250
- a);D$1("load",a);e=d;break;case "details":D$1("toggle",a);e=d;break;case "input":Za$1(a,d);e=Ya$1(a,d);D$1("invalid",a);break;case "option":e=d;break;case "select":a._wrapperState={wasMultiple:!!d.multiple};e=A({},d,{value:void 0});D$1("invalid",a);break;case "textarea":hb(a,d);e=gb(a,d);D$1("invalid",a);break;default:e=d;}ub(c,e);h=e;for(f in h)if(h.hasOwnProperty(f)){var k=h[f];"style"===f?sb$1(a,k):"dangerouslySetInnerHTML"===f?(k=k?k.__html:void 0,null!=k&&nb$1(a,k)):"children"===f?"string"===typeof k?("textarea"!==
1251
- c||""!==k)&&ob(a,k):"number"===typeof k&&ob(a,""+k):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(ea$1.hasOwnProperty(f)?null!=k&&"onScroll"===f&&D$1("scroll",a):null!=k&&ta$1(a,f,k,g));}switch(c){case "input":Va$1(a);db(a,d,!1);break;case "textarea":Va$1(a);jb$1(a);break;case "option":null!=d.value&&a.setAttribute("value",""+Sa(d.value));break;case "select":a.multiple=!!d.multiple;f=d.value;null!=f?fb(a,!!d.multiple,f,!1):null!=d.defaultValue&&fb(a,!!d.multiple,d.defaultValue,
1252
- !0);break;default:"function"===typeof e.onClick&&(a.onclick=Bf$1);}switch(c){case "button":case "input":case "select":case "textarea":d=!!d.autoFocus;break a;case "img":d=!0;break a;default:d=!1;}}d&&(b.flags|=4);}null!==b.ref&&(b.flags|=512,b.flags|=2097152);}S$1(b);return null;case 6:if(a&&null!=b.stateNode)Cj(a,b,a.memoizedProps,d);else {if("string"!==typeof d&&null===b.stateNode)throw Error(p$1(166));c=xh$1(wh$1.current);xh$1(uh.current);if(Gg(b)){d=b.stateNode;c=b.memoizedProps;d[Of$1]=b;if(f=d.nodeValue!==c)if(a=
1253
- xg,null!==a)switch(a.tag){case 3:Af$1(d.nodeValue,c,0!==(a.mode&1));break;case 5:!0!==a.memoizedProps.suppressHydrationWarning&&Af$1(d.nodeValue,c,0!==(a.mode&1));}f&&(b.flags|=4);}else d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[Of$1]=b,b.stateNode=d;}S$1(b);return null;case 13:E$1(L$1);d=b.memoizedState;if(null===a||null!==a.memoizedState&&null!==a.memoizedState.dehydrated){if(I$1&&null!==yg&&0!==(b.mode&1)&&0===(b.flags&128))Hg(),Ig(),b.flags|=98560,f=!1;else if(f=Gg(b),null!==d&&null!==d.dehydrated){if(null===
1254
- a){if(!f)throw Error(p$1(318));f=b.memoizedState;f=null!==f?f.dehydrated:null;if(!f)throw Error(p$1(317));f[Of$1]=b;}else Ig(),0===(b.flags&128)&&(b.memoizedState=null),b.flags|=4;S$1(b);f=!1;}else null!==zg&&(Fj(zg),zg=null),f=!0;if(!f)return b.flags&65536?b:null}if(0!==(b.flags&128))return b.lanes=c,b;d=null!==d;d!==(null!==a&&null!==a.memoizedState)&&d&&(b.child.flags|=8192,0!==(b.mode&1)&&(null===a||0!==(L$1.current&1)?0===T$1&&(T$1=3):tj()));null!==b.updateQueue&&(b.flags|=4);S$1(b);return null;case 4:return zh(),
1255
- Aj(a,b),null===a&&sf(b.stateNode.containerInfo),S$1(b),null;case 10:return ah$1(b.type._context),S$1(b),null;case 17:return Zf$1(b.type)&&$f(),S$1(b),null;case 19:E$1(L$1);f=b.memoizedState;if(null===f)return S$1(b),null;d=0!==(b.flags&128);g=f.rendering;if(null===g)if(d)Dj(f,!1);else {if(0!==T$1||null!==a&&0!==(a.flags&128))for(a=b.child;null!==a;){g=Ch$1(a);if(null!==g){b.flags|=128;Dj(f,!1);d=g.updateQueue;null!==d&&(b.updateQueue=d,b.flags|=4);b.subtreeFlags=0;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=14680066,
1256
- g=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;G$1(L$1,L$1.current&1|2);return b.child}a=
1257
- a.sibling;}null!==f.tail&&B$1()>Gj&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);}else {if(!d)if(a=Ch$1(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Dj(f,!0),null===f.tail&&"hidden"===f.tailMode&&!g.alternate&&!I$1)return S$1(b),null}else 2*B$1()-f.renderingStartTime>Gj&&1073741824!==c&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g);}if(null!==f.tail)return b=f.tail,f.rendering=
1258
- b,f.tail=b.sibling,f.renderingStartTime=B$1(),b.sibling=null,c=L$1.current,G$1(L$1,d?c&1|2:c&1),b;S$1(b);return null;case 22:case 23:return Hj(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(fj&1073741824)&&(S$1(b),b.subtreeFlags&6&&(b.flags|=8192)):S$1(b),null;case 24:return null;case 25:return null}throw Error(p$1(156,b.tag));}
1259
- function Ij(a,b){wg(b);switch(b.tag){case 1:return Zf$1(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return zh(),E$1(Wf$1),E$1(H$1),Eh$1(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Bh(b),null;case 13:E$1(L$1);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p$1(340));Ig();}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E$1(L$1),null;case 4:return zh(),null;case 10:return ah$1(b.type._context),null;case 22:case 23:return Hj(),
1245
+ function Ej(a,b,c){var d=b.pendingProps;wg$1(b);switch(b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$1(b),null;case 1:return Zf$1(b.type)&&$f$1(),S$1(b),null;case 3:d=b.stateNode;zh$1();E(Wf$1);E(H$1);Eh$1();d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)Gg$1(b)?b.flags|=4:null===a||a.memoizedState.isDehydrated&&0===(b.flags&256)||(b.flags|=1024,null!==zg$1&&(Fj(zg$1),zg$1=null));Aj(a,b);S$1(b);return null;case 5:Bh$1(b);var e=xh$1(wh$1.current);
1246
+ c=b.type;if(null!==a&&null!=b.stateNode)Bj(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else {if(!d){if(null===b.stateNode)throw Error(p$1(166));S$1(b);return null}a=xh$1(uh$1.current);if(Gg$1(b)){d=b.stateNode;c=b.type;var f=b.memoizedProps;d[Of$1]=b;d[Pf$1]=f;a=0!==(b.mode&1);switch(c){case "dialog":D$1("cancel",d);D$1("close",d);break;case "iframe":case "object":case "embed":D$1("load",d);break;case "video":case "audio":for(e=0;e<lf$1.length;e++)D$1(lf$1[e],d);break;case "source":D$1("error",d);break;case "img":case "image":case "link":D$1("error",
1247
+ d);D$1("load",d);break;case "details":D$1("toggle",d);break;case "input":Za(d,f);D$1("invalid",d);break;case "select":d._wrapperState={wasMultiple:!!f.multiple};D$1("invalid",d);break;case "textarea":hb$1(d,f),D$1("invalid",d);}ub$1(c,f);e=null;for(var g in f)if(f.hasOwnProperty(g)){var h=f[g];"children"===g?"string"===typeof h?d.textContent!==h&&(!0!==f.suppressHydrationWarning&&Af$1(d.textContent,h,a),e=["children",h]):"number"===typeof h&&d.textContent!==""+h&&(!0!==f.suppressHydrationWarning&&Af$1(d.textContent,
1248
+ h,a),e=["children",""+h]):ea$1.hasOwnProperty(g)&&null!=h&&"onScroll"===g&&D$1("scroll",d);}switch(c){case "input":Va(d);db$1(d,f,!0);break;case "textarea":Va(d);jb$1(d);break;case "select":case "option":break;default:"function"===typeof f.onClick&&(d.onclick=Bf$1);}d=e;b.updateQueue=d;null!==d&&(b.flags|=4);}else {g=9===e.nodeType?e:e.ownerDocument;"http://www.w3.org/1999/xhtml"===a&&(a=kb$1(c));"http://www.w3.org/1999/xhtml"===a?"script"===c?(a=g.createElement("div"),a.innerHTML="<script>\x3c/script>",a=a.removeChild(a.firstChild)):
1249
+ "string"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),"select"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of$1]=b;a[Pf$1]=d;zj(a,b,!1,!1);b.stateNode=a;a:{g=vb$1(c,d);switch(c){case "dialog":D$1("cancel",a);D$1("close",a);e=d;break;case "iframe":case "object":case "embed":D$1("load",a);e=d;break;case "video":case "audio":for(e=0;e<lf$1.length;e++)D$1(lf$1[e],a);e=d;break;case "source":D$1("error",a);e=d;break;case "img":case "image":case "link":D$1("error",
1250
+ a);D$1("load",a);e=d;break;case "details":D$1("toggle",a);e=d;break;case "input":Za(a,d);e=Ya$1(a,d);D$1("invalid",a);break;case "option":e=d;break;case "select":a._wrapperState={wasMultiple:!!d.multiple};e=A$1({},d,{value:void 0});D$1("invalid",a);break;case "textarea":hb$1(a,d);e=gb$1(a,d);D$1("invalid",a);break;default:e=d;}ub$1(c,e);h=e;for(f in h)if(h.hasOwnProperty(f)){var k=h[f];"style"===f?sb$1(a,k):"dangerouslySetInnerHTML"===f?(k=k?k.__html:void 0,null!=k&&nb$1(a,k)):"children"===f?"string"===typeof k?("textarea"!==
1251
+ c||""!==k)&&ob$1(a,k):"number"===typeof k&&ob$1(a,""+k):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(ea$1.hasOwnProperty(f)?null!=k&&"onScroll"===f&&D$1("scroll",a):null!=k&&ta$1(a,f,k,g));}switch(c){case "input":Va(a);db$1(a,d,!1);break;case "textarea":Va(a);jb$1(a);break;case "option":null!=d.value&&a.setAttribute("value",""+Sa(d.value));break;case "select":a.multiple=!!d.multiple;f=d.value;null!=f?fb$1(a,!!d.multiple,f,!1):null!=d.defaultValue&&fb$1(a,!!d.multiple,d.defaultValue,
1252
+ !0);break;default:"function"===typeof e.onClick&&(a.onclick=Bf$1);}switch(c){case "button":case "input":case "select":case "textarea":d=!!d.autoFocus;break a;case "img":d=!0;break a;default:d=!1;}}d&&(b.flags|=4);}null!==b.ref&&(b.flags|=512,b.flags|=2097152);}S$1(b);return null;case 6:if(a&&null!=b.stateNode)Cj(a,b,a.memoizedProps,d);else {if("string"!==typeof d&&null===b.stateNode)throw Error(p$1(166));c=xh$1(wh$1.current);xh$1(uh$1.current);if(Gg$1(b)){d=b.stateNode;c=b.memoizedProps;d[Of$1]=b;if(f=d.nodeValue!==c)if(a=
1253
+ xg$1,null!==a)switch(a.tag){case 3:Af$1(d.nodeValue,c,0!==(a.mode&1));break;case 5:!0!==a.memoizedProps.suppressHydrationWarning&&Af$1(d.nodeValue,c,0!==(a.mode&1));}f&&(b.flags|=4);}else d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[Of$1]=b,b.stateNode=d;}S$1(b);return null;case 13:E(L);d=b.memoizedState;if(null===a||null!==a.memoizedState&&null!==a.memoizedState.dehydrated){if(I&&null!==yg$1&&0!==(b.mode&1)&&0===(b.flags&128))Hg$1(),Ig$1(),b.flags|=98560,f=!1;else if(f=Gg$1(b),null!==d&&null!==d.dehydrated){if(null===
1254
+ a){if(!f)throw Error(p$1(318));f=b.memoizedState;f=null!==f?f.dehydrated:null;if(!f)throw Error(p$1(317));f[Of$1]=b;}else Ig$1(),0===(b.flags&128)&&(b.memoizedState=null),b.flags|=4;S$1(b);f=!1;}else null!==zg$1&&(Fj(zg$1),zg$1=null),f=!0;if(!f)return b.flags&65536?b:null}if(0!==(b.flags&128))return b.lanes=c,b;d=null!==d;d!==(null!==a&&null!==a.memoizedState)&&d&&(b.child.flags|=8192,0!==(b.mode&1)&&(null===a||0!==(L.current&1)?0===T$1&&(T$1=3):tj()));null!==b.updateQueue&&(b.flags|=4);S$1(b);return null;case 4:return zh$1(),
1255
+ Aj(a,b),null===a&&sf$1(b.stateNode.containerInfo),S$1(b),null;case 10:return ah$1(b.type._context),S$1(b),null;case 17:return Zf$1(b.type)&&$f$1(),S$1(b),null;case 19:E(L);f=b.memoizedState;if(null===f)return S$1(b),null;d=0!==(b.flags&128);g=f.rendering;if(null===g)if(d)Dj(f,!1);else {if(0!==T$1||null!==a&&0!==(a.flags&128))for(a=b.child;null!==a;){g=Ch$1(a);if(null!==g){b.flags|=128;Dj(f,!1);d=g.updateQueue;null!==d&&(b.updateQueue=d,b.flags|=4);b.subtreeFlags=0;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=14680066,
1256
+ g=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;G$1(L,L.current&1|2);return b.child}a=
1257
+ a.sibling;}null!==f.tail&&B$1()>Gj&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);}else {if(!d)if(a=Ch$1(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Dj(f,!0),null===f.tail&&"hidden"===f.tailMode&&!g.alternate&&!I)return S$1(b),null}else 2*B$1()-f.renderingStartTime>Gj&&1073741824!==c&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g);}if(null!==f.tail)return b=f.tail,f.rendering=
1258
+ b,f.tail=b.sibling,f.renderingStartTime=B$1(),b.sibling=null,c=L.current,G$1(L,d?c&1|2:c&1),b;S$1(b);return null;case 22:case 23:return Hj(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(fj&1073741824)&&(S$1(b),b.subtreeFlags&6&&(b.flags|=8192)):S$1(b),null;case 24:return null;case 25:return null}throw Error(p$1(156,b.tag));}
1259
+ function Ij(a,b){wg$1(b);switch(b.tag){case 1:return Zf$1(b.type)&&$f$1(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return zh$1(),E(Wf$1),E(H$1),Eh$1(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Bh$1(b),null;case 13:E(L);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p$1(340));Ig$1();}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(L),null;case 4:return zh$1(),null;case 10:return ah$1(b.type._context),null;case 22:case 23:return Hj(),
1260
1260
  null;case 24:return null;default:return null}}var Jj=!1,U$1=!1,Kj="function"===typeof WeakSet?WeakSet:Set,V$1=null;function Lj(a,b){var c=a.ref;if(null!==c)if("function"===typeof c)try{c(null);}catch(d){W$1(a,b,d);}else c.current=null;}function Mj(a,b,c){try{c();}catch(d){W$1(a,b,d);}}var Nj=!1;
1261
1261
  function Oj(a,b){Cf$1=dd$1;a=Me$1();if(Ne$1(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType;}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=
1262
1262
  q.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y;}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode;}q=y;}c=-1===h||-1===k?null:{start:h,end:k};}else c=null;}c=c||{start:0,end:0};}else c=null;Df$1={focusedElem:a,selectionRange:c};dd$1=!1;for(V$1=b;null!==V$1;)if(b=V$1,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V$1=a;else for(;null!==V$1;){b=V$1;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;
1263
1263
  case 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Ci$1(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w;}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent="":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$1(163));}}catch(F){W$1(b,b.return,F);}a=b.sibling;if(null!==a){a.return=b.return;V$1=a;break}V$1=b.return;}n=Nj;Nj=!1;return n}
1264
1264
  function Pj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Mj(b,c,f);}e=e.next;}while(e!==d)}}function Qj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d();}c=c.next;}while(c!==b)}}function Rj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c;}"function"===typeof b?b(a):b.current=a;}}
1265
- function Sj(a){var b=a.alternate;null!==b&&(a.alternate=null,Sj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of$1],delete b[Pf$1],delete b[of],delete b[Qf$1],delete b[Rf$1]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null;}function Tj(a){return 5===a.tag||3===a.tag||4===a.tag}
1265
+ function Sj(a){var b=a.alternate;null!==b&&(a.alternate=null,Sj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of$1],delete b[Pf$1],delete b[of$1],delete b[Qf$1],delete b[Rf$1]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null;}function Tj(a){return 5===a.tag||3===a.tag||4===a.tag}
1266
1266
  function Uj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Tj(a.return))return null;a=a.return;}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child;}if(!(a.flags&2))return a.stateNode}}
1267
1267
  function Vj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf$1));else if(4!==d&&(a=a.child,null!==a))for(Vj(a,b,c),a=a.sibling;null!==a;)Vj(a,b,c),a=a.sibling;}
1268
1268
  function Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling;}var X$1=null,Xj=!1;function Yj(a,b,c){for(c=c.child;null!==c;)Zj(a,b,c),c=c.sibling;}
1269
- function Zj(a,b,c){if(lc$1&&"function"===typeof lc$1.onCommitFiberUnmount)try{lc$1.onCommitFiberUnmount(kc$1,c);}catch(h){}switch(c.tag){case 5:U$1||Lj(c,b);case 6:var d=X$1,e=Xj;X$1=null;Yj(a,b,c);X$1=d;Xj=e;null!==X$1&&(Xj?(a=X$1,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X$1.removeChild(c.stateNode));break;case 18:null!==X$1&&(Xj?(a=X$1,c=c.stateNode,8===a.nodeType?Kf$1(a.parentNode,c):1===a.nodeType&&Kf$1(a,c),bd$1(a)):Kf$1(X$1,c.stateNode));break;case 4:d=X$1;e=Xj;X$1=c.stateNode.containerInfo;Xj=!0;
1269
+ function Zj(a,b,c){if(lc&&"function"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c);}catch(h){}switch(c.tag){case 5:U$1||Lj(c,b);case 6:var d=X$1,e=Xj;X$1=null;Yj(a,b,c);X$1=d;Xj=e;null!==X$1&&(Xj?(a=X$1,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X$1.removeChild(c.stateNode));break;case 18:null!==X$1&&(Xj?(a=X$1,c=c.stateNode,8===a.nodeType?Kf$1(a.parentNode,c):1===a.nodeType&&Kf$1(a,c),bd$1(a)):Kf$1(X$1,c.stateNode));break;case 4:d=X$1;e=Xj;X$1=c.stateNode.containerInfo;Xj=!0;
1270
1270
  Yj(a,b,c);X$1=d;Xj=e;break;case 0:case 11:case 14:case 15:if(!U$1&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Mj(c,b,g):0!==(f&4)&&Mj(c,b,g));e=e.next;}while(e!==d)}Yj(a,b,c);break;case 1:if(!U$1&&(Lj(c,b),d=c.stateNode,"function"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount();}catch(h){W$1(c,b,h);}Yj(a,b,c);break;case 21:Yj(a,b,c);break;case 22:c.mode&1?(U$1=(d=U$1)||null!==
1271
1271
  c.memoizedState,Yj(a,b,c),U$1=d):Yj(a,b,c);break;default:Yj(a,b,c);}}function ak(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Kj);b.forEach(function(b){var d=bk.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d));});}}
1272
1272
  function ck(a,b){var c=b.deletions;if(null!==c)for(var d=0;d<c.length;d++){var e=c[d];try{var f=a,g=b,h=g;a:for(;null!==h;){switch(h.tag){case 5:X$1=h.stateNode;Xj=!1;break a;case 3:X$1=h.stateNode.containerInfo;Xj=!0;break a;case 4:X$1=h.stateNode.containerInfo;Xj=!0;break a}h=h.return;}if(null===X$1)throw Error(p$1(160));Zj(f,g,e);X$1=null;Xj=!1;var k=e.alternate;null!==k&&(k.return=null);e.return=null;}catch(l){W$1(e,b,l);}}if(b.subtreeFlags&12854)for(b=b.child;null!==b;)dk(b,a),b=b.sibling;}
1273
- function dk(a,b){var c=a.alternate,d=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ck(b,a);ek(a);if(d&4){try{Pj(3,a,a.return),Qj(3,a);}catch(t){W$1(a,a.return,t);}try{Pj(5,a,a.return);}catch(t){W$1(a,a.return,t);}}break;case 1:ck(b,a);ek(a);d&512&&null!==c&&Lj(c,c.return);break;case 5:ck(b,a);ek(a);d&512&&null!==c&&Lj(c,c.return);if(a.flags&32){var e=a.stateNode;try{ob(e,"");}catch(t){W$1(a,a.return,t);}}if(d&4&&(e=a.stateNode,null!=e)){var f=a.memoizedProps,g=null!==c?c.memoizedProps:f,h=a.type,k=a.updateQueue;
1274
- a.updateQueue=null;if(null!==k)try{"input"===h&&"radio"===f.type&&null!=f.name&&ab$1(e,f);vb(h,g);var l=vb(h,f);for(g=0;g<k.length;g+=2){var m=k[g],q=k[g+1];"style"===m?sb$1(e,q):"dangerouslySetInnerHTML"===m?nb$1(e,q):"children"===m?ob(e,q):ta$1(e,m,q,l);}switch(h){case "input":bb(e,f);break;case "textarea":ib(e,f);break;case "select":var r=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!f.multiple;var y=f.value;null!=y?fb(e,!!f.multiple,y,!1):r!==!!f.multiple&&(null!=f.defaultValue?fb(e,!!f.multiple,
1275
- f.defaultValue,!0):fb(e,!!f.multiple,f.multiple?[]:"",!1));}e[Pf$1]=f;}catch(t){W$1(a,a.return,t);}}break;case 6:ck(b,a);ek(a);if(d&4){if(null===a.stateNode)throw Error(p$1(162));e=a.stateNode;f=a.memoizedProps;try{e.nodeValue=f;}catch(t){W$1(a,a.return,t);}}break;case 3:ck(b,a);ek(a);if(d&4&&null!==c&&c.memoizedState.isDehydrated)try{bd$1(b.containerInfo);}catch(t){W$1(a,a.return,t);}break;case 4:ck(b,a);ek(a);break;case 13:ck(b,a);ek(a);e=a.child;e.flags&8192&&(f=null!==e.memoizedState,e.stateNode.isHidden=f,!f||
1273
+ function dk(a,b){var c=a.alternate,d=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ck(b,a);ek(a);if(d&4){try{Pj(3,a,a.return),Qj(3,a);}catch(t){W$1(a,a.return,t);}try{Pj(5,a,a.return);}catch(t){W$1(a,a.return,t);}}break;case 1:ck(b,a);ek(a);d&512&&null!==c&&Lj(c,c.return);break;case 5:ck(b,a);ek(a);d&512&&null!==c&&Lj(c,c.return);if(a.flags&32){var e=a.stateNode;try{ob$1(e,"");}catch(t){W$1(a,a.return,t);}}if(d&4&&(e=a.stateNode,null!=e)){var f=a.memoizedProps,g=null!==c?c.memoizedProps:f,h=a.type,k=a.updateQueue;
1274
+ a.updateQueue=null;if(null!==k)try{"input"===h&&"radio"===f.type&&null!=f.name&&ab$1(e,f);vb$1(h,g);var l=vb$1(h,f);for(g=0;g<k.length;g+=2){var m=k[g],q=k[g+1];"style"===m?sb$1(e,q):"dangerouslySetInnerHTML"===m?nb$1(e,q):"children"===m?ob$1(e,q):ta$1(e,m,q,l);}switch(h){case "input":bb$1(e,f);break;case "textarea":ib$1(e,f);break;case "select":var r=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!f.multiple;var y=f.value;null!=y?fb$1(e,!!f.multiple,y,!1):r!==!!f.multiple&&(null!=f.defaultValue?fb$1(e,!!f.multiple,
1275
+ f.defaultValue,!0):fb$1(e,!!f.multiple,f.multiple?[]:"",!1));}e[Pf$1]=f;}catch(t){W$1(a,a.return,t);}}break;case 6:ck(b,a);ek(a);if(d&4){if(null===a.stateNode)throw Error(p$1(162));e=a.stateNode;f=a.memoizedProps;try{e.nodeValue=f;}catch(t){W$1(a,a.return,t);}}break;case 3:ck(b,a);ek(a);if(d&4&&null!==c&&c.memoizedState.isDehydrated)try{bd$1(b.containerInfo);}catch(t){W$1(a,a.return,t);}break;case 4:ck(b,a);ek(a);break;case 13:ck(b,a);ek(a);e=a.child;e.flags&8192&&(f=null!==e.memoizedState,e.stateNode.isHidden=f,!f||
1276
1276
  null!==e.alternate&&null!==e.alternate.memoizedState||(fk=B$1()));d&4&&ak(a);break;case 22:m=null!==c&&null!==c.memoizedState;a.mode&1?(U$1=(l=U$1)||m,ck(b,a),U$1=l):ck(b,a);ek(a);if(d&8192){l=null!==a.memoizedState;if((a.stateNode.isHidden=l)&&!m&&0!==(a.mode&1))for(V$1=a,m=a.child;null!==m;){for(q=V$1=m;null!==V$1;){r=V$1;y=r.child;switch(r.tag){case 0:case 11:case 14:case 15:Pj(4,r,r.return);break;case 1:Lj(r,r.return);var n=r.stateNode;if("function"===typeof n.componentWillUnmount){d=r;c=r.return;try{b=d,n.props=
1277
1277
  b.memoizedProps,n.state=b.memoizedState,n.componentWillUnmount();}catch(t){W$1(d,c,t);}}break;case 5:Lj(r,r.return);break;case 22:if(null!==r.memoizedState){gk(q);continue}}null!==y?(y.return=r,V$1=y):gk(q);}m=m.sibling;}a:for(m=null,q=a;;){if(5===q.tag){if(null===m){m=q;try{e=q.stateNode,l?(f=e.style,"function"===typeof f.setProperty?f.setProperty("display","none","important"):f.display="none"):(h=q.stateNode,k=q.memoizedProps.style,g=void 0!==k&&null!==k&&k.hasOwnProperty("display")?k.display:null,h.style.display=
1278
1278
  rb$1("display",g));}catch(t){W$1(a,a.return,t);}}}else if(6===q.tag){if(null===m)try{q.stateNode.nodeValue=l?"":q.memoizedProps;}catch(t){W$1(a,a.return,t);}}else if((22!==q.tag&&23!==q.tag||null===q.memoizedState||q===a)&&null!==q.child){q.child.return=q;q=q.child;continue}if(q===a)break a;for(;null===q.sibling;){if(null===q.return||q.return===a)break a;m===q&&(m=null);q=q.return;}m===q&&(m=null);q.sibling.return=q.return;q=q.sibling;}}break;case 19:ck(b,a);ek(a);d&4&&ak(a);break;case 21:break;default:ck(b,
1279
- a),ek(a);}}function ek(a){var b=a.flags;if(b&2){try{a:{for(var c=a.return;null!==c;){if(Tj(c)){var d=c;break a}c=c.return;}throw Error(p$1(160));}switch(d.tag){case 5:var e=d.stateNode;d.flags&32&&(ob(e,""),d.flags&=-33);var f=Uj(a);Wj(a,f,e);break;case 3:case 4:var g=d.stateNode.containerInfo,h=Uj(a);Vj(a,h,g);break;default:throw Error(p$1(161));}}catch(k){W$1(a,a.return,k);}a.flags&=-3;}b&4096&&(a.flags&=-4097);}function hk(a,b,c){V$1=a;ik(a);}
1280
- function ik(a,b,c){for(var d=0!==(a.mode&1);null!==V$1;){var e=V$1,f=e.child;if(22===e.tag&&d){var g=null!==e.memoizedState||Jj;if(!g){var h=e.alternate,k=null!==h&&null!==h.memoizedState||U$1;h=Jj;var l=U$1;Jj=g;if((U$1=k)&&!l)for(V$1=e;null!==V$1;)g=V$1,k=g.child,22===g.tag&&null!==g.memoizedState?jk(e):null!==k?(k.return=g,V$1=k):jk(e);for(;null!==f;)V$1=f,ik(f),f=f.sibling;V$1=e;Jj=h;U$1=l;}kk(a);}else 0!==(e.subtreeFlags&8772)&&null!==f?(f.return=e,V$1=f):kk(a);}}
1281
- function kk(a){for(;null!==V$1;){var b=V$1;if(0!==(b.flags&8772)){var c=b.alternate;try{if(0!==(b.flags&8772))switch(b.tag){case 0:case 11:case 15:U$1||Qj(5,b);break;case 1:var d=b.stateNode;if(b.flags&4&&!U$1)if(null===c)d.componentDidMount();else {var e=b.elementType===b.type?c.memoizedProps:Ci$1(b.type,c.memoizedProps);d.componentDidUpdate(e,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate);}var f=b.updateQueue;null!==f&&sh$1(b,f,d);break;case 3:var g=b.updateQueue;if(null!==g){c=null;if(null!==b.child)switch(b.child.tag){case 5:c=
1279
+ a),ek(a);}}function ek(a){var b=a.flags;if(b&2){try{a:{for(var c=a.return;null!==c;){if(Tj(c)){var d=c;break a}c=c.return;}throw Error(p$1(160));}switch(d.tag){case 5:var e=d.stateNode;d.flags&32&&(ob$1(e,""),d.flags&=-33);var f=Uj(a);Wj(a,f,e);break;case 3:case 4:var g=d.stateNode.containerInfo,h=Uj(a);Vj(a,h,g);break;default:throw Error(p$1(161));}}catch(k){W$1(a,a.return,k);}a.flags&=-3;}b&4096&&(a.flags&=-4097);}function hk(a,b,c){V$1=a;ik(a);}
1280
+ function ik(a,b,c){for(var d=0!==(a.mode&1);null!==V$1;){var e=V$1,f=e.child;if(22===e.tag&&d){var g=null!==e.memoizedState||Jj;if(!g){var h=e.alternate,k=null!==h&&null!==h.memoizedState||U$1;h=Jj;var l=U$1;Jj=g;if((U$1=k)&&!l)for(V$1=e;null!==V$1;)g=V$1,k=g.child,22===g.tag&&null!==g.memoizedState?jk(e):null!==k?(k.return=g,V$1=k):jk(e);for(;null!==f;)V$1=f,ik(f),f=f.sibling;V$1=e;Jj=h;U$1=l;}kk$1(a);}else 0!==(e.subtreeFlags&8772)&&null!==f?(f.return=e,V$1=f):kk$1(a);}}
1281
+ function kk$1(a){for(;null!==V$1;){var b=V$1;if(0!==(b.flags&8772)){var c=b.alternate;try{if(0!==(b.flags&8772))switch(b.tag){case 0:case 11:case 15:U$1||Qj(5,b);break;case 1:var d=b.stateNode;if(b.flags&4&&!U$1)if(null===c)d.componentDidMount();else {var e=b.elementType===b.type?c.memoizedProps:Ci$1(b.type,c.memoizedProps);d.componentDidUpdate(e,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate);}var f=b.updateQueue;null!==f&&sh$1(b,f,d);break;case 3:var g=b.updateQueue;if(null!==g){c=null;if(null!==b.child)switch(b.child.tag){case 5:c=
1282
1282
  b.child.stateNode;break;case 1:c=b.child.stateNode;}sh$1(b,g,c);}break;case 5:var h=b.stateNode;if(null===c&&b.flags&4){c=h;var k=b.memoizedProps;switch(b.type){case "button":case "input":case "select":case "textarea":k.autoFocus&&c.focus();break;case "img":k.src&&(c.src=k.src);}}break;case 6:break;case 4:break;case 12:break;case 13:if(null===b.memoizedState){var l=b.alternate;if(null!==l){var m=l.memoizedState;if(null!==m){var q=m.dehydrated;null!==q&&bd$1(q);}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;
1283
1283
  default:throw Error(p$1(163));}U$1||b.flags&512&&Rj(b);}catch(r){W$1(b,b.return,r);}}if(b===a){V$1=null;break}c=b.sibling;if(null!==c){c.return=b.return;V$1=c;break}V$1=b.return;}}function gk(a){for(;null!==V$1;){var b=V$1;if(b===a){V$1=null;break}var c=b.sibling;if(null!==c){c.return=b.return;V$1=c;break}V$1=b.return;}}
1284
1284
  function jk(a){for(;null!==V$1;){var b=V$1;try{switch(b.tag){case 0:case 11:case 15:var c=b.return;try{Qj(4,b);}catch(k){W$1(b,c,k);}break;case 1:var d=b.stateNode;if("function"===typeof d.componentDidMount){var e=b.return;try{d.componentDidMount();}catch(k){W$1(b,e,k);}}var f=b.return;try{Rj(b);}catch(k){W$1(b,f,k);}break;case 5:var g=b.return;try{Rj(b);}catch(k){W$1(b,g,k);}}}catch(k){W$1(b,b.return,k);}if(b===a){V$1=null;break}var h=b.sibling;if(null!==h){h.return=b.return;V$1=h;break}V$1=b.return;}}
1285
- var lk=Math.ceil,mk=ua$1.ReactCurrentDispatcher,nk=ua$1.ReactCurrentOwner,ok=ua$1.ReactCurrentBatchConfig,K$1=0,Q$1=null,Y$1=null,Z$1=0,fj=0,ej=Uf$1(0),T$1=0,pk=null,rh$1=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=Infinity,uk=null,Oi$1=!1,Pi$1=null,Ri$1=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R$1(){return 0!==(K$1&6)?B$1():-1!==Ak?Ak:Ak=B$1()}
1286
- function yi$1(a){if(0===(a.mode&1))return 1;if(0!==(K$1&2)&&0!==Z$1)return Z$1&-Z$1;if(null!==Kg$1.transition)return 0===Bk&&(Bk=yc$1()),Bk;a=C$1;if(0!==a)return a;a=window.event;a=void 0===a?16:jd$1(a.type);return a}function gi$1(a,b,c,d){if(50<yk)throw yk=0,zk=null,Error(p$1(185));Ac$1(a,c,d);if(0===(K$1&2)||a!==Q$1)a===Q$1&&(0===(K$1&2)&&(qk|=c),4===T$1&&Ck(a,Z$1)),Dk(a,d),1===c&&0===K$1&&0===(b.mode&1)&&(Gj=B$1()+500,fg$1&&jg());}
1287
- function Dk(a,b){var c=a.callbackNode;wc$1(a,b);var d=uc$1(a,a===Q$1?Z$1:0);if(0===d)null!==c&&bc$1(c),a.callbackNode=null,a.callbackPriority=0;else if(b=d&-d,a.callbackPriority!==b){null!=c&&bc$1(c);if(1===b)0===a.tag?ig$1(Ek.bind(null,a)):hg(Ek.bind(null,a)),Jf$1(function(){0===(K$1&6)&&jg();}),c=null;else {switch(Dc$1(d)){case 1:c=fc$1;break;case 4:c=gc$1;break;case 16:c=hc$1;break;case 536870912:c=jc$1;break;default:c=hc$1;}c=Fk(c,Gk.bind(null,a));}a.callbackPriority=b;a.callbackNode=c;}}
1288
- function Gk(a,b){Ak=-1;Bk=0;if(0!==(K$1&6))throw Error(p$1(327));var c=a.callbackNode;if(Hk()&&a.callbackNode!==c)return null;var d=uc$1(a,a===Q$1?Z$1:0);if(0===d)return null;if(0!==(d&30)||0!==(d&a.expiredLanes)||b)b=Ik(a,d);else {b=d;var e=K$1;K$1|=2;var f=Jk();if(Q$1!==a||Z$1!==b)uk=null,Gj=B$1()+500,Kk(a,b);do try{Lk();break}catch(h){Mk(a,h);}while(1);$g();mk.current=f;K$1=e;null!==Y$1?b=0:(Q$1=null,Z$1=0,b=T$1);}if(0!==b){2===b&&(e=xc$1(a),0!==e&&(d=e,b=Nk(a,e)));if(1===b)throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B$1()),c;if(6===b)Ck(a,d);
1289
- else {e=a.current.alternate;if(0===(d&30)&&!Ok(e)&&(b=Ik(a,d),2===b&&(f=xc$1(a),0!==f&&(d=f,b=Nk(a,f))),1===b))throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B$1()),c;a.finishedWork=e;a.finishedLanes=d;switch(b){case 0:case 1:throw Error(p$1(345));case 2:Pk(a,tk,uk);break;case 3:Ck(a,d);if((d&130023424)===d&&(b=fk+500-B$1(),10<b)){if(0!==uc$1(a,0))break;e=a.suspendedLanes;if((e&d)!==d){R$1();a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=Ff$1(Pk.bind(null,a,tk,uk),b);break}Pk(a,tk,uk);break;case 4:Ck(a,d);if((d&4194240)===
1290
- d)break;b=a.eventTimes;for(e=-1;0<d;){var g=31-oc$1(d);f=1<<g;g=b[g];g>e&&(e=g);d&=~f;}d=e;d=B$1()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*lk(d/1960))-d;if(10<d){a.timeoutHandle=Ff$1(Pk.bind(null,a,tk,uk),d);break}Pk(a,tk,uk);break;case 5:Pk(a,tk,uk);break;default:throw Error(p$1(329));}}}Dk(a,B$1());return a.callbackNode===c?Gk.bind(null,a):null}
1291
- function Nk(a,b){var c=sk;a.current.memoizedState.isDehydrated&&(Kk(a,b).flags|=256);a=Ik(a,b);2!==a&&(b=tk,tk=c,null!==b&&Fj(b));return a}function Fj(a){null===tk?tk=a:tk.push.apply(tk,a);}
1285
+ var lk=Math.ceil,mk=ua$1.ReactCurrentDispatcher,nk=ua$1.ReactCurrentOwner,ok=ua$1.ReactCurrentBatchConfig,K$1=0,Q$1=null,Y$1=null,Z$1=0,fj=0,ej=Uf$1(0),T$1=0,pk=null,rh$1=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=Infinity,uk=null,Oi$1=!1,Pi$1=null,Ri$1=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak$1=-1,Bk$1=0;function R$1(){return 0!==(K$1&6)?B$1():-1!==Ak$1?Ak$1:Ak$1=B$1()}
1286
+ function yi$1(a){if(0===(a.mode&1))return 1;if(0!==(K$1&2)&&0!==Z$1)return Z$1&-Z$1;if(null!==Kg$1.transition)return 0===Bk$1&&(Bk$1=yc()),Bk$1;a=C;if(0!==a)return a;a=window.event;a=void 0===a?16:jd$1(a.type);return a}function gi$1(a,b,c,d){if(50<yk)throw yk=0,zk=null,Error(p$1(185));Ac(a,c,d);if(0===(K$1&2)||a!==Q$1)a===Q$1&&(0===(K$1&2)&&(qk|=c),4===T$1&&Ck(a,Z$1)),Dk(a,d),1===c&&0===K$1&&0===(b.mode&1)&&(Gj=B$1()+500,fg$1&&jg$1());}
1287
+ function Dk(a,b){var c=a.callbackNode;wc(a,b);var d=uc(a,a===Q$1?Z$1:0);if(0===d)null!==c&&bc(c),a.callbackNode=null,a.callbackPriority=0;else if(b=d&-d,a.callbackPriority!==b){null!=c&&bc(c);if(1===b)0===a.tag?ig$1(Ek$1.bind(null,a)):hg$1(Ek$1.bind(null,a)),Jf$1(function(){0===(K$1&6)&&jg$1();}),c=null;else {switch(Dc(d)){case 1:c=fc;break;case 4:c=gc;break;case 16:c=hc;break;case 536870912:c=jc;break;default:c=hc;}c=Fk(c,Gk.bind(null,a));}a.callbackPriority=b;a.callbackNode=c;}}
1288
+ function Gk(a,b){Ak$1=-1;Bk$1=0;if(0!==(K$1&6))throw Error(p$1(327));var c=a.callbackNode;if(Hk()&&a.callbackNode!==c)return null;var d=uc(a,a===Q$1?Z$1:0);if(0===d)return null;if(0!==(d&30)||0!==(d&a.expiredLanes)||b)b=Ik(a,d);else {b=d;var e=K$1;K$1|=2;var f=Jk();if(Q$1!==a||Z$1!==b)uk=null,Gj=B$1()+500,Kk(a,b);do try{Lk$1();break}catch(h){Mk(a,h);}while(1);$g$1();mk.current=f;K$1=e;null!==Y$1?b=0:(Q$1=null,Z$1=0,b=T$1);}if(0!==b){2===b&&(e=xc(a),0!==e&&(d=e,b=Nk$1(a,e)));if(1===b)throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B$1()),c;if(6===b)Ck(a,d);
1289
+ else {e=a.current.alternate;if(0===(d&30)&&!Ok(e)&&(b=Ik(a,d),2===b&&(f=xc(a),0!==f&&(d=f,b=Nk$1(a,f))),1===b))throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B$1()),c;a.finishedWork=e;a.finishedLanes=d;switch(b){case 0:case 1:throw Error(p$1(345));case 2:Pk$1(a,tk,uk);break;case 3:Ck(a,d);if((d&130023424)===d&&(b=fk+500-B$1(),10<b)){if(0!==uc(a,0))break;e=a.suspendedLanes;if((e&d)!==d){R$1();a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=Ff$1(Pk$1.bind(null,a,tk,uk),b);break}Pk$1(a,tk,uk);break;case 4:Ck(a,d);if((d&4194240)===
1290
+ d)break;b=a.eventTimes;for(e=-1;0<d;){var g=31-oc(d);f=1<<g;g=b[g];g>e&&(e=g);d&=~f;}d=e;d=B$1()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*lk(d/1960))-d;if(10<d){a.timeoutHandle=Ff$1(Pk$1.bind(null,a,tk,uk),d);break}Pk$1(a,tk,uk);break;case 5:Pk$1(a,tk,uk);break;default:throw Error(p$1(329));}}}Dk(a,B$1());return a.callbackNode===c?Gk.bind(null,a):null}
1291
+ function Nk$1(a,b){var c=sk;a.current.memoizedState.isDehydrated&&(Kk(a,b).flags|=256);a=Ik(a,b);2!==a&&(b=tk,tk=c,null!==b&&Fj(b));return a}function Fj(a){null===tk?tk=a:tk.push.apply(tk,a);}
1292
1292
  function Ok(a){for(var b=a;;){if(b.flags&16384){var c=b.updateQueue;if(null!==c&&(c=c.stores,null!==c))for(var d=0;d<c.length;d++){var e=c[d],f=e.getSnapshot;e=e.value;try{if(!He$1(f(),e))return !1}catch(g){return !1}}}c=b.child;if(b.subtreeFlags&16384&&null!==c)c.return=b,b=c;else {if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return !0;b=b.return;}b.sibling.return=b.return;b=b.sibling;}}return !0}
1293
- function Ck(a,b){b&=~rk;b&=~qk;a.suspendedLanes|=b;a.pingedLanes&=~b;for(a=a.expirationTimes;0<b;){var c=31-oc$1(b),d=1<<c;a[c]=-1;b&=~d;}}function Ek(a){if(0!==(K$1&6))throw Error(p$1(327));Hk();var b=uc$1(a,0);if(0===(b&1))return Dk(a,B$1()),null;var c=Ik(a,b);if(0!==a.tag&&2===c){var d=xc$1(a);0!==d&&(b=d,c=Nk(a,d));}if(1===c)throw c=pk,Kk(a,0),Ck(a,b),Dk(a,B$1()),c;if(6===c)throw Error(p$1(345));a.finishedWork=a.current.alternate;a.finishedLanes=b;Pk(a,tk,uk);Dk(a,B$1());return null}
1294
- function Qk(a,b){var c=K$1;K$1|=1;try{return a(b)}finally{K$1=c,0===K$1&&(Gj=B$1()+500,fg$1&&jg());}}function Rk(a){null!==wk&&0===wk.tag&&0===(K$1&6)&&Hk();var b=K$1;K$1|=1;var c=ok.transition,d=C$1;try{if(ok.transition=null,C$1=1,a)return a()}finally{C$1=d,ok.transition=c,K$1=b,0===(K$1&6)&&jg();}}function Hj(){fj=ej.current;E$1(ej);}
1295
- function Kk(a,b){a.finishedWork=null;a.finishedLanes=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,Gf$1(c));if(null!==Y$1)for(c=Y$1.return;null!==c;){var d=c;wg(d);switch(d.tag){case 1:d=d.type.childContextTypes;null!==d&&void 0!==d&&$f();break;case 3:zh();E$1(Wf$1);E$1(H$1);Eh$1();break;case 5:Bh(d);break;case 4:zh();break;case 13:E$1(L$1);break;case 19:E$1(L$1);break;case 10:ah$1(d.type._context);break;case 22:case 23:Hj();}c=c.return;}Q$1=a;Y$1=a=Pg(a.current,null);Z$1=fj=b;T$1=0;pk=null;rk=qk=rh$1=0;tk=sk=null;if(null!==fh$1){for(b=
1293
+ function Ck(a,b){b&=~rk;b&=~qk;a.suspendedLanes|=b;a.pingedLanes&=~b;for(a=a.expirationTimes;0<b;){var c=31-oc(b),d=1<<c;a[c]=-1;b&=~d;}}function Ek$1(a){if(0!==(K$1&6))throw Error(p$1(327));Hk();var b=uc(a,0);if(0===(b&1))return Dk(a,B$1()),null;var c=Ik(a,b);if(0!==a.tag&&2===c){var d=xc(a);0!==d&&(b=d,c=Nk$1(a,d));}if(1===c)throw c=pk,Kk(a,0),Ck(a,b),Dk(a,B$1()),c;if(6===c)throw Error(p$1(345));a.finishedWork=a.current.alternate;a.finishedLanes=b;Pk$1(a,tk,uk);Dk(a,B$1());return null}
1294
+ function Qk(a,b){var c=K$1;K$1|=1;try{return a(b)}finally{K$1=c,0===K$1&&(Gj=B$1()+500,fg$1&&jg$1());}}function Rk$1(a){null!==wk&&0===wk.tag&&0===(K$1&6)&&Hk();var b=K$1;K$1|=1;var c=ok.transition,d=C;try{if(ok.transition=null,C=1,a)return a()}finally{C=d,ok.transition=c,K$1=b,0===(K$1&6)&&jg$1();}}function Hj(){fj=ej.current;E(ej);}
1295
+ function Kk(a,b){a.finishedWork=null;a.finishedLanes=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,Gf$1(c));if(null!==Y$1)for(c=Y$1.return;null!==c;){var d=c;wg$1(d);switch(d.tag){case 1:d=d.type.childContextTypes;null!==d&&void 0!==d&&$f$1();break;case 3:zh$1();E(Wf$1);E(H$1);Eh$1();break;case 5:Bh$1(d);break;case 4:zh$1();break;case 13:E(L);break;case 19:E(L);break;case 10:ah$1(d.type._context);break;case 22:case 23:Hj();}c=c.return;}Q$1=a;Y$1=a=Pg$1(a.current,null);Z$1=fj=b;T$1=0;pk=null;rk=qk=rh$1=0;tk=sk=null;if(null!==fh$1){for(b=
1296
1296
  0;b<fh$1.length;b++)if(c=fh$1[b],d=c.interleaved,null!==d){c.interleaved=null;var e=d.next,f=c.pending;if(null!==f){var g=f.next;f.next=e;d.next=g;}c.pending=d;}fh$1=null;}return a}
1297
- function Mk(a,b){do{var c=Y$1;try{$g();Fh.current=Rh;if(Ih){for(var d=M$1.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null);d=d.next;}Ih=!1;}Hh$1=0;O=N$1=M$1=null;Jh$1=!1;Kh$1=0;nk.current=null;if(null===c||null===c.return){T$1=1;pk=b;Y$1=null;break}a:{var f=a,g=c.return,h=c,k=b;b=Z$1;h.flags|=32768;if(null!==k&&"object"===typeof k&&"function"===typeof k.then){var l=k,m=h,q=m.tag;if(0===(m.mode&1)&&(0===q||11===q||15===q)){var r=m.alternate;r?(m.updateQueue=r.updateQueue,m.memoizedState=r.memoizedState,
1298
- m.lanes=r.lanes):(m.updateQueue=null,m.memoizedState=null);}var y=Ui$1(g);if(null!==y){y.flags&=-257;Vi$1(y,g,h,f,b);y.mode&1&&Si$1(f,l,b);b=y;k=l;var n=b.updateQueue;if(null===n){var t=new Set;t.add(k);b.updateQueue=t;}else n.add(k);break a}else {if(0===(b&1)){Si$1(f,l,b);tj();break a}k=Error(p$1(426));}}else if(I$1&&h.mode&1){var J=Ui$1(g);if(null!==J){0===(J.flags&65536)&&(J.flags|=256);Vi$1(J,g,h,f,b);Jg$1(Ji$1(k,h));break a}}f=k=Ji$1(k,h);4!==T$1&&(T$1=2);null===sk?sk=[f]:sk.push(f);f=g;do{switch(f.tag){case 3:f.flags|=65536;
1299
- b&=-b;f.lanes|=b;var x=Ni$1(f,k,b);ph$1(f,x);break a;case 1:h=k;var w=f.type,u=f.stateNode;if(0===(f.flags&128)&&("function"===typeof w.getDerivedStateFromError||null!==u&&"function"===typeof u.componentDidCatch&&(null===Ri$1||!Ri$1.has(u)))){f.flags|=65536;b&=-b;f.lanes|=b;var F=Qi$1(f,h,b);ph$1(f,F);break a}}f=f.return;}while(null!==f)}Sk(c);}catch(na){b=na;Y$1===c&&null!==c&&(Y$1=c=c.return);continue}break}while(1)}function Jk(){var a=mk.current;mk.current=Rh;return null===a?Rh:a}
1300
- function tj(){if(0===T$1||3===T$1||2===T$1)T$1=4;null===Q$1||0===(rh$1&268435455)&&0===(qk&268435455)||Ck(Q$1,Z$1);}function Ik(a,b){var c=K$1;K$1|=2;var d=Jk();if(Q$1!==a||Z$1!==b)uk=null,Kk(a,b);do try{Tk();break}catch(e){Mk(a,e);}while(1);$g();K$1=c;mk.current=d;if(null!==Y$1)throw Error(p$1(261));Q$1=null;Z$1=0;return T$1}function Tk(){for(;null!==Y$1;)Uk(Y$1);}function Lk(){for(;null!==Y$1&&!cc$1();)Uk(Y$1);}function Uk(a){var b=Vk(a.alternate,a,fj);a.memoizedProps=a.pendingProps;null===b?Sk(a):Y$1=b;nk.current=null;}
1301
- function Sk(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&32768)){if(c=Ej(c,b,fj),null!==c){Y$1=c;return}}else {c=Ij(c,b);if(null!==c){c.flags&=32767;Y$1=c;return}if(null!==a)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else {T$1=6;Y$1=null;return}}b=b.sibling;if(null!==b){Y$1=b;return}Y$1=b=a;}while(null!==b);0===T$1&&(T$1=5);}function Pk(a,b,c){var d=C$1,e=ok.transition;try{ok.transition=null,C$1=1,Wk(a,b,c,d);}finally{ok.transition=e,C$1=d;}return null}
1302
- function Wk(a,b,c,d){do Hk();while(null!==wk);if(0!==(K$1&6))throw Error(p$1(327));c=a.finishedWork;var e=a.finishedLanes;if(null===c)return null;a.finishedWork=null;a.finishedLanes=0;if(c===a.current)throw Error(p$1(177));a.callbackNode=null;a.callbackPriority=0;var f=c.lanes|c.childLanes;Bc$1(a,f);a===Q$1&&(Y$1=Q$1=null,Z$1=0);0===(c.subtreeFlags&2064)&&0===(c.flags&2064)||vk||(vk=!0,Fk(hc$1,function(){Hk();return null}));f=0!==(c.flags&15990);if(0!==(c.subtreeFlags&15990)||f){f=ok.transition;ok.transition=null;
1303
- var g=C$1;C$1=1;var h=K$1;K$1|=4;nk.current=null;Oj(a,c);dk(c,a);Oe$1(Df$1);dd$1=!!Cf$1;Df$1=Cf$1=null;a.current=c;hk(c);dc$1();K$1=h;C$1=g;ok.transition=f;}else a.current=c;vk&&(vk=!1,wk=a,xk=e);f=a.pendingLanes;0===f&&(Ri$1=null);mc$1(c.stateNode);Dk(a,B$1());if(null!==b)for(d=a.onRecoverableError,c=0;c<b.length;c++)e=b[c],d(e.value,{componentStack:e.stack,digest:e.digest});if(Oi$1)throw Oi$1=!1,a=Pi$1,Pi$1=null,a;0!==(xk&1)&&0!==a.tag&&Hk();f=a.pendingLanes;0!==(f&1)?a===zk?yk++:(yk=0,zk=a):yk=0;jg();return null}
1304
- function Hk(){if(null!==wk){var a=Dc$1(xk),b=ok.transition,c=C$1;try{ok.transition=null;C$1=16>a?16:a;if(null===wk)var d=!1;else {a=wk;wk=null;xk=0;if(0!==(K$1&6))throw Error(p$1(331));var e=K$1;K$1|=4;for(V$1=a.current;null!==V$1;){var f=V$1,g=f.child;if(0!==(V$1.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;k<h.length;k++){var l=h[k];for(V$1=l;null!==V$1;){var m=V$1;switch(m.tag){case 0:case 11:case 15:Pj(8,m,f);}var q=m.child;if(null!==q)q.return=m,V$1=q;else for(;null!==V$1;){m=V$1;var r=m.sibling,y=m.return;Sj(m);if(m===
1297
+ function Mk(a,b){do{var c=Y$1;try{$g$1();Fh$1.current=Rh$1;if(Ih$1){for(var d=M$1.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null);d=d.next;}Ih$1=!1;}Hh$1=0;O$1=N$1=M$1=null;Jh$1=!1;Kh$1=0;nk.current=null;if(null===c||null===c.return){T$1=1;pk=b;Y$1=null;break}a:{var f=a,g=c.return,h=c,k=b;b=Z$1;h.flags|=32768;if(null!==k&&"object"===typeof k&&"function"===typeof k.then){var l=k,m=h,q=m.tag;if(0===(m.mode&1)&&(0===q||11===q||15===q)){var r=m.alternate;r?(m.updateQueue=r.updateQueue,m.memoizedState=r.memoizedState,
1298
+ m.lanes=r.lanes):(m.updateQueue=null,m.memoizedState=null);}var y=Ui$1(g);if(null!==y){y.flags&=-257;Vi$1(y,g,h,f,b);y.mode&1&&Si$1(f,l,b);b=y;k=l;var n=b.updateQueue;if(null===n){var t=new Set;t.add(k);b.updateQueue=t;}else n.add(k);break a}else {if(0===(b&1)){Si$1(f,l,b);tj();break a}k=Error(p$1(426));}}else if(I&&h.mode&1){var J=Ui$1(g);if(null!==J){0===(J.flags&65536)&&(J.flags|=256);Vi$1(J,g,h,f,b);Jg$1(Ji$1(k,h));break a}}f=k=Ji$1(k,h);4!==T$1&&(T$1=2);null===sk?sk=[f]:sk.push(f);f=g;do{switch(f.tag){case 3:f.flags|=65536;
1299
+ b&=-b;f.lanes|=b;var x=Ni$1(f,k,b);ph$1(f,x);break a;case 1:h=k;var w=f.type,u=f.stateNode;if(0===(f.flags&128)&&("function"===typeof w.getDerivedStateFromError||null!==u&&"function"===typeof u.componentDidCatch&&(null===Ri$1||!Ri$1.has(u)))){f.flags|=65536;b&=-b;f.lanes|=b;var F=Qi$1(f,h,b);ph$1(f,F);break a}}f=f.return;}while(null!==f)}Sk$1(c);}catch(na){b=na;Y$1===c&&null!==c&&(Y$1=c=c.return);continue}break}while(1)}function Jk(){var a=mk.current;mk.current=Rh$1;return null===a?Rh$1:a}
1300
+ function tj(){if(0===T$1||3===T$1||2===T$1)T$1=4;null===Q$1||0===(rh$1&268435455)&&0===(qk&268435455)||Ck(Q$1,Z$1);}function Ik(a,b){var c=K$1;K$1|=2;var d=Jk();if(Q$1!==a||Z$1!==b)uk=null,Kk(a,b);do try{Tk();break}catch(e){Mk(a,e);}while(1);$g$1();K$1=c;mk.current=d;if(null!==Y$1)throw Error(p$1(261));Q$1=null;Z$1=0;return T$1}function Tk(){for(;null!==Y$1;)Uk(Y$1);}function Lk$1(){for(;null!==Y$1&&!cc();)Uk(Y$1);}function Uk(a){var b=Vk(a.alternate,a,fj);a.memoizedProps=a.pendingProps;null===b?Sk$1(a):Y$1=b;nk.current=null;}
1301
+ function Sk$1(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&32768)){if(c=Ej(c,b,fj),null!==c){Y$1=c;return}}else {c=Ij(c,b);if(null!==c){c.flags&=32767;Y$1=c;return}if(null!==a)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else {T$1=6;Y$1=null;return}}b=b.sibling;if(null!==b){Y$1=b;return}Y$1=b=a;}while(null!==b);0===T$1&&(T$1=5);}function Pk$1(a,b,c){var d=C,e=ok.transition;try{ok.transition=null,C=1,Wk(a,b,c,d);}finally{ok.transition=e,C=d;}return null}
1302
+ function Wk(a,b,c,d){do Hk();while(null!==wk);if(0!==(K$1&6))throw Error(p$1(327));c=a.finishedWork;var e=a.finishedLanes;if(null===c)return null;a.finishedWork=null;a.finishedLanes=0;if(c===a.current)throw Error(p$1(177));a.callbackNode=null;a.callbackPriority=0;var f=c.lanes|c.childLanes;Bc(a,f);a===Q$1&&(Y$1=Q$1=null,Z$1=0);0===(c.subtreeFlags&2064)&&0===(c.flags&2064)||vk||(vk=!0,Fk(hc,function(){Hk();return null}));f=0!==(c.flags&15990);if(0!==(c.subtreeFlags&15990)||f){f=ok.transition;ok.transition=null;
1303
+ var g=C;C=1;var h=K$1;K$1|=4;nk.current=null;Oj(a,c);dk(c,a);Oe$1(Df$1);dd$1=!!Cf$1;Df$1=Cf$1=null;a.current=c;hk(c);dc();K$1=h;C=g;ok.transition=f;}else a.current=c;vk&&(vk=!1,wk=a,xk=e);f=a.pendingLanes;0===f&&(Ri$1=null);mc(c.stateNode);Dk(a,B$1());if(null!==b)for(d=a.onRecoverableError,c=0;c<b.length;c++)e=b[c],d(e.value,{componentStack:e.stack,digest:e.digest});if(Oi$1)throw Oi$1=!1,a=Pi$1,Pi$1=null,a;0!==(xk&1)&&0!==a.tag&&Hk();f=a.pendingLanes;0!==(f&1)?a===zk?yk++:(yk=0,zk=a):yk=0;jg$1();return null}
1304
+ function Hk(){if(null!==wk){var a=Dc(xk),b=ok.transition,c=C;try{ok.transition=null;C=16>a?16:a;if(null===wk)var d=!1;else {a=wk;wk=null;xk=0;if(0!==(K$1&6))throw Error(p$1(331));var e=K$1;K$1|=4;for(V$1=a.current;null!==V$1;){var f=V$1,g=f.child;if(0!==(V$1.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;k<h.length;k++){var l=h[k];for(V$1=l;null!==V$1;){var m=V$1;switch(m.tag){case 0:case 11:case 15:Pj(8,m,f);}var q=m.child;if(null!==q)q.return=m,V$1=q;else for(;null!==V$1;){m=V$1;var r=m.sibling,y=m.return;Sj(m);if(m===
1305
1305
  l){V$1=null;break}if(null!==r){r.return=y;V$1=r;break}V$1=y;}}}var n=f.alternate;if(null!==n){var t=n.child;if(null!==t){n.child=null;do{var J=t.sibling;t.sibling=null;t=J;}while(null!==t)}}V$1=f;}}if(0!==(f.subtreeFlags&2064)&&null!==g)g.return=f,V$1=g;else b:for(;null!==V$1;){f=V$1;if(0!==(f.flags&2048))switch(f.tag){case 0:case 11:case 15:Pj(9,f,f.return);}var x=f.sibling;if(null!==x){x.return=f.return;V$1=x;break b}V$1=f.return;}}var w=a.current;for(V$1=w;null!==V$1;){g=V$1;var u=g.child;if(0!==(g.subtreeFlags&2064)&&null!==
1306
- u)u.return=g,V$1=u;else b:for(g=w;null!==V$1;){h=V$1;if(0!==(h.flags&2048))try{switch(h.tag){case 0:case 11:case 15:Qj(9,h);}}catch(na){W$1(h,h.return,na);}if(h===g){V$1=null;break b}var F=h.sibling;if(null!==F){F.return=h.return;V$1=F;break b}V$1=h.return;}}K$1=e;jg();if(lc$1&&"function"===typeof lc$1.onPostCommitFiberRoot)try{lc$1.onPostCommitFiberRoot(kc$1,a);}catch(na){}d=!0;}return d}finally{C$1=c,ok.transition=b;}}return !1}function Xk(a,b,c){b=Ji$1(c,b);b=Ni$1(a,b,1);a=nh$1(a,b,1);b=R$1();null!==a&&(Ac$1(a,1,b),Dk(a,b));}
1307
- function W$1(a,b,c){if(3===a.tag)Xk(a,a,c);else for(;null!==b;){if(3===b.tag){Xk(b,a,c);break}else if(1===b.tag){var d=b.stateNode;if("function"===typeof b.type.getDerivedStateFromError||"function"===typeof d.componentDidCatch&&(null===Ri$1||!Ri$1.has(d))){a=Ji$1(c,a);a=Qi$1(b,a,1);b=nh$1(b,a,1);a=R$1();null!==b&&(Ac$1(b,1,a),Dk(b,a));break}}b=b.return;}}
1308
- function Ti$1(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);b=R$1();a.pingedLanes|=a.suspendedLanes&c;Q$1===a&&(Z$1&c)===c&&(4===T$1||3===T$1&&(Z$1&130023424)===Z$1&&500>B$1()-fk?Kk(a,0):rk|=c);Dk(a,b);}function Yk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc$1,sc$1<<=1,0===(sc$1&130023424)&&(sc$1=4194304)));var c=R$1();a=ih$1(a,b);null!==a&&(Ac$1(a,b,c),Dk(a,c));}function uj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Yk(a,c);}
1306
+ u)u.return=g,V$1=u;else b:for(g=w;null!==V$1;){h=V$1;if(0!==(h.flags&2048))try{switch(h.tag){case 0:case 11:case 15:Qj(9,h);}}catch(na){W$1(h,h.return,na);}if(h===g){V$1=null;break b}var F=h.sibling;if(null!==F){F.return=h.return;V$1=F;break b}V$1=h.return;}}K$1=e;jg$1();if(lc&&"function"===typeof lc.onPostCommitFiberRoot)try{lc.onPostCommitFiberRoot(kc,a);}catch(na){}d=!0;}return d}finally{C=c,ok.transition=b;}}return !1}function Xk(a,b,c){b=Ji$1(c,b);b=Ni$1(a,b,1);a=nh$1(a,b,1);b=R$1();null!==a&&(Ac(a,1,b),Dk(a,b));}
1307
+ function W$1(a,b,c){if(3===a.tag)Xk(a,a,c);else for(;null!==b;){if(3===b.tag){Xk(b,a,c);break}else if(1===b.tag){var d=b.stateNode;if("function"===typeof b.type.getDerivedStateFromError||"function"===typeof d.componentDidCatch&&(null===Ri$1||!Ri$1.has(d))){a=Ji$1(c,a);a=Qi$1(b,a,1);b=nh$1(b,a,1);a=R$1();null!==b&&(Ac(b,1,a),Dk(b,a));break}}b=b.return;}}
1308
+ function Ti$1(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);b=R$1();a.pingedLanes|=a.suspendedLanes&c;Q$1===a&&(Z$1&c)===c&&(4===T$1||3===T$1&&(Z$1&130023424)===Z$1&&500>B$1()-fk?Kk(a,0):rk|=c);Dk(a,b);}function Yk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=R$1();a=ih$1(a,b);null!==a&&(Ac(a,b,c),Dk(a,c));}function uj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Yk(a,c);}
1309
1309
  function bk(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p$1(314));}null!==d&&d.delete(b);Yk(a,c);}var Vk;
1310
- Vk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf$1.current)dh=!0;else {if(0===(a.lanes&c)&&0===(b.flags&128))return dh=!1,yj(a,b,c);dh=0!==(a.flags&131072)?!0:!1;}else dh=!1,I$1&&0!==(b.flags&1048576)&&ug$1(b,ng$1,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;ij(a,b);a=b.pendingProps;var e=Yf$1(b,H$1.current);ch(b,c);e=Nh$1(null,b,d,a,e,c);var f=Sh$1();b.flags|=1;"object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=
1311
- null,Zf$1(d)?(f=!0,cg$1(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,kh$1(b),e.updater=Ei$1,b.stateNode=e,e._reactInternals=b,Ii$1(b,d,a,c),b=jj(null,b,d,!0,f,c)):(b.tag=0,I$1&&f&&vg(b),Xi$1(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{ij(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=Zk(d);a=Ci$1(d,a);switch(e){case 0:b=cj(null,b,d,a,c);break a;case 1:b=hj(null,b,d,a,c);break a;case 11:b=Yi$1(null,b,d,a,c);break a;case 14:b=$i$1(null,b,d,Ci$1(d.type,a),c);break a}throw Error(p$1(306,
1312
- d,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci$1(d,e),cj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci$1(d,e),hj(a,b,d,e,c);case 3:a:{kj(b);if(null===a)throw Error(p$1(387));d=b.pendingProps;f=b.memoizedState;e=f.element;lh(a,b);qh$1(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=
1313
- f,b.memoizedState=f,b.flags&256){e=Ji$1(Error(p$1(423)),b);b=lj(a,b,d,c,e);break a}else if(d!==e){e=Ji$1(Error(p$1(424)),b);b=lj(a,b,d,c,e);break a}else for(yg=Lf$1(b.stateNode.containerInfo.firstChild),xg=b,I$1=!0,zg=null,c=Vg$1(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else {Ig();if(d===e){b=Zi$1(a,b,c);break a}Xi$1(a,b,d,c);}b=b.child;}return b;case 5:return Ah(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef$1(d,e)?g=null:null!==f&&Ef$1(d,f)&&(b.flags|=32),
1314
- gj(a,b),Xi$1(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return oj(a,b,c);case 4:return yh$1(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ug(b,null,d,c):Xi$1(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci$1(d,e),Yi$1(a,b,d,e,c);case 7:return Xi$1(a,b,b.pendingProps,c),b.child;case 8:return Xi$1(a,b,b.pendingProps.children,c),b.child;case 12:return Xi$1(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;
1315
- g=e.value;G$1(Wg,d._currentValue);d._currentValue=g;if(null!==f)if(He$1(f.value,g)){if(f.children===e.children&&!Wf$1.current){b=Zi$1(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=mh$1(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k;}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);bh$1(f.return,
1316
- c,b);h.lanes|=c;break}k=k.next;}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p$1(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);bh$1(g,c,b);g=f.sibling;}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return;}f=g;}Xi$1(a,b,e.children,c);b=b.child;}return b;case 9:return e=b.type,d=b.pendingProps.children,ch(b,c),e=eh$1(e),d=d(e),b.flags|=1,Xi$1(a,b,d,c),
1317
- b.child;case 14:return d=b.type,e=Ci$1(d,b.pendingProps),e=Ci$1(d.type,e),$i$1(a,b,d,e,c);case 15:return bj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci$1(d,e),ij(a,b),b.tag=1,Zf$1(d)?(a=!0,cg$1(b)):a=!1,ch(b,c),Gi$1(b,d,e),Ii$1(b,d,e,c),jj(null,b,d,!0,a,c);case 19:return xj(a,b,c);case 22:return dj(a,b,c)}throw Error(p$1(156,b.tag));};function Fk(a,b){return ac$1(a,b)}
1318
- function $k(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null;}function Bg(a,b,c,d){return new $k(a,b,c,d)}function aj(a){a=a.prototype;return !(!a||!a.isReactComponent)}
1319
- function Zk(a){if("function"===typeof a)return aj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga$1)return 14}return 2}
1320
- function Pg(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};
1310
+ Vk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf$1.current)dh$1=!0;else {if(0===(a.lanes&c)&&0===(b.flags&128))return dh$1=!1,yj(a,b,c);dh$1=0!==(a.flags&131072)?!0:!1;}else dh$1=!1,I&&0!==(b.flags&1048576)&&ug$1(b,ng$1,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;ij(a,b);a=b.pendingProps;var e=Yf$1(b,H$1.current);ch$1(b,c);e=Nh$1(null,b,d,a,e,c);var f=Sh$1();b.flags|=1;"object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=
1311
+ null,Zf$1(d)?(f=!0,cg$1(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,kh$1(b),e.updater=Ei$1,b.stateNode=e,e._reactInternals=b,Ii$1(b,d,a,c),b=jj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg$1(b),Xi$1(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{ij(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=Zk(d);a=Ci$1(d,a);switch(e){case 0:b=cj(null,b,d,a,c);break a;case 1:b=hj(null,b,d,a,c);break a;case 11:b=Yi$1(null,b,d,a,c);break a;case 14:b=$i$1(null,b,d,Ci$1(d.type,a),c);break a}throw Error(p$1(306,
1312
+ d,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci$1(d,e),cj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci$1(d,e),hj(a,b,d,e,c);case 3:a:{kj(b);if(null===a)throw Error(p$1(387));d=b.pendingProps;f=b.memoizedState;e=f.element;lh$1(a,b);qh$1(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=
1313
+ f,b.memoizedState=f,b.flags&256){e=Ji$1(Error(p$1(423)),b);b=lj(a,b,d,c,e);break a}else if(d!==e){e=Ji$1(Error(p$1(424)),b);b=lj(a,b,d,c,e);break a}else for(yg$1=Lf$1(b.stateNode.containerInfo.firstChild),xg$1=b,I=!0,zg$1=null,c=Vg$1(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else {Ig$1();if(d===e){b=Zi$1(a,b,c);break a}Xi$1(a,b,d,c);}b=b.child;}return b;case 5:return Ah$1(b),null===a&&Eg$1(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef$1(d,e)?g=null:null!==f&&Ef$1(d,f)&&(b.flags|=32),
1314
+ gj(a,b),Xi$1(a,b,g,c),b.child;case 6:return null===a&&Eg$1(b),null;case 13:return oj(a,b,c);case 4:return yh$1(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ug$1(b,null,d,c):Xi$1(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci$1(d,e),Yi$1(a,b,d,e,c);case 7:return Xi$1(a,b,b.pendingProps,c),b.child;case 8:return Xi$1(a,b,b.pendingProps.children,c),b.child;case 12:return Xi$1(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;
1315
+ g=e.value;G$1(Wg$1,d._currentValue);d._currentValue=g;if(null!==f)if(He$1(f.value,g)){if(f.children===e.children&&!Wf$1.current){b=Zi$1(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=mh$1(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k;}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);bh(f.return,
1316
+ c,b);h.lanes|=c;break}k=k.next;}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p$1(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);bh(g,c,b);g=f.sibling;}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return;}f=g;}Xi$1(a,b,e.children,c);b=b.child;}return b;case 9:return e=b.type,d=b.pendingProps.children,ch$1(b,c),e=eh$1(e),d=d(e),b.flags|=1,Xi$1(a,b,d,c),
1317
+ b.child;case 14:return d=b.type,e=Ci$1(d,b.pendingProps),e=Ci$1(d.type,e),$i$1(a,b,d,e,c);case 15:return bj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci$1(d,e),ij(a,b),b.tag=1,Zf$1(d)?(a=!0,cg$1(b)):a=!1,ch$1(b,c),Gi$1(b,d,e),Ii$1(b,d,e,c),jj(null,b,d,!0,a,c);case 19:return xj(a,b,c);case 22:return dj(a,b,c)}throw Error(p$1(156,b.tag));};function Fk(a,b){return ac(a,b)}
1318
+ function $k(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null;}function Bg$1(a,b,c,d){return new $k(a,b,c,d)}function aj(a){a=a.prototype;return !(!a||!a.isReactComponent)}
1319
+ function Zk(a){if("function"===typeof a)return aj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da$1)return 11;if(a===Ga)return 14}return 2}
1320
+ function Pg$1(a,b){var c=a.alternate;null===c?(c=Bg$1(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};
1321
1321
  c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}
1322
- function Rg(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)aj(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case ya$1:return Tg(c.children,e,f,b);case za$1:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return pj(c,e,f,b);default:if("object"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;
1323
- break a;case Ga$1:g=14;break a;case Ha$1:g=16;d=null;break a}throw Error(p$1(130,null==a?a:typeof a,""));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Tg(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function pj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function Qg$1(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}
1324
- function Sg(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}
1325
- function al$1(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc$1(0);this.expirationTimes=zc$1(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc$1(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=
1326
- null;}function bl$1(a,b,c,d,e,f,g,h,k){a=new al$1(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};kh$1(f);return a}function cl$1(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return {$$typeof:wa,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}}
1327
- function dl$1(a){if(!a)return Vf$1;a=a._reactInternals;a:{if(Vb$1(a)!==a||1!==a.tag)throw Error(p$1(170));var b=a;do{switch(b.tag){case 3:b=b.stateNode.context;break a;case 1:if(Zf$1(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}}b=b.return;}while(null!==b);throw Error(p$1(171));}if(1===a.tag){var c=a.type;if(Zf$1(c))return bg(a,c,b)}return b}
1328
- function el$1(a,b,c,d,e,f,g,h,k){a=bl$1(c,d,!0,a,e,f,g,h,k);a.context=dl$1(null);c=a.current;d=R$1();e=yi$1(c);f=mh$1(d,e);f.callback=void 0!==b&&null!==b?b:null;nh$1(c,f,e);a.current.lanes=e;Ac$1(a,e,d);Dk(a,d);return a}function fl$1(a,b,c,d){var e=b.current,f=R$1(),g=yi$1(e);c=dl$1(c);null===b.context?b.context=c:b.pendingContext=c;b=mh$1(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);a=nh$1(e,b,g);null!==a&&(gi$1(a,e,g,f),oh$1(a,e,g));return g}
1329
- function gl$1(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function hl$1(a,b){a=a.memoizedState;if(null!==a&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b;}}function il$1(a,b){hl$1(a,b);(a=a.alternate)&&hl$1(a,b);}function jl$1(){return null}var kl$1="function"===typeof reportError?reportError:function(a){console.error(a);};function ll$1(a){this._internalRoot=a;}
1330
- ml$1.prototype.render=ll$1.prototype.render=function(a){var b=this._internalRoot;if(null===b)throw Error(p$1(409));fl$1(a,b,null,null);};ml$1.prototype.unmount=ll$1.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Rk(function(){fl$1(null,a,null,null);});b[uf$1]=null;}};function ml$1(a){this._internalRoot=a;}
1331
- ml$1.prototype.unstable_scheduleHydration=function(a){if(a){var b=Hc$1();a={blockedOn:null,target:a,priority:b};for(var c=0;c<Qc$1.length&&0!==b&&b<Qc$1[c].priority;c++);Qc$1.splice(c,0,a);0===c&&Vc$1(a);}};function nl$1(a){return !(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType)}function ol$1(a){return !(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function pl$1(){}
1332
- function ql$1(a,b,c,d,e){if(e){if("function"===typeof d){var f=d;d=function(){var a=gl$1(g);f.call(a);};}var g=el$1(b,d,a,0,null,!1,!1,"",pl$1);a._reactRootContainer=g;a[uf$1]=g.current;sf(8===a.nodeType?a.parentNode:a);Rk();return g}for(;e=a.lastChild;)a.removeChild(e);if("function"===typeof d){var h=d;d=function(){var a=gl$1(k);h.call(a);};}var k=bl$1(a,0,!1,null,null,!1,!1,"",pl$1);a._reactRootContainer=k;a[uf$1]=k.current;sf(8===a.nodeType?a.parentNode:a);Rk(function(){fl$1(b,k,c,d);});return k}
1333
- function rl$1(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if("function"===typeof e){var h=e;e=function(){var a=gl$1(g);h.call(a);};}fl$1(b,g,a,e);}else g=ql$1(c,b,a,e,d);return gl$1(g)}Ec$1=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=tc$1(b.pendingLanes);0!==c&&(Cc$1(b,c|1),Dk(b,B$1()),0===(K$1&6)&&(Gj=B$1()+500,jg()));}break;case 13:Rk(function(){var b=ih$1(a,1);if(null!==b){var c=R$1();gi$1(b,a,1,c);}}),il$1(a,1);}};
1334
- Fc$1=function(a){if(13===a.tag){var b=ih$1(a,134217728);if(null!==b){var c=R$1();gi$1(b,a,134217728,c);}il$1(a,134217728);}};Gc$1=function(a){if(13===a.tag){var b=yi$1(a),c=ih$1(a,b);if(null!==c){var d=R$1();gi$1(c,a,b,d);}il$1(a,b);}};Hc$1=function(){return C$1};Ic$1=function(a,b){var c=C$1;try{return C$1=a,b()}finally{C$1=c;}};
1335
- yb=function(a,b,c){switch(b){case "input":bb(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db(d);if(!e)throw Error(p$1(90));Wa$1(d);bb(d,e);}}}break;case "textarea":ib(a,c);break;case "select":b=c.value,null!=b&&fb(a,!!c.multiple,b,!1);}};Gb=Qk;Hb$1=Rk;
1336
- var sl$1={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Qk]},tl$1={findFiberByHostInstance:Wc$1,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"};
1337
- var ul$1={bundleType:tl$1.bundleType,version:tl$1.version,rendererPackageName:tl$1.rendererPackageName,rendererConfig:tl$1.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua$1.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Zb(a);return null===a?null:a.stateNode},findFiberByHostInstance:tl$1.findFiberByHostInstance||
1338
- jl$1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vl$1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl$1.isDisabled&&vl$1.supportsFiber)try{kc$1=vl$1.inject(ul$1),lc$1=vl$1;}catch(a){}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl$1;
1339
- reactDom_production_min.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nl$1(b))throw Error(p$1(200));return cl$1(a,b,null,c)};reactDom_production_min.createRoot=function(a,b){if(!nl$1(a))throw Error(p$1(299));var c=!1,d="",e=kl$1;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=bl$1(a,1,!1,null,null,c,!1,d,e);a[uf$1]=b.current;sf(8===a.nodeType?a.parentNode:a);return new ll$1(b)};
1340
- reactDom_production_min.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"===typeof a.render)throw Error(p$1(188));a=Object.keys(a).join(",");throw Error(p$1(268,a));}a=Zb(b);a=null===a?null:a.stateNode;return a};reactDom_production_min.flushSync=function(a){return Rk(a)};reactDom_production_min.hydrate=function(a,b,c){if(!ol$1(b))throw Error(p$1(200));return rl$1(null,a,b,!0,c)};
1341
- reactDom_production_min.hydrateRoot=function(a,b,c){if(!nl$1(a))throw Error(p$1(405));var d=null!=c&&c.hydratedSources||null,e=!1,f="",g=kl$1;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=el$1(b,null,a,1,null!=c?c:null,e,!1,f,g);a[uf$1]=b.current;sf(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=[c,e]:b.mutableSourceEagerHydrationData.push(c,
1342
- e);return new ml$1(b)};reactDom_production_min.render=function(a,b,c){if(!ol$1(b))throw Error(p$1(200));return rl$1(null,a,b,!1,c)};reactDom_production_min.unmountComponentAtNode=function(a){if(!ol$1(a))throw Error(p$1(40));return a._reactRootContainer?(Rk(function(){rl$1(null,null,a,!1,function(){a._reactRootContainer=null;a[uf$1]=null;});}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;
1343
- reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!ol$1(c))throw Error(p$1(200));if(null==a||void 0===a._reactInternals)throw Error(p$1(38));return rl$1(a,b,c,!1,d)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";
1322
+ function Rg$1(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)aj(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case ya:return Tg$1(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg$1(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg$1(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg$1(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return pj(c,e,f,b);default:if("object"===typeof a&&null!==a)switch(a.$$typeof){case Ba$1:g=10;break a;case Ca:g=9;break a;case Da$1:g=11;
1323
+ break a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p$1(130,null==a?a:typeof a,""));}b=Bg$1(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Tg$1(a,b,c,d){a=Bg$1(7,a,d,b);a.lanes=c;return a}function pj(a,b,c,d){a=Bg$1(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function Qg$1(a,b,c){a=Bg$1(6,a,null,b);a.lanes=c;return a}
1324
+ function Sg$1(a,b,c){b=Bg$1(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}
1325
+ function al(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=
1326
+ null;}function bl(a,b,c,d,e,f,g,h,k){a=new al(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg$1(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};kh$1(f);return a}function cl(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return {$$typeof:wa,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}}
1327
+ function dl(a){if(!a)return Vf$1;a=a._reactInternals;a:{if(Vb$1(a)!==a||1!==a.tag)throw Error(p$1(170));var b=a;do{switch(b.tag){case 3:b=b.stateNode.context;break a;case 1:if(Zf$1(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}}b=b.return;}while(null!==b);throw Error(p$1(171));}if(1===a.tag){var c=a.type;if(Zf$1(c))return bg$1(a,c,b)}return b}
1328
+ function el(a,b,c,d,e,f,g,h,k){a=bl(c,d,!0,a,e,f,g,h,k);a.context=dl(null);c=a.current;d=R$1();e=yi$1(c);f=mh$1(d,e);f.callback=void 0!==b&&null!==b?b:null;nh$1(c,f,e);a.current.lanes=e;Ac(a,e,d);Dk(a,d);return a}function fl(a,b,c,d){var e=b.current,f=R$1(),g=yi$1(e);c=dl(c);null===b.context?b.context=c:b.pendingContext=c;b=mh$1(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);a=nh$1(e,b,g);null!==a&&(gi$1(a,e,g,f),oh$1(a,e,g));return g}
1329
+ function gl(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function hl(a,b){a=a.memoizedState;if(null!==a&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b;}}function il(a,b){hl(a,b);(a=a.alternate)&&hl(a,b);}function jl$1(){return null}var kl="function"===typeof reportError?reportError:function(a){console.error(a);};function ll(a){this._internalRoot=a;}
1330
+ ml.prototype.render=ll.prototype.render=function(a){var b=this._internalRoot;if(null===b)throw Error(p$1(409));fl(a,b,null,null);};ml.prototype.unmount=ll.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Rk$1(function(){fl(null,a,null,null);});b[uf$1]=null;}};function ml(a){this._internalRoot=a;}
1331
+ ml.prototype.unstable_scheduleHydration=function(a){if(a){var b=Hc();a={blockedOn:null,target:a,priority:b};for(var c=0;c<Qc.length&&0!==b&&b<Qc[c].priority;c++);Qc.splice(c,0,a);0===c&&Vc(a);}};function nl(a){return !(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType)}function ol(a){return !(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function pl(){}
1332
+ function ql$1(a,b,c,d,e){if(e){if("function"===typeof d){var f=d;d=function(){var a=gl(g);f.call(a);};}var g=el(b,d,a,0,null,!1,!1,"",pl);a._reactRootContainer=g;a[uf$1]=g.current;sf$1(8===a.nodeType?a.parentNode:a);Rk$1();return g}for(;e=a.lastChild;)a.removeChild(e);if("function"===typeof d){var h=d;d=function(){var a=gl(k);h.call(a);};}var k=bl(a,0,!1,null,null,!1,!1,"",pl);a._reactRootContainer=k;a[uf$1]=k.current;sf$1(8===a.nodeType?a.parentNode:a);Rk$1(function(){fl(b,k,c,d);});return k}
1333
+ function rl(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if("function"===typeof e){var h=e;e=function(){var a=gl(g);h.call(a);};}fl(b,g,a,e);}else g=ql$1(c,b,a,e,d);return gl(g)}Ec=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=tc(b.pendingLanes);0!==c&&(Cc(b,c|1),Dk(b,B$1()),0===(K$1&6)&&(Gj=B$1()+500,jg$1()));}break;case 13:Rk$1(function(){var b=ih$1(a,1);if(null!==b){var c=R$1();gi$1(b,a,1,c);}}),il(a,1);}};
1334
+ Fc=function(a){if(13===a.tag){var b=ih$1(a,134217728);if(null!==b){var c=R$1();gi$1(b,a,134217728,c);}il(a,134217728);}};Gc=function(a){if(13===a.tag){var b=yi$1(a),c=ih$1(a,b);if(null!==c){var d=R$1();gi$1(c,a,b,d);}il(a,b);}};Hc=function(){return C};Ic=function(a,b){var c=C;try{return C=a,b()}finally{C=c;}};
1335
+ yb$1=function(a,b,c){switch(b){case "input":bb$1(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db$1(d);if(!e)throw Error(p$1(90));Wa(d);bb$1(d,e);}}}break;case "textarea":ib$1(a,c);break;case "select":b=c.value,null!=b&&fb$1(a,!!c.multiple,b,!1);}};Gb$1=Qk;Hb$1=Rk$1;
1336
+ var sl={usingClientEntryPoint:!1,Events:[Cb$1,ue$1,Db$1,Eb$1,Fb$1,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"};
1337
+ var ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua$1.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Zb$1(a);return null===a?null:a.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||
1338
+ jl$1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl;}catch(a){}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;
1339
+ reactDom_production_min.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nl(b))throw Error(p$1(200));return cl(a,b,null,c)};reactDom_production_min.createRoot=function(a,b){if(!nl(a))throw Error(p$1(299));var c=!1,d="",e=kl;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=bl(a,1,!1,null,null,c,!1,d,e);a[uf$1]=b.current;sf$1(8===a.nodeType?a.parentNode:a);return new ll(b)};
1340
+ reactDom_production_min.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"===typeof a.render)throw Error(p$1(188));a=Object.keys(a).join(",");throw Error(p$1(268,a));}a=Zb$1(b);a=null===a?null:a.stateNode;return a};reactDom_production_min.flushSync=function(a){return Rk$1(a)};reactDom_production_min.hydrate=function(a,b,c){if(!ol(b))throw Error(p$1(200));return rl(null,a,b,!0,c)};
1341
+ reactDom_production_min.hydrateRoot=function(a,b,c){if(!nl(a))throw Error(p$1(405));var d=null!=c&&c.hydratedSources||null,e=!1,f="",g=kl;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=el(b,null,a,1,null!=c?c:null,e,!1,f,g);a[uf$1]=b.current;sf$1(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=[c,e]:b.mutableSourceEagerHydrationData.push(c,
1342
+ e);return new ml(b)};reactDom_production_min.render=function(a,b,c){if(!ol(b))throw Error(p$1(200));return rl(null,a,b,!1,c)};reactDom_production_min.unmountComponentAtNode=function(a){if(!ol(a))throw Error(p$1(40));return a._reactRootContainer?(Rk$1(function(){rl(null,null,a,!1,function(){a._reactRootContainer=null;a[uf$1]=null;});}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;
1343
+ reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!ol(c))throw Error(p$1(200));if(null==a||void 0===a._reactInternals)throw Error(p$1(38));return rl(a,b,c,!1,d)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";
1344
1344
 
1345
1345
  function checkDCE() {
1346
1346
  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
@@ -1368,7 +1368,7 @@
1368
1368
  }
1369
1369
 
1370
1370
  var reactDomExports = reactDom.exports;
1371
- var b = /*@__PURE__*/getDefaultExportFromCjs(reactDomExports);
1371
+ var w = /*@__PURE__*/getDefaultExportFromCjs(reactDomExports);
1372
1372
 
1373
1373
  var createRoot;
1374
1374
 
@@ -1391,8 +1391,8 @@
1391
1391
  * This source code is licensed under the MIT license found in the
1392
1392
  * LICENSE file in the root directory of this source tree.
1393
1393
  */
1394
- var f=reactExports,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
1395
- function q$1(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q$1;reactJsxRuntime_production_min.jsxs=q$1;
1394
+ var f=reactExports,k$1=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
1395
+ function q$1(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k$1,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q$1;reactJsxRuntime_production_min.jsxs=q$1;
1396
1396
 
1397
1397
  {
1398
1398
  jsxRuntime.exports = reactJsxRuntime_production_min;
@@ -1539,16 +1539,16 @@
1539
1539
  };
1540
1540
  IOConnectProvider.displayName = 'IOConnectProvider';
1541
1541
 
1542
- function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S,N={exports:{}};
1542
+ function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A,k={exports:{}};
1543
1543
  /*!
1544
1544
  Copyright (c) 2018 Jed Watson.
1545
1545
  Licensed under the MIT License (MIT), see
1546
1546
  http://jedwatson.github.io/classnames
1547
- */S=N,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=o(e,n(i)));}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return "";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var r in n)e.call(n,r)&&n[r]&&(i=o(i,r));return i}function o(e,t){return t?e?e+" "+t:e+t:e}S.exports?(t.default=t,S.exports=t):window.classNames=t;}();var E=C(N.exports);function P({className:t,size:n="16",variant:o="workspace",...i}){const r=E("icon",n&&[`icon-size-${n}`],t);return jsxRuntimeExports.jsx("span",{className:r,"aria-label":`icon-${o}`,role:"presentation",...i,children:jsxRuntimeExports.jsx("i",{className:`icon-${o}`})})}const I=reactExports.forwardRef(({className:t,variant:n="default",icon:o="workspace",size:i="16",tooltip:r,iconSize:s="16",onClick:c,disabled:l,children:u,...d},f)=>{const p=E("io-btn-icon","default"!==n&&[`io-btn-icon-${n}`],[`io-btn-icon-size-${i}`],t),m=reactExports.useCallback(e=>{if(!l)return c?c(e):void 0;e.preventDefault();},[c,l]);return jsxRuntimeExports.jsx("button",{className:p,type:"button",ref:f,"aria-label":"icon button","aria-disabled":l,title:r,onClick:m,disabled:l,...d,children:u??(o&&jsxRuntimeExports.jsx(P,{variant:o,size:s}))})});I.displayName="ButtonIcon";function L({className:t,variant:n="default",children:o,...i}){const r=E("io-badge","default"!==n&&[`io-badge-${n}`],t);return jsxRuntimeExports.jsx("div",{className:r,...i,children:o})}function T({className:t,tag:n="h2",size:o="normal",text:i="Title",...r}){const a=n,s=E("small"===o&&"io-title-semibold","normal"===o&&"io-title","large"===o&&"io-title-large",t);return jsxRuntimeExports.jsx(a,{className:s,...r,children:i})}function D({className:n,title:o,titleSize:i="normal",tag:r,hint:a,children:s,...c}){const l=E("io-block",n),u=o?"block-title":void 0;return jsxRuntimeExports.jsxs("section",{className:l,"aria-label":o?void 0:"Block","aria-labelledby":u,...c,children:[o&&jsxRuntimeExports.jsx(T,{id:u,tag:r,text:o,size:i}),s,a&&jsxRuntimeExports.jsx("p",{className:"io-text-smaller",children:a})]})}const B=e=>"Enter"===e.key||" "===e.key,R=(e,t)=>void 0===e?{}:{tabIndex:0,onClick:e,onKeyDown:n=>{B(n)&&(n.preventDefault(),e?.(n)),t?.(n);}},F=({event:e,currentIndex:t,moveFocus:n,min:o,max:i,onClose:r})=>{switch(e.key){case"ArrowUp":n(Math.max(t-1,o));break;case"ArrowDown":n(Math.min(t+1,i));break;case"Home":n(o);break;case"End":n(i);break;case"Escape":if(r){r();break}return;default:return}e.stopPropagation(),e.preventDefault();};var M=Object.freeze({__proto__:null,isClickKeypress:B,keyboardNavigation:F,onClickA11y:R});const $=reactExports.forwardRef(({className:n,variant:o="default",size:i="normal",icon:r,iconSize:s="12",iconRight:c=!1,text:l,onClick:u,disabled:d,children:f,...p},m)=>{const h=E("io-btn",("primary"===o||"critical"===o||"outline"===o||"link"===o)&&[`io-btn-${o}`],"large"===i&&"io-btn-lg",n),g=reactExports.useCallback(e=>{if(!d)return u?u(e):void 0;e.preventDefault();},[u,d]),y=reactExports.useCallback(e=>{d||B(e)&&(e.preventDefault(),g(e));},[g,d]);return jsxRuntimeExports.jsxs("button",{className:h,ref:m,type:"button","aria-disabled":d,onClick:g,onKeyDown:y,disabled:d,tabIndex:0,...p,children:[r&&!c&&jsxRuntimeExports.jsx(P,{variant:r,size:s}),f??l,r&&c&&jsxRuntimeExports.jsx(P,{variant:r,size:s})]})});$.displayName="Button";const _=reactExports.createContext({}),z=reactExports.forwardRef(({icon:t="chevron-down",onClick:n,onKeyDown:o,...i},r)=>{const{handleToggle:s,disabled:l,setTriggerRef:u}=reactExports.useContext(_),d=reactExports.useCallback(e=>{u?.(e),r&&("function"==typeof r?r(e):r.current=e);},[r,u]),f=reactExports.useCallback(e=>{e.stopPropagation(),n?.(e),e.defaultPrevented||s?.();},[n,s]),p=reactExports.useCallback(e=>{o?.(e),e.defaultPrevented||B(e)&&(e.preventDefault(),e.stopPropagation(),s?.());},[o,s]);return jsxRuntimeExports.jsx($,{icon:t,iconRight:!0,onClick:f,onKeyDown:p,disabled:l,ref:d,...i})});z.displayName="DropdownButton";const j=reactExports.forwardRef(({size:t="32",onClick:n,onKeyDown:o,...i},r)=>{const{handleToggle:s,disabled:l,setTriggerRef:u}=reactExports.useContext(_),d=reactExports.useCallback(e=>{u?.(e),r&&("function"==typeof r?r(e):r.current=e);},[r,u]),f=reactExports.useCallback(e=>{e.stopPropagation(),n?.(e),e.defaultPrevented||s?.();},[n,s]),p=reactExports.useCallback(e=>{o?.(e),e.defaultPrevented||B(e)&&(e.preventDefault(),e.stopPropagation(),s?.());},[o,s]);return jsxRuntimeExports.jsx(I,{size:t,onClick:f,onKeyDown:p,disabled:l,ref:d,...i})});function H({className:t,...n}){const o=E("io-dropdown-content",t);return jsxRuntimeExports.jsx("div",{className:o,...n})}j.displayName="DropdownButtonIcon";const W=reactExports.createContext({}),V=reactExports.forwardRef((n,o)=>{const{className:i,prepend:r,append:a,isSelected:s,onClick:l,description:u,disabled:d=!1,children:f,tooltip:p,...m}=n,{variant:h="default",selected:g,checkIcon:y,handleItemClick:v}=reactExports.useContext(W),w=s??g?.some(e=>e.children===f),b="default"!==h&&!!y,k=b||r,x=E("io-list-item",k&&"io-list-item-left",a&&"io-list-item-right","default"!==h&&w&&"selected",u&&"io-list-item-description",d&&"io-list-item-disabled",i);return jsxRuntimeExports.jsxs("li",{className:x,ref:o,role:"menuitem","aria-roledescription":"menuitem",tabIndex:0,onClick:e=>{d?e.preventDefault():(v?.(e,{children:f}),l?.(e));},...m,children:[k&&jsxRuntimeExports.jsxs("div",{className:"io-list-left-column",children:[b&&jsxRuntimeExports.jsx(P,{variant:y.variant,title:w?y.tooltip:void 0,"data-testid":"list-item-check-icon"}),r]}),jsxRuntimeExports.jsx("span",{className:"io-list-text",title:p,"data-testid":"list-item-title",children:f}),a&&jsxRuntimeExports.jsx("div",{className:"io-list-right-column",children:a}),u&&jsxRuntimeExports.jsx("div",{className:"io-list-text-description",children:u})]})});V.displayName="ListItem";const K=reactExports.forwardRef(({className:n,prepend:o,append:i,children:r,tooltip:a,...s},c)=>{const l=E("io-list-item-header",n);return jsxRuntimeExports.jsxs("div",{className:l,ref:c,...s,children:[o&&jsxRuntimeExports.jsx("div",{className:"io-list-left-column",children:o}),jsxRuntimeExports.jsx("span",{className:"io-list-text",title:a,children:r}),i&&jsxRuntimeExports.jsx("div",{className:"io-list-right-column",children:i})]})});K.displayName="ListItemHeader";const U=reactExports.forwardRef(({className:n,prepend:o,append:i,children:r,tooltip:a,...s},c)=>{const l=E("io-list-item",o&&"io-list-item-left",i&&"io-list-item-right","io-list-item-title",n);return jsxRuntimeExports.jsxs("li",{className:l,ref:c,...s,children:[o&&jsxRuntimeExports.jsx("div",{className:"io-list-left-column",children:o}),jsxRuntimeExports.jsx("span",{className:"io-list-text",title:a,"data-testid":"list-item-title",children:r}),i&&jsxRuntimeExports.jsx("div",{className:"io-list-right-column",children:i})]})});U.displayName="ListItemTitle";const G=reactExports.forwardRef(({className:t,children:n,...o},i)=>{const r=E("io-list-item","io-list-with-sub-items",t);return jsxRuntimeExports.jsx("li",{className:r,ref:i,...o,children:n})});G.displayName="ListItemWithSubItems";const q=reactExports.forwardRef(({className:n,prepend:o,append:i,children:r,tooltip:a,...s},c)=>{const l=E("io-list-item",o&&"io-list-item-left",i&&"io-list-item-right","io-list-item-section",n);return jsxRuntimeExports.jsxs("li",{className:l,ref:c,...s,children:[o&&jsxRuntimeExports.jsx("div",{className:"io-list-left-column",children:o}),jsxRuntimeExports.jsx("span",{className:"io-list-text",title:a,children:r}),i&&jsxRuntimeExports.jsx("div",{className:"io-list-right-column",children:i})]})});function J({className:t,...n}){const o=E("io-separator",t);return jsxRuntimeExports.jsx("hr",{className:o,...n})}q.displayName="ListItemSection";const Y=t=>jsxRuntimeExports.jsx(J,{...t});Y.displayName="ListItemSeparator";const X=reactExports.forwardRef((t,n)=>{const{className:o,variant:i="default",checkIcon:r,children:s,...c}=t,[d,f]=reactExports.useState([]),p=E("io-list","default"!==i&&"io-list-selectable",o),m=reactExports.useMemo(()=>{if(r)return "object"==typeof r?r:{variant:r}},[r]),h=reactExports.useCallback((e,t)=>{if("default"===i)return;const n=d.some(e=>e.children?.toString()===t.children?.toString());"single"===i?f([t]):(()=>{const e=n?d.filter(e=>e.children!==t.children):[...d,t];f(e);})();},[d,i]),g=reactExports.useMemo(()=>({variant:i,selected:d,checkIcon:m,handleItemClick:h}),[i,d,m,h]);return jsxRuntimeExports.jsx(W.Provider,{value:g,children:jsxRuntimeExports.jsx("ul",{className:p,ref:n,...c,children:s})})});X.displayName="List";const Q=X;Q.Item=V,Q.ItemTitle=U,Q.ItemSection=q,Q.ItemHeader=K,Q.ItemWithSubItems=G,Q.ItemSeparator=Y;const Z=reactExports.forwardRef((t,n)=>jsxRuntimeExports.jsx(Q,{...t,ref:n}));Z.displayName="DropdownList";const ee=reactExports.forwardRef((t,n)=>{const{handleClose:o}=reactExports.useContext(_),{onClick:i,onKeyDown:r,...s}=t,l=reactExports.useRef(null),u=reactExports.useCallback(e=>{l.current=e,"function"==typeof n?n(e):n&&(n.current=e);},[n]);return jsxRuntimeExports.jsx(V,{...s,ref:u,onClick:e=>{i?.(e),o?.();},onKeyDown:e=>{if(r?.(e),e.defaultPrevented||!B(e))return;e.preventDefault(),e.stopPropagation();const t=("function"==typeof n?null:n?.current)||l.current;t?.click();}})});ee.displayName="DropdownItem";const te=reactExports.forwardRef((t,n)=>jsxRuntimeExports.jsx(U,{...t,ref:n}));te.displayName="DropdownItemTitle";const ne=reactExports.forwardRef((t,n)=>jsxRuntimeExports.jsx(q,{...t,ref:n}));ne.displayName="DropdownItemSection";const oe=reactExports.forwardRef((t,n)=>jsxRuntimeExports.jsx(J,{...t}));oe.displayName="DropdownSeparator";function ie(e,t,n){const o=reactExports.useCallback(n=>{const o=t.some(e=>n.key===e);o&&(n.preventDefault(),e());},[e,t]);reactExports.useEffect(()=>{const e=n?.current||document;return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o);}},[o,n]);}const re=reactExports.forwardRef(({className:t,variant:n="outline",align:o="down",disabled:i,isOpen:r,onOpenChange:s,children:c,...m},h)=>{const g=reactExports.useRef(null),y=reactExports.useRef(null);reactExports.useImperativeHandle(h,()=>y.current,[]);const{isOpen:v,handleOpen:w,handleClose:b}=((e,t)=>{const[n,o]=reactExports.useState(!1),i=void 0!==e,r=i?e:n,s=reactExports.useCallback(e=>{i||o(e),t?.(e);},[i,t]),c=reactExports.useCallback(()=>s(!0),[s]),u=reactExports.useCallback(()=>s(!1),[s]);return {isOpen:r,setOpen:s,handleOpen:c,handleClose:u}})(r,s);((e,t,n=!0)=>{reactExports.useEffect(()=>{if(!n)return;const o=n=>{const o=n.target;o&&e.current&&!e.current.contains(o)&&(n.composedPath&&n.composedPath().some(t=>t===e.current||e.current&&t.nodeType===Node.ELEMENT_NODE&&e.current.contains(t))||t());},i=requestAnimationFrame(()=>{document.addEventListener("mousedown",o,!0);});return ()=>{cancelAnimationFrame(i),document.removeEventListener("mousedown",o,!0);}},[e,t,n]);})(y,b,v),ie(()=>{v&&b();},["Escape"],y),ie(()=>{v||i||g.current!==document.activeElement||w();},["ArrowDown","ArrowUp"],y);const k=reactExports.useMemo(()=>({variant:n,align:o,disabled:i,isOpen:v,handleOpen:w,handleClose:b,handleToggle:v?b:w,setTriggerRef:e=>g.current=e}),[n,o,i,v,w,b]),x=E("io-dropdown",v&&"io-dropdown-open","default"!==n&&`io-dropdown-${n}`,t);return jsxRuntimeExports.jsx(_.Provider,{value:k,children:jsxRuntimeExports.jsx("div",{className:x,ref:y,...m,children:c})})});function ae({className:t,variant:n="default",align:o="left",children:i,...r}){const a=E("io-btn-group","default"!==n&&`io-btn-group-${n}`,"right"===o&&"io-btn-group-right",t);return jsxRuntimeExports.jsx("div",{className:a,"data-testid":"button-group",...r,children:i})}function se({className:t,draggable:n=!1,children:o,...i}){const r=E("io-header",n&&["draggable"],t);return jsxRuntimeExports.jsx("header",{className:r,...i,children:o})}function ce({className:t,children:n,...o}){const i=E("io-dialog-header",t);return jsxRuntimeExports.jsx(se,{"data-testid":"io-dialog-header",className:i,...o,children:n})}function le({className:t,children:n,...o}){const i=E("io-dialog-body",t);return jsxRuntimeExports.jsx("div",{"data-testid":"io-dialog-body",className:i,...o,children:n})}function ue({className:t,children:n,...o}){const i=E("io-footer",t);return jsxRuntimeExports.jsx("footer",{className:i,...o,children:n})}function de({className:t,...n}){const o=E("io-dialog-footer",t);return jsxRuntimeExports.jsx(ue,{"data-testid":"io-dialog-footer",className:o,...n})}function fe({className:n,variant:o="default",title:i="Dialog Title",isOpen:r=!1,draggable:a=!1,closeFn:s,children:c,...l}){const u=reactExports.useRef(null),f=E("io-dialog","centered"===o&&"io-dialog-center",n);return reactExports.useLayoutEffect(()=>{const e=u?.current;e&&(r?e.showModal():"function"==typeof e.close&&e.close());},[r]),jsxRuntimeExports.jsxs("dialog",{"data-testid":"io-dialog",className:f,ref:u,"data-modal":!0,onClose:()=>{r&&s&&s();},onClick:e=>{r&&s&&"DIALOG"===e.target.nodeName&&s();},onKeyDown:e=>{const t=e.target instanceof HTMLDialogElement&&"DIALOG"===e.target.nodeName;r&&s&&" "===e.key&&t&&s();},...l,children:[jsxRuntimeExports.jsxs(ce,{draggable:a,children:[jsxRuntimeExports.jsx("h3",{"data-testid":"io-dialog-title",children:i}),jsxRuntimeExports.jsx(ae,{children:jsxRuntimeExports.jsx(I,{className:"non-draggable","data-testid":"io-dialog-close-button",size:"24",icon:"close",iconSize:"12",onClick:s,tabIndex:-1})})]}),c]})}function pe(){return "undefined"!=typeof window}function me(e){return ye(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return (null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ge(e){var t;return null==(t=(ye(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ye(e){return !!pe()&&(e instanceof Node||e instanceof he(e).Node)}function ve(e){return !!pe()&&(e instanceof Element||e instanceof he(e).Element)}function we(e){return !!pe()&&(e instanceof HTMLElement||e instanceof he(e).HTMLElement)}function be(e){return !(!pe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof he(e).ShadowRoot)}re.Button=z,re.ButtonIcon=j,re.Content=H,re.List=Z,re.Item=ee,re.ItemTitle=te,re.ItemSection=ne,re.Separator=oe,ae.Button=$,ae.ButtonIcon=I,ae.Dropdown=re,se.Title=T,se.ButtonGroup=ae,se.Button=$,se.ButtonIcon=I,se.Dropdown=re,ce.Title=T,ce.ButtonGroup=ae,ce.Button=$,ce.ButtonIcon=I,ce.Dropdown=re,le.Content=function({className:t,children:n,...o}){const i=E("io-dialog-content",t);return jsxRuntimeExports.jsx("div",{className:i,...o,children:n})},ue.ButtonGroup=ae,ue.Button=$,ue.ButtonIcon=I,ue.Dropdown=re,de.ButtonGroup=ae,de.Button=$,de.ButtonIcon=I,de.Dropdown=re,fe.Header=ce,fe.Body=le,fe.Footer=de;const ke=new Set(["inline","contents"]);function xe(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=Be(e);return /auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!ke.has(i)}const Ce=new Set(["table","td","th"]);function Se(e){return Ce.has(me(e))}const Ne=[":popover-open",":modal"];function Ee(e){return Ne.some(t=>{try{return e.matches(t)}catch(e){return !1}})}const Pe=["transform","translate","scale","rotate","perspective"],Ie=["transform","translate","scale","rotate","perspective","filter"],Ae=["paint","layout","strict","content"];function Oe(e){const t=Le(),n=ve(e)?Be(e):e;return Pe.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ie.some(e=>(n.willChange||"").includes(e))||Ae.some(e=>(n.contain||"").includes(e))}function Le(){return !("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Te=new Set(["html","body","#document"]);function De(e){return Te.has(me(e))}function Be(e){return he(e).getComputedStyle(e)}function Re(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fe(e){if("html"===me(e))return e;const t=e.assignedSlot||e.parentNode||be(e)&&e.host||ge(e);return be(t)?t.host:t}function Me(e){const t=Fe(e);return De(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&xe(t)?t:Me(t)}function $e(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Me(e),r=i===(null==(o=e.ownerDocument)?void 0:o.body),a=he(i);if(r){const e=_e(a);return t.concat(a,a.visualViewport||[],xe(i)?i:[],e&&n?$e(e):[])}return t.concat(i,$e(i,[],n))}function _e(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ze(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement;}return t}function je(e,t){if(!e||!t)return !1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return !0;if(n&&be(n)){let n=t;for(;n;){if(e===n)return !0;n=n.parentNode||n.host;}}return !1}function He(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function We(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function Ve(e){return !(0!==e.mozInputSource||!e.isTrusted)||(Ge()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Ke(e){return !We().includes("jsdom/")&&(!Ge()&&0===e.width&&0===e.height||Ge()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Ue(){return /apple/i.test(navigator.vendor)}function Ge(){const e=/android/i;return e.test(He())||e.test(We())}function qe(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Je(e){return (null==e?void 0:e.ownerDocument)||document}function Ye(e,t){if(null==t)return !1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Xe(e){return "composedPath"in e?e.composedPath()[0]:e.target}function Qe(e){return we(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Ze(e){e.preventDefault(),e.stopPropagation();}function et(e){return !!e&&("combobox"===e.getAttribute("role")&&Qe(e))}const tt=Math.min,nt=Math.max,ot=Math.round,it=Math.floor,rt=e=>({x:e,y:e}),at={left:"right",right:"left",bottom:"top",top:"bottom"},st={start:"end",end:"start"};function ct(e,t,n){return nt(e,tt(t,n))}function lt(e,t){return "function"==typeof e?e(t):e}function ut(e){return e.split("-")[0]}function dt(e){return e.split("-")[1]}function ft(e){return "x"===e?"y":"x"}function pt(e){return "y"===e?"height":"width"}const mt=new Set(["top","bottom"]);function ht(e){return mt.has(ut(e))?"y":"x"}function gt(e){return ft(ht(e))}function yt(e){return e.replace(/start|end/g,e=>st[e])}const vt=["left","right"],wt=["right","left"],bt=["top","bottom"],kt=["bottom","top"];function xt(e,t,n,o){const i=dt(e);let r=function(e,t,n){switch(e){case"top":case"bottom":return n?t?wt:vt:t?vt:wt;case"left":case"right":return t?bt:kt;default:return []}}(ut(e),"start"===n,o);return i&&(r=r.map(e=>e+"-"+i),t&&(r=r.concat(r.map(yt)))),r}function Ct(e){return e.replace(/left|right|bottom|top/g,e=>at[e])}function St(e){const{x:t,y:n,width:o,height:i}=e;return {width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}
1547
+ */A=k,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=o(e,n(i)));}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return "";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var r in n)e.call(n,r)&&n[r]&&(i=o(i,r));return i}function o(e,t){return t?e?e+" "+t:e+t:e}A.exports?(t.default=t,A.exports=t):window.classNames=t;}();var S=x(k.exports);function N({className:t,size:n="16",variant:o="workspace",...i}){const r=S("icon",n&&[`icon-size-${n}`],t);return jsxRuntimeExports.jsx("span",{className:r,"aria-label":`icon-${o}`,role:"presentation",...i,children:jsxRuntimeExports.jsx("i",{className:`icon-${o}`})})}const P=reactExports.forwardRef(({className:t,variant:n="default",icon:o="workspace",size:i="16",tooltip:r,iconSize:s="16",onClick:c,disabled:l,children:u,...d},p)=>{const f=S("io-btn-icon","default"!==n&&[`io-btn-icon-${n}`],[`io-btn-icon-size-${i}`],t),m=reactExports.useCallback(e=>{if(!l)return c?c(e):void 0;e.preventDefault();},[c,l]);return jsxRuntimeExports.jsx("button",{className:f,type:"button",ref:p,"aria-label":"icon button","aria-disabled":l,title:r,onClick:m,disabled:l,...d,children:u??(o&&jsxRuntimeExports.jsx(N,{variant:o,size:s}))})});P.displayName="ButtonIcon";function B({className:t,variant:n="default",children:o,...i}){const r=S("io-badge","default"!==n&&[`io-badge-${n}`],t);return jsxRuntimeExports.jsx("div",{className:r,...i,children:o})}function O({className:t,tag:n="h2",size:o="normal",text:i="Title",...r}){const a=n,s=S("small"===o&&"io-title-semibold","normal"===o&&"io-title","large"===o&&"io-title-large",t);return jsxRuntimeExports.jsx(a,{className:s,...r,children:i})}function T({className:n,title:o,titleSize:i="normal",tag:r,hint:a,children:s,...c}){const l=S("io-block",n),u=o?"block-title":void 0;return jsxRuntimeExports.jsxs("section",{className:l,"aria-label":o?void 0:"Block","aria-labelledby":u,...c,children:[o&&jsxRuntimeExports.jsx(O,{id:u,tag:r,text:o,size:i}),s,a&&jsxRuntimeExports.jsx("p",{className:"io-text-smaller",children:a})]})}const R=e=>"Enter"===e.key||" "===e.key,G=(e,t)=>void 0===e?{}:{tabIndex:0,onClick:e,onKeyDown:n=>{R(n)&&(n.preventDefault(),e?.(n)),t?.(n);}},F=({event:e,currentIndex:t,moveFocus:n,min:o,max:i,onClose:r})=>{switch(e.key){case"ArrowUp":n(Math.max(t-1,o));break;case"ArrowDown":n(Math.min(t+1,i));break;case"Home":n(o);break;case"End":n(i);break;case"Escape":if(r){r();break}return;default:return}e.stopPropagation(),e.preventDefault();};var M=Object.freeze({__proto__:null,isClickKeypress:R,keyboardNavigation:F,onClickA11y:G});const D=reactExports.forwardRef(({className:n,variant:o="default",size:i="normal",icon:r,iconSize:s="12",iconRight:c=!1,text:l,onClick:u,disabled:d,children:p,...f},m)=>{const h=S("io-btn",("primary"===o||"critical"===o||"outline"===o||"link"===o)&&[`io-btn-${o}`],"large"===i&&"io-btn-lg",n),g=reactExports.useCallback(e=>{if(!d)return u?u(e):void 0;e.preventDefault();},[u,d]),b=reactExports.useCallback(e=>{d||R(e)&&(e.preventDefault(),g(e));},[g,d]);return jsxRuntimeExports.jsxs("button",{className:h,ref:m,type:"button","aria-disabled":d,onClick:g,onKeyDown:b,disabled:d,tabIndex:0,...f,children:[r&&!c&&jsxRuntimeExports.jsx(N,{variant:r,size:s}),p??l,r&&c&&jsxRuntimeExports.jsx(N,{variant:r,size:s})]})});D.displayName="Button";const W=reactExports.createContext({}),V=reactExports.forwardRef(({icon:t="chevron-down",onClick:n,onKeyDown:o,...i},r)=>{const{handleToggle:s,disabled:l,setTriggerRef:u}=reactExports.useContext(W),d=reactExports.useCallback(e=>{u?.(e),r&&("function"==typeof r?r(e):r.current=e);},[r,u]),p=reactExports.useCallback(e=>{e.stopPropagation(),n?.(e),e.defaultPrevented||s?.();},[n,s]),f=reactExports.useCallback(e=>{o?.(e),e.defaultPrevented||R(e)&&(e.preventDefault(),e.stopPropagation(),s?.());},[o,s]);return jsxRuntimeExports.jsx(D,{icon:t,iconRight:!0,onClick:p,onKeyDown:f,disabled:l,ref:d,...i})});V.displayName="DropdownButton";const H=reactExports.forwardRef(({size:t="32",onClick:n,onKeyDown:o,...i},r)=>{const{handleToggle:s,disabled:l,setTriggerRef:u}=reactExports.useContext(W),d=reactExports.useCallback(e=>{u?.(e),r&&("function"==typeof r?r(e):r.current=e);},[r,u]),p=reactExports.useCallback(e=>{e.stopPropagation(),n?.(e),e.defaultPrevented||s?.();},[n,s]),f=reactExports.useCallback(e=>{o?.(e),e.defaultPrevented||R(e)&&(e.preventDefault(),e.stopPropagation(),s?.());},[o,s]);return jsxRuntimeExports.jsx(P,{size:t,onClick:p,onKeyDown:f,disabled:l,ref:d,...i})});function z({className:t,...n}){const o=S("io-dropdown-content",t);return jsxRuntimeExports.jsx("div",{className:o,...n})}H.displayName="DropdownButtonIcon";const X=reactExports.createContext({}),Z=reactExports.forwardRef((n,o)=>{const{className:i,prepend:r,append:a,isSelected:s,onClick:l,description:u,disabled:d=!1,children:p,tooltip:f,descriptionTooltip:m,...h}=n,{variant:g="default",selected:b,checkIcon:v,handleItemClick:y}=reactExports.useContext(X),w=s??b?.some(e=>e.children===p),I="default"!==g&&!!v,C=I||r,x=S("io-list-item",C&&"io-list-item-left",a&&"io-list-item-right","default"!==g&&w&&"selected",u&&"io-list-item-description",d&&"io-list-item-disabled",i);return jsxRuntimeExports.jsxs("li",{className:x,ref:o,role:"menuitem","aria-roledescription":"menuitem",tabIndex:0,onClick:e=>{d?e.preventDefault():(y?.(e,{children:p}),l?.(e));},...h,children:[C&&jsxRuntimeExports.jsxs("div",{className:"io-list-left-column",children:[I&&jsxRuntimeExports.jsx(N,{variant:v.variant,title:w?v.tooltip:void 0,"data-testid":"list-item-check-icon"}),r]}),jsxRuntimeExports.jsx("span",{className:"io-list-text",title:f,"data-testid":"list-item-title",children:p}),a&&jsxRuntimeExports.jsx("div",{className:"io-list-right-column",children:a}),u&&jsxRuntimeExports.jsx("div",{className:"io-list-text-description",title:m,children:u})]})});Z.displayName="ListItem";const j=reactExports.forwardRef(({className:n,prepend:o,append:i,children:r,tooltip:a,...s},c)=>{const l=S("io-list-item-header",n);return jsxRuntimeExports.jsxs("div",{className:l,ref:c,...s,children:[o&&jsxRuntimeExports.jsx("div",{className:"io-list-left-column",children:o}),jsxRuntimeExports.jsx("span",{className:"io-list-text",title:a,children:r}),i&&jsxRuntimeExports.jsx("div",{className:"io-list-right-column",children:i})]})});j.displayName="ListItemHeader";const J=reactExports.forwardRef(({className:n,prepend:o,append:i,children:r,tooltip:a,...s},c)=>{const l=S("io-list-item",o&&"io-list-item-left",i&&"io-list-item-right","io-list-item-title",n);return jsxRuntimeExports.jsxs("li",{className:l,ref:c,...s,children:[o&&jsxRuntimeExports.jsx("div",{className:"io-list-left-column",children:o}),jsxRuntimeExports.jsx("span",{className:"io-list-text",title:a,"data-testid":"list-item-title",children:r}),i&&jsxRuntimeExports.jsx("div",{className:"io-list-right-column",children:i})]})});J.displayName="ListItemTitle";const Y=reactExports.forwardRef(({className:t,children:n,...o},i)=>{const r=S("io-list-item","io-list-with-sub-items",t);return jsxRuntimeExports.jsx("li",{className:r,ref:i,...o,children:n})});Y.displayName="ListItemWithSubItems";const $=reactExports.forwardRef(({className:n,prepend:o,append:i,children:r,tooltip:a,...s},c)=>{const l=S("io-list-item",o&&"io-list-item-left",i&&"io-list-item-right","io-list-item-section",n);return jsxRuntimeExports.jsxs("li",{className:l,ref:c,...s,children:[o&&jsxRuntimeExports.jsx("div",{className:"io-list-left-column",children:o}),jsxRuntimeExports.jsx("span",{className:"io-list-text",title:a,children:r}),i&&jsxRuntimeExports.jsx("div",{className:"io-list-right-column",children:i})]})});function _({className:t,...n}){const o=S("io-separator",t);return jsxRuntimeExports.jsx("hr",{className:o,...n})}$.displayName="ListItemSection";const U=t=>jsxRuntimeExports.jsx(_,{...t});U.displayName="ListItemSeparator";const Q=reactExports.forwardRef((t,n)=>{const{className:o,variant:i="default",checkIcon:r,children:s,...c}=t,[d,p]=reactExports.useState([]),f=S("io-list","default"!==i&&"io-list-selectable",o),m=reactExports.useMemo(()=>{if(r)return "object"==typeof r?r:{variant:r}},[r]),h=reactExports.useCallback((e,t)=>{if("default"===i)return;const n=d.some(e=>e.children?.toString()===t.children?.toString());"single"===i?p([t]):(()=>{const e=n?d.filter(e=>e.children!==t.children):[...d,t];p(e);})();},[d,i]),g=reactExports.useMemo(()=>({variant:i,selected:d,checkIcon:m,handleItemClick:h}),[i,d,m,h]);return jsxRuntimeExports.jsx(X.Provider,{value:g,children:jsxRuntimeExports.jsx("ul",{className:f,ref:n,...c,children:s})})});Q.displayName="List";const K=Q;K.Item=Z,K.ItemTitle=J,K.ItemSection=$,K.ItemHeader=j,K.ItemWithSubItems=Y,K.ItemSeparator=U;const q=reactExports.forwardRef((t,n)=>jsxRuntimeExports.jsx(K,{...t,ref:n}));q.displayName="DropdownList";const ee=reactExports.forwardRef((t,n)=>{const{handleClose:o}=reactExports.useContext(W),{onClick:i,onKeyDown:r,...s}=t,l=reactExports.useRef(null),u=reactExports.useCallback(e=>{l.current=e,"function"==typeof n?n(e):n&&(n.current=e);},[n]);return jsxRuntimeExports.jsx(Z,{...s,ref:u,onClick:e=>{i?.(e),o?.();},onKeyDown:e=>{if(r?.(e),e.defaultPrevented||!R(e))return;e.preventDefault(),e.stopPropagation();const t=("function"==typeof n?null:n?.current)||l.current;t?.click();}})});ee.displayName="DropdownItem";const te=reactExports.forwardRef((t,n)=>jsxRuntimeExports.jsx(J,{...t,ref:n}));te.displayName="DropdownItemTitle";const ne=reactExports.forwardRef((t,n)=>jsxRuntimeExports.jsx($,{...t,ref:n}));ne.displayName="DropdownItemSection";const oe=reactExports.forwardRef((t,n)=>jsxRuntimeExports.jsx(_,{...t}));oe.displayName="DropdownSeparator";function ie(e,t,n){const o=reactExports.useCallback(n=>{const o=t.some(e=>n.key===e);o&&(n.preventDefault(),e());},[e,t]);reactExports.useEffect(()=>{const e=n?.current||document;return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o);}},[o,n]);}const re=reactExports.forwardRef(({className:t,variant:n="outline",align:o="down",disabled:i,isOpen:r,onOpenChange:s,children:c,...m},h)=>{const g=reactExports.useRef(null),b=reactExports.useRef(null);reactExports.useImperativeHandle(h,()=>b.current,[]);const{isOpen:v,handleOpen:y,handleClose:w}=((e,t)=>{const[n,o]=reactExports.useState(!1),i=void 0!==e,r=i?e:n,s=reactExports.useCallback(e=>{i||o(e),t?.(e);},[i,t]),c=reactExports.useCallback(()=>s(!0),[s]),u=reactExports.useCallback(()=>s(!1),[s]);return {isOpen:r,setOpen:s,handleOpen:c,handleClose:u}})(r,s);((e,t,n=!0)=>{reactExports.useEffect(()=>{if(!n)return;const o=n=>{const o=n.target;o&&e.current&&!e.current.contains(o)&&(n.composedPath&&n.composedPath().some(t=>t===e.current||e.current&&t.nodeType===Node.ELEMENT_NODE&&e.current.contains(t))||t());},i=requestAnimationFrame(()=>{document.addEventListener("mousedown",o,!0);});return ()=>{cancelAnimationFrame(i),document.removeEventListener("mousedown",o,!0);}},[e,t,n]);})(b,w,v),ie(()=>{v&&w();},["Escape"],b),ie(()=>{v||i||g.current!==document.activeElement||y();},["ArrowDown","ArrowUp"],b);const I=reactExports.useMemo(()=>({variant:n,align:o,disabled:i,isOpen:v,handleOpen:y,handleClose:w,handleToggle:v?w:y,setTriggerRef:e=>g.current=e}),[n,o,i,v,y,w]),C=S("io-dropdown",v&&"io-dropdown-open","default"!==n&&`io-dropdown-${n}`,t);return jsxRuntimeExports.jsx(W.Provider,{value:I,children:jsxRuntimeExports.jsx("div",{className:C,ref:b,...m,children:c})})});function ae({className:t,variant:n="default",align:o="left",children:i,...r}){const a=S("io-btn-group","default"!==n&&`io-btn-group-${n}`,"right"===o&&"io-btn-group-right",t);return jsxRuntimeExports.jsx("div",{className:a,"data-testid":"button-group",...r,children:i})}function se({className:t,draggable:n=!1,children:o,...i}){const r=S("io-header",n&&["draggable"],t);return jsxRuntimeExports.jsx("header",{className:r,...i,children:o})}function ce({className:t,children:n,...o}){const i=S("io-dialog-header",t);return jsxRuntimeExports.jsx(se,{"data-testid":"io-dialog-header",className:i,...o,children:n})}function le({className:t,children:n,...o}){const i=S("io-dialog-body",t);return jsxRuntimeExports.jsx("div",{"data-testid":"io-dialog-body",className:i,...o,children:n})}function ue({className:t,children:n,...o}){const i=S("io-footer",t);return jsxRuntimeExports.jsx("footer",{className:i,...o,children:n})}function de({className:t,...n}){const o=S("io-dialog-footer",t);return jsxRuntimeExports.jsx(ue,{"data-testid":"io-dialog-footer",className:o,...n})}function pe({className:n,variant:o="default",title:i="Dialog Title",isOpen:r=!1,draggable:a=!1,closeFn:s,children:c,...l}){const u=reactExports.useRef(null),p=S("io-dialog","centered"===o&&"io-dialog-center",n);return reactExports.useLayoutEffect(()=>{const e=u?.current;e&&(r?e.showModal():"function"==typeof e.close&&e.close());},[r]),jsxRuntimeExports.jsxs("dialog",{"data-testid":"io-dialog",className:p,ref:u,"data-modal":!0,onClose:()=>{r&&s&&s();},onClick:e=>{r&&s&&"DIALOG"===e.target.nodeName&&s();},onKeyDown:e=>{const t=e.target instanceof HTMLDialogElement&&"DIALOG"===e.target.nodeName;r&&s&&" "===e.key&&t&&s();},...l,children:[jsxRuntimeExports.jsxs(ce,{draggable:a,children:[jsxRuntimeExports.jsx("h3",{"data-testid":"io-dialog-title",children:i}),jsxRuntimeExports.jsx(ae,{children:jsxRuntimeExports.jsx(P,{className:"non-draggable","data-testid":"io-dialog-close-button",size:"24",icon:"close",iconSize:"12",onClick:s,tabIndex:-1})})]}),c]})}function fe(){return "undefined"!=typeof window}function me(e){return be(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return (null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ge(e){var t;return null==(t=(be(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function be(e){return !!fe()&&(e instanceof Node||e instanceof he(e).Node)}function ve(e){return !!fe()&&(e instanceof Element||e instanceof he(e).Element)}function ye(e){return !!fe()&&(e instanceof HTMLElement||e instanceof he(e).HTMLElement)}function we(e){return !(!fe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof he(e).ShadowRoot)}re.Button=V,re.ButtonIcon=H,re.Content=z,re.List=q,re.Item=ee,re.ItemTitle=te,re.ItemSection=ne,re.Separator=oe,ae.Button=D,ae.ButtonIcon=P,ae.Dropdown=re,se.Title=O,se.ButtonGroup=ae,se.Button=D,se.ButtonIcon=P,se.Dropdown=re,ce.Title=O,ce.ButtonGroup=ae,ce.Button=D,ce.ButtonIcon=P,ce.Dropdown=re,le.Content=function({className:t,children:n,...o}){const i=S("io-dialog-content",t);return jsxRuntimeExports.jsx("div",{className:i,...o,children:n})},ue.ButtonGroup=ae,ue.Button=D,ue.ButtonIcon=P,ue.Dropdown=re,de.ButtonGroup=ae,de.Button=D,de.ButtonIcon=P,de.Dropdown=re,pe.Header=ce,pe.Body=le,pe.Footer=de;const Ie=new Set(["inline","contents"]);function Ce(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=Re(e);return /auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Ie.has(i)}const xe=new Set(["table","td","th"]);function Ae(e){return xe.has(me(e))}const ke=[":popover-open",":modal"];function Se(e){return ke.some(t=>{try{return e.matches(t)}catch(e){return !1}})}const Ne=["transform","translate","scale","rotate","perspective"],Pe=["transform","translate","scale","rotate","perspective","filter"],Ee=["paint","layout","strict","content"];function Le(e){const t=Be(),n=ve(e)?Re(e):e;return Ne.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Pe.some(e=>(n.willChange||"").includes(e))||Ee.some(e=>(n.contain||"").includes(e))}function Be(){return !("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Oe=new Set(["html","body","#document"]);function Te(e){return Oe.has(me(e))}function Re(e){return he(e).getComputedStyle(e)}function Ge(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fe(e){if("html"===me(e))return e;const t=e.assignedSlot||e.parentNode||we(e)&&e.host||ge(e);return we(t)?t.host:t}function Me(e){const t=Fe(e);return Te(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&Ce(t)?t:Me(t)}function De(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Me(e),r=i===(null==(o=e.ownerDocument)?void 0:o.body),a=he(i);if(r){const e=We(a);return t.concat(a,a.visualViewport||[],Ce(i)?i:[],e&&n?De(e):[])}return t.concat(i,De(i,[],n))}function We(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ve(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement;}return t}function He(e,t){if(!e||!t)return !1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return !0;if(n&&we(n)){let n=t;for(;n;){if(e===n)return !0;n=n.parentNode||n.host;}}return !1}function ze(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Xe(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function Ze(e){return !(0!==e.mozInputSource||!e.isTrusted)||(Ye()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function je(e){return !Xe().includes("jsdom/")&&(!Ye()&&0===e.width&&0===e.height||Ye()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Je(){return /apple/i.test(navigator.vendor)}function Ye(){const e=/android/i;return e.test(ze())||e.test(Xe())}function $e(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function _e(e){return (null==e?void 0:e.ownerDocument)||document}function Ue(e,t){if(null==t)return !1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Qe(e){return "composedPath"in e?e.composedPath()[0]:e.target}function Ke(e){return ye(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function qe(e){e.preventDefault(),e.stopPropagation();}function et(e){return !!e&&("combobox"===e.getAttribute("role")&&Ke(e))}const tt=Math.min,nt=Math.max,ot=Math.round,it=Math.floor,rt=e=>({x:e,y:e}),at={left:"right",right:"left",bottom:"top",top:"bottom"},st={start:"end",end:"start"};function ct(e,t,n){return nt(e,tt(t,n))}function lt(e,t){return "function"==typeof e?e(t):e}function ut(e){return e.split("-")[0]}function dt(e){return e.split("-")[1]}function pt(e){return "x"===e?"y":"x"}function ft(e){return "y"===e?"height":"width"}const mt=new Set(["top","bottom"]);function ht(e){return mt.has(ut(e))?"y":"x"}function gt(e){return pt(ht(e))}function bt(e){return e.replace(/start|end/g,e=>st[e])}const vt=["left","right"],yt=["right","left"],wt=["top","bottom"],It=["bottom","top"];function Ct(e,t,n,o){const i=dt(e);let r=function(e,t,n){switch(e){case"top":case"bottom":return n?t?yt:vt:t?vt:yt;case"left":case"right":return t?wt:It;default:return []}}(ut(e),"start"===n,o);return i&&(r=r.map(e=>e+"-"+i),t&&(r=r.concat(r.map(bt)))),r}function xt(e){return e.replace(/left|right|bottom|top/g,e=>at[e])}function At(e){const{x:t,y:n,width:o,height:i}=e;return {width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}
1548
1548
  /*!
1549
1549
  * tabbable 6.4.0
1550
1550
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1551
- */var Nt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Et="undefined"==typeof Element,Pt=Et?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,It=!Et&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},At=function(e,t){var n;void 0===t&&(t=!0);var o=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return ""===o||"true"===o||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):At(e.parentNode))},Ot=function(e,t,n){for(var o=[],i=Array.from(e);i.length;){var r=i.shift();if(!At(r,!1))if("SLOT"===r.tagName){var a=r.assignedElements(),s=a.length?a:r.children,c=Ot(s,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:r,candidates:c});}else {Pt.call(r,Nt)&&n.filter(r)&&(t||!e.includes(r))&&o.push(r);var l=r.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(r),u=!At(l,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(r));if(l&&u){var d=Ot(!0===l?r.children:l.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:r,candidates:d});}else i.unshift.apply(i,r.children);}}return o},Lt=function(e){return !isNaN(parseInt(e.getAttribute("tabindex"),10))},Tt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return ""===n||"true"===n}(e))&&!Lt(e)?0:e.tabIndex},Dt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Bt=function(e){return "INPUT"===e.tagName},Rt=function(e){return function(e){return Bt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return !0;var t,n=e.form||It(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name);}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return !i||i===e}(e)},Ft=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},Mt=function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return !e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return !0;var i=Pt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Pt.call(i,"details:not([open]) *"))return !0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ft(e)}else {if("function"==typeof o){for(var r=e;e;){var a=e.parentElement,s=It(e);if(a&&!a.shadowRoot&&!0===o(a))return Ft(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host;}e=r;}if(function(e){var t,n,o,i,r=e&&It(e),a=null===(t=r)||void 0===t?void 0:t.host,s=!1;if(r&&r!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!s&&a;){var c,l,u;s=!(null===(l=a=null===(c=r=It(a))||void 0===c?void 0:c.host)||void 0===l||null===(u=l.ownerDocument)||void 0===u||!u.contains(a));}return s}(e))return !e.getClientRects().length;if("legacy-full"!==n)return !0}return !1},$t=function(e,t){return !(t.disabled||function(e){return Bt(e)&&"hidden"===e.type}(t)||Mt(t,e)||function(e){return "DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return "SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return !!Pt.call(t,"fieldset[disabled] *")||!o.contains(e)}return !0}t=t.parentElement;}return !1}(t))},_t=function(e,t){return !(Rt(t)||Tt(t)<0||!$t(e,t))},zt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return !!(isNaN(t)||t>=0)},jt=function(e){var t=[],n=[];return e.forEach(function(e,o){var i=!!e.scopeParent,r=i?e.scopeParent:e,a=function(e,t){var n=Tt(e);return n<0&&t&&!Lt(e)?0:n}(r,i),s=i?jt(e.candidates):r;0===a?i?t.push.apply(t,s):t.push(r):n.push({documentOrder:o,tabIndex:a,item:e,isScope:i,content:s});}),n.sort(Dt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Ht=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Ot([e],t.includeContainer,{filter:_t.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:zt}):function(e,t,n){if(At(e))return [];var o=Array.prototype.slice.apply(e.querySelectorAll(Nt));return t&&Pt.call(e,Nt)&&o.unshift(e),o.filter(n)}(e,t.includeContainer,_t.bind(null,t)),jt(n)};function Wt(e,t,n){let{reference:o,floating:i}=e;const r=ht(t),a=gt(t),s=pt(a),c=ut(t),l="y"===r,u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2;let p;switch(c){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-i.width,y:d};break;default:p={x:o.x,y:o.y};}switch(dt(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1);}return p}async function Vt(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:r,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lt(t,e),m=function(e){return "number"!=typeof e?function(e){return {top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),h=s[f?"floating"===d?"reference":"floating":d],g=St(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(h)))||n?h:h.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===d?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),w=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},b=St(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:c}):y);return {top:(g.top-b.top+m.top)/w.y,bottom:(b.bottom-g.bottom+m.bottom)/w.y,left:(g.left-b.left+m.left)/w.x,right:(b.right-g.right+m.right)/w.x}}const Kt=new Set(["left","top"]);function Ut(e){const t=Be(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=we(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,s=ot(n)!==r||ot(o)!==a;return s&&(n=r,o=a),{width:n,height:o,$:s}}function Gt(e){return ve(e)?e:e.contextElement}function qt(e){const t=Gt(e);if(!we(t))return rt(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Ut(t);let a=(r?ot(n.width):n.width)/o,s=(r?ot(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Jt=rt(0);function Yt(e){const t=he(e);return Le()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Jt}function Xt(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),r=Gt(e);let a=rt(1);t&&(o?ve(o)&&(a=qt(o)):a=qt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==he(e))&&t}(r,n,o)?Yt(r):rt(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(r){const e=he(r),t=o&&ve(o)?he(o):o;let n=e,i=_e(n);for(;i&&o&&t!==n;){const e=qt(i),t=i.getBoundingClientRect(),o=Be(i),r=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=r,l+=a,n=he(i),i=_e(n);}}return St({width:u,height:d,x:c,y:l})}function Qt(e,t){const n=Re(e).scrollLeft;return t?t.left+n:Xt(ge(e)).left+n}function Zt(e,t){const n=e.getBoundingClientRect();return {x:n.left+t.scrollLeft-Qt(e,n),y:n.top+t.scrollTop}}const en=new Set(["absolute","fixed"]);function tn(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=he(e),o=ge(e),i=n.visualViewport;let r=o.clientWidth,a=o.clientHeight,s=0,c=0;if(i){r=i.width,a=i.height;const e=Le();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop);}const l=Qt(o);if(l<=0){const e=o.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(o.clientWidth-t.clientWidth-i);a<=25&&(r-=a);}else l<=25&&(r+=l);return {width:r,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ge(e),n=Re(e),o=e.ownerDocument.body,i=nt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=nt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Qt(e);const s=-n.scrollTop;return "rtl"===Be(o).direction&&(a+=nt(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:a,y:s}}(ge(e));else if(ve(t))o=function(e,t){const n=Xt(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=we(e)?qt(e):rt(1);return {width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:i*r.x,y:o*r.y}}(t,n);else {const n=Yt(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height};}return St(o)}function nn(e,t){const n=Fe(e);return !(n===t||!ve(n)||De(n))&&("fixed"===Be(n).position||nn(n,t))}function on(e,t,n){const o=we(t),i=ge(t),r="fixed"===n,a=Xt(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const c=rt(0);function l(){c.x=Qt(i);}if(o||!o&&!r)if(("body"!==me(t)||xe(i))&&(s=Re(t)),o){const e=Xt(t,!0,r,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop;}else i&&l();r&&!o&&i&&l();const u=!i||o||r?rt(0):Zt(i,s);return {x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function rn(e){return "static"===Be(e).position}function an(e,t){if(!we(e)||"fixed"===Be(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ge(e)===n&&(n=n.ownerDocument.body),n}function sn(e,t){const n=he(e);if(Ee(e))return n;if(!we(e)){let t=Fe(e);for(;t&&!De(t);){if(ve(t)&&!rn(t))return t;t=Fe(t);}return n}let o=an(e,t);for(;o&&Se(o)&&rn(o);)o=an(o,t);return o&&De(o)&&rn(o)&&!Oe(o)?n:o||function(e){let t=Fe(e);for(;we(t)&&!De(t);){if(Oe(t))return t;if(Ee(t))return null;t=Fe(t);}return null}(e)||n}const cn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r="fixed"===i,a=ge(o),s=!!t&&Ee(t.floating);if(o===a||s&&r)return n;let c={scrollLeft:0,scrollTop:0},l=rt(1);const u=rt(0),d=we(o);if((d||!d&&!r)&&(("body"!==me(o)||xe(a))&&(c=Re(o)),we(o))){const e=Xt(o);l=qt(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop;}const f=!a||d||r?rt(0):Zt(a,c);return {width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}},getDocumentElement:ge,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const r=[..."clippingAncestors"===n?Ee(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=$e(e,[],!1).filter(e=>ve(e)&&"body"!==me(e)),i=null;const r="fixed"===Be(e).position;let a=r?Fe(e):e;for(;ve(a)&&!De(a);){const t=Be(a),n=Oe(a);n||"fixed"!==t.position||(i=null),(r?!n&&!i:!n&&"static"===t.position&&i&&en.has(i.position)||xe(a)&&!n&&nn(e,a))?o=o.filter(e=>e!==a):i=t,a=Fe(a);}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=r[0],s=r.reduce((e,n)=>{const o=tn(t,n,i);return e.top=nt(o.top,e.top),e.right=tt(o.right,e.right),e.bottom=tt(o.bottom,e.bottom),e.left=nt(o.left,e.left),e},tn(t,a,i));return {width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:sn,getElementRects:async function(e){const t=this.getOffsetParent||sn,n=this.getDimensions,o=await n(e.floating);return {reference:on(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ut(e);return {width:t,height:n}},getScale:qt,isElement:ve,isRTL:function(e){return "rtl"===Be(e).direction}};function ln(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function un(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=Gt(e),u=i||r?[...l?$e(l):[],...$e(t)]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n);});const d=l&&s?function(e,t){let n,o=null;const i=ge(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null;}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),r();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;const m={rootMargin:-it(d)+"px "+-it(i.clientWidth-(u+f))+"px "+-it(i.clientHeight-(d+p))+"px "+-it(u)+"px",threshold:nt(0,tt(1,c))||1};let h=!0;function g(t){const o=t[0].intersectionRatio;if(o!==c){if(!h)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7);},1e3);}1!==o||ln(l,e.getBoundingClientRect())||a(),h=!1;}try{o=new IntersectionObserver(g,{...m,root:i.ownerDocument});}catch(e){o=new IntersectionObserver(g,m);}o.observe(e);}(!0),r}(l,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[o]=e;o&&o.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t);})),n();}),l&&!c&&m.observe(l),m.observe(t));let h=c?Xt(e):null;return c&&function t(){const o=Xt(e);h&&!ln(h,o)&&n();h=o,f=requestAnimationFrame(t);}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n);}),null==d||d(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(f);}}const dn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:i}=e,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),a=ut(n),s=dt(n),c="y"===ht(n),l=Kt.has(a)?-1:1,u=r&&c?-1:1,d=lt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:a}}}}},fn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:r}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return {x:t,y:n}}},...l}=lt(e,t),u={x:n,y:o},d=await r.detectOverflow(t,l),f=ht(ut(i)),p=ft(f);let m=u[p],h=u[f];if(a){const e="y"===p?"bottom":"right";m=ct(m+d["y"===p?"top":"left"],m,m-d[e]);}if(s){const e="y"===f?"bottom":"right";h=ct(h+d["y"===f?"top":"left"],h,h-d[e]);}const g=c.fn({...t,[p]:m,[f]:h});return {...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:a,[f]:s}}}}}},pn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=lt(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return {};const y=ut(i),v=ht(s),w=ut(s)===s,b=await(null==c.isRTL?void 0:c.isRTL(l.floating)),k=f||(w||!h?[Ct(s)]:function(e){const t=Ct(e);return [yt(e),t,yt(t)]}(s)),x="none"!==m;!f&&x&&k.push(...xt(s,h,m,b));const C=[s,...k],S=await c.detectOverflow(t,g),N=[];let E=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&N.push(S[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=dt(e),i=gt(e),r=pt(i);let a="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(a=Ct(a)),[a,Ct(a)]}(i,a,b);N.push(S[e[0]],S[e[1]]);}if(E=[...E,{placement:i,overflows:N}],!N.every(e=>e<=0)){var P,I;const e=((null==(P=r.flip)?void 0:P.index)||0)+1,t=C[e];if(t){if(!("alignment"===d&&v!==ht(t))||E.every(e=>ht(e.placement)!==v||e.overflows[0]>0))return {data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(I=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=E.filter(e=>{if(x){const t=ht(e.placement);return t===v||"y"===t}return !0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s;}if(i!==n)return {reset:{placement:n}}}return {}}}},mn=(e,t,n)=>{const o=new Map,i={platform:cn,...n},r={...i.platform,_c:o};return (async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Wt(l,o,c),f=o,p={},m=0;for(let n=0;n<s.length;n++){var h;const{name:r,fn:g}=s[n],{x:y,y:v,data:w,reset:b}=await g({x:u,y:d,initialPlacement:o,placement:f,strategy:i,middlewareData:p,rects:l,platform:{...a,detectOverflow:null!=(h=a.detectOverflow)?h:Vt},elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=v?v:d,p={...p,[r]:{...p[r],...w}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:u,y:d}=Wt(l,f,c))),n=-1);}return {x:u,y:d,placement:f,strategy:i,middlewareData:p}})(e,t,{...i,platform:r})};var hn="undefined"!=typeof document?reactExports.useLayoutEffect:function(){};function gn(e,t){if(e===t)return !0;if(typeof e!=typeof t)return !1;if("function"==typeof e&&e.toString()===t.toString())return !0;let n,o,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return !1;for(o=n;0!==o--;)if(!gn(e[o],t[o]))return !1;return !0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return !1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(t,i[o]))return !1;for(o=n;0!==o--;){const n=i[o];if(("_owner"!==n||!e.$$typeof)&&!gn(e[n],t[n]))return !1}return !0}return e!=e&&t!=t}function yn(e){if("undefined"==typeof window)return 1;return (e.ownerDocument.defaultView||window).devicePixelRatio||1}function vn(e,t){const n=yn(e);return Math.round(t*n)/n}function wn(e){const t=reactExports.useRef(e);return hn(()=>{t.current=e;}),t}const bn=(e,t)=>({...fn(e),options:[e,t]}),kn=(e,t)=>({...pn(e),options:[e,t]});function xn(e){return reactExports.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t);});},e)}const Cn={...o},Sn=Cn.useInsertionEffect||(e=>e());function Nn(e){const t=reactExports.useRef(()=>{});return Sn(()=>{t.current=e;}),reactExports.useCallback(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)},[])}const En="ArrowUp",Pn="ArrowDown",In="ArrowLeft",An="ArrowRight";function On(e,t,n){return Math.floor(e/t)!==n}function Ln(e,t){return t<0||t>=e.current.length}function Tn(e,t){return Bn(e,{disabledIndices:t})}function Dn(e,t){return Bn(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Bn(e,t){let{startingIndex:n=-1,decrement:o=!1,disabledIndices:i,amount:r=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=o?-r:r;}while(s>=0&&s<=a.length-1&&Mn(a,s,i));return s}function Rn(e,t,n,o,i){if(-1===e)return -1;const r=n.indexOf(e),a=t[e];switch(i){case"tl":return r;case"tr":return a?r+a.width-1:r;case"bl":return a?r+(a.height-1)*o:r;case"br":return n.lastIndexOf(e)}}function Fn(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Mn(e,t,n){if(n)return n.includes(t);const o=e[t];return null==o||o.hasAttribute("disabled")||"true"===o.getAttribute("aria-disabled")}var $n="undefined"!=typeof document?reactExports.useLayoutEffect:reactExports.useEffect;function _n(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const zn=reactExports.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function jn(e){const{children:t,elementsRef:n,labelsRef:i}=e,[r,a]=reactExports.useState(()=>new Map),s=reactExports.useCallback(e=>{a(t=>new Map(t).set(e,null));},[]),c=reactExports.useCallback(e=>{a(t=>{const n=new Map(t);return n.delete(e),n});},[]);return $n(()=>{const e=new Map(r);Array.from(e.keys()).sort(_n).forEach((t,n)=>{e.set(t,n);}),function(e,t){if(e.size!==t.size)return !1;for(const[n,o]of e.entries())if(o!==t.get(n))return !1;return !0}(r,e)||a(e);},[r]),reactExports.createElement(zn.Provider,{value:reactExports.useMemo(()=>({register:s,unregister:c,map:r,elementsRef:n,labelsRef:i}),[s,c,r,n,i])},t)}function Hn(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:i,map:r,elementsRef:a,labelsRef:s}=reactExports.useContext(zn),[c,l]=reactExports.useState(null),u=reactExports.useRef(null),d=reactExports.useCallback(e=>{if(u.current=e,null!==c&&(a.current[c]=e,s)){var n;const o=void 0!==t;s.current[c]=o?t:null!=(n=null==e?void 0:e.textContent)?n:null;}},[c,a,s,t]);return $n(()=>{const e=u.current;if(e)return n(e),()=>{i(e);}},[n,i]),$n(()=>{const e=u.current?r.get(u.current):null;null!=e&&l(e);},[r]),reactExports.useMemo(()=>({ref:d,index:null==c?-1:c}),[c,d])}function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);}return e},Wn.apply(this,arguments)}let Vn=!1,Kn=0;const Un=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Kn++;const Gn=Cn.useId||function(){const[e,t]=reactExports.useState(()=>Vn?Un():void 0);return $n(()=>{null==e&&t(Un());},[]),reactExports.useEffect(()=>{Vn=!0;},[]),e};function Yn(){const e=new Map;return {emit(t,n){var o;null==(o=e.get(t))||o.forEach(e=>e(n));},on(t,n){e.set(t,[...e.get(t)||[],n]);},off(t,n){var o;e.set(t,(null==(o=e.get(t))?void 0:o.filter(e=>e!==n))||[]);}}}const Xn=reactExports.createContext(null),Qn=reactExports.createContext(null),Zn=()=>{var e;return (null==(e=reactExports.useContext(Xn))?void 0:e.id)||null},eo=()=>reactExports.useContext(Qn);function to(e){const{children:t,id:n}=e,i=Zn();return reactExports.createElement(Xn.Provider,{value:reactExports.useMemo(()=>({id:n,parentId:i}),[n,i])},t)}function no(e){const{children:t}=e,n=reactExports.useRef([]),i=reactExports.useCallback(e=>{n.current=[...n.current,e];},[]),r=reactExports.useCallback(e=>{n.current=n.current.filter(t=>t!==e);},[]),a=reactExports.useState(()=>Yn())[0];return reactExports.createElement(Qn.Provider,{value:reactExports.useMemo(()=>({nodesRef:n,addNode:i,removeNode:r,events:a}),[i,r,a])},t)}function oo(e){return "data-floating-ui-"+e}function io(e){const t=reactExports.useRef(e);return $n(()=>{t.current=e;}),t}const ro=oo("safe-polygon");function ao(e,t,n){return n&&!qe(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let so=0;function co(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:o=!0,sync:i=!1}=t;o&&cancelAnimationFrame(so);const r=()=>null==e?void 0:e.focus({preventScroll:n});i?r():so=requestAnimationFrame(r);}function lo(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),o=n;for(;o.length;)o=e.filter(e=>{var t;return null==(t=o)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(o);return n}let uo=new WeakMap,fo=new WeakSet,po={},mo=0;const ho=e=>e&&(e.host||ho(e.parentNode));function go(e,t,n,o){const i="data-floating-ui-inert",r=o?"inert":n?"aria-hidden":null,a=((e,t)=>t.map(t=>{if(e.contains(t))return t;const n=ho(t);return e.contains(n)?n:null}).filter(e=>null!=e))(t,e),s=new Set,c=new Set(a),l=[];po[i]||(po[i]=new WeakMap);const u=po[i];return a.forEach(function e(t){if(!t||s.has(t))return;s.add(t),t.parentNode&&e(t.parentNode);}),function e(t){if(!t||c.has(t))return;[].forEach.call(t.children,t=>{if("script"!==me(t))if(s.has(t))e(t);else {const e=r?t.getAttribute(r):null,n=null!==e&&"false"!==e,o=(uo.get(t)||0)+1,a=(u.get(t)||0)+1;uo.set(t,o),u.set(t,a),l.push(t),1===o&&n&&fo.add(t),1===a&&t.setAttribute(i,""),!n&&r&&t.setAttribute(r,"true");}});}(t),s.clear(),mo++,()=>{l.forEach(e=>{const t=(uo.get(e)||0)-1,n=(u.get(e)||0)-1;uo.set(e,t),u.set(e,n),t||(!fo.has(e)&&r&&e.removeAttribute(r),fo.delete(e)),n||e.removeAttribute(i);}),mo--,mo||(uo=new WeakMap,uo=new WeakMap,fo=new WeakSet,po={});}}function yo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=Je(e[0]).body;return go(e.concat(Array.from(o.querySelectorAll("[aria-live]"))),o,t,n)}const vo=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function wo(e,t){const n=Ht(e,vo());"prev"===t&&n.reverse();const o=n.indexOf(ze(Je(e)));return n.slice(o+1)[0]}function bo(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return !o||!je(n,o)}const ko={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function xo(e){"Tab"===e.key&&(e.target,clearTimeout(void 0));}const Co=reactExports.forwardRef(function(e,t){const[n,i]=reactExports.useState();$n(()=>(Ue()&&i("button"),document.addEventListener("keydown",xo),()=>{document.removeEventListener("keydown",xo);}),[]);const r={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[oo("focus-guard")]:"",style:ko};return reactExports.createElement("span",Wn({},e,r))}),So=reactExports.createContext(null),No="data-floating-ui-focusable";function Eo(e){return e?e.hasAttribute(No)?e:e.querySelector("["+No+"]")||e:null}let Po=[];function Io(e){Po=Po.filter(e=>e.isConnected);let t=e;if(t&&"body"!==me(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return !1!==Pt.call(e,Nt)&&_t(t,e)}(t,vo())){const e=Ht(t,vo())[0];e&&(t=e);}Po.push(t),Po.length>20&&(Po=Po.slice(-20));}}function Ao(){return Po.slice().reverse().find(e=>e.isConnected)}const Oo=reactExports.forwardRef(function(e,t){return reactExports.createElement("button",Wn({},e,{type:"button",ref:t,tabIndex:-1,style:ko}))});function Lo(e){const{context:t,children:n,disabled:i=!1,order:r=["content"],guards:a=!0,initialFocus:s=0,returnFocus:c=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:p,refs:m,nodeId:h,onOpenChange:g,events:y,dataRef:v,floatingId:w,elements:{domReference:b,floating:k}}=t,x="number"==typeof s&&s<0,C=et(b)&&x,S="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||a,N=io(r),E=io(s),P=io(c),I=eo(),A=reactExports.useContext(So),O=reactExports.useRef(null),L=reactExports.useRef(null),T=reactExports.useRef(!1),D=reactExports.useRef(!1),B=reactExports.useRef(-1),R=null!=A,F=Eo(k),M=Nn(function(e){return void 0===e&&(e=F),e?Ht(e,vo()):[]}),$=Nn(e=>{const t=M(e);return N.current.map(e=>b&&"reference"===e?b:F&&"floating"===e?F:t).filter(Boolean).flat()});function _(e){return !i&&d&&u?reactExports.createElement(Oo,{ref:"start"===e?O:L,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}reactExports.useEffect(()=>{if(i)return;if(!u)return;function e(e){if("Tab"===e.key){je(F,ze(Je(F)))&&0===M().length&&!C&&Ze(e);const t=$(),n=Xe(e);"reference"===N.current[0]&&n===b&&(Ze(e),e.shiftKey?co(t[t.length-1]):co(t[1])),"floating"===N.current[1]&&n===F&&e.shiftKey&&(Ze(e),co(t[0]));}}const t=Je(F);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e);}},[i,b,F,u,N,C,M,$]),reactExports.useEffect(()=>{if(!i&&k)return k.addEventListener("focusin",e),()=>{k.removeEventListener("focusin",e);};function e(e){const t=Xe(e),n=M().indexOf(t);-1!==n&&(B.current=n);}},[i,k,M]),reactExports.useEffect(()=>{if(!i&&f)return k&&we(b)?(b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),k.addEventListener("focusout",t),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),k.removeEventListener("focusout",t);}):void 0;function e(){D.current=!0,setTimeout(()=>{D.current=!1;});}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(je(b,t)||je(k,t)||je(t,k)||je(null==A?void 0:A.portalNode,t)||null!=t&&t.hasAttribute(oo("focus-guard"))||I&&(lo(I.nodesRef.current,h).find(e=>{var n,o;return je(null==(n=e.context)?void 0:n.elements.floating,t)||je(null==(o=e.context)?void 0:o.elements.domReference,t)})||function(e,t){var n;let o=[],i=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;i;){const t=e.find(e=>e.id===i);i=null==t?void 0:t.parentId,t&&(o=o.concat(t));}return o}(I.nodesRef.current,h).find(e=>{var n,o;return (null==(n=e.context)?void 0:n.elements.floating)===t||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(l&&n&&ze(Je(F))===Je(F).body){we(F)&&F.focus();const e=B.current,t=M(),n=t[e]||t[t.length-1]||F;we(n)&&n.focus();}!C&&u||!t||!n||D.current||t===Ao()||(T.current=!0,g(!1,e,"focus-out"));});}},[i,b,k,F,u,h,I,A,g,f,l,M,C]),reactExports.useEffect(()=>{var e;if(i)return;const t=Array.from((null==A||null==(e=A.portalNode)?void 0:e.querySelectorAll("["+oo("portal")+"]"))||[]);if(k){const e=[k,...t,O.current,L.current,N.current.includes("reference")||C?b:null].filter(e=>null!=e),n=u||C?yo(e,S,!S):yo(e);return ()=>{n();}}},[i,b,k,u,N,A,C,S]),$n(()=>{if(i||!we(F))return;const e=ze(Je(F));queueMicrotask(()=>{const t=$(F),n=E.current,o=("number"==typeof n?t[n]:n.current)||F,i=je(F,e);x||i||!p||co(o,{preventScroll:o===F});});},[i,p,F,x,$,E]),$n(()=>{if(i||!F)return;let e=!1;const t=Je(F),n=ze(t);let o=v.current.openEvent;function r(t){let{open:n,reason:i,event:r,nested:a}=t;n&&(o=r),"escape-key"===i&&m.domReference.current&&Io(m.domReference.current),"hover"===i&&"mouseleave"===r.type&&(T.current=!0),"outside-press"===i&&(a?(T.current=!1,e=!0):T.current=!(Ve(r)||Ke(r)));}Io(n),y.on("openchange",r);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,ko),R&&b&&b.insertAdjacentElement("afterend",a),()=>{y.off("openchange",r);const n=ze(t),i=je(k,n)||I&&lo(I.nodesRef.current,h).some(e=>{var t;return je(null==(t=e.context)?void 0:t.elements.floating,n)});(i||o&&["click","mousedown"].includes(o.type))&&m.domReference.current&&Io(m.domReference.current);const s="boolean"==typeof P.current?Ao()||a:P.current.current||a;queueMicrotask(()=>{P.current&&!T.current&&we(s)&&(s===n||n===t.body||i)&&s.focus({preventScroll:e}),a.remove();});}},[i,k,F,P,v,m,y,I,h,R,b]),reactExports.useEffect(()=>{queueMicrotask(()=>{T.current=!1;});},[i]),$n(()=>{if(!i&&A)return A.setFocusManagerState({modal:u,closeOnFocusOut:f,open:p,onOpenChange:g,refs:m}),()=>{A.setFocusManagerState(null);}},[i,A,u,p,g,m,f]),$n(()=>{if(i)return;if(!F)return;if("function"!=typeof MutationObserver)return;if(x)return;const e=()=>{const e=F.getAttribute("tabindex"),t=M(),n=ze(Je(k)),o=t.indexOf(n);-1!==o&&(B.current=o),N.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&F.setAttribute("tabindex","0"):"-1"!==e&&F.setAttribute("tabindex","-1");};e();const t=new MutationObserver(e);return t.observe(F,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect();}},[i,k,F,m,N,M,x]);const z=!i&&S&&(!u||!C)&&(R||u);return reactExports.createElement(reactExports.Fragment,null,z&&reactExports.createElement(Co,{"data-type":"inside",ref:null==A?void 0:A.beforeInsideRef,onFocus:e=>{if(u){const e=$();co("reference"===r[0]?e[0]:e[e.length-1]);}else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(T.current=!1,bo(e,A.portalNode)){const e=wo(document.body,"next")||b;null==e||e.focus();}else {var t;null==(t=A.beforeOutsideRef.current)||t.focus();}}}),!C&&_("start"),n,_("end"),z&&reactExports.createElement(Co,{"data-type":"inside",ref:null==A?void 0:A.afterInsideRef,onFocus:e=>{if(u)co($()[0]);else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(f&&(T.current=!0),bo(e,A.portalNode)){const e=wo(document.body,"prev")||b;null==e||e.focus();}else {var t;null==(t=A.afterOutsideRef.current)||t.focus();}}}))}function To(e){return we(e.target)&&"BUTTON"===e.target.tagName}function Do(e){return Qe(e)}const Bo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ro={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Fo=e=>{var t,n;return {escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Mo(e){const{open:t=!1,onOpenChange:n,elements:i}=e,r=Gn(),a=reactExports.useRef({}),[s]=reactExports.useState(()=>Yn()),c=null!=Zn();const[l,u]=reactExports.useState(i.reference),d=Nn((e,t,o)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:o,nested:c}),null==n||n(e,t,o);}),f=reactExports.useMemo(()=>({setPositionReference:u}),[]),p=reactExports.useMemo(()=>({reference:l||i.reference||null,floating:i.floating||null,domReference:i.reference}),[l,i.reference,i.floating]);return reactExports.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:s,floatingId:r,refs:f}),[t,d,p,s,r,f])}function $o(e){void 0===e&&(e={});const{nodeId:t}=e,n=Mo({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[a,s]=reactExports.useState(null),[c,l]=reactExports.useState(null),u=(null==r?void 0:r.domReference)||a,d=reactExports.useRef(null),f=eo();$n(()=>{u&&(d.current=u);},[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=reactExports.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=reactExports.useState(i);gn(p,i)||m(i);const[h,g]=reactExports.useState(null),[y,v]=reactExports.useState(null),b=reactExports.useCallback(e=>{e!==S.current&&(S.current=e,g(e));},[]),k=reactExports.useCallback(e=>{e!==N.current&&(N.current=e,v(e));},[]),x=a||h,C=s||y,S=reactExports.useRef(null),N=reactExports.useRef(null),E=reactExports.useRef(d),P=null!=l,I=wn(l),A=wn(r),O=wn(u),L=reactExports.useCallback(()=>{if(!S.current||!N.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),mn(S.current,N.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};T.current&&!gn(E.current,t)&&(E.current=t,reactDomExports.flushSync(()=>{f(t);}));});},[p,t,n,A,O]);hn(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})));},[u]);const T=reactExports.useRef(!1);hn(()=>(T.current=!0,()=>{T.current=!1;}),[]),hn(()=>{if(x&&(S.current=x),C&&(N.current=C),x&&C){if(I.current)return I.current(x,C,L);L();}},[x,C,L,I,P]);const D=reactExports.useMemo(()=>({reference:S,floating:N,setReference:b,setFloating:k}),[b,k]),B=reactExports.useMemo(()=>({reference:x,floating:C}),[x,C]),R=reactExports.useMemo(()=>{const e={position:n,left:0,top:0};if(!B.floating)return e;const t=vn(B.floating,d.x),o=vn(B.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+o+"px)",...yn(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,c,B.floating,d.x,d.y]);return reactExports.useMemo(()=>({...d,update:L,refs:D,elements:B,floatingStyles:R}),[d,L,D,B,R])}({...e,elements:{...r,...c&&{reference:c}}}),m=reactExports.useCallback(e=>{const t=ve(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t);},[p.refs]),h=reactExports.useCallback(e=>{(ve(e)||null===e)&&(d.current=e,s(e)),(ve(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ve(e))&&p.refs.setReference(e);},[p.refs]),g=reactExports.useMemo(()=>({...p.refs,setReference:h,setPositionReference:m,domReference:d}),[p.refs,h,m]),y=reactExports.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=reactExports.useMemo(()=>({...p,...i,refs:g,elements:y,nodeId:t}),[p,g,y,t,i]);return $n(()=>{i.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=v);}),reactExports.useMemo(()=>({...p,context:v,refs:g,elements:y}),[p,g,y,v])}const _o="active",zo="selected";function jo(e,t,n){const o=new Map,i="item"===n;let r=e;if(i&&e){const{[_o]:t,[zo]:n,...o}=e;r=o;}return {..."floating"===n&&{tabIndex:-1,[No]:""},...r,...t.map(t=>{const o=t?t[n]:null;return "function"==typeof o?e?o(e):null:o}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,r]=t;var a;i&&[_o,zo].includes(n)||(0===n.indexOf("on")?(o.has(n)||o.set(n,[]),"function"==typeof r&&(null==(a=o.get(n))||a.push(r),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return null==(e=o.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)})):e[n]=r);}),e):e,{})}}let Ho=!1;function Wo(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Vo(e,t){return Wo(t,e===En||e===Pn,e===In||e===An)}function Ko(e,t,n){return Wo(t,e===Pn,n?e===In:e===An)||"Enter"===e||" "===e||""===e}function Uo(e,t,n){return Wo(t,n?e===An:e===In,e===En)}function Go(e,t){const{open:n,onOpenChange:i,elements:r}=e,{listRef:a,activeIndex:s,onNavigate:c=()=>{},enabled:l=!0,selectedIndex:u=null,allowEscape:d=!1,loop:f=!1,nested:p=!1,rtl:m=!1,virtual:h=!1,focusItemOnOpen:g="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:v=!0,disabledIndices:w,orientation:b="vertical",cols:k=1,scrollItemIntoView:x=!0,virtualItemRef:C,itemSizes:S,dense:N=!1}=t;const E=io(Eo(r.floating)),P=Zn(),I=eo(),A=Nn(c),O=et(r.domReference),L=reactExports.useRef(g),T=reactExports.useRef(null!=u?u:-1),D=reactExports.useRef(null),B=reactExports.useRef(!0),R=reactExports.useRef(A),F=reactExports.useRef(!!r.floating),M=reactExports.useRef(n),$=reactExports.useRef(!1),_=reactExports.useRef(!1),z=io(w),j=io(n),H=io(x),W=io(u),[V,K]=reactExports.useState(),[U,G]=reactExports.useState(),q=Nn(function(e,t,n){function o(e){h?(K(e.id),null==I||I.events.emit("virtualfocus",e),C&&(C.current=e)):co(e,{preventScroll:!0,sync:!(!He().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!Ue())&&(Ho||$.current)});}void 0===n&&(n=!1);const i=e.current[t.current];i&&o(i),requestAnimationFrame(()=>{const r=e.current[t.current]||i;if(!r)return;i||o(r);const a=H.current;a&&Y&&(n||!B.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a));});});$n(()=>{document.createElement("div").focus({get preventScroll(){return Ho=!0,!1}});},[]),$n(()=>{l&&(n&&r.floating?L.current&&null!=u&&(_.current=!0,T.current=u,A(u)):F.current&&(T.current=-1,R.current(null)));},[l,n,r.floating,u,A]),$n(()=>{if(l&&n&&r.floating)if(null==s){if($.current=!1,null!=W.current)return;if(F.current&&(T.current=-1,q(a,T)),(!M.current||!F.current)&&L.current&&(null!=D.current||!0===L.current&&null==D.current)){let e=0;const t=()=>{if(null==a.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t);}e++;}else T.current=null==D.current||Ko(D.current,b,m)||p?Tn(a,z.current):Dn(a,z.current),D.current=null,A(T.current);};t();}}else Ln(a,s)||(T.current=s,q(a,T,_.current),_.current=!1);},[l,n,r.floating,s,W,p,a,b,m,A,q,z]),$n(()=>{var e;if(!l||r.floating||!I||h||!F.current)return;const t=I.nodesRef.current,n=null==(e=t.find(e=>e.id===P))||null==(e=e.context)?void 0:e.elements.floating,o=ze(Je(r.floating)),i=t.some(e=>e.context&&je(e.context.elements.floating,o));n&&!i&&B.current&&n.focus({preventScroll:!0});},[l,r.floating,I,P,h]),$n(()=>{if(l&&I&&h&&!P)return I.events.on("virtualfocus",e),()=>{I.events.off("virtualfocus",e);};function e(e){G(e.id),C&&(C.current=e);}},[l,I,h,P,C]),$n(()=>{R.current=A,F.current=!!r.floating;}),$n(()=>{n||(D.current=null);},[n]),$n(()=>{M.current=n;},[n]);const J=null!=s,Y=reactExports.useMemo(()=>{function e(e){if(!n)return;const t=a.current.indexOf(e);-1!==t&&A(t);}return {onFocus(t){let{currentTarget:n}=t;e(n);},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...y&&{onMouseMove(t){let{currentTarget:n}=t;e(n);},onPointerLeave(e){let{pointerType:t}=e;B.current&&"touch"!==t&&(T.current=-1,q(a,T),A(null),h||co(E.current,{preventScroll:!0}));}}}},[n,E,q,y,a,A,h]),X=Nn(e=>{if(B.current=!1,$.current=!0,229===e.which)return;if(!j.current&&e.currentTarget===E.current)return;if(p&&Uo(e.key,b,m))return Ze(e),i(!1,e.nativeEvent,"list-navigation"),void(we(r.domReference)&&(h?null==I||I.events.emit("virtualfocus",r.domReference):r.domReference.focus()));const t=T.current,o=Tn(a,w),s=Dn(a,w);if(O||("Home"===e.key&&(Ze(e),T.current=o,A(T.current)),"End"===e.key&&(Ze(e),T.current=s,A(T.current))),k>1){const t=S||Array.from({length:a.current.length},()=>({width:1,height:1})),n=function(e,t,n){const o=[];let i=0;return e.forEach((e,r)=>{let{width:a,height:s}=e;if(a>t&&"production"!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+r+" is greater than grid columns");let c=!1;for(n&&(i=0);!c;){const e=[];for(let n=0;n<a;n++)for(let o=0;o<s;o++)e.push(i+n+o*t);i%t+a<=t&&e.every(e=>null==o[e])?(e.forEach(e=>{o[e]=r;}),c=!0):i++;}}),[...o]}(t,k,N),i=n.findIndex(e=>null!=e&&!Mn(a.current,e,w)),r=n.reduce((e,t,n)=>null==t||Mn(a.current,t,w)?e:n,-1),c=n[function(e,t){let{event:n,orientation:o,loop:i,rtl:r,cols:a,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}=t,f=u;if(n.key===En){if(d&&Ze(n),-1===u)f=l;else if(f=Bn(e,{startingIndex:f,amount:a,decrement:!0,disabledIndices:s}),i&&(u-a<c||f<0)){const e=u%a,t=l%a,n=l-(t-e);f=t===e?l:t>e?n:n-a;}Ln(e,f)&&(f=u);}if(n.key===Pn&&(d&&Ze(n),-1===u?f=c:(f=Bn(e,{startingIndex:u,amount:a,disabledIndices:s}),i&&u+a>l&&(f=Bn(e,{startingIndex:u%a-a,amount:a,disabledIndices:s}))),Ln(e,f)&&(f=u)),"both"===o){const t=it(u/a);n.key===(r?In:An)&&(d&&Ze(n),u%a!==a-1?(f=Bn(e,{startingIndex:u,disabledIndices:s}),i&&On(f,a,t)&&(f=Bn(e,{startingIndex:u-u%a-1,disabledIndices:s}))):i&&(f=Bn(e,{startingIndex:u-u%a-1,disabledIndices:s})),On(f,a,t)&&(f=u)),n.key===(r?An:In)&&(d&&Ze(n),u%a!==0?(f=Bn(e,{startingIndex:u,decrement:!0,disabledIndices:s}),i&&On(f,a,t)&&(f=Bn(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}))):i&&(f=Bn(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s})),On(f,a,t)&&(f=u));const o=it(l/a)===t;Ln(e,f)&&(f=i&&o?n.key===(r?An:In)?l:Bn(e,{startingIndex:u-u%a-1,disabledIndices:s}):u);}return f}({current:n.map(e=>null!=e?a.current[e]:null)},{event:e,orientation:b,loop:f,rtl:m,cols:k,disabledIndices:Fn([...w||a.current.map((e,t)=>Mn(a.current,t)?t:void 0),void 0],n),minIndex:i,maxIndex:r,prevIndex:Rn(T.current>s?o:T.current,t,n,k,e.key===Pn?"bl":e.key===(m?In:An)?"tr":"tl"),stopEvent:!0})];if(null!=c&&(T.current=c,A(T.current)),"both"===b)return}if(Vo(e.key,b)){if(Ze(e),n&&!h&&ze(e.currentTarget.ownerDocument)===e.currentTarget)return T.current=Ko(e.key,b,m)?o:s,void A(T.current);Ko(e.key,b,m)?T.current=f?t>=s?d&&t!==a.current.length?-1:o:Bn(a,{startingIndex:t,disabledIndices:w}):Math.min(s,Bn(a,{startingIndex:t,disabledIndices:w})):T.current=f?t<=o?d&&-1!==t?a.current.length:s:Bn(a,{startingIndex:t,decrement:!0,disabledIndices:w}):Math.max(o,Bn(a,{startingIndex:t,decrement:!0,disabledIndices:w})),Ln(a,T.current)?A(null):A(T.current);}}),Q=reactExports.useMemo(()=>h&&n&&J&&{"aria-activedescendant":U||V},[h,n,J,U,V]),Z=reactExports.useMemo(()=>({"aria-orientation":"both"===b?void 0:b,...!et(r.domReference)&&Q,onKeyDown:X,onPointerMove(){B.current=!0;}}),[Q,X,r.domReference,b]),ee=reactExports.useMemo(()=>{function e(e){"auto"===g&&Ve(e.nativeEvent)&&(L.current=!0);}return {...Q,onKeyDown(e){B.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),r=t||o,s=function(e,t,n){return Wo(t,n?e===In:e===An,e===Pn)}(e.key,b,m),c=Uo(e.key,b,m),l=Vo(e.key,b),d=(p?s:l)||"Enter"===e.key||""===e.key.trim();if(h&&n){const t=null==I?void 0:I.nodesRef.current.find(e=>null==e.parentId),n=I&&t?function(e,t){let n,o=-1;return function t(i,r){r>o&&(n=i,o=r),lo(e,i).forEach(e=>{t(e.id,r+1);});}(t,0),e.find(e=>e.id===n)}(I.nodesRef.current,t.id):null;if(r&&n&&C){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||c){var f,g;const o=(null==(f=n.context)?void 0:f.elements.domReference)===e.currentTarget,i=c&&!o?null==(g=n.context)?void 0:g.elements.domReference:s?a.current.find(e=>(null==e?void 0:e.id)===V):null;i&&(Ze(e),i.dispatchEvent(t),G(void 0));}var y;if((l||o)&&n.context)if(n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return Ze(e),void(null==(y=n.context.elements.domReference)||y.dispatchEvent(t))}return X(e)}(n||v||!t)&&(d&&(D.current=p&&l?null:e.key),p?s&&(Ze(e),n?(T.current=Tn(a,z.current),A(T.current)):i(!0,e.nativeEvent,"list-navigation")):l&&(null!=u&&(T.current=u),Ze(e),!n&&v?i(!0,e.nativeEvent,"list-navigation"):X(e),n&&A(T.current)));},onFocus(){n&&!h&&A(null);},onPointerDown:function(e){L.current=g,"auto"===g&&Ke(e.nativeEvent)&&(L.current=!0);},onMouseDown:e,onClick:e}},[V,Q,X,z,g,a,p,A,i,n,v,b,m,u,I,h,C]);return reactExports.useMemo(()=>l?{reference:ee,floating:Z,item:Y}:{},[l,ee,Z,Y])}const qo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Jo(e,t){const[n,o]=e;let i=!1;const r=t.length;for(let e=0,a=r-1;e<r;a=e++){const[r,s]=t[e]||[0,0],[c,l]=t[a]||[0,0];s>=o!=l>=o&&n<=(c-r)*(o-s)/(l-s)+r&&(i=!i);}return i}function Yo(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:o=!0}=e;let i,r=!1,a=null,s=null,c=performance.now();const l=e=>{let{x:n,y:l,placement:u,elements:d,onClose:f,nodeId:p,tree:m}=e;return function(e){function h(){clearTimeout(i),f();}if(clearTimeout(i),!d.domReference||!d.floating||null==u||null==n||null==l)return;const{clientX:g,clientY:y}=e,v=[g,y],w=Xe(e),b="mouseleave"===e.type,k=je(d.floating,w),x=je(d.domReference,w),C=d.domReference.getBoundingClientRect(),S=d.floating.getBoundingClientRect(),N=u.split("-")[0],E=n>S.right-S.width/2,P=l>S.bottom-S.height/2,I=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,C),A=S.width>C.width,O=S.height>C.height,L=(A?C:S).left,T=(A?C:S).right,D=(O?C:S).top,B=(O?C:S).bottom;if(k&&(r=!0,!b))return;if(x&&(r=!1),x&&!b)return void(r=!0);if(b&&ve(e.relatedTarget)&&je(d.floating,e.relatedTarget))return;if(m&&lo(m.nodesRef.current,p).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===N&&l>=C.bottom-1||"bottom"===N&&l<=C.top+1||"left"===N&&n>=C.right-1||"right"===N&&n<=C.left+1)return h();let R=[];switch(N){case"top":R=[[L,C.top+1],[L,S.bottom-1],[T,S.bottom-1],[T,C.top+1]];break;case"bottom":R=[[L,S.top+1],[L,C.bottom-1],[T,C.bottom-1],[T,S.top+1]];break;case"left":R=[[S.right-1,B],[S.right-1,D],[C.left+1,D],[C.left+1,B]];break;case"right":R=[[C.right-1,B],[C.right-1,D],[S.left+1,D],[S.left+1,B]];}if(!Jo([g,y],R)){if(r&&!I)return h();if(!b&&o){const t=function(e,t){const n=performance.now(),o=n-c;if(null===a||null===s||0===o)return a=e,s=t,c=n,null;const i=e-a,r=t-s,l=Math.sqrt(i*i+r*r);return a=e,s=t,c=n,l/o}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Jo([g,y],function(e){let[n,o]=e;switch(N){case"top":return [[A?n+t/2:E?n+4*t:n-4*t,o+t+1],[A?n-t/2:E?n+4*t:n-4*t,o+t+1],...[[S.left,E||A?S.bottom-t:S.top],[S.right,E?A?S.bottom-t:S.top:S.bottom-t]]];case"bottom":return [[A?n+t/2:E?n+4*t:n-4*t,o-t],[A?n-t/2:E?n+4*t:n-4*t,o-t],...[[S.left,E||A?S.top+t:S.bottom],[S.right,E?A?S.top+t:S.bottom:S.top+t]]];case"left":{const e=[n+t+1,O?o+t/2:P?o+4*t:o-4*t],i=[n+t+1,O?o-t/2:P?o+4*t:o-4*t];return [...[[P||O?S.right-t:S.left,S.top],[P?O?S.right-t:S.left:S.right-t,S.bottom]],e,i]}case"right":return [[n-t,O?o+t/2:P?o+4*t:o-4*t],[n-t,O?o-t/2:P?o+4*t:o-4*t],...[[P||O?S.left+t:S.right,S.top],[P?O?S.left+t:S.right:S.left+t,S.bottom]]]}}([n,l]))?!r&&o&&(i=window.setTimeout(h,40)):h();}}};return l.__options={blockPointerEvents:n},l}const Xo=reactExports.createContext({getItemProps:()=>({}),activeIndex:null,setActiveIndex:()=>{},setHasFocusInside:()=>{},isOpen:!1,setIsOpen:()=>{}}),Qo=reactExports.forwardRef(({className:t,disabled:n,children:o,...i},r)=>{const a=reactExports.useContext(Xo),s=Hn(),l=eo(),u=s.index===a.activeIndex,d=E("io-dropdown-menu-item",n&&"io-dropdown-menu-item-disabled",t);return jsxRuntimeExports.jsx("div",{ref:xn([s.ref,r]),role:"menuitem",className:d,tabIndex:u?0:-1,"aria-disabled":n,...i,...a.getItemProps({onClick(e){if(n)return e.preventDefault(),void e.stopPropagation();i.onClick?.(e),a.setIsOpen(!1),l?.events.emit("click");},onFocus(e){n||(i.onFocus?.(e),a.setHasFocusInside(!0));}}),children:o})});Qo.displayName="DropdownMenuItem";const Zo=reactExports.forwardRef(({className:n,variant:i="default",icon:r,iconRight:a,text:s="",disabled:p,children:m,...h},g)=>{const[y,v]=reactExports.useState(!1),[w,b]=reactExports.useState(!1),[k,x]=reactExports.useState(null),C=reactExports.useRef([]),S=reactExports.useRef([]),N=reactExports.useContext(Xo),P=eo(),I=function(){const e=Gn(),t=eo(),n=Zn();return $n(()=>{const o={id:e,parentId:n};return null==t||t.addNode(o),()=>{null==t||t.removeNode(o);}},[t,e,n]),e}(),A=Zn(),O=Hn(),L=null!=A,{floatingStyles:T,refs:D,context:B}=$o({nodeId:I,open:y,onOpenChange:v,placement:L?"right-start":"bottom-start",middleware:[(R={mainAxis:L?0:4,alignmentAxis:L?-4:0},{...dn(R),options:[R,F]}),kn(),bn()],whileElementsMounted:un});var R,F;const M=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:r,events:a,elements:s}=e,{enabled:c=!0,delay:l=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,m=eo(),h=Zn(),g=io(u),y=io(l),v=io(n),w=reactExports.useRef(),b=reactExports.useRef(-1),k=reactExports.useRef(),x=reactExports.useRef(-1),C=reactExports.useRef(!0),S=reactExports.useRef(!1),N=reactExports.useRef(()=>{}),E=reactExports.useRef(!1),P=reactExports.useCallback(()=>{var e;const t=null==(e=r.current.openEvent)?void 0:e.type;return (null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[r]);reactExports.useEffect(()=>{if(c)return a.on("openchange",e),()=>{a.off("openchange",e);};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(x.current),C.current=!0,E.current=!1);}},[c,a]),reactExports.useEffect(()=>{if(!c)return;if(!g.current)return;if(!n)return;function e(e){P()&&i(!1,e,"hover");}const t=Je(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e);}},[s.floating,n,i,c,g,P]);const I=reactExports.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=ao(y.current,"close",w.current);o&&!k.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>i(!1,e,n),o)):t&&(clearTimeout(b.current),i(!1,e,n));},[y,i]),A=Nn(()=>{N.current(),k.current=void 0;}),O=Nn(()=>{if(S.current){const e=Je(s.floating).body;e.style.pointerEvents="",e.removeAttribute(ro),S.current=!1;}}),L=Nn(()=>!!r.current.openEvent&&["click","mousedown"].includes(r.current.openEvent.type));reactExports.useEffect(()=>{if(c&&ve(s.domReference)){var e;const i=s.domReference;return n&&i.addEventListener("mouseleave",a),null==(e=s.floating)||e.addEventListener("mouseleave",a),p&&i.addEventListener("mousemove",t,{once:!0}),i.addEventListener("mouseenter",t),i.addEventListener("mouseleave",o),()=>{var e;n&&i.removeEventListener("mouseleave",a),null==(e=s.floating)||e.removeEventListener("mouseleave",a),p&&i.removeEventListener("mousemove",t),i.removeEventListener("mouseenter",t),i.removeEventListener("mouseleave",o);}}function t(e){if(clearTimeout(b.current),C.current=!1,d&&!qe(w.current)||f>0&&!ao(y.current,"open"))return;const t=ao(y.current,"open",w.current);t?b.current=window.setTimeout(()=>{v.current||i(!0,e,"hover");},t):n||i(!0,e,"hover");}function o(e){if(L())return;N.current();const t=Je(s.floating);if(clearTimeout(x.current),E.current=!1,g.current&&r.current.floatingContext){n||clearTimeout(b.current),k.current=g.current({...r.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){O(),A(),L()||I(e,!0,"safe-polygon");}});const o=k.current;return t.addEventListener("mousemove",o),void(N.current=()=>{t.removeEventListener("mousemove",o);})}("touch"!==w.current||!je(s.floating,e.relatedTarget))&&I(e);}function a(e){L()||r.current.floatingContext&&(null==g.current||g.current({...r.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){O(),A(),L()||I(e);}})(e));}},[s,c,e,d,f,p,I,A,O,i,n,v,m,y,g,r,L]),$n(()=>{var e;if(c&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&P()){S.current=!0;const e=s.floating;if(ve(s.domReference)&&e){var t;const n=Je(s.floating).body;n.setAttribute(ro,"");const o=s.domReference,i=null==m||null==(t=m.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="none",o.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",o.style.pointerEvents="",e.style.pointerEvents="";}}}},[c,n,h,s,m,g,P]),$n(()=>{n||(w.current=void 0,E.current=!1,A(),O());},[n,A,O]),reactExports.useEffect(()=>()=>{A(),clearTimeout(b.current),clearTimeout(x.current),O();},[c,s.domReference,A,O]);const T=reactExports.useMemo(()=>{function e(e){w.current=e.pointerType;}return {onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){C.current||v.current||i(!0,t,"hover");}d&&!qe(w.current)||n||0===f||E.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===w.current?o():(E.current=!0,x.current=window.setTimeout(o,f)));}}},[d,i,n,v,f]),D=reactExports.useMemo(()=>({onMouseEnter(){clearTimeout(b.current);},onMouseLeave(e){L()||I(e.nativeEvent,!1);}}),[I,L]);return reactExports.useMemo(()=>c?{reference:T,floating:D}:{},[c,T,D])}(B,{enabled:L,delay:{open:75},handleClose:Yo({blockPointerEvents:!0})}),_=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:r,elements:{domReference:a}}=e,{enabled:s=!0,event:c="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:f=!0}=t,p=reactExports.useRef(),m=reactExports.useRef(!1),h=reactExports.useMemo(()=>({onPointerDown(e){p.current=e.pointerType;},onMouseDown(e){const t=p.current;0===e.button&&"click"!==c&&(qe(t,!0)&&u||(!n||!l||r.current.openEvent&&f&&"mousedown"!==r.current.openEvent.type?(e.preventDefault(),i(!0,e.nativeEvent,"click")):i(!1,e.nativeEvent,"click")));},onClick(e){const t=p.current;"mousedown"===c&&p.current?p.current=void 0:qe(t,!0)&&u||(!n||!l||r.current.openEvent&&f&&"click"!==r.current.openEvent.type?i(!0,e.nativeEvent,"click"):i(!1,e.nativeEvent,"click"));},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||To(e)||(" "!==e.key||Do(a)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&i(!n||!l,e.nativeEvent,"click"));},onKeyUp(e){e.defaultPrevented||!d||To(e)||Do(a)||" "===e.key&&m.current&&(m.current=!1,i(!n||!l,e.nativeEvent,"click"));}}),[r,a,c,u,d,i,n,f,l]);return reactExports.useMemo(()=>s?{reference:h}:{},[s,h])}(B,{event:"mousedown",toggle:!L,ignoreMouse:L}),z=function(e,t){var n;void 0===t&&(t={});const{open:i,floatingId:r}=e,{enabled:a=!0,role:s="dialog"}=t,c=null!=(n=qo.get(s))?n:s,l=Gn(),u=null!=Zn(),d=reactExports.useMemo(()=>"tooltip"===c||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?r:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":i?r:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:l},..."menu"===c&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[c,r,u,i,l,s]),f=reactExports.useMemo(()=>{const e={id:r,...c&&{role:c}};return "tooltip"===c||"label"===s?e:{...e,..."menu"===c&&{"aria-labelledby":l}}},[c,r,l,s]),p=reactExports.useCallback(e=>{let{active:t,selected:n}=e;const o={role:"option",...t&&{id:r+"-option"}};switch(s){case"select":return {...o,"aria-selected":t&&n};case"combobox":return {...o,...t&&{"aria-selected":!0}}}return {}},[r,s]);return reactExports.useMemo(()=>a?{reference:d,floating:f,item:p}:{},[a,d,f,p])}(B,{role:"menu"}),j=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,elements:r,dataRef:a}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:p=!1,bubbles:m,capture:h}=t,g=eo(),y=Nn("function"==typeof l?l:()=>!1),v="function"==typeof l?y:l,w=reactExports.useRef(!1),b=reactExports.useRef(!1),{escapeKey:k,outsidePress:x}=Fo(m),{escapeKey:C,outsidePress:S}=Fo(h),N=reactExports.useRef(!1),E=Nn(e=>{var t;if(!n||!s||!c||"Escape"!==e.key)return;if(N.current)return;const o=null==(t=a.current.floatingContext)?void 0:t.nodeId,r=g?lo(g.nodesRef.current,o):[];if(!k&&(e.stopPropagation(),r.length>0)){let e=!0;if(r.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1);}),!e)return}i(!1,function(e){return "nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key");}),P=Nn(e=>{var t;const n=()=>{var t;E(e),null==(t=Xe(e))||t.removeEventListener("keydown",n);};null==(t=Xe(e))||t.addEventListener("keydown",n);}),I=Nn(e=>{var t;const n=w.current;w.current=!1;const o=b.current;if(b.current=!1,"click"===u&&o)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=Xe(e),c="["+oo("inert")+"]",l=Je(r.floating).querySelectorAll(c);let d=ve(s)?s:null;for(;d&&!De(d);){const e=Fe(d);if(De(e)||!ve(e))break;d=e;}if(l.length&&ve(s)&&!s.matches("html,body")&&!je(s,r.floating)&&Array.from(l).every(e=>!je(d,e)))return;if(we(s)&&L){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let o=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===Be(s).direction&&(o=e.offsetX<=s.offsetWidth-s.clientWidth),o||t&&e.offsetY>s.clientHeight)return}const f=null==(t=a.current.floatingContext)?void 0:t.nodeId,p=g&&lo(g.nodesRef.current,f).some(t=>{var n;return Ye(e,null==(n=t.context)?void 0:n.elements.floating)});if(Ye(e,r.floating)||Ye(e,r.domReference)||p)return;const m=g?lo(g.nodesRef.current,f):[];if(m.length>0){let e=!0;if(m.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1);}),!e)return}i(!1,e,"outside-press");}),A=Nn(e=>{var t;const n=()=>{var t;I(e),null==(t=Xe(e))||t.removeEventListener(u,n);};null==(t=Xe(e))||t.addEventListener(u,n);});reactExports.useEffect(()=>{if(!n||!s)return;a.current.__escapeKeyBubbles=k,a.current.__outsidePressBubbles=x;let e=-1;function t(e){i(!1,e,"ancestor-scroll");}function o(){window.clearTimeout(e),N.current=!0;}function l(){e=window.setTimeout(()=>{N.current=!1;},Le()?5:0);}const d=Je(r.floating);c&&(d.addEventListener("keydown",C?P:E,C),d.addEventListener("compositionstart",o),d.addEventListener("compositionend",l)),v&&d.addEventListener(u,S?A:I,S);let f=[];return p&&(ve(r.domReference)&&(f=$e(r.domReference)),ve(r.floating)&&(f=f.concat($e(r.floating))),!ve(r.reference)&&r.reference&&r.reference.contextElement&&(f=f.concat($e(r.reference.contextElement)))),f=f.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),f.forEach(e=>{e.addEventListener("scroll",t,{passive:!0});}),()=>{c&&(d.removeEventListener("keydown",C?P:E,C),d.removeEventListener("compositionstart",o),d.removeEventListener("compositionend",l)),v&&d.removeEventListener(u,S?A:I,S),f.forEach(e=>{e.removeEventListener("scroll",t);}),window.clearTimeout(e);}},[a,r,c,v,u,n,i,p,s,k,x,E,C,P,I,S,A]),reactExports.useEffect(()=>{w.current=!1;},[v,u]);const O=reactExports.useMemo(()=>({onKeyDown:E,[Bo[f]]:e=>{d&&i(!1,e.nativeEvent,"reference-press");}}),[E,i,d,f]),L=reactExports.useMemo(()=>({onKeyDown:E,onMouseDown(){b.current=!0;},onMouseUp(){b.current=!0;},[Ro[u]]:()=>{w.current=!0;}}),[E,u]);return reactExports.useMemo(()=>s?{reference:O,floating:L}:{},[s,O,L])}(B,{bubbles:!0}),H=Go(B,{listRef:C,activeIndex:k,nested:L,onNavigate:x}),{getReferenceProps:W,getFloatingProps:V,getItemProps:K}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),i=e.map(e=>null==e?void 0:e.item),r=reactExports.useCallback(t=>jo(t,e,"reference"),t),a=reactExports.useCallback(t=>jo(t,e,"floating"),n),s=reactExports.useCallback(t=>jo(t,e,"item"),i);return reactExports.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:s}),[r,a,s])}([M,_,z,j,H]);reactExports.useEffect(()=>{if(P)return P.events.on("click",e),P.events.on("menuopen",t),()=>{P.events.off("click",e),P.events.off("menuopen",t);};function e(){v(!1);}function t(e){e.nodeId!==I&&e.parentId===A&&v(!1);}},[P,I,A]),reactExports.useEffect(()=>{y&&P&&P.events.emit("menuopen",{parentId:A,nodeId:I});},[P,y,I,A]);const U={activeIndex:k,setActiveIndex:x,getItemProps:K,setHasFocusInside:b,isOpen:y,setIsOpen:v},G=reactExports.useMemo(()=>U,[k,x,K,b,y]),q=E("io-dropdown-menu-button",L&&"io-dropdown-menu-item",y&&!L&&"active",n),J=xn([D.setReference,O.ref,g]),Y=N.activeIndex===O.index?0:-1;return jsxRuntimeExports.jsxs(to,{id:I,children:[jsxRuntimeExports.jsx($,{className:q,ref:J,variant:L?"link":i,tabIndex:L?Y:void 0,role:L?"menuitem":void 0,"data-open":y?"":void 0,"data-nested":L?"":void 0,"data-focus-inside":w?"":void 0,text:s,icon:L?"chevron-right":r,iconSize:"10",iconRight:!!L||a,disabled:p,...W(N.getItemProps({onFocus(e){h.onFocus?.(e),b(!1),N.setHasFocusInside(!0);},...h}))}),jsxRuntimeExports.jsx(Xo.Provider,{value:G,children:jsxRuntimeExports.jsx(jn,{elementsRef:C,labelsRef:S,children:y&&jsxRuntimeExports.jsx(Lo,{context:B,modal:!1,initialFocus:L?-1:0,returnFocus:!L,children:jsxRuntimeExports.jsx("div",{ref:D.setFloating,className:"io-dropdown-menu",style:T,...V(),children:m})})})})]})});Zo.displayName="DropdownMenu";const ei=reactExports.forwardRef(({...t},n)=>null===Zn()?jsxRuntimeExports.jsx(no,{children:jsxRuntimeExports.jsx(Zo,{ref:n,...t})}):jsxRuntimeExports.jsx(Zo,{ref:n,...t}));ei.displayName="DropdownMenu",ei.Item=Qo,ei.Separator=J;var oi="top",ii="bottom",ri="right",ai="left",si="auto",ci=[oi,ii,ri,ai],li="start",ui="end",di="viewport",fi="popper",pi=ci.reduce(function(e,t){return e.concat([t+"-"+li,t+"-"+ui])},[]),mi=[].concat(ci,[si]).reduce(function(e,t){return e.concat([t,t+"-"+li,t+"-"+ui])},[]),hi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gi(e){return e?(e.nodeName||"").toLowerCase():null}function yi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vi(e){return e instanceof yi(e).Element||e instanceof Element}function wi(e){return e instanceof yi(e).HTMLElement||e instanceof HTMLElement}function bi(e){return "undefined"!=typeof ShadowRoot&&(e instanceof yi(e).ShadowRoot||e instanceof ShadowRoot)}var ki={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];wi(i)&&gi(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t);}));});},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});wi(o)&&gi(o)&&(Object.assign(o.style,r),Object.keys(i).forEach(function(e){o.removeAttribute(e);}));});}},requires:["computeStyles"]};function xi(e){return e.split("-")[0]}var Ci=Math.max,Si=Math.min,Ni=Math.round;function Ei(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Pi(){return !/^((?!chrome|android).)*safari/i.test(Ei())}function Ii(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,r=1;t&&wi(e)&&(i=e.offsetWidth>0&&Ni(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Ni(o.height)/e.offsetHeight||1);var a=(vi(e)?yi(e):window).visualViewport,s=!Pi()&&n,c=(o.left+(s&&a?a.offsetLeft:0))/i,l=(o.top+(s&&a?a.offsetTop:0))/r,u=o.width/i,d=o.height/r;return {width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Ai(e){var t=Ii(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Oi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return !0;if(n&&bi(n)){var o=t;do{if(o&&e.isSameNode(o))return !0;o=o.parentNode||o.host;}while(o)}return !1}function Li(e){return yi(e).getComputedStyle(e)}function Ti(e){return ["table","td","th"].indexOf(gi(e))>=0}function Di(e){return ((vi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bi(e){return "html"===gi(e)?e:e.assignedSlot||e.parentNode||(bi(e)?e.host:null)||Di(e)}function Ri(e){return wi(e)&&"fixed"!==Li(e).position?e.offsetParent:null}function Fi(e){for(var t=yi(e),n=Ri(e);n&&Ti(n)&&"static"===Li(n).position;)n=Ri(n);return n&&("html"===gi(n)||"body"===gi(n)&&"static"===Li(n).position)?t:n||function(e){var t=/firefox/i.test(Ei());if(/Trident/i.test(Ei())&&wi(e)&&"fixed"===Li(e).position)return null;var n=Bi(e);for(bi(n)&&(n=n.host);wi(n)&&["html","body"].indexOf(gi(n))<0;){var o=Li(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode;}return null}(e)||t}function Mi(e){return ["top","bottom"].indexOf(e)>=0?"x":"y"}function $i(e,t,n){return Ci(e,Si(t,n))}function _i(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function zi(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ji={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xi(n.placement),c=Mi(s),l=[ai,ri].indexOf(s)>=0?"height":"width";if(r&&a){var u=function(e,t){return _i("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:zi(e,ci))}(i.padding,n),d=Ai(r),f="y"===c?oi:ai,p="y"===c?ii:ri,m=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],h=a[c]-n.rects.reference[c],g=Fi(r),y=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,w=u[f],b=y-d[l]-u[p],k=y/2-d[l]/2+v,x=$i(w,k,b),C=c;n.modifiersData[o]=((t={})[C]=x,t.centerOffset=x-k,t);}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Oi(t.elements.popper,o)&&(t.elements.arrow=o);},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hi(e){return e.split("-")[1]}var Wi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vi(e){var t,n=e.popper,o=e.popperRect,i=e.placement,r=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),w=ai,b=oi,k=window;if(l){var x=Fi(n),C="clientHeight",S="clientWidth";if(x===yi(n)&&"static"!==Li(x=Di(n)).position&&"absolute"===s&&(C="scrollHeight",S="scrollWidth"),i===oi||(i===ai||i===ri)&&r===ui)b=ii,h-=(d&&x===k&&k.visualViewport?k.visualViewport.height:x[C])-o.height,h*=c?1:-1;if(i===ai||(i===oi||i===ii)&&r===ui)w=ri,p-=(d&&x===k&&k.visualViewport?k.visualViewport.width:x[S])-o.width,p*=c?1:-1;}var N,E=Object.assign({position:s},l&&Wi),P=!0===u?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return {x:Ni(n*i)/i||0,y:Ni(o*i)/i||0}}({x:p,y:h},yi(n)):{x:p,y:h};return p=P.x,h=P.y,c?Object.assign({},E,((N={})[b]=v?"0":"",N[w]=y?"0":"",N.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",N)):Object.assign({},E,((t={})[b]=v?h+"px":"",t[w]=y?p+"px":"",t.transform="",t))}var Ki={passive:!0};var Ui={left:"right",right:"left",bottom:"top",top:"bottom"};function Gi(e){return e.replace(/left|right|bottom|top/g,function(e){return Ui[e]})}var qi={start:"end",end:"start"};function Ji(e){return e.replace(/start|end/g,function(e){return qi[e]})}function Yi(e){var t=yi(e);return {scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xi(e){return Ii(Di(e)).left+Yi(e).scrollLeft}function Qi(e){var t=Li(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return /auto|scroll|overlay|hidden/.test(n+i+o)}function Zi(e){return ["html","body","#document"].indexOf(gi(e))>=0?e.ownerDocument.body:wi(e)&&Qi(e)?e:Zi(Bi(e))}function er(e,t){var n;void 0===t&&(t=[]);var o=Zi(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=yi(o),a=i?[r].concat(r.visualViewport||[],Qi(o)?o:[]):o,s=t.concat(a);return i?s:s.concat(er(Bi(a)))}function tr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nr(e,t,n){return t===di?tr(function(e,t){var n=yi(e),o=Di(e),i=n.visualViewport,r=o.clientWidth,a=o.clientHeight,s=0,c=0;if(i){r=i.width,a=i.height;var l=Pi();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop);}return {width:r,height:a,x:s+Xi(e),y:c}}(e,n)):vi(t)?function(e,t){var n=Ii(e,!1,"fixed"===t);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}(t,n):tr(function(e){var t,n=Di(e),o=Yi(e),i=null==(t=e.ownerDocument)?void 0:t.body,r=Ci(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ci(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-o.scrollLeft+Xi(e),c=-o.scrollTop;return "rtl"===Li(i||n).direction&&(s+=Ci(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:a,x:s,y:c}}(Di(e)))}function or(e,t,n,o){var i="clippingParents"===t?function(e){var t=er(Bi(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0&&wi(e)?Fi(e):e;return vi(n)?t.filter(function(e){return vi(e)&&Oi(e,n)&&"body"!==gi(e)}):[]}(e):[].concat(t),r=[].concat(i,[n]),a=r[0],s=r.reduce(function(t,n){var i=nr(e,n,o);return t.top=Ci(i.top,t.top),t.right=Si(i.right,t.right),t.bottom=Si(i.bottom,t.bottom),t.left=Ci(i.left,t.left),t},nr(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ir(e){var t,n=e.reference,o=e.element,i=e.placement,r=i?xi(i):null,a=i?Hi(i):null,s=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(r){case oi:t={x:s,y:n.y-o.height};break;case ii:t={x:s,y:n.y+n.height};break;case ri:t={x:n.x+n.width,y:c};break;case ai:t={x:n.x-o.width,y:c};break;default:t={x:n.x,y:n.y};}var l=r?Mi(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case li:t[l]=t[l]-(n[u]/2-o[u]/2);break;case ui:t[l]=t[l]+(n[u]/2-o[u]/2);}}return t}function rr(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,r=n.strategy,a=void 0===r?e.strategy:r,s=n.boundary,c=void 0===s?"clippingParents":s,l=n.rootBoundary,u=void 0===l?di:l,d=n.elementContext,f=void 0===d?fi:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,y=_i("number"!=typeof g?g:zi(g,ci)),v=f===fi?"reference":fi,w=e.rects.popper,b=e.elements[m?v:f],k=or(vi(b)?b:b.contextElement||Di(e.elements.popper),c,u,a),x=Ii(e.elements.reference),C=ir({reference:x,element:w,strategy:"absolute",placement:i}),S=tr(Object.assign({},w,C)),N=f===fi?S:x,E={top:k.top-N.top+y.top,bottom:N.bottom-k.bottom+y.bottom,left:k.left-N.left+y.left,right:N.right-k.right+y.right},P=e.modifiersData.offset;if(f===fi&&P){var I=P[i];Object.keys(E).forEach(function(e){var t=[ri,ii].indexOf(e)>=0?1:-1,n=[oi,ii].indexOf(e)>=0?"y":"x";E[e]+=I[n]*t;});}return E}function ar(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?mi:c,u=Hi(o),d=u?s?pi:pi.filter(function(e){return Hi(e)===u}):ci,f=d.filter(function(e){return l.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=rr(e,{placement:n,boundary:i,rootBoundary:r,padding:a})[xi(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var sr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,y=xi(g),v=c||(y===g||!m?[Gi(g)]:function(e){if(xi(e)===si)return [];var t=Gi(e);return [Ji(e),t,Ji(t)]}(g)),w=[g].concat(v).reduce(function(e,n){return e.concat(xi(n)===si?ar(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,k=t.rects.popper,x=new Map,C=!0,S=w[0],N=0;N<w.length;N++){var E=w[N],P=xi(E),I=Hi(E)===li,A=[oi,ii].indexOf(P)>=0,O=A?"width":"height",L=rr(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),T=A?I?ri:ai:I?ii:oi;b[O]>k[O]&&(T=Gi(T));var D=Gi(T),B=[];if(r&&B.push(L[P]<=0),s&&B.push(L[T]<=0,L[D]<=0),B.every(function(e){return e})){S=E,C=!1;break}x.set(E,B);}if(C)for(var R=function(e){var t=w.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},F=m?3:1;F>0;F--){if("break"===R(F))break}t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0);}},requiresIfExists:["offset"],data:{_skip:!1}};function cr(e,t,n){return void 0===n&&(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 lr(e){return [oi,ri,ii,ai].some(function(t){return e[t]>=0})}var ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,r=void 0===i?[0,0]:i,a=mi.reduce(function(e,n){return e[n]=function(e,t,n){var o=xi(e),i=[ai,oi].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[ai,ri].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,r),e},{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[o]=a;}};var dr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=rr(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),y=xi(t.placement),v=Hi(t.placement),w=!v,b=Mi(y),k="x"===b?"y":"x",x=t.modifiersData.popperOffsets,C=t.rects.reference,S=t.rects.popper,N="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,E="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(x){if(r){var A,O="y"===b?oi:ai,L="y"===b?ii:ri,T="y"===b?"height":"width",D=x[b],B=D+g[O],R=D-g[L],F=p?-S[T]/2:0,M=v===li?C[T]:S[T],$=v===li?-S[T]:-C[T],_=t.elements.arrow,z=p&&_?Ai(_):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=j[O],W=j[L],V=$i(0,C[T],z[T]),K=w?C[T]/2-F-V-H-E.mainAxis:M-V-H-E.mainAxis,U=w?-C[T]/2+F+V+W+E.mainAxis:$+V+W+E.mainAxis,G=t.elements.arrow&&Fi(t.elements.arrow),q=G?"y"===b?G.clientTop||0:G.clientLeft||0:0,J=null!=(A=null==P?void 0:P[b])?A:0,Y=D+U-J,X=$i(p?Si(B,D+K-J-q):B,D,p?Ci(R,Y):R);x[b]=X,I[b]=X-D;}if(s){var Q,Z="x"===b?oi:ai,ee="x"===b?ii:ri,te=x[k],ne="y"===k?"height":"width",oe=te+g[Z],ie=te-g[ee],re=-1!==[oi,ai].indexOf(y),ae=null!=(Q=null==P?void 0:P[k])?Q:0,se=re?oe:te-C[ne]-S[ne]-ae+E.altAxis,ce=re?te+C[ne]+S[ne]-ae-E.altAxis:ie,le=p&&re?function(e,t,n){var o=$i(e,t,n);return o>n?n:o}(se,te,ce):$i(p?se:oe,te,p?ce:ie);x[k]=le,I[k]=le-te;}t.modifiersData[o]=I;}},requiresIfExists:["offset"]};function fr(e,t,n){void 0===n&&(n=!1);var o,i,r=wi(t),a=wi(t)&&function(e){var t=e.getBoundingClientRect(),n=Ni(t.width)/e.offsetWidth||1,o=Ni(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=Di(t),c=Ii(e,a,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return (r||!r&&!n)&&(("body"!==gi(t)||Qi(s))&&(l=(o=t)!==yi(o)&&wi(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:Yi(o)),wi(t)?((u=Ii(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Xi(s))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function pr(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o);}}),o.push(e);}return e.forEach(function(e){t.set(e.name,e);}),e.forEach(function(e){n.has(e.name)||i(e);}),o}var mr={placement:"bottom",modifiers:[],strategy:"absolute"};function hr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return !t.some(function(e){return !(e&&"function"==typeof e.getBoundingClientRect)})}function gr(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,i=t.defaultOptions,r=void 0===i?mr:i;return function(e,t,n){void 0===n&&(n=r);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},mr,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(n){var i="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},r,s.options,i),s.scrollParents={reference:vi(e)?er(e):e.contextElement?er(e.contextElement):[],popper:er(t)};var a,l,f=function(e){var t=pr(e);return hi.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(o,s.options.modifiers),l=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return s.orderedModifiers=f.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var r=i({state:s,name:t,instance:u,options:o}),a=function(){};c.push(r||a);}}),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(hr(t,n)){s.rects={reference:fr(t,Fi(n),"fixed"===s.options.strategy),popper:Ai(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var i=s.orderedModifiers[o],r=i.fn,a=i.options,c=void 0===a?{}:a,d=i.name;"function"==typeof r&&(s=r({state:s,options:c,name:d,instance:u})||s);}else s.reset=!1,o=-1;}}},update:(i=function(){return new Promise(function(e){u.forceUpdate(),e(s);})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(i());});})),a}),destroy:function(){d(),l=!0;}};if(!hr(e,t))return u;function d(){c.forEach(function(e){return e()}),c=[];}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e);}),u}}gr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,r=void 0===i||i,a=o.resize,s=void 0===a||a,c=yi(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&l.forEach(function(e){e.addEventListener("scroll",n.update,Ki);}),s&&c.addEventListener("resize",n.update,Ki),function(){r&&l.forEach(function(e){e.removeEventListener("scroll",n.update,Ki);}),s&&c.removeEventListener("resize",n.update,Ki);}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ir({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement});},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,i=void 0===o||o,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,c=void 0===s||s,l={placement:xi(t.placement),variation:Hi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Vi(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vi(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement});},data:{}},ki,ur,sr,dr,ji,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,a=rr(t,{elementContext:"reference"}),s=rr(t,{altBoundary:!0}),c=cr(a,o),l=cr(s,i,r),u=lr(c),d=lr(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d});}}]});var vr="undefined"!=typeof Element,wr="function"==typeof Map,br="function"==typeof Set,kr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function xr(e,t){if(e===t)return !0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return !1;var n,o,i,r;if(Array.isArray(e)){if((n=e.length)!=t.length)return !1;for(o=n;0!==o--;)if(!xr(e[o],t[o]))return !1;return !0}if(wr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return !1;for(r=e.entries();!(o=r.next()).done;)if(!t.has(o.value[0]))return !1;for(r=e.entries();!(o=r.next()).done;)if(!xr(o.value[1],t.get(o.value[0])))return !1;return !0}if(br&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return !1;for(r=e.entries();!(o=r.next()).done;)if(!t.has(o.value[0]))return !1;return !0}if(kr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return !1;for(o=n;0!==o--;)if(e[o]!==t[o])return !1;return !0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return !1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return !1;if(vr&&e instanceof Element)return !1;for(o=n;0!==o--;)if(("_owner"!==i[o]&&"__v"!==i[o]&&"__o"!==i[o]||!e.$$typeof)&&!xr(e[i[o]],t[i[o]]))return !1;return !0}return e!=e&&t!=t}var Cr=function(e,t){try{return xr(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};C(Cr);function Er({className:t,variant:n="default",size:o="16",src:i,alt:r,...a}){const s=E("io-image-icon","grayscale"===n&&[`io-image-icon-${n}`],o&&[`io-image-icon-${o}`],t);return jsxRuntimeExports.jsx("img",{className:s,style:{width:`${o}px`,filter:"grayscale"===n?"grayscale(100%)":"none"},src:i,alt:r,...a})}const Pr=reactExports.forwardRef((n,o)=>{const{title:i,actions:r,className:a,onClose:s,onActionItemClick:c,"data-testid":u="context-menu",...p}=n,m=reactExports.useRef({}),[g,y]=reactExports.useState(0),v=e=>{m.current[e]?.focus(),y(e);};return reactExports.useEffect(()=>{m.current[g]?.focus();},[]),jsxRuntimeExports.jsxs(Q,{ref:o,className:E(a,"context-menu"),onClick:e=>e.stopPropagation(),onKeyDown:e=>F({event:e,currentIndex:g,min:0,max:r.length-1,moveFocus:v,onClose:s}),"data-testid":u,...p,children:[i&&jsxRuntimeExports.jsx(Q.ItemSection,{children:i}),r.map((n,o)=>{const i=n.displayName||n.name,r=n.iconSrc?jsxRuntimeExports.jsx(Er,{size:"16",src:n.iconSrc,alt:`${i} icon`}):n.icon&&jsxRuntimeExports.jsx(P,{size:"16",variant:n.icon});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(Q.Item,{ref:e=>m.current[o]=e,prepend:r,disabled:n.disabled,tabIndex:-1,...R(e=>c(e,n)),"data-testid":`${u}-item-${n.name}`,children:i}),n.separatorAfter&&jsxRuntimeExports.jsx("li",{className:"context-menu-separator","aria-hidden":!0,"data-testid":`${u}-separator`})]},n.name)})]})});Pr.displayName="ContextMenuActionsList";const Lr=()=>void 0!==window.glue42gd||void 0!==window.glue42alert||void 0!==window.glue42dialog||void 0!==window.iodesktop,_r="warning",zr={success:5e3,warning:1e4},jr=e=>"string"==typeof e?e:e?.message?"string"==typeof e.message?e.message:JSON.stringify(e.message):JSON.stringify(e),Hr=async e=>{const{io:t,variant:n,text:o,error:i}=e,r=jr(i);try{if(n===_r&&t.logger.warn(r?`${o} ${r}`:o),!("modals"in t)||!t.modals)throw new Error("Modals are not enabled.");const e={text:o,variant:n,ttl:zr[n]};await t.modals.alerts.request(e);}catch(e){console.warn("Failed to request alert. ",{error:e});}};var qr=function(e){return {ok:!0,result:e}},Jr=function(e){return {ok:!1,error:e}},Yr=function(e,t,n){return !1===t.ok?t:!1===n.ok?n:qr(e(t.result,n.result))},Xr=function(e,t){return !0===t.ok?t:Jr(e(t.error))},Qr=function(){return Qr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qr.apply(this,arguments)};function Zr(e,t){if(e===t)return !0;if(null===e&&null===t)return !0;if(typeof e!=typeof t)return !1;if("object"==typeof e){if(Array.isArray(e)){if(!Array.isArray(t))return !1;if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(!Zr(e[n],t[n]))return !1;return !0}var o=Object.keys(e);if(o.length!==Object.keys(t).length)return !1;for(n=0;n<o.length;n++){if(!t.hasOwnProperty(o[n]))return !1;if(!Zr(e[o[n]],t[o[n]]))return !1}return !0}}var ea=function(e){return Array.isArray(e)},ta=function(e){return "object"==typeof e&&null!==e&&!ea(e)},na=function(e,t){return "expected "+e+", got "+function(e){switch(typeof e){case"string":return "a string";case"number":return "a number";case"boolean":return "a boolean";case"undefined":return "undefined";case"object":return e instanceof Array?"an array":null===e?"null":"an object";default:return JSON.stringify(e)}}(t)},oa=function(e){return e.map(function(e){return "string"==typeof e?"."+e:"["+e+"]"}).join("")},ia=function(e,t){var n=t.at,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);}return n}(t,["at"]);return Qr({at:e+(n||"")},o)},ra=function(){function e(t){var n=this;this.decode=t,this.run=function(e){return Xr(function(t){return {kind:"DecoderError",input:e,at:"input"+(t.at||""),message:t.message||""}},n.decode(e))},this.runPromise=function(e){return function(e){return !0===e.ok?Promise.resolve(e.result):Promise.reject(e.error)}(n.run(e))},this.runWithException=function(e){return function(e){if(!0===e.ok)return e.result;throw e.error}(n.run(e))},this.map=function(t){return new e(function(e){return function(e,t){return !0===t.ok?qr(e(t.result)):t}(t,n.decode(e))})},this.andThen=function(t){return new e(function(e){return function(e,t){return !0===t.ok?e(t.result):t}(function(n){return t(n).decode(e)},n.decode(e))})},this.where=function(t,o){return n.andThen(function(n){return t(n)?e.succeed(n):e.fail(o)})};}return e.string=function(){return new e(function(e){return "string"==typeof e?qr(e):Jr({message:na("a string",e)})})},e.number=function(){return new e(function(e){return "number"==typeof e?qr(e):Jr({message:na("a number",e)})})},e.boolean=function(){return new e(function(e){return "boolean"==typeof e?qr(e):Jr({message:na("a boolean",e)})})},e.constant=function(t){return new e(function(e){return Zr(e,t)?qr(t):Jr({message:"expected "+JSON.stringify(t)+", got "+JSON.stringify(e)})})},e.object=function(t){return new e(function(e){if(ta(e)&&t){var n={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].decode(e[o]);if(!0!==i.ok)return void 0===e[o]?Jr({message:"the key '"+o+"' is required but was not present"}):Jr(ia("."+o,i.error));void 0!==i.result&&(n[o]=i.result);}return qr(n)}return ta(e)?qr(e):Jr({message:na("an object",e)})})},e.array=function(t){return new e(function(e){if(ea(e)&&t){return e.reduce(function(e,n,o){return Yr(function(e,t){return e.concat([t])},e,function(e,n){return Xr(function(e){return ia("["+n+"]",e)},t.decode(e))}(n,o))},qr([]))}return ea(e)?qr(e):Jr({message:na("an array",e)})})},e.tuple=function(t){return new e(function(e){if(ea(e)){if(e.length!==t.length)return Jr({message:"expected a tuple of length "+t.length+", got one of length "+e.length});for(var n=[],o=0;o<t.length;o++){var i=t[o].decode(e[o]);if(!i.ok)return Jr(ia("["+o+"]",i.error));n[o]=i.result;}return qr(n)}return Jr({message:na("a tuple of length "+t.length,e)})})},e.union=function(t,n){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];return e.oneOf.apply(e,[t,n].concat(o))},e.intersection=function(t,n){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];return new e(function(e){return [t,n].concat(o).reduce(function(t,n){return Yr(Object.assign,t,n.decode(e))},qr({}))})},e.anyJson=function(){return new e(function(e){return qr(e)})},e.unknownJson=function(){return new e(function(e){return qr(e)})},e.dict=function(t){return new e(function(e){if(ta(e)){var n={};for(var o in e)if(e.hasOwnProperty(o)){var i=t.decode(e[o]);if(!0!==i.ok)return Jr(ia("."+o,i.error));n[o]=i.result;}return qr(n)}return Jr({message:na("an object",e)})})},e.optional=function(t){return new e(function(e){return null==e?qr(void 0):t.decode(e)})},e.oneOf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(e){for(var n=[],o=0;o<t.length;o++){var i=t[o].decode(e);if(!0===i.ok)return i;n[o]=i.error;}var r=n.map(function(e){return "at error"+(e.at||"")+": "+e.message}).join('", "');return Jr({message:'expected a value matching one of the decoders, got the errors ["'+r+'"]'})})},e.withDefault=function(t,n){return new e(function(e){return qr(function(e,t){return !0===t.ok?t.result:e}(t,n.decode(e)))})},e.valueAt=function(t,n){return new e(function(e){for(var o=e,i=0;i<t.length;i++){if(void 0===o)return Jr({at:oa(t.slice(0,i+1)),message:"path does not exist"});if("string"==typeof t[i]&&!ta(o))return Jr({at:oa(t.slice(0,i+1)),message:na("an object",o)});if("number"==typeof t[i]&&!ea(o))return Jr({at:oa(t.slice(0,i+1)),message:na("an array",o)});o=o[t[i]];}return Xr(function(e){return void 0===o?{at:oa(t),message:"path does not exist"}:ia(oa(t),e)},n.decode(o))})},e.succeed=function(t){return new e(function(e){return qr(t)})},e.fail=function(t){return new e(function(e){return Jr({message:t})})},e.lazy=function(t){return new e(function(e){return t().decode(e)})},e}(),aa=ra.string,sa=ra.number,ca=ra.boolean,la=ra.anyJson;ra.unknownJson;var ua=ra.constant,da=ra.object,fa=ra.array;ra.tuple,ra.dict;var pa=ra.optional,ma=ra.oneOf;ra.union,ra.intersection,ra.withDefault,ra.valueAt,ra.succeed;var ha=ra.fail;ra.lazy;const ga=aa().where(e=>e.length>0,"Expected a non-empty string"),ya=sa().where(e=>e>=0,"Expected a non-negative number");da({name:ga});reactExports.createContext(void 0);const Oa="___platform_prefs___",$a="_launchpad_minimizeToTray",za="_launchpad_pinnedPosition",ja="_launchpad_allowDocking",Ha="_launchpad_dockedAlwaysOnTop",Wa="_launchpad_dockedClaimsSpace",Va="_launchpad_showExtendedArea",Ka="_launchpad_hideLabelsInExtendedArea",Ua="_launchpad_showFavoritesInExtendedArea",Ga="_launchpad_hideFavoritesSection",qa="_launchpad_showRecentAppsInExtendedArea",Ya="_layouts_saveCurrentOnExit",Xa="_layouts_showUnsavedChangesPrompt",Qa="_layouts_showDeletePrompt",Za="_downloads_askForEachDownload",us=ma(ua("add"),ua("align-bottom"),ua("align-bottom-solid"),ua("align-left"),ua("align-left-bottom"),ua("align-left-bottom-solid"),ua("align-left-solid"),ua("align-left-top"),ua("align-left-top-solid"),ua("align-right"),ua("align-right-bottom"),ua("align-right-bottom-solid"),ua("align-right-solid"),ua("align-right-top"),ua("align-right-top-solid"),ua("align-top"),ua("align-top-solid"),ua("always-on-top"),ua("always-on-top-on"),ua("application"),ua("arrow-down-long"),ua("arrow-down-to-bracket"),ua("arrow-left-long"),ua("arrow-right-from-bracket"),ua("arrow-right-long"),ua("arrow-right"),ua("arrow-up"),ua("arrow-up-long"),ua("ban"),ua("bell"),ua("bell-solid"),ua("bookmark"),ua("bullseye-pointer"),ua("certificate"),ua("check"),ua("check-light"),ua("check-solid"),ua("chevron-down"),ua("chevron-left"),ua("chevron-right"),ua("chevron-up"),ua("circle-info"),ua("circle-xmark"),ua("circle-xmark-full"),ua("clock"),ua("clock-rotate-left"),ua("clone"),ua("close"),ua("cog"),ua("cog-solid"),ua("collapse"),ua("copy"),ua("download"),ua("delete-left"),ua("dev-tools"),ua("ellipsis"),ua("ellipsis-vertical"),ua("expand"),ua("envelope"),ua("envelope-open"),ua("exclamation-mark"),ua("expand"),ua("feedback"),ua("filter"),ua("floppy"),ua("floppy-disk-pen"),ua("folder"),ua("folder-open"),ua("globe"),ua("group"),ua("hidden"),ua("home"),ua("house"),ua("info"),ua("keyboard"),ua("layout"),ua("link"),ua("list-ul"),ua("lock"),ua("logo"),ua("minimize"),ua("minimize-down"),ua("paper-plane-top"),ua("paperclip"),ua("pause"),ua("pen-line"),ua("pen-to-square"),ua("pin"),ua("play"),ua("pop-in"),ua("pop-in-widget"),ua("pop-out"),ua("power-off"),ua("publish"),ua("refresh"),ua("resize"),ua("restore"),ua("rotate-right"),ua("search"),ua("search-filled"),ua("sleep"),ua("sliders"),ua("snooze"),ua("spinner"),ua("square"),ua("square-arrow-down"),ua("square-arrow-up"),ua("star"),ua("star-full"),ua("sticky-off"),ua("sticky-off-hover"),ua("sticky-on"),ua("sticky-on-hover"),ua("subscribe"),ua("system-close"),ua("system-maximize"),ua("system-minimize"),ua("thumbs-down"),ua("thumbs-up"),ua("trash"),ua("trash-can"),ua("triangle-exclamation"),ua("unlock"),ua("unpin"),ua("up-to-line"),ua("user"),ua("user-gear"),ua("visible"),ua("workspace")),ds=da({name:ga,displayName:pa(ga),icon:pa(us),iconSrc:pa(ga),disabled:pa(ca()),separatorAfter:pa(ca())}),fs=da({id:ga,title:ga,description:pa(aa()),icon:pa(us),iconSrc:pa(ga),contextMenuActions:pa(fa(ds)),type:ga}),ps=fa(fs),ms=da({name:ga,type:ga}),hs=ma(ua("Left"),ua("Right")),gs=ma(ua("daily"),ua("weekly")),ys=ma(ua("Sunday"),ua("Monday"),ua("Tuesday"),ua("Wednesday"),ua("Thursday"),ua("Friday"),ua("Saturday")),vs=da({customPrefs:pa(la()),_launchpad_collapsedSections:pa(fa(ga)),_launchpad_favorites:pa(ps),_launchpad_recent:pa(fa(ms)),_launchpad_isLayoutsPanelOpen:pa(ca()),_launchpad_isCollapsed:pa(ca()),_launchpad_isPinned:pa(ca()),_launchpad_isDocked:pa(ca()),_launchpad_minimizeToTray:pa(ca()),_launchpad_autoCloseStartingAppsAndWorkspaces:pa(ca()),_launchpad_pinnedPosition:pa(hs),_launchpad_allowDocking:pa(ca()),_launchpad_dockedAlwaysOnTop:pa(ca()),_launchpad_dockedClaimsSpace:pa(ca()),_launchpad_showExtendedArea:pa(ca()),_launchpad_hideLabelsInExtendedArea:pa(ca()),_launchpad_showFavoritesInExtendedArea:pa(ca()),_launchpad_hideFavoritesSection:pa(ca()),_launchpad_showRecentAppsInExtendedArea:pa(ca()),_layouts_restoreLastSaved:pa(ca()),_layouts_saveCurrentOnExit:pa(ca()),_layouts_showUnsavedChangesPrompt:pa(ca()),_layouts_showDeletePrompt:pa(ca()),_downloads_askForEachDownload:pa(ca()),_downloads_location:pa(aa()),_system_scheduleRestart:pa(ca()),_system_scheduleRestartTime:pa(ga),_system_scheduleRestartFrequency:pa(gs),_system_scheduleRestartDay:pa(ys),_system_scheduleShutdown:pa(ca()),_system_scheduleShutdownTime:pa(ga),_system_scheduleShutdownFrequency:pa(gs),_system_scheduleShutdownDay:pa(ys)}),ws=reactExports.createContext(void 0);function xs({prefKey:e}){const t=reactExports.useContext(IOConnectContext),n=reactExports.useContext(ws),o=n?.prefs?.[e],i=n?.isInitialSetupCompleted??!1,[r,s]=reactExports.useState(!i),[u,p]=reactExports.useState(),m=reactExports.useRef(0);reactExports.useEffect(()=>{i&&0===m.current&&s(!1);},[i]);const h=reactExports.useCallback(async n=>{if(!t)return;const o=++m.current;s(!0),p(void 0);const i=async n=>{n&&await Hr({io:t,variant:_r,text:`Failed to update prefKey "${e}".`,error:n}),o===m.current&&(s(!1),n&&p({message:jr(n)}));};let r;if(n instanceof Function)try{r=n((await t.contexts.get(Oa))[e]);}catch(e){return i(e)}else r=n;try{const n=vs.runWithException({[e]:r});await t.contexts.update(Oa,n);}catch(e){return i(e)}await i();},[t,e]);if(void 0===n)throw new Error("usePlatformPref must be used within a PlatformPrefsProvider");return {error:u,isLoading:r,update:h,value:o}}function Vs({className:n,size:o="large",variant:i="default",align:r="up",text:a,...s}){const c=E("io-loader",{[`io-loader-${i}`]:"default"!==i},"normal"===o&&"io-loader-md","small"===o&&"io-loader-sm",r&&[`direction-${r}`],n);return jsxRuntimeExports.jsxs("div",{className:c,role:"status","aria-live":"polite",...s,children:[jsxRuntimeExports.jsx("div",{className:"io-loader-icon"}),a&&jsxRuntimeExports.jsx("div",{className:"io-loader-text",children:a})]})}function Ks({className:t,children:n,...o}){const i=E("io-panel-header",t);return jsxRuntimeExports.jsx(se,{className:i,...o,children:n})}Ks.Title=T,Ks.ButtonGroup=ae,Ks.Button=$,Ks.ButtonIcon=I,Ks.Dropdown=re;const Us=reactExports.forwardRef(({className:t,children:n,...o},i)=>{const r=E("io-panel-body",t);return jsxRuntimeExports.jsx("div",{className:r,ref:i,"data-testid":"panel-body",...o,children:n})});function Gs({className:t,...n}){const o=E("io-panel-footer",t);return jsxRuntimeExports.jsx(ue,{className:o,...n})}function qs({className:t,children:n,...o}){const i=E("io-panel",t);return jsxRuntimeExports.jsx("div",{className:i,"data-testid":"panel",...o,children:n})}function Js({className:t,variant:n="default",children:o,...i}){const r=E("io-pill","default"!==n&&[`io-pill-${n}`],t);return jsxRuntimeExports.jsx("div",{className:r,role:"status",...i,children:o})}function Ys({className:t,variant:n="active",value:o=0,...i}){const r=E("io-progress",n,t);let a;return a=o<0?0:o>100?100:o,jsxRuntimeExports.jsx("div",{className:r,role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,...i,children:jsxRuntimeExports.jsx("div",{className:"io-progress-bar",style:{width:`${a}%`}})})}
1551
+ */var kt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),St="undefined"==typeof Element,Nt=St?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pt=!St&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Et=function(e,t){var n;void 0===t&&(t=!0);var o=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return ""===o||"true"===o||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):Et(e.parentNode))},Lt=function(e,t,n){for(var o=[],i=Array.from(e);i.length;){var r=i.shift();if(!Et(r,!1))if("SLOT"===r.tagName){var a=r.assignedElements(),s=a.length?a:r.children,c=Lt(s,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:r,candidates:c});}else {Nt.call(r,kt)&&n.filter(r)&&(t||!e.includes(r))&&o.push(r);var l=r.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(r),u=!Et(l,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(r));if(l&&u){var d=Lt(!0===l?r.children:l.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:r,candidates:d});}else i.unshift.apply(i,r.children);}}return o},Bt=function(e){return !isNaN(parseInt(e.getAttribute("tabindex"),10))},Ot=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return ""===n||"true"===n}(e))&&!Bt(e)?0:e.tabIndex},Tt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Rt=function(e){return "INPUT"===e.tagName},Gt=function(e){return function(e){return Rt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return !0;var t,n=e.form||Pt(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name);}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return !i||i===e}(e)},Ft=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},Mt=function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return !e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return !0;var i=Nt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Nt.call(i,"details:not([open]) *"))return !0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ft(e)}else {if("function"==typeof o){for(var r=e;e;){var a=e.parentElement,s=Pt(e);if(a&&!a.shadowRoot&&!0===o(a))return Ft(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host;}e=r;}if(function(e){var t,n,o,i,r=e&&Pt(e),a=null===(t=r)||void 0===t?void 0:t.host,s=!1;if(r&&r!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!s&&a;){var c,l,u;s=!(null===(l=a=null===(c=r=Pt(a))||void 0===c?void 0:c.host)||void 0===l||null===(u=l.ownerDocument)||void 0===u||!u.contains(a));}return s}(e))return !e.getClientRects().length;if("legacy-full"!==n)return !0}return !1},Dt=function(e,t){return !(t.disabled||function(e){return Rt(e)&&"hidden"===e.type}(t)||Mt(t,e)||function(e){return "DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return "SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return !!Nt.call(t,"fieldset[disabled] *")||!o.contains(e)}return !0}t=t.parentElement;}return !1}(t))},Wt=function(e,t){return !(Gt(t)||Ot(t)<0||!Dt(e,t))},Vt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return !!(isNaN(t)||t>=0)},Ht=function(e){var t=[],n=[];return e.forEach(function(e,o){var i=!!e.scopeParent,r=i?e.scopeParent:e,a=function(e,t){var n=Ot(e);return n<0&&t&&!Bt(e)?0:n}(r,i),s=i?Ht(e.candidates):r;0===a?i?t.push.apply(t,s):t.push(r):n.push({documentOrder:o,tabIndex:a,item:e,isScope:i,content:s});}),n.sort(Tt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},zt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Lt([e],t.includeContainer,{filter:Wt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Vt}):function(e,t,n){if(Et(e))return [];var o=Array.prototype.slice.apply(e.querySelectorAll(kt));return t&&Nt.call(e,kt)&&o.unshift(e),o.filter(n)}(e,t.includeContainer,Wt.bind(null,t)),Ht(n)};function Xt(e,t,n){let{reference:o,floating:i}=e;const r=ht(t),a=gt(t),s=ft(a),c=ut(t),l="y"===r,u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;let f;switch(c){case"top":f={x:u,y:o.y-i.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-i.width,y:d};break;default:f={x:o.x,y:o.y};}switch(dt(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1);}return f}async function Zt(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:r,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=lt(t,e),m=function(e){return "number"!=typeof e?function(e){return {top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(f),h=s[p?"floating"===d?"reference":"floating":d],g=At(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(h)))||n?h:h.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),b="floating"===d?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),y=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},w=At(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:c}):b);return {top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}const jt=new Set(["left","top"]);function Jt(e){const t=Re(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=ye(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,s=ot(n)!==r||ot(o)!==a;return s&&(n=r,o=a),{width:n,height:o,$:s}}function Yt(e){return ve(e)?e:e.contextElement}function $t(e){const t=Yt(e);if(!ye(t))return rt(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Jt(t);let a=(r?ot(n.width):n.width)/o,s=(r?ot(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const _t=rt(0);function Ut(e){const t=he(e);return Be()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_t}function Qt(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),r=Yt(e);let a=rt(1);t&&(o?ve(o)&&(a=$t(o)):a=$t(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==he(e))&&t}(r,n,o)?Ut(r):rt(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(r){const e=he(r),t=o&&ve(o)?he(o):o;let n=e,i=We(n);for(;i&&o&&t!==n;){const e=$t(i),t=i.getBoundingClientRect(),o=Re(i),r=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=r,l+=a,n=he(i),i=We(n);}}return At({width:u,height:d,x:c,y:l})}function Kt(e,t){const n=Ge(e).scrollLeft;return t?t.left+n:Qt(ge(e)).left+n}function qt(e,t){const n=e.getBoundingClientRect();return {x:n.left+t.scrollLeft-Kt(e,n),y:n.top+t.scrollTop}}const en=new Set(["absolute","fixed"]);function tn(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=he(e),o=ge(e),i=n.visualViewport;let r=o.clientWidth,a=o.clientHeight,s=0,c=0;if(i){r=i.width,a=i.height;const e=Be();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop);}const l=Kt(o);if(l<=0){const e=o.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(o.clientWidth-t.clientWidth-i);a<=25&&(r-=a);}else l<=25&&(r+=l);return {width:r,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ge(e),n=Ge(e),o=e.ownerDocument.body,i=nt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=nt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Kt(e);const s=-n.scrollTop;return "rtl"===Re(o).direction&&(a+=nt(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:a,y:s}}(ge(e));else if(ve(t))o=function(e,t){const n=Qt(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=ye(e)?$t(e):rt(1);return {width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:i*r.x,y:o*r.y}}(t,n);else {const n=Ut(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height};}return At(o)}function nn(e,t){const n=Fe(e);return !(n===t||!ve(n)||Te(n))&&("fixed"===Re(n).position||nn(n,t))}function on(e,t,n){const o=ye(t),i=ge(t),r="fixed"===n,a=Qt(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const c=rt(0);function l(){c.x=Kt(i);}if(o||!o&&!r)if(("body"!==me(t)||Ce(i))&&(s=Ge(t)),o){const e=Qt(t,!0,r,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop;}else i&&l();r&&!o&&i&&l();const u=!i||o||r?rt(0):qt(i,s);return {x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function rn(e){return "static"===Re(e).position}function an(e,t){if(!ye(e)||"fixed"===Re(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ge(e)===n&&(n=n.ownerDocument.body),n}function sn(e,t){const n=he(e);if(Se(e))return n;if(!ye(e)){let t=Fe(e);for(;t&&!Te(t);){if(ve(t)&&!rn(t))return t;t=Fe(t);}return n}let o=an(e,t);for(;o&&Ae(o)&&rn(o);)o=an(o,t);return o&&Te(o)&&rn(o)&&!Le(o)?n:o||function(e){let t=Fe(e);for(;ye(t)&&!Te(t);){if(Le(t))return t;if(Se(t))return null;t=Fe(t);}return null}(e)||n}const cn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r="fixed"===i,a=ge(o),s=!!t&&Se(t.floating);if(o===a||s&&r)return n;let c={scrollLeft:0,scrollTop:0},l=rt(1);const u=rt(0),d=ye(o);if((d||!d&&!r)&&(("body"!==me(o)||Ce(a))&&(c=Ge(o)),ye(o))){const e=Qt(o);l=$t(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop;}const p=!a||d||r?rt(0):qt(a,c);return {width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+p.x,y:n.y*l.y-c.scrollTop*l.y+u.y+p.y}},getDocumentElement:ge,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const r=[..."clippingAncestors"===n?Se(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=De(e,[],!1).filter(e=>ve(e)&&"body"!==me(e)),i=null;const r="fixed"===Re(e).position;let a=r?Fe(e):e;for(;ve(a)&&!Te(a);){const t=Re(a),n=Le(a);n||"fixed"!==t.position||(i=null),(r?!n&&!i:!n&&"static"===t.position&&i&&en.has(i.position)||Ce(a)&&!n&&nn(e,a))?o=o.filter(e=>e!==a):i=t,a=Fe(a);}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=r[0],s=r.reduce((e,n)=>{const o=tn(t,n,i);return e.top=nt(o.top,e.top),e.right=tt(o.right,e.right),e.bottom=tt(o.bottom,e.bottom),e.left=nt(o.left,e.left),e},tn(t,a,i));return {width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:sn,getElementRects:async function(e){const t=this.getOffsetParent||sn,n=this.getDimensions,o=await n(e.floating);return {reference:on(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Jt(e);return {width:t,height:n}},getScale:$t,isElement:ve,isRTL:function(e){return "rtl"===Re(e).direction}};function ln(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function un(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=Yt(e),u=i||r?[...l?De(l):[],...De(t)]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n);});const d=l&&s?function(e,t){let n,o=null;const i=ge(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null;}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),r();const l=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=l;if(s||t(),!p||!f)return;const m={rootMargin:-it(d)+"px "+-it(i.clientWidth-(u+p))+"px "+-it(i.clientHeight-(d+f))+"px "+-it(u)+"px",threshold:nt(0,tt(1,c))||1};let h=!0;function g(t){const o=t[0].intersectionRatio;if(o!==c){if(!h)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7);},1e3);}1!==o||ln(l,e.getBoundingClientRect())||a(),h=!1;}try{o=new IntersectionObserver(g,{...m,root:i.ownerDocument});}catch(e){o=new IntersectionObserver(g,m);}o.observe(e);}(!0),r}(l,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver(e=>{let[o]=e;o&&o.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t);})),n();}),l&&!c&&m.observe(l),m.observe(t));let h=c?Qt(e):null;return c&&function t(){const o=Qt(e);h&&!ln(h,o)&&n();h=o,p=requestAnimationFrame(t);}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n);}),null==d||d(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(p);}}const dn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:i}=e,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),a=ut(n),s=dt(n),c="y"===ht(n),l=jt.has(a)?-1:1,u=r&&c?-1:1,d=lt(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:a}}}}},pn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:r}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return {x:t,y:n}}},...l}=lt(e,t),u={x:n,y:o},d=await r.detectOverflow(t,l),p=ht(ut(i)),f=pt(p);let m=u[f],h=u[p];if(a){const e="y"===f?"bottom":"right";m=ct(m+d["y"===f?"top":"left"],m,m-d[e]);}if(s){const e="y"===p?"bottom":"right";h=ct(h+d["y"===p?"top":"left"],h,h-d[e]);}const g=c.fn({...t,[f]:m,[p]:h});return {...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:a,[p]:s}}}}}},fn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=lt(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return {};const b=ut(i),v=ht(s),y=ut(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),I=p||(y||!h?[xt(s)]:function(e){const t=xt(e);return [bt(e),t,bt(t)]}(s)),C="none"!==m;!p&&C&&I.push(...Ct(s,h,m,w));const x=[s,...I],A=await c.detectOverflow(t,g),k=[];let S=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&k.push(A[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=dt(e),i=gt(e),r=ft(i);let a="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(a=xt(a)),[a,xt(a)]}(i,a,w);k.push(A[e[0]],A[e[1]]);}if(S=[...S,{placement:i,overflows:k}],!k.every(e=>e<=0)){var N,P;const e=((null==(N=r.flip)?void 0:N.index)||0)+1,t=x[e];if(t){if(!("alignment"===d&&v!==ht(t))||S.every(e=>ht(e.placement)!==v||e.overflows[0]>0))return {data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(P=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(f){case"bestFit":{var E;const e=null==(E=S.filter(e=>{if(C){const t=ht(e.placement);return t===v||"y"===t}return !0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:E[0];e&&(n=e);break}case"initialPlacement":n=s;}if(i!==n)return {reset:{placement:n}}}return {}}}},mn=(e,t,n)=>{const o=new Map,i={platform:cn,...n},r={...i.platform,_c:o};return (async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Xt(l,o,c),p=o,f={},m=0;for(let n=0;n<s.length;n++){var h;const{name:r,fn:g}=s[n],{x:b,y:v,data:y,reset:w}=await g({x:u,y:d,initialPlacement:o,placement:p,strategy:i,middlewareData:f,rects:l,platform:{...a,detectOverflow:null!=(h=a.detectOverflow)?h:Zt},elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=v?v:d,f={...f,[r]:{...f[r],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(l=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:u,y:d}=Xt(l,p,c))),n=-1);}return {x:u,y:d,placement:p,strategy:i,middlewareData:f}})(e,t,{...i,platform:r})};var hn="undefined"!=typeof document?reactExports.useLayoutEffect:function(){};function gn(e,t){if(e===t)return !0;if(typeof e!=typeof t)return !1;if("function"==typeof e&&e.toString()===t.toString())return !0;let n,o,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return !1;for(o=n;0!==o--;)if(!gn(e[o],t[o]))return !1;return !0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return !1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(t,i[o]))return !1;for(o=n;0!==o--;){const n=i[o];if(("_owner"!==n||!e.$$typeof)&&!gn(e[n],t[n]))return !1}return !0}return e!=e&&t!=t}function bn(e){if("undefined"==typeof window)return 1;return (e.ownerDocument.defaultView||window).devicePixelRatio||1}function vn(e,t){const n=bn(e);return Math.round(t*n)/n}function yn(e){const t=reactExports.useRef(e);return hn(()=>{t.current=e;}),t}const wn=(e,t)=>({...dn(e),options:[e,t]}),In=(e,t)=>({...pn(e),options:[e,t]}),Cn=(e,t)=>({...fn(e),options:[e,t]});function xn(e){return reactExports.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t);});},e)}const An={...o},kn=An.useInsertionEffect||(e=>e());function Sn(e){const t=reactExports.useRef(()=>{});return kn(()=>{t.current=e;}),reactExports.useCallback(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)},[])}const Nn="ArrowUp",Pn="ArrowDown",En="ArrowLeft",Ln="ArrowRight";function Bn(e,t,n){return Math.floor(e/t)!==n}function On(e,t){return t<0||t>=e.current.length}function Tn(e,t){return Gn(e,{disabledIndices:t})}function Rn(e,t){return Gn(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Gn(e,t){let{startingIndex:n=-1,decrement:o=!1,disabledIndices:i,amount:r=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=o?-r:r;}while(s>=0&&s<=a.length-1&&Dn(a,s,i));return s}function Fn(e,t,n,o,i){if(-1===e)return -1;const r=n.indexOf(e),a=t[e];switch(i){case"tl":return r;case"tr":return a?r+a.width-1:r;case"bl":return a?r+(a.height-1)*o:r;case"br":return n.lastIndexOf(e)}}function Mn(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Dn(e,t,n){if(n)return n.includes(t);const o=e[t];return null==o||o.hasAttribute("disabled")||"true"===o.getAttribute("aria-disabled")}var Wn="undefined"!=typeof document?reactExports.useLayoutEffect:reactExports.useEffect;function Vn(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Hn=reactExports.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function zn(e){const{children:t,elementsRef:n,labelsRef:i}=e,[r,a]=reactExports.useState(()=>new Map),s=reactExports.useCallback(e=>{a(t=>new Map(t).set(e,null));},[]),c=reactExports.useCallback(e=>{a(t=>{const n=new Map(t);return n.delete(e),n});},[]);return Wn(()=>{const e=new Map(r);Array.from(e.keys()).sort(Vn).forEach((t,n)=>{e.set(t,n);}),function(e,t){if(e.size!==t.size)return !1;for(const[n,o]of e.entries())if(o!==t.get(n))return !1;return !0}(r,e)||a(e);},[r]),reactExports.createElement(Hn.Provider,{value:reactExports.useMemo(()=>({register:s,unregister:c,map:r,elementsRef:n,labelsRef:i}),[s,c,r,n,i])},t)}function Xn(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:i,map:r,elementsRef:a,labelsRef:s}=reactExports.useContext(Hn),[c,l]=reactExports.useState(null),u=reactExports.useRef(null),d=reactExports.useCallback(e=>{if(u.current=e,null!==c&&(a.current[c]=e,s)){var n;const o=void 0!==t;s.current[c]=o?t:null!=(n=null==e?void 0:e.textContent)?n:null;}},[c,a,s,t]);return Wn(()=>{const e=u.current;if(e)return n(e),()=>{i(e);}},[n,i]),Wn(()=>{const e=u.current?r.get(u.current):null;null!=e&&l(e);},[r]),reactExports.useMemo(()=>({ref:d,index:null==c?-1:c}),[c,d])}function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);}return e},Zn.apply(this,arguments)}let jn=!1,Jn=0;const Yn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Jn++;const $n=An.useId||function(){const[e,t]=reactExports.useState(()=>jn?Yn():void 0);return Wn(()=>{null==e&&t(Yn());},[]),reactExports.useEffect(()=>{jn=!0;},[]),e};function Qn(){const e=new Map;return {emit(t,n){var o;null==(o=e.get(t))||o.forEach(e=>e(n));},on(t,n){e.set(t,[...e.get(t)||[],n]);},off(t,n){var o;e.set(t,(null==(o=e.get(t))?void 0:o.filter(e=>e!==n))||[]);}}}const Kn=reactExports.createContext(null),qn=reactExports.createContext(null),eo=()=>{var e;return (null==(e=reactExports.useContext(Kn))?void 0:e.id)||null},to=()=>reactExports.useContext(qn);function no(e){const{children:t,id:n}=e,i=eo();return reactExports.createElement(Kn.Provider,{value:reactExports.useMemo(()=>({id:n,parentId:i}),[n,i])},t)}function oo(e){const{children:t}=e,n=reactExports.useRef([]),i=reactExports.useCallback(e=>{n.current=[...n.current,e];},[]),r=reactExports.useCallback(e=>{n.current=n.current.filter(t=>t!==e);},[]),a=reactExports.useState(()=>Qn())[0];return reactExports.createElement(qn.Provider,{value:reactExports.useMemo(()=>({nodesRef:n,addNode:i,removeNode:r,events:a}),[i,r,a])},t)}function io(e){return "data-floating-ui-"+e}function ro(e){const t=reactExports.useRef(e);return Wn(()=>{t.current=e;}),t}const ao=io("safe-polygon");function so(e,t,n){return n&&!$e(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let co=0;function lo(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:o=!0,sync:i=!1}=t;o&&cancelAnimationFrame(co);const r=()=>null==e?void 0:e.focus({preventScroll:n});i?r():co=requestAnimationFrame(r);}function uo(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),o=n;for(;o.length;)o=e.filter(e=>{var t;return null==(t=o)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(o);return n}let po=new WeakMap,fo=new WeakSet,mo={},ho=0;const go=e=>e&&(e.host||go(e.parentNode));function bo(e,t,n,o){const i="data-floating-ui-inert",r=o?"inert":n?"aria-hidden":null,a=((e,t)=>t.map(t=>{if(e.contains(t))return t;const n=go(t);return e.contains(n)?n:null}).filter(e=>null!=e))(t,e),s=new Set,c=new Set(a),l=[];mo[i]||(mo[i]=new WeakMap);const u=mo[i];return a.forEach(function e(t){if(!t||s.has(t))return;s.add(t),t.parentNode&&e(t.parentNode);}),function e(t){if(!t||c.has(t))return;[].forEach.call(t.children,t=>{if("script"!==me(t))if(s.has(t))e(t);else {const e=r?t.getAttribute(r):null,n=null!==e&&"false"!==e,o=(po.get(t)||0)+1,a=(u.get(t)||0)+1;po.set(t,o),u.set(t,a),l.push(t),1===o&&n&&fo.add(t),1===a&&t.setAttribute(i,""),!n&&r&&t.setAttribute(r,"true");}});}(t),s.clear(),ho++,()=>{l.forEach(e=>{const t=(po.get(e)||0)-1,n=(u.get(e)||0)-1;po.set(e,t),u.set(e,n),t||(!fo.has(e)&&r&&e.removeAttribute(r),fo.delete(e)),n||e.removeAttribute(i);}),ho--,ho||(po=new WeakMap,po=new WeakMap,fo=new WeakSet,mo={});}}function vo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=_e(e[0]).body;return bo(e.concat(Array.from(o.querySelectorAll("[aria-live]"))),o,t,n)}const yo=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function wo(e,t){const n=zt(e,yo());"prev"===t&&n.reverse();const o=n.indexOf(Ve(_e(e)));return n.slice(o+1)[0]}function Io(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return !o||!He(n,o)}const Co={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function xo(e){"Tab"===e.key&&(e.target,clearTimeout(void 0));}const Ao=reactExports.forwardRef(function(e,t){const[n,i]=reactExports.useState();Wn(()=>(Je()&&i("button"),document.addEventListener("keydown",xo),()=>{document.removeEventListener("keydown",xo);}),[]);const r={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[io("focus-guard")]:"",style:Co};return reactExports.createElement("span",Zn({},e,r))}),ko=reactExports.createContext(null),So="data-floating-ui-focusable";function No(e){return e?e.hasAttribute(So)?e:e.querySelector("["+So+"]")||e:null}let Po=[];function Eo(e){Po=Po.filter(e=>e.isConnected);let t=e;if(t&&"body"!==me(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return !1!==Nt.call(e,kt)&&Wt(t,e)}(t,yo())){const e=zt(t,yo())[0];e&&(t=e);}Po.push(t),Po.length>20&&(Po=Po.slice(-20));}}function Lo(){return Po.slice().reverse().find(e=>e.isConnected)}const Bo=reactExports.forwardRef(function(e,t){return reactExports.createElement("button",Zn({},e,{type:"button",ref:t,tabIndex:-1,style:Co}))});function Oo(e){const{context:t,children:n,disabled:i=!1,order:r=["content"],guards:a=!0,initialFocus:s=0,returnFocus:c=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:p=!0}=e,{open:f,refs:m,nodeId:h,onOpenChange:g,events:b,dataRef:v,floatingId:y,elements:{domReference:w,floating:I}}=t,C="number"==typeof s&&s<0,x=et(w)&&C,A="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||a,k=ro(r),S=ro(s),N=ro(c),P=to(),E=reactExports.useContext(ko),L=reactExports.useRef(null),B=reactExports.useRef(null),O=reactExports.useRef(!1),T=reactExports.useRef(!1),R=reactExports.useRef(-1),G=null!=E,F=No(I),M=Sn(function(e){return void 0===e&&(e=F),e?zt(e,yo()):[]}),D=Sn(e=>{const t=M(e);return k.current.map(e=>w&&"reference"===e?w:F&&"floating"===e?F:t).filter(Boolean).flat()});function W(e){return !i&&d&&u?reactExports.createElement(Bo,{ref:"start"===e?L:B,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}reactExports.useEffect(()=>{if(i)return;if(!u)return;function e(e){if("Tab"===e.key){He(F,Ve(_e(F)))&&0===M().length&&!x&&qe(e);const t=D(),n=Qe(e);"reference"===k.current[0]&&n===w&&(qe(e),e.shiftKey?lo(t[t.length-1]):lo(t[1])),"floating"===k.current[1]&&n===F&&e.shiftKey&&(qe(e),lo(t[0]));}}const t=_e(F);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e);}},[i,w,F,u,k,x,M,D]),reactExports.useEffect(()=>{if(!i&&I)return I.addEventListener("focusin",e),()=>{I.removeEventListener("focusin",e);};function e(e){const t=Qe(e),n=M().indexOf(t);-1!==n&&(R.current=n);}},[i,I,M]),reactExports.useEffect(()=>{if(!i&&p)return I&&ye(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),I.addEventListener("focusout",t),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),I.removeEventListener("focusout",t);}):void 0;function e(){T.current=!0,setTimeout(()=>{T.current=!1;});}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(He(w,t)||He(I,t)||He(t,I)||He(null==E?void 0:E.portalNode,t)||null!=t&&t.hasAttribute(io("focus-guard"))||P&&(uo(P.nodesRef.current,h).find(e=>{var n,o;return He(null==(n=e.context)?void 0:n.elements.floating,t)||He(null==(o=e.context)?void 0:o.elements.domReference,t)})||function(e,t){var n;let o=[],i=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;i;){const t=e.find(e=>e.id===i);i=null==t?void 0:t.parentId,t&&(o=o.concat(t));}return o}(P.nodesRef.current,h).find(e=>{var n,o;return (null==(n=e.context)?void 0:n.elements.floating)===t||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(l&&n&&Ve(_e(F))===_e(F).body){ye(F)&&F.focus();const e=R.current,t=M(),n=t[e]||t[t.length-1]||F;ye(n)&&n.focus();}!x&&u||!t||!n||T.current||t===Lo()||(O.current=!0,g(!1,e,"focus-out"));});}},[i,w,I,F,u,h,P,E,g,p,l,M,x]),reactExports.useEffect(()=>{var e;if(i)return;const t=Array.from((null==E||null==(e=E.portalNode)?void 0:e.querySelectorAll("["+io("portal")+"]"))||[]);if(I){const e=[I,...t,L.current,B.current,k.current.includes("reference")||x?w:null].filter(e=>null!=e),n=u||x?vo(e,A,!A):vo(e);return ()=>{n();}}},[i,w,I,u,k,E,x,A]),Wn(()=>{if(i||!ye(F))return;const e=Ve(_e(F));queueMicrotask(()=>{const t=D(F),n=S.current,o=("number"==typeof n?t[n]:n.current)||F,i=He(F,e);C||i||!f||lo(o,{preventScroll:o===F});});},[i,f,F,C,D,S]),Wn(()=>{if(i||!F)return;let e=!1;const t=_e(F),n=Ve(t);let o=v.current.openEvent;function r(t){let{open:n,reason:i,event:r,nested:a}=t;n&&(o=r),"escape-key"===i&&m.domReference.current&&Eo(m.domReference.current),"hover"===i&&"mouseleave"===r.type&&(O.current=!0),"outside-press"===i&&(a?(O.current=!1,e=!0):O.current=!(Ze(r)||je(r)));}Eo(n),b.on("openchange",r);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Co),G&&w&&w.insertAdjacentElement("afterend",a),()=>{b.off("openchange",r);const n=Ve(t),i=He(I,n)||P&&uo(P.nodesRef.current,h).some(e=>{var t;return He(null==(t=e.context)?void 0:t.elements.floating,n)});(i||o&&["click","mousedown"].includes(o.type))&&m.domReference.current&&Eo(m.domReference.current);const s="boolean"==typeof N.current?Lo()||a:N.current.current||a;queueMicrotask(()=>{N.current&&!O.current&&ye(s)&&(s===n||n===t.body||i)&&s.focus({preventScroll:e}),a.remove();});}},[i,I,F,N,v,m,b,P,h,G,w]),reactExports.useEffect(()=>{queueMicrotask(()=>{O.current=!1;});},[i]),Wn(()=>{if(!i&&E)return E.setFocusManagerState({modal:u,closeOnFocusOut:p,open:f,onOpenChange:g,refs:m}),()=>{E.setFocusManagerState(null);}},[i,E,u,f,g,m,p]),Wn(()=>{if(i)return;if(!F)return;if("function"!=typeof MutationObserver)return;if(C)return;const e=()=>{const e=F.getAttribute("tabindex"),t=M(),n=Ve(_e(I)),o=t.indexOf(n);-1!==o&&(R.current=o),k.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&F.setAttribute("tabindex","0"):"-1"!==e&&F.setAttribute("tabindex","-1");};e();const t=new MutationObserver(e);return t.observe(F,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect();}},[i,I,F,m,k,M,C]);const V=!i&&A&&(!u||!x)&&(G||u);return reactExports.createElement(reactExports.Fragment,null,V&&reactExports.createElement(Ao,{"data-type":"inside",ref:null==E?void 0:E.beforeInsideRef,onFocus:e=>{if(u){const e=D();lo("reference"===r[0]?e[0]:e[e.length-1]);}else if(null!=E&&E.preserveTabOrder&&E.portalNode)if(O.current=!1,Io(e,E.portalNode)){const e=wo(document.body,"next")||w;null==e||e.focus();}else {var t;null==(t=E.beforeOutsideRef.current)||t.focus();}}}),!x&&W("start"),n,W("end"),V&&reactExports.createElement(Ao,{"data-type":"inside",ref:null==E?void 0:E.afterInsideRef,onFocus:e=>{if(u)lo(D()[0]);else if(null!=E&&E.preserveTabOrder&&E.portalNode)if(p&&(O.current=!0),Io(e,E.portalNode)){const e=wo(document.body,"prev")||w;null==e||e.focus();}else {var t;null==(t=E.afterOutsideRef.current)||t.focus();}}}))}function To(e){return ye(e.target)&&"BUTTON"===e.target.tagName}function Ro(e){return Ke(e)}const Go={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Fo={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Mo=e=>{var t,n;return {escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Do(e){const{open:t=!1,onOpenChange:n,elements:i}=e,r=$n(),a=reactExports.useRef({}),[s]=reactExports.useState(()=>Qn()),c=null!=eo();const[l,u]=reactExports.useState(i.reference),d=Sn((e,t,o)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:o,nested:c}),null==n||n(e,t,o);}),p=reactExports.useMemo(()=>({setPositionReference:u}),[]),f=reactExports.useMemo(()=>({reference:l||i.reference||null,floating:i.floating||null,domReference:i.reference}),[l,i.reference,i.floating]);return reactExports.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:f,events:s,floatingId:r,refs:p}),[t,d,f,s,r,p])}function Wo(e){void 0===e&&(e={});const{nodeId:t}=e,n=Do({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[a,s]=reactExports.useState(null),[c,l]=reactExports.useState(null),u=(null==r?void 0:r.domReference)||a,d=reactExports.useRef(null),p=to();Wn(()=>{u&&(d.current=u);},[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,p]=reactExports.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=reactExports.useState(i);gn(f,i)||m(i);const[h,g]=reactExports.useState(null),[b,v]=reactExports.useState(null),w=reactExports.useCallback(e=>{e!==A.current&&(A.current=e,g(e));},[]),I=reactExports.useCallback(e=>{e!==k.current&&(k.current=e,v(e));},[]),C=a||h,x=s||b,A=reactExports.useRef(null),k=reactExports.useRef(null),S=reactExports.useRef(d),N=null!=l,P=yn(l),E=yn(r),L=yn(u),B=reactExports.useCallback(()=>{if(!A.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};E.current&&(e.platform=E.current),mn(A.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==L.current};O.current&&!gn(S.current,t)&&(S.current=t,reactDomExports.flushSync(()=>{p(t);}));});},[f,t,n,E,L]);hn(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})));},[u]);const O=reactExports.useRef(!1);hn(()=>(O.current=!0,()=>{O.current=!1;}),[]),hn(()=>{if(C&&(A.current=C),x&&(k.current=x),C&&x){if(P.current)return P.current(C,x,B);B();}},[C,x,B,P,N]);const T=reactExports.useMemo(()=>({reference:A,floating:k,setReference:w,setFloating:I}),[w,I]),R=reactExports.useMemo(()=>({reference:C,floating:x}),[C,x]),G=reactExports.useMemo(()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=vn(R.floating,d.x),o=vn(R.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+o+"px)",...bn(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,c,R.floating,d.x,d.y]);return reactExports.useMemo(()=>({...d,update:B,refs:T,elements:R,floatingStyles:G}),[d,B,T,R,G])}({...e,elements:{...r,...c&&{reference:c}}}),m=reactExports.useCallback(e=>{const t=ve(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t);},[f.refs]),h=reactExports.useCallback(e=>{(ve(e)||null===e)&&(d.current=e,s(e)),(ve(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!ve(e))&&f.refs.setReference(e);},[f.refs]),g=reactExports.useMemo(()=>({...f.refs,setReference:h,setPositionReference:m,domReference:d}),[f.refs,h,m]),b=reactExports.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=reactExports.useMemo(()=>({...f,...i,refs:g,elements:b,nodeId:t}),[f,g,b,t,i]);return Wn(()=>{i.dataRef.current.floatingContext=v;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=v);}),reactExports.useMemo(()=>({...f,context:v,refs:g,elements:b}),[f,g,b,v])}const Vo="active",Ho="selected";function zo(e,t,n){const o=new Map,i="item"===n;let r=e;if(i&&e){const{[Vo]:t,[Ho]:n,...o}=e;r=o;}return {..."floating"===n&&{tabIndex:-1,[So]:""},...r,...t.map(t=>{const o=t?t[n]:null;return "function"==typeof o?e?o(e):null:o}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,r]=t;var a;i&&[Vo,Ho].includes(n)||(0===n.indexOf("on")?(o.has(n)||o.set(n,[]),"function"==typeof r&&(null==(a=o.get(n))||a.push(r),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return null==(e=o.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)})):e[n]=r);}),e):e,{})}}let Xo=!1;function Zo(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function jo(e,t){return Zo(t,e===Nn||e===Pn,e===En||e===Ln)}function Jo(e,t,n){return Zo(t,e===Pn,n?e===En:e===Ln)||"Enter"===e||" "===e||""===e}function Yo(e,t,n){return Zo(t,n?e===Ln:e===En,e===Nn)}function $o(e,t){const{open:n,onOpenChange:i,elements:r}=e,{listRef:a,activeIndex:s,onNavigate:c=()=>{},enabled:l=!0,selectedIndex:u=null,allowEscape:d=!1,loop:p=!1,nested:f=!1,rtl:m=!1,virtual:h=!1,focusItemOnOpen:g="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:v=!0,disabledIndices:y,orientation:w="vertical",cols:I=1,scrollItemIntoView:C=!0,virtualItemRef:x,itemSizes:A,dense:k=!1}=t;const S=ro(No(r.floating)),N=eo(),P=to(),E=Sn(c),L=et(r.domReference),B=reactExports.useRef(g),O=reactExports.useRef(null!=u?u:-1),T=reactExports.useRef(null),R=reactExports.useRef(!0),G=reactExports.useRef(E),F=reactExports.useRef(!!r.floating),M=reactExports.useRef(n),D=reactExports.useRef(!1),W=reactExports.useRef(!1),V=ro(y),H=ro(n),z=ro(C),X=ro(u),[Z,j]=reactExports.useState(),[J,Y]=reactExports.useState(),$=Sn(function(e,t,n){function o(e){h?(j(e.id),null==P||P.events.emit("virtualfocus",e),x&&(x.current=e)):lo(e,{preventScroll:!0,sync:!(!ze().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!Je())&&(Xo||D.current)});}void 0===n&&(n=!1);const i=e.current[t.current];i&&o(i),requestAnimationFrame(()=>{const r=e.current[t.current]||i;if(!r)return;i||o(r);const a=z.current;a&&U&&(n||!R.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a));});});Wn(()=>{document.createElement("div").focus({get preventScroll(){return Xo=!0,!1}});},[]),Wn(()=>{l&&(n&&r.floating?B.current&&null!=u&&(W.current=!0,O.current=u,E(u)):F.current&&(O.current=-1,G.current(null)));},[l,n,r.floating,u,E]),Wn(()=>{if(l&&n&&r.floating)if(null==s){if(D.current=!1,null!=X.current)return;if(F.current&&(O.current=-1,$(a,O)),(!M.current||!F.current)&&B.current&&(null!=T.current||!0===B.current&&null==T.current)){let e=0;const t=()=>{if(null==a.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t);}e++;}else O.current=null==T.current||Jo(T.current,w,m)||f?Tn(a,V.current):Rn(a,V.current),T.current=null,E(O.current);};t();}}else On(a,s)||(O.current=s,$(a,O,W.current),W.current=!1);},[l,n,r.floating,s,X,f,a,w,m,E,$,V]),Wn(()=>{var e;if(!l||r.floating||!P||h||!F.current)return;const t=P.nodesRef.current,n=null==(e=t.find(e=>e.id===N))||null==(e=e.context)?void 0:e.elements.floating,o=Ve(_e(r.floating)),i=t.some(e=>e.context&&He(e.context.elements.floating,o));n&&!i&&R.current&&n.focus({preventScroll:!0});},[l,r.floating,P,N,h]),Wn(()=>{if(l&&P&&h&&!N)return P.events.on("virtualfocus",e),()=>{P.events.off("virtualfocus",e);};function e(e){Y(e.id),x&&(x.current=e);}},[l,P,h,N,x]),Wn(()=>{G.current=E,F.current=!!r.floating;}),Wn(()=>{n||(T.current=null);},[n]),Wn(()=>{M.current=n;},[n]);const _=null!=s,U=reactExports.useMemo(()=>{function e(e){if(!n)return;const t=a.current.indexOf(e);-1!==t&&E(t);}const t={onFocus(t){let{currentTarget:n}=t;e(n);},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...b&&{onMouseMove(t){let{currentTarget:n}=t;e(n);},onPointerLeave(e){let{pointerType:t}=e;R.current&&"touch"!==t&&(O.current=-1,$(a,O),E(null),h||lo(S.current,{preventScroll:!0}));}}};return t},[n,S,$,b,a,E,h]),Q=Sn(e=>{if(R.current=!1,D.current=!0,229===e.which)return;if(!H.current&&e.currentTarget===S.current)return;if(f&&Yo(e.key,w,m))return qe(e),i(!1,e.nativeEvent,"list-navigation"),void(ye(r.domReference)&&(h?null==P||P.events.emit("virtualfocus",r.domReference):r.domReference.focus()));const t=O.current,o=Tn(a,y),s=Rn(a,y);if(L||("Home"===e.key&&(qe(e),O.current=o,E(O.current)),"End"===e.key&&(qe(e),O.current=s,E(O.current))),I>1){const t=A||Array.from({length:a.current.length},()=>({width:1,height:1})),n=function(e,t,n){const o=[];let i=0;return e.forEach((e,r)=>{let{width:a,height:s}=e;if(a>t&&"production"!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+r+" is greater than grid columns");let c=!1;for(n&&(i=0);!c;){const e=[];for(let n=0;n<a;n++)for(let o=0;o<s;o++)e.push(i+n+o*t);i%t+a<=t&&e.every(e=>null==o[e])?(e.forEach(e=>{o[e]=r;}),c=!0):i++;}}),[...o]}(t,I,k),i=n.findIndex(e=>null!=e&&!Dn(a.current,e,y)),r=n.reduce((e,t,n)=>null==t||Dn(a.current,t,y)?e:n,-1),c=n[function(e,t){let{event:n,orientation:o,loop:i,rtl:r,cols:a,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}=t,p=u;if(n.key===Nn){if(d&&qe(n),-1===u)p=l;else if(p=Gn(e,{startingIndex:p,amount:a,decrement:!0,disabledIndices:s}),i&&(u-a<c||p<0)){const e=u%a,t=l%a,n=l-(t-e);p=t===e?l:t>e?n:n-a;}On(e,p)&&(p=u);}if(n.key===Pn&&(d&&qe(n),-1===u?p=c:(p=Gn(e,{startingIndex:u,amount:a,disabledIndices:s}),i&&u+a>l&&(p=Gn(e,{startingIndex:u%a-a,amount:a,disabledIndices:s}))),On(e,p)&&(p=u)),"both"===o){const t=it(u/a);n.key===(r?En:Ln)&&(d&&qe(n),u%a!==a-1?(p=Gn(e,{startingIndex:u,disabledIndices:s}),i&&Bn(p,a,t)&&(p=Gn(e,{startingIndex:u-u%a-1,disabledIndices:s}))):i&&(p=Gn(e,{startingIndex:u-u%a-1,disabledIndices:s})),Bn(p,a,t)&&(p=u)),n.key===(r?Ln:En)&&(d&&qe(n),u%a!==0?(p=Gn(e,{startingIndex:u,decrement:!0,disabledIndices:s}),i&&Bn(p,a,t)&&(p=Gn(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}))):i&&(p=Gn(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s})),Bn(p,a,t)&&(p=u));const o=it(l/a)===t;On(e,p)&&(p=i&&o?n.key===(r?Ln:En)?l:Gn(e,{startingIndex:u-u%a-1,disabledIndices:s}):u);}return p}({current:n.map(e=>null!=e?a.current[e]:null)},{event:e,orientation:w,loop:p,rtl:m,cols:I,disabledIndices:Mn([...y||a.current.map((e,t)=>Dn(a.current,t)?t:void 0),void 0],n),minIndex:i,maxIndex:r,prevIndex:Fn(O.current>s?o:O.current,t,n,I,e.key===Pn?"bl":e.key===(m?En:Ln)?"tr":"tl"),stopEvent:!0})];if(null!=c&&(O.current=c,E(O.current)),"both"===w)return}if(jo(e.key,w)){if(qe(e),n&&!h&&Ve(e.currentTarget.ownerDocument)===e.currentTarget)return O.current=Jo(e.key,w,m)?o:s,void E(O.current);Jo(e.key,w,m)?O.current=p?t>=s?d&&t!==a.current.length?-1:o:Gn(a,{startingIndex:t,disabledIndices:y}):Math.min(s,Gn(a,{startingIndex:t,disabledIndices:y})):O.current=p?t<=o?d&&-1!==t?a.current.length:s:Gn(a,{startingIndex:t,decrement:!0,disabledIndices:y}):Math.max(o,Gn(a,{startingIndex:t,decrement:!0,disabledIndices:y})),On(a,O.current)?E(null):E(O.current);}}),K=reactExports.useMemo(()=>h&&n&&_&&{"aria-activedescendant":J||Z},[h,n,_,J,Z]),q=reactExports.useMemo(()=>({"aria-orientation":"both"===w?void 0:w,...!et(r.domReference)&&K,onKeyDown:Q,onPointerMove(){R.current=!0;}}),[K,Q,r.domReference,w]),ee=reactExports.useMemo(()=>{function e(e){"auto"===g&&Ze(e.nativeEvent)&&(B.current=!0);}return {...K,onKeyDown(e){R.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),r=t||o,s=function(e,t,n){return Zo(t,n?e===En:e===Ln,e===Pn)}(e.key,w,m),c=Yo(e.key,w,m),l=jo(e.key,w),d=(f?s:l)||"Enter"===e.key||""===e.key.trim();if(h&&n){const t=null==P?void 0:P.nodesRef.current.find(e=>null==e.parentId),n=P&&t?function(e,t){let n,o=-1;return function t(i,r){r>o&&(n=i,o=r),uo(e,i).forEach(e=>{t(e.id,r+1);});}(t,0),e.find(e=>e.id===n)}(P.nodesRef.current,t.id):null;if(r&&n&&x){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||c){var p,g;const o=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,i=c&&!o?null==(g=n.context)?void 0:g.elements.domReference:s?a.current.find(e=>(null==e?void 0:e.id)===Z):null;i&&(qe(e),i.dispatchEvent(t),Y(void 0));}var b;if((l||o)&&n.context)if(n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return qe(e),void(null==(b=n.context.elements.domReference)||b.dispatchEvent(t))}return Q(e)}(n||v||!t)&&(d&&(T.current=f&&l?null:e.key),f?s&&(qe(e),n?(O.current=Tn(a,V.current),E(O.current)):i(!0,e.nativeEvent,"list-navigation")):l&&(null!=u&&(O.current=u),qe(e),!n&&v?i(!0,e.nativeEvent,"list-navigation"):Q(e),n&&E(O.current)));},onFocus(){n&&!h&&E(null);},onPointerDown:function(e){B.current=g,"auto"===g&&je(e.nativeEvent)&&(B.current=!0);},onMouseDown:e,onClick:e}},[Z,K,Q,V,g,a,f,E,i,n,v,w,m,u,P,h,x]);return reactExports.useMemo(()=>l?{reference:ee,floating:q,item:U}:{},[l,ee,q,U])}const _o=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Uo(e,t){const[n,o]=e;let i=!1;const r=t.length;for(let e=0,a=r-1;e<r;a=e++){const[r,s]=t[e]||[0,0],[c,l]=t[a]||[0,0];s>=o!=l>=o&&n<=(c-r)*(o-s)/(l-s)+r&&(i=!i);}return i}function Qo(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:o=!0}=e;let i,r=!1,a=null,s=null,c=performance.now();const l=e=>{let{x:n,y:l,placement:u,elements:d,onClose:p,nodeId:f,tree:m}=e;return function(e){function h(){clearTimeout(i),p();}if(clearTimeout(i),!d.domReference||!d.floating||null==u||null==n||null==l)return;const{clientX:g,clientY:b}=e,v=[g,b],y=Qe(e),w="mouseleave"===e.type,I=He(d.floating,y),C=He(d.domReference,y),x=d.domReference.getBoundingClientRect(),A=d.floating.getBoundingClientRect(),k=u.split("-")[0],S=n>A.right-A.width/2,N=l>A.bottom-A.height/2,P=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,x),E=A.width>x.width,L=A.height>x.height,B=(E?x:A).left,O=(E?x:A).right,T=(L?x:A).top,R=(L?x:A).bottom;if(I&&(r=!0,!w))return;if(C&&(r=!1),C&&!w)return void(r=!0);if(w&&ve(e.relatedTarget)&&He(d.floating,e.relatedTarget))return;if(m&&uo(m.nodesRef.current,f).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===k&&l>=x.bottom-1||"bottom"===k&&l<=x.top+1||"left"===k&&n>=x.right-1||"right"===k&&n<=x.left+1)return h();let G=[];switch(k){case"top":G=[[B,x.top+1],[B,A.bottom-1],[O,A.bottom-1],[O,x.top+1]];break;case"bottom":G=[[B,A.top+1],[B,x.bottom-1],[O,x.bottom-1],[O,A.top+1]];break;case"left":G=[[A.right-1,R],[A.right-1,T],[x.left+1,T],[x.left+1,R]];break;case"right":G=[[x.right-1,R],[x.right-1,T],[A.left+1,T],[A.left+1,R]];}if(!Uo([g,b],G)){if(r&&!P)return h();if(!w&&o){const t=function(e,t){const n=performance.now(),o=n-c;if(null===a||null===s||0===o)return a=e,s=t,c=n,null;const i=e-a,r=t-s,l=Math.sqrt(i*i+r*r);return a=e,s=t,c=n,l/o}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Uo([g,b],function(e){let[n,o]=e;switch(k){case"top":return [[E?n+t/2:S?n+4*t:n-4*t,o+t+1],[E?n-t/2:S?n+4*t:n-4*t,o+t+1],...[[A.left,S||E?A.bottom-t:A.top],[A.right,S?E?A.bottom-t:A.top:A.bottom-t]]];case"bottom":return [[E?n+t/2:S?n+4*t:n-4*t,o-t],[E?n-t/2:S?n+4*t:n-4*t,o-t],...[[A.left,S||E?A.top+t:A.bottom],[A.right,S?E?A.top+t:A.bottom:A.top+t]]];case"left":{const e=[n+t+1,L?o+t/2:N?o+4*t:o-4*t],i=[n+t+1,L?o-t/2:N?o+4*t:o-4*t];return [...[[N||L?A.right-t:A.left,A.top],[N?L?A.right-t:A.left:A.right-t,A.bottom]],e,i]}case"right":return [[n-t,L?o+t/2:N?o+4*t:o-4*t],[n-t,L?o-t/2:N?o+4*t:o-4*t],...[[N||L?A.left+t:A.right,A.top],[N?L?A.left+t:A.right:A.left+t,A.bottom]]]}}([n,l]))?!r&&o&&(i=window.setTimeout(h,40)):h();}}};return l.__options={blockPointerEvents:n},l}const Ko=reactExports.createContext({getItemProps:()=>({}),activeIndex:null,setActiveIndex:()=>{},setHasFocusInside:()=>{},isOpen:!1,setIsOpen:()=>{}}),qo=reactExports.forwardRef(({className:t,disabled:n,children:o,...i},r)=>{const a=reactExports.useContext(Ko),s=Xn(),l=to(),u=s.index===a.activeIndex,d=S("io-dropdown-menu-item",n&&"io-dropdown-menu-item-disabled",t);return jsxRuntimeExports.jsx("div",{ref:xn([s.ref,r]),role:"menuitem",className:d,tabIndex:u?0:-1,"aria-disabled":n,...i,...a.getItemProps({onClick(e){if(n)return e.preventDefault(),void e.stopPropagation();i.onClick?.(e),a.setIsOpen(!1),l?.events.emit("click");},onFocus(e){n||(i.onFocus?.(e),a.setHasFocusInside(!0));}}),children:o})});qo.displayName="DropdownMenuItem";const ei=reactExports.forwardRef(({className:n,variant:i="default",icon:r,iconRight:a,text:s="",disabled:f,children:m,...h},g)=>{const[b,v]=reactExports.useState(!1),[y,w]=reactExports.useState(!1),[I,C]=reactExports.useState(null),x=reactExports.useRef([]),A=reactExports.useRef([]),k=reactExports.useContext(Ko),N=to(),P=function(){const e=$n(),t=to(),n=eo();return Wn(()=>{const o={id:e,parentId:n};return null==t||t.addNode(o),()=>{null==t||t.removeNode(o);}},[t,e,n]),e}(),E=eo(),L=Xn(),B=null!=E,{floatingStyles:O,refs:T,context:R}=Wo({nodeId:P,open:b,onOpenChange:v,placement:B?"right-start":"bottom-start",middleware:[wn({mainAxis:B?0:4,alignmentAxis:B?-4:0}),Cn(),In()],whileElementsMounted:un}),G=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:r,events:a,elements:s}=e,{enabled:c=!0,delay:l=0,handleClose:u=null,mouseOnly:d=!1,restMs:p=0,move:f=!0}=t,m=to(),h=eo(),g=ro(u),b=ro(l),v=ro(n),y=reactExports.useRef(),w=reactExports.useRef(-1),I=reactExports.useRef(),C=reactExports.useRef(-1),x=reactExports.useRef(!0),A=reactExports.useRef(!1),k=reactExports.useRef(()=>{}),S=reactExports.useRef(!1),N=reactExports.useCallback(()=>{var e;const t=null==(e=r.current.openEvent)?void 0:e.type;return (null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[r]);reactExports.useEffect(()=>{if(c)return a.on("openchange",e),()=>{a.off("openchange",e);};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(C.current),x.current=!0,S.current=!1);}},[c,a]),reactExports.useEffect(()=>{if(!c)return;if(!g.current)return;if(!n)return;function e(e){N()&&i(!1,e,"hover");}const t=_e(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e);}},[s.floating,n,i,c,g,N]);const P=reactExports.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=so(b.current,"close",y.current);o&&!I.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>i(!1,e,n),o)):t&&(clearTimeout(w.current),i(!1,e,n));},[b,i]),E=Sn(()=>{k.current(),I.current=void 0;}),L=Sn(()=>{if(A.current){const e=_e(s.floating).body;e.style.pointerEvents="",e.removeAttribute(ao),A.current=!1;}}),B=Sn(()=>!!r.current.openEvent&&["click","mousedown"].includes(r.current.openEvent.type));reactExports.useEffect(()=>{if(c&&ve(s.domReference)){var e;const i=s.domReference;return n&&i.addEventListener("mouseleave",a),null==(e=s.floating)||e.addEventListener("mouseleave",a),f&&i.addEventListener("mousemove",t,{once:!0}),i.addEventListener("mouseenter",t),i.addEventListener("mouseleave",o),()=>{var e;n&&i.removeEventListener("mouseleave",a),null==(e=s.floating)||e.removeEventListener("mouseleave",a),f&&i.removeEventListener("mousemove",t),i.removeEventListener("mouseenter",t),i.removeEventListener("mouseleave",o);}}function t(e){if(clearTimeout(w.current),x.current=!1,d&&!$e(y.current)||p>0&&!so(b.current,"open"))return;const t=so(b.current,"open",y.current);t?w.current=window.setTimeout(()=>{v.current||i(!0,e,"hover");},t):n||i(!0,e,"hover");}function o(e){if(B())return;k.current();const t=_e(s.floating);if(clearTimeout(C.current),S.current=!1,g.current&&r.current.floatingContext){n||clearTimeout(w.current),I.current=g.current({...r.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){L(),E(),B()||P(e,!0,"safe-polygon");}});const o=I.current;return t.addEventListener("mousemove",o),void(k.current=()=>{t.removeEventListener("mousemove",o);})}("touch"!==y.current||!He(s.floating,e.relatedTarget))&&P(e);}function a(e){B()||r.current.floatingContext&&(null==g.current||g.current({...r.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){L(),E(),B()||P(e);}})(e));}},[s,c,e,d,p,f,P,E,L,i,n,v,m,b,g,r,B]),Wn(()=>{var e;if(c&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&N()){A.current=!0;const e=s.floating;if(ve(s.domReference)&&e){var t;const n=_e(s.floating).body;n.setAttribute(ao,"");const o=s.domReference,i=null==m||null==(t=m.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="none",o.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",o.style.pointerEvents="",e.style.pointerEvents="";}}}},[c,n,h,s,m,g,N]),Wn(()=>{n||(y.current=void 0,S.current=!1,E(),L());},[n,E,L]),reactExports.useEffect(()=>()=>{E(),clearTimeout(w.current),clearTimeout(C.current),L();},[c,s.domReference,E,L]);const O=reactExports.useMemo(()=>{function e(e){y.current=e.pointerType;}return {onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){x.current||v.current||i(!0,t,"hover");}d&&!$e(y.current)||n||0===p||S.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(C.current),"touch"===y.current?o():(S.current=!0,C.current=window.setTimeout(o,p)));}}},[d,i,n,v,p]),T=reactExports.useMemo(()=>({onMouseEnter(){clearTimeout(w.current);},onMouseLeave(e){B()||P(e.nativeEvent,!1);}}),[P,B]);return reactExports.useMemo(()=>c?{reference:O,floating:T}:{},[c,O,T])}(R,{enabled:B,delay:{open:75},handleClose:Qo({blockPointerEvents:!0})}),F=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:r,elements:{domReference:a}}=e,{enabled:s=!0,event:c="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:p=!0}=t,f=reactExports.useRef(),m=reactExports.useRef(!1),h=reactExports.useMemo(()=>({onPointerDown(e){f.current=e.pointerType;},onMouseDown(e){const t=f.current;0===e.button&&"click"!==c&&($e(t,!0)&&u||(!n||!l||r.current.openEvent&&p&&"mousedown"!==r.current.openEvent.type?(e.preventDefault(),i(!0,e.nativeEvent,"click")):i(!1,e.nativeEvent,"click")));},onClick(e){const t=f.current;"mousedown"===c&&f.current?f.current=void 0:$e(t,!0)&&u||(!n||!l||r.current.openEvent&&p&&"click"!==r.current.openEvent.type?i(!0,e.nativeEvent,"click"):i(!1,e.nativeEvent,"click"));},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||To(e)||(" "!==e.key||Ro(a)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&i(!n||!l,e.nativeEvent,"click"));},onKeyUp(e){e.defaultPrevented||!d||To(e)||Ro(a)||" "===e.key&&m.current&&(m.current=!1,i(!n||!l,e.nativeEvent,"click"));}}),[r,a,c,u,d,i,n,p,l]);return reactExports.useMemo(()=>s?{reference:h}:{},[s,h])}(R,{event:"mousedown",toggle:!B,ignoreMouse:B}),M=function(e,t){var n;void 0===t&&(t={});const{open:i,floatingId:r}=e,{enabled:a=!0,role:s="dialog"}=t,c=null!=(n=_o.get(s))?n:s,l=$n(),u=null!=eo(),d=reactExports.useMemo(()=>"tooltip"===c||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?r:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":i?r:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:l},..."menu"===c&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[c,r,u,i,l,s]),p=reactExports.useMemo(()=>{const e={id:r,...c&&{role:c}};return "tooltip"===c||"label"===s?e:{...e,..."menu"===c&&{"aria-labelledby":l}}},[c,r,l,s]),f=reactExports.useCallback(e=>{let{active:t,selected:n}=e;const o={role:"option",...t&&{id:r+"-option"}};switch(s){case"select":return {...o,"aria-selected":t&&n};case"combobox":return {...o,...t&&{"aria-selected":!0}}}return {}},[r,s]);return reactExports.useMemo(()=>a?{reference:d,floating:p,item:f}:{},[a,d,p,f])}(R,{role:"menu"}),W=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,elements:r,dataRef:a}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:m,capture:h}=t,g=to(),b=Sn("function"==typeof l?l:()=>!1),v="function"==typeof l?b:l,y=reactExports.useRef(!1),w=reactExports.useRef(!1),{escapeKey:I,outsidePress:C}=Mo(m),{escapeKey:x,outsidePress:A}=Mo(h),k=reactExports.useRef(!1),S=Sn(e=>{var t;if(!n||!s||!c||"Escape"!==e.key)return;if(k.current)return;const o=null==(t=a.current.floatingContext)?void 0:t.nodeId,r=g?uo(g.nodesRef.current,o):[];if(!I&&(e.stopPropagation(),r.length>0)){let e=!0;if(r.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1);}),!e)return}i(!1,function(e){return "nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key");}),N=Sn(e=>{var t;const n=()=>{var t;S(e),null==(t=Qe(e))||t.removeEventListener("keydown",n);};null==(t=Qe(e))||t.addEventListener("keydown",n);}),P=Sn(e=>{var t;const n=y.current;y.current=!1;const o=w.current;if(w.current=!1,"click"===u&&o)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=Qe(e),c="["+io("inert")+"]",l=_e(r.floating).querySelectorAll(c);let d=ve(s)?s:null;for(;d&&!Te(d);){const e=Fe(d);if(Te(e)||!ve(e))break;d=e;}if(l.length&&ve(s)&&!s.matches("html,body")&&!He(s,r.floating)&&Array.from(l).every(e=>!He(d,e)))return;if(ye(s)&&B){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let o=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===Re(s).direction&&(o=e.offsetX<=s.offsetWidth-s.clientWidth),o||t&&e.offsetY>s.clientHeight)return}const p=null==(t=a.current.floatingContext)?void 0:t.nodeId,f=g&&uo(g.nodesRef.current,p).some(t=>{var n;return Ue(e,null==(n=t.context)?void 0:n.elements.floating)});if(Ue(e,r.floating)||Ue(e,r.domReference)||f)return;const m=g?uo(g.nodesRef.current,p):[];if(m.length>0){let e=!0;if(m.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1);}),!e)return}i(!1,e,"outside-press");}),E=Sn(e=>{var t;const n=()=>{var t;P(e),null==(t=Qe(e))||t.removeEventListener(u,n);};null==(t=Qe(e))||t.addEventListener(u,n);});reactExports.useEffect(()=>{if(!n||!s)return;a.current.__escapeKeyBubbles=I,a.current.__outsidePressBubbles=C;let e=-1;function t(e){i(!1,e,"ancestor-scroll");}function o(){window.clearTimeout(e),k.current=!0;}function l(){e=window.setTimeout(()=>{k.current=!1;},Be()?5:0);}const d=_e(r.floating);c&&(d.addEventListener("keydown",x?N:S,x),d.addEventListener("compositionstart",o),d.addEventListener("compositionend",l)),v&&d.addEventListener(u,A?E:P,A);let p=[];return f&&(ve(r.domReference)&&(p=De(r.domReference)),ve(r.floating)&&(p=p.concat(De(r.floating))),!ve(r.reference)&&r.reference&&r.reference.contextElement&&(p=p.concat(De(r.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0});}),()=>{c&&(d.removeEventListener("keydown",x?N:S,x),d.removeEventListener("compositionstart",o),d.removeEventListener("compositionend",l)),v&&d.removeEventListener(u,A?E:P,A),p.forEach(e=>{e.removeEventListener("scroll",t);}),window.clearTimeout(e);}},[a,r,c,v,u,n,i,f,s,I,C,S,x,N,P,A,E]),reactExports.useEffect(()=>{y.current=!1;},[v,u]);const L=reactExports.useMemo(()=>({onKeyDown:S,[Go[p]]:e=>{d&&i(!1,e.nativeEvent,"reference-press");}}),[S,i,d,p]),B=reactExports.useMemo(()=>({onKeyDown:S,onMouseDown(){w.current=!0;},onMouseUp(){w.current=!0;},[Fo[u]]:()=>{y.current=!0;}}),[S,u]);return reactExports.useMemo(()=>s?{reference:L,floating:B}:{},[s,L,B])}(R,{bubbles:!0}),V=$o(R,{listRef:x,activeIndex:I,nested:B,onNavigate:C}),{getReferenceProps:H,getFloatingProps:z,getItemProps:X}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),i=e.map(e=>null==e?void 0:e.item),r=reactExports.useCallback(t=>zo(t,e,"reference"),t),a=reactExports.useCallback(t=>zo(t,e,"floating"),n),s=reactExports.useCallback(t=>zo(t,e,"item"),i);return reactExports.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:s}),[r,a,s])}([G,F,M,W,V]);reactExports.useEffect(()=>{if(N)return N.events.on("click",e),N.events.on("menuopen",t),()=>{N.events.off("click",e),N.events.off("menuopen",t);};function e(){v(!1);}function t(e){e.nodeId!==P&&e.parentId===E&&v(!1);}},[N,P,E]),reactExports.useEffect(()=>{b&&N&&N.events.emit("menuopen",{parentId:E,nodeId:P});},[N,b,P,E]);const Z={activeIndex:I,setActiveIndex:C,getItemProps:X,setHasFocusInside:w,isOpen:b,setIsOpen:v},j=reactExports.useMemo(()=>Z,[I,C,X,w,b]),J=S("io-dropdown-menu-button",B&&"io-dropdown-menu-item",b&&!B&&"active",n),Y=xn([T.setReference,L.ref,g]),$=k.activeIndex===L.index?0:-1;return jsxRuntimeExports.jsxs(no,{id:P,children:[jsxRuntimeExports.jsx(D,{className:J,ref:Y,variant:B?"link":i,tabIndex:B?$:void 0,role:B?"menuitem":void 0,"data-open":b?"":void 0,"data-nested":B?"":void 0,"data-focus-inside":y?"":void 0,text:s,icon:B?"chevron-right":r,iconSize:"10",iconRight:!!B||a,disabled:f,...H(k.getItemProps({onFocus(e){h.onFocus?.(e),w(!1),k.setHasFocusInside(!0);},...h}))}),jsxRuntimeExports.jsx(Ko.Provider,{value:j,children:jsxRuntimeExports.jsx(zn,{elementsRef:x,labelsRef:A,children:b&&jsxRuntimeExports.jsx(Oo,{context:R,modal:!1,initialFocus:B?-1:0,returnFocus:!B,children:jsxRuntimeExports.jsx("div",{ref:T.setFloating,className:"io-dropdown-menu",style:O,...z(),children:m})})})})]})});ei.displayName="DropdownMenu";const ti=reactExports.forwardRef(({...t},n)=>null===eo()?jsxRuntimeExports.jsx(oo,{children:jsxRuntimeExports.jsx(ei,{ref:n,...t})}):jsxRuntimeExports.jsx(ei,{ref:n,...t}));ti.displayName="DropdownMenu",ti.Item=qo,ti.Separator=_;var ii="top",ri="bottom",ai="right",si="left",ci="auto",li=[ii,ri,ai,si],ui="start",di="end",pi="viewport",fi="popper",mi=li.reduce(function(e,t){return e.concat([t+"-"+ui,t+"-"+di])},[]),hi=[].concat(li,[ci]).reduce(function(e,t){return e.concat([t,t+"-"+ui,t+"-"+di])},[]),gi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bi(e){return e?(e.nodeName||"").toLowerCase():null}function vi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yi(e){return e instanceof vi(e).Element||e instanceof Element}function wi(e){return e instanceof vi(e).HTMLElement||e instanceof HTMLElement}function Ii(e){return "undefined"!=typeof ShadowRoot&&(e instanceof vi(e).ShadowRoot||e instanceof ShadowRoot)}var Ci={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];wi(i)&&bi(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t);}));});},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});wi(o)&&bi(o)&&(Object.assign(o.style,r),Object.keys(i).forEach(function(e){o.removeAttribute(e);}));});}},requires:["computeStyles"]};function xi(e){return e.split("-")[0]}var Ai=Math.max,ki=Math.min,Si=Math.round;function Ni(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Pi(){return !/^((?!chrome|android).)*safari/i.test(Ni())}function Ei(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,r=1;t&&wi(e)&&(i=e.offsetWidth>0&&Si(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Si(o.height)/e.offsetHeight||1);var a=(yi(e)?vi(e):window).visualViewport,s=!Pi()&&n,c=(o.left+(s&&a?a.offsetLeft:0))/i,l=(o.top+(s&&a?a.offsetTop:0))/r,u=o.width/i,d=o.height/r;return {width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Li(e){var t=Ei(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Bi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return !0;if(n&&Ii(n)){var o=t;do{if(o&&e.isSameNode(o))return !0;o=o.parentNode||o.host;}while(o)}return !1}function Oi(e){return vi(e).getComputedStyle(e)}function Ti(e){return ["table","td","th"].indexOf(bi(e))>=0}function Ri(e){return ((yi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gi(e){return "html"===bi(e)?e:e.assignedSlot||e.parentNode||(Ii(e)?e.host:null)||Ri(e)}function Fi(e){return wi(e)&&"fixed"!==Oi(e).position?e.offsetParent:null}function Mi(e){for(var t=vi(e),n=Fi(e);n&&Ti(n)&&"static"===Oi(n).position;)n=Fi(n);return n&&("html"===bi(n)||"body"===bi(n)&&"static"===Oi(n).position)?t:n||function(e){var t=/firefox/i.test(Ni());if(/Trident/i.test(Ni())&&wi(e)&&"fixed"===Oi(e).position)return null;var n=Gi(e);for(Ii(n)&&(n=n.host);wi(n)&&["html","body"].indexOf(bi(n))<0;){var o=Oi(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode;}return null}(e)||t}function Di(e){return ["top","bottom"].indexOf(e)>=0?"x":"y"}function Wi(e,t,n){return Ai(e,ki(t,n))}function Vi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Hi(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var zi={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xi(n.placement),c=Di(s),l=[si,ai].indexOf(s)>=0?"height":"width";if(r&&a){var u=function(e,t){return Vi("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Hi(e,li))}(i.padding,n),d=Li(r),p="y"===c?ii:si,f="y"===c?ri:ai,m=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],h=a[c]-n.rects.reference[c],g=Mi(r),b=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[p],w=b-d[l]-u[f],I=b/2-d[l]/2+v,C=Wi(y,I,w),x=c;n.modifiersData[o]=((t={})[x]=C,t.centerOffset=C-I,t);}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Bi(t.elements.popper,o)&&(t.elements.arrow=o);},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xi(e){return e.split("-")[1]}var Zi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ji(e){var t,n=e.popper,o=e.popperRect,i=e.placement,r=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=g.x,h=g.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=si,w=ii,I=window;if(l){var C=Mi(n),x="clientHeight",A="clientWidth";if(C===vi(n)&&"static"!==Oi(C=Ri(n)).position&&"absolute"===s&&(x="scrollHeight",A="scrollWidth"),i===ii||(i===si||i===ai)&&r===di)w=ri,h-=(d&&C===I&&I.visualViewport?I.visualViewport.height:C[x])-o.height,h*=c?1:-1;if(i===si||(i===ii||i===ri)&&r===di)y=ai,f-=(d&&C===I&&I.visualViewport?I.visualViewport.width:C[A])-o.width,f*=c?1:-1;}var k,S=Object.assign({position:s},l&&Zi),N=!0===u?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return {x:Si(n*i)/i||0,y:Si(o*i)/i||0}}({x:f,y:h},vi(n)):{x:f,y:h};return f=N.x,h=N.y,c?Object.assign({},S,((k={})[w]=v?"0":"",k[y]=b?"0":"",k.transform=(I.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",k)):Object.assign({},S,((t={})[w]=v?h+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var Ji={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,i=void 0===o||o,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,c=void 0===s||s,l={placement:xi(t.placement),variation:Xi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ji(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ji(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement});},data:{}},Yi={passive:!0};var $i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,r=void 0===i||i,a=o.resize,s=void 0===a||a,c=vi(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&l.forEach(function(e){e.addEventListener("scroll",n.update,Yi);}),s&&c.addEventListener("resize",n.update,Yi),function(){r&&l.forEach(function(e){e.removeEventListener("scroll",n.update,Yi);}),s&&c.removeEventListener("resize",n.update,Yi);}},data:{}},_i={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(e){return e.replace(/left|right|bottom|top/g,function(e){return _i[e]})}var Qi={start:"end",end:"start"};function Ki(e){return e.replace(/start|end/g,function(e){return Qi[e]})}function qi(e){var t=vi(e);return {scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function er(e){return Ei(Ri(e)).left+qi(e).scrollLeft}function tr(e){var t=Oi(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return /auto|scroll|overlay|hidden/.test(n+i+o)}function nr(e){return ["html","body","#document"].indexOf(bi(e))>=0?e.ownerDocument.body:wi(e)&&tr(e)?e:nr(Gi(e))}function or(e,t){var n;void 0===t&&(t=[]);var o=nr(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=vi(o),a=i?[r].concat(r.visualViewport||[],tr(o)?o:[]):o,s=t.concat(a);return i?s:s.concat(or(Gi(a)))}function ir(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rr(e,t,n){return t===pi?ir(function(e,t){var n=vi(e),o=Ri(e),i=n.visualViewport,r=o.clientWidth,a=o.clientHeight,s=0,c=0;if(i){r=i.width,a=i.height;var l=Pi();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop);}return {width:r,height:a,x:s+er(e),y:c}}(e,n)):yi(t)?function(e,t){var n=Ei(e,!1,"fixed"===t);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}(t,n):ir(function(e){var t,n=Ri(e),o=qi(e),i=null==(t=e.ownerDocument)?void 0:t.body,r=Ai(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ai(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-o.scrollLeft+er(e),c=-o.scrollTop;return "rtl"===Oi(i||n).direction&&(s+=Ai(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:a,x:s,y:c}}(Ri(e)))}function ar(e,t,n,o){var i="clippingParents"===t?function(e){var t=or(Gi(e)),n=["absolute","fixed"].indexOf(Oi(e).position)>=0&&wi(e)?Mi(e):e;return yi(n)?t.filter(function(e){return yi(e)&&Bi(e,n)&&"body"!==bi(e)}):[]}(e):[].concat(t),r=[].concat(i,[n]),a=r[0],s=r.reduce(function(t,n){var i=rr(e,n,o);return t.top=Ai(i.top,t.top),t.right=ki(i.right,t.right),t.bottom=ki(i.bottom,t.bottom),t.left=Ai(i.left,t.left),t},rr(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sr(e){var t,n=e.reference,o=e.element,i=e.placement,r=i?xi(i):null,a=i?Xi(i):null,s=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(r){case ii:t={x:s,y:n.y-o.height};break;case ri:t={x:s,y:n.y+n.height};break;case ai:t={x:n.x+n.width,y:c};break;case si:t={x:n.x-o.width,y:c};break;default:t={x:n.x,y:n.y};}var l=r?Di(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case ui:t[l]=t[l]-(n[u]/2-o[u]/2);break;case di:t[l]=t[l]+(n[u]/2-o[u]/2);}}return t}function cr(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,r=n.strategy,a=void 0===r?e.strategy:r,s=n.boundary,c=void 0===s?"clippingParents":s,l=n.rootBoundary,u=void 0===l?pi:l,d=n.elementContext,p=void 0===d?fi:d,f=n.altBoundary,m=void 0!==f&&f,h=n.padding,g=void 0===h?0:h,b=Vi("number"!=typeof g?g:Hi(g,li)),v=p===fi?"reference":fi,y=e.rects.popper,w=e.elements[m?v:p],I=ar(yi(w)?w:w.contextElement||Ri(e.elements.popper),c,u,a),C=Ei(e.elements.reference),x=sr({reference:C,element:y,strategy:"absolute",placement:i}),A=ir(Object.assign({},y,x)),k=p===fi?A:C,S={top:I.top-k.top+b.top,bottom:k.bottom-I.bottom+b.bottom,left:I.left-k.left+b.left,right:k.right-I.right+b.right},N=e.modifiersData.offset;if(p===fi&&N){var P=N[i];Object.keys(S).forEach(function(e){var t=[ai,ri].indexOf(e)>=0?1:-1,n=[ii,ri].indexOf(e)>=0?"y":"x";S[e]+=P[n]*t;});}return S}function lr(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?hi:c,u=Xi(o),d=u?s?mi:mi.filter(function(e){return Xi(e)===u}):li,p=d.filter(function(e){return l.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=cr(e,{placement:n,boundary:i,rootBoundary:r,padding:a})[xi(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var ur={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,g=t.options.placement,b=xi(g),v=c||(b===g||!m?[Ui(g)]:function(e){if(xi(e)===ci)return [];var t=Ui(e);return [Ki(e),t,Ki(t)]}(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(xi(n)===ci?lr(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),w=t.rects.reference,I=t.rects.popper,C=new Map,x=!0,A=y[0],k=0;k<y.length;k++){var S=y[k],N=xi(S),P=Xi(S)===ui,E=[ii,ri].indexOf(N)>=0,L=E?"width":"height",B=cr(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),O=E?P?ai:si:P?ri:ii;w[L]>I[L]&&(O=Ui(O));var T=Ui(O),R=[];if(r&&R.push(B[N]<=0),s&&R.push(B[O]<=0,B[T]<=0),R.every(function(e){return e})){A=S,x=!1;break}C.set(S,R);}if(x)for(var G=function(e){var t=y.find(function(t){var n=C.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},F=m?3:1;F>0;F--){if("break"===G(F))break}t.placement!==A&&(t.modifiersData[o]._skip=!0,t.placement=A,t.reset=!0);}},requiresIfExists:["offset"],data:{_skip:!1}};function dr(e,t,n){return void 0===n&&(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 pr(e){return [ii,ai,ri,si].some(function(t){return e[t]>=0})}var fr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,a=cr(t,{elementContext:"reference"}),s=cr(t,{altBoundary:!0}),c=dr(a,o),l=dr(s,i,r),u=pr(c),d=pr(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d});}};var mr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,r=void 0===i?[0,0]:i,a=hi.reduce(function(e,n){return e[n]=function(e,t,n){var o=xi(e),i=[si,ii].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[si,ai].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,r),e},{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[o]=a;}};var hr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=sr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement});},data:{}};var gr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,h=void 0===m?0:m,g=cr(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),b=xi(t.placement),v=Xi(t.placement),y=!v,w=Di(b),I="x"===w?"y":"x",C=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(C){if(r){var E,L="y"===w?ii:si,B="y"===w?ri:ai,O="y"===w?"height":"width",T=C[w],R=T+g[L],G=T-g[B],F=f?-A[O]/2:0,M=v===ui?x[O]:A[O],D=v===ui?-A[O]:-x[O],W=t.elements.arrow,V=f&&W?Li(W):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=H[L],X=H[B],Z=Wi(0,x[O],V[O]),j=y?x[O]/2-F-Z-z-S.mainAxis:M-Z-z-S.mainAxis,J=y?-x[O]/2+F+Z+X+S.mainAxis:D+Z+X+S.mainAxis,Y=t.elements.arrow&&Mi(t.elements.arrow),$=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,_=null!=(E=null==N?void 0:N[w])?E:0,U=T+J-_,Q=Wi(f?ki(R,T+j-_-$):R,T,f?Ai(G,U):G);C[w]=Q,P[w]=Q-T;}if(s){var K,q="x"===w?ii:si,ee="x"===w?ri:ai,te=C[I],ne="y"===I?"height":"width",oe=te+g[q],ie=te-g[ee],re=-1!==[ii,si].indexOf(b),ae=null!=(K=null==N?void 0:N[I])?K:0,se=re?oe:te-x[ne]-A[ne]-ae+S.altAxis,ce=re?te+x[ne]+A[ne]-ae-S.altAxis:ie,le=f&&re?function(e,t,n){var o=Wi(e,t,n);return o>n?n:o}(se,te,ce):Wi(f?se:oe,te,f?ce:ie);C[I]=le,P[I]=le-te;}t.modifiersData[o]=P;}},requiresIfExists:["offset"]};function br(e,t,n){void 0===n&&(n=!1);var o=wi(t),i=wi(t)&&function(e){var t=e.getBoundingClientRect(),n=Si(t.width)/e.offsetWidth||1,o=Si(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Ri(t),a=Ei(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return (o||!o&&!n)&&(("body"!==bi(t)||tr(r))&&(s=function(e){return e!==vi(e)&&wi(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:qi(e);var t;}(t)),wi(t)?((c=Ei(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=er(r))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function vr(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o);}}),o.push(e);}return e.forEach(function(e){t.set(e.name,e);}),e.forEach(function(e){n.has(e.name)||i(e);}),o}var yr={placement:"bottom",modifiers:[],strategy:"absolute"};function wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return !t.some(function(e){return !(e&&"function"==typeof e.getBoundingClientRect)})}function Ir(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,i=t.defaultOptions,r=void 0===i?yr:i;return function(e,t,n){void 0===n&&(n=r);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},yr,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(n){var i="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},r,s.options,i),s.scrollParents={reference:yi(e)?or(e):e.contextElement?or(e.contextElement):[],popper:or(t)};var a,l,p=function(e){var t=vr(e);return gi.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(o,s.options.modifiers),l=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return s.orderedModifiers=p.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var r=i({state:s,name:t,instance:u,options:o}),a=function(){};c.push(r||a);}}),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(wr(t,n)){s.rects={reference:br(t,Mi(n),"fixed"===s.options.strategy),popper:Li(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var i=s.orderedModifiers[o],r=i.fn,a=i.options,c=void 0===a?{}:a,d=i.name;"function"==typeof r&&(s=r({state:s,options:c,name:d,instance:u})||s);}else s.reset=!1,o=-1;}}},update:(i=function(){return new Promise(function(e){u.forceUpdate(),e(s);})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(i());});})),a}),destroy:function(){d(),l=!0;}};if(!wr(e,t))return u;function d(){c.forEach(function(e){return e()}),c=[];}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e);}),u}}Ir({defaultModifiers:[$i,hr,Ji,Ci,mr,ur,gr,zi,fr]});var xr="undefined"!=typeof Element,Ar="function"==typeof Map,kr="function"==typeof Set,Sr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Nr(e,t){if(e===t)return !0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return !1;var n,o,i,r;if(Array.isArray(e)){if((n=e.length)!=t.length)return !1;for(o=n;0!==o--;)if(!Nr(e[o],t[o]))return !1;return !0}if(Ar&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return !1;for(r=e.entries();!(o=r.next()).done;)if(!t.has(o.value[0]))return !1;for(r=e.entries();!(o=r.next()).done;)if(!Nr(o.value[1],t.get(o.value[0])))return !1;return !0}if(kr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return !1;for(r=e.entries();!(o=r.next()).done;)if(!t.has(o.value[0]))return !1;return !0}if(Sr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return !1;for(o=n;0!==o--;)if(e[o]!==t[o])return !1;return !0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return !1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return !1;if(xr&&e instanceof Element)return !1;for(o=n;0!==o--;)if(("_owner"!==i[o]&&"__v"!==i[o]&&"__o"!==i[o]||!e.$$typeof)&&!Nr(e[i[o]],t[i[o]]))return !1;return !0}return e!=e&&t!=t}var Pr=function(e,t){try{return Nr(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};x(Pr);function Or({className:t,variant:n="default",size:o="16",src:i,alt:r,...a}){const s=S("io-image-icon","grayscale"===n&&[`io-image-icon-${n}`],o&&[`io-image-icon-${o}`],t);return jsxRuntimeExports.jsx("img",{className:s,style:{width:`${o}px`,filter:"grayscale"===n?"grayscale(100%)":"none"},src:i,alt:r,...a})}const Tr=reactExports.forwardRef((n,o)=>{const{title:i,subtitle:r,actions:a,className:s,onClose:c,onActionItemClick:u,"data-testid":f="context-menu",...m}=n,g=reactExports.useRef({}),[b,v]=reactExports.useState(0),y=e=>{g.current[e]?.focus({preventScroll:!0}),v(e);};return reactExports.useEffect(()=>{g.current[b]?.focus({preventScroll:!0});},[]),jsxRuntimeExports.jsxs(K,{ref:o,className:S(s,"context-menu"),onClick:e=>e.stopPropagation(),onKeyDown:e=>F({event:e,currentIndex:b,min:0,max:a.length-1,moveFocus:y,onClose:c}),"data-testid":f,...m,children:[i&&jsxRuntimeExports.jsxs(K.ItemSection,{className:"context-menu-header","data-testid":`${f}-header`,children:[jsxRuntimeExports.jsx("span",{className:"context-menu-header-title io-title",children:i}),r&&jsxRuntimeExports.jsx("span",{className:"context-menu-header-subtitle io-list-text-description",children:r})]}),a.map((n,o)=>{const i=n.displayName||n.name,r=n.iconSrc?jsxRuntimeExports.jsx(Or,{size:"16",src:n.iconSrc,alt:`${i} icon`}):n.icon&&jsxRuntimeExports.jsx(N,{size:"16",variant:n.icon});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(K.Item,{ref:e=>g.current[o]=e,prepend:r,disabled:n.disabled,tabIndex:-1,...G(e=>u(e,n)),"data-testid":`${f}-item-${n.name}`,children:i}),n.separatorAfter&&jsxRuntimeExports.jsx("li",{className:"context-menu-separator","aria-hidden":!0,"data-testid":`${f}-separator`})]},n.name)})]})});Tr.displayName="ContextMenuActionsList";var Fr=function(e){return {ok:!0,result:e}},Mr=function(e){return {ok:!1,error:e}},Dr=function(e,t,n){return !1===t.ok?t:!1===n.ok?n:Fr(e(t.result,n.result))},Wr=function(e,t){return !0===t.ok?t:Mr(e(t.error))},Vr=function(){return Vr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Vr.apply(this,arguments)};function Hr(e,t){if(e===t)return !0;if(null===e&&null===t)return !0;if(typeof e!=typeof t)return !1;if("object"==typeof e){if(Array.isArray(e)){if(!Array.isArray(t))return !1;if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(!Hr(e[n],t[n]))return !1;return !0}var o=Object.keys(e);if(o.length!==Object.keys(t).length)return !1;for(n=0;n<o.length;n++){if(!t.hasOwnProperty(o[n]))return !1;if(!Hr(e[o[n]],t[o[n]]))return !1}return !0}}var zr=function(e){return Array.isArray(e)},Xr=function(e){return "object"==typeof e&&null!==e&&!zr(e)},Zr=function(e,t){return "expected "+e+", got "+function(e){switch(typeof e){case"string":return "a string";case"number":return "a number";case"boolean":return "a boolean";case"undefined":return "undefined";case"object":return e instanceof Array?"an array":null===e?"null":"an object";default:return JSON.stringify(e)}}(t)},jr=function(e){return e.map(function(e){return "string"==typeof e?"."+e:"["+e+"]"}).join("")},Jr=function(e,t){var n=t.at,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);}return n}(t,["at"]);return Vr({at:e+(n||"")},o)},Yr=function(){function e(t){var n=this;this.decode=t,this.run=function(e){return Wr(function(t){return {kind:"DecoderError",input:e,at:"input"+(t.at||""),message:t.message||""}},n.decode(e))},this.runPromise=function(e){return function(e){return !0===e.ok?Promise.resolve(e.result):Promise.reject(e.error)}(n.run(e))},this.runWithException=function(e){return function(e){if(!0===e.ok)return e.result;throw e.error}(n.run(e))},this.map=function(t){return new e(function(e){return function(e,t){return !0===t.ok?Fr(e(t.result)):t}(t,n.decode(e))})},this.andThen=function(t){return new e(function(e){return function(e,t){return !0===t.ok?e(t.result):t}(function(n){return t(n).decode(e)},n.decode(e))})},this.where=function(t,o){return n.andThen(function(n){return t(n)?e.succeed(n):e.fail(o)})};}return e.string=function(){return new e(function(e){return "string"==typeof e?Fr(e):Mr({message:Zr("a string",e)})})},e.number=function(){return new e(function(e){return "number"==typeof e?Fr(e):Mr({message:Zr("a number",e)})})},e.boolean=function(){return new e(function(e){return "boolean"==typeof e?Fr(e):Mr({message:Zr("a boolean",e)})})},e.constant=function(t){return new e(function(e){return Hr(e,t)?Fr(t):Mr({message:"expected "+JSON.stringify(t)+", got "+JSON.stringify(e)})})},e.object=function(t){return new e(function(e){if(Xr(e)&&t){var n={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o].decode(e[o]);if(!0!==i.ok)return void 0===e[o]?Mr({message:"the key '"+o+"' is required but was not present"}):Mr(Jr("."+o,i.error));void 0!==i.result&&(n[o]=i.result);}return Fr(n)}return Xr(e)?Fr(e):Mr({message:Zr("an object",e)})})},e.array=function(t){return new e(function(e){if(zr(e)&&t){return e.reduce(function(e,n,o){return Dr(function(e,t){return e.concat([t])},e,function(e,n){return Wr(function(e){return Jr("["+n+"]",e)},t.decode(e))}(n,o))},Fr([]))}return zr(e)?Fr(e):Mr({message:Zr("an array",e)})})},e.tuple=function(t){return new e(function(e){if(zr(e)){if(e.length!==t.length)return Mr({message:"expected a tuple of length "+t.length+", got one of length "+e.length});for(var n=[],o=0;o<t.length;o++){var i=t[o].decode(e[o]);if(!i.ok)return Mr(Jr("["+o+"]",i.error));n[o]=i.result;}return Fr(n)}return Mr({message:Zr("a tuple of length "+t.length,e)})})},e.union=function(t,n){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];return e.oneOf.apply(e,[t,n].concat(o))},e.intersection=function(t,n){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];return new e(function(e){return [t,n].concat(o).reduce(function(t,n){return Dr(Object.assign,t,n.decode(e))},Fr({}))})},e.anyJson=function(){return new e(function(e){return Fr(e)})},e.unknownJson=function(){return new e(function(e){return Fr(e)})},e.dict=function(t){return new e(function(e){if(Xr(e)){var n={};for(var o in e)if(e.hasOwnProperty(o)){var i=t.decode(e[o]);if(!0!==i.ok)return Mr(Jr("."+o,i.error));n[o]=i.result;}return Fr(n)}return Mr({message:Zr("an object",e)})})},e.optional=function(t){return new e(function(e){return null==e?Fr(void 0):t.decode(e)})},e.oneOf=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(e){for(var n=[],o=0;o<t.length;o++){var i=t[o].decode(e);if(!0===i.ok)return i;n[o]=i.error;}var r=n.map(function(e){return "at error"+(e.at||"")+": "+e.message}).join('", "');return Mr({message:'expected a value matching one of the decoders, got the errors ["'+r+'"]'})})},e.withDefault=function(t,n){return new e(function(e){return Fr(function(e,t){return !0===t.ok?t.result:e}(t,n.decode(e)))})},e.valueAt=function(t,n){return new e(function(e){for(var o=e,i=0;i<t.length;i++){if(void 0===o)return Mr({at:jr(t.slice(0,i+1)),message:"path does not exist"});if("string"==typeof t[i]&&!Xr(o))return Mr({at:jr(t.slice(0,i+1)),message:Zr("an object",o)});if("number"==typeof t[i]&&!zr(o))return Mr({at:jr(t.slice(0,i+1)),message:Zr("an array",o)});o=o[t[i]];}return Wr(function(e){return void 0===o?{at:jr(t),message:"path does not exist"}:Jr(jr(t),e)},n.decode(o))})},e.succeed=function(t){return new e(function(e){return Fr(t)})},e.fail=function(t){return new e(function(e){return Mr({message:t})})},e.lazy=function(t){return new e(function(e){return t().decode(e)})},e}(),$r=Yr.string,_r=Yr.number,Ur=Yr.boolean,Qr=Yr.anyJson;Yr.unknownJson;var Kr=Yr.constant,qr=Yr.object,ea=Yr.array;Yr.tuple,Yr.dict;var ta=Yr.optional,na=Yr.oneOf;Yr.union,Yr.intersection,Yr.withDefault,Yr.valueAt,Yr.succeed;var oa=Yr.fail;Yr.lazy;const ia=$r().where(e=>e.length>0,"Expected a non-empty string"),ra=_r().where(e=>e>=0,"Expected a non-negative number");qr({name:ia,id:ta(ia)});const ua="warning",da={success:5e3,warning:1e4},pa=e=>"string"==typeof e?e:e?.message?"string"==typeof e.message?e.message:JSON.stringify(e.message):JSON.stringify(e),fa=async e=>{const{io:t,variant:n,text:o,error:i}=e,r=pa(i);try{if(n===ua&&t.logger.warn(r?`${o} ${r}`:o),!("modals"in t)||!t.modals)throw new Error("Modals are not enabled.");const e={text:o,variant:n,ttl:da[n]};await t.modals.alerts.request(e);}catch(e){console.warn("Failed to request alert. ",{error:e});}};function ha(e){return e?.layouts?.v2}function ga(e){return !!ha(e)?.advancedLayoutsSupported}const Ba=()=>void 0!==window.glue42gd||void 0!==window.glue42alert||void 0!==window.glue42dialog||void 0!==window.iodesktop;reactExports.createContext(void 0);const Da="___platform_prefs___",ja="_launchpad_minimizeToTray",Ya="_launchpad_pinnedPosition",$a="_launchpad_allowDocking",_a="_launchpad_dockedAlwaysOnTop",Ua="_launchpad_dockedClaimsSpace",Qa="_launchpad_showExtendedArea",Ka="_launchpad_hideLabelsInExtendedArea",qa="_launchpad_showFavoritesInExtendedArea",es="_launchpad_hideFavoritesSection",ts="_launchpad_showRecentAppsInExtendedArea",os="_layouts_saveCurrentOnExit",is="_layouts_showUnsavedChangesPrompt",rs="_layouts_showDeletePrompt",ss="_layouts_showHidden",ls="_downloads_askForEachDownload",ws=na(Kr("add"),Kr("add-workspace"),Kr("align-bottom"),Kr("align-bottom-solid"),Kr("align-left"),Kr("align-left-bottom"),Kr("align-left-bottom-solid"),Kr("align-left-solid"),Kr("align-left-top"),Kr("align-left-top-solid"),Kr("align-right"),Kr("align-right-bottom"),Kr("align-right-bottom-solid"),Kr("align-right-solid"),Kr("align-right-top"),Kr("align-right-top-solid"),Kr("align-top"),Kr("align-top-solid"),Kr("always-on-top"),Kr("always-on-top-on"),Kr("application"),Kr("apps"),Kr("arrow-down-long"),Kr("arrow-down"),Kr("arrow-down-to-bracket"),Kr("arrow-left-long"),Kr("arrow-right-from-bracket"),Kr("arrow-right-long"),Kr("arrow-right-long-to-line"),Kr("arrow-up"),Kr("arrow-up-long"),Kr("ban"),Kr("bell"),Kr("bell-solid"),Kr("bookmark"),Kr("bullseye-pointer"),Kr("certificate"),Kr("check"),Kr("check-solid"),Kr("chevron-down"),Kr("chevron-left"),Kr("chevron-right"),Kr("chevron-up"),Kr("circle-info"),Kr("circle-xmark"),Kr("circle-xmark-full"),Kr("clock"),Kr("clock-rotate-left"),Kr("clone"),Kr("close"),Kr("cog"),Kr("cog-solid"),Kr("collapse"),Kr("copy"),Kr("display"),Kr("download"),Kr("download-icon-arrow"),Kr("delete-left"),Kr("dev-tools"),Kr("ellipsis"),Kr("ellipsis-vertical"),Kr("expand"),Kr("envelope"),Kr("envelope-open"),Kr("exclamation-mark"),Kr("expand"),Kr("feedback"),Kr("filter"),Kr("floppy"),Kr("floppy-disk-pen"),Kr("folder"),Kr("folder-open"),Kr("folder-plus"),Kr("globe"),Kr("grid"),Kr("group"),Kr("hidden"),Kr("home"),Kr("house"),Kr("info"),Kr("keyboard"),Kr("layout"),Kr("link"),Kr("link-disabled"),Kr("list-ul"),Kr("lock"),Kr("logo"),Kr("minimize"),Kr("minimize-down"),Kr("paper-plane-top"),Kr("paperclip"),Kr("plug"),Kr("pause"),Kr("pen-line"),Kr("pen-to-square"),Kr("pin"),Kr("play"),Kr("pop-in"),Kr("pop-in-widget"),Kr("pop-out"),Kr("power-off"),Kr("publish"),Kr("refresh"),Kr("resize"),Kr("restore"),Kr("rotate-right"),Kr("search"),Kr("search-filled"),Kr("sleep"),Kr("sliders"),Kr("snooze"),Kr("spinner"),Kr("square"),Kr("square-arrow-down"),Kr("square-arrow-up"),Kr("square-list"),Kr("star"),Kr("star-full"),Kr("sticky-off"),Kr("sticky-off-hover"),Kr("sticky-on"),Kr("sticky-on-hover"),Kr("subscribe"),Kr("up-from-line"),Kr("system-close"),Kr("system-maximize"),Kr("system-minimize"),Kr("thumbs-down"),Kr("thumbs-up"),Kr("trash"),Kr("trash-can"),Kr("triangle-exclamation"),Kr("unlock"),Kr("unpin"),Kr("up-to-line"),Kr("user"),Kr("user-gear"),Kr("visible"),Kr("visible-full"),Kr("users-gear"),Kr("workspace"),Kr("fav-add"),Kr("fav-remove")),Is=qr({name:ia,displayName:ta(ia),icon:ta(ws),iconSrc:ta(ia),disabled:ta(Ur()),separatorAfter:ta(Ur())}),Cs=qr({id:ia,title:ia,description:ta($r()),icon:ta(ws),iconSrc:ta(ia),contextMenuActions:ta(ea(Is)),type:ia}),xs=ea(Cs),As=ea(qr({name:ia,id:ta(ia)})),ks=ea(qr({id:ia,title:ia})),Ss=qr({name:ia,type:ia,id:ta(ia)}),Ns=na(Kr("Left"),Kr("Right")),Ps=na(Kr("daily"),Kr("weekly")),Es=na(Kr("Sunday"),Kr("Monday"),Kr("Tuesday"),Kr("Wednesday"),Kr("Thursday"),Kr("Friday"),Kr("Saturday")),Ls=qr({customPrefs:ta(Qr()),_launchpad_collapsedSections:ta(ea(ia)),_launchpad_favorites:ta(xs),_launchpad_recent:ta(ea(Ss)),_launchpad_isCollapsed:ta(Ur()),_launchpad_isPinned:ta(Ur()),_launchpad_isDocked:ta(Ur()),_launchpad_minimizeToTray:ta(Ur()),_launchpad_autoCloseStartingAppsAndWorkspaces:ta(Ur()),_launchpad_pinnedPosition:ta(Ns),_launchpad_allowDocking:ta(Ur()),_launchpad_dockedAlwaysOnTop:ta(Ur()),_launchpad_dockedClaimsSpace:ta(Ur()),_launchpad_showExtendedArea:ta(Ur()),_launchpad_hideLabelsInExtendedArea:ta(Ur()),_launchpad_showFavoritesInExtendedArea:ta(Ur()),_launchpad_hideFavoritesSection:ta(Ur()),_launchpad_showRecentAppsInExtendedArea:ta(Ur()),_layouts_restoreLastSaved:ta(Ur()),_layouts_saveCurrentOnExit:ta(Ur()),_layouts_showUnsavedChangesPrompt:ta(Ur()),_layouts_showDeletePrompt:ta(Ur()),_layouts_hidden:ta(As),_layouts_showHidden:ta(Ur()),_workspaces_hidden:ta(ks),_downloads_askForEachDownload:ta(Ur()),_downloads_location:ta($r()),_system_scheduleRestart:ta(Ur()),_system_scheduleRestartTime:ta(ia),_system_scheduleRestartFrequency:ta(Ps),_system_scheduleRestartDay:ta(Es),_system_scheduleShutdown:ta(Ur()),_system_scheduleShutdownTime:ta(ia),_system_scheduleShutdownFrequency:ta(Ps),_system_scheduleShutdownDay:ta(Es)}),Bs=reactExports.createContext(void 0);function Rs({prefKey:e}){const t=reactExports.useContext(IOConnectContext),n=reactExports.useContext(Bs),o=n?.prefs?.[e],i=n?.isInitialSetupCompleted??!1,[r,s]=reactExports.useState(!i),[u,f]=reactExports.useState(),m=reactExports.useRef(0);reactExports.useEffect(()=>{i&&0===m.current&&s(!1);},[i]);const h=reactExports.useCallback(async n=>{if(!t)return;const o=++m.current;s(!0),f(void 0);const i=async n=>{n&&await fa({io:t,variant:ua,text:`Failed to update prefKey "${e}".`,error:n}),o===m.current&&(s(!1),n&&f({message:pa(n)}));};let r;if(n instanceof Function)try{r=n((await t.contexts.get(Da))[e]);}catch(e){return i(e)}else r=n;try{const n=Ls.runWithException({[e]:r});await t.contexts.update(Da,n);}catch(e){return i(e)}await i();},[t,e]);if(void 0===n)throw new Error("usePlatformPref must be used within a PlatformPrefsProvider");return {error:u,isLoading:r,update:h,value:o}}function Xl({className:n,size:o="large",variant:i="default",align:r="up",text:a,...s}){const c=S("io-loader",{[`io-loader-${i}`]:"default"!==i},"normal"===o&&"io-loader-md","small"===o&&"io-loader-sm",r&&[`direction-${r}`],n);return jsxRuntimeExports.jsxs("div",{className:c,role:"status","aria-live":"polite",...s,children:[jsxRuntimeExports.jsx("div",{className:"io-loader-icon"}),a&&jsxRuntimeExports.jsx("div",{className:"io-loader-text",children:a})]})}function Zl({className:t,children:n,...o}){const i=S("io-panel-header",t);return jsxRuntimeExports.jsx(se,{className:i,...o,children:n})}Zl.Title=O,Zl.ButtonGroup=ae,Zl.Button=D,Zl.ButtonIcon=P,Zl.Dropdown=re;const jl=reactExports.forwardRef(({className:t,children:n,...o},i)=>{const r=S("io-panel-body",t);return jsxRuntimeExports.jsx("div",{className:r,ref:i,"data-testid":"panel-body",...o,children:n})});function Jl({className:t,...n}){const o=S("io-panel-footer",t);return jsxRuntimeExports.jsx(ue,{className:o,...n})}function Yl({className:t,children:n,...o}){const i=S("io-panel",t);return jsxRuntimeExports.jsx("div",{className:i,"data-testid":"panel",...o,children:n})}function $l({className:t,variant:n="default",children:o,...i}){const r=S("io-pill","default"!==n&&[`io-pill-${n}`],t);return jsxRuntimeExports.jsx("div",{className:r,role:"status",...i,children:o})}function _l({className:t,variant:n="active",value:o=0,...i}){const r=S("io-progress",n,t);let a;return a=o<0?0:o>100?100:o,jsxRuntimeExports.jsx("div",{className:r,role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,...i,children:jsxRuntimeExports.jsx("div",{className:"io-progress-bar",style:{width:`${a}%`}})})}
1552
1552
  /*!
1553
1553
  * OverlayScrollbars
1554
1554
  * Version: 2.14.0
@@ -1557,8 +1557,15 @@
1557
1557
  * https://github.com/KingSora
1558
1558
  *
1559
1559
  * Released under the MIT license.
1560
- */Us.displayName="PanelBody",Gs.ButtonGroup=ae,Gs.Button=$,Gs.ButtonIcon=I,Gs.Dropdown=re,qs.Header=Ks,qs.Body=Us,qs.Footer=Gs,Js.Icon=P;const Xs=(e,t)=>{const{o:n,i:o,u:i}=e;let r,a=n;const s=(e,t)=>{const n=a,s=e,c=t||(o?!o(n,s):n!==s);return (c||i)&&(a=s,r=n),[a,c,r]};return [t?e=>s(t(a,r),e):s,e=>[a,!!e,r]]},Qs="undefined"!=typeof window&&"undefined"!=typeof HTMLElement&&!!window.document?window:{},Zs=Math.max,ec=Math.min,tc=Math.round,nc=Math.abs,oc=Math.sign,ic=Qs.cancelAnimationFrame,rc=Qs.requestAnimationFrame,ac=Qs.setTimeout,sc=Qs.clearTimeout,cc=e=>void 0!==Qs[e]?Qs[e]:void 0,lc=cc("MutationObserver"),uc=cc("IntersectionObserver"),dc=cc("ResizeObserver"),fc=cc("ScrollTimeline"),pc=e=>void 0===e,mc=e=>null===e,hc=e=>"number"==typeof e,gc=e=>"string"==typeof e,yc=e=>"boolean"==typeof e,vc=e=>"function"==typeof e,wc=e=>Array.isArray(e),bc=e=>"object"==typeof e&&!wc(e)&&!mc(e),kc=e=>{const t=!!e&&e.length,n=hc(t)&&t>-1&&t%1==0;return !!(wc(e)||!vc(e)&&n)&&(!(t>0&&bc(e))||t-1 in e)},xc=e=>!!e&&e.constructor===Object,Cc=e=>e instanceof HTMLElement,Sc=e=>e instanceof Element;function Nc(e,t){if(kc(e))for(let n=0;n<e.length&&!1!==t(e[n],n,e);n++);else e&&Nc(Object.keys(e),n=>t(e[n],n,e));return e}const Ec=(e,t)=>e.indexOf(t)>=0,Pc=(e,t)=>e.concat(t),Ic=(e,t,n)=>(!gc(t)&&kc(t)?Array.prototype.push.apply(e,t):e.push(t),e),Ac=e=>Array.from(e||[]),Oc=e=>wc(e)?e:!gc(e)&&kc(e)?Ac(e):[e],Lc=e=>!!e&&!e.length,Tc=e=>Ac(new Set(e)),Dc=(e,t,n)=>{Nc(e,e=>!e||e.apply(void 0,t||[])),n||(e.length=0);},Bc="paddingTop",Rc="paddingRight",Fc="paddingLeft",Mc="paddingBottom",$c="marginLeft",_c="marginRight",zc="marginBottom",jc="overflowX",Hc="overflowY",Wc="width",Vc="height",Kc="visible",Uc="hidden",Gc="scroll",qc=(e,t,n,o)=>{if(e&&t){let o=!0;return Nc(n,n=>{e[n]!==t[n]&&(o=!1);}),o}return !1},Jc=(e,t)=>qc(e,t,["w","h"]),Yc=(e,t)=>qc(e,t,["x","y"]),Xc=(e,t)=>qc(e,t,["t","r","b","l"]),Qc=(e,...t)=>e.bind(0,...t),Zc=e=>{let t;const n=e?ac:rc,o=e?sc:ic;return [i=>{o(t),t=n(()=>i(),vc(e)?e():e);},()=>o(t)]},el=e=>{const t=vc(e)?e():e;if(hc(t)){const e=t?ac:rc,n=t?sc:ic;return o=>{const i=e(()=>o(),t);return ()=>{n(i);}}}return t&&t._},tl=(e,t)=>{const{p:n,v:o,S:i,m:r}=t||{};let a,s,c,l;const u=function(t){s&&s(),a&&a(),l=s=a=c=void 0,e.apply(this,t);},d=e=>r&&c?r(c,e):e,f=()=>{s&&c&&u(d(c)||c);},p=function(){const e=Ac(arguments),t=el(n);if(t){const n="function"==typeof i?i():i,r=el(o),p=d(e)||e,m=u.bind(0,p);s&&s(),n&&!l?(m(),l=!0,s=t(()=>l=void 0)):(s=t(m),r&&!a&&(a=r(f))),c=p;}else u(e);};return p.O=f,p},nl=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ol=e=>e?Object.keys(e):[],il=(e,t,n,o,i,r,a)=>{const s=[t,n,o,i,r,a];return "object"==typeof e&&!mc(e)||vc(e)||(e={}),Nc(s,t=>{Nc(t,(n,o)=>{const i=t[o];if(e===i)return !0;const r=wc(i);if(i&&xc(i)){const t=e[o];let n=t;r&&!wc(t)?n=[]:r||xc(t)||(n={}),e[o]=il(n,i);}else e[o]=r?i.slice():i;});}),e},rl=(e,t)=>Nc(il({},e),(e,t,n)=>{void 0===e?delete n[t]:e&&xc(e)&&(n[t]=rl(e));}),al=e=>!ol(e).length,sl=()=>{},cl=(e,t,n)=>Zs(e,ec(t,n)),ll=e=>Tc((wc(e)?e:(e||"").split(" ")).filter(e=>e)),ul=(e,t)=>e&&e.getAttribute(t),dl=(e,t)=>e&&e.hasAttribute(t),fl=(e,t,n)=>{Nc(ll(t),t=>{e&&e.setAttribute(t,String(n||""));});},pl=(e,t)=>{Nc(ll(t),t=>e&&e.removeAttribute(t));},ml=(e,t)=>{const n=ll(ul(e,t)),o=Qc(fl,e,t),i=(e,t)=>{const o=new Set(n);return Nc(ll(e),e=>{o[t](e);}),Ac(o).join(" ")};return {C:e=>o(i(e,"delete")),$:e=>o(i(e,"add")),H:e=>{const t=ll(e);return t.reduce((e,t)=>e&&n.includes(t),t.length>0)}}},hl=(e,t,n)=>(ml(e,t).C(n),Qc(gl,e,t,n)),gl=(e,t,n)=>(ml(e,t).$(n),Qc(hl,e,t,n)),yl=(e,t,n,o)=>(o?gl:hl)(e,t,n),vl=(e,t,n)=>ml(e,t).H(n),wl=e=>ml(e,"class"),bl=(e,t)=>{wl(e).C(t);},kl=(e,t)=>(wl(e).$(t),Qc(bl,e,t)),xl=(e,t)=>{const n=t?Sc(t)&&t:document;return n?Ac(n.querySelectorAll(e)):[]},Cl=(e,t)=>Sc(e)&&e.matches(t),Sl=e=>Cl(e,"body"),Nl=e=>e?Ac(e.childNodes):[],El=e=>e&&e.parentElement,Pl=(e,t)=>Sc(e)&&e.closest(t),Il=e=>document.activeElement,Al=(e,t,n)=>{const o=Pl(e,t),i=e&&((e,t)=>{const n=t?Sc(t)&&t:document;return n&&n.querySelector(e)})(n,o),r=Pl(i,t)===o;return !(!o||!i)&&(o===e||i===e||r&&Pl(Pl(e,n),t)!==o)},Ol=e=>{Nc(Oc(e),e=>{const t=El(e);e&&t&&t.removeChild(e);});},Ll=(e,t)=>Qc(Ol,e&&t&&Nc(Oc(t),t=>{t&&e.appendChild(t);}));let Tl;const Dl=e=>{const t=document.createElement("div");return fl(t,"class",e),t},Bl=e=>{const t=Dl(),n=Tl,o=e.trim();return t.innerHTML=n?n.createHTML(o):o,Nc(Nl(t),e=>Ol(e))},Rl=(e,t)=>e.getPropertyValue(t)||e[t]||"",Fl=e=>{const t=e||0;return isFinite(t)?t:0},Ml=e=>Fl(parseFloat(e||"")),$l=e=>Math.round(1e4*e)/1e4,_l=e=>`${$l(Fl(e))}px`;function zl(e,t){e&&t&&Nc(t,(t,n)=>{try{const o=e.style,i=mc(t)||yc(t)?"":hc(t)?_l(t):t;0===n.indexOf("--")?o.setProperty(n,i):o[n]=i;}catch(e){}});}function jl(e,t,n){const o=gc(t);let i=o?"":{};if(e){const r=Qs.getComputedStyle(e,n)||e.style;i=o?Rl(r,t):Ac(t).reduce((e,t)=>(e[t]=Rl(r,t),e),i);}return i}const Hl=(e,t,n)=>{const o=t?`${t}-`:"",i=n?`-${n}`:"",r=`${o}top${i}`,a=`${o}right${i}`,s=`${o}bottom${i}`,c=`${o}left${i}`,l=jl(e,[r,a,s,c]);return {t:Ml(l[r]),r:Ml(l[a]),b:Ml(l[s]),l:Ml(l[c])}},Wl=(e,t)=>"translate"+(bc(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`),Vl={w:0,h:0},Kl=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:Vl,Ul=e=>Kl("inner",e||Qs),Gl=Qc(Kl,"offset"),ql=Qc(Kl,"client"),Jl=Qc(Kl,"scroll"),Yl=e=>{const t=parseFloat(jl(e,Wc))||0,n=parseFloat(jl(e,Vc))||0;return {w:t-tc(t),h:n-tc(n)}},Xl=e=>e.getBoundingClientRect(),Ql=e=>!(!e||!e[Vc]&&!e[Wc]),Zl=(e,t)=>{const n=Ql(e);return !Ql(t)&&n},eu=(e,t,n,o)=>{Nc(ll(t),t=>{e&&e.removeEventListener(t,n,o);});},tu=(e,t,n,o)=>{var i;const r=null==(i=o&&o.I)||i,a=o&&o.A||!1,s=o&&o.T||!1,c={passive:r,capture:a};return Qc(Dc,ll(t).map(t=>{const o=s?i=>{eu(e,t,o,a),n&&n(i);}:n;return e&&e.addEventListener(t,o,c),Qc(eu,e,t,o,a)}))},nu=e=>e.stopPropagation(),ou=e=>e.preventDefault(),iu=e=>nu(e)||ou(e),ru=(e,t)=>{const{x:n,y:o}=hc(t)?{x:t,y:t}:t||{};hc(n)&&(e.scrollLeft=n),hc(o)&&(e.scrollTop=o);},au=e=>({x:e.scrollLeft,y:e.scrollTop}),su=(e,t)=>{const{D:n,M:o}=e,{w:i,h:r}=t,a=(e,t,n)=>{let o=oc(e)*n,i=oc(t)*n;if(o===i){const n=nc(e),r=nc(t);i=n>r?0:i,o=n<r?0:o;}return o=o===i?0:o,[o+0,i+0]},[s,c]=a(n.x,o.x,i),[l,u]=a(n.y,o.y,r);return {D:{x:s,y:l},M:{x:c,y:u}}},cu=({D:e,M:t})=>{const n=(e,t)=>0===e&&e<=t;return {x:n(e.x,t.x),y:n(e.y,t.y)}},lu=({D:e,M:t},n)=>{const o=(e,t,n)=>cl(0,1,(e-n)/(e-t)||0);return {x:o(e.x,t.x,n.x),y:o(e.y,t.y,n.y)}},uu=e=>{e&&e.focus&&e.focus({preventScroll:!0,focusVisible:!1});},du=(e,t)=>{Nc(Oc(t),e);},fu=e=>{const t=new Map,n=(e,n)=>{if(e){const o=t.get(e);du(e=>{o&&o[e?"delete":"clear"](e);},n);}else t.forEach(e=>{e.clear();}),t.clear();},o=(e,i)=>{if(gc(e)){const o=t.get(e)||new Set;return t.set(e,o),du(e=>{vc(e)&&o.add(e);},i),Qc(n,e,i)}yc(i)&&i&&n();const r=ol(e),a=[];return Nc(r,t=>{const n=e[t];n&&Ic(a,o(t,n));}),Qc(Dc,a)};return o(e||{}),[o,n,(e,n)=>{Nc(Ac(t.get(e)),e=>{n&&!Lc(n)?e.apply(0,n):e();});}]},pu={},mu={},hu=(e,t,n)=>ol(e).map(o=>{const{static:i,instance:r}=e[o],[a,s,c]=n||[],l=n?r:i;if(l){const e=n?l(a,s,t):l(t);return (c||mu)[o]=e}}),gu=e=>mu[e],yu="data-overlayscrollbars",vu="os-environment",wu=`${vu}-scrollbar-hidden`,bu=`${yu}-initialize`,ku="noClipping",xu=`${yu}-body`,Cu=yu,Su=`${yu}-viewport`,Nu=jc,Eu=Hc,Pu="measuring",Iu="scrollbarHidden",Au=`${yu}-padding`,Ou=`${yu}-content`,Lu="os-size-observer",Tu=`${Lu}-appear`,Du=`${Lu}-listener`,Bu="os-scrollbar",Ru=`${Bu}-rtl`,Fu=`${Bu}-horizontal`,Mu=`${Bu}-vertical`,$u=`${Bu}-track`,_u=`${Bu}-handle`,zu=`${Bu}-visible`,ju=`${Bu}-cornerless`,Hu=`${Bu}-interaction`,Wu=`${Bu}-unusable`,Vu=`${Bu}-auto-hide`,Ku=`${Vu}-hidden`,Uu=`${Bu}-wheel`,Gu=`${$u}-interactive`,qu=`${_u}-interactive`,Ju=e=>0===e.indexOf(Kc),Yu=(e,t)=>{if("auto"===e)return t?Gc:Uc;const n=e||Uc;return [Uc,Gc,Kc].includes(n)?n:Uc},Xu=(e,t)=>{const{overflowX:n,overflowY:o}=jl(e,[jc,Hc]);return {x:Yu(n,t.x),y:Yu(o,t.y)}},Qu="__osScrollbarsHidingPlugin",Zu=e=>JSON.stringify(e,(e,t)=>{if(vc(t))throw 0;return t}),ed=(e,t)=>e?`${t}`.split(".").reduce((e,t)=>e&&nl(e,t)?e[t]:void 0,e):void 0,td=[33,99],nd=[222,666,!0],od={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:[0,33],resize:null,event:td,env:nd},attributes:null,ignoreMutation:null,flowDirectionStyles:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},id=(e,t)=>{const n={};return Nc(Pc(ol(t),ol(e)),o=>{const i=e[o],r=t[o];if(bc(i)&&bc(r))il(n[o]={},id(i,r)),al(n[o])&&delete n[o];else if(nl(t,o)&&r!==i){let e=!0;if(wc(i)||wc(r))try{Zu(i)===Zu(r)&&(e=!1);}catch(e){}e&&(n[o]=r);}}),n},rd=(e,t,n)=>o=>[ed(e,o),n||void 0!==ed(t,o)];let ad;let sd;const cd=()=>{const e=(e,t,n)=>{Ll(document.body,e),Ll(document.body,e);const o=ql(e),i=Gl(e),r=Yl(t);return n&&Ol(e),{x:i.h-o.h+r.h,y:i.w-o.w+r.w}},t=Bl(`<div class="${vu}"><div></div><style>${`.${vu}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${vu} div{width:200%;height:200%;margin:10px 0}.${wu}{scrollbar-width:none!important}.${wu}::-webkit-scrollbar,.${wu}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0],n=t.firstChild,o=t.lastChild,i=ad;i&&(o.nonce=i);const[r,,a]=fu(),[s,c]=Xs({o:e(t,n),i:Yc},Qc(e,t,n,!0)),[l]=c(),u=(e=>{let t=!1;const n=kl(e,wu);try{t="none"===jl(e,"scrollbar-width")||"none"===jl(e,"display","::-webkit-scrollbar");}catch(e){}return n(),t})(t),d={x:0===l.x,y:0===l.y},f={elements:{host:null,padding:!u,viewport:e=>u&&Sl(e)&&e,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=il({},od),m=Qc(il,{},p),h=Qc(il,{},f),g={P:l,k:d,U:u,J:!!fc,G:Qc(r,"r"),K:h,Z:e=>il(f,e)&&h(),tt:m,nt:e=>il(p,e)&&m(),ot:il({},f),st:il({},p)};if(pl(t,"style"),Ol(t),tu(Qs,"resize",()=>{a("r",[]);}),vc(Qs.matchMedia)&&!u&&(!d.x||!d.y)){const e=t=>{const n=Qs.matchMedia(`(resolution: ${Qs.devicePixelRatio}dppx)`);tu(n,"change",()=>{t(),e(t);},{T:!0});};e(()=>{const[e,t]=s();il(g.P,e),a("r",[t]);});}return g},ld=()=>(sd||(sd=cd()),sd),ud=(e,t,n,o)=>{let i=!1;const{et:r,ct:a,rt:s,it:c,lt:l,ut:u}=o||{},[d,f]=((e,t,n)=>{let o=!1;const i=!!n&&new WeakMap,r=r=>{if(i&&n){const a=n.map(t=>{const[n,o]=t||[];return [o&&n?(r||xl)(n,e):[],o]});Nc(a,n=>Nc(n[0],r=>{const a=n[1],s=i.get(r)||[];if(e.contains(r)&&a){const e=tu(r,a,n=>{o?(e(),i.delete(r)):t(n);});i.set(r,Ic(s,e));}else Dc(s),i.delete(r);}));}};return r(),[()=>{o=!0;},r]})(e,()=>i&&n(!0),s),p=a||[],m=Pc(r||[],p),h=(i,r)=>{if(!Lc(r)){const a=l||sl,s=u||sl,d=[],m=[];let h=!1,g=!1;if(Nc(r,n=>{const{attributeName:i,target:r,type:l,oldValue:u,addedNodes:f,removedNodes:y}=n,v="attributes"===l,w="childList"===l,b=e===r,k=v&&i,x=k&&ul(r,i||""),C=gc(x)?x:null,S=k&&u!==C,N=Ec(p,i)&&S;if(t&&(w||!b)){const t=v&&S,l=t&&c&&Cl(r,c),p=(l?!a(r,i,u,C):!v||t)&&!s(n,!!l,e,o);Nc(f,e=>Ic(d,e)),Nc(y,e=>Ic(d,e)),g=g||p;}!t&&b&&S&&!a(r,i,u,C)&&(Ic(m,i),h=h||N);}),f(e=>Tc(d).reduce((t,n)=>(Ic(t,xl(e,n)),Cl(n,e)?Ic(t,n):t),[])),t)return !i&&g&&n(!1),[!1];if(!Lc(m)||h){const e=[Tc(m),h];return i||n.apply(0,e),e}}},g=new lc(Qc(h,!1));return [()=>(g.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:m,subtree:t,childList:t,characterData:t}),i=!0,()=>{i&&(d(),g.disconnect(),i=!1);}),()=>{if(i)return h(!0,g.takeRecords())}]};let dd=null;const fd=(e,t,n)=>{const{ft:o}=n||{},i=gu("__osSizeObserverPlugin"),[r]=Xs({o:!1,u:!0});return ()=>{const n=[],a=Bl(`<div class="${Lu}"><div class="${Du}"></div></div>`)[0],s=a.firstChild,c=e=>{let n=!1,o=!1;if(wc(e)&&!Lc(e)){const t=e[0],[i,,a]=r(t.contentRect),s=Ql(i);o=Zl(i,a),n=!o&&!s;}else o=!0===e;n||t({_t:!0,ft:o});};if(dc){if(!yc(dd)){const t=new dc(sl);t.observe(e,{get box(){dd=!0;}}),dd=dd||!1,t.disconnect();}const t=tl(c,{p:0,v:0}),o=e=>t(e),i=new dc(o);if(i.observe(dd?e:s),Ic(n,[()=>{i.disconnect();},!dd&&Ll(e,a)]),dd){const t=new dc(o);t.observe(e,{box:"border-box"}),Ic(n,()=>t.disconnect());}}else {if(!i)return sl;{const[t,r]=i(s,c,o);Ic(n,Pc([kl(a,Tu),tu(a,"animationstart",t),Ll(e,a)],r));}}return Qc(Dc,n)}},pd=(e,t)=>{let n;const o=Dl("os-trinsic-observer"),[i]=Xs({o:!1}),r=(e,n)=>{if(e){const o=i((e=>0===e.h||e.isIntersecting||e.intersectionRatio>0)(e)),[,r]=o;return r&&!n&&t(o)&&[o]}},a=(e,t)=>r(t.pop(),e);return [()=>{const t=[];if(uc)n=new uc(Qc(a,!1),{root:e}),n.observe(o),Ic(t,()=>{n.disconnect();});else {const e=()=>{const e=Gl(o);r(e);};Ic(t,fd(o,e)()),e();}return Qc(Dc,Ic(t,Ll(e,o)))},()=>n&&a(!0,n.takeRecords())]},md=(e,t,n,o)=>{let i,r,a,s,c,l,u,d;const f=`[${Cu}]`,p=`[${Su}]`,m=["id","class","style","open","wrap","cols","rows"],{dt:h,vt:g,L:y,gt:v,ht:w,V:b,bt:k,wt:x,yt:C,St:S}=e,N=e=>"rtl"===jl(e,"direction"),E={Ot:!1,B:N(h)},P=ld(),I=gu(Qu),[A]=Xs({i:Jc,o:{w:0,h:0}},()=>{const o=I&&I.R(e,t,E,P,n).Y,i=!(k&&b)&&vl(g,Cu,ku),r=!b&&x("arrange"),a=r&&au(v),s=a&&S(),c=C(Pu,i),l=r&&o&&o(),u=Jl(y),d=Yl(y);return l&&l(),ru(v,a),s&&s(),i&&c(),{w:u.w+d.w,h:u.h+d.h}}),O=(()=>{let e,t,n;const i=tl(o,{p:()=>e,v:()=>t,S:()=>n,m(e,t){const[n]=e,[o]=t;return [Pc(ol(n),ol(o)).reduce((e,t)=>(e[t]=n[t]||o[t],e),{})]}}),r=(o,r)=>{if(wc(r)){const[o,i,a]=r;e=o,t=i,n=a;}else hc(r)?(e=r,t=!1,n=!1):(e=!1,t=!1,n=!1);i(o);};return r.O=i.O,r})(),L=e=>{const t=N(h);il(e,{Ct:d!==t}),il(E,{B:t}),d=t;},T=(e,t)=>{const[n,i]=e,r={$t:i};return il(E,{Ot:n}),t||o(r),r},D=({_t:e,ft:t})=>{const n=t?o:O,i={_t:e||t,ft:t};L(i),n(i,r);},B=(e,t)=>{const[,n]=A(),o={xt:n};return L(o),n&&!t&&O(o,e?a:i),o},R=(e,t,n)=>{const o={Ht:t};return L(o),t&&!n&&O(o,i),o},[F,M]=w?pd(g,T):[],$=!b&&fd(g,D,{ft:!0}),[_,z]=ud(g,!1,R,{ct:m,et:m}),j=b&&dc&&new dc(e=>{const t=e[e.length-1].contentRect;D({_t:!0,ft:Zl(t,u)}),u=t;});return [()=>{j&&j.observe(g);const e=$&&$(),t=F&&F(),n=_(),o=P.G(e=>{const[,t]=A();O({Et:e,xt:t,_t:k},s);});return ()=>{j&&j.disconnect(),e&&e(),t&&t(),l&&l(),n(),o();}},({zt:e,It:t,At:n})=>{const o={},[u]=e("update.ignoreMutation"),[d,h]=e("update.attributes"),[g,v]=e("update.elementEvents"),[k,x]=e("update.debounce"),C=t||n;if(v||h){c&&c(),l&&l();const[e,t]=ud(w||y,!0,B,{et:Pc(m,d||[]),rt:g,it:f,ut:(e,t)=>{const{target:n,attributeName:o}=e;return !(t||!o||b)&&Al(n,f,p)||!!Pl(n,`.${Bu}`)||!!(e=>vc(u)&&u(e))(e)}});l=e(),c=t;}if(x&&(O.O(),wc(k)||hc(k)?(i=k,r=!1,a=td,s=nd):xc(k)?(i=k.mutation,r=k.resize,a=k.event,s=k.env):(i=!1,r=!1,a=!1,s=!1)),C){const e=z(),t=M&&M(),n=c&&c();e&&il(o,R(e[0],e[1],C)),t&&il(o,T(t[0],C)),n&&il(o,B(n[0],C));}return L(o),o},E]},hd=(e,t)=>vc(t)?t.apply(0,e):t,gd=(e,t,n,o)=>{const i=pc(o)?n:o;return hd(e,i)||t.apply(0,e)},yd=(e,t,n,o)=>{const i=pc(o)?n:o,r=hd(e,i);return !!r&&(Cc(r)?r:t.apply(0,e))},vd=(e,t,n,o)=>{const i="--os-viewport-percent",r="--os-scroll-percent",a="--os-scroll-direction",{K:s}=ld(),{scrollbars:c}=s(),{slot:l}=c,{dt:u,vt:d,L:f,Tt:p,gt:m,bt:h,V:g}=t,{scrollbars:y}=p?{}:e,{slot:v}=y||{},w=[],b=[],k=[],x=yd([u,d,f],()=>g&&h?u:d,l,v),C=e=>{if(fc){let t=null,o=[];const i=new fc({source:m,axis:e}),r=()=>{t&&t.cancel(),t=null;},a=a=>{const{Dt:s}=n,c=cu(s)[e],l="x"===e,u=[Wl(0,l),Wl(`calc(-100% + 100cq${l?"w":"h"})`,l)],d=c?u:u.reverse();return o[0]===d[0]&&o[1]===d[1]||(o=d,r(),t=a.Mt.animate({clear:["left"],transform:d},{timeline:i})),r};return {kt:a}}},S={x:C("x"),y:C("y")},N=(e,t,n)=>{const o=n?kl:bl;Nc(e,e=>{o(e.Lt,t);});},E=(e,t)=>{Nc(e,e=>{const[n,o]=t(e);zl(n,o);});},P=(e,t,n)=>{const o=yc(n),i=!o||!n;(!o||n)&&N(b,e,t),i&&N(k,e,t);},I=e=>{const t=e?"x":"y",n=Dl(`${Bu} ${e?Fu:Mu}`),i=Dl($u),r=Dl(_u),a={Lt:n,Ut:i,Mt:r},s=S[t];return Ic(e?b:k,a),Ic(w,[Ll(n,i),Ll(i,r),Qc(Ol,n),s&&s.kt(a),o(a,P,e)]),a},A=Qc(I,!0),O=Qc(I,!1);return A(),O(),[{Pt:()=>{const e=(()=>{const{Rt:e,Vt:t}=n,o=(e,t)=>cl(0,1,e/(e+t)||0);return {x:o(t.x,e.x),y:o(t.y,e.y)}})(),t=e=>t=>[t.Lt,{[i]:$l(e)+""}];E(b,t(e.x)),E(k,t(e.y));},Nt:()=>{if(!fc){const{Dt:e}=n,t=lu(e,au(m)),o=e=>t=>[t.Lt,{[r]:$l(e)+""}];E(b,o(t.x)),E(k,o(t.y));}},qt:()=>{const{Dt:e}=n,t=cu(e),o=e=>t=>[t.Lt,{[a]:e?"0":"1"}];E(b,o(t.x)),E(k,o(t.y)),fc&&(b.forEach(S.x.kt),k.forEach(S.y.kt));},Bt:()=>{if(g&&!h){const{Rt:e,Dt:t}=n,o=cu(t),i=lu(t,au(m)),r=t=>{const{Lt:n}=t,r=El(n)===f&&n,a=(e,t,n)=>{const o=t*e;return _l(n?o:-o)};return [r,r&&{transform:Wl({x:a(i.x,e.x,o.x),y:a(i.y,e.y,o.y)})}]};E(b,r),E(k,r);}},Ft:P,jt:{Xt:b,Yt:A,Wt:Qc(E,b)},Jt:{Xt:k,Yt:O,Wt:Qc(E,k)}},()=>(Ll(x,b[0].Lt),Ll(x,k[0].Lt),Qc(Dc,w))]},wd=(e,t,n,o)=>(i,r,a)=>{const{vt:s,L:c,V:l,gt:u,Gt:d,St:f}=t,{Lt:p,Ut:m,Mt:h}=i,[g,y]=Zc(333),[v,w]=Zc(444),b=e=>{vc(u.scrollBy)&&u.scrollBy({behavior:"smooth",left:e.x,top:e.y});};let k=!0;return Qc(Dc,[tu(h,"pointermove pointerleave",o),tu(p,"pointerenter",()=>{r(Hu,!0);}),tu(p,"pointerleave pointercancel",()=>{r(Hu,!1);}),!l&&tu(p,"mousedown",()=>{const e=Il();(dl(e,Su)||dl(e,Cu)||e===document.body)&&ac(Qc(uu,c),25);}),tu(p,"wheel",e=>{const{deltaX:t,deltaY:n,deltaMode:o}=e;k&&0===o&&El(p)===s&&b({x:t,y:n}),k=!1,r(Uu,!0),g(()=>{k=!0,r(Uu);}),ou(e);},{I:!1,A:!0}),tu(p,"pointerdown",()=>{const e=tu(d,"click",e=>{t(),iu(e);},{T:!0,A:!0,I:!1}),t=tu(d,"pointerup pointercancel",()=>{t(),setTimeout(e,150);},{A:!0,I:!0});},{A:!0,I:!0}),(()=>{const t="pointerup pointercancel lostpointercapture",o="client"+(a?"X":"Y"),i=a?Wc:Vc,r=a?"left":"top",s=a?"w":"h",c=a?"x":"y",l=(e,t)=>o=>{const{Rt:i}=n,r=Gl(m)[s]-Gl(h)[s],a=t*o/r*i[c];ru(u,{[c]:e+a});},p=[];return tu(m,"pointerdown",n=>{const a=Pl(n.target,`.${_u}`)===h,g=a?h:m,y=e.scrollbars,k=y[a?"dragScroll":"clickScroll"],{button:x,isPrimary:C,pointerType:S}=n,{pointers:N}=y;if(0===x&&C&&k&&(N||[]).includes(S)){Dc(p),w();const e=!a&&(n.shiftKey||"instant"===k),y=Qc(Xl,h),x=Qc(Xl,m),C=(e,t)=>(e||y())[r]-(t||x())[r],S=tc(Xl(u)[i])/Gl(u)[s]||1,N=l(au(u)[c],1/S),E=n[o],P=y(),I=x(),A=P[i],O=C(P,I)+A/2,L=E-I[r],T=a?0:L-O,D=e=>{Dc(F),g.releasePointerCapture(e.pointerId);},B=a||e,R=f(),F=[tu(d,t,D),tu(d,"selectstart",e=>ou(e),{I:!1}),tu(m,t,D),B&&tu(m,"pointermove",e=>N(T+(e[o]-E))),B&&(()=>{const e=au(u);R();const t=au(u),n={x:t.x-e.x,y:t.y-e.y};(nc(n.x)>3||nc(n.y)>3)&&(f(),ru(u,e),b(n),v(R));})];if(g.setPointerCapture(n.pointerId),e)N(T);else if(!a){const e=gu("__osClickScrollPlugin");if(e){const t=e(N,T,A,e=>{e?R():Ic(F,R);});Ic(F,t),Ic(p,Qc(t,!0));}}}})})(),y,w])},bd=e=>{const t=ld(),{K:n,U:o}=t,{elements:i}=n(),{padding:r,viewport:a,content:s}=i,c=Cc(e),l=c?{}:e,{elements:u}=l,{padding:d,viewport:f,content:p}=u||{},m=c?e:l.target,h=Sl(m),g=m.ownerDocument,y=g.documentElement,v=()=>g.defaultView||Qs,w=Qc(gd,[m]),b=Qc(yd,[m]),k=Qc(Dl,""),x=Qc(w,k,a),C=Qc(b,k,s),S=x(f),N=S===m,E=N&&h,P=!N&&C(p),I=!N&&S===P,A=E?y:S,O=E?A:m,L=!N&&b(k,r,d),T=!I&&P,D=[T,A,L,O].map(e=>Cc(e)&&!El(e)&&e),B=e=>e&&Ec(D,e),R=!B(A)&&(e=>{const t=Gl(e),n=Jl(e),o=jl(e,jc),i=jl(e,Hc);return n.w-t.w>0&&!Ju(o)||n.h-t.h>0&&!Ju(i)})(A)?A:m,F=E?y:A,M={dt:m,vt:O,L:A,rn:L,ht:T,gt:F,Kt:E?g:A,ln:h?y:R,Gt:g,bt:h,Tt:c,V:N,an:v,wt:e=>vl(A,Su,e),yt:(e,t)=>yl(A,Su,e,t),St:()=>yl(F,Su,"scrolling",!0)},{dt:$,vt:_,rn:z,L:j,ht:H}=M,W=[()=>{pl(_,[Cu,bu]),pl($,bu),h&&pl(y,[bu,Cu]);}];let V=Nl([H,j,z,_,$].find(e=>e&&!B(e)));const K=E?$:H||j,U=Qc(Dc,W);return [M,()=>{const e=v(),t=Il(),n=e=>{Ll(El(e),Nl(e)),Ol(e);},i=e=>tu(e,"focusin focusout focus blur",iu,{A:!0,I:!1}),r="tabindex",a=ul(j,r),s=i(t);return fl(_,Cu,N?"":"host"),fl(z,Au,""),fl(j,Su,""),fl(H,Ou,""),N||(fl(j,r,a||"-1"),h&&fl(y,xu,"")),Ll(K,V),Ll(_,z),Ll(z||_,!N&&j),Ll(j,H),Ic(W,[s,()=>{const e=Il(),t=B(j),o=t&&e===j?$:e,s=i(o);pl(z,Au),pl(H,Ou),pl(j,Su),h&&pl(y,xu),a?fl(j,r,a):pl(j,r),B(H)&&n(H),t&&n(j),B(z)&&n(z),uu(o),s();}]),o&&!N&&(gl(j,Su,Iu),Ic(W,Qc(pl,j,Su))),uu(!N&&h&&t===$&&e.top===e?j:t),s(),V=0,U},U]},kd=({ht:e})=>({Qt:t,un:n,At:o})=>{const{$t:i}=t||{},{Ot:r}=n;e&&(i||o)&&zl(e,{[Vc]:r&&"100%"});},xd=({vt:e,rn:t,L:n,V:o},i)=>{const[r,a]=Xs({i:Xc,o:Hl()},Qc(Hl,e,"padding",""));return ({zt:e,Qt:s,un:c,At:l})=>{let[u,d]=a(l);const{U:f}=ld(),{_t:p,xt:m,Ct:h}=s||{},{B:g}=c,[y,v]=e("paddingAbsolute");(p||d||(l||m))&&([u,d]=r(l));const w=!o&&(v||h||d);if(w){const e=!y||!t&&!f,o=u.r+u.l,r=u.t+u.b,a={[_c]:e&&!g?-o:0,[zc]:e?-r:0,[$c]:e&&g?-o:0,top:e?-u.t:0,right:e?g?-u.r:"auto":0,left:e?g?"auto":-u.l:0,[Wc]:e&&`calc(100% + ${o}px)`},s={[Bc]:e?u.t:0,[Rc]:e?u.r:0,[Mc]:e?u.b:0,[Fc]:e?u.l:0};zl(t||n,a),zl(n,s),il(i,{rn:u,fn:!e,F:t?s:il({},a,s)});}return {_n:w}}},Cd=(e,t)=>{const n=ld(),{vt:o,rn:i,L:r,V:a,Kt:s,gt:c,bt:l,yt:u,an:d}=e,{U:f}=n,p=l&&a,m=Qc(Zs,0),h={display:()=>!1,direction:e=>"ltr"!==e,flexDirection:e=>e.endsWith("-reverse"),writingMode:e=>"horizontal-tb"!==e},g=ol(h),y={i:Jc,o:{w:0,h:0}},v={i:Yc,o:{}},w=e=>{u(Pu,!p&&e);},b=()=>jl(r,g),k=(e,t)=>{const n=!ol(e).length,o=!t&&g.some(t=>{const n=e[t];return gc(n)&&h[t](n)});if(n&&!o||!(e=>!!e&&(e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e))(r))return {D:{x:0,y:0},M:{x:1,y:1}};w(!0);const i=au(c),a=tu(s,Gc,e=>{const t=au(c);e.isTrusted&&t.x===i.x&&t.y===i.y&&nu(e);},{A:!0,T:!0}),l=u("noContent",!0);ru(c,{x:0,y:0}),l();const d=au(c),f=Jl(c);ru(c,{x:f.w,y:f.h});const p=au(c),m={x:p.x-d.x,y:p.y-d.y};ru(c,{x:-f.w,y:-f.h});const y=au(c),v={x:y.x-d.x,y:y.y-d.y},b={x:nc(m.x)>=nc(v.x)?p.x:y.x,y:nc(m.y)>=nc(v.y)?p.y:y.y};return ru(c,i),rc(()=>a()),{D:d,M:b}},x=(e,t)=>{const n=Qs.devicePixelRatio%1!=0?1:0,o={w:m(e.w-t.w),h:m(e.h-t.h)};return {w:o.w>n?o.w:0,h:o.h>n?o.h:0}},C=(e,t)=>{const n=(e,t,n,o)=>{const i=e===Kc?Uc:(e=>e.replace(`${Kc}-`,""))(e),r=Ju(e),a=Ju(n);if(!t&&!o)return Uc;if(r&&a)return Kc;if(r){return t&&o?i:t?Kc:Uc}return t?i:a&&o?Kc:Uc};return {x:n(t.x,e.x,t.y,e.y),y:n(t.y,e.y,t.x,e.x)}},S=e=>{const t=e=>[Kc,Uc,Gc].map(t=>_(Yu(t),e)),n=t(!0).concat(t()).join(" ");u(n),u(ol(e).map(t=>_(e[t],"x"===t)).join(" "),!0);},[N,E]=Xs(y,Qc(Yl,r)),[P,I]=Xs(y,Qc(Jl,r)),[A,O]=Xs(y),[L]=Xs(v),[T,D]=Xs(y),[B]=Xs(v),[R]=Xs({i:(e,t)=>qc(e,t,Tc(Pc(ol(e),ol(t)))),o:{}}),[F,M]=Xs({i:(e,t)=>Yc(e.D,t.D)&&Yc(e.M,t.M),o:{D:{x:0,y:0},M:{x:0,y:0}}}),$=gu(Qu),_=(e,t)=>`${t?Nu:Eu}${(e=>{const t=String(e||"");return t?t[0].toUpperCase()+t.slice(1):""})(e)}`;return ({zt:a,Qt:s,un:c,At:l},{_n:h})=>{const{_t:g,Ht:y,xt:v,Ct:_,ft:z,Et:j}=s||{},H=$&&$.R(e,t,c,n,a),{X:W,Y:V,W:K}=H||{},[U,G]=((e,t)=>{const{k:n}=t,[o,i]=e("showNativeOverlaidScrollbars");return [o&&n.x&&n.y,i]})(a,n),[q,J]=a("overflow"),Y=Ju(q.x),X=Ju(q.y),Q=g||h||v||_||j||G;let Z=E(l),ee=I(l),te=O(l),ne=D(l);if(G&&f&&u(Iu,!U),Q){vl(o,Cu,ku)&&w(!0);const e=V&&V(),[t]=Z=N(l),[n]=ee=P(l),i=ql(r),a=p&&Ul(d()),s={w:m(n.w+t.w),h:m(n.h+t.h)},c={w:m((a?a.w:i.w+m(i.w-n.w))+t.w),h:m((a?a.h:i.h+m(i.h-n.h))+t.h)};e&&e(),ne=T(c),te=A(x(s,c),l);}const[oe,ie]=ne,[re,ae]=te,[se,ce]=ee,[le,ue]=Z,[de,fe]=L({x:re.w>0,y:re.h>0}),pe=Y&&X&&(de.x||de.y)||Y&&de.x&&!de.y||X&&de.y&&!de.x,me=h||_||j||ue||ce||ie||ae||J||G||Q||y&&p,[he]=a("update.flowDirectionStyles"),[ge,ye]=R(he?he(r):b(),l),ve=_||z||ye||fe||l,[we,be]=ve?F(k(ge,!!he),l):M();let ke=C(de,q);w(!1),me&&(S(ke),ke=Xu(r,de),K&&W&&(W(ke,se,le),zl(r,K(ke))));const[xe,Ce]=B(ke);return yl(o,Cu,ku,pe),yl(i,Au,ku,pe),il(t,{cn:xe,Vt:{x:oe.w,y:oe.h},Rt:{x:re.w,y:re.h},j:de,Dt:su(we,re)}),{sn:Ce,tn:ie,nn:ae,en:be||ae}}},Sd=e=>{const[t,n,o]=bd(e),i={rn:{t:0,r:0,b:0,l:0},fn:!1,F:{[_c]:0,[zc]:0,[$c]:0,[Bc]:0,[Rc]:0,[Mc]:0,[Fc]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},cn:{x:Uc,y:Uc},j:{x:!1,y:!1},Dt:{D:{x:0,y:0},M:{x:0,y:0}}},{dt:r,gt:a,V:s,St:c}=t,{U:l,k:u}=ld(),d=!l&&(u.x||u.y),f=[kd(t),xd(t,i),Cd(t,i)];return [n,e=>{const t={},n=d&&au(a),o=n&&c();return Nc(f,n=>{il(t,n(e,t)||{});}),ru(a,n),o&&o(),s||ru(r,0),t},i,t,o]},Nd=(e,t,n,o,i)=>{let r=!1;const a=rd(t,{}),[s,c,l,u,d]=Sd(e),[f,p,m]=md(u,l,a,e=>{w({},e);}),[h,g,,y]=((e,t,n,o,i,r)=>{let a,s,c,l,u,d=sl,f=0;const p=["mouse","pen"],m=e=>p.includes(e.pointerType),[h,g]=Zc(),[y,v]=Zc(100),[w,b]=Zc(100),[k,x]=Zc(()=>f),[C,S]=vd(e,i,o,wd(t,i,o,e=>m(e)&&B())),{vt:N,Kt:E,bt:P}=i,{Ft:I,Pt:A,Nt:O,qt:L,Bt:T}=C,D=(e,t)=>{if(x(),e)I(Ku);else {const e=Qc(I,Ku,!0);f>0&&!t?k(e):e();}},B=()=>{(c?a:l)||(D(!0),y(()=>{D(!1);}));},R=e=>{I(Vu,e,!0),I(Vu,e,!1);},F=e=>{m(e)&&(a=c,c&&D(!0));},M=[x,v,b,g,()=>d(),tu(N,"pointerover",F,{T:!0}),tu(N,"pointerenter",F),tu(N,"pointerleave",e=>{m(e)&&(a=!1,c&&D(!1));}),tu(N,"pointermove",e=>{m(e)&&s&&B();}),tu(E,"scroll",e=>{h(()=>{O(),B();}),r(e),T();})],$=gu(Qu);return [()=>Qc(Dc,Ic(M,S())),({zt:e,At:t,Qt:i,Zt:r})=>{const{tn:a,nn:p,sn:m,en:h}=r||{},{Ct:g,ft:y}=i||{},{B:v}=n,{k:b,U:k}=ld(),{cn:x,j:C}=o,[S,N]=e("showNativeOverlaidScrollbars"),[B,F]=e("scrollbars.theme"),[M,_]=e("scrollbars.visibility"),[z,j]=e("scrollbars.autoHide"),[H,W]=e("scrollbars.autoHideSuspend"),[V]=e("scrollbars.autoHideDelay"),[K,U]=e("scrollbars.dragScroll"),[G,q]=e("scrollbars.clickScroll"),[J,Y]=e("overflow"),X=y&&!t,Q=C.x||C.y,Z=a||p||h||g||t,ee=m||_||Y,te=S&&b.x&&b.y,ne=!k&&!$,oe=te||ne,ie=(e,t,n)=>{const o=e.includes(Gc)&&(M===Kc||"auto"===M&&t===Gc);return I(zu,o,n),o};if(f=V,X&&(H&&Q?(R(!1),d(),w(()=>{d=tu(E,"scroll",Qc(R,!0),{T:!0});})):R(!0)),(N||ne)&&I("os-theme-none",oe),F&&(I(u),I(B,!0),u=B),W&&!H&&R(!0),j&&(s="move"===z,c="leave"===z,l="never"===z,D(l,!0)),U&&I(qu,K),q&&I(Gu,!!G),ee){const e=ie(J.x,x.x,!0),t=ie(J.y,x.y,!1);I(ju,!(e&&t));}Z&&(O(),A(),T(),h&&L(),I(Wu,!C.x,!0),I(Wu,!C.y,!1),I(Ru,v&&!P));},{},C]})(e,t,m,l,u,i),v=e=>ol(e).some(t=>!!e[t]),w=(e,i)=>{if(n())return !1;const{dn:a,At:s,It:l,pn:u}=e,d=a||{},f=!!s||!r,h={zt:rd(t,d,f),dn:d,At:f};if(u)return g(h),!1;const y=i||p(il({},h,{It:l})),w=c(il({},h,{un:m,Qt:y}));g(il({},h,{Qt:y,Zt:w}));const b=v(y),k=v(w),x=b||k||!al(d)||f;return r=!0,x&&o(e,{Qt:y,Zt:w}),x};return [()=>{const{ln:e,gt:t,St:n}=u,o=au(e),i=[f(),s(),h()],r=n();return ru(t,o),r(),Qc(Dc,i)},w,()=>({vn:m,gn:l}),{hn:u,bn:y},d]},Ed=new WeakMap,Pd=e=>Ed.get(e),Id=(e,t,n)=>{const{tt:o}=ld(),i=Cc(e),r=i?e:e.target,a=Pd(r);if(t&&!a){let a=!1;const s=[],c={},l=e=>{const t=rl(e),n=gu("__osOptionsValidationPlugin");return n?n(t,!0):t},u=il({},o(),l(t)),[d,f,p]=fu(),[m,h,g]=fu(n),y=(e,t)=>{g(e,t),p(e,t);},[v,w,b,k,x]=Nd(e,u,()=>a,({dn:e,At:t},{Qt:n,Zt:o})=>{const{_t:i,Ct:r,$t:a,xt:s,Ht:c,ft:l}=n,{tn:u,nn:d,sn:f,en:p}=o;y("updated",[S,{updateHints:{sizeChanged:!!i,directionChanged:!!r,heightIntrinsicChanged:!!a,overflowEdgeChanged:!!u,overflowAmountChanged:!!d,overflowStyleChanged:!!f,scrollCoordinatesChanged:!!p,contentMutation:!!s,hostMutation:!!c,appear:!!l},changedOptions:e||{},force:!!t}]);},e=>y("scroll",[S,e])),C=e=>{(e=>{Ed.delete(e);})(r),Dc(s),a=!0,y("destroyed",[S,e]),f(),h();},S={options(e,t){if(e){const n=t?o():{},i=id(u,il(n,l(e)));al(i)||(il(u,i),w({dn:i}));}return il({},u)},on:m,off:(e,t)=>{e&&t&&h(e,t);},state(){const{vn:e,gn:t}=b(),{B:n}=e,{Vt:o,Rt:i,cn:r,j:s,rn:c,fn:l,Dt:u}=t;return il({},{overflowEdge:o,overflowAmount:i,overflowStyle:r,hasOverflow:s,scrollCoordinates:{start:u.D,end:u.M},padding:c,paddingAbsolute:l,directionRTL:n,destroyed:a})},elements(){const{dt:e,vt:t,rn:n,L:o,ht:i,gt:r,Kt:a}=k.hn,{jt:s,Jt:c}=k.bn,l=e=>{const{Mt:t,Ut:n,Lt:o}=e;return {scrollbar:o,track:n,handle:t}},u=e=>{const{Xt:t,Yt:n}=e,o=l(t[0]);return il({},o,{clone:()=>{const e=l(n());return w({pn:!0}),e}})};return il({},{target:e,host:t,padding:n||o,viewport:o,content:i||o,scrollOffsetElement:r,scrollEventElement:a,scrollbarHorizontal:u(s),scrollbarVertical:u(c)})},update:e=>w({At:e,It:!0}),destroy:Qc(C,!1),plugin:e=>c[ol(e)[0]]};return Ic(s,[x]),((e,t)=>{Ed.set(e,t);})(r,S),hu(pu,Id,[S,d,c]),((e,t)=>{const{nativeScrollbarsOverlaid:n,body:o}=t||{},{k:i,U:r,K:a}=ld(),{nativeScrollbarsOverlaid:s,body:c}=a().cancel,l=null!=n?n:s,u=pc(o)?c:o,d=(i.x||i.y)&&l,f=e&&(mc(u)?!r:u);return !!d||!!f})(k.hn.bt,!i&&e.cancel)?(C(!0),S):(Ic(s,v()),y("initialized",[S]),S.update(),S)}return a};Id.plugin=e=>{const t=wc(e),n=t?e:[e],o=n.map(e=>hu(e,Id)[0]);return (e=>{Nc(e,e=>Nc(e,(t,n)=>{pu[n]=e[n];}));})(n),t?o:o[0]},Id.valid=e=>{const t=e&&e.elements,n=vc(t)&&t();return xc(n)&&!!Pd(n.target)},Id.env=()=>{const{P:e,k:t,U:n,J:o,ot:i,st:r,K:a,Z:s,tt:c,nt:l}=ld();return il({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:o,staticDefaultInitialization:i,staticDefaultOptions:r,getDefaultInitialization:a,setDefaultInitialization:s,getDefaultOptions:c,setDefaultOptions:l})},Id.nonce=e=>{ad=e;},Id.trustedTypePolicy=e=>{Tl=e;};const Ad=()=>{if(typeof window>"u"){const e=()=>{};return [e,e]}let e,t;const n=window,o="function"==typeof n.requestIdleCallback,i=n.requestAnimationFrame,r=n.cancelAnimationFrame,a=o?n.requestIdleCallback:i,s=o?n.cancelIdleCallback:r,c=()=>{s(e),r(t);};return [(n,r)=>{c(),e=a(o?()=>{c(),t=i(n);}:n,"object"==typeof r?r:{timeout:2233});},c]},Od=e=>{const{options:t,events:n,defer:o}=e||{},[i,r]=reactExports.useMemo(Ad,[]),a=reactExports.useRef(null),s=reactExports.useRef(o),c=reactExports.useRef(t),l=reactExports.useRef(n);return reactExports.useEffect(()=>{s.current=o;},[o]),reactExports.useEffect(()=>{const{current:e}=a;c.current=t,Id.valid(e)&&e.options(t||{},!0);},[t]),reactExports.useEffect(()=>{const{current:e}=a;l.current=n,Id.valid(e)&&e.on(n||{},!0);},[n]),reactExports.useEffect(()=>()=>{var e;r(),null==(e=a.current)||e.destroy();},[]),reactExports.useMemo(()=>[e=>{const t=a.current;if(Id.valid(t))return;const n=s.current,o=c.current||{},r=l.current||{},u=()=>a.current=Id(e,o,r);n?i(u,n):u();},()=>a.current],[])};reactExports.forwardRef((e,t)=>{const{element:n="div",options:o,events:r,defer:a,children:s,...c}=e,l=n,u=reactExports.useRef(null),m=reactExports.useRef(null),[h,g]=Od({options:o,events:r,defer:a});return reactExports.useEffect(()=>{const{current:e}=u,{current:t}=m;if(!e)return;return h("body"===n?{target:e,cancel:{body:null}}:{target:e,elements:{viewport:t,content:t}}),()=>{var e;return null==(e=g())?void 0:e.destroy()}},[h,n]),reactExports.useImperativeHandle(t,()=>({osInstance:g,getElement:()=>u.current}),[]),React.createElement(l,{"data-overlayscrollbars-initialize":"",ref:u,...c},"body"===n?s:React.createElement("div",{"data-overlayscrollbars-contents":"",ref:m},s))});const Ld=reactExports.forwardRef((t,n)=>{const{children:o,element:i="div",elementProps:r,wrapperClassName:s}=t,c=reactExports.useRef(null),l=reactExports.useRef(null),[u,p]=Od({options:{scrollbars:{autoHide:"leave",autoHideDelay:0}},defer:!0}),m=reactExports.useCallback(e=>{l.current=e,"function"==typeof n?n(e):null!==n&&(n.current=e);},[n]);return reactExports.useEffect(()=>{var e;if(l.current&&c.current&&((e=l.current)&&"object"==typeof e&&e.nodeType===Node.ELEMENT_NODE))return u({target:c.current,elements:{viewport:l.current,content:!1}}),()=>p()?.destroy()},[u,p]),jsxRuntimeExports.jsx("div",{"data-overlayscrollbars-initialize":"",ref:c,className:E("io-overlay-scrollbars-container",s),children:jsxRuntimeExports.jsx(i,{"data-overlayscrollbars-contents":"",ref:m,...r,children:o})})});function Td({text:t="Label",...n}){return jsxRuntimeExports.jsx("label",{...n,children:t})}var Dd=React["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"],Bd=0,Rd=()=>Bd++,Fd=0;function Md(e,t){void 0===t&&(t="🅰");var[n,o]=reactExports.useState(Fd?Rd:void 0);return Dd(()=>{void 0===n&&o(Bd++),Fd=1;},[]),e||(void 0===n?n:t+n)}function $d(){return ("function"==typeof reactExports.useId?reactExports.useId:Md)()??""}const _d=reactExports.forwardRef(({id:n,className:o,type:i="text",name:r="input",align:s="up",label:c,iconPrepend:l,iconPrependOnClick:u,iconAppend:d,iconAppendOnClick:f,placeholder:p,disabled:m,readOnly:h,errorMessage:g,errorDataTestId:y,...v},w)=>{const b=$d(),k=n||`input-${b}`,x=E("io-control-input",l&&"io-control-leading-icon",d&&"io-control-trailing-icon",m&&"io-control-disabled",h&&"io-control-readonly",g&&"io-control-error",s&&[`direction-${s}`],o),C=reactExports.useCallback(e=>{m?e.preventDefault():u&&u(e);},[u,m]),S=reactExports.useCallback(e=>{m?e.preventDefault():f&&f(e);},[f,m]);return jsxRuntimeExports.jsxs("div",{className:x,children:[c&&jsxRuntimeExports.jsx(Td,{htmlFor:k,text:c}),l&&jsxRuntimeExports.jsx(P,{variant:l,onClick:e=>C(e)}),jsxRuntimeExports.jsx("input",{id:k,className:"io-input",ref:w,type:i,name:r,tabIndex:0,placeholder:p??(()=>{switch(i){case"email":return "Enter your email here...";case"number":return "Enter number here...";case"password":return "Enter your password here...";case"tel":return "Enter your phone number here...";case"file":return "Select a file...";default:return "Enter text here..."}})(),"aria-label":c,disabled:m,readOnly:h,...g?{"aria-invalid":!0,"aria-describedby":`${k}-error`}:{},...v}),d&&jsxRuntimeExports.jsx(P,{variant:d,onClick:e=>S(e)}),g&&jsxRuntimeExports.jsxs("div",{"data-testid":y,id:`${k}-error`,className:"io-input-error",children:[jsxRuntimeExports.jsx(P,{variant:"close"}),g]})]})});_d.displayName="Input";const zd=reactExports.forwardRef(({id:n,className:o,name:i="textarea",align:r="up",label:a,rows:s=4,placeholder:c="Enter text here...",disabled:l,readOnly:u,...d},f)=>{const p=$d(),m=n||`textarea-${p}`,h=E("io-control-textarea",l&&"io-control-disabled",u&&"io-control-readonly",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsxs("div",{className:h,children:[a&&jsxRuntimeExports.jsx(Td,{htmlFor:m,text:a}),jsxRuntimeExports.jsx("textarea",{id:m,className:"io-textarea",ref:f,name:i,tabIndex:0,placeholder:c,"aria-label":a,disabled:l,readOnly:u,rows:s,...d})]})});zd.displayName="Textarea";const jd=reactExports.forwardRef(({id:n,className:o,name:i="checkbox",align:r="left",label:a,checked:s,disabled:c,...l},u)=>{const d=$d(),f=n||`checkbox-${d}`,p=E("io-control-checkbox",s&&"io-control-checked",c&&"io-control-disabled",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsxs("div",{className:p,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:f,className:"io-checkbox",ref:u,name:i,tabIndex:c?-1:0,checked:s,disabled:c,"aria-checked":s,...l}),a&&jsxRuntimeExports.jsx(Td,{htmlFor:f,text:a,"data-testid":l["data-testid"]?`${l["data-testid"]}-label`:void 0})]})});jd.displayName="Checkbox";const Hd=reactExports.forwardRef(({id:n,className:o,name:i="radio",align:r="left",label:a,checked:s,disabled:c,...l},u)=>{const d=$d(),f=n||`radio-${d}`,p=E("io-control-radio",s&&"io-control-checked",c&&"io-control-disabled",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsxs("div",{className:p,children:[jsxRuntimeExports.jsx("input",{type:"radio",id:f,className:"io-radio",ref:u,name:i,tabIndex:c?-1:0,checked:s,disabled:c,"aria-checked":s,...l}),a&&jsxRuntimeExports.jsx(Td,{htmlFor:f,text:a})]})});Hd.displayName="Radio";const Wd=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(null),o=reactExports.useCallback(t=>e?.themes?.select(t),[e]);return reactExports.useEffect(()=>{if(!e)return;let t=!1;const o=e=>{t||n(e);};return e.themes?.onChanged(o),e.themes?.getCurrent().then(o).catch(console.warn),()=>{t=!0;}},[e]),{currentTheme:t,selectTheme:o}};function Vd(e,t=500){const[n,o]=reactExports.useState(e);return reactExports.useEffect(()=>{const n=setTimeout(()=>{o(e);},t);return ()=>clearTimeout(n)},[e,t]),n}function Ud(){return reactExports.useMemo(()=>"object"==typeof window&&Lr(),[])}const tf=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState([]);return reactExports.useEffect(()=>{e&&e.themes?.list().then(n).catch(console.warn);},[e]),t};const cf=reactExports.forwardRef(({id:n,className:o,name:i="toggle",align:r="left",label:a,checked:s,disabled:c,onKeyDown:l,"data-testid":u="toggle",...d},f)=>{const p=$d(),m=n||`toggle-${p}`,h=E("io-control-toggle",s&&"io-control-checked",c&&"io-control-disabled",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsx("div",{className:h,children:jsxRuntimeExports.jsxs("label",{className:"io-toggle",htmlFor:m,tabIndex:c?-1:0,onKeyDown:l,"data-testid":`${u}-label`,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:m,className:"io-checkbox",ref:f,name:i,checked:s,disabled:c,"aria-checked":s,tabIndex:-1,"data-testid":u,...d}),jsxRuntimeExports.jsx("span",{className:"slider","data-testid":`${u}-slider`}),a]})})});function lf(e){return {name:e.name,title:e.title,hidden:e.isHidden,userProperties:e.customProperties}}function uf(e){return {name:e.name,title:e.title,hidden:e.hidden,userProperties:e.userProperties}}cf.displayName="Toggle";const df={getMyApplication:async function(e){if(e)try{const t=e.apps;if(t){const e=t.my?.appName;if(!e)return;const n=await t.registry.get({name:e});if(!n)return;return lf(n)}const n=e.appManager?.myApplication;if(!n)return;return uf(n)}catch(e){return void console.error("Failed to get my application",e)}},getApplications:async function(e){if(!e)return [];try{const t=e.apps?.registry;if(t){const e=await t.getMany()??[];return e.map(e=>lf(e))}const n=e.appManager?.applications()??[];return n.map(e=>uf(e))}catch(e){console.error("Failed to get applications",e);}return []},startApplication:async function(e,t,n){if(e)try{const o=e.apps;if(o){await(o.registry?.get({name:t}))||console.error(`Application "${t}" not found in registry`);const e=o.instances;return e?void await e.start({name:t,...n}):void console.error("io.apps.instances API is not available")}const i=e.appManager?.application(t);if(!i)return void console.error(`Application "${t}" not found`);await i.start(n);}catch(e){return void console.error(`Failed to start application "${t}"`,e)}},stopApplication:async function(e,t,n){if(e)try{const o=e.apps;if(o){const e=o.instances;return e?void await e.stop({id:t.id,force:n?.force,reason:n?.reason,timeout:n?.timeout}):void console.error("io.apps.instances API is not available")}const i=e.appManager.instances().find(e=>e.id===t.id);if(!i)return void console.error(`Instance "${t.id}" not found`);await i.stop();}catch(e){return void console.error(`Failed to stop application instance "${t.id}"`,e)}},onAppAdded:async function(e,t){if(e)try{const n=e.apps?.registry;if(n){return await n.onAdded(({app:e})=>{const n=lf(e);t(n);})}const o=e.appManager?.onAppAdded(e=>{const n=uf(e);t(n);});return o}catch(e){return void console.error("Failed to subscribe to app added events",e)}},onAppRemoved:async function(e,t){if(e)try{const n=e.apps?.registry;if(n){return await n.onRemoved(({appName:e})=>{t({name:e});})}const o=e.appManager?.onAppRemoved(e=>{t({name:e.name});});return o}catch(e){return void console.error("Failed to subscribe to app removed events",e)}},onAppChanged:async function(e,t){if(e)try{const n=e.apps?.registry;if(n){return await n.onUpdated(e=>{const n=lf(e.app);t(n);})}const o=e.appManager?.onAppChanged(e=>{const n=uf(e);t(n);});return o}catch(e){return void console.error("Failed to subscribe to app changed events",e)}},restartPlatform:async function(e,t=!0){if(!e)return;const n={autoSave:t,showDialog:!0};try{if(e.platform?.restart)return void await e.platform.restart(n);await(e.appManager?.restart(n));}catch(e){console.error("Failed to restart platform",e);}},shutdownPlatform:async function(e,t=!0){if(!e)return;const n={autoSave:t,showDialog:!0};try{if(e.platform?.shutdown)return void await e.platform.shutdown(n);await(e.appManager?.exit(n));}catch(e){console.error("Failed to shutdown platform",e);}}};const ff={minimizeWindow:async function(e){if(e)try{const t=e.windows?.my();await(t?.minimize());}catch(e){console.error("Failed to minimize window",e);}},closeWindow:async function(e,t){if(e)try{const n=e.windows?.my();await(n?.close(t));}catch(e){console.error("Failed to close window",e);}},restartPlatform:df.restartPlatform,shutdownPlatform:df.shutdownPlatform};reactExports.createContext({theme:"dark"});reactExports.createContext(void 0);const yf=n=>{const{General:o,Launchpad:i,Layouts:r,Downloads:a,System:s}=Ep();return jsxRuntimeExports.jsxs(Ld,{element:Us,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})},vf=({title:t="General",...n})=>{const{Theme:o}=Ep();return jsxRuntimeExports.jsx(D,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})},wf=({className:n,title:o="Theme",...i})=>{const{currentTheme:r,selectTheme:a}=Wd(),s=tf();return jsxRuntimeExports.jsxs("div",{className:E("flex jc-between ai-center",n),"data-testid":"theme-container",...i,children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper","data-testid":"theme-label",children:o}),jsxRuntimeExports.jsxs(re,{variant:"light","data-testid":"theme-dropdown",children:[jsxRuntimeExports.jsx(re.Button,{text:r?.displayName??"Dark","data-testid":"theme-dropdown-button"}),jsxRuntimeExports.jsx(re.Content,{"data-testid":"theme-dropdown-content",children:jsxRuntimeExports.jsx(re.List,{children:s.map(({displayName:t,name:n})=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>a(n),"data-testid":`theme-dropdown-item-${n}`,children:t},n))})})]})]})},bf=({prefKey:t,...n})=>{const{isLoading:o,value:i=!1,update:r}=xs({prefKey:t});return jsxRuntimeExports.jsx(cf,{checked:i,disabled:o,onChange:e=>r(e.target.checked),...n})},kf=({align:t="right",label:n="Minimize to tray",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:$a,...o}),xf=({prefKey:n,options:o,disabled:i,...r})=>{const{isLoading:a,value:s="Select option",update:c}=xs({prefKey:n});return jsxRuntimeExports.jsxs(re,{variant:"light",disabled:a||i,...r,children:[jsxRuntimeExports.jsx(re.Button,{children:s}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{children:o.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>(async e=>{if(e!==s)try{await c(e);}catch(e){console.error("Failed to update platform preference:",e);}})(t),children:t},t))})})]})},Cf=({className:n,label:o="Pinned position",...i})=>jsxRuntimeExports.jsx(D,{className:E("io-block-list-gap",n),...i,children:jsxRuntimeExports.jsxs("div",{className:"flex jc-between ai-center",children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper",children:o}),jsxRuntimeExports.jsx(xf,{className:n,prefKey:za,options:["Left","Right"],...i})]})}),Sf=({align:t="right",label:n='Hide "Favorites"',...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ga,...o}),Nf=({align:t="right",label:n="Allow docking to top",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:ja,...o}),Ef=({align:t="right",label:n="Always on top",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ha,...o}),Pf=({align:t="right",label:n="Claim occupied space",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Wa,...o}),If=({align:t="right",label:n="Show the extended Launchpad area",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Va,...o}),Af=({align:t="right",label:n="Hide labels",...o})=>{const{value:i}=xs({prefKey:Va});return jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ka,disabled:!i,...o})},Of=({align:t="right",label:n='Show "Favorites"',...o})=>{const{value:i}=xs({prefKey:Va});return jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ua,disabled:!i,...o})},Lf=({align:t="right",label:n='Show "Recent"',...o})=>{const{value:i}=xs({prefKey:Va});return jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:qa,disabled:!i,...o})},Tf=({title:n="Layouts",...o})=>{const{LayoutsSaveCurrentOnExit:i,LayoutsShowDeletePrompt:r,LayoutsShowUnsavedChangesPrompt:a}=Ep();return jsxRuntimeExports.jsxs(D,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{})]})},Df=({align:t="right",label:n="Save current on exit",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ya,...o}),Bf=({align:t="right",label:n="Show prompt for unsaved changes",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Xa,"data-testid":"layouts-show-unsaved-changes-prompt-toggle-button",...o}),Rf=({align:t="right",label:n="Show prompt for deleting",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Qa,"data-testid":"layouts-show-delete-prompt-toggle",...o}),Ff=({title:t="Downloads",...n})=>{const{DownloadsLocation:o}=Ep();return jsxRuntimeExports.jsx(D,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})};function Mf({title:n="Downloads"}){const{ItemSearch:o,HeaderButtons:i}=cp();return jsxRuntimeExports.jsxs("div",{className:"io-dm-header",children:[jsxRuntimeExports.jsxs(se,{draggable:!0,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:n,size:"large"}),jsxRuntimeExports.jsx(i,{className:"non-draggable"})]}),jsxRuntimeExports.jsx(o,{})]})}const _f=reactExports.createContext({configuration:{},items:[],removeItem:()=>{},pauseResumeItem:()=>{},cancelItem:()=>{},clearItems:()=>{},showItemInFolder:()=>{},isSettingsVisible:!1,showSettings:()=>{},hideSettings:()=>{},searchQuery:"",setSearch:()=>{},itemsCount:0,setCount:()=>{},setDownloadLocation:()=>{},setDownloadLocationWithDialog:()=>{},sortItems:()=>[],downloadLocationList:[],isDownloadLocationDialogVisible:!1}),zf=()=>reactExports.useContext(_f);function jf({className:n,placeholder:o="Search",iconPrepend:i="search",iconAppend:r="close",...s}){const c=E("io-header-search",n),l=reactExports.useRef(null),{searchQuery:u,setSearch:f,itemsCount:p}=zf(),m=u.length>0,h=reactExports.useCallback(()=>{f(""),l.current&&l.current.focus();},[f]);return jsxRuntimeExports.jsxs("div",{className:c,children:[jsxRuntimeExports.jsx(_d,{ref:l,value:u,iconPrepend:i,iconAppend:m?r:void 0,iconAppendOnClick:m?h:void 0,placeholder:o,onChange:e=>f(e.target.value),...s}),m&&jsxRuntimeExports.jsx("p",{className:"io-header-search-count",children:`${p} results`})]})}function Hf({className:n,...o}){const{MoreButton:i,CloseButton:r,ExternalButton:a}=cp();return jsxRuntimeExports.jsxs(ae,{className:n,align:"right",...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{})]})}function Wf({icon:n="ellipsis-vertical",...o}){const{items:i,clearItems:r,showSettings:a}=zf(),s=0===i.length;return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsx(re.ButtonIcon,{icon:n,variant:"circle",size:"32"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsxs(re.List,{children:[jsxRuntimeExports.jsx(re.Item,{onClick:e=>(e=>{s?e.stopPropagation():r();})(e),disabled:s,children:"Clear All"}),jsxRuntimeExports.jsx(re.Item,{onClick:a,children:"Settings"})]})})]})}function Vf({className:t,icon:n="pop-out",...o}){const i=reactExports.useContext(IOConnectContext),r=reactExports.useCallback(()=>{df.startApplication(i,"io-connect-download-manager").catch(e=>{console.error("Failed to open Download Manager",e);});},[i]);return jsxRuntimeExports.jsx(I,{className:E("io-dm-compact-mode-only",t),icon:n,variant:"circle",size:"32",onClick:r,...o})}function Kf({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const a=reactExports.useContext(IOConnectContext);return jsxRuntimeExports.jsx(I,{icon:t,size:n,variant:o,onClick:e=>{i?i(e):ff.closeWindow(a).catch(e=>{console.error("Failed to close window:",e);});},...r})}function Uf(e,t=!1,n=!1,o=!1){const i=e.getDate(),r=["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],a=e.getFullYear(),s=e.getHours(),c=e.getMinutes();let l="";return l=c<10?`0${c}`:`${c}`,t?"Today"===t?n?"Today":`Today at ${s}:${l}`:"Yesterday"===t?n?"Yesterday":`Yesterday at ${s}:${l}`:`${s}:${l}`:o?n?`${r} ${i}`:`${r} ${i} at ${s}:${l}`:n?`${r} ${i}, ${a}`:`${r} ${i}, ${a} at ${s}:${l}`}function Gf(e,t={showTime:!0}){const n=new Date(1e3*e),o=new Date,i=Math.round((o-n)/1e3),r=Math.round(i/60),a=o.toDateString()===n.toDateString(),s=new Date(o.setDate(o.getDate()-1)).toDateString()===n.toDateString(),c=o.getFullYear()===n.getFullYear();return t.showTime?i<5?"Just Now":i<60?`${i} seconds ago`:i<90?"about a minute ago":r<60?`${r} minutes ago`:a?Uf(n,"Today",!1,!0):s?Uf(n,"Yesterday",!1,!0):c?Uf(n,!1,!1,!0):Uf(n):a?"Today":s?"Yesterday":c?Uf(n,!1,!0,!0):Uf(n,!1,!0)}function qf({className:t,...n}){const o=E("io-dm-body","io-panel-body",t),{DownloadListEmpty:i,ItemGroup:r,Item:a}=cp(),{items:s,searchQuery:c,setCount:l,sortItems:d}=zf(),p=d(s),m=Vd(c),h=reactExports.useMemo(()=>p.filter(e=>e.displayInfo.filename.toLowerCase().includes(m.toLowerCase())||e.displayInfo.url.toLowerCase().includes(m.toLowerCase())),[p,m]),g=reactExports.useMemo(()=>h.map(e=>({...e,displayInfo:{...e.displayInfo,startTime:Gf(e.displayInfo.startTime,{showTime:!1})}})),[h]),y=reactExports.useMemo(()=>Object.values(g.reduce((e={},t)=>(e[t.displayInfo.startTime]=e[t.displayInfo.startTime]?.concat([])??[],e[t.displayInfo.startTime].push(t),e),{})),[g]);return reactExports.useEffect(()=>{l(h.length);},[h,l]),jsxRuntimeExports.jsx(Ld,{elementProps:{className:o,...n},children:y&&0!==y.length?y.map(t=>jsxRuntimeExports.jsx(r,{title:String(t[0].displayInfo.startTime)??null,children:t.map(t=>jsxRuntimeExports.jsx(a,{item:t},t.id))},t[0].id??"")):jsxRuntimeExports.jsx(i,{})})}function Jf({className:n,icon:o="download",text:i="No downloads to display.",...r}){const a=E("io-dm-no-items",n);return jsxRuntimeExports.jsxs("div",{className:a,...r,children:[jsxRuntimeExports.jsx(P,{variant:o}),jsxRuntimeExports.jsx("p",{children:i})]})}function Yf({className:n,title:o,children:i,...r}){const a=E("io-dm-item-group",n);return jsxRuntimeExports.jsxs("div",{className:a,...r,children:[o&&jsxRuntimeExports.jsx("p",{className:"io-dm-items-group-title",children:o}),i]})}function Xf({className:o,item:i,...r}){const{ItemHeader:a,ItemBody:s,ItemFooter:c}=cp(),{state:l,url:u,filename:d,receivedBytes:f,totalBytes:p,speed:m,timeRemaining:h}=i.displayInfo;if(!i)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const g=E("io-dm-item",i.displayInfo.state&&[l],o);return jsxRuntimeExports.jsxs("div",{className:g,...r,children:[jsxRuntimeExports.jsx(a,{itemID:i.id,filename:d,state:l}),jsxRuntimeExports.jsx(s,{state:l,url:u,bytesReceived:f,bytesTotal:p,speed:m,timeRemaining:h}),jsxRuntimeExports.jsx(c,{itemID:i.id,state:l})]})}function Qf({bytesReceived:t=0,bytesTotal:n=0,...o}){const i=reactExports.useCallback(()=>t&&n?Math.round(t/n*100):0,[t,n]);return jsxRuntimeExports.jsx(Ys,{value:i(),...o})}function Zf({className:n,itemID:o,filename:i,state:r,pauseResume:s,showInFolder:c,cancel:l,remove:u,...d}){const f=E("io-dm-item-header",n),{pauseResumeItem:p,showItemInFolder:m,cancelItem:h,removeItem:g}=zf(),y="progressing"===r||"paused"===r,v="interrupted"===r||"cancelled"===r,w=y?"Cancel Download":"Remove Download",b=l??h,k=u??g,x=function(e,t,n,o){return "paused"===e||"progressing"===e?{statusIcon:"paused"===e?"play":"pause",onStatusActionClick:()=>n(t)}:"completed"===e?{statusIcon:"folder",onStatusActionClick:()=>o(t)}:null}(r,o,s??p,c??m),C=reactExports.useCallback(()=>{y?b(o):k(o);},[y,b,o,k]);return jsxRuntimeExports.jsxs("div",{className:f,...d,children:[jsxRuntimeExports.jsx(T,{text:i,style:{textDecoration:v?"line-through":"none"}}),jsxRuntimeExports.jsxs(ae,{children:[x&&jsxRuntimeExports.jsx(I,{icon:x.statusIcon,iconSize:"12",onClick:x.onStatusActionClick,className:"io-dm-compact-mode-only"}),jsxRuntimeExports.jsx(I,{icon:"close",iconSize:"12",title:w,onClick:C})]})]})}function ep({className:n,state:o,url:i,bytesReceived:r=0,bytesTotal:a=0,speed:s=0,timeRemaining:c=0,...l}){const u=E("io-dm-item-body",n),d=e=>{const t=["Bytes","KB","MB","GB","TB"];if(0===e)return "0";const n=Math.floor(Math.log(e)/Math.log(1024));return 0===n?`${e}${t[n]}`:`${(e/1024**n).toFixed(1)}${t[n]}`};return jsxRuntimeExports.jsxs("div",{className:u,...l,children:[jsxRuntimeExports.jsx("p",{className:"io-text-small",children:i}),(p=o,"cancelled"===p||"interrupted"===p||"completed"===p?null:jsxRuntimeExports.jsx(Qf,{variant:"paused"===p?"paused":"active",bytesReceived:r,bytesTotal:a})),jsxRuntimeExports.jsx("p",{className:"io-text-default-lh16",children:"completed"===o?`${d(r??0)} - Done`:"cancelled"===o||"interrupted"===o?`${d(r??0)}/${d(a??0)} - Failed`:`${d(r??0)}/${d(a??0)} (${f=s,(f?`${(f/1e6/8).toFixed(2)}MB/s`:0)??0}) - ${(e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60);let o="";return t>0&&(o+=`${t} hour${t>1?"s":""}, `),n>0&&(o+=`${n} min${n>1?"s":""}, `),((e=Math.floor(e%60))>0||""===o)&&(o+=`${e} sec${1===e?"":"s"}`),`${o.trim()} left`})(c)??0}`})]});var f,p;}const tp={success:"check-solid",warning:"exclamation-mark",critical:"exclamation-mark"};function np({className:n,variant:o,text:i}){const r=E("io-dm-item-status",`io-dm-item-status-${o}`,n);return jsxRuntimeExports.jsxs("div",{className:r,children:[o&&jsxRuntimeExports.jsx(P,{variant:tp[o],className:"icon-severity",size:"10"}),i&&jsxRuntimeExports.jsx("p",{className:"io-text-smaller",children:i})]})}function op({className:o,itemID:i,state:r,pauseResume:s,showInFolder:c,cancel:l,...u}){const d=E("io-dm-item-footer",o),{pauseResumeItem:f,showItemInFolder:p,cancelItem:m}=zf(),h=reactExports.useCallback(e=>{s?s(e):f(e);},[s,f]),g=reactExports.useCallback(e=>{c?c(e):p(e);},[c,p]),y=reactExports.useCallback(e=>{l?l(e):m(e);},[l,m]);return jsxRuntimeExports.jsx("div",{className:d,...u,children:(()=>{switch(r){case"progressing":return jsxRuntimeExports.jsxs(ae,{align:"right",children:[jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Pause",onClick:()=>h(i)}),jsxRuntimeExports.jsx(ae.Button,{variant:"link",text:"Cancel",onClick:()=>y(i)})]});case"paused":return jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Resume",onClick:()=>h(i)})});case"completed":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(np,{variant:"success",text:"Complete"}),jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Show in Folder",onClick:()=>g(i)})})]});case"cancelled":return jsxRuntimeExports.jsx(np,{variant:"warning",text:"Cancelled"});case"interrupted":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(np,{variant:"critical",text:"Failed"}),jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Retry",onClick:()=>h(i)})})]});default:return null}})()})}function ip({className:n,title:o="Download Settings",...i}){const r=E("io-dm-settings-panel",n),{configuration:{downloadFolder:a},hideSettings:s,setDownloadLocation:c,setDownloadLocationWithDialog:l,isDownloadLocationDialogVisible:u,downloadLocationList:d}=zf();return jsxRuntimeExports.jsxs(qs,{className:r,...i,children:[jsxRuntimeExports.jsxs(qs.Header,{children:[jsxRuntimeExports.jsx(qs.Header.Title,{size:"large",text:o,tag:"h1"}),jsxRuntimeExports.jsx(qs.Header.ButtonGroup,{children:jsxRuntimeExports.jsx(I,{className:"non-draggable",variant:"circle",icon:"close",size:"32",onClick:()=>{s();},disabled:u})})]}),jsxRuntimeExports.jsx(qs.Body,{children:jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsxs(re,{variant:"light",disabled:u,children:[jsxRuntimeExports.jsx(re.Button,{children:jsxRuntimeExports.jsx("span",{className:"io-dm-settings-panel-download-location",children:a??d[0]})}),d.length>1&&jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{children:d.map((t,n)=>!t||0===n||n>3?null:jsxRuntimeExports.jsx(re.Item,{onClick:()=>{c(t);},children:t},t))})})]}),jsxRuntimeExports.jsx($,{className:"io-btn io-dm-settings-panel-download-location-btn",text:"Browse",onClick:()=>{l();},disabled:u})]})})]})}const rp={Header:Mf,ItemSearch:jf,HeaderButtons:Hf,MoreButton:Wf,ExternalButton:Vf,CloseButton:Kf,Body:qf,DownloadListEmpty:Jf,ItemGroup:Yf,Item:Xf,ItemProgress:Qf,ItemHeader:Zf,ItemBody:ep,ItemFooter:op,Settings:ip},ap=reactExports.createContext(rp),sp=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...rp,...n}),[n]);return jsxRuntimeExports.jsx(ap.Provider,{value:o,children:t})});sp.displayName="ComponentsStore";const cp=()=>reactExports.useContext(ap);const dp=({className:n,label:o="Location",...i})=>{const{configuration:{downloadFolder:r},setDownloadLocationWithDialog:a,isDownloadLocationDialogVisible:s,downloadLocationList:c}=zf();return jsxRuntimeExports.jsxs(D,{className:E("io-preferences-download-section",n),...i,children:[jsxRuntimeExports.jsxs("div",{className:"flex jc-between ai-center",children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper",children:o}),jsxRuntimeExports.jsx($,{text:"Change",onClick:a,disabled:s})]}),jsxRuntimeExports.jsx("p",{children:r??c?.[0]??"Not set"})]})},fp=({align:t="right",label:n="Ask where to save each file before downloading",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Za,...o}),pp=({title:n="System",...o})=>{const{SystemRestartSection:i,SystemShutdownSection:r}=Ep();return jsxRuntimeExports.jsxs(D,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{})]})},mp="T42.GD.Execute",hp=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],gp=(e,t)=>e in t;function yp({time:e,frequency:t,day:n}){const[o,i]=e.split(":"),r=Number.parseInt(o,10),a=Number.parseInt(i,10);let s="*";return "weekly"===t&&n&&(s=function(e){const t={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};if(!gp(e,t))throw new Error(`Invalid day: ${e}`);return t[e]}(n).toString()),`${a} ${r} * * ${s}`}function vp(e){const t=reactExports.useContext(IOConnectContext),{value:n,update:o}=xs({prefKey:wp(e)}),{value:i,update:r}=xs({prefKey:wp(e,"Time")}),{value:s,update:l}=xs({prefKey:wp(e,"Frequency")}),{value:u,update:d}=xs({prefKey:wp(e,"Day")}),p=reactExports.useCallback(async()=>{try{await t.interop.invoke(mp,{command:`cancel-${e}`});}catch(e){console.error(e);}},[t,e]),m=reactExports.useCallback(async()=>{try{const n=yp({time:i??"12:00",frequency:s??"daily",day:"weekly"===s?u:"*"});await t.interop.invoke(mp,{command:`schedule-${e}`,args:{cronTime:n,discardUnsavedLayoutChanges:!1}});}catch(t){console.error(`Failed to update cron job for ${e}:`,t);}},[t,e,i,s,u]);reactExports.useEffect(()=>{t&&n&&m();},[t,n,i,s,u,m]);return {enabled:n??!1,time:i??"12:00",frequency:s??"daily",day:u??"Monday",setEnabled:async e=>{e||await p();try{await o(e);}catch(e){console.error("Failed to update enabled state:",e);}},setTime:async e=>{try{await r(e);}catch(e){console.error("Failed to update time:",e);}},setFrequency:async e=>{try{await l(e),"daily"===e&&await d(void 0);}catch(e){console.error("Failed to update frequency:",e);}},setDay:async e=>{var t;if(t=e,hp.includes(t))try{await d(e);}catch(e){console.error("Failed to update day:",e);}else console.error("Invalid day provided");}}}function wp(e,t){const n="restart"===e?"_system_scheduleRestart":"_system_scheduleShutdown";return t?`${n}${t}`:n}function bp({className:n,variant:o,...i}){const r=E("io-block-list-gap",o,n),{enabled:a,time:s,frequency:c,day:l,setEnabled:u,setTime:d,setFrequency:f,setDay:p}=vp(o);return jsxRuntimeExports.jsxs(D,{className:r,...i,children:[jsxRuntimeExports.jsx(cf,{label:`Schedule ${o}`,align:"right",onChange:e=>u(e.target.checked),checked:a}),jsxRuntimeExports.jsxs("div",{className:"scheduler-controls",children:[jsxRuntimeExports.jsx("div",{className:"io-control-input io-control-leading-icon direction-up",children:jsxRuntimeExports.jsx("input",{type:"time",className:"io-input",value:s,onChange:e=>d(e.target.value)})}),jsxRuntimeExports.jsxs(ei,{text:c.charAt(0).toUpperCase()+c.slice(1),icon:"chevron-down",iconRight:!0,children:[jsxRuntimeExports.jsx(ei.Item,{onClick:()=>f("daily"),children:"Daily"}),jsxRuntimeExports.jsx(ei.Item,{onClick:()=>f("weekly"),children:"Weekly"})]}),"weekly"===c&&jsxRuntimeExports.jsx(ei,{text:l,icon:"chevron-down",iconRight:!0,children:hp.map(t=>jsxRuntimeExports.jsx(ei.Item,{onClick:()=>p(t),children:t},t))})]})]})}function kp({className:t,...n}){return jsxRuntimeExports.jsx(bp,{...n,className:t,variant:"restart"})}function xp({className:t,...n}){return jsxRuntimeExports.jsx(bp,{...n,className:t,variant:"shutdown"})}const Cp={Body:yf,General:vf,Theme:wf,Launchpad:({title:n="Launchpad",...o})=>{const{MinimizeToTray:i,PinnedPosition:r,HideFavoritesFromLaunchpad:a,Docking:s,ExtendedArea:c}=Ep();return jsxRuntimeExports.jsxs(D,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},MinimizeToTray:kf,PinnedPosition:Cf,HideFavoritesFromLaunchpad:Sf,Docking:({className:n,title:o="Docking",...i})=>{const r=E("io-preferences-panel-docking",n),{AllowDocking:a,DockedAlwaysOnTop:s,DockedClaimsSpace:c}=Ep();return jsxRuntimeExports.jsxs(D,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},AllowDocking:Nf,DockedAlwaysOnTop:Ef,DockedClaimsSpace:Pf,ExtendedArea:({className:n,title:o="Extended Area",...i})=>{const r=E("io-preferences-panel-extended-area",n),{ShowExtendedArea:a,HideLabelsInExtendedArea:s,ShowFavoritesInExtendedArea:c,ShowRecentAppsInExtendedArea:l}=Ep();return jsxRuntimeExports.jsxs(D,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{})]})},ShowExtendedArea:If,HideLabelsInExtendedArea:Af,ShowFavoritesInExtendedArea:Of,ShowRecentAppsInExtendedArea:Lf,Layouts:Tf,LayoutsSaveCurrentOnExit:Df,LayoutsShowUnsavedChangesPrompt:Bf,LayoutsShowDeletePrompt:Rf,Downloads:Ff,DownloadsLocation:dp,DownloadsAskForEachDownload:fp,System:pp,SystemRestartSection:kp,SystemShutdownSection:xp},Sp=reactExports.createContext(Cp),Np=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Cp,...n}),[n]);return jsxRuntimeExports.jsx(Sp.Provider,{value:o,children:t})});Np.displayName="PreferencesPanelComponentsStoreProvider";const Ep=()=>reactExports.useContext(Sp);function Op({className:n,title:o="General",...i}){const r=E("io-notifications-settings-panel-general",n),{AllowNotifications:a,AllowNotificationToasts:s,ShowNotificationBadge:c,CloseNotificationOnClick:l,PanelAutoHide:u,HideToastsAfter:d}=hm(),f=Ud();return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(D,{title:o,children:[f&&jsxRuntimeExports.jsx(a,{}),f&&jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),f&&jsxRuntimeExports.jsx(u,{}),f&&jsxRuntimeExports.jsx(l,{}),f&&jsxRuntimeExports.jsx(d,{})]})})}function Lp(e){if(e&&e.errorHandling&&"function"!=typeof e.errorHandling&&"log"!==e.errorHandling&&"silent"!==e.errorHandling&&"throw"!==e.errorHandling)throw new Error('Invalid options passed to createRegistry. Prop errorHandling should be ["log" | "silent" | "throw" | (err) => void], but '+typeof e.errorHandling+" was passed");var t=e&&"function"==typeof e.errorHandling&&e.errorHandling,n={};function o(n,o){var i=n instanceof Error?n:new Error(n);if(t)t(i);else {var r='[ERROR] callback-registry: User callback for key "'+o+'" failed: '+i.stack;if(e)switch(e.errorHandling){case"log":return console.error(r);case"silent":return;case"throw":throw new Error(r)}console.error(r);}}return {add:function(e,t,i){var r=n[e];return r||(r=[],n[e]=r),r.push(t),i&&setTimeout(function(){i.forEach(function(i){var r;if(null===(r=n[e])||void 0===r?void 0:r.includes(t))try{Array.isArray(i)?t.apply(void 0,i):t.apply(void 0,[i]);}catch(t){o(t,e);}});},0),function(){var o=n[e];o&&(o=o.reduce(function(e,n,o){return n===t&&e.length===o||e.push(n),e},[]),0===o.length?delete n[e]:n[e]=o);}},execute:function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var r=n[e];if(!r||0===r.length)return [];var a=[];return r.forEach(function(n){try{var i=n.apply(void 0,t);a.push(i);}catch(t){a.push(void 0),o(t,e);}}),a},clear:function(){n={};},clearKey:function(e){n[e]&&delete n[e];}}}Lp.default=Lp;C(Lp);function Bp(e){const t=reactExports.useContext(IOConnectContext),n=Ud(),[o,i]=reactExports.useState([]),[r,s]=reactExports.useState(0),d="Platform",p=reactExports.useCallback((e="asc")=>{if(null===n)return [];const t=[...o].sort((t,n)=>{const o=(t.title??t.name).toLowerCase(),i=(n.title??n.name).toLowerCase();return "asc"===e?o.localeCompare(i):i.localeCompare(o)});if(!n){const e=t.findIndex(e=>e.name===d);if(-1!==e){const[n]=t.splice(e,1);t.unshift(n);}}return t},[o,n]),m=reactExports.useMemo(()=>p("asc"),[p]),h=reactExports.useMemo(()=>p("desc"),[p]);reactExports.useEffect(()=>{if(null===n||n)return;const e={title:"System",name:d,hidden:!1,userProperties:{hidden:!1}};i(t=>t.some(t=>t.name===e.name)?t:[...t,e]);},[n]),reactExports.useEffect(()=>{if(!t)return;let e,n,o,r=!1;const a=e=>{i(t=>[...t.filter(t=>t.name!==e.name),{title:e.title??e.name,name:e.name,hidden:e.hidden,userProperties:e.userProperties}]);},s=e=>{i(t=>t.filter(t=>t.name!==e.name));},c=e=>{i(t=>t.find(t=>t.name===e.name)?t.map(t=>t.name===e.name?{...t,title:e.title??t.title,hidden:e.hidden??t.hidden,userProperties:e.userProperties??t.userProperties}:t):t);};return (async()=>{const l=await df.getApplications(t);if(r)return;i(e=>{const t=new Map;return e.forEach(e=>t.set(e.name,e)),l.forEach(e=>{t.set(e.name,{title:e.title??e.name,name:e.name,hidden:e.hidden,userProperties:e.userProperties});}),Array.from(t.values())});const[u,d,f]=await Promise.all([df.onAppAdded(t,a),df.onAppRemoved(t,s),df.onAppChanged(t,c)]);if(r)return u?.(),d?.(),void f?.();e=u,n=d,o=f;})().catch(e=>{console.error("Failed to initialize apps",e);}),()=>{r=!0,e?.(),n?.(),o?.();}},[t]);return {apps:reactExports.useMemo(()=>{if(!e?.sourceFilter||!Array.isArray(o))return o;const{allowed:t=[],blocked:n=[]}=e.sourceFilter,i=t.includes("*"),r=n.includes("*");let a=0;const c=o.map(e=>{const n=i||t.includes(e.name),o=!r&&n;return o&&a++,{...e,allowed:o}});return s(a),c},[e,o]),allowedApps:r,sortedAppsAsc:m,sortedAppsDesc:h,sortAppsAlphabetically:p}}const zp=reactExports.createContext({allApps:[],settings:{},configuration:{},notifications:[],notificationsCount:0,onClose:()=>{},allApplications:0,clearAll:()=>{},showPanel:()=>{},hidePanel:()=>{},saveFilter:()=>{},clearAllOld:()=>{},notificationStacks:[],saveSetting:()=>{},allowedApplications:0,saveAllFilter:()=>{},isBulkActionsSupported:!1,selectedNotifications:[],selectNotification:()=>{},selectAllNotifications:()=>{},clearMany:()=>{},snooze:()=>{},snoozeMany:()=>{},setState:()=>{},setStates:()=>{},setCount:()=>{}}),jp=()=>reactExports.useContext(zp);function Hp({label:t="Allow notifications",align:n="right",...o}){const{settings:i,saveSetting:r}=jp(),s=Ud(),c=reactExports.useCallback(e=>{r({enabledNotifications:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(cf,{label:t,align:n,onChange:c,checked:i.enabledNotifications??!1,...o}):null}function Wp({label:t="Allow notification toasts",align:n="right",...o}){const{settings:i,saveSetting:r}=jp(),s=Ud(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({enabledToasts:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(cf,{label:t,align:n,onChange:l,checked:i.enabledToasts??!1,disabled:c,...o}):null}function Vp({label:t="Show notification badge",align:n="right",...o}){const{settings:i,saveSetting:r}=jp(),s=Ud()&&!i.enabledNotifications,c=reactExports.useCallback(e=>{r({showNotificationBadge:e.target.checked});},[r]);return jsxRuntimeExports.jsx(cf,{label:t,align:n,onChange:c,checked:i.showNotificationBadge??!1,disabled:s,...o})}function Kp({label:t="Close notification on click",align:n="right",...o}){const{settings:i,saveSetting:r}=jp(),s=Ud(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({closeNotificationOnClick:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(cf,{label:t,align:n,onChange:l,checked:i.closeNotificationOnClick??!1,disabled:c,...o}):null}function Up({label:t="Auto hide panel",align:n="right",...o}){const{settings:i,saveSetting:r}=jp(),s=Ud(),c=reactExports.useCallback(e=>{r({autoHidePanel:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(cf,{label:t,align:n,onChange:c,checked:i.autoHidePanel??!1,...o}):null}const Gp=(e,t)=>e?`${e} ${t}${1!==e?"s":""}`:"",qp=e=>{const t=Math.floor(e/60),n=e%60,o=Gp(t,"minute"),i=Gp(n,"second");return o+(o&&i?" ":"")+i};function Jp({className:n,title:o="Hide toasts after",items:i=[15,30,45,60],...r}){const s=E("flex","jc-between","ai-center",n),{settings:c,saveSetting:l}=jp(),u=Ud(),d=u&&!c.enabledNotifications,f=reactExports.useCallback((e=15e3)=>{c.toastExpiry!==e&&l({toastExpiry:1e3*e});},[c.toastExpiry,l]);return u?jsxRuntimeExports.jsxs("div",{className:s,...r,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper "+(d?"io-text-disabled":""),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:d,children:[jsxRuntimeExports.jsx(re.Button,{text:qp((c.toastExpiry??0)/1e3)}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:i.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{f(t);},children:qp(t)},t))})})]})]}):null}function Yp({className:n,title:o="Stacking",...i}){const r=E("io-notifications-settings-panel-stacking",n),{ToastStacking:a,ToastStackBy:s}=hm();return Ud()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(D,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}function Xp({label:t="Allow toast stacking",align:n="right",...o}){const{settings:i,saveSetting:r}=jp(),s=Ud(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({toastStacking:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(cf,{label:t,align:n,onChange:l,checked:i.toastStacking??!1,disabled:c,...o}):null}const Qp={application:"Application",severity:"Priority"},Zp=Object.fromEntries(Object.entries(Qp).map(([e,t])=>[t,e]));function em({className:n,title:o="Group by",...i}){const r=E("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=jp(),l=Ud(),u=l&&!s.enabledNotifications,d=reactExports.useCallback((e="severity")=>{s.stackBy!==e&&c({stackBy:e.toLowerCase()});},[s.stackBy,c]);if(!l)return null;const f=Object.values(Qp);return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:E("io-text-clipper",{"io-text-disabled":u}),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:u,children:[jsxRuntimeExports.jsx(re.Button,{text:Qp[s.stackBy??"severity"]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:f.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{const e=Zp[t];d(e);},children:t},t))})})]})]})}function tm({className:n,title:o="Placement",...i}){const r=E("io-notifications-settings-panel-placement",n),{PlacementPanel:a,PlacementToasts:s}=hm();return Ud()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(D,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}const nm=e=>e.replace(/(^|-)\w/g,e=>e.toUpperCase().replace("-"," "));function om({className:n,title:o="Panel position",...i}){const r=E("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=jp(),l=Ud(),u=reactExports.useCallback(e=>{e||(e="right"),s.placement?.panel!==e&&c({placement:{...s.placement,panel:e.toLowerCase()}});},[s.placement,c]);if(!l)return null;return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper",children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",children:[jsxRuntimeExports.jsx(re.Button,{text:s.placement?.panel?nm(s.placement?.panel):"Right"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:["Right","Left"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{u(t);},children:t},t))})})]})]})}function im({className:n,title:o="Toasts position",...i}){const r=E("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=jp(),l=Ud(),u=reactExports.useCallback(e=>{if(e||(e="bottom-right"),s.placement?.toasts===e)return;const t=e.replace(/\s+/g,"-").toLowerCase();c({placement:{...s.placement,toasts:t}});},[s.placement,c]);if(!l)return null;return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper",children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",children:[jsxRuntimeExports.jsx(re.Button,{text:s.placement?.toasts?nm(s.placement?.toasts):"Bottom Right"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:["Top Right","Top Left","Bottom Right","Bottom Left"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{u(t);},children:t},t))})})]})]})}function rm({className:t,title:n="Snooze",...o}){const i=E("io-notifications-settings-panel-snooze",t),{SnoozeDuration:r}=hm(),{settings:a}=jp();return Ud()&&a.snooze?.enabled?jsxRuntimeExports.jsx("div",{className:i,...o,children:jsxRuntimeExports.jsx(D,{title:n,children:jsxRuntimeExports.jsx(r,{})})}):null}function am({className:n,title:o="Default duration",items:i=[60,120,180,300],...r}){const s=E("flex","jc-between","ai-center",n),{settings:c,saveSetting:l}=jp(),u=Ud(),d=u&&!c.enabledNotifications,f=reactExports.useCallback((e=6e4)=>{c.snooze&&c.snooze?.duration!==e&&l({snooze:{...c.snooze,duration:1e3*e}});},[c.snooze,l]);return u&&c.snooze?.enabled?jsxRuntimeExports.jsxs("div",{className:s,...r,children:[jsxRuntimeExports.jsx("div",{className:E("io-text-clipper",{"io-text-disabled":d}),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:d,children:[jsxRuntimeExports.jsx(re.Button,{text:qp((c.snooze?.duration??0)/1e3)}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:i.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{f(t);},children:qp(t)},t))})})]})]}):null}function sm({className:n,title:o,...i}){const r=E("io-notifications-settings-panel-subscriptions",n),{SubscribeAll:a,SubscribeApp:s,SubscribeMuteAll:c,SubscribeMuteApp:l}=hm(),{sortAppsAlphabetically:u}=Bp(),d=Ud(),f=u(),p="io-notifications-subscriptions-grid "+(d?"with-three-columns":"with-two-columns");return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(D,{title:o??(d?"Subscribe & Mute":"Subscribe"),children:[jsxRuntimeExports.jsxs("div",{className:p,children:[jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Sources"}),jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Subscribe"}),d&&jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Mute"})]}),jsxRuntimeExports.jsxs("div",{className:p,children:[jsxRuntimeExports.jsx("p",{children:"All Sources"}),jsxRuntimeExports.jsx(a,{label:""}),d&&jsxRuntimeExports.jsx(c,{label:""})]}),f.map(n=>!n||n.hidden||n?.userProperties?.hidden?null:jsxRuntimeExports.jsxs("div",{className:p,children:[jsxRuntimeExports.jsx("p",{children:n.title??n.name}),jsxRuntimeExports.jsx(s,{app:n,label:""}),d&&jsxRuntimeExports.jsx(l,{app:n,label:""})]},n.name))]})})}function cm({label:t="All apps",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=jp(),c=Ud()&&!i.enabledNotifications,l=reactExports.useCallback(e=>{s({subscribe:e.target.checked});},[s]);return jsxRuntimeExports.jsx(cf,{align:n,label:t,onChange:l,checked:(r.sourceFilter?.allowed?.includes("*")&&0===r.sourceFilter?.blocked?.length)??!1,disabled:c,...o})}function lm({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=jp(),u=Ud()&&!s.enabledNotifications,d=reactExports.useCallback((e,t)=>{const n={...c.sourceFilter},o=n.allowed?.indexOf("*");"number"==typeof o&&o>-1&&(n.allowed?.splice(o,1),r.forEach(e=>{e.name!==t.name&&n.allowed?.push(e.name);})),e?(n.allowed=[...new Set([...n.allowed??[],t.name])],n.blocked=n.blocked?.filter(e=>e!==t.name)):(n.allowed=n.allowed?.filter(e=>e!==t.name),n.blocked=[...new Set([...n.blocked??[],t.name])]),n.allowed?.length&&n.blocked?.includes("*")&&n.blocked.splice(n.blocked.indexOf("*"),1),l(n);},[r,c.sourceFilter,l]);return jsxRuntimeExports.jsx(cf,{id:`subscribe-${o.name}`,label:t,align:n,onChange:e=>d(e.target.checked,o),checked:(c.sourceFilter?.allowed?.includes("*")&&!c.sourceFilter?.blocked?.includes(o.name)||c.sourceFilter?.allowed?.includes(o.name))??!1,disabled:u,...i})}function um({label:t="Mute all",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=jp(),c=Ud(),l=c&&(!i.enabledNotifications||-1===r.sourceFilter?.allowed?.indexOf("*")),u=reactExports.useCallback(e=>{s({mute:e.target.checked});},[s]);return c?jsxRuntimeExports.jsx(cf,{align:n,label:t,onChange:u,checked:r.sourceFilter?.muted?.includes("*")??!1,disabled:l??!1,...o}):null}function dm({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=jp(),u=Ud(),d=u&&(!s.enabledNotifications||c.sourceFilter?.blocked?.includes("*")||c.sourceFilter?.blocked?.includes(o.name)||0===c.sourceFilter?.allowed?.length||-1===c.sourceFilter?.allowed?.indexOf(o.name)&&-1===c.sourceFilter?.allowed?.indexOf("*")&&0===c.sourceFilter?.blocked?.length),f=reactExports.useCallback((e,t)=>{const n={...c.sourceFilter},o=n?.muted?.indexOf("*");"number"==typeof o&&o>-1&&(n.muted?.splice(o,1),r.forEach(e=>{e.name===t.name||e.hidden||n.muted?.push(e.name);})),e?n.muted?.push(t.name):n.muted=n.muted?.filter(e=>e!==t.name),l(n);},[r,c.sourceFilter,l]);return !u||o.hidden?null:jsxRuntimeExports.jsx(cf,{id:`mute-${o.name}`,label:t,align:n,onChange:e=>f(e.target.checked,o),checked:(c.sourceFilter?.muted?.includes("*")||c.sourceFilter?.muted?.includes(o.name))??!1,disabled:d??!1,...i})}const fm={Body:n=>{const{General:o,Placement:i,Stacking:r,Snooze:a,Subscriptions:s}=hm();return jsxRuntimeExports.jsxs(Ld,{element:Us,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})},General:Op,AllowNotifications:Hp,AllowNotificationToasts:Wp,ShowNotificationBadge:Vp,CloseNotificationOnClick:Kp,PanelAutoHide:Up,HideToastsAfter:Jp,Stacking:Yp,ToastStacking:Xp,ToastStackBy:em,Placement:tm,PlacementPanel:om,PlacementToasts:im,Snooze:rm,SnoozeDuration:am,Subscriptions:sm,SubscribeAll:cm,SubscribeApp:lm,SubscribeMuteAll:um,SubscribeMuteApp:dm},pm=reactExports.createContext(fm),mm=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...fm,...n}),[n]);return jsxRuntimeExports.jsx(pm.Provider,{value:o,children:t})});mm.displayName="NotificationsSettingsPanelComponentsStoreProvider";const hm=()=>reactExports.useContext(pm),vm=({name:n,value:o})=>jsxRuntimeExports.jsxs("div",{className:"io-profile-section-item",children:[jsxRuntimeExports.jsx("div",{className:"io-profile-section-item-name",children:n}),jsxRuntimeExports.jsx("div",{className:"io-profile-section-item-value",children:o})]}),wm=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("div",{className:E("io-profile-section-body",n),children:[i&&jsxRuntimeExports.jsx(T,{className:"io-profile-section-title",text:i}),o.map(({name:t,value:n})=>jsxRuntimeExports.jsx(vm,{name:t,value:n},t))]}),bm=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("section",{className:E("io-profile-section",n),children:[jsxRuntimeExports.jsx(wm,{items:o,title:i}),jsxRuntimeExports.jsx(J,{className:"mt-8"})]}),km=({title:t="License",...n})=>jsxRuntimeExports.jsx(bm,{title:t,...n}),xm=({title:t="Version",...n})=>jsxRuntimeExports.jsx(bm,{title:t,...n}),Cm=({title:t="Plugins",...n})=>jsxRuntimeExports.jsx(bm,{title:t,...n}),Sm=({className:n})=>{const o=Lr()?"io.Connect Desktop":"io.Connect Browser";return jsxRuntimeExports.jsxs("div",{className:E("io-trademark-container",n),children:[jsxRuntimeExports.jsx("h4",{className:"io-trademark-title",children:o}),jsxRuntimeExports.jsxs("p",{className:"io-trademark-text",children:[o,"® is a registered trademark of"," ",jsxRuntimeExports.jsx("a",{href:"https://www.interop.io",rel:"noreferrer",target:"_blank",children:"Interop Inc©"})," ",(new Date).getFullYear(),". All rights reserved."]})]})},Nm=({avatarInitials:n=(Lr()?"CD":"CB"),className:o,items:i,onLogout:r,title:a})=>jsxRuntimeExports.jsxs("section",{className:E("io-profile-section",o),children:[jsxRuntimeExports.jsxs("div",{className:"io-user-details-container",children:[jsxRuntimeExports.jsx("div",{className:"io-user-avatar",children:n}),jsxRuntimeExports.jsx(wm,{className:"mt-12",items:i,title:a})]}),r&&jsxRuntimeExports.jsx($,{className:"io-log-out-button",onClick:r,variant:"primary",icon:"arrow-right-from-bracket",children:"Log out"}),jsxRuntimeExports.jsx(J,{className:"mt-8"})]}),Em={LicenseSection:km,ProductsInfoSection:xm,PluginsSection:Cm,Trademark:Sm,UserSection:Nm},Pm=reactExports.createContext(Em),Im=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Em,...n}),[n]);return jsxRuntimeExports.jsx(Pm.Provider,{value:o,children:t})});Im.displayName="ProfilePanelComponentsStoreProvider";document.querySelector("#root")??document.body;reactExports.createContext({theme:"dark"});const Xm="var(--io-neutrals-0)",Qm="var(--io-neutrals-900)";function Zm(e){let t,n,o;if(e.startsWith("#")){let i=e.slice(1);3===i.length&&(i=i.split("").map(e=>e+e).join("")),t=parseInt(i.substring(0,2),16),n=parseInt(i.substring(2,4),16),o=parseInt(i.substring(4,6),16);}else {if(!e.startsWith("rgb")){const t=document.createElement("canvas").getContext("2d");if(!t)return Qm;t.fillStyle=e;return Zm(t.fillStyle)}{const i=e.match(/\d+/g)?.map(Number);if(!i||i.length<3)return Qm;[t,n,o]=i;}}return (.2126*t+.7152*n+.0722*o)/255>.5?Qm:Xm}function eh({className:t,channel:n,...o}){const i=E("io-channel-badge",t),r=reactExports.useMemo(()=>Zm(n.color),[n.color]);return jsxRuntimeExports.jsx("div",{className:i,style:{color:r,backgroundColor:n.color},"data-testid":`channel-selector-badge-${n.color}`,...o,children:jsxRuntimeExports.jsx("span",{className:"io-channel-selector-badge-label","data-testid":"channel-selector-label",children:n.label})})}function th(){return jsxRuntimeExports.jsx(P,{variant:"check","data-testid":"channel-selector-channel-selected"})}function nh({channel:o,handleChannelRestricted:i,lockedChannelRestriction:r}){const a=(e,t)=>n=>{n.stopPropagation(),B(n)&&(n.preventDefault(),t||i({...o,[e]:!o[e]}));};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:o.isSelected&&jsxRuntimeExports.jsx("span",{"data-testid":"channel-selector-channel-selected",children:"Active"})}),jsxRuntimeExports.jsx("div",{role:"button",onClick:e=>e.stopPropagation(),"data-testid":"channel-selector-publish-toggle-container",children:jsxRuntimeExports.jsx(cf,{label:"Publish",checked:o.write,onChange:()=>{i({...o,write:!o.write});},onKeyDown:a("write",!o.isSelected||r?.write),onClick:e=>e.stopPropagation(),disabled:!o.isSelected||r?.write})}),jsxRuntimeExports.jsx("div",{role:"button",onClick:e=>e.stopPropagation(),"data-testid":"channel-selector-subscribe-toggle-container",children:jsxRuntimeExports.jsx(cf,{label:"Subscribe",checked:o.read,onChange:()=>{i({...o,read:!o.read});},onKeyDown:a("read",!o.isSelected||r?.read),disabled:!o.isSelected||r?.read})})]})}const oh=reactExports.createContext({});function ih({channel:t,isSelected:n,onChannelSelect:o,onChannelRestrict:i,...r}){const{variant:s,selectedChannels:l,lockedChannelRestrictions:u}=reactExports.useContext(oh),d=n||t.isSelected||l?.includes(t),f=u?.find(e=>e.name===t.name),p=reactExports.useCallback(()=>o?.({...t,isSelected:!d}),[t,o,d]),m=reactExports.useCallback(e=>{const n=e.target;n.closest(".io-toggle")||n.classList.contains("io-toggle")||B(e)&&(e.preventDefault(),o?.({...t,isSelected:!d}));},[t,o,d]),h=reactExports.useCallback(e=>{i?.(e);},[i]);return jsxRuntimeExports.jsx(V,{prepend:jsxRuntimeExports.jsx(eh,{channel:t}),append:"single"===s||"multi"===s?d&&jsxRuntimeExports.jsx(th,{}):jsxRuntimeExports.jsx(nh,{channel:t,handleChannelRestricted:h,lockedChannelRestriction:f}),isSelected:d,onClick:p,onKeyDown:m,...r,children:t.name},t.name)}function rh({variant:t,onVariantChange:n,disabled:o=!1}){const i="directionalSingle"===t||"directionalMulti"===t,r=reactExports.useCallback(()=>{n?.(!i);},[i,n]),s=reactExports.useCallback(e=>{e.stopPropagation();},[]),c=reactExports.useCallback(e=>{e.stopPropagation(),B(e)&&(e.preventDefault(),o||r());},[o,r]);return jsxRuntimeExports.jsx(cf,{label:"Directional",align:"right",checked:i,onChange:r,onClick:s,onKeyDown:c,disabled:o,"data-testid":`channel-selector-toggle-${t}`})}const ah=reactExports.forwardRef(({className:n,variant:o="single",variantToggle:i=!1,channels:r=[],lockedChannelRestrictions:a=[],onVariantChange:s,onChannelSelect:c,onChannelRestrict:l,...d},f)=>{const p=E("io-list-channels","io-channel-selector-panel",("directionalSingle"===o||"directionalMulti"===o)&&"io-list-channels-directional io-channel-selector-panel-directional",n),m=reactExports.useMemo(()=>({variant:o,selectedChannels:r.filter(e=>e.isSelected),lockedChannelRestrictions:a,onVariantChange:s,onChannelSelect:c,onChannelRestrict:l}),[r,o,a,s,c,l]);return jsxRuntimeExports.jsx(oh.Provider,{value:m,children:jsxRuntimeExports.jsx("div",{className:p,ref:f,children:jsxRuntimeExports.jsxs(Q,{...d,children:[jsxRuntimeExports.jsx(Q.ItemTitle,{"data-testid":"channel-selector-title",append:i&&jsxRuntimeExports.jsx(rh,{variant:o,onVariantChange:s}),children:{single:"Select Channel",directionalSingle:"Select Directional Channel",multi:"Select Channels",directionalMulti:"Select Directional Channels"}[o]}),r?.map(t=>jsxRuntimeExports.jsx(ih,{channel:t,isSelected:t.isSelected,onChannelSelect:c,onChannelRestrict:l,"data-testid":`channel-selector-channel-${t.name}`},t.name))]})})})});ah.displayName="ChannelSelector";const sh=reactExports.forwardRef(({className:t,title:n,ariaLabel:o,onClick:i,onKeyDown:r,children:a,disabled:s=!1,...c},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:E(t,{disabled:s}),title:n,role:"button",tabIndex:s?-1:0,"aria-label":o,"aria-disabled":s,onClick:e=>{!s&&i&&i(e);},onKeyDown:e=>{!s&&r&&r(e);},...c,children:a}));sh.displayName="ChannelSelectorButtonWrapper";function fh({actionButtons:t,actionButtonElementsRefs:n,isAutofocusButton:o,isButtonDisabled:i,onButtonClick:r}){return jsxRuntimeExports.jsx(ae,{"data-testid":"io-dialog-action-buttons-group",align:"right",children:t.map((t,a)=>{const{id:s,text:c,variant:l}=t,u=o(s);return jsxRuntimeExports.jsx($,{"data-testid":`io-dialog-action-button-${s}`,id:s,ref:e=>{0===a&&(n.current=[]),n.current[a]=e;},className:u?"io-focus-button":void 0,disabled:i(s),onClick:()=>r(t),variant:l,children:c},s)})})}function ph({actionButtons:n,children:o,onCompletion:i,size:r,title:a=(Lr()?"io.Connect Desktop":"io.Connect Browser"),validationErrors:s=[]}){const{actionButtonElementsRefs:c,autofocusButtonId:f,hasAutofocusButtonLostInitialFocus:p}=(e=>{const t=reactExports.useRef([]),n=reactExports.useMemo(()=>e.find(e=>e.autofocus)?.id??null,[e]),o=reactExports.useRef(n),[i,r]=reactExports.useState(!o.current);return reactExports.useLayoutEffect(()=>{if(i)return;if(n!==o.current)return void r(!0);const e=t.current.find(e=>e?.id===n);if(!e)return;e.focus();const a=()=>{r(!0);};return e.addEventListener("blur",a),()=>{e.removeEventListener("blur",a);}},[n,i]),{actionButtonElementsRefs:t,autofocusButtonId:n,hasAutofocusButtonLostInitialFocus:i}})(n),h=()=>{i({isClosed:!0});},g={...r};return jsxRuntimeExports.jsxs(fe,{className:"io-dialog-template",closeFn:h,isOpen:!0,onCancel:e=>{e.preventDefault(),h();},onKeyDown:e=>{!B(e)||s.length||e.target instanceof HTMLButtonElement||" "===e.key&&e.target instanceof HTMLInputElement||i({isEnterPressed:!0});},style:g,title:a,draggable:!0,children:[jsxRuntimeExports.jsx(fe.Body,{children:o}),jsxRuntimeExports.jsx(fe.Footer,{children:jsxRuntimeExports.jsx(fh,{actionButtonElementsRefs:c,actionButtons:n,isAutofocusButton:e=>f===e&&!p,isButtonDisabled:e=>s.some(t=>t.disabledButtonIds.some(t=>t===e)),onButtonClick:({id:e,text:t})=>{i({responseButtonClicked:{id:e,text:t}});}})})]})}function mh({children:t}){return jsxRuntimeExports.jsx("h1",{"data-testid":"io-dialog-heading",className:"io-dialog-template-heading",children:t})}function hh({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,text:s,title:c}=i;return jsxRuntimeExports.jsx(ph,{actionButtons:r,onCompletion:n,size:o,title:c,children:jsxRuntimeExports.jsx(fe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(mh,{children:a}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:s})]})})})}function gh({onCompletion:n,size:o,variables:i}){const{actionButtons:r,checkbox:s,heading:c,text:u,title:d}=i,[f,p]=reactExports.useState(s.initialValue),m=reactExports.useCallback(()=>p(e=>!e),[]),h=[{id:s.id,type:"checkbox",checked:f}];return jsxRuntimeExports.jsxs(ph,{actionButtons:r,onCompletion:e=>n({...e,inputs:h}),size:o,title:d,children:[jsxRuntimeExports.jsx(fe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(mh,{children:c}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:u})]})}),jsxRuntimeExports.jsx(jd,{"data-testid":`io-dialog-checkbox-${s.id}`,checked:f,id:s.id,label:s.label,name:s.id,onChange:m})]})}function yh({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,input:s,title:c}=i,[u,f]=reactExports.useState(s.initialValue??""),p=reactExports.useRef(null),h=(g=u,!(y=s.validation)||new RegExp(y.regexPattern).test(g)?null:{disabledButtonIds:y.disabledButtonIds,message:y.errorMessage});var g,y;const v=[{id:s.id,type:"text",value:u}];return reactExports.useLayoutEffect(()=>{p.current?.select();},[]),jsxRuntimeExports.jsxs(ph,{actionButtons:r,onCompletion:e=>n({...e,inputs:v}),size:o,title:c,validationErrors:h?[h]:[],children:[jsxRuntimeExports.jsx(fe.Body.Content,{children:jsxRuntimeExports.jsx(mh,{children:a})}),jsxRuntimeExports.jsx(_d,{"data-testid":`io-dialog-input-${s.id}`,ref:p,errorDataTestId:`io-dialog-input-${s.id}-error-message`,errorMessage:h?.message,id:s.id,label:s.label,name:s.id,onChange:e=>f(e.target.value),placeholder:s.placeholder,type:"text",value:u})]})}const vh=da({width:ya,height:ya}),wh=la().andThen(e=>((e,t)=>{const n=typeof e;return "function"===n?la():ha(`The argument provided as "${t}" must be a function, received: ${n}`)})(e,"onCompletion")),bh=da({autofocus:pa(ca()),id:ga,text:ga,variant:ma(ua("default"),ua("primary"),ua("critical"),ua("outline"),ua("link"))}),kh=da({disabledButtonIds:fa(ga),errorMessage:ga,regexPattern:ga}),xh=da({actionButtons:fa(bh),heading:aa(),text:aa(),title:pa(aa())}),Ch=da({templateName:ua("noInputsConfirmationDialog"),onCompletion:wh,size:pa(vh),variables:xh}),Sh=da({actionButtons:fa(bh),checkbox:da({id:ga,initialValue:pa(ca()),label:pa(aa())}),heading:aa(),text:aa(),title:pa(aa())}),Nh=da({templateName:ua("singleCheckboxDialog"),onCompletion:wh,size:pa(vh),variables:Sh}),Eh=da({actionButtons:fa(bh),heading:aa(),input:da({id:ga,initialValue:pa(aa()),label:pa(aa()),placeholder:pa(aa()),validation:pa(kh)}),title:pa(aa())}),Ph=da({templateName:ua("singleTextInputDialog"),onCompletion:wh,size:pa(vh),variables:Eh});[{name:"noInputsConfirmationDialog",Dialog:hh,validate:Ch.runWithException},{name:"singleCheckboxDialog",Dialog:gh,validate:Nh.runWithException},{name:"singleTextInputDialog",Dialog:yh,validate:Ph.runWithException}];reactExports.createContext({config:{message:""},theme:"dark",setResult:()=>{}});const Hh={env:"",region:"",version:"",buildVersion:"",theme:"",isError:!1,mailingList:"",createJiraTicket:!0,sendEmail:!1,attachments:[],applicationTitle:"",allowEditRecipients:!0,attachmentsViewMode:"category",environmentInfo:"",selectedCategories:[],errorMessage:"",showEnvironmentInfo:!1,context:{},technicalInfo:"",sendEmailClient:"Outlook"};const Kh=reactExports.createContext({config:Hh,onThemeChanged:()=>{},openUrl:()=>{},submit:()=>Promise.resolve({}),setBounds:()=>{},close:()=>{},showMailingList:!0,setShowMailingList:()=>{},attachmentCategories:[],submitInProgress:!1,setSubmitInProgress:()=>{},submitStatus:{type:"success",title:"",text:""},setSubmitStatus:()=>{},submitCompleted:!1,setSubmitCompleted:()=>{},jiraTicketURL:"",setJiraTicketURL:()=>{},submitFeedback:()=>{}}),Uh=()=>reactExports.useContext(Kh);function Gh({...n}){const{config:o,close:i}=Uh(),{applicationTitle:r}=o;return jsxRuntimeExports.jsxs(se,{draggable:!0,...n,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:r?`Feedback Form - ${r}`:"Feedback Form",size:"large"}),jsxRuntimeExports.jsx(se.ButtonGroup,{className:"non-draggable",children:jsxRuntimeExports.jsx(se.ButtonIcon,{variant:"circle",icon:"close",size:"32",onClick:()=>i()})})]})}function qh({className:n,handleSubmit:o,...i}){const r=E("io-panel-body",n),{config:a,submitFeedback:s}=Uh(),{IntroField:c,DescriptionField:l,TechInfoField:u,EnvInfoField:d,FileAttachmentsField:f,CategoryAttachmentsField:p,MailListField:m}=fg(),h=o??s,g=`Your feedback will be submitted to the ${a.buildVersion} team and some additional information will be automatically included to help us examine your issue.`;return jsxRuntimeExports.jsxs("form",{className:r,id:"feedback",onSubmit:h,...i,children:[jsxRuntimeExports.jsx(c,{children:jsxRuntimeExports.jsx("p",{children:g})}),jsxRuntimeExports.jsx(m,{}),jsxRuntimeExports.jsx(l,{}),jsxRuntimeExports.jsx(u,{readOnly:!0}),jsxRuntimeExports.jsx(d,{readOnly:!0}),"file"===a.attachmentsViewMode?jsxRuntimeExports.jsx(f,{}):jsxRuntimeExports.jsx(p,{})]})}function Jh({...n}){const{FooterButtons:o}=fg(),{openUrl:i,submitInProgress:r,submitStatus:a,jiraTicketURL:s}=Uh();return jsxRuntimeExports.jsx(ue,{...n,children:jsxRuntimeExports.jsxs("div",r?{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsx(D,{children:jsxRuntimeExports.jsx("p",{children:a.title})}),jsxRuntimeExports.jsx(Vs,{align:"right",size:"small"})]}:{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsxs(D,{children:[jsxRuntimeExports.jsx("p",{className:"error"===a.type?"io-text-error":"",children:a.title}),s&&jsxRuntimeExports.jsx("a",{href:s,onClick:e=>{e.preventDefault(),i(s);},children:s})]}),jsxRuntimeExports.jsx(o,{})]})})}function Yh({className:t,...n}){const{CloseButton:o}=fg(),{close:i}=Uh(),r=E("non-draggable",t);return jsxRuntimeExports.jsx(ae,{className:r,...n,children:jsxRuntimeExports.jsx(o,{onClick:()=>i()})})}function Xh({className:n,...o}){const{SubmitButton:i,CancelButton:r,CloseButton:a}=fg(),{close:s,submitCompleted:c}=Uh();return c?jsxRuntimeExports.jsx(ae,{className:n,...o,children:jsxRuntimeExports.jsx(a,{text:"Close",onClick:()=>s()})}):jsxRuntimeExports.jsxs(ae,{className:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{onClick:()=>s()})]})}function Qh({text:t="Submit",...n}){return jsxRuntimeExports.jsx($,{form:"feedback",type:"submit",variant:"primary",text:t,...n})}function Zh({text:t="Cancel",...n}){return jsxRuntimeExports.jsx($,{variant:"link",text:t,...n})}function eg({...t}){return jsxRuntimeExports.jsx($,{variant:"primary",...t})}function tg({showField:t=!0,className:n,title:o,hint:i,children:r,...a}){return t?jsxRuntimeExports.jsx(D,{className:n,title:o,hint:i,...a,children:r}):null}function ng({showField:t=!0,className:n,title:o="Description",hint:i,readOnly:r=!1,disabled:a,...s}){return t?jsxRuntimeExports.jsx(D,{className:n,hint:i,title:"",...s,children:jsxRuntimeExports.jsx(zd,{id:"description",name:"description",label:o,readOnly:r,disabled:a})}):null}function og({showField:t,className:n,title:o="Technical Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=Uh(),u=t??l.errorMessage,d=r??l.errorMessage;return u&&d?jsxRuntimeExports.jsx(D,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(zd,{id:"errorMessage",name:"errorMessage",label:o,value:d,readOnly:a,disabled:s})}):null}function ig({showField:t,className:n,title:o="Environment Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=Uh(),u=t??l.showEnvironmentInfo,d=r??l.environmentInfo;return u&&d?jsxRuntimeExports.jsx(D,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(zd,{id:"environmentInfo",name:"environmentInfo",label:o,value:d,readOnly:a,disabled:s})}):null}function rg({showField:t=!0,className:n,title:o="Attachments",hint:i,readOnly:r=!1,disabled:s,attachments:c,selectedCategories:l,...u}){const d=E("io-block-list-gap",n),{config:f}=Uh(),p=c??f.attachments,m=l??f.selectedCategories,h=reactExports.useCallback(e=>!!m&&-1!==m.indexOf(e),[m]);return t?!p||p.length<=0?jsxRuntimeExports.jsx(D,{title:"Attachments",children:jsxRuntimeExports.jsx("p",{children:"No Attachments"})}):jsxRuntimeExports.jsx(D,{className:d,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"file-attachments",children:p.map(t=>jsxRuntimeExports.jsx(jd,{id:t.id,name:t.id,label:t.name,readOnly:r,disabled:s,defaultChecked:h(t.category)},t.id))})}):null}function ag({showField:t=!0,className:n,title:o="Attachments",hint:i,readOnly:r=!1,disabled:s,categories:c,selectedCategories:l,...u}){const{config:d,attachmentCategories:f}=Uh(),p=c??f,m=l??d.selectedCategories,h=reactExports.useCallback(e=>!!m&&-1!==m.indexOf(e),[m]);return t?!p||p.length<=0?jsxRuntimeExports.jsx("p",{children:"No Attachments"}):jsxRuntimeExports.jsx(D,{className:n,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"category-attachments",children:p.map(t=>jsxRuntimeExports.jsx(cf,{id:t,name:t,align:"right",label:t,readOnly:r,disabled:s,defaultChecked:h(t)},t))})}):null}function sg({className:n,title:o,hint:i,showField:r=!0,showJiraTicketField:a,jiraTicketLabel:s="Create Jira Ticket",showSendEmailField:c,sendEmailLabel:l="Send Email",readOnly:u=!1,disabled:d,...f}){const p=E("io-block-list-gap",n),{config:m,showMailingList:h,setShowMailingList:g}=Uh();if(!r)return null;const y=a??m.createJiraTicket,v=c??m.sendEmail;return jsxRuntimeExports.jsxs(D,{className:p,hint:i,title:o,...f,children:[y&&jsxRuntimeExports.jsx(cf,{id:"createJiraTicket",name:"createJiraTicket",label:s,align:"right",readOnly:u,disabled:d,defaultChecked:y}),v&&jsxRuntimeExports.jsx(cf,{onChange:()=>{g(!h);},id:"sendEmail",name:"sendEmail",label:l,align:"right",readOnly:u,disabled:d,defaultChecked:v})]})}function cg({showField:t=!0,className:n,title:o="Email List",hint:i="Separate with commas or semicolons.",placeholder:r="john.doe@somedomain.com; jane.doe@otherdomain.com",readOnly:a,disabled:s,...c}){const{config:l,showMailingList:u}=Uh(),d=t??l.sendEmail,f=a??!1===l.allowEditRecipients;return d&&u?jsxRuntimeExports.jsx(D,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(_d,{id:"mailingList",name:"mailingList",label:o,placeholder:r,readOnly:f,disabled:s,defaultValue:l.mailingList??""})}):null}const lg={Header:Gh,Body:qh,Footer:Jh,HeaderButtons:Yh,FooterButtons:Xh,SubmitButton:Qh,CancelButton:Zh,CloseButton:eg,IntroField:tg,DescriptionField:ng,TechInfoField:og,EnvInfoField:ig,FileAttachmentsField:rg,CategoryAttachmentsField:ag,SettingsField:sg,MailListField:cg},ug=reactExports.createContext(lg),dg=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...lg,...n}),[n]);return jsxRuntimeExports.jsx(ug.Provider,{value:o,children:t})});function fg(e){return {...reactExports.useContext(ug),...e}}dg.displayName="ComponentsStore";var Ag={exports:{}};var Fg,Mg,Vg,Kg;
1561
- function Jg(){if(Mg)return Fg;Mg=1;return Fg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}Ag.exports=function(){if(Kg)return Vg;Kg=1;var e=Jg();function t(){}function n(){}return n.resetWarningCache=t,Vg=function(){function o(t,n,o,i,r,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Vg}()();var Qg=C(Ag.exports);function Zg(e){return Zg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zg(e)}function ey(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return t?e.split(" ").map(function(e){return t[e]||e}).join(" "):e}var ty="object"===("undefined"==typeof window?"undefined":Zg(window))&&window.Element||function(){};Qg.oneOfType([Qg.string,Qg.func,function(e,t,n){if(!(e[t]instanceof ty))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},Qg.shape({current:Qg.any})]);var ny=Qg.oneOfType([Qg.func,Qg.string,Qg.shape({$$typeof:Qg.symbol,render:Qg.func}),Qg.arrayOf(Qg.oneOfType([Qg.func,Qg.string,Qg.shape({$$typeof:Qg.symbol,render:Qg.func})]))]),oy=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],iy="entering",ry="entered",ay="exiting",sy="exited";({"aria-label":Qg.string,className:Qg.string,cssModule:Qg.object,role:Qg.string,size:Qg.string,tag:ny,vertical:Qg.bool});function hy(e,t){return hy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hy(e,t)}var gy=!1;var vy=React.createContext(null),wy="unmounted",by="exited",ky="entering",xy="entered",Cy="exiting",Sy=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var i,r=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?r?(i=by,o.appearStatus=ky):i=xy:i=t.unmountOnExit||t.mountOnEnter?wy:by,o.state={status:i},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hy(e,t);}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===wy?{status:by}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus);},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ky&&n!==xy&&(t=ky):n!==ky&&n!==xy||(t=Cy);}this.updateStatus(!1,t);},n.componentWillUnmount=function(){this.cancelNextCallback();},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ky){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:b.findDOMNode(this);n&&function(e){e.scrollTop;}(n);}this.performEnter(e);}else this.performExit();else this.props.unmountOnExit&&this.state.status===by&&this.setState({status:wy});},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[b.findDOMNode(this),o],r=i[0],a=i[1],s=this.getTimeouts(),c=o?s.appear:s.enter;!e&&!n||gy?this.safeSetState({status:xy},function(){t.props.onEntered(r);}):(this.props.onEnter(r,a),this.safeSetState({status:ky},function(){t.props.onEntering(r,a),t.onTransitionEnd(c,function(){t.safeSetState({status:xy},function(){t.props.onEntered(r,a);});});}));},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:b.findDOMNode(this);t&&!gy?(this.props.onExit(o),this.safeSetState({status:Cy},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:by},function(){e.props.onExited(o);});});})):this.safeSetState({status:by},function(){e.props.onExited(o);});},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null);},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t);},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o));},this.nextCallback.cancel=function(){n=!1;},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:b.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=i[0],a=i[1];this.props.addEndListener(r,a);}null!=e&&setTimeout(this.nextCallback,e);}else setTimeout(this.nextCallback,0);},n.render=function(){var e=this.state.status;if(e===wy)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=function(e,t){if(null==e)return {};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o];}return n}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(vy.Provider,{value:null},"function"==typeof n?n(e,o):React.cloneElement(React.Children.only(n),o))},t}(React.Component);function Ny(){}function Ey(e){return Ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ey(e)}Sy.contextType=vy,Sy.propTypes={},Sy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ny,onEntering:Ny,onEntered:Ny,onExit:Ny,onExiting:Ny,onExited:Ny},Sy.UNMOUNTED=wy,Sy.EXITED=by,Sy.ENTERING=ky,Sy.ENTERED=xy,Sy.EXITING=Cy;var Py,Iy=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"];function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);}return e},Ay.apply(this,arguments)}function Oy(e,t){if(null==e)return {};var n,o,i=function(e,t){if(null==e)return {};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);}return i}function Ly(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o);}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ty(e,t){return Ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ty(e,t)}function Dy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}();return function(){var n,o=Ry(e);if(t){var i=Ry(this).constructor;n=Reflect.construct(o,arguments,i);}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===Ey(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return By(e)}(this,n)}}function By(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ry(e){return Ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ry(e)}function Fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o);}return n}function My(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fy(Object(n),!0).forEach(function(t){$y(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function $y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _y=My(My({},Sy.propTypes),{},{horizontal:Qg.bool,isOpen:Qg.bool,children:Qg.oneOfType([Qg.arrayOf(Qg.node),Qg.node]),tag:ny,className:Qg.node,navbar:Qg.bool,cssModule:Qg.object,innerRef:Qg.shape({current:Qg.object})}),zy=My(My({},Sy.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:350}),jy=($y(Py={},iy,"collapsing"),$y(Py,ry,"collapse show"),$y(Py,ay,"collapsing"),$y(Py,sy,"collapse"),Py);var Hy=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ty(e,t);}(t,reactExports.Component);var e=Dy(t);function t(n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=e.call(this,n)).state={dimension:null},o.nodeRef=n.innerRef||React.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(e){o[e]=o[e].bind(By(o));}),o}return Ly(t,[{key:"onEntering",value:function(e,t){var n=this.getNode();this.setState({dimension:this.getDimension(n)}),this.props.onEntering(n,t);}},{key:"onEntered",value:function(e,t){var n=this.getNode();this.setState({dimension:null}),this.props.onEntered(n,t);}},{key:"onExit",value:function(){var e=this.getNode();this.setState({dimension:this.getDimension(e)}),this.props.onExit(e);}},{key:"onExiting",value:function(){var e=this.getNode();this.getDimension(e),this.setState({dimension:0}),this.props.onExiting(e);}},{key:"onExited",value:function(){var e=this.getNode();this.setState({dimension:null}),this.props.onExited(e);}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(e){return this.props.horizontal?e.scrollWidth:e.scrollHeight}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,o=t.horizontal,r=t.isOpen,a=t.className,s=t.navbar,c=t.cssModule,l=t.children;t.innerRef;var u,d,f,p=Oy(t,Iy),m=this.state.dimension,h=function(e,t){for(var n,o=Array.isArray(t)?t:[t],i=o.length,r={};i>0;)r[n=o[i-=1]]=e[n];return r}(p,oy),g=(u=p,d=oy,f={},Object.keys(u).forEach(function(e){-1===d.indexOf(e)&&(f[e]=u[e]);}),f);return React.createElement(Sy,Ay({},h,{in:r,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var r=function(e){return jy[e]||"collapse"}(t),u=ey(E(a,o&&"collapse-horizontal",r,s&&"navbar-collapse"),c),d=null===m?null:$y({},o?"width":"height",m);return React.createElement(n,Ay({},g,{style:My(My({},g.style),d),className:u,ref:e.nodeRef}),l)})}}]),t}();Hy.propTypes=_y,Hy.defaultProps=zy;reactExports.createContext(void 0);reactExports.createContext(void 0);reactExports.createContext(void 0);var Iv=function(e){return function(e){return !!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return "[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Av}(e)}(e)};var Av="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ov(e,t){return !1!==t.clone&&t.isMergeableObject(e)?Rv((n=e,Array.isArray(n)?[]:{}),e,t):e;var n;}function Lv(e,t,n){return e.concat(t).map(function(e){return Ov(e,n)})}function Tv(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function Dv(e,t){try{return t in e}catch(e){return !1}}function Bv(e,t,n){var o={};return n.isMergeableObject(e)&&Tv(e).forEach(function(t){o[t]=Ov(e[t],n);}),Tv(t).forEach(function(i){(function(e,t){return Dv(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(Dv(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return Rv;var n=t.customMerge(e);return "function"==typeof n?n:Rv}(i,n)(e[i],t[i],n):o[i]=Ov(t[i],n));}),o}function Rv(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Lv,n.isMergeableObject=n.isMergeableObject||Iv,n.cloneUnlessOtherwiseSpecified=Ov;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Bv(e,t,n):Ov(t,n)}Rv.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Rv(e,n,t)},{})};C(Rv);const $v=reactExports.forwardRef((t,n)=>{const{onSearch:o,searchTerm:i,onClear:r,className:a}=t,s=reactExports.useContext(IOConnectContext);return reactExports.useEffect(()=>{s&&"search"in s&&s.search?.setDebounceMS(450);},[s]),jsxRuntimeExports.jsx(_d,{id:"search-input",className:E("search-bar",a),ref:n,placeholder:"Find anything",value:i,onChange:o,autoComplete:"off",iconPrepend:"search",iconAppend:i.length?"close":void 0,iconAppendOnClick:r})});$v.displayName="SearchBar";reactExports.createContext(null);const Zv={APPLICATION:"application",WORKSPACE:"workspace"};reactExports.createContext(null);const lw=reactExports.createContext({searchQuery:"",setSearch:()=>{},isPanelVisible:!1,sortNotificationsBy:"newest",setSortBy:()=>{},viewNotificationsBy:"all",setViewBy:()=>{},isBulkActionsVisible:!1,showBulkActions:()=>{},hideBulkActions:()=>{}}),uw=()=>reactExports.useContext(lw);function dw({title:n,onOpenSettings:o,onClose:i,...r}){const{HeaderCaptionTitle:a,HeaderCaptionCount:s,HeaderCaptionButtonSettings:c,HeaderCaptionButtonClose:l,HeaderActions:u,HeaderBulkActions:d,HeaderSearch:f}=nb(),{isBulkActionsSupported:p,notificationsCount:m}=jp(),{isBulkActionsVisible:h}=uw(),g=Ud();return jsxRuntimeExports.jsxs(Ks,{...r,children:[jsxRuntimeExports.jsxs("div",{className:"io-panel-header-caption",children:[jsxRuntimeExports.jsx(a,{title:n}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsxs(Ks.ButtonGroup,{children:[g&&jsxRuntimeExports.jsx(c,{onClick:o}),jsxRuntimeExports.jsx(l,{onClick:i})]})]}),jsxRuntimeExports.jsx(f,{}),p?jsxRuntimeExports.jsxs("div",{className:`io-panel-header-actions-wrapper ${h&&m>0?"io-panel-header-bulk-actions-opened":""} `,children:[jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{})]}):jsxRuntimeExports.jsx(u,{})]})}function fw({text:n="Notifications",counter:o,...i}){const{notificationsCount:r}=jp();return jsxRuntimeExports.jsx(T,{text:n,size:"large",...i,children:(o??!0)&&jsxRuntimeExports.jsxs("span",{children:["(",r,")"]})})}const pw="newest",mw="oldest",hw="severity",gw=["None","Low","Medium","High","Critical"],yw={key:pw,descending:!0},vw=e=>[...e].sort((e,t)=>(t.timestamp||0)-(e.timestamp||0)),ww=e=>[...e].sort((e,t)=>(e.timestamp||0)-(t.timestamp||0)),bw=(e,t)=>{const n=gw[0];return [...e].sort((e,o)=>{const i=gw.indexOf(e.severity||n),r=gw.indexOf(o.severity||n);return (t?-1:1)*(i-r)})},kw={[pw]:vw,[mw]:ww,[hw]:bw},xw={severity:"Priority",newest:"Newest",oldest:"Oldest"};function Cw({...t}){const[n,o]=reactExports.useState([]),{NotificationsList:i,Notification:r}=nb(),{notifications:a,setCount:s,notificationsCount:c}=jp(),{sortNotificationsBy:p,viewNotificationsBy:m,searchQuery:h}=uw(),g=reactExports.useRef(null),y=Vd(h),v=reactExports.useMemo(()=>{const e=((e,t)=>{if(!e)return [];switch(t){case"all":default:return e;case"unread":return e.filter(e=>"Active"===e.state||"Stale"===e.state);case"read":return e.filter(e=>"Acknowledged"===e.state||"Seen"===e.state);case"snoozed":return e.filter(e=>"Snoozed"===e.state)}})(a,m);return e.filter(e=>e.title.toLowerCase().includes(y.toLowerCase())||e.source?.toLowerCase().includes(y.toLowerCase())||e.body?.toLowerCase().includes(y.toLowerCase()))},[y,a,m]);return reactExports.useEffect(()=>{switch(p){case"newest":o(vw(v));break;case"oldest":o(ww(v));break;case"severity":o(bw(v,!0));break;default:o(v);}s(v.length);},[v,p,s]),reactExports.useEffect(()=>{g.current&&g.current?.scrollTo({top:0,behavior:"smooth"});},[y,c,p,m]),jsxRuntimeExports.jsx(Ld,{ref:g,element:Us,elementProps:t,children:jsxRuntimeExports.jsx(i,{notifications:n,Notification:r})})}function Sw({...t}){const{FooterButtons:n}=nb();return jsxRuntimeExports.jsx(Gs,{...t,children:jsxRuntimeExports.jsx(n,{})})}function Nw({className:n,...o}){const{FooterButtonClearAll:i,FooterButtonClearAllOld:r}=nb(),{notifications:a}=jp(),[s,c]=reactExports.useState(!1);return reactExports.useEffect(()=>{a.filter(e=>"Stale"===e.state||"Acknowledged"===e.state).length>0?c(!0):c(!1);},[a]),jsxRuntimeExports.jsxs(ae,{className:n,align:"right",...o,children:[jsxRuntimeExports.jsx(r,{disabled:!s}),jsxRuntimeExports.jsx(i,{disabled:a.length<=0})]})}function Ew({text:t="Clear All",...n}){const{clearAll:o}=jp();return jsxRuntimeExports.jsx($,{text:t,onClick:()=>{o();},...n})}function Pw({text:t="Clear Old",...n}){const{clearAllOld:o}=jp();return jsxRuntimeExports.jsx($,{text:t,onClick:()=>{o();},...n})}function Iw(e){const t=Ud(),{onClose:n,settings:o}=jp(),{isPanelVisible:i}=uw(),{id:r,onClick:s,updateState:c}=e,l=reactExports.useCallback(async()=>{if(!s)return;if(!t){try{await s({close:!0});}catch(e){console.error(e);}return void n(r)}const e=o?.toastStacking??!1;let a;a=i?o?.closeNotificationOnClick??!0:!e&&null;try{null!==a?await s({close:a}):(await s({close:!1}),await c("Acknowledged"));}catch(e){console.error(e);}},[t,r,i,s,n,c,o?.closeNotificationOnClick,o?.toastStacking]),u=reactExports.useCallback(async e=>{const t=e.target;t.closest("button")||t.closest("[role='button']")||t.closest("a")||t.closest(".io-dropdown-menu")||await l();},[l]);return {handleClick:l,handleWrapperClick:u}}function Aw({className:n,notification:o,onClick:i,...r}){const a=E("io-notification-header",n),{HeaderCount:s,HeaderBadge:c,HeaderTitle:l,HeaderTimestamp:u,HeaderButtonSnooze:d,HeaderButtonClose:f}=Uw(),{handleWrapperClick:p}=Iw(o);return jsxRuntimeExports.jsxs("div",{className:a,onClick:async e=>{await p(e),i?.(e);},...r,children:[jsxRuntimeExports.jsx(c,{notification:o}),jsxRuntimeExports.jsx(s,{notification:o}),jsxRuntimeExports.jsx(l,{notification:o}),jsxRuntimeExports.jsx(u,{notification:o}),jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(d,{notification:o}),jsxRuntimeExports.jsx(f,{notification:o})]})]})}function Ow({notification:t,...n}){const{settings:o,notificationStacks:i}=jp(),{isPanelVisible:r}=uw(),{toastStacking:a,stackBy:s}=o,c="application"===s?"source":s??"source";let l=0;if(a){const e=i.find(e=>e.key===t[c]);l=e?.items.length??0;}return r||!a||l<=1?null:jsxRuntimeExports.jsx(Js,{...n,children:l>9?"9+":l})}function Lw({className:t,notification:n,...o}){if(!n?.severity||"None"===n.severity)return null;const i=E("io-notification-header-badge",t);return jsxRuntimeExports.jsx(Js,{className:i,...o,children:n.severity})}function Tw({className:n,state:o,severity:i="None",icon:r,...a}){const s=E("io-notification-header-icon",n),{isPanelVisible:c}=uw();return jsxRuntimeExports.jsxs("div",{className:s,...a,children:[r&&jsxRuntimeExports.jsx("span",{className:"io-notification-header-icon-image",children:jsxRuntimeExports.jsx("img",{src:r,alt:`io-notification-header-icon-${r}`})}),jsxRuntimeExports.jsx("span",{className:`io-notification-header-icon-badge color-${i.toLowerCase()}`,children:c&&"Acknowledged"!==o&&"New"})]})}function Dw({className:t,notification:{appTitle:n},...o}){const i=E("io-notification-header-title",t);return jsxRuntimeExports.jsx("div",{className:i,...o,children:n})}function Bw({className:t,notification:{timestamp:n,state:o,snooze:i},...r}){const a=E("io-notification-timestamp",t);return jsxRuntimeExports.jsx("small",i&&"Snoozed"===o?{className:a,...r,children:"Snoozed"}:{className:a,...r,children:Gf(n??0)??"Just Now"})}function Rw({notification:{id:t,state:n},...o}){const{settings:i,snooze:r}=jp(),s=reactExports.useCallback(e=>{e.stopPropagation(),r&&r(t,i.snooze?.duration??0);},[t,r,i.snooze?.duration]);return r&&"Snoozed"!==n&&i.snooze?.enabled?jsxRuntimeExports.jsx($,{icon:"snooze",variant:"link",text:"Snooze",tabIndex:-1,onClick:s,...o}):null}function Fw({notification:{id:t,updateState:n},...o}){const i=Ud(),{onClose:r}=jp(),{isPanelVisible:s}=uw(),c=reactExports.useCallback(e=>{e.stopPropagation(),!i||s?r(t):n("Acknowledged").catch(console.error);},[i,t,r,s,n]);return jsxRuntimeExports.jsx(I,{icon:"close",iconSize:"10",tabIndex:-1,onClick:c,...o})}function Mw({className:n,notification:o,...i}){const r=E("io-notification-body",n),{BodyIcon:a,BodyTitle:s,BodyDescription:c}=Uw(),{icon:l,title:u,body:d}=o,{handleClick:f}=Iw(o);return jsxRuntimeExports.jsxs("div",{className:r,role:"button",tabIndex:0,onKeyDown:async e=>{B(e)&&await f();},onClick:f,...i,children:[jsxRuntimeExports.jsx(a,{icon:l}),jsxRuntimeExports.jsxs("div",{className:"io-notification-body-content",children:[jsxRuntimeExports.jsx(s,{text:u}),jsxRuntimeExports.jsx(c,{text:d})]})]})}function $w({className:t,icon:n,altText:o="notification icon",...i}){if(!n)return null;const r=E("io-notification-body-icon",t);return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsx("img",{src:n,alt:o})})}function _w({text:t,...n}){return jsxRuntimeExports.jsx(T,{text:t,...n})}function zw({className:t,text:n,...o}){const i=E("io-notification-body-description",t);return jsxRuntimeExports.jsx("p",{className:i,...o,children:n})}function jw({className:n,notification:o}){const i=E("io-notification-footer",n),{FooterButton:r}=Uw(),{handleWrapperClick:a}=Iw(o),s=reactExports.useMemo(()=>function(e){const t=[],n={};if(!e)return;e.forEach(e=>{const{displayId:o,displayPath:i}=e,r={...e,children:[]};if(i&&i.length>0){let e;i.forEach((t,o)=>{0===o?e=n[t]:e&&(e=e.children?.find(e=>e.displayId===t));}),e&&e.children?.push(r);}else o?(t.push(r),n[o]=r):t.push(r);o&&(n[o]=r);});const o=e=>{e.forEach(e=>{0===e.children?.length?delete e.children:e.children&&o(e.children);});};return o(t),t}(o.actions),[o.actions]),c=(t,n)=>t.children?jsxRuntimeExports.jsx(ei,{text:t.title,children:t.children.map(c)},`${t.title}-${n}`):((t,n)=>jsxRuntimeExports.jsx(ei.Item,{children:jsxRuntimeExports.jsx(r,{variant:"link",className:"io-dropdown-menu-item io-dropdown-menu-button",notificationAction:t})},`${t.title}-${n}`))(t,n);return jsxRuntimeExports.jsx("div",{className:i,onClick:a,children:jsxRuntimeExports.jsx(ae,{align:"right",children:s?.map((n,o)=>n.children?jsxRuntimeExports.jsxs(ae,{variant:"append",children:[jsxRuntimeExports.jsx(r,{notificationAction:n,variant:0===o?"primary":"default"}),jsxRuntimeExports.jsx(ei,{variant:0===o?"primary":"default",icon:"ellipsis",children:n.children.map(c)})]},`${n.title}-${o}`):jsxRuntimeExports.jsx(r,{notificationAction:n,variant:0===o?"primary":"link"},`${n.title}-${o}`))})})}function Hw({notificationAction:t,...n}){const o=reactExports.useCallback(e=>{e.stopPropagation(),t.onClick({close:!0});},[t]);return jsxRuntimeExports.jsx($,{text:t.title,onClick:o,...n})}const Ww={Header:Aw,HeaderCount:Ow,HeaderBadge:Lw,HeaderIcon:Tw,HeaderTitle:Dw,HeaderTimestamp:Bw,HeaderButtonSnooze:Rw,HeaderButtonClose:Fw,Body:Mw,BodyIcon:$w,BodyTitle:_w,BodyDescription:zw,Footer:jw,FooterButton:Hw},Vw=reactExports.createContext(Ww),Kw=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Ww,...n}),[n]);return jsxRuntimeExports.jsx(Vw.Provider,{value:o,children:t})});function Uw(e){return {...reactExports.useContext(Vw),...e}}function Gw({className:n,notification:o,...i}){const{Header:r,Body:a,Footer:s}=Uw(),{severity:c}=o,l=E("io-notification",`severity-${c?.toLowerCase()??"none"}`,"Acknowledged"!==o.state&&"state-new",n);return jsxRuntimeExports.jsxs("div",{className:l,...i,children:[jsxRuntimeExports.jsx(r,{notification:o}),jsxRuntimeExports.jsx(a,{notification:o}),jsxRuntimeExports.jsx(s,{notification:o})]})}function qw({components:t,notification:n,...o}){return jsxRuntimeExports.jsx(Kw,{components:t,children:jsxRuntimeExports.jsx(Gw,{notification:n,...o})})}function Jw({className:n,notifications:o,...i}){const[r,s]=reactExports.useState(!1),c=o.length>=3?"large":"normal",u=2===o.length?"small":c,d=o[0].severity,f=E("io-notification-stack",r&&"io-notification-stack-open","normal"!==u&&[`io-notification-stack-${u}`],d&&"None"!==d&&[`io-notification-stack-${d.toLowerCase()}`],n),p=reactExports.useCallback(()=>{s(!0);},[]),m=reactExports.useCallback(e=>{e.stopPropagation(),o.forEach(e=>{e.close();});},[o]);return jsxRuntimeExports.jsxs("div",{className:f,onClick:p,...i,children:[r&&"normal"!==u&&jsxRuntimeExports.jsx("div",{className:"io-notification-stack-btn",children:jsxRuntimeExports.jsx($,{icon:"close",onClick:e=>m(e),children:jsxRuntimeExports.jsx("span",{className:"io-btn-text",children:"Clear Stack"})})}),o.map(t=>jsxRuntimeExports.jsx(qw,{notification:t},t.id))]})}function Yw({...t}){const{notificationStacks:o}=jp();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o.map(n=>jsxRuntimeExports.jsx(Jw,{notifications:n.items,...t},n.key))})}Kw.displayName="ComponentsStoreProvider";const Xw=({notification:n,Notification:o,...i})=>{const{configuration:r,isBulkActionsSupported:a,selectedNotifications:s,selectNotification:c}=jp(),{isPanelVisible:l,isBulkActionsVisible:u}=uw(),d=r.sourceFilter?.muted??[],f=n.source&&d.includes(n.source)||d.includes("*");if(!l&&f)return null;const p=l&&a&&u,m=s.includes(n.id);return p?jsxRuntimeExports.jsxs("div",{className:E("io-notification-list-bulk-action-item",{selected:m}),children:[jsxRuntimeExports.jsx(jd,{checked:m,onChange:e=>c(n.id,e.target.checked)}),jsxRuntimeExports.jsx(o,{notification:n,...i})]}):jsxRuntimeExports.jsx(o,{notification:n,...i})};function Qw({className:n,Notification:o,notifications:i=[],noNotificationText:r="No notifications to display",...a}){const s=E("io-notification-list",n),{settings:c}=jp(),{isPanelVisible:l}=uw(),{toastStacking:u}=c,d=u&&!l,f=i.length>0;return jsxRuntimeExports.jsxs("div",{className:s,...a,children:[d&&jsxRuntimeExports.jsx(Yw,{}),!d&&(f?i.map(t=>jsxRuntimeExports.jsx(Xw,{notification:t,Notification:o,...a},t.id)):jsxRuntimeExports.jsx("div",{className:"io-notification-list-no-notifications",children:r}))]})}const Zw={Header:dw,HeaderCaptionTitle:fw,HeaderCaptionCount:function({variant:t="primary",...n}){const{notificationsCount:o=0}=jp();return 0===o?null:jsxRuntimeExports.jsx(L,{variant:t,...n,children:o>99?"99+":o})},HeaderCaptionButtonSettings:function({icon:t="cog",size:n="32",variant:o="circle",...i}){return Ud()?jsxRuntimeExports.jsx(I,{icon:t,size:n,variant:o,...i}):null},HeaderCaptionButtonClose:function({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const{hidePanel:a}=jp(),s=Ud();return jsxRuntimeExports.jsx(I,{icon:t,size:n,variant:o,onClick:e=>{i?i(e):s&&a();},...r})},HeaderActions:function({className:n,...o}){const i=E("io-panel-header-actions",n),{HeaderActionSort:r,HeaderActionView:a,HeaderActionClear:s,HeaderActionEdit:c}=nb();return jsxRuntimeExports.jsxs("div",{className:i,...o,children:[jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{})]}),jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})]})},HeaderActionSort:function({text:n="Sort by",...o}){const{sortNotificationsBy:i,setSortBy:r}=uw(),{onNotificationsSort:s}=(()=>{const{notifications:e}=jp(),[t,n]=reactExports.useState(yw),{key:o,descending:i}=t,r=reactExports.useMemo(()=>kw[o](e,i),[e,o,i]),s=reactExports.useCallback(e=>{n(t=>({key:e,descending:t.key!==e?yw.descending:!t.descending}));},[]);return {onNotificationsSort:s,sortedNotifications:r}})();return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsxs(re.Button,{variant:"link",children:[n," ",jsxRuntimeExports.jsx("strong",{children:xw[i].toLowerCase()})]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",checkIcon:"check",children:["Newest","Oldest","Priority"].map(t=>{const n="Priority"===t?"severity":t.toLowerCase();return jsxRuntimeExports.jsx(re.Item,{isSelected:i===n,onClick:()=>{r(n),s(n);},children:t},t)})})})]})},HeaderActionView:function({text:n="View",...o}){const{settings:i}=jp(),{viewNotificationsBy:r,setViewBy:a}=uw(),s=i.snooze?.enabled?["All","Read","Unread","Snoozed"]:["All","Read","Unread"];return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsxs(re.Button,{variant:"link",children:[n," ",jsxRuntimeExports.jsx("strong",{children:r})]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",checkIcon:"check",children:s.map(t=>jsxRuntimeExports.jsx(re.Item,{isSelected:r===t.toLowerCase(),onClick:()=>a(t.toLowerCase()),children:t},t))})})]})},HeaderActionClear:function({text:t="Clear All",...n}){const{clearAll:o,notificationsCount:i}=jp();return jsxRuntimeExports.jsx($,{variant:"link",text:t,onClick:o,disabled:0===i,...n})},HeaderActionEdit:function({tooltip:t="Bulk Edit",...n}){const{isBulkActionsSupported:o,notificationsCount:i}=jp(),{showBulkActions:r}=uw();return o?jsxRuntimeExports.jsx(I,{icon:"pen-to-square",title:t,size:"32",onClick:r,disabled:0===i,...n}):null},HeaderBulkActions:function({className:n,...o}){const i=E("io-panel-header-bulk-actions",n),{HeaderBulkActionSelect:r,HeaderBulkActionSelectDropdown:a,HeaderBulkActionMarkAsRead:s,HeaderBulkActionMarkAsUnread:c,HeaderBulkActionSnooze:l,HeaderBulkActionClear:u,HeaderBulkActionClose:d}=nb(),{isBulkActionsSupported:f}=jp();return f?jsxRuntimeExports.jsx("div",{className:i,...o,children:jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{}),jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{})]})}):null},HeaderBulkActionSelect:function({...t}){const{isBulkActionsSupported:n,selectedNotifications:o,selectAllNotifications:i,notificationsCount:r}=jp();return n?jsxRuntimeExports.jsx(jd,{checked:r===o.length&&r>0,onChange:e=>i("all",e.target.checked),disabled:0===r,...t}):null},HeaderBulkActionSelectDropdown:function({...n}){const{isBulkActionsSupported:o,selectAllNotifications:i,notificationsCount:r}=jp();return o?jsxRuntimeExports.jsxs(re,{variant:"light",...n,children:[jsxRuntimeExports.jsx(re.ButtonIcon,{variant:"default",icon:"chevron-down",size:"16",iconSize:"10",disabled:0===r}),jsxRuntimeExports.jsx(H,{children:jsxRuntimeExports.jsxs(re.List,{variant:"single",checkIcon:"check",children:[jsxRuntimeExports.jsx(re.ItemSection,{children:"Select"}),["All","Read","Unread","Snoozed"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>i(t.toLowerCase(),!0),children:t},t))]})})]}):null},HeaderBulkActionMarkAsRead:function({icon:t="envelope-open",size:n="32",variant:o="circle",tooltip:i="Mark as read",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,setStates:l,notificationsCount:u}=jp(),d=reactExports.useCallback(()=>{l(c,"Seen");},[c,l]);return s?jsxRuntimeExports.jsx(I,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionMarkAsUnread:function({icon:t="envelope",size:n="32",variant:o="circle",tooltip:i="Mark as unread",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,setStates:l,notificationsCount:u}=jp(),d=reactExports.useCallback(()=>{l(c,"Active");},[c,l]);return s?jsxRuntimeExports.jsx(I,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionSnooze:function({icon:t="snooze",size:n="32",variant:o="circle",tooltip:i="Snooze",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,snoozeMany:l,settings:u,notificationsCount:d}=jp(),f=reactExports.useCallback(()=>{l(c,u.snooze?.duration??0);},[c,l,u.snooze?.duration]);return s&&u.snooze?.enabled?jsxRuntimeExports.jsx(I,{icon:t,size:n,variant:o,title:i,onClick:f,disabled:0===d,...r}):null},HeaderBulkActionClear:function({icon:t="trash",size:n="32",variant:o="circle",tooltip:i="Clear",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,clearMany:l,notificationsCount:u}=jp(),d=reactExports.useCallback(()=>{l(c);},[c,l]);return s?jsxRuntimeExports.jsx(I,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionClose:function({text:t="Done",variant:n="primary",...o}){const{isBulkActionsSupported:i,notificationsCount:r}=jp(),{hideBulkActions:a}=uw();return i?jsxRuntimeExports.jsx($,{variant:n,text:t,onClick:a,disabled:0===r,...o}):null},HeaderSearch:function({className:n,placeholder:o="Search",iconPrepend:i="search",iconAppend:r="close",...s}){const c=E("io-panel-header-search",n),l=reactExports.useRef(null),{notificationsCount:u}=jp(),{searchQuery:f,setSearch:p}=uw(),m=f.length>0,h=reactExports.useCallback(()=>{p(""),l.current&&l.current.focus();},[p]);return jsxRuntimeExports.jsxs("div",{className:c,children:[jsxRuntimeExports.jsx(_d,{ref:l,value:f,iconPrepend:i,iconAppend:m?r:void 0,iconAppendOnClick:m?h:void 0,placeholder:o,onChange:e=>p(e.target.value),...s}),m&&jsxRuntimeExports.jsx("p",{className:"io-panel-header-search-count",children:`${u} results`})]})},Body:Cw,Footer:Sw,FooterButtons:Nw,FooterButtonClearAll:Ew,FooterButtonClearAllOld:Pw,Notification:qw,NotificationsList:Qw},eb=reactExports.createContext(Zw),tb=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Zw,...n}),[n]);return jsxRuntimeExports.jsx(eb.Provider,{value:o,children:t})});function nb(e){return {...reactExports.useContext(eb),...e}}tb.displayName="ComponentsStoreProvider";const rb=({className:t,notifications:n,maxToasts:o=1,...i})=>{const r=E("io-toasts-body",t),{NotificationsList:a,Notification:s}=lb(),[c,u]=reactExports.useState([]);return reactExports.useEffect(()=>{const e=o<0?n.length:o,t=n.filter(e=>"Active"===e.state).slice(0,e);for(const e of t)e.onShow();u(t);},[n,o]),jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsx(a,{Notification:s,notifications:c,noNotificationText:""})})};rb.displayName="Body";const ab={Body:rb,Notification:qw,NotificationsList:Qw},sb=reactExports.createContext(ab),cb=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...ab,...n}),[n]);return jsxRuntimeExports.jsx(sb.Provider,{value:o,children:t})});function lb(e){return {...reactExports.useContext(sb),...e}}cb.displayName="ComponentsStoreProvider";reactExports.createContext(null);reactExports.memo(function({className:n,...o}){const{notificationsCount:i,showNotificationBadge:r,toggleNotificationPanel:s}=(()=>{const e=reactExports.useContext(IOConnectContext),{settings:t}=jp(),[n,o]=reactExports.useState(0);reactExports.useEffect(()=>{const t=e?.notifications;if(!t)return;const n=t.onCounterChanged(e=>{o(e.count);});return ()=>n?.()},[e?.notifications]);const i=reactExports.useCallback(async()=>{if(e?.notifications?.panel)try{await e.notifications.panel.isVisible()?await e.notifications.panel.hide():await e.notifications.panel.show();}catch(e){console.error("Failed to toggle notifications panel:",e);}else console.error("Notifications panel API not available");},[e]);return {showNotificationBadge:t.showNotificationBadge,notificationsCount:n,toggleNotificationPanel:i}})(),u=r&&i>0,d=i>99?"99+":i;return jsxRuntimeExports.jsxs("div",{className:E("notifications-button","non-draggable",n),...o,children:[u&&jsxRuntimeExports.jsx(L,{variant:"primary",children:d}),jsxRuntimeExports.jsx(I,{variant:"circle",icon:"bell",size:"32",title:"Notifications",onClick:s})]})});const{isClickKeypress:Ab}=M;reactExports.memo(function({id:t,title:n,type:o,icon:i,iconSrc:r,hasOpenInstance:s,onItemClick:c,onPerformAction:l}){const u=reactExports.useCallback(async()=>{const e=o===Zv.APPLICATION?{kind:Zv.APPLICATION,id:t,modifier:null,title:n}:{kind:Zv.WORKSPACE,id:t,modifier:null};await l({type:o,id:t,title:n}),c?.(e);},[t,n,o,c,l]),d=n,f=r?jsxRuntimeExports.jsx(Er,{size:"16",src:r,alt:`${n} icon`}):jsxRuntimeExports.jsx(P,{size:"16",variant:i});return jsxRuntimeExports.jsx(Q.Item,{className:E({"io-list-item-active":s}),prepend:f,tooltip:d??n,title:n,onClick:u,tabIndex:0,"aria-label":n,onKeyDown:e=>{Ab(e)&&(e.preventDefault(),u());},children:jsxRuntimeExports.jsx("span",{className:"launchpad-category-item-title",children:n})})});const zb=n=>{const{General:o,Layouts:i}=Ub();return jsxRuntimeExports.jsxs(Ld,{element:Us,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(i,{})]})},jb=({title:t="General",...n})=>{const{Theme:o}=Ub();return jsxRuntimeExports.jsx(D,{title:t,"data-testid":"preferences-panel-general-block",...n,children:jsxRuntimeExports.jsx(o,{})})},Hb=({title:t="Layouts",...n})=>{const{LayoutsShowDeletePrompt:o}=Ub();return jsxRuntimeExports.jsx(D,{title:t,"data-testid":"preferences-panel-layouts-block",...n,children:jsxRuntimeExports.jsx(o,{})})},Wb={Body:zb,General:jb,Theme:wf,Layouts:Hb,LayoutsShowUnsavedChangesPrompt:Bf,LayoutsShowDeletePrompt:Rf},Vb=reactExports.createContext(Wb),Kb=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Wb,...n}),[n]);return jsxRuntimeExports.jsx(Vb.Provider,{value:o,children:t})});Kb.displayName="PreferencesPanelComponentsStoreProvider";const Ub=()=>reactExports.useContext(Vb);
1560
+ */jl.displayName="PanelBody",Jl.ButtonGroup=ae,Jl.Button=D,Jl.ButtonIcon=P,Jl.Dropdown=re,Yl.Header=Zl,Yl.Body=jl,Yl.Footer=Jl,$l.Icon=N;const Ul=(e,t)=>{const{o:n,i:o,u:i}=e;let r,a=n;const s=(e,t)=>{const n=a,s=e,c=t||(o?!o(n,s):n!==s);return (c||i)&&(a=s,r=n),[a,c,r]};return [t?e=>s(t(a,r),e):s,e=>[a,!!e,r]]},Ql="undefined"!=typeof window&&"undefined"!=typeof HTMLElement&&!!window.document?window:{},Kl=Math.max,ql=Math.min,eu=Math.round,tu=Math.abs,nu=Math.sign,ou=Ql.cancelAnimationFrame,iu=Ql.requestAnimationFrame,ru=Ql.setTimeout,au=Ql.clearTimeout,su=e=>void 0!==Ql[e]?Ql[e]:void 0,cu=su("MutationObserver"),lu=su("IntersectionObserver"),uu=su("ResizeObserver"),du=su("ScrollTimeline"),pu=e=>void 0===e,fu=e=>null===e,mu=e=>"number"==typeof e,hu=e=>"string"==typeof e,gu=e=>"boolean"==typeof e,bu=e=>"function"==typeof e,vu=e=>Array.isArray(e),yu=e=>"object"==typeof e&&!vu(e)&&!fu(e),wu=e=>{const t=!!e&&e.length,n=mu(t)&&t>-1&&t%1==0;return !!(vu(e)||!bu(e)&&n)&&(!(t>0&&yu(e))||t-1 in e)},Iu=e=>!!e&&e.constructor===Object,Cu=e=>e instanceof HTMLElement,xu=e=>e instanceof Element;function Au(e,t){if(wu(e))for(let n=0;n<e.length&&!1!==t(e[n],n,e);n++);else e&&Au(Object.keys(e),n=>t(e[n],n,e));return e}const ku=(e,t)=>e.indexOf(t)>=0,Su=(e,t)=>e.concat(t),Nu=(e,t,n)=>(!hu(t)&&wu(t)?Array.prototype.push.apply(e,t):e.push(t),e),Pu=e=>Array.from(e||[]),Eu=e=>vu(e)?e:!hu(e)&&wu(e)?Pu(e):[e],Lu=e=>!!e&&!e.length,Bu=e=>Pu(new Set(e)),Ou=(e,t,n)=>{Au(e,e=>!e||e.apply(void 0,t||[])),n||(e.length=0);},Tu="paddingTop",Ru="paddingRight",Gu="paddingLeft",Fu="paddingBottom",Mu="marginLeft",Du="marginRight",Wu="marginBottom",Vu="overflowX",Hu="overflowY",zu="width",Xu="height",Zu="visible",ju="hidden",Ju="scroll",Yu=(e,t,n,o)=>{if(e&&t){let o=!0;return Au(n,n=>{e[n]!==t[n]&&(o=!1);}),o}return !1},$u=(e,t)=>Yu(e,t,["w","h"]),_u=(e,t)=>Yu(e,t,["x","y"]),Uu=(e,t)=>Yu(e,t,["t","r","b","l"]),Qu=(e,...t)=>e.bind(0,...t),Ku=e=>{let t;const n=e?ru:iu,o=e?au:ou;return [i=>{o(t),t=n(()=>i(),bu(e)?e():e);},()=>o(t)]},qu=e=>{const t=bu(e)?e():e;if(mu(t)){const e=t?ru:iu,n=t?au:ou;return o=>{const i=e(()=>o(),t);return ()=>{n(i);}}}return t&&t._},ed=(e,t)=>{const{p:n,v:o,S:i,m:r}=t||{};let a,s,c,l;const u=function(t){s&&s(),a&&a(),l=s=a=c=void 0,e.apply(this,t);},d=e=>r&&c?r(c,e):e,p=()=>{s&&c&&u(d(c)||c);},f=function(){const e=Pu(arguments),t=qu(n);if(t){const n="function"==typeof i?i():i,r=qu(o),f=d(e)||e,m=u.bind(0,f);s&&s(),n&&!l?(m(),l=!0,s=t(()=>l=void 0)):(s=t(m),r&&!a&&(a=r(p))),c=f;}else u(e);};return f.O=p,f},td=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),nd=e=>e?Object.keys(e):[],od=(e,t,n,o,i,r,a)=>{const s=[t,n,o,i,r,a];return "object"==typeof e&&!fu(e)||bu(e)||(e={}),Au(s,t=>{Au(t,(n,o)=>{const i=t[o];if(e===i)return !0;const r=vu(i);if(i&&Iu(i)){const t=e[o];let n=t;r&&!vu(t)?n=[]:r||Iu(t)||(n={}),e[o]=od(n,i);}else e[o]=r?i.slice():i;});}),e},id=(e,t)=>Au(od({},e),(e,t,n)=>{void 0===e?delete n[t]:e&&Iu(e)&&(n[t]=id(e));}),rd=e=>!nd(e).length,ad=()=>{},sd=(e,t,n)=>Kl(e,ql(t,n)),cd=e=>Bu((vu(e)?e:(e||"").split(" ")).filter(e=>e)),ld=(e,t)=>e&&e.getAttribute(t),ud=(e,t)=>e&&e.hasAttribute(t),dd=(e,t,n)=>{Au(cd(t),t=>{e&&e.setAttribute(t,String(n||""));});},pd=(e,t)=>{Au(cd(t),t=>e&&e.removeAttribute(t));},fd=(e,t)=>{const n=cd(ld(e,t)),o=Qu(dd,e,t),i=(e,t)=>{const o=new Set(n);return Au(cd(e),e=>{o[t](e);}),Pu(o).join(" ")};return {C:e=>o(i(e,"delete")),$:e=>o(i(e,"add")),H:e=>{const t=cd(e);return t.reduce((e,t)=>e&&n.includes(t),t.length>0)}}},md=(e,t,n)=>(fd(e,t).C(n),Qu(hd,e,t,n)),hd=(e,t,n)=>(fd(e,t).$(n),Qu(md,e,t,n)),gd=(e,t,n,o)=>(o?hd:md)(e,t,n),bd=(e,t,n)=>fd(e,t).H(n),vd=e=>fd(e,"class"),yd=(e,t)=>{vd(e).C(t);},wd=(e,t)=>(vd(e).$(t),Qu(yd,e,t)),Id=(e,t)=>{const n=t?xu(t)&&t:document;return n?Pu(n.querySelectorAll(e)):[]},Cd=(e,t)=>xu(e)&&e.matches(t),xd=e=>Cd(e,"body"),Ad=e=>e?Pu(e.childNodes):[],kd=e=>e&&e.parentElement,Sd=(e,t)=>xu(e)&&e.closest(t),Nd=e=>document.activeElement,Pd=(e,t,n)=>{const o=Sd(e,t),i=e&&((e,t)=>{const n=t?xu(t)&&t:document;return n&&n.querySelector(e)})(n,o),r=Sd(i,t)===o;return !(!o||!i)&&(o===e||i===e||r&&Sd(Sd(e,n),t)!==o)},Ed=e=>{Au(Eu(e),e=>{const t=kd(e);e&&t&&t.removeChild(e);});},Ld=(e,t)=>Qu(Ed,e&&t&&Au(Eu(t),t=>{t&&e.appendChild(t);}));let Bd;const Od=e=>{const t=document.createElement("div");return dd(t,"class",e),t},Td=e=>{const t=Od(),n=Bd,o=e.trim();return t.innerHTML=n?n.createHTML(o):o,Au(Ad(t),e=>Ed(e))},Rd=(e,t)=>e.getPropertyValue(t)||e[t]||"",Gd=e=>{const t=e||0;return isFinite(t)?t:0},Fd=e=>Gd(parseFloat(e||"")),Md=e=>Math.round(1e4*e)/1e4,Dd=e=>`${Md(Gd(e))}px`;function Wd(e,t){e&&t&&Au(t,(t,n)=>{try{const o=e.style,i=fu(t)||gu(t)?"":mu(t)?Dd(t):t;0===n.indexOf("--")?o.setProperty(n,i):o[n]=i;}catch(e){}});}function Vd(e,t,n){const o=hu(t);let i=o?"":{};if(e){const r=Ql.getComputedStyle(e,n)||e.style;i=o?Rd(r,t):Pu(t).reduce((e,t)=>(e[t]=Rd(r,t),e),i);}return i}const Hd=(e,t,n)=>{const o=t?`${t}-`:"",i=n?`-${n}`:"",r=`${o}top${i}`,a=`${o}right${i}`,s=`${o}bottom${i}`,c=`${o}left${i}`,l=Vd(e,[r,a,s,c]);return {t:Fd(l[r]),r:Fd(l[a]),b:Fd(l[s]),l:Fd(l[c])}},zd=(e,t)=>"translate"+(yu(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`),Xd={w:0,h:0},Zd=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:Xd,jd=e=>Zd("inner",e||Ql),Jd=Qu(Zd,"offset"),Yd=Qu(Zd,"client"),$d=Qu(Zd,"scroll"),_d=e=>{const t=parseFloat(Vd(e,zu))||0,n=parseFloat(Vd(e,Xu))||0;return {w:t-eu(t),h:n-eu(n)}},Ud=e=>e.getBoundingClientRect(),Qd=e=>!(!e||!e[Xu]&&!e[zu]),Kd=(e,t)=>{const n=Qd(e);return !Qd(t)&&n},qd=(e,t,n,o)=>{Au(cd(t),t=>{e&&e.removeEventListener(t,n,o);});},ep=(e,t,n,o)=>{var i;const r=null==(i=o&&o.I)||i,a=o&&o.A||!1,s=o&&o.T||!1,c={passive:r,capture:a};return Qu(Ou,cd(t).map(t=>{const o=s?i=>{qd(e,t,o,a),n&&n(i);}:n;return e&&e.addEventListener(t,o,c),Qu(qd,e,t,o,a)}))},tp=e=>e.stopPropagation(),np=e=>e.preventDefault(),op=e=>tp(e)||np(e),ip=(e,t)=>{const{x:n,y:o}=mu(t)?{x:t,y:t}:t||{};mu(n)&&(e.scrollLeft=n),mu(o)&&(e.scrollTop=o);},rp=e=>({x:e.scrollLeft,y:e.scrollTop}),ap=(e,t)=>{const{D:n,M:o}=e,{w:i,h:r}=t,a=(e,t,n)=>{let o=nu(e)*n,i=nu(t)*n;if(o===i){const n=tu(e),r=tu(t);i=n>r?0:i,o=n<r?0:o;}return o=o===i?0:o,[o+0,i+0]},[s,c]=a(n.x,o.x,i),[l,u]=a(n.y,o.y,r);return {D:{x:s,y:l},M:{x:c,y:u}}},sp=({D:e,M:t})=>{const n=(e,t)=>0===e&&e<=t;return {x:n(e.x,t.x),y:n(e.y,t.y)}},cp=({D:e,M:t},n)=>{const o=(e,t,n)=>sd(0,1,(e-n)/(e-t)||0);return {x:o(e.x,t.x,n.x),y:o(e.y,t.y,n.y)}},lp=e=>{e&&e.focus&&e.focus({preventScroll:!0,focusVisible:!1});},up=(e,t)=>{Au(Eu(t),e);},dp=e=>{const t=new Map,n=(e,n)=>{if(e){const o=t.get(e);up(e=>{o&&o[e?"delete":"clear"](e);},n);}else t.forEach(e=>{e.clear();}),t.clear();},o=(e,i)=>{if(hu(e)){const o=t.get(e)||new Set;return t.set(e,o),up(e=>{bu(e)&&o.add(e);},i),Qu(n,e,i)}gu(i)&&i&&n();const r=nd(e),a=[];return Au(r,t=>{const n=e[t];n&&Nu(a,o(t,n));}),Qu(Ou,a)};return o(e||{}),[o,n,(e,n)=>{Au(Pu(t.get(e)),e=>{n&&!Lu(n)?e.apply(0,n):e();});}]},pp={},fp={},mp=(e,t,n)=>nd(e).map(o=>{const{static:i,instance:r}=e[o],[a,s,c]=n||[],l=n?r:i;if(l){const e=n?l(a,s,t):l(t);return (c||fp)[o]=e}}),hp=e=>fp[e],gp="data-overlayscrollbars",bp="os-environment",vp=`${bp}-scrollbar-hidden`,yp=`${gp}-initialize`,wp="noClipping",Ip=`${gp}-body`,Cp=gp,xp=`${gp}-viewport`,Ap=Vu,kp=Hu,Sp="measuring",Np="scrollbarHidden",Pp=`${gp}-padding`,Ep=`${gp}-content`,Lp="os-size-observer",Bp=`${Lp}-appear`,Op=`${Lp}-listener`,Tp="os-scrollbar",Rp=`${Tp}-rtl`,Gp=`${Tp}-horizontal`,Fp=`${Tp}-vertical`,Mp=`${Tp}-track`,Dp=`${Tp}-handle`,Wp=`${Tp}-visible`,Vp=`${Tp}-cornerless`,Hp=`${Tp}-interaction`,zp=`${Tp}-unusable`,Xp=`${Tp}-auto-hide`,Zp=`${Xp}-hidden`,jp=`${Tp}-wheel`,Jp=`${Mp}-interactive`,Yp=`${Dp}-interactive`,$p=e=>0===e.indexOf(Zu),_p=(e,t)=>{if("auto"===e)return t?Ju:ju;const n=e||ju;return [ju,Ju,Zu].includes(n)?n:ju},Up=(e,t)=>{const{overflowX:n,overflowY:o}=Vd(e,[Vu,Hu]);return {x:_p(n,t.x),y:_p(o,t.y)}},Qp="__osScrollbarsHidingPlugin",Kp=e=>JSON.stringify(e,(e,t)=>{if(bu(t))throw 0;return t}),qp=(e,t)=>e?`${t}`.split(".").reduce((e,t)=>e&&td(e,t)?e[t]:void 0,e):void 0,ef=[33,99],tf=[222,666,!0],nf={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:[0,33],resize:null,event:ef,env:tf},attributes:null,ignoreMutation:null,flowDirectionStyles:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},of=(e,t)=>{const n={};return Au(Su(nd(t),nd(e)),o=>{const i=e[o],r=t[o];if(yu(i)&&yu(r))od(n[o]={},of(i,r)),rd(n[o])&&delete n[o];else if(td(t,o)&&r!==i){let e=!0;if(vu(i)||vu(r))try{Kp(i)===Kp(r)&&(e=!1);}catch(e){}e&&(n[o]=r);}}),n},rf=(e,t,n)=>o=>[qp(e,o),n||void 0!==qp(t,o)];let af;let sf;const cf=()=>{const e=(e,t,n)=>{Ld(document.body,e),Ld(document.body,e);const o=Yd(e),i=Jd(e),r=_d(t);return n&&Ed(e),{x:i.h-o.h+r.h,y:i.w-o.w+r.w}},t=Td(`<div class="${bp}"><div></div><style>${`.${bp}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${bp} div{width:200%;height:200%;margin:10px 0}.${vp}{scrollbar-width:none!important}.${vp}::-webkit-scrollbar,.${vp}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0],n=t.firstChild,o=t.lastChild,i=af;i&&(o.nonce=i);const[r,,a]=dp(),[s,c]=Ul({o:e(t,n),i:_u},Qu(e,t,n,!0)),[l]=c(),u=(e=>{let t=!1;const n=wd(e,vp);try{t="none"===Vd(e,"scrollbar-width")||"none"===Vd(e,"display","::-webkit-scrollbar");}catch(e){}return n(),t})(t),d={x:0===l.x,y:0===l.y},p={elements:{host:null,padding:!u,viewport:e=>u&&xd(e)&&e,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},f=od({},nf),m=Qu(od,{},f),h=Qu(od,{},p),g={P:l,k:d,U:u,J:!!du,G:Qu(r,"r"),K:h,Z:e=>od(p,e)&&h(),tt:m,nt:e=>od(f,e)&&m(),ot:od({},p),st:od({},f)};if(pd(t,"style"),Ed(t),ep(Ql,"resize",()=>{a("r",[]);}),bu(Ql.matchMedia)&&!u&&(!d.x||!d.y)){const e=t=>{const n=Ql.matchMedia(`(resolution: ${Ql.devicePixelRatio}dppx)`);ep(n,"change",()=>{t(),e(t);},{T:!0});};e(()=>{const[e,t]=s();od(g.P,e),a("r",[t]);});}return g},lf=()=>(sf||(sf=cf()),sf),uf=(e,t,n,o)=>{let i=!1;const{et:r,ct:a,rt:s,it:c,lt:l,ut:u}=o||{},[d,p]=((e,t,n)=>{let o=!1;const i=!!n&&new WeakMap,r=r=>{if(i&&n){const a=n.map(t=>{const[n,o]=t||[];return [o&&n?(r||Id)(n,e):[],o]});Au(a,n=>Au(n[0],r=>{const a=n[1],s=i.get(r)||[];if(e.contains(r)&&a){const e=ep(r,a,n=>{o?(e(),i.delete(r)):t(n);});i.set(r,Nu(s,e));}else Ou(s),i.delete(r);}));}};return r(),[()=>{o=!0;},r]})(e,()=>i&&n(!0),s),f=a||[],m=Su(r||[],f),h=(i,r)=>{if(!Lu(r)){const a=l||ad,s=u||ad,d=[],m=[];let h=!1,g=!1;if(Au(r,n=>{const{attributeName:i,target:r,type:l,oldValue:u,addedNodes:p,removedNodes:b}=n,v="attributes"===l,y="childList"===l,w=e===r,I=v&&i,C=I&&ld(r,i||""),x=hu(C)?C:null,A=I&&u!==x,k=ku(f,i)&&A;if(t&&(y||!w)){const t=v&&A,l=t&&c&&Cd(r,c),f=(l?!a(r,i,u,x):!v||t)&&!s(n,!!l,e,o);Au(p,e=>Nu(d,e)),Au(b,e=>Nu(d,e)),g=g||f;}!t&&w&&A&&!a(r,i,u,x)&&(Nu(m,i),h=h||k);}),p(e=>Bu(d).reduce((t,n)=>(Nu(t,Id(e,n)),Cd(n,e)?Nu(t,n):t),[])),t)return !i&&g&&n(!1),[!1];if(!Lu(m)||h){const e=[Bu(m),h];return i||n.apply(0,e),e}}},g=new cu(Qu(h,!1));return [()=>(g.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:m,subtree:t,childList:t,characterData:t}),i=!0,()=>{i&&(d(),g.disconnect(),i=!1);}),()=>{if(i)return h(!0,g.takeRecords())}]};let df=null;const pf=(e,t,n)=>{const{ft:o}=n||{},i=hp("__osSizeObserverPlugin"),[r]=Ul({o:!1,u:!0});return ()=>{const n=[],a=Td(`<div class="${Lp}"><div class="${Op}"></div></div>`)[0],s=a.firstChild,c=e=>{let n=!1,o=!1;if(vu(e)&&!Lu(e)){const t=e[0],[i,,a]=r(t.contentRect),s=Qd(i);o=Kd(i,a),n=!o&&!s;}else o=!0===e;n||t({_t:!0,ft:o});};if(uu){if(!gu(df)){const t=new uu(ad);t.observe(e,{get box(){df=!0;}}),df=df||!1,t.disconnect();}const t=ed(c,{p:0,v:0}),o=e=>t(e),i=new uu(o);if(i.observe(df?e:s),Nu(n,[()=>{i.disconnect();},!df&&Ld(e,a)]),df){const t=new uu(o);t.observe(e,{box:"border-box"}),Nu(n,()=>t.disconnect());}}else {if(!i)return ad;{const[t,r]=i(s,c,o);Nu(n,Su([wd(a,Bp),ep(a,"animationstart",t),Ld(e,a)],r));}}return Qu(Ou,n)}},ff=(e,t)=>{let n;const o=Od("os-trinsic-observer"),[i]=Ul({o:!1}),r=(e,n)=>{if(e){const o=i((e=>0===e.h||e.isIntersecting||e.intersectionRatio>0)(e)),[,r]=o;return r&&!n&&t(o)&&[o]}},a=(e,t)=>r(t.pop(),e);return [()=>{const t=[];if(lu)n=new lu(Qu(a,!1),{root:e}),n.observe(o),Nu(t,()=>{n.disconnect();});else {const e=()=>{const e=Jd(o);r(e);};Nu(t,pf(o,e)()),e();}return Qu(Ou,Nu(t,Ld(e,o)))},()=>n&&a(!0,n.takeRecords())]},mf=(e,t,n,o)=>{let i,r,a,s,c,l,u,d;const p=`[${Cp}]`,f=`[${xp}]`,m=["id","class","style","open","wrap","cols","rows"],{dt:h,vt:g,L:b,gt:v,ht:y,V:w,bt:I,wt:C,yt:x,St:A}=e,k=e=>"rtl"===Vd(e,"direction"),S={Ot:!1,B:k(h)},N=lf(),P=hp(Qp),[E]=Ul({i:$u,o:{w:0,h:0}},()=>{const o=P&&P.R(e,t,S,N,n).Y,i=!(I&&w)&&bd(g,Cp,wp),r=!w&&C("arrange"),a=r&&rp(v),s=a&&A(),c=x(Sp,i),l=r&&o&&o(),u=$d(b),d=_d(b);return l&&l(),ip(v,a),s&&s(),i&&c(),{w:u.w+d.w,h:u.h+d.h}}),L=(()=>{let e,t,n;const i=ed(o,{p:()=>e,v:()=>t,S:()=>n,m(e,t){const[n]=e,[o]=t;return [Su(nd(n),nd(o)).reduce((e,t)=>(e[t]=n[t]||o[t],e),{})]}}),r=(o,r)=>{if(vu(r)){const[o,i,a]=r;e=o,t=i,n=a;}else mu(r)?(e=r,t=!1,n=!1):(e=!1,t=!1,n=!1);i(o);};return r.O=i.O,r})(),B=e=>{const t=k(h);od(e,{Ct:d!==t}),od(S,{B:t}),d=t;},O=(e,t)=>{const[n,i]=e,r={$t:i};return od(S,{Ot:n}),t||o(r),r},T=({_t:e,ft:t})=>{const n=t?o:L,i={_t:e||t,ft:t};B(i),n(i,r);},R=(e,t)=>{const[,n]=E(),o={xt:n};return B(o),n&&!t&&L(o,e?a:i),o},G=(e,t,n)=>{const o={Ht:t};return B(o),t&&!n&&L(o,i),o},[F,M]=y?ff(g,O):[],D=!w&&pf(g,T,{ft:!0}),[W,V]=uf(g,!1,G,{ct:m,et:m}),H=w&&uu&&new uu(e=>{const t=e[e.length-1].contentRect;T({_t:!0,ft:Kd(t,u)}),u=t;});return [()=>{H&&H.observe(g);const e=D&&D(),t=F&&F(),n=W(),o=N.G(e=>{const[,t]=E();L({Et:e,xt:t,_t:I},s);});return ()=>{H&&H.disconnect(),e&&e(),t&&t(),l&&l(),n(),o();}},({zt:e,It:t,At:n})=>{const o={},[u]=e("update.ignoreMutation"),[d,h]=e("update.attributes"),[g,v]=e("update.elementEvents"),[I,C]=e("update.debounce"),x=t||n;if(v||h){c&&c(),l&&l();const[e,t]=uf(y||b,!0,R,{et:Su(m,d||[]),rt:g,it:p,ut:(e,t)=>{const{target:n,attributeName:o}=e;return !(t||!o||w)&&Pd(n,p,f)||!!Sd(n,`.${Tp}`)||!!(e=>bu(u)&&u(e))(e)}});l=e(),c=t;}if(C&&(L.O(),vu(I)||mu(I)?(i=I,r=!1,a=ef,s=tf):Iu(I)?(i=I.mutation,r=I.resize,a=I.event,s=I.env):(i=!1,r=!1,a=!1,s=!1)),x){const e=V(),t=M&&M(),n=c&&c();e&&od(o,G(e[0],e[1],x)),t&&od(o,O(t[0],x)),n&&od(o,R(n[0],x));}return B(o),o},S]},hf=(e,t)=>bu(t)?t.apply(0,e):t,gf=(e,t,n,o)=>{const i=pu(o)?n:o;return hf(e,i)||t.apply(0,e)},bf=(e,t,n,o)=>{const i=pu(o)?n:o,r=hf(e,i);return !!r&&(Cu(r)?r:t.apply(0,e))},vf=(e,t,n,o)=>{const i="--os-viewport-percent",r="--os-scroll-percent",a="--os-scroll-direction",{K:s}=lf(),{scrollbars:c}=s(),{slot:l}=c,{dt:u,vt:d,L:p,Tt:f,gt:m,bt:h,V:g}=t,{scrollbars:b}=f?{}:e,{slot:v}=b||{},y=[],w=[],I=[],C=bf([u,d,p],()=>g&&h?u:d,l,v),x=e=>{if(du){let t=null,o=[];const i=new du({source:m,axis:e}),r=()=>{t&&t.cancel(),t=null;},a=a=>{const{Dt:s}=n,c=sp(s)[e],l="x"===e,u=[zd(0,l),zd(`calc(-100% + 100cq${l?"w":"h"})`,l)],d=c?u:u.reverse();return o[0]===d[0]&&o[1]===d[1]||(o=d,r(),t=a.Mt.animate({clear:["left"],transform:d},{timeline:i})),r};return {kt:a}}},A={x:x("x"),y:x("y")},k=(e,t,n)=>{const o=n?wd:yd;Au(e,e=>{o(e.Lt,t);});},S=(e,t)=>{Au(e,e=>{const[n,o]=t(e);Wd(n,o);});},N=(e,t,n)=>{const o=gu(n),i=!o||!n;(!o||n)&&k(w,e,t),i&&k(I,e,t);},P=e=>{const t=e?"x":"y",n=Od(`${Tp} ${e?Gp:Fp}`),i=Od(Mp),r=Od(Dp),a={Lt:n,Ut:i,Mt:r},s=A[t];return Nu(e?w:I,a),Nu(y,[Ld(n,i),Ld(i,r),Qu(Ed,n),s&&s.kt(a),o(a,N,e)]),a},E=Qu(P,!0),L=Qu(P,!1);return E(),L(),[{Pt:()=>{const e=(()=>{const{Rt:e,Vt:t}=n,o=(e,t)=>sd(0,1,e/(e+t)||0);return {x:o(t.x,e.x),y:o(t.y,e.y)}})(),t=e=>t=>[t.Lt,{[i]:Md(e)+""}];S(w,t(e.x)),S(I,t(e.y));},Nt:()=>{if(!du){const{Dt:e}=n,t=cp(e,rp(m)),o=e=>t=>[t.Lt,{[r]:Md(e)+""}];S(w,o(t.x)),S(I,o(t.y));}},qt:()=>{const{Dt:e}=n,t=sp(e),o=e=>t=>[t.Lt,{[a]:e?"0":"1"}];S(w,o(t.x)),S(I,o(t.y)),du&&(w.forEach(A.x.kt),I.forEach(A.y.kt));},Bt:()=>{if(g&&!h){const{Rt:e,Dt:t}=n,o=sp(t),i=cp(t,rp(m)),r=t=>{const{Lt:n}=t,r=kd(n)===p&&n,a=(e,t,n)=>{const o=t*e;return Dd(n?o:-o)};return [r,r&&{transform:zd({x:a(i.x,e.x,o.x),y:a(i.y,e.y,o.y)})}]};S(w,r),S(I,r);}},Ft:N,jt:{Xt:w,Yt:E,Wt:Qu(S,w)},Jt:{Xt:I,Yt:L,Wt:Qu(S,I)}},()=>(Ld(C,w[0].Lt),Ld(C,I[0].Lt),Qu(Ou,y))]},yf=(e,t,n,o)=>(i,r,a)=>{const{vt:s,L:c,V:l,gt:u,Gt:d,St:p}=t,{Lt:f,Ut:m,Mt:h}=i,[g,b]=Ku(333),[v,y]=Ku(444),w=e=>{bu(u.scrollBy)&&u.scrollBy({behavior:"smooth",left:e.x,top:e.y});};let I=!0;return Qu(Ou,[ep(h,"pointermove pointerleave",o),ep(f,"pointerenter",()=>{r(Hp,!0);}),ep(f,"pointerleave pointercancel",()=>{r(Hp,!1);}),!l&&ep(f,"mousedown",()=>{const e=Nd();(ud(e,xp)||ud(e,Cp)||e===document.body)&&ru(Qu(lp,c),25);}),ep(f,"wheel",e=>{const{deltaX:t,deltaY:n,deltaMode:o}=e;I&&0===o&&kd(f)===s&&w({x:t,y:n}),I=!1,r(jp,!0),g(()=>{I=!0,r(jp);}),np(e);},{I:!1,A:!0}),ep(f,"pointerdown",()=>{const e=ep(d,"click",e=>{t(),op(e);},{T:!0,A:!0,I:!1}),t=ep(d,"pointerup pointercancel",()=>{t(),setTimeout(e,150);},{A:!0,I:!0});},{A:!0,I:!0}),(()=>{const t="pointerup pointercancel lostpointercapture",o="client"+(a?"X":"Y"),i=a?zu:Xu,r=a?"left":"top",s=a?"w":"h",c=a?"x":"y",l=(e,t)=>o=>{const{Rt:i}=n,r=Jd(m)[s]-Jd(h)[s],a=t*o/r*i[c];ip(u,{[c]:e+a});},f=[];return ep(m,"pointerdown",n=>{const a=Sd(n.target,`.${Dp}`)===h,g=a?h:m,b=e.scrollbars,I=b[a?"dragScroll":"clickScroll"],{button:C,isPrimary:x,pointerType:A}=n,{pointers:k}=b;if(0===C&&x&&I&&(k||[]).includes(A)){Ou(f),y();const e=!a&&(n.shiftKey||"instant"===I),b=Qu(Ud,h),C=Qu(Ud,m),x=(e,t)=>(e||b())[r]-(t||C())[r],A=eu(Ud(u)[i])/Jd(u)[s]||1,k=l(rp(u)[c],1/A),S=n[o],N=b(),P=C(),E=N[i],L=x(N,P)+E/2,B=S-P[r],O=a?0:B-L,T=e=>{Ou(F),g.releasePointerCapture(e.pointerId);},R=a||e,G=p(),F=[ep(d,t,T),ep(d,"selectstart",e=>np(e),{I:!1}),ep(m,t,T),R&&ep(m,"pointermove",e=>k(O+(e[o]-S))),R&&(()=>{const e=rp(u);G();const t=rp(u),n={x:t.x-e.x,y:t.y-e.y};(tu(n.x)>3||tu(n.y)>3)&&(p(),ip(u,e),w(n),v(G));})];if(g.setPointerCapture(n.pointerId),e)k(O);else if(!a){const e=hp("__osClickScrollPlugin");if(e){const t=e(k,O,E,e=>{e?G():Nu(F,G);});Nu(F,t),Nu(f,Qu(t,!0));}}}})})(),b,y])},wf=e=>{const t=lf(),{K:n,U:o}=t,{elements:i}=n(),{padding:r,viewport:a,content:s}=i,c=Cu(e),l=c?{}:e,{elements:u}=l,{padding:d,viewport:p,content:f}=u||{},m=c?e:l.target,h=xd(m),g=m.ownerDocument,b=g.documentElement,v=()=>g.defaultView||Ql,y=Qu(gf,[m]),w=Qu(bf,[m]),I=Qu(Od,""),C=Qu(y,I,a),x=Qu(w,I,s),A=C(p),k=A===m,S=k&&h,N=!k&&x(f),P=!k&&A===N,E=S?b:A,L=S?E:m,B=!k&&w(I,r,d),O=!P&&N,T=[O,E,B,L].map(e=>Cu(e)&&!kd(e)&&e),R=e=>e&&ku(T,e),G=!R(E)&&(e=>{const t=Jd(e),n=$d(e),o=Vd(e,Vu),i=Vd(e,Hu);return n.w-t.w>0&&!$p(o)||n.h-t.h>0&&!$p(i)})(E)?E:m,F=S?b:E,M={dt:m,vt:L,L:E,rn:B,ht:O,gt:F,Kt:S?g:E,ln:h?b:G,Gt:g,bt:h,Tt:c,V:k,an:v,wt:e=>bd(E,xp,e),yt:(e,t)=>gd(E,xp,e,t),St:()=>gd(F,xp,"scrolling",!0)},{dt:D,vt:W,rn:V,L:H,ht:z}=M,X=[()=>{pd(W,[Cp,yp]),pd(D,yp),h&&pd(b,[yp,Cp]);}];let Z=Ad([z,H,V,W,D].find(e=>e&&!R(e)));const j=S?D:z||H,J=Qu(Ou,X);return [M,()=>{const e=v(),t=Nd(),n=e=>{Ld(kd(e),Ad(e)),Ed(e);},i=e=>ep(e,"focusin focusout focus blur",op,{A:!0,I:!1}),r="tabindex",a=ld(H,r),s=i(t);return dd(W,Cp,k?"":"host"),dd(V,Pp,""),dd(H,xp,""),dd(z,Ep,""),k||(dd(H,r,a||"-1"),h&&dd(b,Ip,"")),Ld(j,Z),Ld(W,V),Ld(V||W,!k&&H),Ld(H,z),Nu(X,[s,()=>{const e=Nd(),t=R(H),o=t&&e===H?D:e,s=i(o);pd(V,Pp),pd(z,Ep),pd(H,xp),h&&pd(b,Ip),a?dd(H,r,a):pd(H,r),R(z)&&n(z),t&&n(H),R(V)&&n(V),lp(o),s();}]),o&&!k&&(hd(H,xp,Np),Nu(X,Qu(pd,H,xp))),lp(!k&&h&&t===D&&e.top===e?H:t),s(),Z=0,J},J]},If=({ht:e})=>({Qt:t,un:n,At:o})=>{const{$t:i}=t||{},{Ot:r}=n;e&&(i||o)&&Wd(e,{[Xu]:r&&"100%"});},Cf=({vt:e,rn:t,L:n,V:o},i)=>{const[r,a]=Ul({i:Uu,o:Hd()},Qu(Hd,e,"padding",""));return ({zt:e,Qt:s,un:c,At:l})=>{let[u,d]=a(l);const{U:p}=lf(),{_t:f,xt:m,Ct:h}=s||{},{B:g}=c,[b,v]=e("paddingAbsolute");(f||d||(l||m))&&([u,d]=r(l));const y=!o&&(v||h||d);if(y){const e=!b||!t&&!p,o=u.r+u.l,r=u.t+u.b,a={[Du]:e&&!g?-o:0,[Wu]:e?-r:0,[Mu]:e&&g?-o:0,top:e?-u.t:0,right:e?g?-u.r:"auto":0,left:e?g?"auto":-u.l:0,[zu]:e&&`calc(100% + ${o}px)`},s={[Tu]:e?u.t:0,[Ru]:e?u.r:0,[Fu]:e?u.b:0,[Gu]:e?u.l:0};Wd(t||n,a),Wd(n,s),od(i,{rn:u,fn:!e,F:t?s:od({},a,s)});}return {_n:y}}},xf=(e,t)=>{const n=lf(),{vt:o,rn:i,L:r,V:a,Kt:s,gt:c,bt:l,yt:u,an:d}=e,{U:p}=n,f=l&&a,m=Qu(Kl,0),h={display:()=>!1,direction:e=>"ltr"!==e,flexDirection:e=>e.endsWith("-reverse"),writingMode:e=>"horizontal-tb"!==e},g=nd(h),b={i:$u,o:{w:0,h:0}},v={i:_u,o:{}},y=e=>{u(Sp,!f&&e);},w=()=>Vd(r,g),I=(e,t)=>{const n=!nd(e).length,o=!t&&g.some(t=>{const n=e[t];return hu(n)&&h[t](n)});if(n&&!o||!(e=>!!e&&(e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e))(r))return {D:{x:0,y:0},M:{x:1,y:1}};y(!0);const i=rp(c),a=ep(s,Ju,e=>{const t=rp(c);e.isTrusted&&t.x===i.x&&t.y===i.y&&tp(e);},{A:!0,T:!0}),l=u("noContent",!0);ip(c,{x:0,y:0}),l();const d=rp(c),p=$d(c);ip(c,{x:p.w,y:p.h});const f=rp(c),m={x:f.x-d.x,y:f.y-d.y};ip(c,{x:-p.w,y:-p.h});const b=rp(c),v={x:b.x-d.x,y:b.y-d.y},w={x:tu(m.x)>=tu(v.x)?f.x:b.x,y:tu(m.y)>=tu(v.y)?f.y:b.y};return ip(c,i),iu(()=>a()),{D:d,M:w}},C=(e,t)=>{const n=Ql.devicePixelRatio%1!=0?1:0,o={w:m(e.w-t.w),h:m(e.h-t.h)};return {w:o.w>n?o.w:0,h:o.h>n?o.h:0}},x=(e,t)=>{const n=(e,t,n,o)=>{const i=e===Zu?ju:(e=>e.replace(`${Zu}-`,""))(e),r=$p(e),a=$p(n);if(!t&&!o)return ju;if(r&&a)return Zu;if(r){return t&&o?i:t?Zu:ju}return t?i:a&&o?Zu:ju};return {x:n(t.x,e.x,t.y,e.y),y:n(t.y,e.y,t.x,e.x)}},A=e=>{const t=e=>[Zu,ju,Ju].map(t=>W(_p(t),e)),n=t(!0).concat(t()).join(" ");u(n),u(nd(e).map(t=>W(e[t],"x"===t)).join(" "),!0);},[k,S]=Ul(b,Qu(_d,r)),[N,P]=Ul(b,Qu($d,r)),[E,L]=Ul(b),[B]=Ul(v),[O,T]=Ul(b),[R]=Ul(v),[G]=Ul({i:(e,t)=>Yu(e,t,Bu(Su(nd(e),nd(t)))),o:{}}),[F,M]=Ul({i:(e,t)=>_u(e.D,t.D)&&_u(e.M,t.M),o:{D:{x:0,y:0},M:{x:0,y:0}}}),D=hp(Qp),W=(e,t)=>`${t?Ap:kp}${(e=>{const t=String(e||"");return t?t[0].toUpperCase()+t.slice(1):""})(e)}`;return ({zt:a,Qt:s,un:c,At:l},{_n:h})=>{const{_t:g,Ht:b,xt:v,Ct:W,ft:V,Et:H}=s||{},z=D&&D.R(e,t,c,n,a),{X:X,Y:Z,W:j}=z||{},[J,Y]=((e,t)=>{const{k:n}=t,[o,i]=e("showNativeOverlaidScrollbars");return [o&&n.x&&n.y,i]})(a,n),[$,_]=a("overflow"),U=$p($.x),Q=$p($.y),K=g||h||v||W||H||Y;let q=S(l),ee=P(l),te=L(l),ne=T(l);if(Y&&p&&u(Np,!J),K){bd(o,Cp,wp)&&y(!0);const e=Z&&Z(),[t]=q=k(l),[n]=ee=N(l),i=Yd(r),a=f&&jd(d()),s={w:m(n.w+t.w),h:m(n.h+t.h)},c={w:m((a?a.w:i.w+m(i.w-n.w))+t.w),h:m((a?a.h:i.h+m(i.h-n.h))+t.h)};e&&e(),ne=O(c),te=E(C(s,c),l);}const[oe,ie]=ne,[re,ae]=te,[se,ce]=ee,[le,ue]=q,[de,pe]=B({x:re.w>0,y:re.h>0}),fe=U&&Q&&(de.x||de.y)||U&&de.x&&!de.y||Q&&de.y&&!de.x,me=h||W||H||ue||ce||ie||ae||_||Y||K||b&&f,[he]=a("update.flowDirectionStyles"),[ge,be]=G(he?he(r):w(),l),ve=W||V||be||pe||l,[ye,we]=ve?F(I(ge,!!he),l):M();let Ie=x(de,$);y(!1),me&&(A(Ie),Ie=Up(r,de),j&&X&&(X(Ie,se,le),Wd(r,j(Ie))));const[Ce,xe]=R(Ie);return gd(o,Cp,wp,fe),gd(i,Pp,wp,fe),od(t,{cn:Ce,Vt:{x:oe.w,y:oe.h},Rt:{x:re.w,y:re.h},j:de,Dt:ap(ye,re)}),{sn:xe,tn:ie,nn:ae,en:we||ae}}},Af=e=>{const[t,n,o]=wf(e),i={rn:{t:0,r:0,b:0,l:0},fn:!1,F:{[Du]:0,[Wu]:0,[Mu]:0,[Tu]:0,[Ru]:0,[Fu]:0,[Gu]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},cn:{x:ju,y:ju},j:{x:!1,y:!1},Dt:{D:{x:0,y:0},M:{x:0,y:0}}},{dt:r,gt:a,V:s,St:c}=t,{U:l,k:u}=lf(),d=!l&&(u.x||u.y),p=[If(t),Cf(t,i),xf(t,i)];return [n,e=>{const t={},n=d&&rp(a),o=n&&c();return Au(p,n=>{od(t,n(e,t)||{});}),ip(a,n),o&&o(),s||ip(r,0),t},i,t,o]},kf=(e,t,n,o,i)=>{let r=!1;const a=rf(t,{}),[s,c,l,u,d]=Af(e),[p,f,m]=mf(u,l,a,e=>{y({},e);}),[h,g,,b]=((e,t,n,o,i,r)=>{let a,s,c,l,u,d=ad,p=0;const f=["mouse","pen"],m=e=>f.includes(e.pointerType),[h,g]=Ku(),[b,v]=Ku(100),[y,w]=Ku(100),[I,C]=Ku(()=>p),[x,A]=vf(e,i,o,yf(t,i,o,e=>m(e)&&R())),{vt:k,Kt:S,bt:N}=i,{Ft:P,Pt:E,Nt:L,qt:B,Bt:O}=x,T=(e,t)=>{if(C(),e)P(Zp);else {const e=Qu(P,Zp,!0);p>0&&!t?I(e):e();}},R=()=>{(c?a:l)||(T(!0),b(()=>{T(!1);}));},G=e=>{P(Xp,e,!0),P(Xp,e,!1);},F=e=>{m(e)&&(a=c,c&&T(!0));},M=[C,v,w,g,()=>d(),ep(k,"pointerover",F,{T:!0}),ep(k,"pointerenter",F),ep(k,"pointerleave",e=>{m(e)&&(a=!1,c&&T(!1));}),ep(k,"pointermove",e=>{m(e)&&s&&R();}),ep(S,"scroll",e=>{h(()=>{L(),R();}),r(e),O();})],D=hp(Qp);return [()=>Qu(Ou,Nu(M,A())),({zt:e,At:t,Qt:i,Zt:r})=>{const{tn:a,nn:f,sn:m,en:h}=r||{},{Ct:g,ft:b}=i||{},{B:v}=n,{k:w,U:I}=lf(),{cn:C,j:x}=o,[A,k]=e("showNativeOverlaidScrollbars"),[R,F]=e("scrollbars.theme"),[M,W]=e("scrollbars.visibility"),[V,H]=e("scrollbars.autoHide"),[z,X]=e("scrollbars.autoHideSuspend"),[Z]=e("scrollbars.autoHideDelay"),[j,J]=e("scrollbars.dragScroll"),[Y,$]=e("scrollbars.clickScroll"),[_,U]=e("overflow"),Q=b&&!t,K=x.x||x.y,q=a||f||h||g||t,ee=m||W||U,te=A&&w.x&&w.y,ne=!I&&!D,oe=te||ne,ie=(e,t,n)=>{const o=e.includes(Ju)&&(M===Zu||"auto"===M&&t===Ju);return P(Wp,o,n),o};if(p=Z,Q&&(z&&K?(G(!1),d(),y(()=>{d=ep(S,"scroll",Qu(G,!0),{T:!0});})):G(!0)),(k||ne)&&P("os-theme-none",oe),F&&(P(u),P(R,!0),u=R),X&&!z&&G(!0),H&&(s="move"===V,c="leave"===V,l="never"===V,T(l,!0)),J&&P(Yp,j),$&&P(Jp,!!Y),ee){const e=ie(_.x,C.x,!0),t=ie(_.y,C.y,!1);P(Vp,!(e&&t));}q&&(L(),E(),O(),h&&B(),P(zp,!x.x,!0),P(zp,!x.y,!1),P(Rp,v&&!N));},{},x]})(e,t,m,l,u,i),v=e=>nd(e).some(t=>!!e[t]),y=(e,i)=>{if(n())return !1;const{dn:a,At:s,It:l,pn:u}=e,d=a||{},p=!!s||!r,h={zt:rf(t,d,p),dn:d,At:p};if(u)return g(h),!1;const b=i||f(od({},h,{It:l})),y=c(od({},h,{un:m,Qt:b}));g(od({},h,{Qt:b,Zt:y}));const w=v(b),I=v(y),C=w||I||!rd(d)||p;return r=!0,C&&o(e,{Qt:b,Zt:y}),C};return [()=>{const{ln:e,gt:t,St:n}=u,o=rp(e),i=[p(),s(),h()],r=n();return ip(t,o),r(),Qu(Ou,i)},y,()=>({vn:m,gn:l}),{hn:u,bn:b},d]},Sf=new WeakMap,Nf=e=>Sf.get(e),Pf=(e,t,n)=>{const{tt:o}=lf(),i=Cu(e),r=i?e:e.target,a=Nf(r);if(t&&!a){let a=!1;const s=[],c={},l=e=>{const t=id(e),n=hp("__osOptionsValidationPlugin");return n?n(t,!0):t},u=od({},o(),l(t)),[d,p,f]=dp(),[m,h,g]=dp(n),b=(e,t)=>{g(e,t),f(e,t);},[v,y,w,I,C]=kf(e,u,()=>a,({dn:e,At:t},{Qt:n,Zt:o})=>{const{_t:i,Ct:r,$t:a,xt:s,Ht:c,ft:l}=n,{tn:u,nn:d,sn:p,en:f}=o;b("updated",[A,{updateHints:{sizeChanged:!!i,directionChanged:!!r,heightIntrinsicChanged:!!a,overflowEdgeChanged:!!u,overflowAmountChanged:!!d,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!f,contentMutation:!!s,hostMutation:!!c,appear:!!l},changedOptions:e||{},force:!!t}]);},e=>b("scroll",[A,e])),x=e=>{(e=>{Sf.delete(e);})(r),Ou(s),a=!0,b("destroyed",[A,e]),p(),h();},A={options(e,t){if(e){const n=t?o():{},i=of(u,od(n,l(e)));rd(i)||(od(u,i),y({dn:i}));}return od({},u)},on:m,off:(e,t)=>{e&&t&&h(e,t);},state(){const{vn:e,gn:t}=w(),{B:n}=e,{Vt:o,Rt:i,cn:r,j:s,rn:c,fn:l,Dt:u}=t;return od({},{overflowEdge:o,overflowAmount:i,overflowStyle:r,hasOverflow:s,scrollCoordinates:{start:u.D,end:u.M},padding:c,paddingAbsolute:l,directionRTL:n,destroyed:a})},elements(){const{dt:e,vt:t,rn:n,L:o,ht:i,gt:r,Kt:a}=I.hn,{jt:s,Jt:c}=I.bn,l=e=>{const{Mt:t,Ut:n,Lt:o}=e;return {scrollbar:o,track:n,handle:t}},u=e=>{const{Xt:t,Yt:n}=e,o=l(t[0]);return od({},o,{clone:()=>{const e=l(n());return y({pn:!0}),e}})};return od({},{target:e,host:t,padding:n||o,viewport:o,content:i||o,scrollOffsetElement:r,scrollEventElement:a,scrollbarHorizontal:u(s),scrollbarVertical:u(c)})},update:e=>y({At:e,It:!0}),destroy:Qu(x,!1),plugin:e=>c[nd(e)[0]]};return Nu(s,[C]),((e,t)=>{Sf.set(e,t);})(r,A),mp(pp,Pf,[A,d,c]),((e,t)=>{const{nativeScrollbarsOverlaid:n,body:o}=t||{},{k:i,U:r,K:a}=lf(),{nativeScrollbarsOverlaid:s,body:c}=a().cancel,l=null!=n?n:s,u=pu(o)?c:o,d=(i.x||i.y)&&l,p=e&&(fu(u)?!r:u);return !!d||!!p})(I.hn.bt,!i&&e.cancel)?(x(!0),A):(Nu(s,v()),b("initialized",[A]),A.update(),A)}return a};Pf.plugin=e=>{const t=vu(e),n=t?e:[e],o=n.map(e=>mp(e,Pf)[0]);return (e=>{Au(e,e=>Au(e,(t,n)=>{pp[n]=e[n];}));})(n),t?o:o[0]},Pf.valid=e=>{const t=e&&e.elements,n=bu(t)&&t();return Iu(n)&&!!Nf(n.target)},Pf.env=()=>{const{P:e,k:t,U:n,J:o,ot:i,st:r,K:a,Z:s,tt:c,nt:l}=lf();return od({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:o,staticDefaultInitialization:i,staticDefaultOptions:r,getDefaultInitialization:a,setDefaultInitialization:s,getDefaultOptions:c,setDefaultOptions:l})},Pf.nonce=e=>{af=e;},Pf.trustedTypePolicy=e=>{Bd=e;};const Ef=()=>{if(typeof window>"u"){const e=()=>{};return [e,e]}let e,t;const n=window,o="function"==typeof n.requestIdleCallback,i=n.requestAnimationFrame,r=n.cancelAnimationFrame,a=o?n.requestIdleCallback:i,s=o?n.cancelIdleCallback:r,c=()=>{s(e),r(t);};return [(n,r)=>{c(),e=a(o?()=>{c(),t=i(n);}:n,"object"==typeof r?r:{timeout:2233});},c]},Lf=e=>{const{options:t,events:n,defer:o}=e||{},[i,r]=reactExports.useMemo(Ef,[]),a=reactExports.useRef(null),s=reactExports.useRef(o),c=reactExports.useRef(t),l=reactExports.useRef(n);return reactExports.useEffect(()=>{s.current=o;},[o]),reactExports.useEffect(()=>{const{current:e}=a;c.current=t,Pf.valid(e)&&e.options(t||{},!0);},[t]),reactExports.useEffect(()=>{const{current:e}=a;l.current=n,Pf.valid(e)&&e.on(n||{},!0);},[n]),reactExports.useEffect(()=>()=>{var e;r(),null==(e=a.current)||e.destroy();},[]),reactExports.useMemo(()=>[e=>{const t=a.current;if(Pf.valid(t))return;const n=s.current,o=c.current||{},r=l.current||{},u=()=>a.current=Pf(e,o,r);n?i(u,n):u();},()=>a.current],[])};reactExports.forwardRef((e,t)=>{const{element:n="div",options:o,events:r,defer:a,children:s,...c}=e,l=n,u=reactExports.useRef(null),m=reactExports.useRef(null),[h,g]=Lf({options:o,events:r,defer:a});return reactExports.useEffect(()=>{const{current:e}=u,{current:t}=m;if(!e)return;return h("body"===n?{target:e,cancel:{body:null}}:{target:e,elements:{viewport:t,content:t}}),()=>{var e;return null==(e=g())?void 0:e.destroy()}},[h,n]),reactExports.useImperativeHandle(t,()=>({osInstance:g,getElement:()=>u.current}),[]),React.createElement(l,{"data-overlayscrollbars-initialize":"",ref:u,...c},"body"===n?s:React.createElement("div",{"data-overlayscrollbars-contents":"",ref:m},s))});const Bf=reactExports.forwardRef((t,n)=>{const{children:o,element:i="div",elementProps:r,wrapperClassName:s}=t,c=reactExports.useRef(null),l=reactExports.useRef(null),[u,f]=Lf({options:{scrollbars:{autoHide:"leave",autoHideDelay:0}},defer:!0}),m=reactExports.useCallback(e=>{l.current=e,"function"==typeof n?n(e):null!==n&&(n.current=e);},[n]);return reactExports.useEffect(()=>{if(l.current&&c.current&&(e=>!!e&&"object"==typeof e&&e.nodeType===Node.ELEMENT_NODE)(l.current))return u({target:c.current,elements:{viewport:l.current,content:!1}}),()=>f()?.destroy()},[u,f]),jsxRuntimeExports.jsx("div",{"data-overlayscrollbars-initialize":"",ref:c,className:S("io-overlay-scrollbars-container",s),children:jsxRuntimeExports.jsx(i,{"data-overlayscrollbars-contents":"",ref:m,...r,children:o})})});function Of({text:t="Label",...n}){return jsxRuntimeExports.jsx("label",{...n,children:t})}var Tf=React["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"],Rf=0,Gf=()=>Rf++,Ff=0;function Mf(e,t){void 0===t&&(t="🅰");var[n,o]=reactExports.useState(Ff?Gf:void 0);return Tf(()=>{void 0===n&&o(Rf++),Ff=1;},[]),e||(void 0===n?n:t+n)}function Df(){return ("function"==typeof reactExports.useId?reactExports.useId:Mf)()??""}const Wf=reactExports.forwardRef(({id:n,className:o,name:i="checkbox",align:r="left",label:a,checked:s,disabled:c,...l},u)=>{const d=Df(),p=n||`checkbox-${d}`,f=S("io-control-checkbox",s&&"io-control-checked",c&&"io-control-disabled",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:p,className:"io-checkbox",ref:u,name:i,tabIndex:c?-1:0,checked:s,disabled:c,"aria-checked":s,...l}),a&&jsxRuntimeExports.jsx(Of,{htmlFor:p,text:a,"data-testid":l["data-testid"]?`${l["data-testid"]}-label`:void 0})]})});Wf.displayName="Checkbox";const Vf=reactExports.forwardRef(({id:n,className:o,type:i="text",name:r="input",align:s="up",label:c,iconPrepend:l,iconPrependOnClick:u,iconAppend:d,iconAppendOnClick:p,placeholder:f,disabled:m,readOnly:h,errorMessage:g,errorDataTestId:b,...v},y)=>{const w=Df(),I=n||`input-${w}`,C=S("io-control-input",l&&"io-control-leading-icon",d&&"io-control-trailing-icon",m&&"io-control-disabled",h&&"io-control-readonly",g&&"io-control-error",s&&[`direction-${s}`],o),x=reactExports.useCallback(e=>{m?e.preventDefault():u&&u(e);},[u,m]),A=reactExports.useCallback(e=>{m?e.preventDefault():p&&p(e);},[p,m]);return jsxRuntimeExports.jsxs("div",{className:C,children:[c&&jsxRuntimeExports.jsx(Of,{htmlFor:I,text:c}),l&&jsxRuntimeExports.jsx(N,{variant:l,onClick:e=>x(e)}),jsxRuntimeExports.jsx("input",{id:I,className:"io-input",ref:y,type:i,name:r,tabIndex:0,placeholder:f??(()=>{switch(i){case"email":return "Enter your email here...";case"number":return "Enter number here...";case"password":return "Enter your password here...";case"tel":return "Enter your phone number here...";case"file":return "Select a file...";default:return "Enter text here..."}})(),"aria-label":c,disabled:m,readOnly:h,...g?{"aria-invalid":!0,"aria-describedby":`${I}-error`}:{},...v}),d&&jsxRuntimeExports.jsx(N,{variant:d,onClick:e=>A(e)}),g&&jsxRuntimeExports.jsxs("div",{"data-testid":b,id:`${I}-error`,className:"io-input-error",children:[jsxRuntimeExports.jsx(N,{variant:"close"}),g]})]})});Vf.displayName="Input";const Hf=reactExports.forwardRef(({id:n,className:o,name:i="radio",align:r="left",label:a,checked:s,disabled:c,...l},u)=>{const d=Df(),p=n||`radio-${d}`,f=S("io-control-radio",s&&"io-control-checked",c&&"io-control-disabled",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("input",{type:"radio",id:p,className:"io-radio",ref:u,name:i,tabIndex:c?-1:0,checked:s,disabled:c,"aria-checked":s,...l}),a&&jsxRuntimeExports.jsx(Of,{htmlFor:p,text:a})]})});function zf(e){return zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zf(e)}function Xf(e){var t=function(e,t){if("object"!=zf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=zf(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==zf(t)?t:t+""}function Zf(e,t,n){return (t=Xf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o);}return n}function Jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(n),!0).forEach(function(t){Zf(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function $f(e,t){if(e){if("string"==typeof e)return Yf(e,t);var n={}.toString.call(e).slice(8,-1);return "Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yf(e,t):void 0}}function _f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1;}else for(;!(c=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,i=e;}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||$f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uf(e,t){if(null==e)return {};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o];}return n}function Qf(e,t){if(null==e)return {};var n,o,i=Uf(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);}return i}Hf.displayName="Radio";var Kf=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o]);}return e},qf.apply(null,arguments)}function em(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xf(o.key),o);}}function tm(e,t){return tm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tm(e,t)}function nm(e){return nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nm(e)}function om(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(e){}return (om=function(){return !!e})()}function im(e,t){if(t&&("object"==zf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rm(e){return function(e){if(Array.isArray(e))return Yf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var am=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e);},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag);},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length);}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++;},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0;},e}(),sm="-ms-",cm="-moz-",lm="-webkit-",um="comm",dm="rule",pm="decl",fm="@keyframes",mm=Math.abs,hm=String.fromCharCode,gm=Object.assign;function bm(e){return e.trim()}function vm(e,t,n){return e.replace(t,n)}function ym(e,t){return e.indexOf(t)}function wm(e,t){return 0|e.charCodeAt(t)}function Im(e,t,n){return e.slice(t,n)}function Cm(e){return e.length}function xm(e){return e.length}function Am(e,t){return t.push(e),e}var km=1,Sm=1,Nm=0,Pm=0,Em=0,Lm="";function Bm(e,t,n,o,i,r,a){return {value:e,root:t,parent:n,type:o,props:i,children:r,line:km,column:Sm,length:a,return:""}}function Om(e,t){return gm(Bm("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tm(){return Em=Pm>0?wm(Lm,--Pm):0,Sm--,10===Em&&(Sm=1,km--),Em}function Rm(){return Em=Pm<Nm?wm(Lm,Pm++):0,Sm++,10===Em&&(Sm=1,km++),Em}function Gm(){return wm(Lm,Pm)}function Fm(){return Pm}function Mm(e,t){return Im(Lm,e,t)}function Dm(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wm(e){return km=Sm=1,Nm=Cm(Lm=e),Pm=0,[]}function Vm(e){return Lm="",e}function Hm(e){return bm(Mm(Pm-1,Zm(91===e?e+2:40===e?e+1:e)))}function zm(e){for(;(Em=Gm())&&Em<33;)Rm();return Dm(e)>2||Dm(Em)>3?"":" "}function Xm(e,t){for(;--t&&Rm()&&!(Em<48||Em>102||Em>57&&Em<65||Em>70&&Em<97););return Mm(e,Fm()+(t<6&&32==Gm()&&32==Rm()))}function Zm(e){for(;Rm();)switch(Em){case e:return Pm;case 34:case 39:34!==e&&39!==e&&Zm(Em);break;case 40:41===e&&Zm(e);break;case 92:Rm();}return Pm}function jm(e,t){for(;Rm()&&e+Em!==57&&(e+Em!==84||47!==Gm()););return "/*"+Mm(t,Pm-1)+"*"+hm(47===e?e:Rm())}function Jm(e){for(;!Dm(Gm());)Rm();return Mm(e,Pm)}function Ym(e){return Vm($m("",null,null,null,[""],e=Wm(e),0,[0],e))}function $m(e,t,n,o,i,r,a,s,c){for(var l=0,u=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",w=i,I=r,C=o,x=y;g;)switch(m=v,v=Rm()){case 40:if(108!=m&&58==wm(x,d-1)){-1!=ym(x+=vm(Hm(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:x+=Hm(v);break;case 9:case 10:case 13:case 32:x+=zm(m);break;case 92:x+=Xm(Fm()-1,7);continue;case 47:switch(Gm()){case 42:case 47:Am(Um(jm(Rm(),Fm()),t,n),c);break;default:x+="/";}break;case 123*h:s[l++]=Cm(x)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(x=vm(x,/\f/g,"")),f>0&&Cm(x)-d&&Am(f>32?Qm(x+";",o,n,d-1):Qm(vm(x," ","")+";",o,n,d-2),c);break;case 59:x+=";";default:if(Am(C=_m(x,t,n,l,u,i,s,y,w=[],I=[],d),r),123===v)if(0===u)$m(x,t,C,C,w,r,d,s,I);else switch(99===p&&110===wm(x,3)?100:p){case 100:case 108:case 109:case 115:$m(e,C,C,o&&Am(_m(e,C,C,0,0,i,s,y,i,w=[],d),I),i,I,d,s,o?w:I);break;default:$m(x,C,C,C,[""],I,0,s,I);}}l=u=f=0,h=b=1,y=x="",d=a;break;case 58:d=1+Cm(x),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Tm())continue;switch(x+=hm(v),v*h){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[l++]=(Cm(x)-1)*b,b=1;break;case 64:45===Gm()&&(x+=Hm(Rm())),p=Gm(),u=d=Cm(y=x+=Jm(Fm())),v++;break;case 45:45===m&&2==Cm(x)&&(h=0);}}return r}function _m(e,t,n,o,i,r,a,s,c,l,u){for(var d=i-1,p=0===i?r:[""],f=xm(p),m=0,h=0,g=0;m<o;++m)for(var b=0,v=Im(e,d+1,d=mm(h=a[m])),y=e;b<f;++b)(y=bm(h>0?p[b]+" "+v:vm(v,/&\f/g,p[b])))&&(c[g++]=y);return Bm(e,t,n,0===i?dm:s,c,l,u)}function Um(e,t,n){return Bm(e,t,n,um,hm(Em),Im(e,2,-2),0)}function Qm(e,t,n,o){return Bm(e,t,n,pm,Im(e,0,o),Im(e,o+1,-1),o)}function Km(e,t){for(var n="",o=xm(e),i=0;i<o;i++)n+=t(e[i],i,e,t)||"";return n}function qm(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pm:return e.return=e.return||e.value;case um:return "";case fm:return e.return=e.value+"{"+Km(e.children,o)+"}";case dm:e.value=e.props.join(",");}return Cm(n=Km(e.children,o))?e.return=e.value+"{"+n+"}":""}function eh(e){var t=xm(e);return function(n,o,i,r){for(var a="",s=0;s<t;s++)a+=e[s](n,o,i,r)||"";return a}}var th="undefined"!=typeof document,nh=function(e,t,n){for(var o=0,i=0;o=i,i=Gm(),38===o&&12===i&&(t[n]=1),!Dm(i);)Rm();return Mm(e,Pm)},oh=function(e,t){return Vm(function(e,t){var n=-1,o=44;do{switch(Dm(o)){case 0:38===o&&12===Gm()&&(t[n]=1),e[n]+=nh(Pm-1,t,n);break;case 2:e[n]+=Hm(o);break;case 4:if(44===o){e[++n]=58===Gm()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=hm(o);}}while(o=Rm());return e}(Wm(e),t))},ih=new WeakMap,rh=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ih.get(n))&&!o){ih.set(e,!0);for(var i=[],r=oh(t,i),a=n.props,s=0,c=0;s<r.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?r[s].replace(/&\f/g,a[l]):a[l]+" "+r[s];}}},ah=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="");}};function sh(e,t){switch(function(e,t){return 45^wm(e,0)?(((t<<2^wm(e,0))<<2^wm(e,1))<<2^wm(e,2))<<2^wm(e,3):0}(e,t)){case 5103:return lm+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lm+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lm+e+cm+e+sm+e+e;case 6828:case 4268:return lm+e+sm+e+e;case 6165:return lm+e+sm+"flex-"+e+e;case 5187:return lm+e+vm(e,/(\w+).+(:[^]+)/,lm+"box-$1$2"+sm+"flex-$1$2")+e;case 5443:return lm+e+sm+"flex-item-"+vm(e,/flex-|-self/,"")+e;case 4675:return lm+e+sm+"flex-line-pack"+vm(e,/align-content|flex-|-self/,"")+e;case 5548:return lm+e+sm+vm(e,"shrink","negative")+e;case 5292:return lm+e+sm+vm(e,"basis","preferred-size")+e;case 6060:return lm+"box-"+vm(e,"-grow","")+lm+e+sm+vm(e,"grow","positive")+e;case 4554:return lm+vm(e,/([^-])(transform)/g,"$1"+lm+"$2")+e;case 6187:return vm(vm(vm(e,/(zoom-|grab)/,lm+"$1"),/(image-set)/,lm+"$1"),e,"")+e;case 5495:case 3959:return vm(e,/(image-set\([^]*)/,lm+"$1$`$1");case 4968:return vm(vm(e,/(.+:)(flex-)?(.*)/,lm+"box-pack:$3"+sm+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lm+e+e;case 4095:case 3583:case 4068:case 2532:return vm(e,/(.+)-inline(.+)/,lm+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cm(e)-1-t>6)switch(wm(e,t+1)){case 109:if(45!==wm(e,t+4))break;case 102:return vm(e,/(.+:)(.+)-([^]+)/,"$1"+lm+"$2-$3$1"+cm+(108==wm(e,t+3)?"$3":"$2-$3"))+e;case 115:return ~ym(e,"stretch")?sh(vm(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==wm(e,t+1))break;case 6444:switch(wm(e,Cm(e)-3-(~ym(e,"!important")&&10))){case 107:return vm(e,":",":"+lm)+e;case 101:return vm(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lm+(45===wm(e,14)?"inline-":"")+"box$3$1"+lm+"$2$3$1"+sm+"$2box$3")+e}break;case 5936:switch(wm(e,t+11)){case 114:return lm+e+sm+vm(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lm+e+sm+vm(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lm+e+sm+vm(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lm+e+sm+e+e}return e}var ch,lh,uh,dh=th?void 0:(ch=function(){return e=function(){return {}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t;},lh=new WeakMap,function(e){if(lh.has(e))return lh.get(e);var t=ch(e);return lh.set(e,t),t}),ph=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case pm:e.return=sh(e.value,e.length);break;case fm:return Km([Om(e,{value:vm(e.value,"@","@"+lm)})],o);case dm:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return (e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Km([Om(e,{props:[vm(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Km([Om(e,{props:[vm(t,/:(plac\w+)/,":"+lm+"input-$1")]}),Om(e,{props:[vm(t,/:(plac\w+)/,":-moz-$1")]}),Om(e,{props:[vm(t,/:(plac\w+)/,sm+"input-$1")]})],o)}return ""})}}],fh=function(e){var t=e.key;if(th&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""));});}var o,i,r=e.stylisPlugins||ph,a={},s=[];th&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e);}));var c,l=[rh,ah];if(dh){var u=[qm],d=eh(l.concat(r,u)),p=dh(r)(t),f=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=Km(Ym(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};i=function(e,t,n,o){var i=t.name,r=f(e,t);return void 0===b.compat?(o&&(b.inserted[i]=!0),r):o?void(b.inserted[i]=r):r};}else {var m,h=[qm,(c=function(e){m.insert(e);},function(e){e.root||(e=e.return)&&c(e);})],g=eh(l.concat(r,h));i=function(e,t,n,o){m=n,Km(Ym(e?e+"{"+t.styles+"}":t.styles),g),o&&(b.inserted[t.name]=!0);};}var b={key:t,sheet:new am({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return b.sheet.hydrate(s),b},mh={exports:{}},hh={};/** @license React v16.13.1
1561
+ * react-is.development.js
1562
+ *
1563
+ * Copyright (c) Facebook, Inc. and its affiliates.
1564
+ *
1565
+ * This source code is licensed under the MIT license found in the
1566
+ * LICENSE file in the root directory of this source tree.
1567
+ */mh.exports=function(){if(uh)return hh;uh=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case l:case o:case r:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case f:case a:return e;default:return p}}case n:return p}}}function w(e){return y(e)===l}return hh.AsyncMode=c,hh.ConcurrentMode=l,hh.ContextConsumer=s,hh.ContextProvider=a,hh.Element=t,hh.ForwardRef=u,hh.Fragment=o,hh.Lazy=m,hh.Memo=f,hh.Portal=n,hh.Profiler=r,hh.StrictMode=i,hh.Suspense=d,hh.isAsyncMode=function(e){return w(e)||y(e)===c},hh.isConcurrentMode=w,hh.isContextConsumer=function(e){return y(e)===s},hh.isContextProvider=function(e){return y(e)===a},hh.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},hh.isForwardRef=function(e){return y(e)===u},hh.isFragment=function(e){return y(e)===o},hh.isLazy=function(e){return y(e)===m},hh.isMemo=function(e){return y(e)===f},hh.isPortal=function(e){return y(e)===n},hh.isProfiler=function(e){return y(e)===r},hh.isStrictMode=function(e){return y(e)===i},hh.isSuspense=function(e){return y(e)===d},hh.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===o||e===l||e===r||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},hh.typeOf=y,hh}();var vh=mh.exports,yh={};yh[vh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yh[vh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var wh="undefined"!=typeof document;var Ih=function(e,t,n){var o=e.key+"-"+t.name;(!1===n||!1===wh&&void 0!==e.compat)&&void 0===e.registered[o]&&(e.registered[o]=t.styles);};var Ch={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function xh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ah=/[A-Z]|^ms/g,kh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sh=function(e){return 45===e.charCodeAt(1)},Nh=function(e){return null!=e&&"boolean"!=typeof e},Ph=xh(function(e){return Sh(e)?e:e.replace(Ah,"-$&").toLowerCase()}),Eh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kh,function(e,t,n){return Bh={name:t,styles:n,next:Bh},t})}return 1===Ch[e]||Sh(e)||"number"!=typeof t||0===t?t:t+"px"};function Lh(e,t,n){if(null==n)return "";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return "";case"object":var i=n;if(1===i.anim)return Bh={name:i.name,styles:i.styles,next:Bh},i.name;var r=n;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)Bh={name:a.name,styles:a.styles,next:Bh},a=a.next;return r.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var i=0;i<n.length;i++)o+=Lh(e,t,n[i])+";";else for(var r in n){var a=n[r];if("object"!=typeof a){var s=a;Nh(s)&&(o+=Ph(r)+":"+Eh(r,s)+";");}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var c=0;c<a.length;c++)Nh(a[c])&&(o+=Ph(r)+":"+Eh(r,a[c])+";");else {var l=Lh(e,t,a);switch(r){case"animation":case"animationName":o+=Ph(r)+":"+l+";";break;default:o+=r+"{"+l+"}";}}}return o}(e,t,n);case"function":if(void 0!==e){var s=Bh,c=n(e);return Bh=s,Lh(e,t,c)}}return n}var Bh,Oh=/label:\s*([^\s;{]+)\s*(;|$)/g;function Th(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";Bh=void 0;var r=e[0];null==r||void 0===r.raw?(o=!1,i+=Lh(n,t,r)):i+=r[0];for(var a=1;a<e.length;a++){if(i+=Lh(n,t,e[a]),o)i+=r[a];}Oh.lastIndex=0;for(var s,c="";null!==(s=Oh.exec(i));)c+="-"+s[1];var l=function(e){for(var t,n=0,o=0,i=e.length;i>=4;++o,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16);}return (((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return {name:l,styles:i,next:Bh}}var Rh="undefined"!=typeof document,Gh=function(e){return e()},Fh=!!reactExports.useInsertionEffect&&reactExports.useInsertionEffect,Mh=Rh&&Fh||Gh,Dh="undefined"!=typeof document,Wh=reactExports.createContext("undefined"!=typeof HTMLElement?fh({key:"css"}):null);Wh.Provider;var Vh=function(e){return reactExports.forwardRef(function(t,n){var o=reactExports.useContext(Wh);return e(t,o,n)})};Dh||(Vh=function(e){return function(t){var n=reactExports.useContext(Wh);return null===n?(n=fh({key:"css"}),reactExports.createElement(Wh.Provider,{value:n},e(t,n))):e(t,n)}});var Hh,zh,Xh=reactExports.createContext({}),Zh={}.hasOwnProperty,jh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jh=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;Ih(t,n,i);var r=Mh(function(){return function(e,t,n){Ih(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",r=t;do{var a=e.insert(t===r?"."+o:"",r,e.sheet,!0);wh||void 0===a||(i+=a),r=r.next;}while(void 0!==r);if(!wh&&0!==i.length)return i}}(t,n,i)});if(!Dh&&void 0!==r){for(var a,s=n.name,c=n.next;void 0!==c;)s+=" "+c.name,c=c.next;return reactExports.createElement("style",((a={})["data-emotion"]=t.key+" "+s,a.dangerouslySetInnerHTML={__html:r},a.nonce=t.sheet.nonce,a))}return null},Yh=Vh(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var r=e[jh],a=[i],s="";"string"==typeof e.className?s=function(e,t,n){var o="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ");}),o}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var c=Th(a,void 0,reactExports.useContext(Xh));s+=t.key+"-"+c.name;var l={};for(var u in e)Zh.call(e,u)&&"css"!==u&&u!==jh&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Jh,{cache:t,serialized:c,isStringTag:"string"==typeof r}),reactExports.createElement(r,l))}),$h=Yh,_h=function(e,t){var n=arguments;if(null==t||!Zh.call(t,"css"))return reactExports.createElement.apply(void 0,n);var i=n.length,r=new Array(i);r[0]=$h,r[1]=function(e,t){var n={};for(var o in t)Zh.call(t,o)&&(n[o]=t[o]);return n[jh]=e,n}(e,t);for(var a=2;a<i;a++)r[a]=n[a];return reactExports.createElement.apply(null,r)};function Uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Th(t)}Hh=_h||(_h={}),zh||(zh=Hh.JSX||(Hh.JSX={}));var Qh="undefined"!=typeof document?reactExports.useLayoutEffect:function(){},Kh=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],qh=function(){};function eg(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function tg(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(eg(e,a)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var ng=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===zf(e)&&null!==e?[e]:[];var t;},og=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Jf({},Qf(e,Kh))},ig=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,a=e.className;return {css:i(t,e),className:o(null!=n?n:{},r(t,e),a)}};function rg(e){return [document.documentElement,document.body,window].indexOf(e)>-1}function ag(e){return rg(e)?window.pageYOffset:e.scrollTop}function sg(e,t){rg(e)?window.scrollTo(0,t):e.scrollTop=t;}function cg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qh,i=ag(e),r=t-i,a=0;!function t(){var s=function(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}(a+=10,i,r,n);sg(e,s),a<n?window.requestAnimationFrame(t):o(e);}();}function lg(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?sg(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&sg(e,Math.max(t.offsetTop-i,0));}function ug(){try{return document.createEvent("TouchEvent"),!0}catch(e){return !1}}var dg=!1,pg={get passive(){return dg=!0}},fg="undefined"!=typeof window?window:{};fg.addEventListener&&fg.removeEventListener&&(fg.addEventListener("p",qh,pg),fg.removeEventListener("p",qh,!1));var mg=dg;function hg(e){return null!=e}function gg(e,t,n){return e?t:n}var bg=["children","innerProps"],vg=["children","innerProps"];function yg(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var u,d=c.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,h=p.top,g=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:rg(u=c)?window.innerHeight:u.clientHeight,v=ag(c),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),I=g-w,C=b-h,x=I+v,A=d-v-h,k=f-b+v+y,S=v+h-w,N=160;switch(i){case"auto":case"bottom":if(C>=m)return {placement:"bottom",maxHeight:t};if(A>=m&&!a)return r&&cg(c,k,N),{placement:"bottom",maxHeight:t};if(!a&&A>=o||a&&C>=o)return r&&cg(c,k,N),{placement:"bottom",maxHeight:a?C-y:A-y};if("auto"===i||a){var P=t,E=a?I:x;return E>=o&&(P=Math.min(E-y-s,t)),{placement:"top",maxHeight:P}}if("bottom"===i)return r&&sg(c,k),{placement:"bottom",maxHeight:t};break;case"top":if(I>=m)return {placement:"top",maxHeight:t};if(x>=m&&!a)return r&&cg(c,S,N),{placement:"top",maxHeight:t};if(!a&&x>=o||a&&I>=o){var L=t;return (!a&&x>=o||a&&I>=o)&&(L=a?I-w:x-w),r&&cg(c,S,N),{placement:"top",maxHeight:L}}return {placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}var wg,Ig=function(e){return "auto"===e?"bottom":e},Cg=reactExports.createContext(null),xg=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,r=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,u=(reactExports.useContext(Cg)||{}).setPortalPlacement,p=reactExports.useRef(null),f=_f(reactExports.useState(o),2),m=f[0],h=f[1],g=_f(reactExports.useState(null),2),b=g[0],v=g[1],y=s.spacing.controlHeight;return Qh(function(){var e=p.current;if(e){var t="fixed"===r,s=yg({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});h(s.maxHeight),v(s.placement),null==u||u(s.placement);}},[o,i,r,a,n,u,y]),t({ref:p,placerProps:Jf(Jf({},e),{},{placement:b||Ig(i),maxHeight:m})})},Ag=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return _h("div",qf({},ig(e,"menu",{menu:!0}),{ref:n},o),t)},kg=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return Jf({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Sg=kg,Ng=kg,Pg=["size"],Eg=["innerProps","isRtl","size"];var Lg={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Bg=function(e){var t=e.size,n=Qf(e,Pg);return _h("svg",qf({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Lg},n))},Og=function(e){return _h(Bg,qf({size:20},e),_h("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Tg=function(e){return _h(Bg,qf({size:20},e),_h("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Rg=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return Jf({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i,":hover":{color:n?r.neutral80:r.neutral40}})},Gg=Rg,Fg=Rg,Mg=function(){var e=Uh.apply(void 0,arguments),t="animation-"+e.name;return {name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return "_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(wg||(wg=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Dg=function(e){var t=e.delay,n=e.offset;return _h("span",{css:Uh({animation:"".concat(Mg," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wg=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return _h("div",qf({ref:i},ig(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r,{"aria-disabled":n||void 0}),t)},Vg=["data"],Hg=function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return _h("div",qf({},ig(e,"group",{group:!0}),s),_h(r,qf({},a,{selectProps:u,theme:l,getStyles:o,getClassNames:i,cx:n}),c),_h("div",null,t))},zg=["innerRef","isDisabled","isHidden","inputClassName"],Xg={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Zg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jf({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Xg)},jg=function(e){return Jf({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Xg)},Jg=function(e){var t=e.cx,n=e.value,o=og(e),i=o.innerRef,r=o.isDisabled,a=o.isHidden,s=o.inputClassName,c=Qf(o,zg);return _h("div",qf({},ig(e,"input",{"input-container":!0}),{"data-value":n||""}),_h("input",qf({className:t({input:!0},s),ref:i,style:jg(a),disabled:r},c)))},Yg=function(e){var t=e.children,n=e.innerProps;return _h("div",n,t)};var $g=function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,r=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return _h(c,{data:o,innerProps:Jf(Jf({},ig(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),i),selectProps:s},_h(l,{data:o,innerProps:Jf({},ig(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),_h(u,{data:o,innerProps:Jf(Jf({},ig(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},_g=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,a=e.innerProps;return _h("div",qf({},ig(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},a),t)},Ug=function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return _h("div",qf({},ig(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},Qg={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||_h(Og,null))},Control:Wg,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||_h(Tg,null))},DownChevron:Tg,CrossIcon:Og,Group:Hg,GroupHeading:function(e){var t=og(e);t.data;var n=Qf(t,Vg);return _h("div",qf({},ig(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return _h("span",qf({},t,ig(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Jg,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,i=void 0===o?4:o,r=Qf(e,Eg);return _h("div",qf({},ig(Jf(Jf({},r),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),_h(Dg,{delay:0,offset:n}),_h(Dg,{delay:160,offset:!0}),_h(Dg,{delay:320,offset:!n}))},Menu:Ag,MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return _h("div",qf({},ig(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,r=e.menuPlacement,s=e.menuPosition,c=reactExports.useRef(null),p=reactExports.useRef(null),f=_f(reactExports.useState(Ig(r)),2),m=f[0],h=f[1],g=reactExports.useMemo(function(){return {setPortalPlacement:h}},[]),b=_f(reactExports.useState(null),2),v=b[0],y=b[1],w=reactExports.useCallback(function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return {bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===s?0:window.pageYOffset,n=e[m]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||y({offset:n,rect:e});}},[o,s,m,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Qh(function(){w();},[w]);var C=reactExports.useCallback(function(){"function"==typeof p.current&&(p.current(),p.current=null),o&&c.current&&(p.current=un(o,c.current,w,{elementResize:"ResizeObserver"in window}));},[o,w]);Qh(function(){C();},[C]);var x=reactExports.useCallback(function(e){c.current=e,C();},[C]);if(!t&&"fixed"!==s||!v)return null;var A=_h("div",qf({ref:x},ig(Jf(Jf({},e),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),i),n);return _h(Cg.Provider,{value:g},t?reactDomExports.createPortal(A,t):A)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,i=Qf(e,vg);return _h("div",qf({},ig(Jf(Jf({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,i=Qf(e,bg);return _h("div",qf({},ig(Jf(Jf({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:$g,MultiValueContainer:Yg,MultiValueLabel:Yg,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({role:"button"},n),t||_h(Og,{size:14}))},Option:_g,Placeholder:function(e){var t=e.children,n=e.innerProps;return _h("div",qf({},ig(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return _h("div",qf({},ig(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},SingleValue:Ug,ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return _h("div",qf({},ig(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)}},Kg=Number.isNaN||function(e){return "number"==typeof e&&e!=e};function qg(e,t){return e===t||!(!Kg(e)||!Kg(t))}function eb(e,t){if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(!qg(e[n],t[n]))return !1;return !0}for(var tb={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},nb=function(e){return _h("span",qf({css:tb},e))},ob={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,i=e.context,r=e.isInitialFocus;switch(i){case"menu":return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return ""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return "option ".concat(o,", deselected.");case"clear":return "All selected options have been cleared.";case"initial-input-focus":return "option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return "option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return ""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return "value ".concat(r," focused, ").concat(u(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",p="".concat(c?" selected":"").concat(d);return "".concat(r).concat(p,", ").concat(u(o,n),".")}return ""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return "".concat(n).concat(t?" for search term "+t:"",".")}},ib=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,r=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,l=e.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,m=s.isMulti,g=s.isOptionDisabled,b=s.isSearchable,v=s.menuIsOpen,y=s.options,w=s.screenReaderStatus,I=s.tabSelectsValue,C=s.isLoading,x=s["aria-label"],A=s["aria-live"],k=reactExports.useMemo(function(){return Jf(Jf({},ob),d||{})},[d]),S=reactExports.useMemo(function(){var e,n="";if(t&&k.onChange){var o=t.option,i=t.options,r=t.removedValue,s=t.removedValues,c=t.value,l=r||o||(e=c,Array.isArray(e)?null:e),u=l?p(l):"",d=i||s||void 0,f=d?d.map(p):[],m=Jf({isDisabled:l&&g(l,a),label:u,labels:f},t);n=k.onChange(m);}return n},[t,k,g,a,p]),N=reactExports.useMemo(function(){var e="",t=n||o,r=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var s={focused:t,label:p(t),isDisabled:g(t,a),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=k.onFocus(s);}return e},[n,o,p,g,k,i,a,l]),P=reactExports.useMemo(function(){var e="";if(v&&y.length&&!C&&k.onFilter){var t=w({count:i.length});e=k.onFilter({inputValue:f,resultsMessage:t});}return e},[i,f,v,k,y,w,C]),E="initial-input-focus"===(null==t?void 0:t.action),L=reactExports.useMemo(function(){var e="";if(k.guidance){var t=o?"value":v?"menu":"input";e=k.guidance({"aria-label":x,context:t,isDisabled:n&&g(n,a),isMulti:m,isSearchable:b,tabSelectsValue:I,isInitialFocus:E});}return e},[x,n,o,m,g,b,v,k,a,I,E]),B=_h(reactExports.Fragment,null,_h("span",{id:"aria-selection"},S),_h("span",{id:"aria-focused"},N),_h("span",{id:"aria-results"},P),_h("span",{id:"aria-guidance"},L));return _h(reactExports.Fragment,null,_h(nb,{id:c},E&&B),_h(nb,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},r&&!E&&B))},rb=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ab=new RegExp("["+rb.map(function(e){return e.letters}).join("")+"]","g"),sb={},cb=0;cb<rb.length;cb++)for(var lb=rb[cb],ub=0;ub<lb.letters.length;ub++)sb[lb.letters[ub]]=lb.base;var db=function(e){return e.replace(ab,function(e){return sb[e]})},pb=function(e,t){void 0===t&&(t=eb);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null;},o}(db),fb=function(e){return e.replace(/^\s+|\s+$/g,"")},mb=function(e){return "".concat(e.label," ").concat(e.value)},hb=["innerRef"];function gb(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=Object.entries(e).filter(function(e){var t=_f(e,1)[0];return !n.includes(t)});return i.reduce(function(e,t){var n=_f(t,2),o=n[0],i=n[1];return e[o]=i,e},{})}(Qf(e,hb),"onExited","in","enter","exit","appear");return _h("input",qf({ref:t},n,{css:Uh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var bb=["boxSizing","height","overflow","paddingRight","position"],vb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function yb(e){e.cancelable&&e.preventDefault();}function wb(e){e.stopPropagation();}function Ib(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1);}function Cb(){return "ontouchstart"in window||navigator.maxTouchPoints}var xb=!("undefined"==typeof window||!window.document||!window.document.createElement),Ab=0,kb={capture:!1,passive:!1};var Sb=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Nb={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pb(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,r=e.onTopLeave,s=reactExports.useRef(!1),c=reactExports.useRef(!1),l=reactExports.useRef(0),u=reactExports.useRef(null),f=reactExports.useCallback(function(e,t){if(null!==u.current){var a=u.current,l=a.scrollTop,d=a.scrollHeight,p=a.clientHeight,f=u.current,m=t>0,h=d-p-l,g=!1;h>t&&s.current&&(o&&o(e),s.current=!1),m&&c.current&&(r&&r(e),c.current=!1),m&&t>h?(n&&!s.current&&n(e),f.scrollTop=d,g=!0,s.current=!0):!m&&-t>l&&(i&&!c.current&&i(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation();}(e);}},[n,o,i,r]),m=reactExports.useCallback(function(e){f(e,e.deltaY);},[f]),h=reactExports.useCallback(function(e){l.current=e.changedTouches[0].clientY;},[]),g=reactExports.useCallback(function(e){var t=l.current-e.changedTouches[0].clientY;f(e,t);},[f]),b=reactExports.useCallback(function(e){if(e){var t=!!mg&&{passive:!1};e.addEventListener("wheel",m,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",g,t);}},[g,h,m]),v=reactExports.useCallback(function(e){e&&(e.removeEventListener("wheel",m,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",g,!1));},[g,h,m]);return reactExports.useEffect(function(){if(t){var e=u.current;return b(e),function(){v(e);}}},[t,b,v]),function(e){u.current=e;}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=reactExports.useRef({}),r=reactExports.useRef(null),s=reactExports.useCallback(function(e){if(xb){var t=document.body,n=t&&t.style;if(o&&bb.forEach(function(e){var t=n&&n[e];i.current[e]=t;}),o&&Ab<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(vb).forEach(function(e){var t=vb[e];n&&(n[e]=t);}),n&&(n.paddingRight="".concat(s,"px"));}t&&Cb()&&(t.addEventListener("touchmove",yb,kb),e&&(e.addEventListener("touchstart",Ib,kb),e.addEventListener("touchmove",wb,kb))),Ab+=1;}},[o]),c=reactExports.useCallback(function(e){if(xb){var t=document.body,n=t&&t.style;Ab=Math.max(Ab-1,0),o&&Ab<1&&bb.forEach(function(e){var t=i.current[e];n&&(n[e]=t);}),t&&Cb()&&(t.removeEventListener("touchmove",yb,kb),e&&(e.removeEventListener("touchstart",Ib,kb),e.removeEventListener("touchmove",wb,kb)));}},[o]);return reactExports.useEffect(function(){if(t){var e=r.current;return s(e),function(){c(e);}}},[t,s,c]),function(e){r.current=e;}}({isEnabled:n});return _h(reactExports.Fragment,null,n&&_h("div",{onClick:Sb,css:Nb}),t(function(e){i(e),r(e);}))}var Eb={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Lb=function(e){var t=e.name,n=e.onFocus;return _h("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Eb,value:"",onChange:function(){}})};function Bb(e){var t;return "undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ob(){return Bb(/^Mac/i)}function Tb(){return Bb(/^iPhone/i)||Bb(/^iPad/i)||Ob()&&navigator.maxTouchPoints>1}var Rb={clearIndicator:Fg,container:function(e){var t=e.isDisabled;return {label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,r=i.colors,a=i.borderRadius;return Jf({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},dropdownIndicator:Gg,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return Jf({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return {alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return Jf({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,r=i.spacing,a=i.colors;return Jf(Jf({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Zg),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,i=e.theme,r=i.colors,a=i.spacing.baseUnit;return Jf({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*a})},loadingMessage:Ng,menu:function(e,t){var n,o=e.placement,i=e.theme,r=i.borderRadius,a=i.spacing,s=i.colors;return Jf((Zf(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),Zf(n,"position","absolute"),Zf(n,"width","100%"),Zf(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return Jf({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return {left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors;return Jf({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,r=e.cropWithEllipsis;return Jf({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors,a=e.isFocused;return Jf({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:Sg,option:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.theme,a=r.spacing,s=r.colors;return Jf({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return Jf({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,r=o.colors;return Jf({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return Jf({alignItems:"center",display:o&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Gb={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Fb={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ug(),captureMenuScroll:!ug(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return !0;var o=Jf({ignoreCase:!0,ignoreAccents:!0,stringify:mb,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,r=o.ignoreAccents,a=o.stringify,s=o.trim,c=o.matchFrom,l=s?fb(n):n,u=s?fb(a(t)):a(t);return i&&(l=l.toLowerCase(),u=u.toLowerCase()),r&&(l=pb(l),u=db(u)),"start"===c?u.substr(0,l.length)===l:u.indexOf(l)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return !!e.isDisabled},loadingMessage:function(){return "Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return !1}}(),noOptionsMessage:function(){return "No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return "".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Mb(e,t,n,o){return {type:"option",data:t,isDisabled:jb(e,t,n),isSelected:Jb(e,t,n),label:Xb(e,t),value:Zb(e,t),index:o}}function Db(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return Mb(e,n,t,o)}).filter(function(t){return Hb(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=Mb(e,n,t,o);return Hb(e,r)?r:void 0}).filter(hg)}function Wb(e){return e.reduce(function(e,t){return "group"===t.type?e.push.apply(e,rm(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Vb(e,t){return e.reduce(function(e,n){return "group"===n.type?e.push.apply(e,rm(n.options.map(function(e){return {data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Hb(e,t){var n=e.inputValue,o=void 0===n?"":n,i=t.data,r=t.isSelected,a=t.label,s=t.value;return (!$b(e)||!r)&&Yb(e,{label:a,value:s,data:i},o)}var zb=function(e,t){var n;return (null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Xb=function(e,t){return e.getOptionLabel(t)},Zb=function(e,t){return e.getOptionValue(t)};function jb(e,t,n){return "function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Jb(e,t,n){if(n.indexOf(t)>-1)return !0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Zb(e,t);return n.some(function(t){return Zb(e,t)===o})}function Yb(e,t,n){return !e.filterOption||e.filterOption(t,n)}var $b=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_b=1,Ub=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tm(e,t);}(t,reactExports.Component);var e=function(e){var t=om();return function(){var n,o=nm(e);if(t){var i=nm(this).constructor;n=Reflect.construct(o,arguments,i);}else n=o.apply(this,arguments);return im(this,n)}}(t);function t(n){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=e.call(this,n)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e;},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e;},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e;},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e;},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;t.name=r,o.ariaOnChange(e,t),i(e,t);},o.setValue=function(e,t,n){var i=o.props,r=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),r&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n});},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,i=t.isMulti,r=t.name,a=o.state.selectValue,s=i&&o.isOptionSelected(e,a),c=o.isOptionDisabled(e,a);if(s){var l=o.getOptionValue(e);o.setValue(a.filter(function(e){return o.getOptionValue(e)!==l}),"deselect-option",e);}else {if(c)return void o.ariaOnChange(e,{action:"select-option",option:e,name:r});i?o.setValue([].concat(rm(a),[e]),"select-option",e):o.setValue(e,"select-option");}n&&o.blurInput();},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,i=o.getOptionValue(e),r=n.filter(function(e){return o.getOptionValue(e)!==i}),a=gg(t,r,r[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput();},o.clearValue=function(){var e=o.state.selectValue;o.onChange(gg(o.props.isMulti,[],null),{action:"clear",removedValues:e});},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),r=gg(e,i,i[0]||null);n&&o.onChange(r,{action:"pop-value",removedValue:n});},o.getFocusedOptionId=function(e){return zb(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return Vb(Db(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tg.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return Xb(o.props,e)},o.getOptionValue=function(e){return Zb(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=Rb[e](t,n);i.boxSizing="border-box";var r=o.props.styles[e];return r?r(i,t):i},o.getClassNames=function(e,t){var n,i;return null===(n=(i=o.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},o.getElementId=function(e){return "".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,Jf(Jf({},Qg),e.components);var e;},o.buildCategorizedOptions=function(){return Db(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Wb(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:Jf({value:e},t)});},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput());},o.onMenuMouseMove=function(e){o.blockOptionHover=!1;},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault();}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault();}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}));},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&rg(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose();},o.onCompositionStart=function(){o.isComposing=!0;},o.onCompositionEnd=function(){o.isComposing=!1;},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1);},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5;}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0);},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e);},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e);},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e);},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen();},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1;},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}));},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null});}},o.shouldHideSelectedOptions=function(){return $b(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus();},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,l=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(c||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)o.removeValue(h);else {if(!i)return;n?o.popValue():s&&o.clearValue();}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!d||!m||p&&o.isOptionSelected(m,g))return;o.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(o.isComposing)return;o.selectOption(m);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&r&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault();}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++_b),o.state.selectValue=ng(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),r=o.buildFocusableOptions(),a=r.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=r[a],o.state.focusedOptionId=zb(i,r[a]);}return o}return function(e,t,n){t&&em(e.prototype,t),n&&em(e,n),Object.defineProperty(e,"prototype",{writable:!1});}(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&lg(this.menuListRef,this.focusedOptionRef),(Ob()||Tb())&&this.setState({isAppleDevice:!0});}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(lg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1);}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0);}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen();}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose();}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t);}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus();}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur();}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var s=r.indexOf(o[0]);s>-1&&(a=s);}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a],focusedOptionId:this.getFocusedOptionId(r[a])},function(){return t.onMenuOpen()});}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(a=i+1);}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]});}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[i])});}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Gb):Jf(Jf({},Gb),this.props.theme):Gb}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options;return {clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:r,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return !!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return jb(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Jb(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Yb(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1));}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd));}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1));}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd));}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,r=e.inputValue,a=e.tabIndex,s=e.form,c=e.menuIsOpen,l=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,h=i||this.getElementId("input"),g=Jf(Jf(Jf({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?reactExports.createElement(u,qf({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:r},g)):reactExports.createElement(gb,qf({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:qh,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,r=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,c=t.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:reactExports.createElement(c,qf({},l,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return b.map(function(t,s){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return reactExports.createElement(n,qf({},l,{components:{Container:i,Label:r,Remove:a},isFocused:c,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault();}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var w=b[0];return reactExports.createElement(s,qf({},l,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return reactExports.createElement(e,qf({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,a=this.state.isFocused;if(!e||!r)return null;return reactExports.createElement(e,qf({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,r=this.props.isDisabled,a=this.state.isFocused;return reactExports.createElement(n,qf({},i,{isDisabled:r,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return reactExports.createElement(e,qf({},t,{innerProps:r,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,r=t.Menu,a=t.MenuList,s=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,h=f.inputValue,g=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,I=f.menuPlacement,C=f.menuPosition,x=f.menuPortalTarget,A=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,S=f.noOptionsMessage,N=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var E,L=function(t,n){var i=t.type,r=t.data,a=t.isDisabled,s=t.isSelected,c=t.label,l=t.value,f=p===r,m=a?void 0:function(){return e.onOptionHover(r)},h=a?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return reactExports.createElement(u,qf({},d,{innerProps:b,data:r,isDisabled:a,isSelected:s,key:g,label:c,type:i,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map(function(t){if("group"===t.type){var r=t.data,a=t.options,s=t.index,c="".concat(e.getElementId("group"),"-").concat(s),l="".concat(c,"-heading");return reactExports.createElement(n,qf({},d,{key:c,data:r,options:a,Heading:i,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return L(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return L(t,"".concat(t.index))});else if(g){var B=b({inputValue:h});if(null===B)return null;E=reactExports.createElement(c,d,B);}else {var O=S({inputValue:h});if(null===O)return null;E=reactExports.createElement(l,d,O);}var T={minMenuHeight:v,maxMenuHeight:y,menuPlacement:I,menuPosition:C,menuShouldScrollIntoView:k},R=reactExports.createElement(xg,qf({},d,T),function(t){var n=t.ref,i=t.placerProps,s=i.placement,c=i.maxHeight;return reactExports.createElement(r,qf({},d,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),reactExports.createElement(Pb,{captureEnabled:m,onTopArrive:N,onBottomArrive:P,lockEnabled:A},function(t){return reactExports.createElement(a,qf({},d,{innerRef:function(n){e.getMenuListRef(n),t(n);},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:c,focusedOption:p}),E)}))});return x||"fixed"===C?reactExports.createElement(s,qf({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:I,menuPosition:C}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,i=t.isDisabled,r=t.isMulti,a=t.name,s=t.required,c=this.state.selectValue;if(s&&!this.hasValue()&&!i)return reactExports.createElement(Lb,{name:a,onFocus:this.onValueInputFocus});if(a&&!i){if(r){if(n){var l=c.map(function(t){return e.getOptionValue(t)}).join(n);return reactExports.createElement("input",{name:a,type:"hidden",value:l})}var u=c.length>0?c.map(function(t,n){return reactExports.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):reactExports.createElement("input",{name:a,type:"hidden",value:""});return reactExports.createElement("div",null,u)}var d=c[0]?this.getOptionValue(c[0]):"";return reactExports.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,a=t.isFocused,s=t.selectValue,c=this.getFocusableOptions();return reactExports.createElement(ib,qf({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:r,isFocused:a,selectValue:s,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,r=e.ValueContainer,a=this.props,s=a.className,c=a.id,l=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return reactExports.createElement(i,qf({},p,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),reactExports.createElement(t,qf({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),reactExports.createElement(r,qf({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),reactExports.createElement(n,qf({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,r=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,m=ng(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Wb(Db(e,t))}(e,m):[],b=d?Vb(Db(e,m),"".concat(c,"-option")):[],v=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);h={selectValue:m,focusedOption:y,focusedOptionId:zb(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1};}var w=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},I=r,C=a&&s;return a&&!C&&(I={value:gg(f,m,m[0]||null),options:m,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==r?void 0:r.action)&&(I=null),Jf(Jf(Jf({},h),w),{},{prevProps:e,ariaSelection:I,prevWasFocused:C})}}]),t}();Ub.defaultProps=Fb;var Qb=reactExports.forwardRef(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,r=e.defaultValue,s=void 0===r?null:r,c=e.inputValue,u=e.menuIsOpen,d=e.onChange,p=e.onInputChange,f=e.onMenuClose,m=e.onMenuOpen,h=e.value,g=Qf(e,Kf),b=_f(reactExports.useState(void 0!==c?c:n),2),v=b[0],y=b[1],w=_f(reactExports.useState(void 0!==u?u:i),2),I=w[0],C=w[1],x=_f(reactExports.useState(void 0!==h?h:s),2),A=x[0],k=x[1],S=reactExports.useCallback(function(e,t){"function"==typeof d&&d(e,t),k(e);},[d]),N=reactExports.useCallback(function(e,t){var n;"function"==typeof p&&(n=p(e,t)),y(void 0!==n?n:e);},[p]),P=reactExports.useCallback(function(){"function"==typeof m&&m(),C(!0);},[m]),E=reactExports.useCallback(function(){"function"==typeof f&&f(),C(!1);},[f]),L=void 0!==c?c:v,B=void 0!==u?u:I,O=void 0!==h?h:A;return Jf(Jf({},g),{},{inputValue:L,menuIsOpen:B,onChange:S,onInputChange:N,onMenuClose:E,onMenuOpen:P,value:O})}(e);return reactExports.createElement(Ub,qf({ref:t},n))}),Kb=Qb;const qb=reactExports.forwardRef(({id:n,className:o,name:i="select",align:r="up",label:a,options:s=[],value:c,placeholder:l="Select...",isMulti:u=!1,isSearchable:d,isClearable:p,backspaceRemovesValue:f,disabled:m,onChange:h,onInputChange:g,menuIsOpen:b,closeMenuOnSelect:v,isLoading:y,components:w,errorMessage:I,errorDataTestId:C},x)=>{const A=Df(),k=n||`select-${A}`,P=S("io-control-select",m&&"io-control-disabled",I&&"io-control-error",r&&[`direction-${r}`],o),E=I?{"aria-invalid":!0,"aria-errormessage":`${k}-error`}:{};return jsxRuntimeExports.jsxs("div",{className:P,children:[a&&jsxRuntimeExports.jsx(Of,{htmlFor:k,text:a}),jsxRuntimeExports.jsx(Kb,{ref:x,className:"io-select",classNamePrefix:"io-select",instanceId:k,isMulti:u,inputId:k,name:i,options:s,value:c,onChange:e=>u?h?.([...e??[]]):h?.(e),onInputChange:g,menuIsOpen:b,isLoading:y,components:w,placeholder:l,isDisabled:m,isSearchable:d,isClearable:p??u,backspaceRemovesValue:f,closeMenuOnSelect:v,"aria-label":a,...E}),I&&jsxRuntimeExports.jsxs("div",{"data-testid":C,id:`${k}-error`,className:"io-input-error",children:[jsxRuntimeExports.jsx(N,{variant:"close"}),I]})]})});qb.displayName="Select";const ev=reactExports.forwardRef(({id:n,className:o,name:i="textarea",align:r="up",label:a,rows:s=4,placeholder:c="Enter text here...",disabled:l,readOnly:u,...d},p)=>{const f=Df(),m=n||`textarea-${f}`,h=S("io-control-textarea",l&&"io-control-disabled",u&&"io-control-readonly",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsxs("div",{className:h,children:[a&&jsxRuntimeExports.jsx(Of,{htmlFor:m,text:a}),jsxRuntimeExports.jsx("textarea",{id:m,className:"io-textarea",ref:p,name:i,tabIndex:0,placeholder:c,"aria-label":a,disabled:l,readOnly:u,rows:s,...d})]})});ev.displayName="Textarea";const tv=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(null),o=reactExports.useCallback(t=>e?.themes?.select(t),[e]);return reactExports.useEffect(()=>{if(!e)return;let t=!1;const o=e=>{t||n(e);};return e.themes?.onChanged(o),e.themes?.getCurrent().then(o).catch(console.warn),()=>{t=!0;}},[e]),{currentTheme:t,selectTheme:o}};function nv(e,t=500){const[n,o]=reactExports.useState(e);return reactExports.useEffect(()=>{const n=setTimeout(()=>{o(e);},t);return ()=>clearTimeout(n)},[e,t]),n}function iv(){return reactExports.useMemo(()=>"object"==typeof window&&Ba(),[])}const fv=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState([]);return reactExports.useEffect(()=>{e&&e.themes?.list().then(n).catch(console.warn);},[e]),t};const yv=reactExports.forwardRef(({id:n,className:o,name:i="toggle",align:r="left",label:a,checked:s,disabled:c,onKeyDown:l,"data-testid":u="toggle",...d},p)=>{const f=Df(),m=n||`toggle-${f}`,h=S("io-control-toggle",s&&"io-control-checked",c&&"io-control-disabled",r&&[`direction-${r}`],o);return jsxRuntimeExports.jsx("div",{className:h,children:jsxRuntimeExports.jsxs("label",{className:"io-toggle",htmlFor:m,tabIndex:c?-1:0,onKeyDown:l,"data-testid":`${u}-label`,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:m,className:"io-checkbox",ref:p,name:i,checked:s,disabled:c,"aria-checked":s,tabIndex:-1,"data-testid":u,...d}),jsxRuntimeExports.jsx("span",{className:"slider","data-testid":`${u}-slider`}),a]})})});function wv(e){return {name:e.name,title:e.title,hidden:e.isHidden,userProperties:e.customProperties}}function Iv(e){return {name:e.name,title:e.title,hidden:e.hidden,userProperties:e.userProperties}}yv.displayName="Toggle";class Cv extends Error{constructor(e){super(e),this.name="IoAppsSubApiMissingError";}}function xv(e){if(!e.registry)throw new Cv("io.apps is available but io.apps.registry is missing")}function Av(e){if(!e.instances)throw new Cv("io.apps is available but io.apps.instances is missing")}async function kv(e,t){if(!e||!t)return;const n=e.apps;n&&xv(n);try{if(n){const e=await n.registry.get({name:t});if(!e)return;return wv(e)}const o=e.appManager?.application(t);if(!o)return;return Iv(o)}catch(e){return void console.error(`Failed to get application "${t}"`,e)}}const Sv={getMyApplication:async function(e){if(e)try{const t=e.apps?e.apps.my?.appName:e.appManager?.myApplication?.name;if(!t)return;return await kv(e,t)}catch(e){if(e instanceof Cv)throw e;return void console.error("Failed to get my application",e)}},getApplication:kv,getApplications:async function(e){if(!e)return [];const t=e.apps;t&&xv(t);try{if(t){const e=await t.registry.getMany()??[];return e.map(e=>wv(e))}const n=e.appManager?.applications()??[];return n.map(e=>Iv(e))}catch(e){console.error("Failed to get applications",e);}return []},getApplicationConfiguration:async function(e,t){if(!e||!t)return;const n=e.apps;n&&xv(n);try{if(n){const e=await n.registry.get({name:t,includeDefinition:!0});return e?.definition}const o=e.appManager?.application(t);if(!o)return;return await o.getConfiguration()}catch(e){return void console.error(`Failed to get configuration for application "${t}"`,e)}},startApplication:async function(e,t,n){if(!e)return;const o=e.apps;o&&(xv(o),Av(o));try{if(o){return await o.registry.get({name:t})?void await o.instances.start({name:t,...n}):void console.error(`Application "${t}" not found in registry`)}const i=e.appManager?.application(t);if(!i)return void console.error(`Application "${t}" not found`);await i.start(n);}catch(e){return void console.error(`Failed to start application "${t}"`,e)}},stopApplication:async function(e,t,n){if(!e)return;const o=e.apps;o&&Av(o);try{if(o)return void await o.instances.stop({id:t.id,force:n?.force,reason:n?.reason,timeout:n?.timeout});const i=e.appManager.instances().find(e=>e.id===t.id);if(!i)return void console.error(`Instance "${t.id}" not found`);await i.stop();}catch(e){return void console.error(`Failed to stop application instance "${t.id}"`,e)}},onAppAdded:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onAdded(({app:e})=>{const n=wv(e);t(n);})}const o=e.appManager?.onAppAdded(e=>{const n=Iv(e);t(n);});return o}catch(e){return void console.error("Failed to subscribe to app added events",e)}},onAppRemoved:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onRemoved(({appName:e})=>{t({name:e});})}const o=e.appManager?.onAppRemoved(e=>{t({name:e.name});});return o}catch(e){return void console.error("Failed to subscribe to app removed events",e)}},onAppChanged:async function(e,t){if(!e)return;const n=e.apps;n&&xv(n);try{if(n){return await n.registry.onUpdated(e=>{const n=wv(e.app);t(n);})}const o=e.appManager?.onAppChanged(e=>{const n=Iv(e);t(n);});return o}catch(e){return void console.error("Failed to subscribe to app changed events",e)}},shutdownPlatform:async function(e,t=!0){if(!e)return;const n={autoSave:t,showDialog:!0};try{if(e.platform?.shutdown)return void await e.platform.shutdown(n);await(e.appManager?.exit(n));}catch(e){console.error("Failed to shutdown platform",e);}},restartPlatform:async function(e,t=!0){if(!e)return;const n={autoSave:t,showDialog:!0};try{if(e.platform?.restart)return void await e.platform.restart(n);await(e.appManager?.restart(n));}catch(e){console.error("Failed to restart platform",e);}}};const Nv={minimizeWindow:async function(e){if(e)try{const t=e.windows?.my();await(t?.minimize());}catch(e){console.error("Failed to minimize window",e);}},closeWindow:async function(e,t){if(e)try{const n=e.windows?.my();await(n?.close(t));}catch(e){console.error("Failed to close window",e);}},restartPlatform:Sv.restartPlatform,shutdownPlatform:Sv.shutdownPlatform};reactExports.createContext({theme:"dark"});reactExports.createContext(void 0);const Ov=n=>{const{General:o,Launchpad:i,Layouts:r,Downloads:a,System:s}=Hy();return jsxRuntimeExports.jsxs(Bf,{element:jl,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})},Tv=({title:t="General",...n})=>{const{Theme:o}=Hy();return jsxRuntimeExports.jsx(T,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})},Rv=({className:n,title:o="Theme",...i})=>{const{currentTheme:r,selectTheme:a}=tv(),s=fv();return jsxRuntimeExports.jsxs("div",{className:S("flex jc-between ai-center",n),"data-testid":"theme-container",...i,children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper","data-testid":"theme-label",children:o}),jsxRuntimeExports.jsxs(re,{variant:"light","data-testid":"theme-dropdown",children:[jsxRuntimeExports.jsx(re.Button,{text:r?.displayName??"Dark","data-testid":"theme-dropdown-button"}),jsxRuntimeExports.jsx(re.Content,{"data-testid":"theme-dropdown-content",children:jsxRuntimeExports.jsx(re.List,{children:s.map(({displayName:t,name:n})=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>a(n),"data-testid":`theme-dropdown-item-${n}`,children:t},n))})})]})]})},Gv=({prefKey:t,...n})=>{const{isLoading:o,value:i=!1,update:r}=Rs({prefKey:t});return jsxRuntimeExports.jsx(yv,{checked:i,disabled:o,onChange:e=>r(e.target.checked),...n})},Fv=({align:t="right",label:n="Minimize to tray",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ja,...o}),Mv=({prefKey:n,options:o,disabled:i,...r})=>{const{isLoading:a,value:s="Select option",update:c}=Rs({prefKey:n});return jsxRuntimeExports.jsxs(re,{variant:"light",disabled:a||i,...r,children:[jsxRuntimeExports.jsx(re.Button,{children:s}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{children:o.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>(async e=>{if(e!==s)try{await c(e);}catch(e){console.error("Failed to update platform preference:",e);}})(t),children:t},t))})})]})},Dv=({className:n,label:o="Pinned position",...i})=>jsxRuntimeExports.jsx(T,{className:S("io-block-list-gap",n),...i,children:jsxRuntimeExports.jsxs("div",{className:"flex jc-between ai-center",children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper",children:o}),jsxRuntimeExports.jsx(Mv,{className:n,prefKey:Ya,options:["Left","Right"],...i})]})}),Wv=({align:t="right",label:n='Hide "Favorites"',...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:es,...o}),Vv=({align:t="right",label:n="Allow docking to top",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:$a,...o}),Hv=({align:t="right",label:n="Always on top",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:_a,...o}),zv=({align:t="right",label:n="Claim occupied space",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Ua,...o}),Xv=({align:t="right",label:n="Show the extended Launchpad area",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Qa,...o}),Zv=({align:t="right",label:n="Hide labels",...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:Ka,disabled:!i,...o})},jv=({align:t="right",label:n='Show "Favorites"',...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:qa,disabled:!i,...o})},Jv=({align:t="right",label:n='Show "Recent"',...o})=>{const{value:i}=Rs({prefKey:Qa});return jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ts,disabled:!i,...o})},Yv=({title:n="Layouts",...o})=>{const{LayoutsSaveCurrentOnExit:i,LayoutsShowDeletePrompt:r,LayoutsShowUnsavedChangesPrompt:a,LayoutsShowHidden:s}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(s,{})]})},$v=({align:t="right",label:n="Save current on exit",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:os,...o}),_v=({align:t="right",label:n="Show prompt for unsaved changes",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:is,"data-testid":"layouts-show-unsaved-changes-prompt-toggle-button",...o}),Uv=({align:t="right",label:n="Show prompt for deleting",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:rs,"data-testid":"layouts-show-delete-prompt-toggle",...o}),Qv=({title:t="Downloads",...n})=>{const{DownloadsLocation:o}=Hy();return jsxRuntimeExports.jsx(T,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})};function Kv({title:n="Downloads"}){const{ItemSearch:o,HeaderButtons:i}=xy();return jsxRuntimeExports.jsxs("div",{className:"io-dm-header",children:[jsxRuntimeExports.jsxs(se,{draggable:!0,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:n,size:"large"}),jsxRuntimeExports.jsx(i,{className:"non-draggable"})]}),jsxRuntimeExports.jsx(o,{})]})}const ey=reactExports.createContext({configuration:{},items:[],removeItem:()=>{},pauseResumeItem:()=>{},cancelItem:()=>{},clearItems:()=>{},showItemInFolder:()=>{},isSettingsVisible:!1,showSettings:()=>{},hideSettings:()=>{},searchQuery:"",setSearch:()=>{},itemsCount:0,setCount:()=>{},setDownloadLocation:()=>{},setDownloadLocationWithDialog:()=>{},sortItems:()=>[],downloadLocationList:[],isDownloadLocationDialogVisible:!1}),ty=()=>reactExports.useContext(ey);function ny({className:n,placeholder:o="Search",iconPrepend:i="search",iconAppend:r="close",...s}){const c=S("io-header-search",n),l=reactExports.useRef(null),{searchQuery:u,setSearch:p,itemsCount:f}=ty(),m=u.length>0,h=reactExports.useCallback(()=>{p(""),l.current&&l.current.focus();},[p]);return jsxRuntimeExports.jsxs("div",{className:c,children:[jsxRuntimeExports.jsx(Vf,{ref:l,value:u,iconPrepend:i,iconAppend:m?r:void 0,iconAppendOnClick:m?h:void 0,placeholder:o,onChange:e=>p(e.target.value),...s}),m&&jsxRuntimeExports.jsx("p",{className:"io-header-search-count",children:`${f} results`})]})}function oy({className:n,...o}){const{MoreButton:i,CloseButton:r,ExternalButton:a}=xy();return jsxRuntimeExports.jsxs(ae,{className:n,align:"right",...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{})]})}function iy({icon:n="ellipsis-vertical",...o}){const{items:i,clearItems:r,showSettings:a}=ty(),s=0===i.length;return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsx(re.ButtonIcon,{icon:n,variant:"circle",size:"32"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsxs(re.List,{children:[jsxRuntimeExports.jsx(re.Item,{onClick:e=>(e=>{s?e.stopPropagation():r();})(e),disabled:s,children:"Clear All"}),jsxRuntimeExports.jsx(re.Item,{onClick:a,children:"Settings"})]})})]})}function ry({className:t,icon:n="pop-out",...o}){const i=reactExports.useContext(IOConnectContext),r=reactExports.useCallback(()=>{Sv.startApplication(i,"io-connect-download-manager").catch(e=>{console.error("Failed to open Download Manager",e);});},[i]);return jsxRuntimeExports.jsx(P,{className:S("io-dm-compact-mode-only",t),icon:n,variant:"circle",size:"32",onClick:r,...o})}function ay({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const a=reactExports.useContext(IOConnectContext);return jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,onClick:e=>{i?i(e):Nv.closeWindow(a).catch(e=>{console.error("Failed to close window:",e);});},...r})}function sy(e,t=!1,n=!1,o=!1){const i=e.getDate(),r=["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],a=e.getFullYear(),s=e.getHours(),c=e.getMinutes();let l="";return l=c<10?`0${c}`:`${c}`,t?"Today"===t?n?"Today":`Today at ${s}:${l}`:"Yesterday"===t?n?"Yesterday":`Yesterday at ${s}:${l}`:`${s}:${l}`:o?n?`${r} ${i}`:`${r} ${i} at ${s}:${l}`:n?`${r} ${i}, ${a}`:`${r} ${i}, ${a} at ${s}:${l}`}function cy(e,t={showTime:!0}){const n=new Date(1e3*e),o=new Date,i=Math.round((o-n)/1e3),r=Math.round(i/60),a=o.toDateString()===n.toDateString(),s=new Date(o.setDate(o.getDate()-1)).toDateString()===n.toDateString(),c=o.getFullYear()===n.getFullYear();return t.showTime?i<5?"Just Now":i<60?`${i} seconds ago`:i<90?"about a minute ago":r<60?`${r} minutes ago`:a?sy(n,"Today",!1,!0):s?sy(n,"Yesterday",!1,!0):c?sy(n,!1,!1,!0):sy(n):a?"Today":s?"Yesterday":c?sy(n,!1,!0,!0):sy(n,!1,!0)}function ly({className:t,...n}){const o=S("io-dm-body","io-panel-body",t),{DownloadListEmpty:i,ItemGroup:r,Item:a}=xy(),{items:s,searchQuery:c,setCount:l,sortItems:d}=ty(),f=d(s),m=nv(c),h=reactExports.useMemo(()=>f.filter(e=>e.displayInfo.filename.toLowerCase().includes(m.toLowerCase())||e.displayInfo.url.toLowerCase().includes(m.toLowerCase())),[f,m]),g=reactExports.useMemo(()=>h.map(e=>({...e,displayInfo:{...e.displayInfo,startTime:cy(e.displayInfo.startTime,{showTime:!1})}})),[h]),b=reactExports.useMemo(()=>Object.values(g.reduce((e={},t)=>(e[t.displayInfo.startTime]=e[t.displayInfo.startTime]?.concat([])??[],e[t.displayInfo.startTime].push(t),e),{})),[g]);return reactExports.useEffect(()=>{l(h.length);},[h,l]),jsxRuntimeExports.jsx(Bf,{elementProps:{className:o,...n},children:b&&0!==b.length?b.map(t=>jsxRuntimeExports.jsx(r,{title:String(t[0].displayInfo.startTime)??null,children:t.map(t=>jsxRuntimeExports.jsx(a,{item:t},t.id))},t[0].id??"")):jsxRuntimeExports.jsx(i,{})})}function uy({className:n,icon:o="download",text:i="No downloads to display.",...r}){const a=S("io-dm-no-items",n);return jsxRuntimeExports.jsxs("div",{className:a,...r,children:[jsxRuntimeExports.jsx(N,{variant:o}),jsxRuntimeExports.jsx("p",{children:i})]})}function dy({className:n,title:o,children:i,...r}){const a=S("io-dm-item-group",n);return jsxRuntimeExports.jsxs("div",{className:a,...r,children:[o&&jsxRuntimeExports.jsx("p",{className:"io-dm-items-group-title",children:o}),i]})}function py({className:o,item:i,...r}){const{ItemHeader:a,ItemBody:s,ItemFooter:c}=xy(),{state:l,url:u,filename:d,receivedBytes:p,totalBytes:f,speed:m,timeRemaining:h}=i.displayInfo;if(!i)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const g=S("io-dm-item",i.displayInfo.state&&[l],o);return jsxRuntimeExports.jsxs("div",{className:g,...r,children:[jsxRuntimeExports.jsx(a,{itemID:i.id,filename:d,state:l}),jsxRuntimeExports.jsx(s,{state:l,url:u,bytesReceived:p,bytesTotal:f,speed:m,timeRemaining:h}),jsxRuntimeExports.jsx(c,{itemID:i.id,state:l})]})}function fy({bytesReceived:t=0,bytesTotal:n=0,...o}){const i=reactExports.useCallback(()=>t&&n?Math.round(t/n*100):0,[t,n]);return jsxRuntimeExports.jsx(_l,{value:i(),...o})}function my({className:n,itemID:o,filename:i,state:r,pauseResume:s,showInFolder:c,cancel:l,remove:u,...d}){const p=S("io-dm-item-header",n),{pauseResumeItem:f,showItemInFolder:m,cancelItem:h,removeItem:g}=ty(),b="progressing"===r||"paused"===r,v="interrupted"===r||"cancelled"===r,y=b?"Cancel Download":"Remove Download",w=l??h,I=u??g,C=function(e,t,n,o){return "paused"===e||"progressing"===e?{statusIcon:"paused"===e?"play":"pause",onStatusActionClick:()=>n(t)}:"completed"===e?{statusIcon:"folder",onStatusActionClick:()=>o(t)}:null}(r,o,s??f,c??m),x=reactExports.useCallback(()=>{b?w(o):I(o);},[b,w,o,I]);return jsxRuntimeExports.jsxs("div",{className:p,...d,children:[jsxRuntimeExports.jsx(O,{text:i,style:{textDecoration:v?"line-through":"none"}}),jsxRuntimeExports.jsxs(ae,{children:[C&&jsxRuntimeExports.jsx(P,{icon:C.statusIcon,iconSize:"12",onClick:C.onStatusActionClick,className:"io-dm-compact-mode-only"}),jsxRuntimeExports.jsx(P,{icon:"close",iconSize:"12",title:y,onClick:x})]})]})}function hy({className:n,state:o,url:i,bytesReceived:r=0,bytesTotal:a=0,speed:s=0,timeRemaining:c=0,...l}){const u=S("io-dm-item-body",n),d=e=>{const t=["Bytes","KB","MB","GB","TB"];if(0===e)return "0";const n=Math.floor(Math.log(e)/Math.log(1024));return 0===n?`${e}${t[n]}`:`${(e/1024**n).toFixed(1)}${t[n]}`};return jsxRuntimeExports.jsxs("div",{className:u,...l,children:[jsxRuntimeExports.jsx("p",{className:"io-text-small",children:i}),(f=o,"cancelled"===f||"interrupted"===f||"completed"===f?null:jsxRuntimeExports.jsx(fy,{variant:"paused"===f?"paused":"active",bytesReceived:r,bytesTotal:a})),jsxRuntimeExports.jsx("p",{className:"io-text-default-lh16",children:"completed"===o?`${d(r??0)} - Done`:"cancelled"===o||"interrupted"===o?`${d(r??0)}/${d(a??0)} - Failed`:`${d(r??0)}/${d(a??0)} (${p=s,(p?`${(p/1e6/8).toFixed(2)}MB/s`:0)??0}) - ${(e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60);let o="";return t>0&&(o+=`${t} hour${t>1?"s":""}, `),n>0&&(o+=`${n} min${n>1?"s":""}, `),((e=Math.floor(e%60))>0||""===o)&&(o+=`${e} sec${1===e?"":"s"}`),`${o.trim()} left`})(c)??0}`})]});var p,f;}const gy={success:"check-solid",warning:"exclamation-mark",critical:"exclamation-mark"};function by({className:n,variant:o,text:i}){const r=S("io-dm-item-status",`io-dm-item-status-${o}`,n);return jsxRuntimeExports.jsxs("div",{className:r,children:[o&&jsxRuntimeExports.jsx(N,{variant:gy[o],className:"icon-severity",size:"10"}),i&&jsxRuntimeExports.jsx("p",{className:"io-text-smaller",children:i})]})}function vy({className:o,itemID:i,state:r,pauseResume:s,showInFolder:c,cancel:l,...u}){const d=S("io-dm-item-footer",o),{pauseResumeItem:p,showItemInFolder:f,cancelItem:m}=ty(),h=reactExports.useCallback(e=>{s?s(e):p(e);},[s,p]),g=reactExports.useCallback(e=>{c?c(e):f(e);},[c,f]),b=reactExports.useCallback(e=>{l?l(e):m(e);},[l,m]);return jsxRuntimeExports.jsx("div",{className:d,...u,children:(()=>{switch(r){case"progressing":return jsxRuntimeExports.jsxs(ae,{align:"right",children:[jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Pause",onClick:()=>h(i)}),jsxRuntimeExports.jsx(ae.Button,{variant:"link",text:"Cancel",onClick:()=>b(i)})]});case"paused":return jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Resume",onClick:()=>h(i)})});case"completed":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(by,{variant:"success",text:"Complete"}),jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Show in Folder",onClick:()=>g(i)})})]});case"cancelled":return jsxRuntimeExports.jsx(by,{variant:"warning",text:"Cancelled"});case"interrupted":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(by,{variant:"critical",text:"Failed"}),jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(ae.Button,{variant:"primary",text:"Retry",onClick:()=>h(i)})})]});default:return null}})()})}function yy({className:n,title:o="Download Settings",...i}){const r=S("io-dm-settings-panel",n),{configuration:{downloadFolder:a},hideSettings:s,setDownloadLocation:c,setDownloadLocationWithDialog:l,isDownloadLocationDialogVisible:u,downloadLocationList:d}=ty();return jsxRuntimeExports.jsxs(Yl,{className:r,...i,children:[jsxRuntimeExports.jsxs(Yl.Header,{children:[jsxRuntimeExports.jsx(Yl.Header.Title,{size:"large",text:o,tag:"h1"}),jsxRuntimeExports.jsx(Yl.Header.ButtonGroup,{children:jsxRuntimeExports.jsx(P,{className:"non-draggable",variant:"circle",icon:"close",size:"32",onClick:()=>{s();},disabled:u})})]}),jsxRuntimeExports.jsx(Yl.Body,{children:jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsxs(re,{variant:"light",disabled:u,children:[jsxRuntimeExports.jsx(re.Button,{children:jsxRuntimeExports.jsx("span",{className:"io-dm-settings-panel-download-location",children:a??d[0]})}),d.length>1&&jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{children:d.map((t,n)=>!t||0===n||n>3?null:jsxRuntimeExports.jsx(re.Item,{onClick:()=>{c(t);},children:t},t))})})]}),jsxRuntimeExports.jsx(D,{className:"io-btn io-dm-settings-panel-download-location-btn",text:"Browse",onClick:()=>{l();},disabled:u})]})})]})}const wy={Header:Kv,ItemSearch:ny,HeaderButtons:oy,MoreButton:iy,ExternalButton:ry,CloseButton:ay,Body:ly,DownloadListEmpty:uy,ItemGroup:dy,Item:py,ItemProgress:fy,ItemHeader:my,ItemBody:hy,ItemFooter:vy,Settings:yy},Iy=reactExports.createContext(wy),Cy=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...wy,...n}),[n]);return jsxRuntimeExports.jsx(Iy.Provider,{value:o,children:t})});Cy.displayName="ComponentsStore";const xy=()=>reactExports.useContext(Iy);const Sy=({className:n,label:o="Location",...i})=>{const{configuration:{downloadFolder:r},setDownloadLocationWithDialog:a,isDownloadLocationDialogVisible:s,downloadLocationList:c}=ty();return jsxRuntimeExports.jsxs(T,{className:S("io-preferences-download-section",n),...i,children:[jsxRuntimeExports.jsxs("div",{className:"flex jc-between ai-center",children:[jsxRuntimeExports.jsx("label",{className:"io-text-clipper",children:o}),jsxRuntimeExports.jsx(D,{text:"Change",onClick:a,disabled:s})]}),jsxRuntimeExports.jsx("p",{children:r??c?.[0]??"Not set"})]})},Ny=({align:t="right",label:n="Ask where to save each file before downloading",...o})=>jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ls,...o}),Py=({title:n="System",...o})=>{const{SystemRestartSection:i,SystemShutdownSection:r}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{})]})},Ey="T42.GD.Execute",Ly=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],By=(e,t)=>e in t;function Oy({time:e,frequency:t,day:n}){const[o,i]=e.split(":"),r=Number.parseInt(o,10),a=Number.parseInt(i,10);let s="*";return "weekly"===t&&n&&(s=function(e){const t={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};if(!By(e,t))throw new Error(`Invalid day: ${e}`);return t[e]}(n).toString()),`${a} ${r} * * ${s}`}function Ty(e){const t=reactExports.useContext(IOConnectContext),{value:n,update:o}=Rs({prefKey:Ry(e)}),{value:i,update:r}=Rs({prefKey:Ry(e,"Time")}),{value:s,update:l}=Rs({prefKey:Ry(e,"Frequency")}),{value:u,update:d}=Rs({prefKey:Ry(e,"Day")}),f=reactExports.useCallback(async()=>{try{await t.interop.invoke(Ey,{command:`cancel-${e}`});}catch(e){console.error(e);}},[t,e]),m=reactExports.useCallback(async()=>{try{const n=Oy({time:i??"12:00",frequency:s??"daily",day:"weekly"===s?u:"*"});await t.interop.invoke(Ey,{command:`schedule-${e}`,args:{cronTime:n,discardUnsavedLayoutChanges:!1}});}catch(t){console.error(`Failed to update cron job for ${e}:`,t);}},[t,e,i,s,u]);reactExports.useEffect(()=>{t&&n&&m();},[t,n,i,s,u,m]);return {enabled:n??!1,time:i??"12:00",frequency:s??"daily",day:u??"Monday",setEnabled:async e=>{e||await f();try{await o(e);}catch(e){console.error("Failed to update enabled state:",e);}},setTime:async e=>{try{await r(e);}catch(e){console.error("Failed to update time:",e);}},setFrequency:async e=>{try{await l(e),"daily"===e&&await d(void 0);}catch(e){console.error("Failed to update frequency:",e);}},setDay:async e=>{var t;if(t=e,Ly.includes(t))try{await d(e);}catch(e){console.error("Failed to update day:",e);}else console.error("Invalid day provided");}}}function Ry(e,t){const n="restart"===e?"_system_scheduleRestart":"_system_scheduleShutdown";return t?`${n}${t}`:n}function Gy({className:n,variant:o,...i}){const r=S("io-block-list-gap",o,n),{enabled:a,time:s,frequency:c,day:l,setEnabled:u,setTime:d,setFrequency:p,setDay:f}=Ty(o);return jsxRuntimeExports.jsxs(T,{className:r,...i,children:[jsxRuntimeExports.jsx(yv,{label:`Schedule ${o}`,align:"right",onChange:e=>u(e.target.checked),checked:a}),jsxRuntimeExports.jsxs("div",{className:"scheduler-controls",children:[jsxRuntimeExports.jsx("div",{className:"io-control-input io-control-leading-icon direction-up",children:jsxRuntimeExports.jsx("input",{type:"time",className:"io-input",value:s,onChange:e=>d(e.target.value)})}),jsxRuntimeExports.jsxs(ti,{text:c.charAt(0).toUpperCase()+c.slice(1),icon:"chevron-down",iconRight:!0,children:[jsxRuntimeExports.jsx(ti.Item,{onClick:()=>p("daily"),children:"Daily"}),jsxRuntimeExports.jsx(ti.Item,{onClick:()=>p("weekly"),children:"Weekly"})]}),"weekly"===c&&jsxRuntimeExports.jsx(ti,{text:l,icon:"chevron-down",iconRight:!0,children:Ly.map(t=>jsxRuntimeExports.jsx(ti.Item,{onClick:()=>f(t),children:t},t))})]})]})}function Fy({className:t,...n}){return jsxRuntimeExports.jsx(Gy,{...n,className:t,variant:"restart"})}function My({className:t,...n}){return jsxRuntimeExports.jsx(Gy,{...n,className:t,variant:"shutdown"})}const Dy={Body:Ov,General:Tv,Theme:Rv,Launchpad:({title:n="Launchpad",...o})=>{const{MinimizeToTray:i,PinnedPosition:r,HideFavoritesFromLaunchpad:a,Docking:s,ExtendedArea:c}=Hy();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},MinimizeToTray:Fv,PinnedPosition:Dv,HideFavoritesFromLaunchpad:Wv,Docking:({className:n,title:o="Docking",...i})=>{const r=S("io-preferences-panel-docking",n),{AllowDocking:a,DockedAlwaysOnTop:s,DockedClaimsSpace:c}=Hy();return jsxRuntimeExports.jsxs(T,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},AllowDocking:Vv,DockedAlwaysOnTop:Hv,DockedClaimsSpace:zv,ExtendedArea:({className:n,title:o="Extended Area",...i})=>{const r=S("io-preferences-panel-extended-area",n),{ShowExtendedArea:a,HideLabelsInExtendedArea:s,ShowFavoritesInExtendedArea:c,ShowRecentAppsInExtendedArea:l}=Hy();return jsxRuntimeExports.jsxs(T,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{})]})},ShowExtendedArea:Xv,HideLabelsInExtendedArea:Zv,ShowFavoritesInExtendedArea:jv,ShowRecentAppsInExtendedArea:Jv,Layouts:Yv,LayoutsSaveCurrentOnExit:$v,LayoutsShowUnsavedChangesPrompt:_v,LayoutsShowDeletePrompt:Uv,LayoutsShowHidden:({align:t="right",label:n="Show hidden Layouts and Workspaces",...o})=>ga(reactExports.useContext(IOConnectContext))?jsxRuntimeExports.jsx(Gv,{align:t,label:n,prefKey:ss,"data-testid":"layouts-show-hidden-toggle",...o}):null,Downloads:Qv,DownloadsLocation:Sy,DownloadsAskForEachDownload:Ny,System:Py,SystemRestartSection:Fy,SystemShutdownSection:My},Wy=reactExports.createContext(Dy),Vy=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Dy,...n}),[n]);return jsxRuntimeExports.jsx(Wy.Provider,{value:o,children:t})});Vy.displayName="PreferencesPanelComponentsStoreProvider";const Hy=()=>reactExports.useContext(Wy);function jy({className:n,title:o="General",...i}){const r=S("io-notifications-settings-panel-general",n),{AllowNotifications:a,AllowNotificationToasts:s,ShowNotificationBadge:c,CloseNotificationOnClick:l,PanelAutoHide:u,HideToastsAfter:d}=Lw(),p=iv();return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[p&&jsxRuntimeExports.jsx(a,{}),p&&jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),p&&jsxRuntimeExports.jsx(u,{}),p&&jsxRuntimeExports.jsx(l,{}),p&&jsxRuntimeExports.jsx(d,{})]})})}function Jy(e){if(e&&e.errorHandling&&"function"!=typeof e.errorHandling&&"log"!==e.errorHandling&&"silent"!==e.errorHandling&&"throw"!==e.errorHandling)throw new Error('Invalid options passed to createRegistry. Prop errorHandling should be ["log" | "silent" | "throw" | (err) => void], but '+typeof e.errorHandling+" was passed");var t=e&&"function"==typeof e.errorHandling&&e.errorHandling,n={};function o(n,o){var i=n instanceof Error?n:new Error(n);if(t)t(i);else {var r='[ERROR] callback-registry: User callback for key "'+o+'" failed: '+i.stack;if(e)switch(e.errorHandling){case"log":return console.error(r);case"silent":return;case"throw":throw new Error(r)}console.error(r);}}return {add:function(e,t,i){var r=n[e];return r||(r=[],n[e]=r),r.push(t),i&&setTimeout(function(){i.forEach(function(i){var r;if(null===(r=n[e])||void 0===r?void 0:r.includes(t))try{Array.isArray(i)?t.apply(void 0,i):t.apply(void 0,[i]);}catch(t){o(t,e);}});},0),function(){var o=n[e];o&&(o=o.reduce(function(e,n,o){return n===t&&e.length===o||e.push(n),e},[]),0===o.length?delete n[e]:n[e]=o);}},execute:function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var r=n[e];if(!r||0===r.length)return [];var a=[];return r.forEach(function(n){try{var i=n.apply(void 0,t);a.push(i);}catch(t){a.push(void 0),o(t,e);}}),a},clear:function(){n={};},clearKey:function(e){n[e]&&delete n[e];}}}Jy.default=Jy;x(Jy);function _y(e){const t=reactExports.useContext(IOConnectContext),n=iv(),[o,i]=reactExports.useState([]),[r,s]=reactExports.useState(0),d="Platform",f=reactExports.useCallback((e="asc")=>{if(null===n)return [];const t=[...o].sort((t,n)=>{const o=(t.title??t.name).toLowerCase(),i=(n.title??n.name).toLowerCase();return "asc"===e?o.localeCompare(i):i.localeCompare(o)});if(!n){const e=t.findIndex(e=>e.name===d);if(-1!==e){const[n]=t.splice(e,1);t.unshift(n);}}return t},[o,n]),m=reactExports.useMemo(()=>f("asc"),[f]),h=reactExports.useMemo(()=>f("desc"),[f]);reactExports.useEffect(()=>{if(null===n||n)return;const e={title:"System",name:d,hidden:!1,userProperties:{hidden:!1}};i(t=>t.some(t=>t.name===e.name)?t:[...t,e]);},[n]),reactExports.useEffect(()=>{if(!t)return;let e,n,o,r=!1;const a=e=>{i(t=>[...t.filter(t=>t.name!==e.name),{title:e.title??e.name,name:e.name,hidden:e.hidden,userProperties:e.userProperties}]);},s=e=>{i(t=>t.filter(t=>t.name!==e.name));},c=e=>{i(t=>t.find(t=>t.name===e.name)?t.map(t=>t.name===e.name?{...t,title:e.title??t.title,hidden:e.hidden??t.hidden,userProperties:e.userProperties??t.userProperties}:t):t);};return (async()=>{const l=await Sv.getApplications(t);if(r)return;i(e=>{const t=new Map;return e.forEach(e=>t.set(e.name,e)),l.forEach(e=>{t.set(e.name,{title:e.title??e.name,name:e.name,hidden:e.hidden,userProperties:e.userProperties});}),Array.from(t.values())});const[u,d,p]=await Promise.all([Sv.onAppAdded(t,a),Sv.onAppRemoved(t,s),Sv.onAppChanged(t,c)]);if(r)return u?.(),d?.(),void p?.();e=u,n=d,o=p;})().catch(e=>{console.error("Failed to initialize apps",e);}),()=>{r=!0,e?.(),n?.(),o?.();}},[t]);return {apps:reactExports.useMemo(()=>{if(!e?.sourceFilter||!Array.isArray(o))return o;const{allowed:t=[],blocked:n=[]}=e.sourceFilter,i=t.includes("*"),r=n.includes("*");let a=0;const c=o.map(e=>{const n=i||t.includes(e.name),o=!r&&n;return o&&a++,{...e,allowed:o}});return s(a),c},[e,o]),allowedApps:r,sortedAppsAsc:m,sortedAppsDesc:h,sortAppsAlphabetically:f}}const tw=reactExports.createContext({allApps:[],settings:{},configuration:{},notifications:[],notificationsCount:0,onClose:()=>{},allApplications:0,clearAll:()=>{},showPanel:()=>{},hidePanel:()=>{},saveFilter:()=>{},clearAllOld:()=>{},notificationStacks:[],saveSetting:()=>{},allowedApplications:0,saveAllFilter:()=>{},isBulkActionsSupported:!1,selectedNotifications:[],selectNotification:()=>{},selectAllNotifications:()=>{},clearMany:()=>{},snooze:()=>{},snoozeMany:()=>{},setState:()=>{},setStates:()=>{},setCount:()=>{}}),nw=()=>reactExports.useContext(tw);function ow({label:t="Allow notifications",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=reactExports.useCallback(e=>{r({enabledNotifications:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.enabledNotifications??!1,...o}):null}function iw({label:t="Allow notification toasts",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({enabledToasts:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.enabledToasts??!1,disabled:c,...o}):null}function rw({label:t="Show notification badge",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv()&&!i.enabledNotifications,c=reactExports.useCallback(e=>{r({showNotificationBadge:e.target.checked});},[r]);return jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.showNotificationBadge??!1,disabled:s,...o})}function aw({label:t="Close notification on click",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({closeNotificationOnClick:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.closeNotificationOnClick??!1,disabled:c,...o}):null}function sw({label:t="Auto hide panel",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=reactExports.useCallback(e=>{r({autoHidePanel:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:c,checked:i.autoHidePanel??!1,...o}):null}const cw=(e,t)=>e?`${e} ${t}${1!==e?"s":""}`:"",lw=e=>{const t=Math.floor(e/60),n=e%60,o=cw(t,"minute"),i=cw(n,"second");return o+(o&&i?" ":"")+i};function uw({className:n,title:o="Hide toasts after",items:i=[15,30,45,60],...r}){const s=S("flex","jc-between","ai-center",n),{settings:c,saveSetting:l}=nw(),u=iv(),d=u&&!c.enabledNotifications,p=reactExports.useCallback((e=15e3)=>{c.toastExpiry!==e&&l({toastExpiry:1e3*e});},[c.toastExpiry,l]);return u?jsxRuntimeExports.jsxs("div",{className:s,...r,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper "+(d?"io-text-disabled":""),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:d,children:[jsxRuntimeExports.jsx(re.Button,{text:lw((c.toastExpiry??0)/1e3)}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:i.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{p(t);},children:lw(t)},t))})})]})]}):null}function dw({className:n,title:o="Stacking",...i}){const r=S("io-notifications-settings-panel-stacking",n),{ToastStacking:a,ToastStackBy:s}=Lw();return iv()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}function pw({label:t="Allow toast stacking",align:n="right",...o}){const{settings:i,saveSetting:r}=nw(),s=iv(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({toastStacking:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(yv,{label:t,align:n,onChange:l,checked:i.toastStacking??!1,disabled:c,...o}):null}const fw={application:"Application",severity:"Priority"},mw=Object.fromEntries(Object.entries(fw).map(([e,t])=>[t,e]));function hw({className:n,title:o="Group by",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=l&&!s.enabledNotifications,d=reactExports.useCallback((e="severity")=>{s.stackBy!==e&&c({stackBy:e.toLowerCase()});},[s.stackBy,c]);if(!l)return null;const p=Object.values(fw);return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:S("io-text-clipper",{"io-text-disabled":u}),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:u,children:[jsxRuntimeExports.jsx(re.Button,{text:fw[s.stackBy??"severity"]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:p.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{const e=mw[t];d(e);},children:t},t))})})]})]})}function gw({className:n,title:o="Placement",...i}){const r=S("io-notifications-settings-panel-placement",n),{PlacementPanel:a,PlacementToasts:s}=Lw();return iv()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}const bw=e=>e.replace(/(^|-)\w/g,e=>e.toUpperCase().replace("-"," "));function vw({className:n,title:o="Panel position",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=reactExports.useCallback(e=>{e||(e="right"),s.placement?.panel!==e&&c({placement:{...s.placement,panel:e.toLowerCase()}});},[s.placement,c]);if(!l)return null;return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper",children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",children:[jsxRuntimeExports.jsx(re.Button,{text:s.placement?.panel?bw(s.placement?.panel):"Right"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:["Right","Left"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{u(t);},children:t},t))})})]})]})}function yw({className:n,title:o="Toasts position",...i}){const r=S("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=nw(),l=iv(),u=reactExports.useCallback(e=>{if(e||(e="bottom-right"),s.placement?.toasts===e)return;const t=e.replace(/\s+/g,"-").toLowerCase();c({placement:{...s.placement,toasts:t}});},[s.placement,c]);if(!l)return null;return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsx("div",{className:"io-text-clipper",children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",children:[jsxRuntimeExports.jsx(re.Button,{text:s.placement?.toasts?bw(s.placement?.toasts):"Bottom Right"}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:["Top Right","Top Left","Bottom Right","Bottom Left"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{u(t);},children:t},t))})})]})]})}function ww({className:t,title:n="Snooze",...o}){const i=S("io-notifications-settings-panel-snooze",t),{SnoozeDuration:r}=Lw(),{settings:a}=nw();return iv()&&a.snooze?.enabled?jsxRuntimeExports.jsx("div",{className:i,...o,children:jsxRuntimeExports.jsx(T,{title:n,children:jsxRuntimeExports.jsx(r,{})})}):null}function Iw({className:n,title:o="Default duration",items:i=[60,120,180,300],...r}){const s=S("flex","jc-between","ai-center",n),{settings:c,saveSetting:l}=nw(),u=iv(),d=u&&!c.enabledNotifications,p=reactExports.useCallback((e=6e4)=>{c.snooze&&c.snooze?.duration!==e&&l({snooze:{...c.snooze,duration:1e3*e}});},[c.snooze,l]);return u&&c.snooze?.enabled?jsxRuntimeExports.jsxs("div",{className:s,...r,children:[jsxRuntimeExports.jsx("div",{className:S("io-text-clipper",{"io-text-disabled":d}),children:jsxRuntimeExports.jsx("span",{children:o})}),jsxRuntimeExports.jsxs(re,{variant:"light",disabled:d,children:[jsxRuntimeExports.jsx(re.Button,{text:lw((c.snooze?.duration??0)/1e3)}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",children:i.map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>{p(t);},children:lw(t)},t))})})]})]}):null}function Cw({className:n,title:o,...i}){const r=S("io-notifications-settings-panel-subscriptions",n),{SubscribeAll:a,SubscribeApp:s,SubscribeMuteAll:c,SubscribeMuteApp:l}=Lw(),{sortAppsAlphabetically:u}=_y(),d=iv(),p=u(),f="io-notifications-subscriptions-grid "+(d?"with-three-columns":"with-two-columns");return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o??(d?"Subscribe & Mute":"Subscribe"),children:[jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Sources"}),jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Subscribe"}),d&&jsxRuntimeExports.jsx("p",{className:"io-text-section",children:"Mute"})]}),jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{children:"All Sources"}),jsxRuntimeExports.jsx(a,{label:""}),d&&jsxRuntimeExports.jsx(c,{label:""})]}),p.map(n=>!n||n.hidden||n?.userProperties?.hidden?null:jsxRuntimeExports.jsxs("div",{className:f,children:[jsxRuntimeExports.jsx("p",{children:n.title??n.name}),jsxRuntimeExports.jsx(s,{app:n,label:""}),d&&jsxRuntimeExports.jsx(l,{app:n,label:""})]},n.name))]})})}function xw({label:t="All apps",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=nw(),c=iv()&&!i.enabledNotifications,l=reactExports.useCallback(e=>{s({subscribe:e.target.checked});},[s]);return jsxRuntimeExports.jsx(yv,{align:n,label:t,onChange:l,checked:(r.sourceFilter?.allowed?.includes("*")&&0===r.sourceFilter?.blocked?.length)??!1,disabled:c,...o})}function Aw({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=nw(),u=iv()&&!s.enabledNotifications,d=reactExports.useCallback((e,t)=>{const n={...c.sourceFilter},o=n.allowed?.indexOf("*");"number"==typeof o&&o>-1&&(n.allowed?.splice(o,1),r.forEach(e=>{e.name!==t.name&&n.allowed?.push(e.name);})),e?(n.allowed=[...new Set([...n.allowed??[],t.name])],n.blocked=n.blocked?.filter(e=>e!==t.name)):(n.allowed=n.allowed?.filter(e=>e!==t.name),n.blocked=[...new Set([...n.blocked??[],t.name])]),n.allowed?.length&&n.blocked?.includes("*")&&n.blocked.splice(n.blocked.indexOf("*"),1),l(n);},[r,c.sourceFilter,l]);return jsxRuntimeExports.jsx(yv,{id:`subscribe-${o.name}`,label:t,align:n,onChange:e=>d(e.target.checked,o),checked:(c.sourceFilter?.allowed?.includes("*")&&!c.sourceFilter?.blocked?.includes(o.name)||c.sourceFilter?.allowed?.includes(o.name))??!1,disabled:u,...i})}function kw({label:t="Mute all",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=nw(),c=iv(),l=c&&(!i.enabledNotifications||-1===r.sourceFilter?.allowed?.indexOf("*")),u=reactExports.useCallback(e=>{s({mute:e.target.checked});},[s]);return c?jsxRuntimeExports.jsx(yv,{align:n,label:t,onChange:u,checked:r.sourceFilter?.muted?.includes("*")??!1,disabled:l??!1,...o}):null}function Sw({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=nw(),u=iv(),d=u&&(!s.enabledNotifications||c.sourceFilter?.blocked?.includes("*")||c.sourceFilter?.blocked?.includes(o.name)||0===c.sourceFilter?.allowed?.length||-1===c.sourceFilter?.allowed?.indexOf(o.name)&&-1===c.sourceFilter?.allowed?.indexOf("*")&&0===c.sourceFilter?.blocked?.length),p=reactExports.useCallback((e,t)=>{const n={...c.sourceFilter},o=n?.muted?.indexOf("*");"number"==typeof o&&o>-1&&(n.muted?.splice(o,1),r.forEach(e=>{e.name===t.name||e.hidden||n.muted?.push(e.name);})),e?n.muted?.push(t.name):n.muted=n.muted?.filter(e=>e!==t.name),l(n);},[r,c.sourceFilter,l]);return !u||o.hidden?null:jsxRuntimeExports.jsx(yv,{id:`mute-${o.name}`,label:t,align:n,onChange:e=>p(e.target.checked,o),checked:(c.sourceFilter?.muted?.includes("*")||c.sourceFilter?.muted?.includes(o.name))??!1,disabled:d??!1,...i})}const Nw={Body:n=>{const{General:o,Placement:i,Stacking:r,Snooze:a,Subscriptions:s}=Lw();return jsxRuntimeExports.jsxs(Bf,{element:jl,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})},General:jy,AllowNotifications:ow,AllowNotificationToasts:iw,ShowNotificationBadge:rw,CloseNotificationOnClick:aw,PanelAutoHide:sw,HideToastsAfter:uw,Stacking:dw,ToastStacking:pw,ToastStackBy:hw,Placement:gw,PlacementPanel:vw,PlacementToasts:yw,Snooze:ww,SnoozeDuration:Iw,Subscriptions:Cw,SubscribeAll:xw,SubscribeApp:Aw,SubscribeMuteAll:kw,SubscribeMuteApp:Sw},Pw=reactExports.createContext(Nw),Ew=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Nw,...n}),[n]);return jsxRuntimeExports.jsx(Pw.Provider,{value:o,children:t})});Ew.displayName="NotificationsSettingsPanelComponentsStoreProvider";const Lw=()=>reactExports.useContext(Pw),Tw=({name:n,value:o})=>jsxRuntimeExports.jsxs("div",{className:"io-profile-section-item",children:[jsxRuntimeExports.jsx("div",{className:"io-profile-section-item-name",children:n}),jsxRuntimeExports.jsx("div",{className:"io-profile-section-item-value",children:o})]}),Rw=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("div",{className:S("io-profile-section-body",n),children:[i&&jsxRuntimeExports.jsx(O,{className:"io-profile-section-title",text:i}),o.map(({name:t,value:n})=>jsxRuntimeExports.jsx(Tw,{name:t,value:n},t))]}),Gw=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("section",{className:S("io-profile-section",n),children:[jsxRuntimeExports.jsx(Rw,{items:o,title:i}),jsxRuntimeExports.jsx(_,{className:"mt-8"})]}),Fw=({title:t="License",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Mw=({title:t="Version",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Dw=({title:t="Plugins",...n})=>jsxRuntimeExports.jsx(Gw,{title:t,...n}),Ww=({className:n})=>{const o=Ba()?"io.Connect Desktop":"io.Connect Browser";return jsxRuntimeExports.jsxs("div",{className:S("io-trademark-container",n),children:[jsxRuntimeExports.jsx("h4",{className:"io-trademark-title",children:o}),jsxRuntimeExports.jsxs("p",{className:"io-trademark-text",children:[o,"® is a registered trademark of"," ",jsxRuntimeExports.jsx("a",{href:"https://www.interop.io",rel:"noreferrer",target:"_blank",children:"Interop Inc©"})," ",(new Date).getFullYear(),". All rights reserved."]})]})},Vw=({avatarInitials:n=(Ba()?"CD":"CB"),className:o,items:i,onLogout:r,title:a})=>jsxRuntimeExports.jsxs("section",{className:S("io-profile-section",o),children:[jsxRuntimeExports.jsxs("div",{className:"io-user-details-container",children:[jsxRuntimeExports.jsx("div",{className:"io-user-avatar",children:n}),jsxRuntimeExports.jsx(Rw,{className:"mt-12",items:i,title:a})]}),r&&jsxRuntimeExports.jsx(D,{className:"io-log-out-button",onClick:r,variant:"primary",icon:"arrow-right-from-bracket",children:"Log out"}),jsxRuntimeExports.jsx(_,{className:"mt-8"})]}),Hw={LicenseSection:Fw,ProductsInfoSection:Mw,PluginsSection:Dw,Trademark:Ww,UserSection:Vw},zw=reactExports.createContext(Hw),Xw=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Hw,...n}),[n]);return jsxRuntimeExports.jsx(zw.Provider,{value:o,children:t})});Xw.displayName="ProfilePanelComponentsStoreProvider";document.querySelector("#root")??document.body;reactExports.createContext({theme:"dark"});const pI="var(--io-neutrals-0)",fI="var(--io-neutrals-900)";function mI(e){let t,n,o;if(e.startsWith("#")){let i=e.slice(1);3===i.length&&(i=i.split("").map(e=>e+e).join("")),t=parseInt(i.substring(0,2),16),n=parseInt(i.substring(2,4),16),o=parseInt(i.substring(4,6),16);}else {if(!e.startsWith("rgb")){const t=document.createElement("canvas").getContext("2d");if(!t)return fI;t.fillStyle=e;return mI(t.fillStyle)}{const i=e.match(/\d+/g)?.map(Number);if(!i||i.length<3)return fI;[t,n,o]=i;}}return (.2126*t+.7152*n+.0722*o)/255>.5?fI:pI}function hI({className:t,channel:n,...o}){const i=S("io-channel-badge",t),r=reactExports.useMemo(()=>mI(n.color),[n.color]);return jsxRuntimeExports.jsx("div",{className:i,style:{color:r,backgroundColor:n.color},"data-testid":`channel-selector-badge-${n.color}`,...o,children:jsxRuntimeExports.jsx("span",{className:"io-channel-selector-badge-label","data-testid":"channel-selector-label",children:n.label})})}function gI(){return jsxRuntimeExports.jsx(N,{variant:"check","data-testid":"channel-selector-channel-selected"})}function bI({channel:o,handleChannelRestricted:i,lockedChannelRestriction:r}){const a=(e,t)=>n=>{n.stopPropagation(),R(n)&&(n.preventDefault(),t||i({...o,[e]:!o[e]}));};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:o.isSelected&&jsxRuntimeExports.jsx("span",{"data-testid":"channel-selector-channel-selected",children:"Active"})}),jsxRuntimeExports.jsx("div",{role:"button",onClick:e=>e.stopPropagation(),"data-testid":"channel-selector-publish-toggle-container",children:jsxRuntimeExports.jsx(yv,{label:"Publish",checked:o.write,onChange:()=>{i({...o,write:!o.write});},onKeyDown:a("write",!o.isSelected||r?.write),onClick:e=>e.stopPropagation(),disabled:!o.isSelected||r?.write})}),jsxRuntimeExports.jsx("div",{role:"button",onClick:e=>e.stopPropagation(),"data-testid":"channel-selector-subscribe-toggle-container",children:jsxRuntimeExports.jsx(yv,{label:"Subscribe",checked:o.read,onChange:()=>{i({...o,read:!o.read});},onKeyDown:a("read",!o.isSelected||r?.read),disabled:!o.isSelected||r?.read})})]})}const vI=reactExports.createContext({});function yI({channel:t,isSelected:n,onChannelSelect:o,onChannelRestrict:i,...r}){const{variant:s,selectedChannels:l,lockedChannelRestrictions:u}=reactExports.useContext(vI),d=n||t.isSelected||l?.includes(t),p=u?.find(e=>e.name===t.name),f=reactExports.useCallback(()=>o?.({...t,isSelected:!d}),[t,o,d]),m=reactExports.useCallback(e=>{const n=e.target;n.closest(".io-toggle")||n.classList.contains("io-toggle")||R(e)&&(e.preventDefault(),o?.({...t,isSelected:!d}));},[t,o,d]),h=reactExports.useCallback(e=>{i?.(e);},[i]);return jsxRuntimeExports.jsx(Z,{prepend:jsxRuntimeExports.jsx(hI,{channel:t}),append:"single"===s||"multi"===s?d&&jsxRuntimeExports.jsx(gI,{}):jsxRuntimeExports.jsx(bI,{channel:t,handleChannelRestricted:h,lockedChannelRestriction:p}),isSelected:d,onClick:f,onKeyDown:m,...r,children:t.name},t.name)}function wI({variant:t,onVariantChange:n,disabled:o=!1}){const i="directionalSingle"===t||"directionalMulti"===t,r=reactExports.useCallback(()=>{n?.(!i);},[i,n]),s=reactExports.useCallback(e=>{e.stopPropagation();},[]),c=reactExports.useCallback(e=>{e.stopPropagation(),R(e)&&(e.preventDefault(),o||r());},[o,r]);return jsxRuntimeExports.jsx(yv,{label:"Directional",align:"right",checked:i,onChange:r,onClick:s,onKeyDown:c,disabled:o,"data-testid":`channel-selector-toggle-${t}`})}const II=reactExports.forwardRef(({className:n,variant:o="single",variantToggle:i=!1,channels:r=[],lockedChannelRestrictions:a=[],onVariantChange:s,onChannelSelect:c,onChannelRestrict:l,...d},p)=>{const f=S("io-list-channels","io-channel-selector-panel",("directionalSingle"===o||"directionalMulti"===o)&&"io-list-channels-directional io-channel-selector-panel-directional",n),m=reactExports.useMemo(()=>({variant:o,selectedChannels:r.filter(e=>e.isSelected),lockedChannelRestrictions:a,onVariantChange:s,onChannelSelect:c,onChannelRestrict:l}),[r,o,a,s,c,l]);return jsxRuntimeExports.jsx(vI.Provider,{value:m,children:jsxRuntimeExports.jsx("div",{className:f,ref:p,children:jsxRuntimeExports.jsxs(K,{...d,children:[jsxRuntimeExports.jsx(K.ItemTitle,{"data-testid":"channel-selector-title",append:i&&jsxRuntimeExports.jsx(wI,{variant:o,onVariantChange:s}),children:{single:"Select Channel",directionalSingle:"Select Directional Channel",multi:"Select Channels",directionalMulti:"Select Directional Channels"}[o]}),r?.map(t=>jsxRuntimeExports.jsx(yI,{channel:t,isSelected:t.isSelected,onChannelSelect:c,onChannelRestrict:l,"data-testid":`channel-selector-channel-${t.name}`},t.name))]})})})});II.displayName="ChannelSelector";const CI=reactExports.forwardRef(({className:t,title:n,ariaLabel:o,onClick:i,onKeyDown:r,children:a,disabled:s=!1,...c},l)=>jsxRuntimeExports.jsx("div",{ref:l,className:S(t,{disabled:s}),title:n,role:"button",tabIndex:s?-1:0,"aria-label":o,"aria-disabled":s,onClick:e=>{!s&&i&&i(e);},onKeyDown:e=>{!s&&r&&r(e);},...c,children:a}));CI.displayName="ChannelSelectorButtonWrapper";function NI({actionButtons:t,actionButtonElementsRefs:n,isAutofocusButton:o,isButtonDisabled:i,onButtonClick:r}){return jsxRuntimeExports.jsx(ae,{"data-testid":"io-dialog-action-buttons-group",align:"right",children:t.map((t,a)=>{const{id:s,text:c,variant:l}=t,u=o(s);return jsxRuntimeExports.jsx(D,{"data-testid":`io-dialog-action-button-${s}`,id:s,ref:e=>{0===a&&(n.current=[]),n.current[a]=e;},className:u?"io-focus-button":void 0,disabled:i(s),onClick:()=>r(t),variant:l,children:c},s)})})}function PI({actionButtons:n,children:o,onCompletion:i,size:r,title:a=(Ba()?"io.Connect Desktop":"io.Connect Browser"),validationErrors:s=[]}){const{actionButtonElementsRefs:c,autofocusButtonId:p,hasAutofocusButtonLostInitialFocus:f}=(e=>{const t=reactExports.useRef([]),n=reactExports.useMemo(()=>e.find(e=>e.autofocus)?.id??null,[e]),o=reactExports.useRef(n),[i,r]=reactExports.useState(!o.current);return reactExports.useLayoutEffect(()=>{if(i)return;if(n!==o.current)return void r(!0);const e=t.current.find(e=>e?.id===n);if(!e)return;e.focus();const a=()=>{r(!0);};return e.addEventListener("blur",a),()=>{e.removeEventListener("blur",a);}},[n,i]),{actionButtonElementsRefs:t,autofocusButtonId:n,hasAutofocusButtonLostInitialFocus:i}})(n),h=()=>{i({isClosed:!0});},g={...r};return jsxRuntimeExports.jsxs(pe,{className:"io-dialog-template",closeFn:h,isOpen:!0,onCancel:e=>{e.preventDefault(),h();},onKeyDown:e=>{!R(e)||s.length||e.target instanceof HTMLButtonElement||" "===e.key&&e.target instanceof HTMLInputElement||i({isEnterPressed:!0});},style:g,title:a,draggable:!0,children:[jsxRuntimeExports.jsx(pe.Body,{children:o}),jsxRuntimeExports.jsx(pe.Footer,{children:jsxRuntimeExports.jsx(NI,{actionButtonElementsRefs:c,actionButtons:n,isAutofocusButton:e=>p===e&&!f,isButtonDisabled:e=>s.some(t=>t.disabledButtonIds.some(t=>t===e)),onButtonClick:({id:e,text:t})=>{i({responseButtonClicked:{id:e,text:t}});}})})]})}function EI({children:t}){return jsxRuntimeExports.jsx("h1",{"data-testid":"io-dialog-heading",className:"io-dialog-template-heading",children:t})}function LI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,text:s,title:c}=i;return jsxRuntimeExports.jsx(PI,{actionButtons:r,onCompletion:n,size:o,title:c,children:jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(EI,{children:a}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:s})]})})})}function BI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,checkbox:s,heading:c,text:u,title:d}=i,[p,f]=reactExports.useState(s.initialValue),m=reactExports.useCallback(()=>f(e=>!e),[]),h=[{id:s.id,type:"checkbox",checked:p}];return jsxRuntimeExports.jsxs(PI,{actionButtons:r,onCompletion:e=>n({...e,inputs:h}),size:o,title:d,children:[jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(EI,{children:c}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:u})]})}),jsxRuntimeExports.jsx(Wf,{"data-testid":`io-dialog-checkbox-${s.id}`,checked:p,id:s.id,label:s.label,name:s.id,onChange:m})]})}function OI({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,input:s,title:c}=i,[u,p]=reactExports.useState(s.initialValue??""),f=reactExports.useRef(null),h=(g=u,!(b=s.validation)||new RegExp(b.regexPattern).test(g)?null:{disabledButtonIds:b.disabledButtonIds,message:b.errorMessage});var g,b;const v=[{id:s.id,type:"text",value:u}];return reactExports.useLayoutEffect(()=>{f.current?.select();},[]),jsxRuntimeExports.jsxs(PI,{actionButtons:r,onCompletion:e=>n({...e,inputs:v}),size:o,title:c,validationErrors:h?[h]:[],children:[jsxRuntimeExports.jsx(pe.Body.Content,{children:jsxRuntimeExports.jsx(EI,{children:a})}),jsxRuntimeExports.jsx(Vf,{"data-testid":`io-dialog-input-${s.id}`,ref:f,errorDataTestId:`io-dialog-input-${s.id}-error-message`,errorMessage:h?.message,id:s.id,label:s.label,name:s.id,onChange:e=>p(e.target.value),placeholder:s.placeholder,type:"text",value:u})]})}const TI=qr({width:ra,height:ra}),RI=Qr().andThen(e=>((e,t)=>{const n=typeof e;return "function"===n?Qr():oa(`The argument provided as "${t}" must be a function, received: ${n}`)})(e,"onCompletion")),GI=qr({autofocus:ta(Ur()),id:ia,text:ia,variant:na(Kr("default"),Kr("primary"),Kr("critical"),Kr("outline"),Kr("link"))}),FI=qr({disabledButtonIds:ea(ia),errorMessage:ia,regexPattern:ia}),MI=qr({actionButtons:ea(GI),heading:$r(),text:$r(),title:ta($r())}),DI=qr({templateName:Kr("noInputsConfirmationDialog"),onCompletion:RI,size:ta(TI),variables:MI}),WI=qr({actionButtons:ea(GI),checkbox:qr({id:ia,initialValue:ta(Ur()),label:ta($r())}),heading:$r(),text:$r(),title:ta($r())}),VI=qr({templateName:Kr("singleCheckboxDialog"),onCompletion:RI,size:ta(TI),variables:WI}),HI=qr({actionButtons:ea(GI),heading:$r(),input:qr({id:ia,initialValue:ta($r()),label:ta($r()),placeholder:ta($r()),validation:ta(FI)}),title:ta($r())}),zI=qr({templateName:Kr("singleTextInputDialog"),onCompletion:RI,size:ta(TI),variables:HI});[{name:"noInputsConfirmationDialog",Dialog:LI,validate:DI.runWithException},{name:"singleCheckboxDialog",Dialog:BI,validate:VI.runWithException},{name:"singleTextInputDialog",Dialog:OI,validate:zI.runWithException}];reactExports.createContext({config:{message:""},theme:"dark",setResult:()=>{}});const oC={env:"",region:"",version:"",buildVersion:"",theme:"",isError:!1,mailingList:"",createJiraTicket:!0,sendEmail:!1,attachments:[],applicationTitle:"",allowEditRecipients:!0,attachmentsViewMode:"category",environmentInfo:"",selectedCategories:[],errorMessage:"",showEnvironmentInfo:!1,context:{},technicalInfo:"",sendEmailClient:"Outlook"};const aC=reactExports.createContext({config:oC,onThemeChanged:()=>{},openUrl:()=>{},submit:()=>Promise.resolve({}),setBounds:()=>{},close:()=>{},showMailingList:!0,setShowMailingList:()=>{},attachmentCategories:[],submitInProgress:!1,setSubmitInProgress:()=>{},submitStatus:{type:"success",title:"",text:""},setSubmitStatus:()=>{},submitCompleted:!1,setSubmitCompleted:()=>{},jiraTicketURL:"",setJiraTicketURL:()=>{},submitFeedback:()=>{}}),sC=()=>reactExports.useContext(aC);function cC({...n}){const{config:o,close:i}=sC(),{applicationTitle:r}=o;return jsxRuntimeExports.jsxs(se,{draggable:!0,...n,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:r?`Feedback Form - ${r}`:"Feedback Form",size:"large"}),jsxRuntimeExports.jsx(se.ButtonGroup,{className:"non-draggable",children:jsxRuntimeExports.jsx(se.ButtonIcon,{variant:"circle",icon:"close",size:"32",onClick:()=>i()})})]})}function lC({className:n,handleSubmit:o,...i}){const r=S("io-panel-body",n),{config:a,submitFeedback:s}=sC(),{IntroField:c,DescriptionField:l,TechInfoField:u,EnvInfoField:d,FileAttachmentsField:p,CategoryAttachmentsField:f,MailListField:m}=NC(),h=o??s,g=`Your feedback will be submitted to the ${a.buildVersion} team and some additional information will be automatically included to help us examine your issue.`;return jsxRuntimeExports.jsxs("form",{className:r,id:"feedback",onSubmit:h,...i,children:[jsxRuntimeExports.jsx(c,{children:jsxRuntimeExports.jsx("p",{children:g})}),jsxRuntimeExports.jsx(m,{}),jsxRuntimeExports.jsx(l,{}),jsxRuntimeExports.jsx(u,{readOnly:!0}),jsxRuntimeExports.jsx(d,{readOnly:!0}),"file"===a.attachmentsViewMode?jsxRuntimeExports.jsx(p,{}):jsxRuntimeExports.jsx(f,{})]})}function uC({...n}){const{FooterButtons:o}=NC(),{openUrl:i,submitInProgress:r,submitStatus:a,jiraTicketURL:s}=sC();return jsxRuntimeExports.jsx(ue,{...n,children:jsxRuntimeExports.jsxs("div",r?{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsx(T,{children:jsxRuntimeExports.jsx("p",{children:a.title})}),jsxRuntimeExports.jsx(Xl,{align:"right",size:"small"})]}:{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsxs(T,{children:[jsxRuntimeExports.jsx("p",{className:"error"===a.type?"io-text-error":"",children:a.title}),s&&jsxRuntimeExports.jsx("a",{href:s,onClick:e=>{e.preventDefault(),i(s);},children:s})]}),jsxRuntimeExports.jsx(o,{})]})})}function dC({className:t,...n}){const{CloseButton:o}=NC(),{close:i}=sC(),r=S("non-draggable",t);return jsxRuntimeExports.jsx(ae,{className:r,...n,children:jsxRuntimeExports.jsx(o,{onClick:()=>i()})})}function pC({className:n,...o}){const{SubmitButton:i,CancelButton:r,CloseButton:a}=NC(),{close:s,submitCompleted:c}=sC();return c?jsxRuntimeExports.jsx(ae,{className:n,...o,children:jsxRuntimeExports.jsx(a,{text:"Close",onClick:()=>s()})}):jsxRuntimeExports.jsxs(ae,{className:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{onClick:()=>s()})]})}function fC({text:t="Submit",...n}){return jsxRuntimeExports.jsx(D,{form:"feedback",type:"submit",variant:"primary",text:t,...n})}function mC({text:t="Cancel",...n}){return jsxRuntimeExports.jsx(D,{variant:"link",text:t,...n})}function hC({...t}){return jsxRuntimeExports.jsx(D,{variant:"primary",...t})}function gC({showField:t=!0,className:n,title:o,hint:i,children:r,...a}){return t?jsxRuntimeExports.jsx(T,{className:n,title:o,hint:i,...a,children:r}):null}function bC({showField:t=!0,className:n,title:o="Description",hint:i,readOnly:r=!1,disabled:a,...s}){return t?jsxRuntimeExports.jsx(T,{className:n,hint:i,title:"",...s,children:jsxRuntimeExports.jsx(ev,{id:"description",name:"description",label:o,readOnly:r,disabled:a})}):null}function vC({showField:t,className:n,title:o="Technical Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=sC(),u=t??l.errorMessage,d=r??l.errorMessage;return u&&d?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(ev,{id:"errorMessage",name:"errorMessage",label:o,value:d,readOnly:a,disabled:s})}):null}function yC({showField:t,className:n,title:o="Environment Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=sC(),u=t??l.showEnvironmentInfo,d=r??l.environmentInfo;return u&&d?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(ev,{id:"environmentInfo",name:"environmentInfo",label:o,value:d,readOnly:a,disabled:s})}):null}function wC({showField:t=!0,className:n,title:o="Attachments",hint:i,readOnly:r=!1,disabled:s,attachments:c,selectedCategories:l,...u}){const d=S("io-block-list-gap",n),{config:p}=sC(),f=c??p.attachments,m=l??p.selectedCategories,h=reactExports.useCallback(e=>!!m&&-1!==m.indexOf(e),[m]);return t?!f||f.length<=0?jsxRuntimeExports.jsx(T,{title:"Attachments",children:jsxRuntimeExports.jsx("p",{children:"No Attachments"})}):jsxRuntimeExports.jsx(T,{className:d,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"file-attachments",children:f.map(t=>jsxRuntimeExports.jsx(Wf,{id:t.id,name:t.id,label:t.name,readOnly:r,disabled:s,defaultChecked:h(t.category)},t.id))})}):null}function IC({showField:t=!0,className:n,title:o="Attachments",hint:i,readOnly:r=!1,disabled:s,categories:c,selectedCategories:l,...u}){const{config:d,attachmentCategories:p}=sC(),f=c??p,m=l??d.selectedCategories,h=reactExports.useCallback(e=>!!m&&-1!==m.indexOf(e),[m]);return t?!f||f.length<=0?jsxRuntimeExports.jsx("p",{children:"No Attachments"}):jsxRuntimeExports.jsx(T,{className:n,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"category-attachments",children:f.map(t=>jsxRuntimeExports.jsx(yv,{id:t,name:t,align:"right",label:t,readOnly:r,disabled:s,defaultChecked:h(t)},t))})}):null}function CC({className:n,title:o,hint:i,showField:r=!0,showJiraTicketField:a,jiraTicketLabel:s="Create Jira Ticket",showSendEmailField:c,sendEmailLabel:l="Send Email",readOnly:u=!1,disabled:d,...p}){const f=S("io-block-list-gap",n),{config:m,showMailingList:h,setShowMailingList:g}=sC();if(!r)return null;const b=a??m.createJiraTicket,v=c??m.sendEmail;return jsxRuntimeExports.jsxs(T,{className:f,hint:i,title:o,...p,children:[b&&jsxRuntimeExports.jsx(yv,{id:"createJiraTicket",name:"createJiraTicket",label:s,align:"right",readOnly:u,disabled:d,defaultChecked:b}),v&&jsxRuntimeExports.jsx(yv,{onChange:()=>{g(!h);},id:"sendEmail",name:"sendEmail",label:l,align:"right",readOnly:u,disabled:d,defaultChecked:v})]})}function xC({showField:t=!0,className:n,title:o="Email List",hint:i="Separate with commas or semicolons.",placeholder:r="john.doe@somedomain.com; jane.doe@otherdomain.com",readOnly:a,disabled:s,...c}){const{config:l,showMailingList:u}=sC(),d=t??l.sendEmail,p=a??!1===l.allowEditRecipients;return d&&u?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(Vf,{id:"mailingList",name:"mailingList",label:o,placeholder:r,readOnly:p,disabled:s,defaultValue:l.mailingList??""})}):null}const AC={Header:cC,Body:lC,Footer:uC,HeaderButtons:dC,FooterButtons:pC,SubmitButton:fC,CancelButton:mC,CloseButton:hC,IntroField:gC,DescriptionField:bC,TechInfoField:vC,EnvInfoField:yC,FileAttachmentsField:wC,CategoryAttachmentsField:IC,SettingsField:CC,MailListField:xC},kC=reactExports.createContext(AC),SC=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...AC,...n}),[n]);return jsxRuntimeExports.jsx(kC.Provider,{value:o,children:t})});function NC(e){return {...reactExports.useContext(kC),...e}}SC.displayName="ComponentsStore";const RC=reactExports.createContext({variant:"share-layout",id:void 0,name:"",setName:()=>{},viewers:[],setViewers:()=>{},editors:[],setEditors:()=>{},publishWithContext:!1,setPublishWithContext:()=>{},updateWorkspaceSettings:!1,setUpdateWorkspaceSettings:()=>{},keepPrivateCopy:!0,setKeepPrivateCopy:()=>{},isSettingsVisible:!1,showSettings:()=>{},hideSettings:()=>{},folder:"",setFolder:()=>{},icon:"",setIcon:()=>{},description:"",setDescription:()=>{},hasChanges:!1,canPublish:!1,canUpdate:!1,sharingValidationError:void 0,publish:()=>{},applySettings:()=>{},close:()=>{}}),FC=()=>reactExports.useContext(RC);function MC(e){return e.startsWith("manage-")?"Manage":e.startsWith("details-")?"Details":e.startsWith("edit-")?"Edit":"Publish"}function DC({title:n,...o}){const{HeaderButtons:i}=ux(),{variant:r,name:a}=FC(),s=n??(a?`${MC(r)} "${a}"`:function(e){return `${MC(e)} ${e.endsWith("-workspace")?"Workspace":"Layout"}`}(r));return jsxRuntimeExports.jsxs(se,{draggable:!0,...o,children:[jsxRuntimeExports.jsx(se.Title,{tag:"h1",text:s,size:"large"}),jsxRuntimeExports.jsx(i,{})]})}function WC({className:o,onSubmit:i,...r}){const a=S("io-panel-body",o),{Name:s,Viewers:c,Editors:l,Folder:u,Icon:d,Description:p,KeepPrivateCopy:f}=ux(),{variant:m}=FC(),h=m.startsWith("share-"),g=m.startsWith("details-"),b=m.startsWith("edit-");return jsxRuntimeExports.jsx(Bf,{children:jsxRuntimeExports.jsx("form",{className:a,onSubmit:e=>{e.preventDefault(),i?.(e);},...r,children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,b?{children:[jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{}),jsxRuntimeExports.jsx(p,{})]}:{children:[!g&&jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{}),g&&jsxRuntimeExports.jsx(p,{}),h&&jsxRuntimeExports.jsx(f,{})]})})})}function VC({...n}){const{FooterButtons:o}=ux(),{sharingValidationError:i}=FC();return jsxRuntimeExports.jsxs(ue,{...n,children:[i&&jsxRuntimeExports.jsxs("p",{className:"io-layout-sharing-validation-error",children:[jsxRuntimeExports.jsx(N,{variant:"circle-info"}),i]}),jsxRuntimeExports.jsx(o,{})]})}function HC({className:n,title:o="Additional Settings",...i}){const r=S("io-layout-sharing-settings-panel",n),{folder:a,icon:s,description:c,applySettings:u,hideSettings:d,close:p}=FC(),{Folder:f,Icon:m,Description:h}=ux(),[g,b]=reactExports.useState(a),[v,y]=reactExports.useState(s),[w,I]=reactExports.useState(c);return jsxRuntimeExports.jsxs(Yl,{className:r,...i,children:[jsxRuntimeExports.jsxs(Yl.Header,{children:[jsxRuntimeExports.jsx(Yl.Header.ButtonIcon,{className:"non-draggable",variant:"circle",icon:"arrow-left-long",size:"32",onClick:d}),jsxRuntimeExports.jsx(Yl.Header.Title,{tag:"h1",text:o,size:"large"}),jsxRuntimeExports.jsx(Yl.Header.ButtonGroup,{children:jsxRuntimeExports.jsx(Yl.Header.ButtonIcon,{variant:"circle",icon:"close",size:"32",onClick:p})})]}),jsxRuntimeExports.jsxs(Bf,{element:Yl.Body,children:[jsxRuntimeExports.jsx(f,{value:g,onChange:e=>b(e.target.value)}),jsxRuntimeExports.jsx(m,{value:v,onChange:e=>y(e.target.value)}),jsxRuntimeExports.jsx(h,{value:w,onChange:e=>I(e.target.value)})]}),jsxRuntimeExports.jsx(Yl.Footer,{children:jsxRuntimeExports.jsx(ae,{align:"right",children:jsxRuntimeExports.jsx(D,{variant:"primary",text:"Apply",onClick:()=>u(g,v,w)})})})]})}function zC({className:t,...n}){const o=S("non-draggable",t),{HeaderCloseButton:i}=ux();return jsxRuntimeExports.jsx(ae,{className:o,...n,children:jsxRuntimeExports.jsx(i,{})})}function XC({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const{close:a}=FC();return jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,onClick:i??a,...r})}function ZC({className:n,...o}){const i=S("flex ai-center jc-between",n),{MoreSettingsButton:r,PublishButton:a,UpdateButton:s,CloseButton:c}=ux(),{variant:l}=FC(),u=l.startsWith("manage-"),d=l.startsWith("edit-"),p=u||d;return jsxRuntimeExports.jsxs("div",{className:i,...o,children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsxs(ae,{align:"right",children:[jsxRuntimeExports.jsx(p?s:a,{}),jsxRuntimeExports.jsx(c,{})]})]})}function jC({showButton:t,variant:n="link",text:o="More settings",onClick:i,...r}){const{variant:a,showSettings:s}=FC(),c=a.startsWith("details-"),l=a.startsWith("edit-");return t??(!c&&!l)?jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??s,...r}):null}function JC({showButton:t,variant:n="primary",text:o="Publish",onClick:i,disabled:r,...a}){const{variant:s,publish:c,canPublish:l}=FC(),u=s.startsWith("details-");if(!(t??!u))return null;return jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??c,disabled:r??!l,...a})}function YC({showButton:t,variant:n="primary",text:o="Update",onClick:i,disabled:r,...a}){const{publish:s,canUpdate:c}=FC();if(!(t??!0))return null;return jsxRuntimeExports.jsx(D,{variant:n,text:o,onClick:i??s,disabled:r??!c,...a})}function $C({text:t="Close",variant:n="outline",onClick:o,...i}){const{close:r}=FC();return jsxRuntimeExports.jsx(D,{variant:n,text:t,onClick:o??r,...i})}const _C={"share-layout":"Enter a Layout name","manage-layout":"Saved Layout name","share-workspace":"Enter a Workspace name","manage-workspace":"Saved Workspace name"};function UC({id:n="layout-sharing-name",label:o="Name",placeholder:i,value:r,showField:a=!0,readOnly:s,disabled:c,...l}){const{variant:u,name:d,setName:p}=FC(),f=u.startsWith("manage-");if(!a)return null;const m=i??_C[u]??"",h=!f;return jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-name-field",children:[jsxRuntimeExports.jsxs("div",{className:"flex ai-center jc-between",children:[jsxRuntimeExports.jsx("label",{htmlFor:n,children:o}),h&&jsxRuntimeExports.jsxs("p",{children:["Required ",jsxRuntimeExports.jsx("span",{className:"io-text-danger",children:"*"})]})]}),jsxRuntimeExports.jsx(Vf,{id:n,name:n,required:h,placeholder:m,value:r??d,onChange:e=>p(e.target.value),readOnly:s,disabled:c,...l})]})}function QC(){const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(!1),[o,i]=reactExports.useState(!0);reactExports.useEffect(()=>{if(i(!0),!e)return console.warn("useManagerQueryUsers: io context is not available."),void i(!1);const t=e?.manager;if(!t?.checkCapability)return console.warn("useManagerQueryUsers: io.manager.checkCapability is not available."),void i(!1);let o=!1;return (async()=>{try{const[e,i]=await Promise.all([t.checkCapability("ADVANCED_LAYOUTS"),t.checkCapability("API_METHOD_USERS_QUERY")]);if(o)return;n(!0===e?.available&&!0===i?.available);}catch(e){if(o)return;console.error("useManagerQueryUsers: Failed to check capabilities.",e),n(!1);}finally{o||i(!1);}})(),()=>{o=!0;}},[e]);const r=reactExports.useCallback(async n=>{if(!t)return console.warn("useManagerQueryUsers: Required capabilities are not available."),{users:[]};const o=e?.manager;return o.users.query(n)},[e,t]);return {isSupported:t,isLoading:o,queryUsers:r}}function KC(){const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState(!1),[o,i]=reactExports.useState(!0);reactExports.useEffect(()=>{if(i(!0),!e)return console.warn("useManagerQueryGroups: io context is not available."),void i(!1);const t=e?.manager;if(!t?.checkCapability)return console.warn("useManagerQueryGroups: io.manager.checkCapability is not available."),void i(!1);let o=!1;return (async()=>{try{const[e,i]=await Promise.all([t.checkCapability("ADVANCED_LAYOUTS"),t.checkCapability("API_METHOD_GROUPS_QUERY")]);if(o)return;n(!0===e?.available&&!0===i?.available);}catch(e){if(o)return;console.error("useManagerQueryGroups: Failed to check capabilities.",e),n(!1);}finally{o||i(!1);}})(),()=>{o=!0;}},[e]);const r=reactExports.useCallback(async n=>{if(!t)return console.warn("useManagerQueryGroups: Required capabilities are not available."),{groups:[]};const o=e?.manager;return o.groups.query(n)},[e,t]);return {isSupported:t,isLoading:o,queryGroups:r}}const qC=t=>jsxRuntimeExports.jsx("div",{className:t.hasValue?"io-layout-sharing-users-with-access-input":void 0,style:t.hasValue?void 0:{display:"contents"},children:jsxRuntimeExports.jsx(Qg.Input,{...t,placeholder:t.hasValue?t.selectProps.placeholder:void 0})});function ex({id:n="layout-sharing-users-with-access",label:o="Viewers",placeholder:i="Add a user name or user group",options:r=[],value:a,showField:s=!0,disabled:c,...u}){const{variant:d,viewers:f,setViewers:m}=FC(),[h,g]=reactExports.useState(""),b=d.startsWith("details-"),{isSupported:v,isLoading:y,queryUsers:w}=QC(),{isSupported:I,isLoading:C,queryGroups:x}=KC(),[A,k]=reactExports.useState([]),[S,N]=reactExports.useState([]),[P,E]=reactExports.useState(!1),L=nv(h,400),B=v||I||y||C;return reactExports.useEffect(()=>{E(h.length>=3&&B);},[h,B]),reactExports.useEffect(()=>{if(L.length<3)return k([]),void N([]);let e=!1;const t=[];return v&&t.push(w({name:L}).then(t=>{e||k(t.users.map(e=>({value:e.id,label:e.id,entityType:"user"})));}).catch(()=>{e||k([]);})),I&&t.push(x({name:L}).then(t=>{e||N(t.groups.map(e=>({value:e.name,label:e.name,entityType:"group"})));}).catch(()=>{e||N([]);})),Promise.allSettled(t).then(()=>{e||E(!1);}),()=>{e=!0;}},[L,v,I,w,x]),s?jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-users-with-access-field",style:b?{pointerEvents:"none"}:void 0,children:[jsxRuntimeExports.jsx("div",{className:"flex ai-center jc-between",children:jsxRuntimeExports.jsx("label",{htmlFor:n,children:o})}),jsxRuntimeExports.jsx(qb,{isMulti:!0,isSearchable:!0,id:n,name:n,placeholder:i,options:B?[...A,...S]:r,menuIsOpen:B?h.length>=3:void 0,value:a??f,onChange:e=>m(e),onInputChange:g,backspaceRemovesValue:!1,isLoading:P,components:{...b?{}:{Input:qC},DropdownIndicator:null},disabled:c,...u})]}):null}const tx=t=>jsxRuntimeExports.jsx("div",{className:t.hasValue?"io-layout-sharing-users-with-access-input":void 0,style:t.hasValue?void 0:{display:"contents"},children:jsxRuntimeExports.jsx(Qg.Input,{...t,placeholder:t.hasValue?t.selectProps.placeholder:void 0})});function nx({id:n="layout-sharing-users-with-edit-permissions",label:o="Editors",placeholder:i="Add a user name or user group",options:r=[],value:a,showField:s=!0,disabled:c,...u}){const{variant:d,editors:f,setEditors:m}=FC(),[h,g]=reactExports.useState(""),b=d.startsWith("details-"),{isSupported:v,isLoading:y,queryUsers:w}=QC(),{isSupported:I,isLoading:C,queryGroups:x}=KC(),[A,k]=reactExports.useState([]),[S,N]=reactExports.useState([]),[P,E]=reactExports.useState(!1),L=nv(h,400),B=v||I||y||C;return reactExports.useEffect(()=>{E(h.length>=3&&B);},[h,B]),reactExports.useEffect(()=>{if(L.length<3)return k([]),void N([]);let e=!1;const t=[];return v&&t.push(w({name:L}).then(t=>{e||k(t.users.map(e=>({value:e.id,label:e.id,entityType:"user"})));}).catch(()=>{e||k([]);})),I&&t.push(x({name:L}).then(t=>{e||N(t.groups.map(e=>({value:e.name,label:e.name,entityType:"group"})));}).catch(()=>{e||N([]);})),Promise.allSettled(t).then(()=>{e||E(!1);}),()=>{e=!0;}},[L,v,I,w,x]),s?jsxRuntimeExports.jsxs(T,{className:"io-layout-sharing-users-with-edit-permissions-field",style:b?{pointerEvents:"none"}:void 0,children:[jsxRuntimeExports.jsx("div",{className:"flex ai-center jc-between",children:jsxRuntimeExports.jsx("label",{htmlFor:n,children:o})}),jsxRuntimeExports.jsx(qb,{isMulti:!0,isSearchable:!0,id:n,name:n,placeholder:i,options:B?[...A,...S]:r,menuIsOpen:B?h.length>=3:void 0,value:a??f,onChange:e=>m(e),onInputChange:g,backspaceRemovesValue:!1,isLoading:P,components:{...b?{}:{Input:tx},DropdownIndicator:null},disabled:c,...u})]}):null}function ox({id:t="layout-sharing-folder",label:n="Folder",placeholder:o="Enter folder name",value:i,showField:r=!0,...a}){const{folder:s,setFolder:c}=FC();return r?jsxRuntimeExports.jsx(Vf,{id:t,name:t,label:n,placeholder:o,value:i??s,onChange:e=>c(e.target.value),...a}):null}function ix({id:t="layout-sharing-icon",label:n="Icon",placeholder:o="Paste an icon URL",value:i,showField:r=!0,...a}){const{icon:s,setIcon:c}=FC();return r?jsxRuntimeExports.jsx(Vf,{id:t,name:t,label:n,placeholder:o,value:i??s,onChange:e=>c(e.target.value),...a}):null}function rx({id:t="layout-sharing-description",label:n="Description",placeholder:o,value:i,showField:r=!0,...a}){const{variant:s,description:c,setDescription:l}=FC(),u=s.startsWith("details-"),d=o??(s.includes("workspace")?"Enter a Workspace description":"Enter a Layout description");return r?jsxRuntimeExports.jsx(ev,{id:t,style:u?{pointerEvents:"none"}:void 0,name:t,label:n,placeholder:d,value:i??c,onChange:e=>l(e.target.value),readOnly:u,...a}):null}function ax({id:t="layout-sharing-keep-private-copy",label:n="Keep a private copy",showField:o=!0,...i}){const{keepPrivateCopy:r,setKeepPrivateCopy:a}=FC();return o?jsxRuntimeExports.jsx(T,{className:"io-layout-sharing-keep-private-copy-field",children:jsxRuntimeExports.jsx(yv,{id:t,name:t,label:n,checked:r,onChange:e=>a(e.target.checked),...i})}):null}const sx={Header:DC,Body:WC,Footer:VC,Settings:HC,HeaderButtons:zC,HeaderCloseButton:XC,FooterButtons:ZC,MoreSettingsButton:jC,PublishButton:JC,UpdateButton:YC,CloseButton:$C,Name:UC,Viewers:ex,Editors:nx,Folder:ox,Icon:ix,Description:rx,KeepPrivateCopy:ax},cx=reactExports.createContext(sx),lx=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...sx,...n}),[n]);return jsxRuntimeExports.jsx(cx.Provider,{value:o,children:t})});function ux(e){return {...reactExports.useContext(cx),...e}}lx.displayName="ComponentsStore";var hx={exports:{}};var Cx,xx,Lx,Bx;
1568
+ function Gx(){if(xx)return Cx;xx=1;return Cx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}hx.exports=function(){if(Bx)return Lx;Bx=1;var e=Gx();function t(){}function n(){}return n.resetWarningCache=t,Lx=function(){function o(t,n,o,i,r,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Lx}()();var Dx=x(hx.exports);function Wx(e){return Wx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wx(e)}var Vx="object"===("undefined"==typeof window?"undefined":Wx(window))&&window.Element||function(){};Dx.oneOfType([Dx.string,Dx.func,function(e,t,n){if(!(e[t]instanceof Vx))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},Dx.shape({current:Dx.any})]);var Hx=Dx.oneOfType([Dx.func,Dx.string,Dx.shape({$$typeof:Dx.symbol,render:Dx.func}),Dx.arrayOf(Dx.oneOfType([Dx.func,Dx.string,Dx.shape({$$typeof:Dx.symbol,render:Dx.func})]))]),zx=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Xx="entering",Zx="entered",jx="exiting",Jx="exited";var Yx=!1;var _x=React.createContext(null),Ux="unmounted",Qx="exited",Kx="entering",qx="entered",eA="exiting",tA=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var i,r=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?r?(i=Qx,o.appearStatus=Kx):i=qx:i=t.unmountOnExit||t.mountOnEnter?Ux:Qx,o.state={status:i},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tm(e,t);}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ux?{status:Qx}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus);},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Kx&&n!==qx&&(t=Kx):n!==Kx&&n!==qx||(t=eA);}this.updateStatus(!1,t);},n.componentWillUnmount=function(){this.cancelNextCallback();},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Kx){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this);n&&function(e){e.scrollTop;}(n);}this.performEnter(e);}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qx&&this.setState({status:Ux});},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[w.findDOMNode(this),o],r=i[0],a=i[1],s=this.getTimeouts(),c=o?s.appear:s.enter;!e&&!n||Yx?this.safeSetState({status:qx},function(){t.props.onEntered(r);}):(this.props.onEnter(r,a),this.safeSetState({status:Kx},function(){t.props.onEntering(r,a),t.onTransitionEnd(c,function(){t.safeSetState({status:qx},function(){t.props.onEntered(r,a);});});}));},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:w.findDOMNode(this);t&&!Yx?(this.props.onExit(o),this.safeSetState({status:eA},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Qx},function(){e.props.onExited(o);});});})):this.safeSetState({status:Qx},function(){e.props.onExited(o);});},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null);},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t);},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o));},this.nextCallback.cancel=function(){n=!1;},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=i[0],a=i[1];this.props.addEndListener(r,a);}null!=e&&setTimeout(this.nextCallback,e);}else setTimeout(this.nextCallback,0);},n.render=function(){var e=this.state.status;if(e===Ux)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=Uf(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(_x.Provider,{value:null},"function"==typeof n?n(e,o):React.cloneElement(React.Children.only(n),o))},t}(React.Component);function nA(){}function oA(e){return oA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oA(e)}tA.contextType=_x,tA.propTypes={},tA.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nA,onEntering:nA,onEntered:nA,onExit:nA,onExiting:nA,onExited:nA},tA.UNMOUNTED=Ux,tA.EXITED=Qx,tA.ENTERING=Kx,tA.ENTERED=qx,tA.EXITING=eA;var iA,rA=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"];function aA(){return aA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);}return e},aA.apply(this,arguments)}function sA(e,t){if(null==e)return {};var n,o,i=function(e,t){if(null==e)return {};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);}return i}function cA(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o);}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lA(e,t){return lA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lA(e,t)}function uA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}();return function(){var n,o=pA(e);if(t){var i=pA(this).constructor;n=Reflect.construct(o,arguments,i);}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===oA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dA(e)}(this,n)}}function dA(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pA(e){return pA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pA(e)}function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o);}return n}function mA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(t){hA(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function hA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gA=mA(mA({},tA.propTypes),{},{horizontal:Dx.bool,isOpen:Dx.bool,children:Dx.oneOfType([Dx.arrayOf(Dx.node),Dx.node]),tag:Hx,className:Dx.node,navbar:Dx.bool,cssModule:Dx.object,innerRef:Dx.shape({current:Dx.object})}),bA=mA(mA({},tA.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:350}),vA=(hA(iA={},Xx,"collapsing"),hA(iA,Zx,"collapse show"),hA(iA,jx,"collapsing"),hA(iA,Jx,"collapse"),iA);var yA=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lA(e,t);}(t,reactExports.Component);var e=uA(t);function t(n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=e.call(this,n)).state={dimension:null},o.nodeRef=n.innerRef||React.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(e){o[e]=o[e].bind(dA(o));}),o}return cA(t,[{key:"onEntering",value:function(e,t){var n=this.getNode();this.setState({dimension:this.getDimension(n)}),this.props.onEntering(n,t);}},{key:"onEntered",value:function(e,t){var n=this.getNode();this.setState({dimension:null}),this.props.onEntered(n,t);}},{key:"onExit",value:function(){var e=this.getNode();this.setState({dimension:this.getDimension(e)}),this.props.onExit(e);}},{key:"onExiting",value:function(){var e=this.getNode();this.getDimension(e),this.setState({dimension:0}),this.props.onExiting(e);}},{key:"onExited",value:function(){var e=this.getNode();this.setState({dimension:null}),this.props.onExited(e);}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(e){return this.props.horizontal?e.scrollWidth:e.scrollHeight}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,o=t.horizontal,r=t.isOpen,a=t.className,s=t.navbar,c=t.cssModule,l=t.children;t.innerRef;var u,d,p,f=sA(t,rA),m=this.state.dimension,h=function(e,t){for(var n,o=Array.isArray(t)?t:[t],i=o.length,r={};i>0;)r[n=o[i-=1]]=e[n];return r}(f,zx),g=(u=f,d=zx,p={},Object.keys(u).forEach(function(e){-1===d.indexOf(e)&&(p[e]=u[e]);}),p);return React.createElement(tA,aA({},h,{in:r,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var r=function(e){return vA[e]||"collapse"}(t),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return t?e.split(" ").map(function(e){return t[e]||e}).join(" "):e}(S(a,o&&"collapse-horizontal",r,s&&"navbar-collapse"),c),d=null===m?null:hA({},o?"width":"height",m);return React.createElement(n,aA({},g,{style:mA(mA({},g.style),d),className:u,ref:e.nodeRef}),l)})}}]),t}();yA.propTypes=gA,yA.defaultProps=bA;reactExports.createContext(void 0);reactExports.createContext(void 0);reactExports.createContext(void 0);var Ak=function(e){return function(e){return !!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return "[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===kk}(e)}(e)};var kk="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Sk(e,t){return !1!==t.clone&&t.isMergeableObject(e)?Bk((n=e,Array.isArray(n)?[]:{}),e,t):e;var n;}function Nk(e,t,n){return e.concat(t).map(function(e){return Sk(e,n)})}function Pk(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function Ek(e,t){try{return t in e}catch(e){return !1}}function Lk(e,t,n){var o={};return n.isMergeableObject(e)&&Pk(e).forEach(function(t){o[t]=Sk(e[t],n);}),Pk(t).forEach(function(i){(function(e,t){return Ek(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(Ek(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return Bk;var n=t.customMerge(e);return "function"==typeof n?n:Bk}(i,n)(e[i],t[i],n):o[i]=Sk(t[i],n));}),o}function Bk(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Nk,n.isMergeableObject=n.isMergeableObject||Ak,n.cloneUnlessOtherwiseSpecified=Sk;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Lk(e,t,n):Sk(t,n)}Bk.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Bk(e,n,t)},{})};x(Bk);const Rk=reactExports.forwardRef((t,n)=>{const{onSearch:o,searchTerm:i,onClear:r,className:a}=t,s=reactExports.useContext(IOConnectContext);return reactExports.useEffect(()=>{s&&"search"in s&&s.search?.setDebounceMS(450);},[s]),jsxRuntimeExports.jsx(Vf,{id:"search-input",className:S("search-bar",a),ref:n,placeholder:"Find anything",value:i,onChange:o,autoComplete:"off",iconPrepend:"search",iconAppend:i.length?"close":void 0,iconAppendOnClick:r})});Rk.displayName="SearchBar";reactExports.createContext(null);const _k={APPLICATION:"application",WORKSPACE:"workspace",LAYOUT:"layout"};reactExports.createContext(null);const aS=reactExports.createContext({searchQuery:"",setSearch:()=>{},isPanelVisible:!1,sortNotificationsBy:"newest",setSortBy:()=>{},viewNotificationsBy:"all",setViewBy:()=>{},isBulkActionsVisible:!1,showBulkActions:()=>{},hideBulkActions:()=>{}}),sS=()=>reactExports.useContext(aS);function cS({title:n,onOpenSettings:o,onClose:i,...r}){const{HeaderCaptionTitle:a,HeaderCaptionCount:s,HeaderCaptionButtonSettings:c,HeaderCaptionButtonClose:l,HeaderActions:u,HeaderBulkActions:d,HeaderSearch:p}=qS(),{isBulkActionsSupported:f,notificationsCount:m}=nw(),{isBulkActionsVisible:h}=sS(),g=iv();return jsxRuntimeExports.jsxs(Zl,{...r,children:[jsxRuntimeExports.jsxs("div",{className:"io-panel-header-caption",children:[jsxRuntimeExports.jsx(a,{title:n}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsxs(Zl.ButtonGroup,{children:[g&&jsxRuntimeExports.jsx(c,{onClick:o}),jsxRuntimeExports.jsx(l,{onClick:i})]})]}),jsxRuntimeExports.jsx(p,{}),f?jsxRuntimeExports.jsxs("div",{className:`io-panel-header-actions-wrapper ${h&&m>0?"io-panel-header-bulk-actions-opened":""} `,children:[jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{})]}):jsxRuntimeExports.jsx(u,{})]})}function lS({text:n="Notifications",counter:o,...i}){const{notificationsCount:r}=nw();return jsxRuntimeExports.jsx(O,{text:n,size:"large",...i,children:(o??!0)&&jsxRuntimeExports.jsxs("span",{children:["(",r,")"]})})}const uS="newest",dS="oldest",pS="severity",fS=["None","Low","Medium","High","Critical"],mS={key:uS,descending:!0},hS=e=>[...e].sort((e,t)=>(t.timestamp||0)-(e.timestamp||0)),gS=e=>[...e].sort((e,t)=>(e.timestamp||0)-(t.timestamp||0)),bS=(e,t)=>{const n=fS[0];return [...e].sort((e,o)=>{const i=fS.indexOf(e.severity||n),r=fS.indexOf(o.severity||n);return (t?-1:1)*(i-r)})},vS={[uS]:hS,[dS]:gS,[pS]:bS},yS={severity:"Priority",newest:"Newest",oldest:"Oldest"};function wS({...t}){const[n,o]=reactExports.useState([]),{NotificationsList:i,Notification:r}=qS(),{notifications:a,setCount:s,notificationsCount:c}=nw(),{sortNotificationsBy:f,viewNotificationsBy:m,searchQuery:h}=sS(),g=reactExports.useRef(null),b=nv(h),v=reactExports.useMemo(()=>{const e=((e,t)=>{if(!e)return [];switch(t){case"all":default:return e;case"unread":return e.filter(e=>"Active"===e.state||"Stale"===e.state);case"read":return e.filter(e=>"Acknowledged"===e.state||"Seen"===e.state);case"snoozed":return e.filter(e=>"Snoozed"===e.state)}})(a,m);return e.filter(e=>e.title.toLowerCase().includes(b.toLowerCase())||e.source?.toLowerCase().includes(b.toLowerCase())||e.body?.toLowerCase().includes(b.toLowerCase()))},[b,a,m]);return reactExports.useEffect(()=>{switch(f){case"newest":o(hS(v));break;case"oldest":o(gS(v));break;case"severity":o(bS(v,!0));break;default:o(v);}s(v.length);},[v,f,s]),reactExports.useEffect(()=>{g.current&&g.current?.scrollTo({top:0,behavior:"smooth"});},[b,c,f,m]),jsxRuntimeExports.jsx(Bf,{ref:g,element:jl,elementProps:t,children:jsxRuntimeExports.jsx(i,{notifications:n,Notification:r})})}function IS({...t}){const{FooterButtons:n}=qS();return jsxRuntimeExports.jsx(Jl,{...t,children:jsxRuntimeExports.jsx(n,{})})}function CS({className:n,...o}){const{FooterButtonClearAll:i,FooterButtonClearAllOld:r}=qS(),{notifications:a}=nw(),[s,c]=reactExports.useState(!1);return reactExports.useEffect(()=>{a.filter(e=>"Stale"===e.state||"Acknowledged"===e.state).length>0?c(!0):c(!1);},[a]),jsxRuntimeExports.jsxs(ae,{className:n,align:"right",...o,children:[jsxRuntimeExports.jsx(r,{disabled:!s}),jsxRuntimeExports.jsx(i,{disabled:a.length<=0})]})}function xS({text:t="Clear All",...n}){const{clearAll:o}=nw();return jsxRuntimeExports.jsx(D,{text:t,onClick:()=>{o();},...n})}function AS({text:t="Clear Old",...n}){const{clearAllOld:o}=nw();return jsxRuntimeExports.jsx(D,{text:t,onClick:()=>{o();},...n})}function kS(e){const t=iv(),{onClose:n,settings:o}=nw(),{isPanelVisible:i}=sS(),{id:r,onClick:s,updateState:c}=e,l=reactExports.useCallback(async()=>{if(!s)return;if(!t){try{await s({close:!0});}catch(e){console.error(e);}return void n(r)}const e=o?.toastStacking??!1;let a;a=i?o?.closeNotificationOnClick??!0:!e&&null;try{null!==a?await s({close:a}):(await s({close:!1}),await c("Acknowledged"));}catch(e){console.error(e);}},[t,r,i,s,n,c,o?.closeNotificationOnClick,o?.toastStacking]),u=reactExports.useCallback(async e=>{const t=e.target;t.closest("button")||t.closest("[role='button']")||t.closest("a")||t.closest(".io-dropdown-menu")||await l();},[l]);return {handleClick:l,handleWrapperClick:u}}function SS({className:n,notification:o,onClick:i,...r}){const a=S("io-notification-header",n),{HeaderCount:s,HeaderBadge:c,HeaderTitle:l,HeaderTimestamp:u,HeaderButtonSnooze:d,HeaderButtonClose:p}=XS(),{handleWrapperClick:f}=kS(o);return jsxRuntimeExports.jsxs("div",{className:a,onClick:async e=>{await f(e),i?.(e);},...r,children:[jsxRuntimeExports.jsx(c,{notification:o}),jsxRuntimeExports.jsx(s,{notification:o}),jsxRuntimeExports.jsx(l,{notification:o}),jsxRuntimeExports.jsx(u,{notification:o}),jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(d,{notification:o}),jsxRuntimeExports.jsx(p,{notification:o})]})]})}function NS({notification:t,...n}){const{settings:o,notificationStacks:i}=nw(),{isPanelVisible:r}=sS(),{toastStacking:a,stackBy:s}=o,c="application"===s?"source":s??"source";let l=0;if(a){const e=i.find(e=>e.key===t[c]);l=e?.items.length??0;}return r||!a||l<=1?null:jsxRuntimeExports.jsx($l,{...n,children:l>9?"9+":l})}function PS({className:t,notification:n,...o}){if(!n?.severity||"None"===n.severity)return null;const i=S("io-notification-header-badge",t);return jsxRuntimeExports.jsx($l,{className:i,...o,children:n.severity})}function ES({className:n,state:o,severity:i="None",icon:r,...a}){const s=S("io-notification-header-icon",n),{isPanelVisible:c}=sS();return jsxRuntimeExports.jsxs("div",{className:s,...a,children:[r&&jsxRuntimeExports.jsx("span",{className:"io-notification-header-icon-image",children:jsxRuntimeExports.jsx("img",{src:r,alt:`io-notification-header-icon-${r}`})}),jsxRuntimeExports.jsx("span",{className:`io-notification-header-icon-badge color-${i.toLowerCase()}`,children:c&&"Acknowledged"!==o&&"New"})]})}function LS({className:t,notification:{appTitle:n},...o}){const i=S("io-notification-header-title",t);return jsxRuntimeExports.jsx("div",{className:i,...o,children:n})}function BS({className:t,notification:{timestamp:n,state:o,snooze:i},...r}){const a=S("io-notification-timestamp",t);return jsxRuntimeExports.jsx("small",i&&"Snoozed"===o?{className:a,...r,children:"Snoozed"}:{className:a,...r,children:cy(n??0)??"Just Now"})}function OS({notification:{id:t,state:n},...o}){const{settings:i,snooze:r}=nw(),s=reactExports.useCallback(e=>{e.stopPropagation(),r&&r(t,i.snooze?.duration??0);},[t,r,i.snooze?.duration]);return r&&"Snoozed"!==n&&i.snooze?.enabled?jsxRuntimeExports.jsx(D,{icon:"snooze",variant:"link",text:"Snooze",tabIndex:-1,onClick:s,...o}):null}function TS({notification:{id:t,updateState:n},...o}){const i=iv(),{onClose:r}=nw(),{isPanelVisible:s}=sS(),c=reactExports.useCallback(e=>{e.stopPropagation(),!i||s?r(t):n("Acknowledged").catch(console.error);},[i,t,r,s,n]);return jsxRuntimeExports.jsx(P,{icon:"close",iconSize:"10",tabIndex:-1,onClick:c,...o})}function RS({className:n,notification:o,...i}){const r=S("io-notification-body",n),{BodyIcon:a,BodyTitle:s,BodyDescription:c}=XS(),{icon:l,title:u,body:d}=o,{handleClick:p}=kS(o);return jsxRuntimeExports.jsxs("div",{className:r,role:"button",tabIndex:0,onKeyDown:async e=>{R(e)&&await p();},onClick:p,...i,children:[jsxRuntimeExports.jsx(a,{icon:l}),jsxRuntimeExports.jsxs("div",{className:"io-notification-body-content",children:[jsxRuntimeExports.jsx(s,{text:u}),jsxRuntimeExports.jsx(c,{text:d})]})]})}function GS({className:t,icon:n,altText:o="notification icon",...i}){if(!n)return null;const r=S("io-notification-body-icon",t);return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsx("img",{src:n,alt:o})})}function FS({text:t,...n}){return jsxRuntimeExports.jsx(O,{text:t,...n})}function MS({className:t,text:n,...o}){const i=S("io-notification-body-description",t);return jsxRuntimeExports.jsx("p",{className:i,...o,children:n})}function DS({className:n,notification:o}){const i=S("io-notification-footer",n),{FooterButton:r}=XS(),{handleWrapperClick:a}=kS(o),s=reactExports.useMemo(()=>function(e){const t=[],n={};if(!e)return;e.forEach(e=>{const{displayId:o,displayPath:i}=e,r={...e,children:[]};if(i&&i.length>0){let e;i.forEach((t,o)=>{0===o?e=n[t]:e&&(e=e.children?.find(e=>e.displayId===t));}),e&&e.children?.push(r);}else o?(t.push(r),n[o]=r):t.push(r);o&&(n[o]=r);});const o=e=>{e.forEach(e=>{0===e.children?.length?delete e.children:e.children&&o(e.children);});};return o(t),t}(o.actions),[o.actions]),c=(t,n)=>t.children?jsxRuntimeExports.jsx(ti,{text:t.title,children:t.children.map(c)},`${t.title}-${n}`):((t,n)=>jsxRuntimeExports.jsx(ti.Item,{children:jsxRuntimeExports.jsx(r,{variant:"link",className:"io-dropdown-menu-item io-dropdown-menu-button",notificationAction:t})},`${t.title}-${n}`))(t,n);return jsxRuntimeExports.jsx("div",{className:i,onClick:a,children:jsxRuntimeExports.jsx(ae,{align:"right",children:s?.map((n,o)=>n.children?jsxRuntimeExports.jsxs(ae,{variant:"append",children:[jsxRuntimeExports.jsx(r,{notificationAction:n,variant:0===o?"primary":"default"}),jsxRuntimeExports.jsx(ti,{variant:0===o?"primary":"default",icon:"ellipsis",children:n.children.map(c)})]},`${n.title}-${o}`):jsxRuntimeExports.jsx(r,{notificationAction:n,variant:0===o?"primary":"link"},`${n.title}-${o}`))})})}function WS({notificationAction:t,...n}){const o=reactExports.useCallback(e=>{e.stopPropagation(),t.onClick({close:!0});},[t]);return jsxRuntimeExports.jsx(D,{text:t.title,onClick:o,...n})}const VS={Header:SS,HeaderCount:NS,HeaderBadge:PS,HeaderIcon:ES,HeaderTitle:LS,HeaderTimestamp:BS,HeaderButtonSnooze:OS,HeaderButtonClose:TS,Body:RS,BodyIcon:GS,BodyTitle:FS,BodyDescription:MS,Footer:DS,FooterButton:WS},HS=reactExports.createContext(VS),zS=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...VS,...n}),[n]);return jsxRuntimeExports.jsx(HS.Provider,{value:o,children:t})});function XS(e){return {...reactExports.useContext(HS),...e}}function ZS({className:n,notification:o,...i}){const{Header:r,Body:a,Footer:s}=XS(),{severity:c}=o,l=S("io-notification",`severity-${c?.toLowerCase()??"none"}`,"Acknowledged"!==o.state&&"state-new",n);return jsxRuntimeExports.jsxs("div",{className:l,...i,children:[jsxRuntimeExports.jsx(r,{notification:o}),jsxRuntimeExports.jsx(a,{notification:o}),jsxRuntimeExports.jsx(s,{notification:o})]})}function jS({components:t,notification:n,...o}){return jsxRuntimeExports.jsx(zS,{components:t,children:jsxRuntimeExports.jsx(ZS,{notification:n,...o})})}function JS({className:n,notifications:o,...i}){const[r,s]=reactExports.useState(!1),c=o.length>=3?"large":"normal",u=2===o.length?"small":c,d=o[0].severity,p=S("io-notification-stack",r&&"io-notification-stack-open","normal"!==u&&[`io-notification-stack-${u}`],d&&"None"!==d&&[`io-notification-stack-${d.toLowerCase()}`],n),f=reactExports.useCallback(()=>{s(!0);},[]),m=reactExports.useCallback(e=>{e.stopPropagation(),o.forEach(e=>{e.close();});},[o]);return jsxRuntimeExports.jsxs("div",{className:p,onClick:f,...i,children:[r&&"normal"!==u&&jsxRuntimeExports.jsx("div",{className:"io-notification-stack-btn",children:jsxRuntimeExports.jsx(D,{icon:"close",onClick:e=>m(e),children:jsxRuntimeExports.jsx("span",{className:"io-btn-text",children:"Clear Stack"})})}),o.map(t=>jsxRuntimeExports.jsx(jS,{notification:t},t.id))]})}function YS({...t}){const{notificationStacks:o}=nw();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o.map(n=>jsxRuntimeExports.jsx(JS,{notifications:n.items,...t},n.key))})}zS.displayName="ComponentsStoreProvider";const $S=({notification:n,Notification:o,...i})=>{const{configuration:r,isBulkActionsSupported:a,selectedNotifications:s,selectNotification:c}=nw(),{isPanelVisible:l,isBulkActionsVisible:u}=sS(),d=r.sourceFilter?.muted??[],p=n.source&&d.includes(n.source)||d.includes("*");if(!l&&p)return null;const f=l&&a&&u,m=s.includes(n.id);return f?jsxRuntimeExports.jsxs("div",{className:S("io-notification-list-bulk-action-item",{selected:m}),children:[jsxRuntimeExports.jsx(Wf,{checked:m,onChange:e=>c(n.id,e.target.checked)}),jsxRuntimeExports.jsx(o,{notification:n,...i})]}):jsxRuntimeExports.jsx(o,{notification:n,...i})};function _S({className:n,Notification:o,notifications:i=[],noNotificationText:r="No notifications to display",...a}){const s=S("io-notification-list",n),{settings:c}=nw(),{isPanelVisible:l}=sS(),{toastStacking:u}=c,d=u&&!l,p=i.length>0;return jsxRuntimeExports.jsxs("div",{className:s,...a,children:[d&&jsxRuntimeExports.jsx(YS,{}),!d&&(p?i.map(t=>jsxRuntimeExports.jsx($S,{notification:t,Notification:o,...a},t.id)):jsxRuntimeExports.jsx("div",{className:"io-notification-list-no-notifications",children:r}))]})}const US={Header:cS,HeaderCaptionTitle:lS,HeaderCaptionCount:function({variant:t="primary",...n}){const{notificationsCount:o=0}=nw();return 0===o?null:jsxRuntimeExports.jsx(B,{variant:t,...n,children:o>99?"99+":o})},HeaderCaptionButtonSettings:function({icon:t="cog",size:n="32",variant:o="circle",...i}){return iv()?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,...i}):null},HeaderCaptionButtonClose:function({icon:t="close",size:n="32",variant:o="circle",onClick:i,...r}){const{hidePanel:a}=nw(),s=iv();return jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,onClick:e=>{i?i(e):s&&a();},...r})},HeaderActions:function({className:n,...o}){const i=S("io-panel-header-actions",n),{HeaderActionSort:r,HeaderActionView:a,HeaderActionClear:s,HeaderActionEdit:c}=qS();return jsxRuntimeExports.jsxs("div",{className:i,...o,children:[jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{})]}),jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})]})},HeaderActionSort:function({text:n="Sort by",...o}){const{sortNotificationsBy:i,setSortBy:r}=sS(),{onNotificationsSort:s}=(()=>{const{notifications:e}=nw(),[t,n]=reactExports.useState(mS),{key:o,descending:i}=t,r=reactExports.useMemo(()=>vS[o](e,i),[e,o,i]),s=reactExports.useCallback(e=>{n(t=>({key:e,descending:t.key!==e?mS.descending:!t.descending}));},[]);return {onNotificationsSort:s,sortedNotifications:r}})();return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsxs(re.Button,{variant:"link",children:[n," ",jsxRuntimeExports.jsx("strong",{children:yS[i].toLowerCase()})]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",checkIcon:"check",children:["Newest","Oldest","Priority"].map(t=>{const n="Priority"===t?"severity":t.toLowerCase();return jsxRuntimeExports.jsx(re.Item,{isSelected:i===n,onClick:()=>{r(n),s(n);},children:t},t)})})})]})},HeaderActionView:function({text:n="View",...o}){const{settings:i}=nw(),{viewNotificationsBy:r,setViewBy:a}=sS(),s=i.snooze?.enabled?["All","Read","Unread","Snoozed"]:["All","Read","Unread"];return jsxRuntimeExports.jsxs(re,{variant:"light",...o,children:[jsxRuntimeExports.jsxs(re.Button,{variant:"link",children:[n," ",jsxRuntimeExports.jsx("strong",{children:r})]}),jsxRuntimeExports.jsx(re.Content,{children:jsxRuntimeExports.jsx(re.List,{variant:"single",checkIcon:"check",children:s.map(t=>jsxRuntimeExports.jsx(re.Item,{isSelected:r===t.toLowerCase(),onClick:()=>a(t.toLowerCase()),children:t},t))})})]})},HeaderActionClear:function({text:t="Clear All",...n}){const{clearAll:o,notificationsCount:i}=nw();return jsxRuntimeExports.jsx(D,{variant:"link",text:t,onClick:o,disabled:0===i,...n})},HeaderActionEdit:function({tooltip:t="Bulk Edit",...n}){const{isBulkActionsSupported:o,notificationsCount:i}=nw(),{showBulkActions:r}=sS();return o?jsxRuntimeExports.jsx(P,{icon:"pen-to-square",title:t,size:"32",onClick:r,disabled:0===i,...n}):null},HeaderBulkActions:function({className:n,...o}){const i=S("io-panel-header-bulk-actions",n),{HeaderBulkActionSelect:r,HeaderBulkActionSelectDropdown:a,HeaderBulkActionMarkAsRead:s,HeaderBulkActionMarkAsUnread:c,HeaderBulkActionSnooze:l,HeaderBulkActionClear:u,HeaderBulkActionClose:d}=qS(),{isBulkActionsSupported:p}=nw();return p?jsxRuntimeExports.jsx("div",{className:i,...o,children:jsxRuntimeExports.jsxs(ae,{children:[jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{}),jsxRuntimeExports.jsx(u,{}),jsxRuntimeExports.jsx(d,{})]})}):null},HeaderBulkActionSelect:function({...t}){const{isBulkActionsSupported:n,selectedNotifications:o,selectAllNotifications:i,notificationsCount:r}=nw();return n?jsxRuntimeExports.jsx(Wf,{checked:r===o.length&&r>0,onChange:e=>i("all",e.target.checked),disabled:0===r,...t}):null},HeaderBulkActionSelectDropdown:function({...n}){const{isBulkActionsSupported:o,selectAllNotifications:i,notificationsCount:r}=nw();return o?jsxRuntimeExports.jsxs(re,{variant:"light",...n,children:[jsxRuntimeExports.jsx(re.ButtonIcon,{variant:"default",icon:"chevron-down",size:"16",iconSize:"10",disabled:0===r}),jsxRuntimeExports.jsx(z,{children:jsxRuntimeExports.jsxs(re.List,{variant:"single",checkIcon:"check",children:[jsxRuntimeExports.jsx(re.ItemSection,{children:"Select"}),["All","Read","Unread","Snoozed"].map(t=>jsxRuntimeExports.jsx(re.Item,{onClick:()=>i(t.toLowerCase(),!0),children:t},t))]})})]}):null},HeaderBulkActionMarkAsRead:function({icon:t="envelope-open",size:n="32",variant:o="circle",tooltip:i="Mark as read",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,setStates:l,notificationsCount:u}=nw(),d=reactExports.useCallback(()=>{l(c,"Seen");},[c,l]);return s?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionMarkAsUnread:function({icon:t="envelope",size:n="32",variant:o="circle",tooltip:i="Mark as unread",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,setStates:l,notificationsCount:u}=nw(),d=reactExports.useCallback(()=>{l(c,"Active");},[c,l]);return s?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionSnooze:function({icon:t="snooze",size:n="32",variant:o="circle",tooltip:i="Snooze",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,snoozeMany:l,settings:u,notificationsCount:d}=nw(),p=reactExports.useCallback(()=>{l(c,u.snooze?.duration??0);},[c,l,u.snooze?.duration]);return s&&u.snooze?.enabled?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,title:i,onClick:p,disabled:0===d,...r}):null},HeaderBulkActionClear:function({icon:t="trash",size:n="32",variant:o="circle",tooltip:i="Clear",...r}){const{isBulkActionsSupported:s,selectedNotifications:c,clearMany:l,notificationsCount:u}=nw(),d=reactExports.useCallback(()=>{l(c);},[c,l]);return s?jsxRuntimeExports.jsx(P,{icon:t,size:n,variant:o,title:i,onClick:d,disabled:0===u,...r}):null},HeaderBulkActionClose:function({text:t="Done",variant:n="primary",...o}){const{isBulkActionsSupported:i,notificationsCount:r}=nw(),{hideBulkActions:a}=sS();return i?jsxRuntimeExports.jsx(D,{variant:n,text:t,onClick:a,disabled:0===r,...o}):null},HeaderSearch:function({className:n,placeholder:o="Search",iconPrepend:i="search",iconAppend:r="close",...s}){const c=S("io-panel-header-search",n),l=reactExports.useRef(null),{notificationsCount:u}=nw(),{searchQuery:p,setSearch:f}=sS(),m=p.length>0,h=reactExports.useCallback(()=>{f(""),l.current&&l.current.focus();},[f]);return jsxRuntimeExports.jsxs("div",{className:c,children:[jsxRuntimeExports.jsx(Vf,{ref:l,value:p,iconPrepend:i,iconAppend:m?r:void 0,iconAppendOnClick:m?h:void 0,placeholder:o,onChange:e=>f(e.target.value),...s}),m&&jsxRuntimeExports.jsx("p",{className:"io-panel-header-search-count",children:`${u} results`})]})},Body:wS,Footer:IS,FooterButtons:CS,FooterButtonClearAll:xS,FooterButtonClearAllOld:AS,Notification:jS,NotificationsList:_S},QS=reactExports.createContext(US),KS=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...US,...n}),[n]);return jsxRuntimeExports.jsx(QS.Provider,{value:o,children:t})});function qS(e){return {...reactExports.useContext(QS),...e}}KS.displayName="ComponentsStoreProvider";const nN=({className:t,notifications:n,maxToasts:o=1,...i})=>{const r=S("io-toasts-body",t),{NotificationsList:a,Notification:s}=aN(),[c,u]=reactExports.useState([]);return reactExports.useEffect(()=>{const e=o<0?n.length:o,t=n.filter(e=>"Active"===e.state).slice(0,e);for(const e of t)e.onShow();u(t);},[n,o]),jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsx(a,{Notification:s,notifications:c,noNotificationText:""})})};nN.displayName="Body";const oN={Body:nN,Notification:jS,NotificationsList:_S},iN=reactExports.createContext(oN),rN=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...oN,...n}),[n]);return jsxRuntimeExports.jsx(iN.Provider,{value:o,children:t})});function aN(e){return {...reactExports.useContext(iN),...e}}rN.displayName="ComponentsStoreProvider";reactExports.createContext(null);reactExports.memo(function({className:n,...o}){const{notificationsCount:i,showNotificationBadge:r,toggleNotificationPanel:s}=(()=>{const e=reactExports.useContext(IOConnectContext),{settings:t}=nw(),[n,o]=reactExports.useState(0);reactExports.useEffect(()=>{const t=e?.notifications;if(!t)return;const n=t.onCounterChanged(e=>{o(e.count);});return ()=>n?.()},[e?.notifications]);const i=reactExports.useCallback(async()=>{if(e?.notifications?.panel)try{await e.notifications.panel.isVisible()?await e.notifications.panel.hide():await e.notifications.panel.show();}catch(e){console.error("Failed to toggle notifications panel:",e);}else console.error("Notifications panel API not available");},[e]);return {showNotificationBadge:t.showNotificationBadge,notificationsCount:n,toggleNotificationPanel:i}})(),u=r&&i>0,d=i>99?"99+":i;return jsxRuntimeExports.jsxs("div",{className:S("notifications-button","non-draggable",n),...o,children:[u&&jsxRuntimeExports.jsx(B,{variant:"primary",children:d}),jsxRuntimeExports.jsx(P,{variant:"circle",icon:"bell",size:"32",title:"Notifications",onClick:s})]})});const{isClickKeypress:SN}=M;reactExports.memo(function({id:t,title:n,type:o,icon:i,iconSrc:r,hasOpenInstance:s,workspaceId:c,onItemClick:l,onPerformAction:u}){const d=reactExports.useCallback(async()=>{const e=null;let i;i=o===_k.APPLICATION?{kind:_k.APPLICATION,id:t,modifier:e,title:n}:o===_k.LAYOUT?{kind:_k.LAYOUT,id:t,modifier:e}:{kind:_k.WORKSPACE,id:t,modifier:e},await u({type:o,id:t,title:n,workspaceId:c}),l?.(i);},[t,n,o,c,l,u]),p=n,f=r?jsxRuntimeExports.jsx(Or,{size:"16",src:r,alt:`${n} icon`}):jsxRuntimeExports.jsx(N,{size:"16",variant:i});return jsxRuntimeExports.jsx(K.Item,{className:S({"io-list-item-active":s}),prepend:f,tooltip:p??n,title:n,onClick:d,tabIndex:0,"aria-label":n,onKeyDown:e=>{SN(e)&&(e.preventDefault(),d());},children:jsxRuntimeExports.jsx("span",{className:"launchpad-category-item-title",children:n})})});function DN(){const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState();return reactExports.useEffect(()=>{if(!e)return;let t=!1;return (async()=>{try{const o=await(e.windows?.my()?.getContext());t||n(o);}catch(e){console.error("usePlaceholderAppStartupContext: failed to read context",e);}})(),()=>{t=!0;}},[e]),t}const WN=e=>"workspaces"===e?.type?"Workspace Currently Unavailable":"App Currently Unavailable";function VN(){return jsxRuntimeExports.jsxs("svg",{className:"io-placeholder-app-indicator",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[jsxRuntimeExports.jsx("path",{className:"io-placeholder-app-indicator-badge",d:"M0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z"}),jsxRuntimeExports.jsx("path",{className:"io-placeholder-app-indicator-glyph",d:"M18.5 18C18.2188 18 18 18.25 18 18.5V21.5C18 21.7812 18.2188 22 18.5 22H21.5C21.75 22 22 21.7812 22 21.5V18.5C22 18.25 21.75 18 21.5 18H18.5ZM17 18.5C17 17.6875 17.6562 17 18.5 17H21.5C22.3125 17 23 17.6875 23 18.5V21.5C23 22.3438 22.3125 23 21.5 23H18.5C17.6562 23 17 22.3438 17 21.5V18.5ZM18.5 26C18.2188 26 18 26.25 18 26.5V29.5C18 29.7812 18.2188 30 18.5 30H21.5C21.75 30 22 29.7812 22 29.5V26.5C22 26.25 21.75 26 21.5 26H18.5ZM17 26.5C17 25.6875 17.6562 25 18.5 25H21.5C22.3125 25 23 25.6875 23 26.5V29.5C23 30.3438 22.3125 31 21.5 31H18.5C17.6562 31 17 30.3438 17 29.5V26.5ZM29.5 18H26.5C26.2188 18 26 18.25 26 18.5V21.5C26 21.7812 26.2188 22 26.5 22H29.5C29.75 22 30 21.7812 30 21.5V18.5C30 18.25 29.75 18 29.5 18ZM26.5 17H29.5C30.3125 17 31 17.6875 31 18.5V21.5C31 22.3438 30.3125 23 29.5 23H26.5C25.6562 23 25 22.3438 25 21.5V18.5C25 17.6875 25.6562 17 26.5 17ZM26.5 26C26.2188 26 26 26.25 26 26.5V29.5C26 29.7812 26.2188 30 26.5 30H29.5C29.75 30 30 29.7812 30 29.5V26.5C30 26.25 29.75 26 29.5 26H26.5ZM25 26.5C25 25.6875 25.6562 25 26.5 25H29.5C30.3125 25 31 25.6875 31 26.5V29.5C31 30.3438 30.3125 31 29.5 31H26.5C25.6562 31 25 30.3438 25 29.5V26.5Z"})]})}function HN({className:n,title:o,message:i,workspacesIndicator:r,...a}){const s=DN()?.originalApp,c=S("io-placeholder-app-header",n),l=void 0===i?(e=>{const{name:t,type:n}=e??{};return "workspaces"===n?t?`Workspace "${t}" couldn't be restored. It may be missing or incorrectly configured.`:"The workspace couldn't be restored. It may be missing or incorrectly configured.":t?`App "${t}" couldn't be loaded. It may be missing or incorrectly configured.`:"The app couldn't be loaded. It may be missing or incorrectly configured."})(s):i,u=void 0===r?jsxRuntimeExports.jsx(VN,{}):r;return jsxRuntimeExports.jsxs("div",{className:c,...a,children:["workspaces"===s?.type&&u,jsxRuntimeExports.jsx(O,{tag:"h2",size:"large",text:o??WN(s),className:"io-placeholder-app-title"}),l&&jsxRuntimeExports.jsx("p",{className:"io-text-default-lh16 io-placeholder-app-message",children:l})]})}function zN({className:n,text:o="If this was unexpected, contact your system administrator or support team.",...i}){const r=S("io-placeholder-app-support",n);return jsxRuntimeExports.jsxs("div",{className:r,...i,children:[jsxRuntimeExports.jsxs("svg",{className:"io-placeholder-app-support-icon",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[jsxRuntimeExports.jsx("path",{className:"io-placeholder-app-support-icon-badge",d:"M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z"}),jsxRuntimeExports.jsx("path",{className:"io-placeholder-app-support-icon-glyph",d:"M9 16V17.5C9 17.7812 8.75 18 8.5 18C8.21875 18 8 17.7812 8 17.5V16C8 11.5938 11.5625 8 16 8C20.4062 8 24 11.5938 24 16V20.5312C24 21.9062 22.875 23.0312 21.5 23.0312L18.9062 23C18.6875 23.5938 18.125 24 17.5 24H15.5C14.6562 24 14 23.3438 14 22.5C14 21.6875 14.6562 21 15.5 21H17.5C18.125 21 18.6875 21.4375 18.9062 22L21.5 22.0312C22.3125 22.0312 23 21.3438 23 20.5312V16C23 12.1562 19.8438 9 16 9C12.125 9 9 12.1562 9 16ZM18 22.5C18 22.25 17.75 22 17.5 22H15.5C15.2188 22 15 22.25 15 22.5C15 22.7812 15.2188 23 15.5 23H17.5C17.75 23 18 22.7812 18 22.5ZM12.5 15C11.6562 15 11 15.6875 11 16.5V17.5C11 18.3438 11.6562 19 12.5 19H13V15H12.5ZM10 16.5C10 15.125 11.0938 14 12.5 14H13C13.5312 14 14 14.4688 14 15V19C14 19.5625 13.5312 20 13 20H12.5C11.0938 20 10 18.9062 10 17.5V16.5ZM19 15V19H19.5C20.3125 19 21 18.3438 21 17.5V16.5C21 15.6875 20.3125 15 19.5 15H19ZM19.5 14C20.875 14 22 15.125 22 16.5V17.5C22 18.9062 20.875 20 19.5 20H19C18.4375 20 18 19.5625 18 19V15C18 14.4688 18.4375 14 19 14H19.5Z"})]}),jsxRuntimeExports.jsx("span",{className:"io-text-default-lh16 io-placeholder-app-support-text",children:o})]})}const XN={Header:HN,SupportPanel:zN},ZN=reactExports.createContext(XN),jN=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...XN,...n}),[n]);return jsxRuntimeExports.jsx(ZN.Provider,{value:o,children:t})});jN.displayName="ComponentsStore";const $N=n=>{const{General:o,Layouts:i}=eP();return jsxRuntimeExports.jsxs(Bf,{element:jl,elementProps:n,children:[jsxRuntimeExports.jsx(o,{}),jsxRuntimeExports.jsx(i,{})]})},_N=({title:t="General",...n})=>{const{Theme:o}=eP();return jsxRuntimeExports.jsx(T,{title:t,"data-testid":"preferences-panel-general-block",...n,children:jsxRuntimeExports.jsx(o,{})})},UN=({title:t="Layouts",...n})=>{const{LayoutsShowDeletePrompt:o}=eP();return jsxRuntimeExports.jsx(T,{title:t,"data-testid":"preferences-panel-layouts-block",...n,children:jsxRuntimeExports.jsx(o,{})})},QN={Body:$N,General:_N,Theme:Rv,Layouts:UN,LayoutsShowUnsavedChangesPrompt:_v,LayoutsShowDeletePrompt:Uv},KN=reactExports.createContext(QN),qN=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...QN,...n}),[n]);return jsxRuntimeExports.jsx(KN.Provider,{value:o,children:t})});qN.displayName="PreferencesPanelComponentsStoreProvider";const eP=()=>reactExports.useContext(KN);
1562
1569
 
1563
1570
  const CustomIOContext = reactExports.createContext(null);
1564
1571
  const useCustomIOContext = () => {
@@ -1745,14 +1752,14 @@
1745
1752
  };
1746
1753
  return (React.createElement(React.Fragment, null,
1747
1754
  React.createElement("div", { className: "io-intent-list-wrapper" },
1748
- React.createElement(Q, { checkIcon: "check", variant: "single" }, intents.map(({ intentName, isSelected }) => (React.createElement(Q.Item, { key: intentName, isSelected: isSelected, onClick: () => handleIntentClick(intentName), "data-testId": `io-intent-resolver-intent-${intentName}` }, intentName))))),
1755
+ React.createElement(K, { checkIcon: "check", variant: "single" }, intents.map(({ intentName, isSelected }) => (React.createElement(K.Item, { key: intentName, isSelected: isSelected, onClick: () => handleIntentClick(intentName), "data-testId": `io-intent-resolver-intent-${intentName}` }, intentName))))),
1749
1756
  React.createElement(ae, { align: "right", variant: "fullwidth", "data-testid": "io-intent-resolver-next-button-group" },
1750
- React.createElement($, { disabled: isNextButtonDisabled, variant: "primary", text: "Next", onClick: handleNextButtonClick, "data-testId": "io-intent-resolver-next-button" }))));
1757
+ React.createElement(D, { disabled: isNextButtonDisabled, variant: "primary", text: "Next", onClick: handleNextButtonClick, "data-testId": "io-intent-resolver-next-button" }))));
1751
1758
  };
1752
1759
 
1753
1760
  const InstanceHandlersDropdown = ({ instances, chosenHandler, onHandlerClick }) => {
1754
- return (React.createElement(ei, { text: "App Instances", icon: "chevron-down", iconRight: true, "data-testid": "io-intent-resolver-instances-dropdown" }, instances.map((handler) => (React.createElement(ei.Item, { key: handler.instanceId, onClick: () => onHandlerClick(handler), "data-testid": `io-intent-resolver-instance-${handler.instanceId}` },
1755
- chosenHandler?.instanceId === handler.instanceId ? React.createElement(P, { variant: "check" }) : React.createElement(P, null),
1761
+ return (React.createElement(ti, { text: "App Instances", icon: "chevron-down", iconRight: true, "data-testid": "io-intent-resolver-instances-dropdown" }, instances.map((handler) => (React.createElement(ti.Item, { key: handler.instanceId, onClick: () => onHandlerClick(handler), "data-testid": `io-intent-resolver-instance-${handler.instanceId}` },
1762
+ chosenHandler?.instanceId === handler.instanceId ? React.createElement(N, { variant: "check" }) : React.createElement(N, null),
1756
1763
  handler.instanceTitle ||
1757
1764
  `${handler.applicationTitle || handler.applicationName} (${handler.instanceId})`)))));
1758
1765
  };
@@ -1776,15 +1783,15 @@
1776
1783
  }
1777
1784
  onHandlerClick(instances[0]);
1778
1785
  };
1779
- return (React.createElement(Q, { checkIcon: "check", variant: "single" },
1780
- React.createElement(Q.ItemSection, { "data-testid": "io-intent-resolver-instances-list" }, "Open apps"),
1781
- Object.entries(groupInstances()).map(([appName, instances]) => (React.createElement(Q.Item, { key: appName, prepend: instances[0].applicationIcon ? React.createElement(Er, { src: instances[0].applicationIcon, alt: "" }) : React.createElement(P, { variant: "application" }), onClick: () => handleListItemClick(instances), isSelected: instances.some((instance) => instance.instanceId === chosenHandler?.instanceId), "data-testid": `io-intent-resolver-instance-${appName}`, append: instances.length > 1 ? React.createElement(InstanceHandlersDropdown, { instances: instances, chosenHandler: chosenHandler, onHandlerClick: onHandlerClick }) : null }, appName)))));
1786
+ return (React.createElement(K, { checkIcon: "check", variant: "single" },
1787
+ React.createElement(K.ItemSection, { "data-testid": "io-intent-resolver-instances-list" }, "Open apps"),
1788
+ Object.entries(groupInstances()).map(([appName, instances]) => (React.createElement(K.Item, { key: appName, prepend: instances[0].applicationIcon ? React.createElement(Or, { src: instances[0].applicationIcon, alt: "" }) : React.createElement(N, { variant: "application" }), onClick: () => handleListItemClick(instances), isSelected: instances.some((instance) => instance.instanceId === chosenHandler?.instanceId), "data-testid": `io-intent-resolver-instance-${appName}`, append: instances.length > 1 ? React.createElement(InstanceHandlersDropdown, { instances: instances, chosenHandler: chosenHandler, onHandlerClick: onHandlerClick }) : null }, appName)))));
1782
1789
  };
1783
1790
 
1784
1791
  const AppHandlers = ({ handlers, chosenHandler, onHandlerClick }) => {
1785
- return (React.createElement(Q, { checkIcon: "check", variant: "single" },
1786
- React.createElement(Q.ItemSection, { "data-testid": "io-intent-resolver-apps-list" }, "All Available Apps"),
1787
- handlers.map((handler) => (React.createElement(Q.Item, { key: handler.id, prepend: handler.applicationIcon ? React.createElement(Er, { src: handler.applicationIcon, alt: "" }) : React.createElement(P, { variant: "application" }), onClick: () => onHandlerClick(handler), isSelected: !chosenHandler?.instanceId && chosenHandler?.applicationName === handler.applicationName, "data-testid": `io-intent-resolver-app-${handler.applicationName}` }, handler.applicationTitle || handler.applicationName)))));
1792
+ return (React.createElement(K, { checkIcon: "check", variant: "single" },
1793
+ React.createElement(K.ItemSection, { "data-testid": "io-intent-resolver-apps-list" }, "All Available Apps"),
1794
+ handlers.map((handler) => (React.createElement(K.Item, { key: handler.id, prepend: handler.applicationIcon ? React.createElement(Or, { src: handler.applicationIcon, alt: "" }) : React.createElement(N, { variant: "application" }), onClick: () => onHandlerClick(handler), isSelected: !chosenHandler?.instanceId && chosenHandler?.applicationName === handler.applicationName, "data-testid": `io-intent-resolver-app-${handler.applicationName}` }, handler.applicationTitle || handler.applicationName)))));
1788
1795
  };
1789
1796
 
1790
1797
  const Handlers = ({ chosenIntentName, config, chosenHandler, showBackButton, setChosenHandler, onConfirmButtonClick, onBackButtonClick, }) => {
@@ -1892,14 +1899,14 @@
1892
1899
  onConfirmButtonClick(saveUserChoice);
1893
1900
  };
1894
1901
  return (React.createElement(React.Fragment, null,
1895
- React.createElement(_d, { placeholder: "Filter apps", value: searchQuery, iconPrepend: "search", iconAppend: "close", iconAppendOnClick: () => setSearchQuery(""), onChange: (e) => setSearchQuery(e.target.value), "data-testid": "io-intent-resolver-search-input" }),
1902
+ React.createElement(Vf, { placeholder: "Filter apps", value: searchQuery, iconPrepend: "search", iconAppend: "close", iconAppendOnClick: () => setSearchQuery(""), onChange: (e) => setSearchQuery(e.target.value), "data-testid": "io-intent-resolver-search-input" }),
1896
1903
  React.createElement("div", { className: "io-intent-list-wrapper" },
1897
1904
  !!filteredHandlers.instances.length && (React.createElement(InstanceHandlers, { handlers: filteredHandlers.instances, chosenHandler: chosenHandler, onHandlerClick: handleSelectHandlerClick })),
1898
1905
  !!filteredHandlers.apps.length && (React.createElement(AppHandlers, { handlers: filteredHandlers.apps, chosenHandler: chosenHandler, onHandlerClick: handleSelectHandlerClick }))),
1899
- React.createElement(jd, { label: checkboxLabel, onClick: handleCheckboxClick, "data-testid": "io-intent-resolver-checkbox" }),
1906
+ React.createElement(Wf, { label: checkboxLabel, onClick: handleCheckboxClick, "data-testid": "io-intent-resolver-checkbox" }),
1900
1907
  React.createElement(ae, { align: "right", variant: "fullwidth", "data-testid": "io-intent-resolver-button-group" },
1901
- showBackButton && React.createElement($, { text: "Back", onClick: onBackButtonClick, "data-testid": "io-intent-resolver-back-button" }),
1902
- React.createElement($, { disabled: !chosenHandler, variant: "primary", text: "Confirm", onClick: handleConfirmButtonClick, "data-testid": "io-intent-resolver-confirm-button" }))));
1908
+ showBackButton && React.createElement(D, { text: "Back", onClick: onBackButtonClick, "data-testid": "io-intent-resolver-back-button" }),
1909
+ React.createElement(D, { disabled: !chosenHandler, variant: "primary", text: "Confirm", onClick: handleConfirmButtonClick, "data-testid": "io-intent-resolver-confirm-button" }))));
1903
1910
  };
1904
1911
 
1905
1912
  const DefaultIntentResolver = ({ config, io, onUserResponse }) => {
@@ -1941,12 +1948,12 @@
1941
1948
  setShowIntentsList(false);
1942
1949
  };
1943
1950
  return (React.createElement(CustomIOContextProvider, { io: io },
1944
- React.createElement(qs, { className: "io-resolver-panel p-16", "data-testid": "io-intent-resolver" },
1945
- React.createElement(qs.Header, null,
1946
- React.createElement(T, { "data-testid": "io-intent-resolver-title", text: "Intent Resolver", size: "large" }),
1951
+ React.createElement(Yl, { className: "io-resolver-panel p-16", "data-testid": "io-intent-resolver" },
1952
+ React.createElement(Yl.Header, null,
1953
+ React.createElement(O, { "data-testid": "io-intent-resolver-title", text: "Intent Resolver", size: "large" }),
1947
1954
  config.uiSettings?.showCloseButton !== false && React.createElement(ae, null,
1948
- React.createElement(I, { size: "24", icon: "close", iconSize: "16", onClick: handleCloseButtonClick, tabIndex: -1, "data-testid": "io-intent-resolver-close-button" }))),
1949
- React.createElement(qs.Body, null,
1955
+ React.createElement(P, { size: "24", icon: "close", iconSize: "16", onClick: handleCloseButtonClick, tabIndex: -1, "data-testid": "io-intent-resolver-close-button" }))),
1956
+ React.createElement(Yl.Body, null,
1950
1957
  React.createElement("p", { "data-testid": "io-intent-resolver-subtitle", className: "io-text-default-lh16" }, title),
1951
1958
  showIntentsList ? (React.createElement(Intents, { chosenIntentName: chosenIntentName, handlerFilter: config.handlerFilter, onNextButtonClick: handleNextButtonClick })) : (React.createElement(Handlers, { config: config, chosenIntentName: chosenIntentName, chosenHandler: chosenIntentHandler, setChosenHandler: setChosenIntentHandler, onConfirmButtonClick: handleConfirmClick, onBackButtonClick: handleBackButtonClick, showBackButton: !!(config.handlerFilter && !config.handlerFilter.intent) }))))));
1952
1959
  };
@@ -2147,13 +2154,13 @@
2147
2154
  }
2148
2155
  }
2149
2156
 
2150
- /* @ts-self-types="./index.d.ts" */
2151
2157
  let urlAlphabet =
2152
2158
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
2159
+
2153
2160
  let nanoid = (size = 21) => {
2154
2161
  let id = '';
2155
2162
  let i = size | 0;
2156
- while (i--) {
2163
+ while (i-- > 0) {
2157
2164
  id += urlAlphabet[(Math.random() * 64) | 0];
2158
2165
  }
2159
2166
  return id