@interopio/intent-resolver-ui 4.5.0 → 4.6.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.
- package/changelog.md +7 -0
- package/dist/fonts.css +1 -1
- package/dist/io-browser-intent-resolver-ui.es.js +153 -153
- package/dist/io-browser-intent-resolver-ui.es.js.map +1 -1
- package/dist/io-browser-intent-resolver-ui.umd.js +153 -153
- package/dist/io-browser-intent-resolver-ui.umd.js.map +1 -1
- package/package.json +3 -3
|
@@ -950,9 +950,9 @@ var react_production_min = {};
|
|
|
950
950
|
* This source code is licensed under the MIT license found in the
|
|
951
951
|
* LICENSE file in the root directory of this source tree.
|
|
952
952
|
*/
|
|
953
|
-
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
|
|
953
|
+
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}
|
|
954
954
|
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={};
|
|
955
|
-
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(){}F.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;
|
|
955
|
+
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;
|
|
956
956
|
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};
|
|
957
957
|
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}}
|
|
958
958
|
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)}
|
|
@@ -960,7 +960,7 @@ function R$2(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;
|
|
|
960
960
|
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}
|
|
961
961
|
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;}
|
|
962
962
|
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.");}
|
|
963
|
-
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
|
|
963
|
+
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;
|
|
964
964
|
react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$2;react_production_min.act=X$2;
|
|
965
965
|
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);
|
|
966
966
|
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}};
|
|
@@ -1030,46 +1030,46 @@ var aa$1=reactExports,ca$1=schedulerExports;function p$1(a){for(var b="https://r
|
|
|
1030
1030
|
function ha$1(a,b){ea$1[a]=b;for(a=0;a<b.length;a++)da$1.add(b[a]);}
|
|
1031
1031
|
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=
|
|
1032
1032
|
{},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}}
|
|
1033
|
-
function qa(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={};
|
|
1033
|
+
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={};
|
|
1034
1034
|
"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);});
|
|
1035
1035
|
["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);});
|
|
1036
1036
|
["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()}
|
|
1037
1037
|
"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,
|
|
1038
1038
|
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);});
|
|
1039
1039
|
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);});
|
|
1040
|
-
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(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)));}
|
|
1041
|
-
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=Symbol.for("react.fragment"),za$1=Symbol.for("react.strict_mode"),Aa
|
|
1042
|
-
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"),
|
|
1040
|
+
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)));}
|
|
1041
|
+
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;
|
|
1042
|
+
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"),
|
|
1043
1043
|
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):""}
|
|
1044
|
-
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 ""}}
|
|
1045
|
-
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
|
|
1044
|
+
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 ""}}
|
|
1045
|
+
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||
|
|
1046
1046
|
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}
|
|
1047
1047
|
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";
|
|
1048
1048
|
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 ""}}
|
|
1049
1049
|
function Ta(a){var b=a.type;return (a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}
|
|
1050
1050
|
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=
|
|
1051
1051
|
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}}
|
|
1052
|
-
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(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);}
|
|
1053
|
-
function bb
|
|
1054
|
-
function db
|
|
1052
|
+
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);}
|
|
1053
|
+
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);}
|
|
1054
|
+
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);}
|
|
1055
1055
|
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;
|
|
1056
|
-
function fb
|
|
1057
|
-
function gb
|
|
1058
|
-
function ib
|
|
1059
|
-
function lb$1(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?kb
|
|
1060
|
-
var mb
|
|
1061
|
-
function ob
|
|
1062
|
-
var pb
|
|
1063
|
-
zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb
|
|
1056
|
+
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);}}
|
|
1057
|
+
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)};}
|
|
1058
|
+
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"}}
|
|
1059
|
+
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}
|
|
1060
|
+
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);}});
|
|
1061
|
+
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;}
|
|
1062
|
+
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,
|
|
1063
|
+
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"}
|
|
1064
1064
|
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});
|
|
1065
|
-
function ub
|
|
1066
|
-
function vb
|
|
1067
|
-
function Bb(a){if(a=Cb
|
|
1068
|
-
function Kb$1(a,b){var c=a.stateNode;if(null===c)return null;var d=Db
|
|
1069
|
-
typeof c)throw Error(p$1(231,b,typeof c));return c}var Lb
|
|
1070
|
-
function Ub(a,b,c,d,e,f,g,h,k){Tb
|
|
1071
|
-
function Yb
|
|
1072
|
-
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
|
|
1065
|
+
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));}}
|
|
1066
|
+
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;
|
|
1067
|
+
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();}}
|
|
1068
|
+
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"!==
|
|
1069
|
+
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);}
|
|
1070
|
+
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));}
|
|
1071
|
+
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===
|
|
1072
|
+
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}
|
|
1073
1073
|
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){}}
|
|
1074
1074
|
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;
|
|
1075
1075
|
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;
|
|
@@ -1079,15 +1079,15 @@ function wc$1(a,b){for(var c=a.suspendedLanes,d=a.pingedLanes,e=a.expirationTime
|
|
|
1079
1079
|
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;}}
|
|
1080
1080
|
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(" ");
|
|
1081
1081
|
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);}}
|
|
1082
|
-
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
|
|
1082
|
+
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}
|
|
1083
1083
|
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}
|
|
1084
|
-
function Vc$1(a){var b=Wc$1(a.target);if(null!==b){var c=Vb(b);if(null!==c)if(b=c.tag,13===b){if(b=Wb(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;}
|
|
1085
|
-
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
|
|
1084
|
+
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;}
|
|
1085
|
+
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);}
|
|
1086
1086
|
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)));}
|
|
1087
1087
|
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;
|
|
1088
1088
|
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;}}
|
|
1089
|
-
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
|
|
1090
|
-
function Yc$1(a,b,c,d){id$1=null;a=xb
|
|
1089
|
+
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;
|
|
1090
|
+
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}
|
|
1091
1091
|
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;
|
|
1092
1092
|
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)}
|
|
1093
1093
|
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}
|
|
@@ -1098,12 +1098,12 @@ a)return a.movementX;a!==yd$1&&(yd$1&&"mousemove"===a.type?(wd$1=a.screenX-yd$1.
|
|
|
1098
1098
|
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",
|
|
1099
1099
|
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}
|
|
1100
1100
|
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"===
|
|
1101
|
-
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=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},
|
|
1101
|
+
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},
|
|
1102
1102
|
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;
|
|
1103
1103
|
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}}
|
|
1104
1104
|
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}}
|
|
1105
|
-
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
|
|
1106
|
-
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
|
|
1105
|
+
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}
|
|
1106
|
+
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);}}
|
|
1107
1107
|
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;
|
|
1108
1108
|
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}
|
|
1109
1109
|
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}
|
|
@@ -1113,88 +1113,88 @@ d);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.
|
|
|
1113
1113
|
var Pe$1=ia$1&&"documentMode"in document&&11>=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;
|
|
1114
1114
|
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)));}
|
|
1115
1115
|
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={};
|
|
1116
|
-
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
|
|
1117
|
-
function ff(a,b){df$1.set(a,b);fa$1(b,[a]);}for(var gf
|
|
1116
|
+
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(" ");
|
|
1117
|
+
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"]);
|
|
1118
1118
|
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(" "));
|
|
1119
1119
|
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));
|
|
1120
|
-
function nf(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;Ub(d,b,void 0,a);a.currentTarget=null;}
|
|
1121
|
-
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
|
|
1122
|
-
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
|
|
1123
|
-
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
|
|
1124
|
-
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
|
|
1120
|
+
function nf(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;Ub$1(d,b,void 0,a);a.currentTarget=null;}
|
|
1121
|
+
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;}
|
|
1122
|
+
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));}}
|
|
1123
|
+
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);}
|
|
1124
|
+
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
1125
|
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=
|
|
1126
|
-
Dd$1;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":k=Vd;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!==
|
|
1127
|
-
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(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
|
|
1128
|
-
n&&(J=Vb(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=
|
|
1126
|
+
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!==
|
|
1127
|
+
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!==
|
|
1128
|
+
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=
|
|
1129
1129
|
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)&&
|
|
1130
1130
|
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";
|
|
1131
1131
|
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"),
|
|
1132
|
-
0<d.length&&(e=new Ld$1("onBeforeInput","beforeinput",null,c,e),g.push({event:e,listeners:d}),e.data=$a);}se$1(g,b);});}function tf(a,b,c){return {instance:a,listener:b,currentTarget:c}}function oe$1(a,b){for(var c=b+"Capture",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,f=Kb$1(a,c),null!=f&&d.unshift(tf(a,f,e)),f=Kb$1(a,b),null!=f&&d.push(tf(a,f,e)));a=a.return;}return d}function vf$1(a){if(null===a)return null;do a=a.return;while(a&&5!==a.tag);return a?a:null}
|
|
1133
|
-
function wf$1(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,l=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==l&&(h=l,e?(k=Kb$1(c,f),null!=k&&g.unshift(tf(c,k,h))):e||(k=Kb$1(c,f),null!=k&&g.push(tf(c,k,h))));c=c.return;}0!==g.length&&a.push({event:b,listeners:g});}var xf$1=/\r\n?/g,yf$1=/\u0000|\uFFFD/g;function zf$1(a){return ("string"===typeof a?a:""+a).replace(xf$1,"\n").replace(yf$1,"")}function Af$1(a,b,c){b=zf$1(b);if(zf$1(a)!==b&&c)throw Error(p$1(425));}function Bf$1(){}
|
|
1132
|
+
0<d.length&&(e=new Ld$1("onBeforeInput","beforeinput",null,c,e),g.push({event:e,listeners:d}),e.data=$a);}se$1(g,b);});}function tf$1(a,b,c){return {instance:a,listener:b,currentTarget:c}}function oe$1(a,b){for(var c=b+"Capture",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,f=Kb$1(a,c),null!=f&&d.unshift(tf$1(a,f,e)),f=Kb$1(a,b),null!=f&&d.push(tf$1(a,f,e)));a=a.return;}return d}function vf$1(a){if(null===a)return null;do a=a.return;while(a&&5!==a.tag);return a?a:null}
|
|
1133
|
+
function wf$1(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,l=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==l&&(h=l,e?(k=Kb$1(c,f),null!=k&&g.unshift(tf$1(c,k,h))):e||(k=Kb$1(c,f),null!=k&&g.push(tf$1(c,k,h))));c=c.return;}0!==g.length&&a.push({event:b,listeners:g});}var xf$1=/\r\n?/g,yf$1=/\u0000|\uFFFD/g;function zf$1(a){return ("string"===typeof a?a:""+a).replace(xf$1,"\n").replace(yf$1,"")}function Af$1(a,b,c){b=zf$1(b);if(zf$1(a)!==b&&c)throw Error(p$1(425));}function Bf$1(){}
|
|
1134
1134
|
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}
|
|
1135
|
-
var Ff="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;function If$1(a){setTimeout(function(){throw a;});}
|
|
1135
|
+
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;});}
|
|
1136
1136
|
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}
|
|
1137
1137
|
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;
|
|
1138
|
-
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
|
|
1138
|
+
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}}
|
|
1139
1139
|
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}
|
|
1140
|
-
function Zf$1(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f
|
|
1141
|
-
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(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,gg=!1;function hg(a){null===eg$1?eg$1=[a]:eg$1.push(a);}function ig$1(a){fg=!0;hg(a);}
|
|
1142
|
-
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;}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;}
|
|
1140
|
+
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)}
|
|
1141
|
+
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);}
|
|
1142
|
+
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;}
|
|
1143
1143
|
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;
|
|
1144
|
-
function Ag(a,b){var c=Bg
|
|
1145
|
-
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
|
|
1146
|
-
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(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(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;xg=a;}
|
|
1147
|
-
function Gg
|
|
1148
|
-
null;}}else yg=xg?Lf$1(a.stateNode.nextSibling):null;return !0}function Hg
|
|
1144
|
+
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);}
|
|
1145
|
+
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=
|
|
1146
|
+
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;}
|
|
1147
|
+
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=
|
|
1148
|
+
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;
|
|
1149
1149
|
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}
|
|
1150
|
-
function Mg(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)}
|
|
1151
|
-
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
|
|
1152
|
-
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$1&&Ng(f)===b.type))return d=e(b,c.props),d.ref=Lg(a,b,c),d.return=a,d;d=Rg
|
|
1153
|
-
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
|
|
1154
|
-
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(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,
|
|
1155
|
-
b,e(c._payload),d)}if(eb$1(c)||Ka$1(c))return null!==e?null:m(a,b,c,d,null);Mg(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(b,d);}return null}
|
|
1150
|
+
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)}
|
|
1151
|
+
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&&
|
|
1152
|
+
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||
|
|
1153
|
+
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),
|
|
1154
|
+
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,
|
|
1155
|
+
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}
|
|
1156
1156
|
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===
|
|
1157
1157
|
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,
|
|
1158
|
-
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&&null===f.key&&(f=f.props.children);if("object"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=
|
|
1159
|
-
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$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?(d=Tg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Rg
|
|
1160
|
-
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(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):
|
|
1161
|
-
(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=Og(!1),Wg
|
|
1162
|
-
function ch(a,b){Xg
|
|
1163
|
-
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
|
|
1158
|
+
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=
|
|
1159
|
+
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!==
|
|
1160
|
+
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):
|
|
1161
|
+
(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;}}
|
|
1162
|
+
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);}
|
|
1163
|
+
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};}
|
|
1164
1164
|
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}}
|
|
1165
1165
|
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);}}
|
|
1166
1166
|
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=
|
|
1167
1167
|
b;c.lastBaseUpdate=b;}
|
|
1168
|
-
function qh$1(a,b,c,d){var e=a.updateQueue;jh
|
|
1169
|
-
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
|
|
1168
|
+
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,
|
|
1169
|
+
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;
|
|
1170
1170
|
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;}}
|
|
1171
|
-
function sh(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
|
|
1172
|
-
function yh$1(a,b){G$1(wh$1,b);G$1(vh$1,a);G$1(uh
|
|
1171
|
+
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}
|
|
1172
|
+
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);
|
|
1173
1173
|
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=[];
|
|
1174
|
-
function Eh(){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=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}
|
|
1175
|
-
function Nh$1(a,b,c,d,e,f){Hh=f;M$1=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Fh.current=null===a||null===a.memoizedState?Oh:Ph;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=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}
|
|
1174
|
+
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}
|
|
1175
|
+
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}
|
|
1176
1176
|
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}
|
|
1177
|
-
function Vh
|
|
1178
|
-
function Wh
|
|
1179
|
-
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
|
|
1180
|
-
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
|
|
1181
|
-
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
|
|
1177
|
+
function Vh(a,b){return "function"===typeof b?b(a):b}
|
|
1178
|
+
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,
|
|
1179
|
+
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]}
|
|
1180
|
+
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(){}
|
|
1181
|
+
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));}
|
|
1182
1182
|
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);}
|
|
1183
|
-
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
|
|
1183
|
+
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]}
|
|
1184
1184
|
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);}
|
|
1185
1185
|
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)}
|
|
1186
1186
|
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}
|
|
1187
|
-
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&21))return a.baseState&&(a.baseState=!1,dh
|
|
1187
|
+
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}
|
|
1188
1188
|
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);}}
|
|
1189
1189
|
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));}}
|
|
1190
1190
|
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);}}
|
|
1191
1191
|
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,
|
|
1192
1192
|
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=
|
|
1193
|
-
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&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,
|
|
1194
|
-
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={readContext:eh$1,useCallback:si$1,useContext:eh$1,useEffect:$h,useImperativeHandle:qi$1,useInsertionEffect:ni,useLayoutEffect:oi$1,useMemo:ti,useReducer:Wh
|
|
1195
|
-
useDebugValue:ri$1,useDeferredValue:function(a){var b=Uh$1();return ui$1(b,N$1.memoizedState,a)},useTransition:function(){var a=Wh
|
|
1196
|
-
N$1?b.memoizedState=a:ui$1(b,N$1.memoizedState,a)},useTransition:function(){var a=Xh$1(Vh
|
|
1197
|
-
var Ei$1={isMounted:function(a){return (a=a._reactInternals)?Vb(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=
|
|
1193
|
+
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,
|
|
1194
|
+
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)},
|
|
1195
|
+
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===
|
|
1196
|
+
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);}
|
|
1197
|
+
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=
|
|
1198
1198
|
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}
|
|
1199
1199
|
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}
|
|
1200
1200
|
function Hi$1(a,b,c,d){a=b.state;"function"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);"function"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&Ei$1.enqueueReplaceState(b,b.state,null);}
|
|
@@ -1203,54 +1203,54 @@ function Ii$1(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.ref
|
|
|
1203
1203
|
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}
|
|
1204
1204
|
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}
|
|
1205
1205
|
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}
|
|
1206
|
-
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
|
|
1207
|
-
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
|
|
1208
|
-
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
|
|
1209
|
-
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
|
|
1206
|
+
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);}
|
|
1207
|
+
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}
|
|
1208
|
+
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}
|
|
1209
|
+
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)}
|
|
1210
1210
|
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!==
|
|
1211
|
-
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
|
|
1211
|
+
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}
|
|
1212
1212
|
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||
|
|
1213
|
-
(h!==d||k!==l)&&Hi$1(b,g,d,l);jh
|
|
1213
|
+
(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)):
|
|
1214
1214
|
("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)||
|
|
1215
|
-
"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||(h!==q||r!==k)&&Hi$1(b,g,d,k);jh
|
|
1215
|
+
"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&&
|
|
1216
1216
|
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===
|
|
1217
1217
|
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)}
|
|
1218
|
-
function jj(a,b,c,d,e,f){gj(a,b);var g=0!==(b.flags&128);if(!d&&!g)return e&&dg(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(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);}
|
|
1219
|
-
function lj(a,b,c,d,e){Ig();Jg(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}}
|
|
1218
|
+
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);}
|
|
1219
|
+
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}}
|
|
1220
1220
|
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=
|
|
1221
|
-
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
|
|
1222
|
-
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
|
|
1223
|
-
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(d);Ug(b,a.child,null,c);a=qj(b,b.pendingProps.children);a.flags|=2;b.memoizedState=null;return a}
|
|
1221
|
+
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=
|
|
1222
|
+
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}
|
|
1223
|
+
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}
|
|
1224
1224
|
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;
|
|
1225
|
-
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
|
|
1225
|
+
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;
|
|
1226
1226
|
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);}
|
|
1227
1227
|
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);}
|
|
1228
1228
|
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=
|
|
1229
1229
|
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}
|
|
1230
|
-
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
|
|
1231
|
-
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
|
|
1230
|
+
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}
|
|
1231
|
+
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&
|
|
1232
1232
|
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;
|
|
1233
1233
|
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(){};
|
|
1234
|
-
Bj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;xh$1(uh
|
|
1234
|
+
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)&&
|
|
1235
1235
|
(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,
|
|
1236
1236
|
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);};
|
|
1237
1237
|
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;}}
|
|
1238
1238
|
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}
|
|
1239
|
-
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
|
|
1240
|
-
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
|
|
1241
|
-
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
|
|
1242
|
-
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
|
|
1243
|
-
"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
|
|
1244
|
-
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({},d,{value:void 0});D$1("invalid",a);break;case "textarea":hb
|
|
1245
|
-
c||""!==k)&&ob
|
|
1246
|
-
!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
|
|
1247
|
-
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
|
|
1239
|
+
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);
|
|
1240
|
+
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",
|
|
1241
|
+
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,
|
|
1242
|
+
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)):
|
|
1243
|
+
"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",
|
|
1244
|
+
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"!==
|
|
1245
|
+
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,
|
|
1246
|
+
!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=
|
|
1247
|
+
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===
|
|
1248
1248
|
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(),
|
|
1249
|
-
Aj(a,b),null===a&&sf
|
|
1249
|
+
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,
|
|
1250
1250
|
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=
|
|
1251
1251
|
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=
|
|
1252
1252
|
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));}
|
|
1253
|
-
function Ij(a,b){wg(b);switch(b.tag){case 1:return Zf$1(b.type)&&$f
|
|
1253
|
+
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(),
|
|
1254
1254
|
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;
|
|
1255
1255
|
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+=
|
|
1256
1256
|
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;
|
|
@@ -1264,32 +1264,32 @@ function Zj(a,b,c){if(lc$1&&"function"===typeof lc$1.onCommitFiberUnmount)try{lc
|
|
|
1264
1264
|
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!==
|
|
1265
1265
|
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));});}}
|
|
1266
1266
|
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;}
|
|
1267
|
-
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
|
|
1268
|
-
a.updateQueue=null;if(null!==k)try{"input"===h&&"radio"===f.type&&null!=f.name&&ab$1(e,f);vb
|
|
1269
|
-
f.defaultValue,!0):fb
|
|
1267
|
+
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;
|
|
1268
|
+
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,
|
|
1269
|
+
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||
|
|
1270
1270
|
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=
|
|
1271
1271
|
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=
|
|
1272
1272
|
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,
|
|
1273
|
-
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
|
|
1273
|
+
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);}
|
|
1274
1274
|
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);}}
|
|
1275
|
-
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(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=
|
|
1276
|
-
b.child.stateNode;break;case 1:c=b.child.stateNode;}sh(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;
|
|
1275
|
+
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=
|
|
1276
|
+
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;
|
|
1277
1277
|
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;}}
|
|
1278
1278
|
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;}}
|
|
1279
1279
|
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()}
|
|
1280
|
-
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.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&&jg());}
|
|
1280
|
+
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());}
|
|
1281
1281
|
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;}}
|
|
1282
1282
|
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);
|
|
1283
|
-
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(Pk.bind(null,a,tk,uk),b);break}Pk(a,tk,uk);break;case 4:Ck(a,d);if((d&4194240)===
|
|
1284
|
-
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(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}
|
|
1283
|
+
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)===
|
|
1284
|
+
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}
|
|
1285
1285
|
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);}
|
|
1286
1286
|
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}
|
|
1287
1287
|
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}
|
|
1288
|
-
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&&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);}
|
|
1289
|
-
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
|
|
1288
|
+
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);}
|
|
1289
|
+
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=
|
|
1290
1290
|
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}
|
|
1291
|
-
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=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,
|
|
1292
|
-
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(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;
|
|
1291
|
+
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,
|
|
1292
|
+
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;
|
|
1293
1293
|
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}
|
|
1294
1294
|
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;}
|
|
1295
1295
|
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}
|
|
@@ -1301,38 +1301,38 @@ u)u.return=g,V$1=u;else b:for(g=w;null!==V$1;){h=V$1;if(0!==(h.flags&2048))try{s
|
|
|
1301
1301
|
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;}}
|
|
1302
1302
|
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);}
|
|
1303
1303
|
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;
|
|
1304
|
-
Vk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf$1.current)dh
|
|
1304
|
+
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=
|
|
1305
1305
|
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,
|
|
1306
1306
|
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=
|
|
1307
|
-
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(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),
|
|
1307
|
+
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),
|
|
1308
1308
|
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;
|
|
1309
|
-
g=e.value;G$1(Wg
|
|
1309
|
+
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,
|
|
1310
1310
|
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),
|
|
1311
1311
|
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)}
|
|
1312
|
-
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
|
|
1312
|
+
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)}
|
|
1313
1313
|
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}
|
|
1314
|
-
function Pg
|
|
1314
|
+
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};
|
|
1315
1315
|
c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}
|
|
1316
|
-
function Rg
|
|
1317
|
-
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
|
|
1318
|
-
function Sg(a,b,c){b=Bg
|
|
1316
|
+
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;
|
|
1317
|
+
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}
|
|
1318
|
+
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}
|
|
1319
1319
|
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=
|
|
1320
|
-
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
|
|
1321
|
-
function dl$1(a){if(!a)return Vf$1;a=a._reactInternals;a:{if(Vb(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}
|
|
1320
|
+
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}}
|
|
1321
|
+
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}
|
|
1322
1322
|
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}
|
|
1323
1323
|
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;}
|
|
1324
1324
|
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;}
|
|
1325
1325
|
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(){}
|
|
1326
|
-
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
|
|
1326
|
+
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}
|
|
1327
1327
|
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);}};
|
|
1328
1328
|
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;}};
|
|
1329
|
-
yb
|
|
1330
|
-
var sl$1={usingClientEntryPoint:!1,Events:[Cb
|
|
1329
|
+
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;
|
|
1330
|
+
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"};
|
|
1331
1331
|
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||
|
|
1332
1332
|
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;
|
|
1333
|
-
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
|
|
1333
|
+
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)};
|
|
1334
1334
|
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)};
|
|
1335
|
-
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
|
|
1335
|
+
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,
|
|
1336
1336
|
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;
|
|
1337
1337
|
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";
|
|
1338
1338
|
|
|
@@ -1362,7 +1362,7 @@ function checkDCE() {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
1364
|
var reactDomExports = reactDom.exports;
|
|
1365
|
-
var
|
|
1365
|
+
var b = /*@__PURE__*/getDefaultExportFromCjs(reactDomExports);
|
|
1366
1366
|
|
|
1367
1367
|
var createRoot;
|
|
1368
1368
|
|
|
@@ -1538,11 +1538,11 @@ function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"de
|
|
|
1538
1538
|
Copyright (c) 2018 Jed Watson.
|
|
1539
1539
|
Licensed under the MIT License (MIT), see
|
|
1540
1540
|
http://jedwatson.github.io/classnames
|
|
1541
|
-
*/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 D({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 T({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(D,{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,B=(e,t)=>void 0===e?{}:{tabIndex:0,onClick:e,onKeyDown:n=>{R(n)&&(n.preventDefault(),e?.(n)),t?.(n);}},M=({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();};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||R(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({}),j=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||R(e)&&(e.preventDefault(),e.stopPropagation(),s?.());},[o,s]);return jsxRuntimeExports.jsx($,{icon:t,iconRight:!0,onClick:f,onKeyDown:p,disabled:l,ref:d,...i})});j.displayName="DropdownButton";const z=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||R(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})}z.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),b=s??g?.some(e=>e.children===f),w="default"!==h&&!!y,k=w||r,x=E("io-list-item",k&&"io-list-item-left",a&&"io-list-item-right","default"!==h&&b&&"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:[w&&jsxRuntimeExports.jsx(P,{variant:y.variant,title:b?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 U=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})]})});U.displayName="ListItemHeader";const K=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})]})});K.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=K,Q.ItemSection=q,Q.ItemHeader=U,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||!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(K,{...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:b,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]);})(y,w,v),ie(()=>{v&&w();},["Escape"],y),ie(()=>{v||i||g.current!==document.activeElement||b();},["ArrowDown","ArrowUp"],y);const k=reactExports.useMemo(()=>({variant:n,align:o,disabled:i,isOpen:v,handleOpen:b,handleClose:w,handleToggle:v?w:b,setTriggerRef:e=>g.current=e}),[n,o,i,v,b,w]),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 be(e){return !!pe()&&(e instanceof HTMLElement||e instanceof he(e).HTMLElement)}function we(e){return !(!pe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof he(e).ShadowRoot)}re.Button=j,re.ButtonIcon=z,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=D,se.ButtonGroup=ae,se.Button=$,se.ButtonIcon=I,se.Dropdown=re,ce.Title=D,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}=Re(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)?Re(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 De=new Set(["html","body","#document"]);function Te(e){return De.has(me(e))}function Re(e){return he(e).getComputedStyle(e)}function Be(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(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 Fe(e){const t=Me(e);return Te(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&xe(t)?t:Fe(t)}function $e(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Fe(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 je(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 ze(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 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 Ue(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 Ke(){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 be(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"],bt=["right","left"],wt=["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?bt:vt:t?vt:bt;case"left":case"right":return t?wt: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}}
|
|
1541
|
+
*/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}}
|
|
1542
1542
|
/*!
|
|
1543
1543
|
* tabbable 6.4.0
|
|
1544
1544
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1545
|
-
*/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))},Dt=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},Tt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Rt=function(e){return "INPUT"===e.tagName},Bt=function(e){return function(e){return Rt(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)},Mt=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},Ft=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 Mt(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 Mt(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 Rt(e)&&"hidden"===e.type}(t)||Ft(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 !(Bt(t)||Dt(t)<0||!$t(e,t))},jt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return !!(isNaN(t)||t>=0)},zt=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=Dt(e);return n<0&&t&&!Lt(e)?0:n}(r,i),s=i?zt(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)},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:jt}):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)),zt(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)),b=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},w=St(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:c}):y);return {top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}const Ut=new Set(["left","top"]);function Kt(e){const t=Re(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=be(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(!be(t))return rt(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Kt(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=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=_e(n);}}return St({width:u,height:d,x:c,y:l})}function Qt(e,t){const n=Be(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=Be(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"===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=Xt(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=be(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=Me(e);return !(n===t||!ve(n)||Te(n))&&("fixed"===Re(n).position||nn(n,t))}function on(e,t,n){const o=be(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=Be(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"===Re(e).position}function an(e,t){if(!be(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(Ee(e))return n;if(!be(e)){let t=Me(e);for(;t&&!Te(t);){if(ve(t)&&!rn(t))return t;t=Me(t);}return n}let o=an(e,t);for(;o&&Se(o)&&rn(o);)o=an(o,t);return o&&Te(o)&&rn(o)&&!Oe(o)?n:o||function(e){let t=Me(e);for(;be(t)&&!Te(t);){if(Oe(t))return t;if(Ee(t))return null;t=Me(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=be(o);if((d||!d&&!r)&&(("body"!==me(o)||xe(a))&&(c=Be(o)),be(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"===Re(e).position;let a=r?Me(e):e;for(;ve(a)&&!Te(a);){const t=Re(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=Me(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}=Kt(e);return {width:t,height:n}},getScale:qt,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=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=Ut.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),b=ut(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),k=f||(b||!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,w));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,w);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:b,reset:w}=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],...b}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(l=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.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 bn(e){const t=reactExports.useRef(e);return hn(()=>{t.current=e;}),t}const wn=(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 Dn(e,t){return Rn(e,{disabledIndices:t})}function Tn(e,t){return Rn(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Rn(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&&Fn(a,s,i));return s}function Bn(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 Fn(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 jn=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 $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(jn.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(jn),[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,Un=0;const Kn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Un++;const Gn=Cn.useId||function(){const[e,t]=reactExports.useState(()=>Vn?Kn():void 0);return $n(()=>{null==e&&t(Kn());},[]),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 bo(e,t){const n=Ht(e,vo());"prev"===t&&n.reverse();const o=n.indexOf(je(Je(e)));return n.slice(o+1)[0]}function wo(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return !o||!ze(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(()=>(Ke()&&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:b,elements:{domReference:w,floating:k}}=t,x="number"==typeof s&&s<0,C=et(w)&&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),D=reactExports.useRef(!1),T=reactExports.useRef(!1),R=reactExports.useRef(-1),B=null!=A,M=Eo(k),F=Nn(function(e){return void 0===e&&(e=M),e?Ht(e,vo()):[]}),$=Nn(e=>{const t=F(e);return N.current.map(e=>w&&"reference"===e?w:M&&"floating"===e?M: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){ze(M,je(Je(M)))&&0===F().length&&!C&&Ze(e);const t=$(),n=Xe(e);"reference"===N.current[0]&&n===w&&(Ze(e),e.shiftKey?co(t[t.length-1]):co(t[1])),"floating"===N.current[1]&&n===M&&e.shiftKey&&(Ze(e),co(t[0]));}}const t=Je(M);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e);}},[i,w,M,u,N,C,F,$]),reactExports.useEffect(()=>{if(!i&&k)return k.addEventListener("focusin",e),()=>{k.removeEventListener("focusin",e);};function e(e){const t=Xe(e),n=F().indexOf(t);-1!==n&&(R.current=n);}},[i,k,F]),reactExports.useEffect(()=>{if(!i&&f)return k&&be(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),k.addEventListener("focusout",t),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),k.removeEventListener("focusout",t);}):void 0;function e(){T.current=!0,setTimeout(()=>{T.current=!1;});}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(ze(w,t)||ze(k,t)||ze(t,k)||ze(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 ze(null==(n=e.context)?void 0:n.elements.floating,t)||ze(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&&je(Je(M))===Je(M).body){be(M)&&M.focus();const e=R.current,t=F(),n=t[e]||t[t.length-1]||M;be(n)&&n.focus();}!C&&u||!t||!n||T.current||t===Ao()||(D.current=!0,g(!1,e,"focus-out"));});}},[i,w,k,M,u,h,I,A,g,f,l,F,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?w:null].filter(e=>null!=e),n=u||C?yo(e,S,!S):yo(e);return ()=>{n();}}},[i,w,k,u,N,A,C,S]),$n(()=>{if(i||!be(M))return;const e=je(Je(M));queueMicrotask(()=>{const t=$(M),n=E.current,o=("number"==typeof n?t[n]:n.current)||M,i=ze(M,e);x||i||!p||co(o,{preventScroll:o===M});});},[i,p,M,x,$,E]),$n(()=>{if(i||!M)return;let e=!1;const t=Je(M),n=je(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&&(D.current=!0),"outside-press"===i&&(a?(D.current=!1,e=!0):D.current=!(Ve(r)||Ue(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),B&&w&&w.insertAdjacentElement("afterend",a),()=>{y.off("openchange",r);const n=je(t),i=ze(k,n)||I&&lo(I.nodesRef.current,h).some(e=>{var t;return ze(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&&!D.current&&be(s)&&(s===n||n===t.body||i)&&s.focus({preventScroll:e}),a.remove();});}},[i,k,M,P,v,m,y,I,h,B,w]),reactExports.useEffect(()=>{queueMicrotask(()=>{D.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(!M)return;if("function"!=typeof MutationObserver)return;if(x)return;const e=()=>{const e=M.getAttribute("tabindex"),t=F(),n=je(Je(k)),o=t.indexOf(n);-1!==o&&(R.current=o),N.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&M.setAttribute("tabindex","0"):"-1"!==e&&M.setAttribute("tabindex","-1");};e();const t=new MutationObserver(e);return t.observe(M,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect();}},[i,k,M,m,N,F,x]);const j=!i&&S&&(!u||!C)&&(B||u);return reactExports.createElement(reactExports.Fragment,null,j&&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(D.current=!1,wo(e,A.portalNode)){const e=bo(document.body,"next")||w;null==e||e.focus();}else {var t;null==(t=A.beforeOutsideRef.current)||t.focus();}}}),!C&&_("start"),n,_("end"),j&&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&&(D.current=!0),wo(e,A.portalNode)){const e=bo(document.body,"prev")||w;null==e||e.focus();}else {var t;null==(t=A.afterOutsideRef.current)||t.focus();}}}))}function Do(e){return be(e.target)&&"BUTTON"===e.target.tagName}function To(e){return Qe(e)}const Ro={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Bo={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 Fo(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=Fo({...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),w=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=bn(l),A=bn(r),O=bn(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};D.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 D=reactExports.useRef(!1);hn(()=>(D.current=!0,()=>{D.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 T=reactExports.useMemo(()=>({reference:S,floating:N,setReference:w,setFloating:k}),[w,k]),R=reactExports.useMemo(()=>({reference:x,floating:C}),[x,C]),B=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)",...yn(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:L,refs:T,elements:R,floatingStyles:B}),[d,L,T,R,B])}({...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",jo="selected";function zo(e,t,n){const o=new Map,i="item"===n;let r=e;if(i&&e){const{[_o]:t,[jo]: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,jo].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 Uo(e,t,n){return Wo(t,e===Pn,n?e===In:e===An)||"Enter"===e||" "===e||""===e}function Ko(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:b,orientation:w="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),D=reactExports.useRef(null!=u?u:-1),T=reactExports.useRef(null),R=reactExports.useRef(!0),B=reactExports.useRef(A),M=reactExports.useRef(!!r.floating),F=reactExports.useRef(n),$=reactExports.useRef(!1),_=reactExports.useRef(!1),j=io(b),z=io(n),H=io(x),W=io(u),[V,U]=reactExports.useState(),[K,G]=reactExports.useState(),q=Nn(function(e,t,n){function o(e){h?(U(e.id),null==I||I.events.emit("virtualfocus",e),C&&(C.current=e)):co(e,{preventScroll:!0,sync:!(!He().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!Ke())&&(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||!R.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,D.current=u,A(u)):M.current&&(D.current=-1,B.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(M.current&&(D.current=-1,q(a,D)),(!F.current||!M.current)&&L.current&&(null!=T.current||!0===L.current&&null==T.current)){let e=0;const t=()=>{if(null==a.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t);}e++;}else D.current=null==T.current||Uo(T.current,w,m)||p?Dn(a,j.current):Tn(a,j.current),T.current=null,A(D.current);};t();}}else Ln(a,s)||(D.current=s,q(a,D,_.current),_.current=!1);},[l,n,r.floating,s,W,p,a,w,m,A,q,j]),$n(()=>{var e;if(!l||r.floating||!I||h||!M.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=je(Je(r.floating)),i=t.some(e=>e.context&&ze(e.context.elements.floating,o));n&&!i&&R.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(()=>{B.current=A,M.current=!!r.floating;}),$n(()=>{n||(T.current=null);},[n]),$n(()=>{F.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;R.current&&"touch"!==t&&(D.current=-1,q(a,D),A(null),h||co(E.current,{preventScroll:!0}));}}}},[n,E,q,y,a,A,h]),X=Nn(e=>{if(R.current=!1,$.current=!0,229===e.which)return;if(!z.current&&e.currentTarget===E.current)return;if(p&&Ko(e.key,w,m))return Ze(e),i(!1,e.nativeEvent,"list-navigation"),void(be(r.domReference)&&(h?null==I||I.events.emit("virtualfocus",r.domReference):r.domReference.focus()));const t=D.current,o=Dn(a,b),s=Tn(a,b);if(O||("Home"===e.key&&(Ze(e),D.current=o,A(D.current)),"End"===e.key&&(Ze(e),D.current=s,A(D.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&&!Fn(a.current,e,b)),r=n.reduce((e,t,n)=>null==t||Fn(a.current,t,b)?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=Rn(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=Rn(e,{startingIndex:u,amount:a,disabledIndices:s}),i&&u+a>l&&(f=Rn(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=Rn(e,{startingIndex:u,disabledIndices:s}),i&&On(f,a,t)&&(f=Rn(e,{startingIndex:u-u%a-1,disabledIndices:s}))):i&&(f=Rn(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=Rn(e,{startingIndex:u,decrement:!0,disabledIndices:s}),i&&On(f,a,t)&&(f=Rn(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}))):i&&(f=Rn(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:Rn(e,{startingIndex:u-u%a-1,disabledIndices:s}):u);}return f}({current:n.map(e=>null!=e?a.current[e]:null)},{event:e,orientation:w,loop:f,rtl:m,cols:k,disabledIndices:Mn([...b||a.current.map((e,t)=>Fn(a.current,t)?t:void 0),void 0],n),minIndex:i,maxIndex:r,prevIndex:Bn(D.current>s?o:D.current,t,n,k,e.key===Pn?"bl":e.key===(m?In:An)?"tr":"tl"),stopEvent:!0})];if(null!=c&&(D.current=c,A(D.current)),"both"===w)return}if(Vo(e.key,w)){if(Ze(e),n&&!h&&je(e.currentTarget.ownerDocument)===e.currentTarget)return D.current=Uo(e.key,w,m)?o:s,void A(D.current);Uo(e.key,w,m)?D.current=f?t>=s?d&&t!==a.current.length?-1:o:Rn(a,{startingIndex:t,disabledIndices:b}):Math.min(s,Rn(a,{startingIndex:t,disabledIndices:b})):D.current=f?t<=o?d&&-1!==t?a.current.length:s:Rn(a,{startingIndex:t,decrement:!0,disabledIndices:b}):Math.max(o,Rn(a,{startingIndex:t,decrement:!0,disabledIndices:b})),Ln(a,D.current)?A(null):A(D.current);}}),Q=reactExports.useMemo(()=>h&&n&&J&&{"aria-activedescendant":K||V},[h,n,J,K,V]),Z=reactExports.useMemo(()=>({"aria-orientation":"both"===w?void 0:w,...!et(r.domReference)&&Q,onKeyDown:X,onPointerMove(){R.current=!0;}}),[Q,X,r.domReference,w]),ee=reactExports.useMemo(()=>{function e(e){"auto"===g&&Ve(e.nativeEvent)&&(L.current=!0);}return {...Q,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 Wo(t,n?e===In:e===An,e===Pn)}(e.key,w,m),c=Ko(e.key,w,m),l=Vo(e.key,w),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&&(T.current=p&&l?null:e.key),p?s&&(Ze(e),n?(D.current=Dn(a,j.current),A(D.current)):i(!0,e.nativeEvent,"list-navigation")):l&&(null!=u&&(D.current=u),Ze(e),!n&&v?i(!0,e.nativeEvent,"list-navigation"):X(e),n&&A(D.current)));},onFocus(){n&&!h&&A(null);},onPointerDown:function(e){L.current=g,"auto"===g&&Ue(e.nativeEvent)&&(L.current=!0);},onMouseDown:e,onClick:e}},[V,Q,X,j,g,a,p,A,i,n,v,w,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],b=Xe(e),w="mouseleave"===e.type,k=ze(d.floating,b),x=ze(d.domReference,b),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,D=(A?C:S).right,T=(O?C:S).top,R=(O?C:S).bottom;if(k&&(r=!0,!w))return;if(x&&(r=!1),x&&!w)return void(r=!0);if(w&&ve(e.relatedTarget)&&ze(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 B=[];switch(N){case"top":B=[[L,C.top+1],[L,S.bottom-1],[D,S.bottom-1],[D,C.top+1]];break;case"bottom":B=[[L,S.top+1],[L,C.bottom-1],[D,C.bottom-1],[D,S.top+1]];break;case"left":B=[[S.right-1,R],[S.right-1,T],[C.left+1,T],[C.left+1,R]];break;case"right":B=[[C.right-1,R],[C.right-1,T],[S.left+1,T],[S.left+1,R]];}if(!Jo([g,y],B)){if(r&&!I)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()}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),[b,w]=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:D,refs:T,context:R}=$o({nodeId:I,open:y,onOpenChange:v,placement:L?"right-start":"bottom-start",middleware:[(B={mainAxis:L?0:4,alignmentAxis:L?-4:0},{...dn(B),options:[B,M]}),kn(),wn()],whileElementsMounted:un});var B,M;const F=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),b=reactExports.useRef(),w=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(w.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",b.current);o&&!k.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>i(!1,e,n),o)):t&&(clearTimeout(w.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(w.current),C.current=!1,d&&!qe(b.current)||f>0&&!ao(y.current,"open"))return;const t=ao(y.current,"open",b.current);t?w.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(w.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"!==b.current||!ze(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||(b.current=void 0,E.current=!1,A(),O());},[n,A,O]),reactExports.useEffect(()=>()=>{A(),clearTimeout(w.current),clearTimeout(x.current),O();},[c,s.domReference,A,O]);const D=reactExports.useMemo(()=>{function e(e){b.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(b.current)||n||0===f||E.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===b.current?o():(E.current=!0,x.current=window.setTimeout(o,f)));}}},[d,i,n,v,f]),T=reactExports.useMemo(()=>({onMouseEnter(){clearTimeout(w.current);},onMouseLeave(e){L()||I(e.nativeEvent,!1);}}),[I,L]);return reactExports.useMemo(()=>c?{reference:D,floating:T}:{},[c,D,T])}(R,{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||Do(e)||(" "!==e.key||To(a)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&i(!n||!l,e.nativeEvent,"click"));},onKeyUp(e){e.defaultPrevented||!d||Do(e)||To(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])}(R,{event:"mousedown",toggle:!L,ignoreMouse:L}),j=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])}(R,{role:"menu"}),z=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,b=reactExports.useRef(!1),w=reactExports.useRef(!1),{escapeKey:k,outsidePress:x}=Mo(m),{escapeKey:C,outsidePress:S}=Mo(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=b.current;b.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=Xe(e),c="["+oo("inert")+"]",l=Je(r.floating).querySelectorAll(c);let d=ve(s)?s:null;for(;d&&!Te(d);){const e=Me(d);if(Te(e)||!ve(e))break;d=e;}if(l.length&&ve(s)&&!s.matches("html,body")&&!ze(s,r.floating)&&Array.from(l).every(e=>!ze(d,e)))return;if(be(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"===Re(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(()=>{b.current=!1;},[v,u]);const O=reactExports.useMemo(()=>({onKeyDown:E,[Ro[f]]:e=>{d&&i(!1,e.nativeEvent,"reference-press");}}),[E,i,d,f]),L=reactExports.useMemo(()=>({onKeyDown:E,onMouseDown(){w.current=!0;},onMouseUp(){w.current=!0;},[Bo[u]]:()=>{b.current=!0;}}),[E,u]);return reactExports.useMemo(()=>s?{reference:O,floating:L}:{},[s,O,L])}(R,{bubbles:!0}),H=Go(R,{listRef:C,activeIndex:k,nested:L,onNavigate:x}),{getReferenceProps:W,getFloatingProps:V,getItemProps:U}=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])}([F,_,j,z,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 K={activeIndex:k,setActiveIndex:x,getItemProps:U,setHasFocusInside:w,isOpen:y,setIsOpen:v},G=reactExports.useMemo(()=>K,[k,x,U,w,y]),q=E("io-dropdown-menu-button",L&&"io-dropdown-menu-item",y&&!L&&"active",n),J=xn([T.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":b?"":void 0,text:s,icon:L?"chevron-right":r,iconSize:"10",iconRight:!!L||a,disabled:p,...W(N.getItemProps({onFocus(e){h.onFocus?.(e),w(!1),N.setHasFocusInside(!0);},...h}))}),jsxRuntimeExports.jsx(Xo.Provider,{value:G,children:jsxRuntimeExports.jsx(zn,{elementsRef:C,labelsRef:S,children:y&&jsxRuntimeExports.jsx(Lo,{context:R,modal:!1,initialFocus:L?-1:0,returnFocus:!L,children:jsxRuntimeExports.jsx("div",{ref:T.setFloating,className:"io-dropdown-menu",style:D,...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 bi(e){return e instanceof yi(e).HTMLElement||e instanceof HTMLElement}function wi(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];bi(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},{});bi(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&&bi(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&&wi(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 Di(e){return ["table","td","th"].indexOf(gi(e))>=0}function Ti(e){return ((vi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ri(e){return "html"===gi(e)?e:e.assignedSlot||e.parentNode||(wi(e)?e.host:null)||Ti(e)}function Bi(e){return bi(e)&&"fixed"!==Li(e).position?e.offsetParent:null}function Mi(e){for(var t=yi(e),n=Bi(e);n&&Di(n)&&"static"===Li(n).position;)n=Bi(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())&&bi(e)&&"fixed"===Li(e).position)return null;var n=Ri(e);for(wi(n)&&(n=n.host);bi(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 Fi(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 ji(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=Fi(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:ji(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=Mi(r),y=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,b=u[f],w=y-d[l]-u[p],k=y/2-d[l]/2+v,x=$i(b,k,w),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"),b=ai,w=oi,k=window;if(l){var x=Mi(n),C="clientHeight",S="clientWidth";if(x===yi(n)&&"static"!==Li(x=Ti(n)).position&&"absolute"===s&&(C="scrollHeight",S="scrollWidth"),i===oi||(i===ai||i===ri)&&r===ui)w=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)b=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={})[w]=v?"0":"",N[b]=y?"0":"",N.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",N)):Object.assign({},E,((t={})[w]=v?h+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var Ui={passive:!0};var Ki={left:"right",right:"left",bottom:"top",top:"bottom"};function Gi(e){return e.replace(/left|right|bottom|top/g,function(e){return Ki[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(Ti(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:bi(e)&&Qi(e)?e:Zi(Ri(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(Ri(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=Ti(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=Ti(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}}(Ti(e)))}function or(e,t,n,o){var i="clippingParents"===t?function(e){var t=er(Ri(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0&&bi(e)?Mi(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?Fi(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:ji(g,ci)),v=f===fi?"reference":fi,b=e.rects.popper,w=e.elements[m?v:f],k=or(vi(w)?w:w.contextElement||Ti(e.elements.popper),c,u,a),x=Ii(e.elements.reference),C=ir({reference:x,element:b,strategy:"absolute",placement:i}),S=tr(Object.assign({},b,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)),b=[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)},[]),w=t.rects.reference,k=t.rects.popper,x=new Map,C=!0,S=b[0],N=0;N<b.length;N++){var E=b[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}),D=A?I?ri:ai:I?ii:oi;w[O]>k[O]&&(D=Gi(D));var T=Gi(D),R=[];if(r&&R.push(L[P]<=0),s&&R.push(L[D]<=0,L[T]<=0),R.every(function(e){return e})){S=E,C=!1;break}x.set(E,R);}if(C)for(var B=function(e){var t=b.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"},M=m?3:1;M>0;M--){if("break"===B(M))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),b=!v,w=Fi(y),k="x"===w?"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"===w?oi:ai,L="y"===w?ii:ri,D="y"===w?"height":"width",T=x[w],R=T+g[O],B=T-g[L],M=p?-S[D]/2:0,F=v===li?C[D]:S[D],$=v===li?-S[D]:-C[D],_=t.elements.arrow,j=p&&_?Ai(_):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=z[O],W=z[L],V=$i(0,C[D],j[D]),U=b?C[D]/2-M-V-H-E.mainAxis:F-V-H-E.mainAxis,K=b?-C[D]/2+M+V+W+E.mainAxis:$+V+W+E.mainAxis,G=t.elements.arrow&&Mi(t.elements.arrow),q=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,J=null!=(A=null==P?void 0:P[w])?A:0,Y=T+K-J,X=$i(p?Si(R,T+U-J-q):R,T,p?Ci(B,Y):B);x[w]=X,I[w]=X-T;}if(s){var Q,Z="x"===w?oi:ai,ee="x"===w?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=bi(t),a=bi(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=Ti(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)&&bi(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:Yi(o)),bi(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,Mi(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,Ui);}),s&&c.addEventListener("resize",n.update,Ui),function(){r&&l.forEach(function(e){e.removeEventListener("scroll",n.update,Ui);}),s&&c.removeEventListener("resize",n.update,Ui);}},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,zi,{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,br="function"==typeof Map,wr="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(br&&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(wr&&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=>M({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,...B(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 Or=()=>void 0!==window.glue42gd||void 0!==window.glue42alert||void 0!==window.glue42dialog||void 0!==window.iodesktop,$r="warning",_r={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),zr=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:_r[n]};await t.modals.alerts.request(e);}catch(e){console.warn("Failed to request alert. ",{error:e});}};var Gr=function(e){return {ok:!0,result:e}},qr=function(e){return {ok:!1,error:e}},Jr=function(e,t,n){return !1===t.ok?t:!1===n.ok?n:Gr(e(t.result,n.result))},Yr=function(e,t){return !0===t.ok?t:qr(e(t.error))},Xr=function(){return Xr=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},Xr.apply(this,arguments)};function Qr(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(!Qr(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(!Qr(e[o[n]],t[o[n]]))return !1}return !0}}var Zr=function(e){return Array.isArray(e)},ea=function(e){return "object"==typeof e&&null!==e&&!Zr(e)},ta=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)},na=function(e){return e.map(function(e){return "string"==typeof e?"."+e:"["+e+"]"}).join("")},oa=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 Xr({at:e+(n||"")},o)},ia=function(){function e(t){var n=this;this.decode=t,this.run=function(e){return Yr(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?Gr(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?Gr(e):qr({message:ta("a string",e)})})},e.number=function(){return new e(function(e){return "number"==typeof e?Gr(e):qr({message:ta("a number",e)})})},e.boolean=function(){return new e(function(e){return "boolean"==typeof e?Gr(e):qr({message:ta("a boolean",e)})})},e.constant=function(t){return new e(function(e){return Qr(e,t)?Gr(t):qr({message:"expected "+JSON.stringify(t)+", got "+JSON.stringify(e)})})},e.object=function(t){return new e(function(e){if(ea(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]?qr({message:"the key '"+o+"' is required but was not present"}):qr(oa("."+o,i.error));void 0!==i.result&&(n[o]=i.result);}return Gr(n)}return ea(e)?Gr(e):qr({message:ta("an object",e)})})},e.array=function(t){return new e(function(e){if(Zr(e)&&t){return e.reduce(function(e,n,o){return Jr(function(e,t){return e.concat([t])},e,function(e,n){return Yr(function(e){return oa("["+n+"]",e)},t.decode(e))}(n,o))},Gr([]))}return Zr(e)?Gr(e):qr({message:ta("an array",e)})})},e.tuple=function(t){return new e(function(e){if(Zr(e)){if(e.length!==t.length)return qr({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 qr(oa("["+o+"]",i.error));n[o]=i.result;}return Gr(n)}return qr({message:ta("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 Jr(Object.assign,t,n.decode(e))},Gr({}))})},e.anyJson=function(){return new e(function(e){return Gr(e)})},e.unknownJson=function(){return new e(function(e){return Gr(e)})},e.dict=function(t){return new e(function(e){if(ea(e)){var n={};for(var o in e)if(e.hasOwnProperty(o)){var i=t.decode(e[o]);if(!0!==i.ok)return qr(oa("."+o,i.error));n[o]=i.result;}return Gr(n)}return qr({message:ta("an object",e)})})},e.optional=function(t){return new e(function(e){return null==e?Gr(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 qr({message:'expected a value matching one of the decoders, got the errors ["'+r+'"]'})})},e.withDefault=function(t,n){return new e(function(e){return Gr(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 qr({at:na(t.slice(0,i+1)),message:"path does not exist"});if("string"==typeof t[i]&&!ea(o))return qr({at:na(t.slice(0,i+1)),message:ta("an object",o)});if("number"==typeof t[i]&&!Zr(o))return qr({at:na(t.slice(0,i+1)),message:ta("an array",o)});o=o[t[i]];}return Yr(function(e){return void 0===o?{at:na(t),message:"path does not exist"}:oa(na(t),e)},n.decode(o))})},e.succeed=function(t){return new e(function(e){return Gr(t)})},e.fail=function(t){return new e(function(e){return qr({message:t})})},e.lazy=function(t){return new e(function(e){return t().decode(e)})},e}(),ra=ia.string,aa=ia.number,sa=ia.boolean,ca=ia.anyJson;ia.unknownJson;var la=ia.constant,ua=ia.object,da=ia.array;ia.tuple,ia.dict;var fa=ia.optional,pa=ia.oneOf;ia.union,ia.intersection,ia.withDefault,ia.valueAt,ia.succeed;var ma=ia.fail;ia.lazy;const ha=ra().where(e=>e.length>0,"Expected a non-empty string"),ga=aa().where(e=>e>=0,"Expected a non-negative number");ua({name:ha});reactExports.createContext(void 0);const Aa="___platform_prefs___",Fa="_launchpad_minimizeToTray",_a="_launchpad_pinnedPosition",ja="_launchpad_allowDocking",za="_launchpad_dockedAlwaysOnTop",Ha="_launchpad_dockedClaimsSpace",Wa="_launchpad_showExtendedArea",Va="_launchpad_hideLabelsInExtendedArea",Ua="_launchpad_showFavoritesInExtendedArea",Ka="_launchpad_hideFavoritesSection",Ga="_launchpad_showRecentAppsInExtendedArea",Ja="_layouts_saveCurrentOnExit",Ya="_layouts_showUnsavedChangesPrompt",Xa="_layouts_showDeletePrompt",Qa="_downloads_askForEachDownload",ls=pa(la("add"),la("align-bottom"),la("align-bottom-solid"),la("align-left"),la("align-left-bottom"),la("align-left-bottom-solid"),la("align-left-solid"),la("align-left-top"),la("align-left-top-solid"),la("align-right"),la("align-right-bottom"),la("align-right-bottom-solid"),la("align-right-solid"),la("align-right-top"),la("align-right-top-solid"),la("align-top"),la("align-top-solid"),la("always-on-top"),la("always-on-top-on"),la("application"),la("arrow-down-long"),la("arrow-down-to-bracket"),la("arrow-left-long"),la("arrow-right-from-bracket"),la("arrow-right-long"),la("arrow-right"),la("arrow-up"),la("arrow-up-long"),la("ban"),la("bell"),la("bell-solid"),la("bookmark"),la("bullseye-pointer"),la("certificate"),la("check"),la("check-light"),la("check-solid"),la("chevron-down"),la("chevron-left"),la("chevron-right"),la("chevron-up"),la("circle-info"),la("circle-xmark"),la("circle-xmark-full"),la("clock"),la("clock-rotate-left"),la("clone"),la("close"),la("cog"),la("cog-solid"),la("collapse"),la("copy"),la("download"),la("delete-left"),la("dev-tools"),la("ellipsis"),la("ellipsis-vertical"),la("expand"),la("envelope"),la("envelope-open"),la("exclamation-mark"),la("expand"),la("feedback"),la("filter"),la("floppy"),la("floppy-disk-pen"),la("folder"),la("folder-open"),la("globe"),la("group"),la("hidden"),la("home"),la("house"),la("info"),la("keyboard"),la("layout"),la("link"),la("list-ul"),la("lock"),la("logo"),la("minimize"),la("minimize-down"),la("paper-plane-top"),la("paperclip"),la("pause"),la("pen-line"),la("pen-to-square"),la("pin"),la("play"),la("pop-in"),la("pop-in-widget"),la("pop-out"),la("power-off"),la("publish"),la("refresh"),la("resize"),la("restore"),la("rotate-right"),la("search"),la("search-filled"),la("sleep"),la("sliders"),la("snooze"),la("spinner"),la("square"),la("square-arrow-down"),la("square-arrow-up"),la("star"),la("star-full"),la("sticky-off"),la("sticky-off-hover"),la("sticky-on"),la("sticky-on-hover"),la("subscribe"),la("system-close"),la("system-maximize"),la("system-minimize"),la("thumbs-down"),la("thumbs-up"),la("trash"),la("trash-can"),la("triangle-exclamation"),la("unlock"),la("unpin"),la("up-to-line"),la("user"),la("user-gear"),la("visible"),la("workspace")),us=ua({name:ha,displayName:fa(ha),icon:fa(ls),iconSrc:fa(ha),disabled:fa(sa()),separatorAfter:fa(sa())}),ds=ua({id:ha,title:ha,description:fa(ra()),icon:fa(ls),iconSrc:fa(ha),contextMenuActions:fa(da(us)),type:ha}),fs=da(ds),ps=ua({name:ha,type:ha}),ms=pa(la("Left"),la("Right")),hs=pa(la("daily"),la("weekly")),gs=pa(la("Sunday"),la("Monday"),la("Tuesday"),la("Wednesday"),la("Thursday"),la("Friday"),la("Saturday")),ys=ua({customPrefs:fa(ca()),_launchpad_collapsedSections:fa(da(ha)),_launchpad_favorites:fa(fs),_launchpad_recent:fa(da(ps)),_launchpad_isLayoutsPanelOpen:fa(sa()),_launchpad_isCollapsed:fa(sa()),_launchpad_isPinned:fa(sa()),_launchpad_isDocked:fa(sa()),_launchpad_minimizeToTray:fa(sa()),_launchpad_autoCloseStartingAppsAndWorkspaces:fa(sa()),_launchpad_pinnedPosition:fa(ms),_launchpad_allowDocking:fa(sa()),_launchpad_dockedAlwaysOnTop:fa(sa()),_launchpad_dockedClaimsSpace:fa(sa()),_launchpad_showExtendedArea:fa(sa()),_launchpad_hideLabelsInExtendedArea:fa(sa()),_launchpad_showFavoritesInExtendedArea:fa(sa()),_launchpad_hideFavoritesSection:fa(sa()),_launchpad_showRecentAppsInExtendedArea:fa(sa()),_layouts_restoreLastSaved:fa(sa()),_layouts_saveCurrentOnExit:fa(sa()),_layouts_showUnsavedChangesPrompt:fa(sa()),_layouts_showDeletePrompt:fa(sa()),_downloads_askForEachDownload:fa(sa()),_downloads_location:fa(ra()),_system_scheduleRestart:fa(sa()),_system_scheduleRestartTime:fa(ha),_system_scheduleRestartFrequency:fa(hs),_system_scheduleRestartDay:fa(gs),_system_scheduleShutdown:fa(sa()),_system_scheduleShutdownTime:fa(ha),_system_scheduleShutdownFrequency:fa(hs),_system_scheduleShutdownDay:fa(gs)}),vs=reactExports.createContext(void 0);function ks({prefKey:e}){const t=reactExports.useContext(IOConnectContext),n=reactExports.useContext(vs),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 zr({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(Aa))[e]);}catch(e){return i(e)}else r=n;try{const n=ys.runWithException({[e]:r});await t.contexts.update(Aa,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 Ws({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 Vs({className:t,children:n,...o}){const i=E("io-panel-header",t);return jsxRuntimeExports.jsx(se,{className:i,...o,children:n})}Vs.Title=D,Vs.ButtonGroup=ae,Vs.Button=$,Vs.ButtonIcon=I,Vs.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 Ks({className:t,...n}){const o=E("io-panel-footer",t);return jsxRuntimeExports.jsx(ue,{className:o,...n})}function Gs({className:t,children:n,...o}){const i=E("io-panel",t);return jsxRuntimeExports.jsx("div",{className:i,"data-testid":"panel",...o,children:n})}function qs({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 Js({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}%`}})})}
|
|
1545
|
+
*/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}%`}})})}
|
|
1546
1546
|
/*!
|
|
1547
1547
|
* OverlayScrollbars
|
|
1548
1548
|
* Version: 2.14.0
|
|
@@ -1551,8 +1551,8 @@ function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"de
|
|
|
1551
1551
|
* https://github.com/KingSora
|
|
1552
1552
|
*
|
|
1553
1553
|
* Released under the MIT license.
|
|
1554
|
-
*/Us.displayName="PanelBody",Ks.ButtonGroup=ae,Ks.Button=$,Ks.ButtonIcon=I,Ks.Dropdown=re,Gs.Header=Vs,Gs.Body=Us,Gs.Footer=Ks,qs.Icon=P;const Ys=(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]]},Xs="undefined"!=typeof window&&"undefined"!=typeof HTMLElement&&!!window.document?window:{},Qs=Math.max,Zs=Math.min,ec=Math.round,tc=Math.abs,nc=Math.sign,oc=Xs.cancelAnimationFrame,ic=Xs.requestAnimationFrame,rc=Xs.setTimeout,ac=Xs.clearTimeout,sc=e=>void 0!==Xs[e]?Xs[e]:void 0,cc=sc("MutationObserver"),lc=sc("IntersectionObserver"),uc=sc("ResizeObserver"),dc=sc("ScrollTimeline"),fc=e=>void 0===e,pc=e=>null===e,mc=e=>"number"==typeof e,hc=e=>"string"==typeof e,gc=e=>"boolean"==typeof e,yc=e=>"function"==typeof e,vc=e=>Array.isArray(e),bc=e=>"object"==typeof e&&!vc(e)&&!pc(e),wc=e=>{const t=!!e&&e.length,n=mc(t)&&t>-1&&t%1==0;return !!(vc(e)||!yc(e)&&n)&&(!(t>0&&bc(e))||t-1 in e)},kc=e=>!!e&&e.constructor===Object,xc=e=>e instanceof HTMLElement,Cc=e=>e instanceof Element;function Sc(e,t){if(wc(e))for(let n=0;n<e.length&&!1!==t(e[n],n,e);n++);else e&&Sc(Object.keys(e),n=>t(e[n],n,e));return e}const Nc=(e,t)=>e.indexOf(t)>=0,Ec=(e,t)=>e.concat(t),Pc=(e,t,n)=>(!hc(t)&&wc(t)?Array.prototype.push.apply(e,t):e.push(t),e),Ic=e=>Array.from(e||[]),Ac=e=>vc(e)?e:!hc(e)&&wc(e)?Ic(e):[e],Oc=e=>!!e&&!e.length,Lc=e=>Ic(new Set(e)),Dc=(e,t,n)=>{Sc(e,e=>!e||e.apply(void 0,t||[])),n||(e.length=0);},Tc="paddingTop",Rc="paddingRight",Bc="paddingLeft",Mc="paddingBottom",Fc="marginLeft",$c="marginRight",_c="marginBottom",jc="overflowX",zc="overflowY",Hc="width",Wc="height",Vc="visible",Uc="hidden",Kc="scroll",Gc=(e,t,n,o)=>{if(e&&t){let o=!0;return Sc(n,n=>{e[n]!==t[n]&&(o=!1);}),o}return !1},qc=(e,t)=>Gc(e,t,["w","h"]),Jc=(e,t)=>Gc(e,t,["x","y"]),Yc=(e,t)=>Gc(e,t,["t","r","b","l"]),Xc=(e,...t)=>e.bind(0,...t),Qc=e=>{let t;const n=e?rc:ic,o=e?ac:oc;return [i=>{o(t),t=n(()=>i(),yc(e)?e():e);},()=>o(t)]},Zc=e=>{const t=yc(e)?e():e;if(mc(t)){const e=t?rc:ic,n=t?ac:oc;return o=>{const i=e(()=>o(),t);return ()=>{n(i);}}}return t&&t._},el=(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=Ic(arguments),t=Zc(n);if(t){const n="function"==typeof i?i():i,r=Zc(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},tl=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),nl=e=>e?Object.keys(e):[],ol=(e,t,n,o,i,r,a)=>{const s=[t,n,o,i,r,a];return "object"==typeof e&&!pc(e)||yc(e)||(e={}),Sc(s,t=>{Sc(t,(n,o)=>{const i=t[o];if(e===i)return !0;const r=vc(i);if(i&&kc(i)){const t=e[o];let n=t;r&&!vc(t)?n=[]:r||kc(t)||(n={}),e[o]=ol(n,i);}else e[o]=r?i.slice():i;});}),e},il=(e,t)=>Sc(ol({},e),(e,t,n)=>{void 0===e?delete n[t]:e&&kc(e)&&(n[t]=il(e));}),rl=e=>!nl(e).length,al=()=>{},sl=(e,t,n)=>Qs(e,Zs(t,n)),cl=e=>Lc((vc(e)?e:(e||"").split(" ")).filter(e=>e)),ll=(e,t)=>e&&e.getAttribute(t),ul=(e,t)=>e&&e.hasAttribute(t),dl=(e,t,n)=>{Sc(cl(t),t=>{e&&e.setAttribute(t,String(n||""));});},fl=(e,t)=>{Sc(cl(t),t=>e&&e.removeAttribute(t));},pl=(e,t)=>{const n=cl(ll(e,t)),o=Xc(dl,e,t),i=(e,t)=>{const o=new Set(n);return Sc(cl(e),e=>{o[t](e);}),Ic(o).join(" ")};return {C:e=>o(i(e,"delete")),$:e=>o(i(e,"add")),H:e=>{const t=cl(e);return t.reduce((e,t)=>e&&n.includes(t),t.length>0)}}},ml=(e,t,n)=>(pl(e,t).C(n),Xc(hl,e,t,n)),hl=(e,t,n)=>(pl(e,t).$(n),Xc(ml,e,t,n)),gl=(e,t,n,o)=>(o?hl:ml)(e,t,n),yl=(e,t,n)=>pl(e,t).H(n),vl=e=>pl(e,"class"),bl=(e,t)=>{vl(e).C(t);},wl=(e,t)=>(vl(e).$(t),Xc(bl,e,t)),kl=(e,t)=>{const n=t?Cc(t)&&t:document;return n?Ic(n.querySelectorAll(e)):[]},xl=(e,t)=>Cc(e)&&e.matches(t),Cl=e=>xl(e,"body"),Sl=e=>e?Ic(e.childNodes):[],Nl=e=>e&&e.parentElement,El=(e,t)=>Cc(e)&&e.closest(t),Pl=e=>document.activeElement,Il=(e,t,n)=>{const o=El(e,t),i=e&&((e,t)=>{const n=t?Cc(t)&&t:document;return n&&n.querySelector(e)})(n,o),r=El(i,t)===o;return !(!o||!i)&&(o===e||i===e||r&&El(El(e,n),t)!==o)},Al=e=>{Sc(Ac(e),e=>{const t=Nl(e);e&&t&&t.removeChild(e);});},Ol=(e,t)=>Xc(Al,e&&t&&Sc(Ac(t),t=>{t&&e.appendChild(t);}));let Ll;const Dl=e=>{const t=document.createElement("div");return dl(t,"class",e),t},Tl=e=>{const t=Dl(),n=Ll,o=e.trim();return t.innerHTML=n?n.createHTML(o):o,Sc(Sl(t),e=>Al(e))},Rl=(e,t)=>e.getPropertyValue(t)||e[t]||"",Bl=e=>{const t=e||0;return isFinite(t)?t:0},Ml=e=>Bl(parseFloat(e||"")),Fl=e=>Math.round(1e4*e)/1e4,$l=e=>`${Fl(Bl(e))}px`;function _l(e,t){e&&t&&Sc(t,(t,n)=>{try{const o=e.style,i=pc(t)||gc(t)?"":mc(t)?$l(t):t;0===n.indexOf("--")?o.setProperty(n,i):o[n]=i;}catch(e){}});}function jl(e,t,n){const o=hc(t);let i=o?"":{};if(e){const r=Xs.getComputedStyle(e,n)||e.style;i=o?Rl(r,t):Ic(t).reduce((e,t)=>(e[t]=Rl(r,t),e),i);}return i}const zl=(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])}},Hl=(e,t)=>"translate"+(bc(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`),Wl={w:0,h:0},Vl=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:Wl,Ul=e=>Vl("inner",e||Xs),Kl=Xc(Vl,"offset"),Gl=Xc(Vl,"client"),ql=Xc(Vl,"scroll"),Jl=e=>{const t=parseFloat(jl(e,Hc))||0,n=parseFloat(jl(e,Wc))||0;return {w:t-ec(t),h:n-ec(n)}},Yl=e=>e.getBoundingClientRect(),Xl=e=>!(!e||!e[Wc]&&!e[Hc]),Ql=(e,t)=>{const n=Xl(e);return !Xl(t)&&n},Zl=(e,t,n,o)=>{Sc(cl(t),t=>{e&&e.removeEventListener(t,n,o);});},eu=(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 Xc(Dc,cl(t).map(t=>{const o=s?i=>{Zl(e,t,o,a),n&&n(i);}:n;return e&&e.addEventListener(t,o,c),Xc(Zl,e,t,o,a)}))},tu=e=>e.stopPropagation(),nu=e=>e.preventDefault(),ou=e=>tu(e)||nu(e),iu=(e,t)=>{const{x:n,y:o}=mc(t)?{x:t,y:t}:t||{};mc(n)&&(e.scrollLeft=n),mc(o)&&(e.scrollTop=o);},ru=e=>({x:e.scrollLeft,y:e.scrollTop}),au=(e,t)=>{const{D:n,M:o}=e,{w:i,h:r}=t,a=(e,t,n)=>{let o=nc(e)*n,i=nc(t)*n;if(o===i){const n=tc(e),r=tc(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}}},su=({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)}},cu=({D:e,M:t},n)=>{const o=(e,t,n)=>sl(0,1,(e-n)/(e-t)||0);return {x:o(e.x,t.x,n.x),y:o(e.y,t.y,n.y)}},lu=e=>{e&&e.focus&&e.focus({preventScroll:!0,focusVisible:!1});},uu=(e,t)=>{Sc(Ac(t),e);},du=e=>{const t=new Map,n=(e,n)=>{if(e){const o=t.get(e);uu(e=>{o&&o[e?"delete":"clear"](e);},n);}else t.forEach(e=>{e.clear();}),t.clear();},o=(e,i)=>{if(hc(e)){const o=t.get(e)||new Set;return t.set(e,o),uu(e=>{yc(e)&&o.add(e);},i),Xc(n,e,i)}gc(i)&&i&&n();const r=nl(e),a=[];return Sc(r,t=>{const n=e[t];n&&Pc(a,o(t,n));}),Xc(Dc,a)};return o(e||{}),[o,n,(e,n)=>{Sc(Ic(t.get(e)),e=>{n&&!Oc(n)?e.apply(0,n):e();});}]},fu={},pu={},mu=(e,t,n)=>nl(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||pu)[o]=e}}),hu=e=>pu[e],gu="data-overlayscrollbars",yu="os-environment",vu=`${yu}-scrollbar-hidden`,bu=`${gu}-initialize`,wu="noClipping",ku=`${gu}-body`,xu=gu,Cu=`${gu}-viewport`,Su=jc,Nu=zc,Eu="measuring",Pu="scrollbarHidden",Iu=`${gu}-padding`,Au=`${gu}-content`,Ou="os-size-observer",Lu=`${Ou}-appear`,Du=`${Ou}-listener`,Tu="os-scrollbar",Ru=`${Tu}-rtl`,Bu=`${Tu}-horizontal`,Mu=`${Tu}-vertical`,Fu=`${Tu}-track`,$u=`${Tu}-handle`,_u=`${Tu}-visible`,ju=`${Tu}-cornerless`,zu=`${Tu}-interaction`,Hu=`${Tu}-unusable`,Wu=`${Tu}-auto-hide`,Vu=`${Wu}-hidden`,Uu=`${Tu}-wheel`,Ku=`${Fu}-interactive`,Gu=`${$u}-interactive`,qu=e=>0===e.indexOf(Vc),Ju=(e,t)=>{if("auto"===e)return t?Kc:Uc;const n=e||Uc;return [Uc,Kc,Vc].includes(n)?n:Uc},Yu=(e,t)=>{const{overflowX:n,overflowY:o}=jl(e,[jc,zc]);return {x:Ju(n,t.x),y:Ju(o,t.y)}},Xu="__osScrollbarsHidingPlugin",Qu=e=>JSON.stringify(e,(e,t)=>{if(yc(t))throw 0;return t}),Zu=(e,t)=>e?`${t}`.split(".").reduce((e,t)=>e&&tl(e,t)?e[t]:void 0,e):void 0,ed=[33,99],td=[222,666,!0],nd={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:[0,33],resize:null,event:ed,env:td},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"]}},od=(e,t)=>{const n={};return Sc(Ec(nl(t),nl(e)),o=>{const i=e[o],r=t[o];if(bc(i)&&bc(r))ol(n[o]={},od(i,r)),rl(n[o])&&delete n[o];else if(tl(t,o)&&r!==i){let e=!0;if(vc(i)||vc(r))try{Qu(i)===Qu(r)&&(e=!1);}catch(e){}e&&(n[o]=r);}}),n},id=(e,t,n)=>o=>[Zu(e,o),n||void 0!==Zu(t,o)];let rd;let ad;const sd=()=>{const e=(e,t,n)=>{Ol(document.body,e),Ol(document.body,e);const o=Gl(e),i=Kl(e),r=Jl(t);return n&&Al(e),{x:i.h-o.h+r.h,y:i.w-o.w+r.w}},t=Tl(`<div class="${yu}"><div></div><style>${`.${yu}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${yu} div{width:200%;height:200%;margin:10px 0}.${vu}{scrollbar-width:none!important}.${vu}::-webkit-scrollbar,.${vu}::-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=rd;i&&(o.nonce=i);const[r,,a]=du(),[s,c]=Ys({o:e(t,n),i:Jc},Xc(e,t,n,!0)),[l]=c(),u=(e=>{let t=!1;const n=wl(e,vu);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&&Cl(e)&&e,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=ol({},nd),m=Xc(ol,{},p),h=Xc(ol,{},f),g={P:l,k:d,U:u,J:!!dc,G:Xc(r,"r"),K:h,Z:e=>ol(f,e)&&h(),tt:m,nt:e=>ol(p,e)&&m(),ot:ol({},f),st:ol({},p)};if(fl(t,"style"),Al(t),eu(Xs,"resize",()=>{a("r",[]);}),yc(Xs.matchMedia)&&!u&&(!d.x||!d.y)){const e=t=>{const n=Xs.matchMedia(`(resolution: ${Xs.devicePixelRatio}dppx)`);eu(n,"change",()=>{t(),e(t);},{T:!0});};e(()=>{const[e,t]=s();ol(g.P,e),a("r",[t]);});}return g},cd=()=>(ad||(ad=sd()),ad),ld=(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||kl)(n,e):[],o]});Sc(a,n=>Sc(n[0],r=>{const a=n[1],s=i.get(r)||[];if(e.contains(r)&&a){const e=eu(r,a,n=>{o?(e(),i.delete(r)):t(n);});i.set(r,Pc(s,e));}else Dc(s),i.delete(r);}));}};return r(),[()=>{o=!0;},r]})(e,()=>i&&n(!0),s),p=a||[],m=Ec(r||[],p),h=(i,r)=>{if(!Oc(r)){const a=l||al,s=u||al,d=[],m=[];let h=!1,g=!1;if(Sc(r,n=>{const{attributeName:i,target:r,type:l,oldValue:u,addedNodes:f,removedNodes:y}=n,v="attributes"===l,b="childList"===l,w=e===r,k=v&&i,x=k&&ll(r,i||""),C=hc(x)?x:null,S=k&&u!==C,N=Nc(p,i)&&S;if(t&&(b||!w)){const t=v&&S,l=t&&c&&xl(r,c),p=(l?!a(r,i,u,C):!v||t)&&!s(n,!!l,e,o);Sc(f,e=>Pc(d,e)),Sc(y,e=>Pc(d,e)),g=g||p;}!t&&w&&S&&!a(r,i,u,C)&&(Pc(m,i),h=h||N);}),f(e=>Lc(d).reduce((t,n)=>(Pc(t,kl(e,n)),xl(n,e)?Pc(t,n):t),[])),t)return !i&&g&&n(!1),[!1];if(!Oc(m)||h){const e=[Lc(m),h];return i||n.apply(0,e),e}}},g=new cc(Xc(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 ud=null;const dd=(e,t,n)=>{const{ft:o}=n||{},i=hu("__osSizeObserverPlugin"),[r]=Ys({o:!1,u:!0});return ()=>{const n=[],a=Tl(`<div class="${Ou}"><div class="${Du}"></div></div>`)[0],s=a.firstChild,c=e=>{let n=!1,o=!1;if(vc(e)&&!Oc(e)){const t=e[0],[i,,a]=r(t.contentRect),s=Xl(i);o=Ql(i,a),n=!o&&!s;}else o=!0===e;n||t({_t:!0,ft:o});};if(uc){if(!gc(ud)){const t=new uc(al);t.observe(e,{get box(){ud=!0;}}),ud=ud||!1,t.disconnect();}const t=el(c,{p:0,v:0}),o=e=>t(e),i=new uc(o);if(i.observe(ud?e:s),Pc(n,[()=>{i.disconnect();},!ud&&Ol(e,a)]),ud){const t=new uc(o);t.observe(e,{box:"border-box"}),Pc(n,()=>t.disconnect());}}else {if(!i)return al;{const[t,r]=i(s,c,o);Pc(n,Ec([wl(a,Lu),eu(a,"animationstart",t),Ol(e,a)],r));}}return Xc(Dc,n)}},fd=(e,t)=>{let n;const o=Dl("os-trinsic-observer"),[i]=Ys({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(lc)n=new lc(Xc(a,!1),{root:e}),n.observe(o),Pc(t,()=>{n.disconnect();});else {const e=()=>{const e=Kl(o);r(e);};Pc(t,dd(o,e)()),e();}return Xc(Dc,Pc(t,Ol(e,o)))},()=>n&&a(!0,n.takeRecords())]},pd=(e,t,n,o)=>{let i,r,a,s,c,l,u,d;const f=`[${xu}]`,p=`[${Cu}]`,m=["id","class","style","open","wrap","cols","rows"],{dt:h,vt:g,L:y,gt:v,ht:b,V:w,bt:k,wt:x,yt:C,St:S}=e,N=e=>"rtl"===jl(e,"direction"),E={Ot:!1,B:N(h)},P=cd(),I=hu(Xu),[A]=Ys({i:qc,o:{w:0,h:0}},()=>{const o=I&&I.R(e,t,E,P,n).Y,i=!(k&&w)&&yl(g,xu,wu),r=!w&&x("arrange"),a=r&&ru(v),s=a&&S(),c=C(Eu,i),l=r&&o&&o(),u=ql(y),d=Jl(y);return l&&l(),iu(v,a),s&&s(),i&&c(),{w:u.w+d.w,h:u.h+d.h}}),O=(()=>{let e,t,n;const i=el(o,{p:()=>e,v:()=>t,S:()=>n,m(e,t){const[n]=e,[o]=t;return [Ec(nl(n),nl(o)).reduce((e,t)=>(e[t]=n[t]||o[t],e),{})]}}),r=(o,r)=>{if(vc(r)){const[o,i,a]=r;e=o,t=i,n=a;}else mc(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);ol(e,{Ct:d!==t}),ol(E,{B:t}),d=t;},D=(e,t)=>{const[n,i]=e,r={$t:i};return ol(E,{Ot:n}),t||o(r),r},T=({_t:e,ft:t})=>{const n=t?o:O,i={_t:e||t,ft:t};L(i),n(i,r);},R=(e,t)=>{const[,n]=A(),o={xt:n};return L(o),n&&!t&&O(o,e?a:i),o},B=(e,t,n)=>{const o={Ht:t};return L(o),t&&!n&&O(o,i),o},[M,F]=b?fd(g,D):[],$=!w&&dd(g,T,{ft:!0}),[_,j]=ld(g,!1,B,{ct:m,et:m}),z=w&&uc&&new uc(e=>{const t=e[e.length-1].contentRect;T({_t:!0,ft:Ql(t,u)}),u=t;});return [()=>{z&&z.observe(g);const e=$&&$(),t=M&&M(),n=_(),o=P.G(e=>{const[,t]=A();O({Et:e,xt:t,_t:k},s);});return ()=>{z&&z.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]=ld(b||y,!0,R,{et:Ec(m,d||[]),rt:g,it:f,ut:(e,t)=>{const{target:n,attributeName:o}=e;return !(t||!o||w)&&Il(n,f,p)||!!El(n,`.${Tu}`)||!!(e=>yc(u)&&u(e))(e)}});l=e(),c=t;}if(x&&(O.O(),vc(k)||mc(k)?(i=k,r=!1,a=ed,s=td):kc(k)?(i=k.mutation,r=k.resize,a=k.event,s=k.env):(i=!1,r=!1,a=!1,s=!1)),C){const e=j(),t=F&&F(),n=c&&c();e&&ol(o,B(e[0],e[1],C)),t&&ol(o,D(t[0],C)),n&&ol(o,R(n[0],C));}return L(o),o},E]},md=(e,t)=>yc(t)?t.apply(0,e):t,hd=(e,t,n,o)=>{const i=fc(o)?n:o;return md(e,i)||t.apply(0,e)},gd=(e,t,n,o)=>{const i=fc(o)?n:o,r=md(e,i);return !!r&&(xc(r)?r:t.apply(0,e))},yd=(e,t,n,o)=>{const i="--os-viewport-percent",r="--os-scroll-percent",a="--os-scroll-direction",{K:s}=cd(),{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||{},b=[],w=[],k=[],x=gd([u,d,f],()=>g&&h?u:d,l,v),C=e=>{if(dc){let t=null,o=[];const i=new dc({source:m,axis:e}),r=()=>{t&&t.cancel(),t=null;},a=a=>{const{Dt:s}=n,c=su(s)[e],l="x"===e,u=[Hl(0,l),Hl(`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?wl:bl;Sc(e,e=>{o(e.Lt,t);});},E=(e,t)=>{Sc(e,e=>{const[n,o]=t(e);_l(n,o);});},P=(e,t,n)=>{const o=gc(n),i=!o||!n;(!o||n)&&N(w,e,t),i&&N(k,e,t);},I=e=>{const t=e?"x":"y",n=Dl(`${Tu} ${e?Bu:Mu}`),i=Dl(Fu),r=Dl($u),a={Lt:n,Ut:i,Mt:r},s=S[t];return Pc(e?w:k,a),Pc(b,[Ol(n,i),Ol(i,r),Xc(Al,n),s&&s.kt(a),o(a,P,e)]),a},A=Xc(I,!0),O=Xc(I,!1);return A(),O(),[{Pt:()=>{const e=(()=>{const{Rt:e,Vt:t}=n,o=(e,t)=>sl(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]:Fl(e)+""}];E(w,t(e.x)),E(k,t(e.y));},Nt:()=>{if(!dc){const{Dt:e}=n,t=cu(e,ru(m)),o=e=>t=>[t.Lt,{[r]:Fl(e)+""}];E(w,o(t.x)),E(k,o(t.y));}},qt:()=>{const{Dt:e}=n,t=su(e),o=e=>t=>[t.Lt,{[a]:e?"0":"1"}];E(w,o(t.x)),E(k,o(t.y)),dc&&(w.forEach(S.x.kt),k.forEach(S.y.kt));},Bt:()=>{if(g&&!h){const{Rt:e,Dt:t}=n,o=su(t),i=cu(t,ru(m)),r=t=>{const{Lt:n}=t,r=Nl(n)===f&&n,a=(e,t,n)=>{const o=t*e;return $l(n?o:-o)};return [r,r&&{transform:Hl({x:a(i.x,e.x,o.x),y:a(i.y,e.y,o.y)})}]};E(w,r),E(k,r);}},Ft:P,jt:{Xt:w,Yt:A,Wt:Xc(E,w)},Jt:{Xt:k,Yt:O,Wt:Xc(E,k)}},()=>(Ol(x,w[0].Lt),Ol(x,k[0].Lt),Xc(Dc,b))]},vd=(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]=Qc(333),[v,b]=Qc(444),w=e=>{yc(u.scrollBy)&&u.scrollBy({behavior:"smooth",left:e.x,top:e.y});};let k=!0;return Xc(Dc,[eu(h,"pointermove pointerleave",o),eu(p,"pointerenter",()=>{r(zu,!0);}),eu(p,"pointerleave pointercancel",()=>{r(zu,!1);}),!l&&eu(p,"mousedown",()=>{const e=Pl();(ul(e,Cu)||ul(e,xu)||e===document.body)&&rc(Xc(lu,c),25);}),eu(p,"wheel",e=>{const{deltaX:t,deltaY:n,deltaMode:o}=e;k&&0===o&&Nl(p)===s&&w({x:t,y:n}),k=!1,r(Uu,!0),g(()=>{k=!0,r(Uu);}),nu(e);},{I:!1,A:!0}),eu(p,"pointerdown",()=>{const e=eu(d,"click",e=>{t(),ou(e);},{T:!0,A:!0,I:!1}),t=eu(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?Hc:Wc,r=a?"left":"top",s=a?"w":"h",c=a?"x":"y",l=(e,t)=>o=>{const{Rt:i}=n,r=Kl(m)[s]-Kl(h)[s],a=t*o/r*i[c];iu(u,{[c]:e+a});},p=[];return eu(m,"pointerdown",n=>{const a=El(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),b();const e=!a&&(n.shiftKey||"instant"===k),y=Xc(Yl,h),x=Xc(Yl,m),C=(e,t)=>(e||y())[r]-(t||x())[r],S=ec(Yl(u)[i])/Kl(u)[s]||1,N=l(ru(u)[c],1/S),E=n[o],P=y(),I=x(),A=P[i],O=C(P,I)+A/2,L=E-I[r],D=a?0:L-O,T=e=>{Dc(M),g.releasePointerCapture(e.pointerId);},R=a||e,B=f(),M=[eu(d,t,T),eu(d,"selectstart",e=>nu(e),{I:!1}),eu(m,t,T),R&&eu(m,"pointermove",e=>N(D+(e[o]-E))),R&&(()=>{const e=ru(u);B();const t=ru(u),n={x:t.x-e.x,y:t.y-e.y};(tc(n.x)>3||tc(n.y)>3)&&(f(),iu(u,e),w(n),v(B));})];if(g.setPointerCapture(n.pointerId),e)N(D);else if(!a){const e=hu("__osClickScrollPlugin");if(e){const t=e(N,D,A,e=>{e?B():Pc(M,B);});Pc(M,t),Pc(p,Xc(t,!0));}}}})})(),y,b])},bd=e=>{const t=cd(),{K:n,U:o}=t,{elements:i}=n(),{padding:r,viewport:a,content:s}=i,c=xc(e),l=c?{}:e,{elements:u}=l,{padding:d,viewport:f,content:p}=u||{},m=c?e:l.target,h=Cl(m),g=m.ownerDocument,y=g.documentElement,v=()=>g.defaultView||Xs,b=Xc(hd,[m]),w=Xc(gd,[m]),k=Xc(Dl,""),x=Xc(b,k,a),C=Xc(w,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&&w(k,r,d),D=!I&&P,T=[D,A,L,O].map(e=>xc(e)&&!Nl(e)&&e),R=e=>e&&Nc(T,e),B=!R(A)&&(e=>{const t=Kl(e),n=ql(e),o=jl(e,jc),i=jl(e,zc);return n.w-t.w>0&&!qu(o)||n.h-t.h>0&&!qu(i)})(A)?A:m,M=E?y:A,F={dt:m,vt:O,L:A,rn:L,ht:D,gt:M,Kt:E?g:A,ln:h?y:B,Gt:g,bt:h,Tt:c,V:N,an:v,wt:e=>yl(A,Cu,e),yt:(e,t)=>gl(A,Cu,e,t),St:()=>gl(M,Cu,"scrolling",!0)},{dt:$,vt:_,rn:j,L:z,ht:H}=F,W=[()=>{fl(_,[xu,bu]),fl($,bu),h&&fl(y,[bu,xu]);}];let V=Sl([H,z,j,_,$].find(e=>e&&!R(e)));const U=E?$:H||z,K=Xc(Dc,W);return [F,()=>{const e=v(),t=Pl(),n=e=>{Ol(Nl(e),Sl(e)),Al(e);},i=e=>eu(e,"focusin focusout focus blur",ou,{A:!0,I:!1}),r="tabindex",a=ll(z,r),s=i(t);return dl(_,xu,N?"":"host"),dl(j,Iu,""),dl(z,Cu,""),dl(H,Au,""),N||(dl(z,r,a||"-1"),h&&dl(y,ku,"")),Ol(U,V),Ol(_,j),Ol(j||_,!N&&z),Ol(z,H),Pc(W,[s,()=>{const e=Pl(),t=R(z),o=t&&e===z?$:e,s=i(o);fl(j,Iu),fl(H,Au),fl(z,Cu),h&&fl(y,ku),a?dl(z,r,a):fl(z,r),R(H)&&n(H),t&&n(z),R(j)&&n(j),lu(o),s();}]),o&&!N&&(hl(z,Cu,Pu),Pc(W,Xc(fl,z,Cu))),lu(!N&&h&&t===$&&e.top===e?z:t),s(),V=0,K},K]},wd=({ht:e})=>({Qt:t,un:n,At:o})=>{const{$t:i}=t||{},{Ot:r}=n;e&&(i||o)&&_l(e,{[Wc]:r&&"100%"});},kd=({vt:e,rn:t,L:n,V:o},i)=>{const[r,a]=Ys({i:Yc,o:zl()},Xc(zl,e,"padding",""));return ({zt:e,Qt:s,un:c,At:l})=>{let[u,d]=a(l);const{U:f}=cd(),{_t:p,xt:m,Ct:h}=s||{},{B:g}=c,[y,v]=e("paddingAbsolute");(p||d||(l||m))&&([u,d]=r(l));const b=!o&&(v||h||d);if(b){const e=!y||!t&&!f,o=u.r+u.l,r=u.t+u.b,a={[$c]:e&&!g?-o:0,[_c]:e?-r:0,[Fc]:e&&g?-o:0,top:e?-u.t:0,right:e?g?-u.r:"auto":0,left:e?g?"auto":-u.l:0,[Hc]:e&&`calc(100% + ${o}px)`},s={[Tc]:e?u.t:0,[Rc]:e?u.r:0,[Mc]:e?u.b:0,[Bc]:e?u.l:0};_l(t||n,a),_l(n,s),ol(i,{rn:u,fn:!e,F:t?s:ol({},a,s)});}return {_n:b}}},xd=(e,t)=>{const n=cd(),{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=Xc(Qs,0),h={display:()=>!1,direction:e=>"ltr"!==e,flexDirection:e=>e.endsWith("-reverse"),writingMode:e=>"horizontal-tb"!==e},g=nl(h),y={i:qc,o:{w:0,h:0}},v={i:Jc,o:{}},b=e=>{u(Eu,!p&&e);},w=()=>jl(r,g),k=(e,t)=>{const n=!nl(e).length,o=!t&&g.some(t=>{const n=e[t];return hc(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}};b(!0);const i=ru(c),a=eu(s,Kc,e=>{const t=ru(c);e.isTrusted&&t.x===i.x&&t.y===i.y&&tu(e);},{A:!0,T:!0}),l=u("noContent",!0);iu(c,{x:0,y:0}),l();const d=ru(c),f=ql(c);iu(c,{x:f.w,y:f.h});const p=ru(c),m={x:p.x-d.x,y:p.y-d.y};iu(c,{x:-f.w,y:-f.h});const y=ru(c),v={x:y.x-d.x,y:y.y-d.y},w={x:tc(m.x)>=tc(v.x)?p.x:y.x,y:tc(m.y)>=tc(v.y)?p.y:y.y};return iu(c,i),ic(()=>a()),{D:d,M:w}},x=(e,t)=>{const n=Xs.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===Vc?Uc:(e=>e.replace(`${Vc}-`,""))(e),r=qu(e),a=qu(n);if(!t&&!o)return Uc;if(r&&a)return Vc;if(r){return t&&o?i:t?Vc:Uc}return t?i:a&&o?Vc: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=>[Vc,Uc,Kc].map(t=>_(Ju(t),e)),n=t(!0).concat(t()).join(" ");u(n),u(nl(e).map(t=>_(e[t],"x"===t)).join(" "),!0);},[N,E]=Ys(y,Xc(Jl,r)),[P,I]=Ys(y,Xc(ql,r)),[A,O]=Ys(y),[L]=Ys(v),[D,T]=Ys(y),[R]=Ys(v),[B]=Ys({i:(e,t)=>Gc(e,t,Lc(Ec(nl(e),nl(t)))),o:{}}),[M,F]=Ys({i:(e,t)=>Jc(e.D,t.D)&&Jc(e.M,t.M),o:{D:{x:0,y:0},M:{x:0,y:0}}}),$=hu(Xu),_=(e,t)=>`${t?Su:Nu}${(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:j,Et:z}=s||{},H=$&&$.R(e,t,c,n,a),{X:W,Y:V,W:U}=H||{},[K,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=qu(q.x),X=qu(q.y),Q=g||h||v||_||z||G;let Z=E(l),ee=I(l),te=O(l),ne=T(l);if(G&&f&&u(Pu,!K),Q){yl(o,xu,wu)&&b(!0);const e=V&&V(),[t]=Z=N(l),[n]=ee=P(l),i=Gl(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=D(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||_||z||ue||ce||ie||ae||J||G||Q||y&&p,[he]=a("update.flowDirectionStyles"),[ge,ye]=B(he?he(r):w(),l),ve=_||j||ye||fe||l,[be,we]=ve?M(k(ge,!!he),l):F();let ke=C(de,q);b(!1),me&&(S(ke),ke=Yu(r,de),U&&W&&(W(ke,se,le),_l(r,U(ke))));const[xe,Ce]=R(ke);return gl(o,xu,wu,pe),gl(i,Iu,wu,pe),ol(t,{cn:xe,Vt:{x:oe.w,y:oe.h},Rt:{x:re.w,y:re.h},j:de,Dt:au(be,re)}),{sn:Ce,tn:ie,nn:ae,en:we||ae}}},Cd=e=>{const[t,n,o]=bd(e),i={rn:{t:0,r:0,b:0,l:0},fn:!1,F:{[$c]:0,[_c]:0,[Fc]:0,[Tc]:0,[Rc]:0,[Mc]:0,[Bc]: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}=cd(),d=!l&&(u.x||u.y),f=[wd(t),kd(t,i),xd(t,i)];return [n,e=>{const t={},n=d&&ru(a),o=n&&c();return Sc(f,n=>{ol(t,n(e,t)||{});}),iu(a,n),o&&o(),s||iu(r,0),t},i,t,o]},Sd=(e,t,n,o,i)=>{let r=!1;const a=id(t,{}),[s,c,l,u,d]=Cd(e),[f,p,m]=pd(u,l,a,e=>{b({},e);}),[h,g,,y]=((e,t,n,o,i,r)=>{let a,s,c,l,u,d=al,f=0;const p=["mouse","pen"],m=e=>p.includes(e.pointerType),[h,g]=Qc(),[y,v]=Qc(100),[b,w]=Qc(100),[k,x]=Qc(()=>f),[C,S]=yd(e,i,o,vd(t,i,o,e=>m(e)&&R())),{vt:N,Kt:E,bt:P}=i,{Ft:I,Pt:A,Nt:O,qt:L,Bt:D}=C,T=(e,t)=>{if(x(),e)I(Vu);else {const e=Xc(I,Vu,!0);f>0&&!t?k(e):e();}},R=()=>{(c?a:l)||(T(!0),y(()=>{T(!1);}));},B=e=>{I(Wu,e,!0),I(Wu,e,!1);},M=e=>{m(e)&&(a=c,c&&T(!0));},F=[x,v,w,g,()=>d(),eu(N,"pointerover",M,{T:!0}),eu(N,"pointerenter",M),eu(N,"pointerleave",e=>{m(e)&&(a=!1,c&&T(!1));}),eu(N,"pointermove",e=>{m(e)&&s&&R();}),eu(E,"scroll",e=>{h(()=>{O(),R();}),r(e),D();})],$=hu(Xu);return [()=>Xc(Dc,Pc(F,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:w,U:k}=cd(),{cn:x,j:C}=o,[S,N]=e("showNativeOverlaidScrollbars"),[R,M]=e("scrollbars.theme"),[F,_]=e("scrollbars.visibility"),[j,z]=e("scrollbars.autoHide"),[H,W]=e("scrollbars.autoHideSuspend"),[V]=e("scrollbars.autoHideDelay"),[U,K]=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&&w.x&&w.y,ne=!k&&!$,oe=te||ne,ie=(e,t,n)=>{const o=e.includes(Kc)&&(F===Vc||"auto"===F&&t===Kc);return I(_u,o,n),o};if(f=V,X&&(H&&Q?(B(!1),d(),b(()=>{d=eu(E,"scroll",Xc(B,!0),{T:!0});})):B(!0)),(N||ne)&&I("os-theme-none",oe),M&&(I(u),I(R,!0),u=R),W&&!H&&B(!0),z&&(s="move"===j,c="leave"===j,l="never"===j,T(l,!0)),K&&I(Gu,U),q&&I(Ku,!!G),ee){const e=ie(J.x,x.x,!0),t=ie(J.y,x.y,!1);I(ju,!(e&&t));}Z&&(O(),A(),D(),h&&L(),I(Hu,!C.x,!0),I(Hu,!C.y,!1),I(Ru,v&&!P));},{},C]})(e,t,m,l,u,i),v=e=>nl(e).some(t=>!!e[t]),b=(e,i)=>{if(n())return !1;const{dn:a,At:s,It:l,pn:u}=e,d=a||{},f=!!s||!r,h={zt:id(t,d,f),dn:d,At:f};if(u)return g(h),!1;const y=i||p(ol({},h,{It:l})),b=c(ol({},h,{un:m,Qt:y}));g(ol({},h,{Qt:y,Zt:b}));const w=v(y),k=v(b),x=w||k||!rl(d)||f;return r=!0,x&&o(e,{Qt:y,Zt:b}),x};return [()=>{const{ln:e,gt:t,St:n}=u,o=ru(e),i=[f(),s(),h()],r=n();return iu(t,o),r(),Xc(Dc,i)},b,()=>({vn:m,gn:l}),{hn:u,bn:y},d]},Nd=new WeakMap,Ed=e=>Nd.get(e),Pd=(e,t,n)=>{const{tt:o}=cd(),i=xc(e),r=i?e:e.target,a=Ed(r);if(t&&!a){let a=!1;const s=[],c={},l=e=>{const t=il(e),n=hu("__osOptionsValidationPlugin");return n?n(t,!0):t},u=ol({},o(),l(t)),[d,f,p]=du(),[m,h,g]=du(n),y=(e,t)=>{g(e,t),p(e,t);},[v,b,w,k,x]=Sd(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=>{Nd.delete(e);})(r),Dc(s),a=!0,y("destroyed",[S,e]),f(),h();},S={options(e,t){if(e){const n=t?o():{},i=od(u,ol(n,l(e)));rl(i)||(ol(u,i),b({dn:i}));}return ol({},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 ol({},{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 ol({},o,{clone:()=>{const e=l(n());return b({pn:!0}),e}})};return ol({},{target:e,host:t,padding:n||o,viewport:o,content:i||o,scrollOffsetElement:r,scrollEventElement:a,scrollbarHorizontal:u(s),scrollbarVertical:u(c)})},update:e=>b({At:e,It:!0}),destroy:Xc(C,!1),plugin:e=>c[nl(e)[0]]};return Pc(s,[x]),((e,t)=>{Nd.set(e,t);})(r,S),mu(fu,Pd,[S,d,c]),((e,t)=>{const{nativeScrollbarsOverlaid:n,body:o}=t||{},{k:i,U:r,K:a}=cd(),{nativeScrollbarsOverlaid:s,body:c}=a().cancel,l=null!=n?n:s,u=fc(o)?c:o,d=(i.x||i.y)&&l,f=e&&(pc(u)?!r:u);return !!d||!!f})(k.hn.bt,!i&&e.cancel)?(C(!0),S):(Pc(s,v()),y("initialized",[S]),S.update(),S)}return a};Pd.plugin=e=>{const t=vc(e),n=t?e:[e],o=n.map(e=>mu(e,Pd)[0]);return (e=>{Sc(e,e=>Sc(e,(t,n)=>{fu[n]=e[n];}));})(n),t?o:o[0]},Pd.valid=e=>{const t=e&&e.elements,n=yc(t)&&t();return kc(n)&&!!Ed(n.target)},Pd.env=()=>{const{P:e,k:t,U:n,J:o,ot:i,st:r,K:a,Z:s,tt:c,nt:l}=cd();return ol({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:o,staticDefaultInitialization:i,staticDefaultOptions:r,getDefaultInitialization:a,setDefaultInitialization:s,getDefaultOptions:c,setDefaultOptions:l})},Pd.nonce=e=>{rd=e;},Pd.trustedTypePolicy=e=>{Ll=e;};const Id=()=>{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]},Ad=e=>{const{options:t,events:n,defer:o}=e||{},[i,r]=reactExports.useMemo(Id,[]),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,Pd.valid(e)&&e.options(t||{},!0);},[t]),reactExports.useEffect(()=>{const{current:e}=a;l.current=n,Pd.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(Pd.valid(t))return;const n=s.current,o=c.current||{},r=l.current||{},u=()=>a.current=Pd(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]=Ad({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 Od=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]=Ad({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)return u({target:c.current,elements:{viewport:l.current,content:l.current}}),()=>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 Ld({text:t="Label",...n}){return jsxRuntimeExports.jsx("label",{...n,children:t})}var Dd=React["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"],Td=0,Rd=()=>Td++,Bd=0;function Md(e,t){void 0===t&&(t="🅰");var[n,o]=reactExports.useState(Bd?Rd:void 0);return Dd(()=>{void 0===n&&o(Td++),Bd=1;},[]),e||(void 0===n?n:t+n)}function Fd(){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},b)=>{const w=Fd(),k=n||`input-${w}`,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(Ld,{htmlFor:k,text:c}),l&&jsxRuntimeExports.jsx(P,{variant:l,onClick:e=>C(e)}),jsxRuntimeExports.jsx("input",{id:k,className:"io-input",ref:b,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 _d=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=Fd(),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(Ld,{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})]})});_d.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=Fd(),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(Ld,{htmlFor:f,text:a,"data-testid":l["data-testid"]?`${l["data-testid"]}-label`:void 0})]})});jd.displayName="Checkbox";const zd=reactExports.forwardRef(({id:n,className:o,name:i="radio",align:r="left",label:a,checked:s,disabled:c,...l},u)=>{const d=Fd(),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(Ld,{htmlFor:f,text:a})]})});zd.displayName="Radio";const Hd=()=>{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 Wd(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&&Or(),[])}const ef=()=>{const e=reactExports.useContext(IOConnectContext),[t,n]=reactExports.useState([]);return reactExports.useEffect(()=>{e&&e.themes?.list().then(n).catch(console.warn);},[e]),t};const sf=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=Fd(),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 cf(e){return {name:e.name,title:e.title,hidden:e.isHidden,userProperties:e.customProperties}}function lf(e){return {name:e.name,title:e.title,hidden:e.hidden,userProperties:e.userProperties}}sf.displayName="Toggle";const uf={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 cf(n)}const n=e.appManager?.myApplication;if(!n)return;return lf(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=>cf(e))}const n=e.appManager?.applications()??[];return n.map(e=>lf(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=cf(e);t(n);})}const o=e.appManager?.onAppAdded(e=>{const n=lf(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=cf(e.app);t(n);})}const o=e.appManager?.onAppChanged(e=>{const n=lf(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 df={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:uf.restartPlatform,shutdownPlatform:uf.shutdownPlatform};reactExports.createContext({theme:"dark"});reactExports.createContext(void 0);const gf=n=>{const{General:o,Launchpad:i,Docking:r,ExtendedArea:a,Layouts:s,Downloads:c,System:l}=Np(),u=[[{key:"general",Component:o}],[{key:"launchpad",Component:i},{key:"docking",Component:r},{key:"extended-area",Component:a}],[{key:"layouts",Component:s}],[{key:"downloads",Component:c}],[{key:"system",Component:l}]];return jsxRuntimeExports.jsx(Od,{element:Us,elementProps:n,children:u.map((n,o)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[n.map(({key:t,Component:n})=>jsxRuntimeExports.jsx(n,{},t)),o<u.length-1&&jsxRuntimeExports.jsx(J,{})]},n[0].key))})},yf=({title:t="General",...n})=>{const{Theme:o}=Np();return jsxRuntimeExports.jsx(T,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})},vf=({className:n,title:o="Theme",...i})=>{const{currentTheme:r,selectTheme:a}=Hd(),s=ef();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}=ks({prefKey:t});return jsxRuntimeExports.jsx(sf,{checked:i,disabled:o,onChange:e=>r(e.target.checked),...n})},wf=({align:t="right",label:n="Minimize to tray",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Fa,...o}),kf=({prefKey:n,options:o,disabled:i,...r})=>{const{isLoading:a,value:s="Select option",update:c}=ks({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))})})]})},xf=({className:n,label:o="Pinned position",...i})=>jsxRuntimeExports.jsx(T,{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(kf,{className:n,prefKey:_a,options:["Left","Right"],...i})]})}),Cf=({align:t="right",label:n='Hide "Favorites"',...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ka,...o}),Sf=({align:t="right",label:n="Allow docking to top",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:ja,...o}),Nf=({align:t="right",label:n="Always on top",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:za,...o}),Ef=({align:t="right",label:n="Claim occupied space",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ha,...o}),Pf=({align:t="right",label:n="Show the extended Launchpad area",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Wa,...o}),If=({align:t="right",label:n="Hide labels",...o})=>{const{value:i}=ks({prefKey:Wa});return jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Va,disabled:!i,...o})},Af=({align:t="right",label:n='Show "Favorites"',...o})=>{const{value:i}=ks({prefKey:Wa});return jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ua,disabled:!i,...o})},Of=({align:t="right",label:n='Show "Recent"',...o})=>{const{value:i}=ks({prefKey:Wa});return jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ga,disabled:!i,...o})},Lf=({title:n="Layouts",...o})=>{const{LayoutsSaveCurrentOnExit:i,LayoutsShowDeletePrompt:r,LayoutsShowUnsavedChangesPrompt:a}=Np();return jsxRuntimeExports.jsxs(T,{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:Ja,...o}),Tf=({align:t="right",label:n="Show prompt for unsaved changes",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Ya,"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:Xa,"data-testid":"layouts-show-delete-prompt-toggle",...o}),Bf=({title:t="Downloads",...n})=>{const{DownloadsLocation:o}=Np();return jsxRuntimeExports.jsx(T,{title:t,...n,children:jsxRuntimeExports.jsx(o,{})})};function Mf({title:n="Downloads"}){const{ItemSearch:o,HeaderButtons:i}=sp();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}),_f=()=>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}=_f(),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 zf({className:n,...o}){const{MoreButton:i,CloseButton:r,ExternalButton:a}=sp();return jsxRuntimeExports.jsxs(ae,{className:n,align:"right",...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(r,{})]})}function Hf({icon:n="ellipsis-vertical",...o}){const{items:i,clearItems:r,showSettings:a}=_f(),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 Wf({className:t,icon:n="pop-out",...o}){const i=reactExports.useContext(IOConnectContext),r=reactExports.useCallback(()=>{uf.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 Vf({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):df.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 Kf(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 Gf({className:t,...n}){const o=E("io-dm-body","io-panel-body",t),{DownloadListEmpty:i,ItemGroup:r,Item:a}=sp(),{items:s,searchQuery:c,setCount:l,sortItems:d}=_f(),p=d(s),m=Wd(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:Kf(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(Od,{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 qf({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 Jf({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 Yf({className:o,item:i,...r}){const{ItemHeader:a,ItemBody:s,ItemFooter:c}=sp(),{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 Xf({bytesReceived:t=0,bytesTotal:n=0,...o}){const i=reactExports.useCallback(()=>t&&n?Math.round(t/n*100):0,[t,n]);return jsxRuntimeExports.jsx(Js,{value:i(),...o})}function Qf({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}=_f(),y="progressing"===r||"paused"===r,v="interrupted"===r||"cancelled"===r,b=y?"Cancel Download":"Remove Download",w=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?w(o):k(o);},[y,w,o,k]);return jsxRuntimeExports.jsxs("div",{className:f,...d,children:[jsxRuntimeExports.jsx(D,{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:b,onClick:C})]})]})}function Zf({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(Xf,{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 ep={success:"check-solid",warning:"exclamation-mark",critical:"exclamation-mark"};function tp({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:ep[o],className:"icon-severity",size:"10"}),i&&jsxRuntimeExports.jsx("p",{className:"io-text-smaller",children:i})]})}function np({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}=_f(),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(tp,{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(tp,{variant:"warning",text:"Cancelled"});case"interrupted":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(tp,{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 op({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}=_f();return jsxRuntimeExports.jsxs(Gs,{className:r,...i,children:[jsxRuntimeExports.jsxs(Gs.Header,{children:[jsxRuntimeExports.jsx(Gs.Header.Title,{size:"large",text:o,tag:"h1"}),jsxRuntimeExports.jsx(Gs.Header.ButtonGroup,{children:jsxRuntimeExports.jsx(I,{className:"non-draggable",variant:"circle",icon:"close",size:"32",onClick:()=>{s();},disabled:u})})]}),jsxRuntimeExports.jsx(Gs.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 ip={Header:Mf,ItemSearch:jf,HeaderButtons:zf,MoreButton:Hf,ExternalButton:Wf,CloseButton:Vf,Body:Gf,DownloadListEmpty:qf,ItemGroup:Jf,Item:Yf,ItemProgress:Xf,ItemHeader:Qf,ItemBody:Zf,ItemFooter:np,Settings:op},rp=reactExports.createContext(ip),ap=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...ip,...n}),[n]);return jsxRuntimeExports.jsx(rp.Provider,{value:o,children:t})});ap.displayName="ComponentsStore";const sp=()=>reactExports.useContext(rp);const up=({className:n,label:o="Location",...i})=>{const{configuration:{downloadFolder:r},setDownloadLocationWithDialog:a,isDownloadLocationDialogVisible:s,downloadLocationList:c}=_f();return jsxRuntimeExports.jsxs(T,{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"})]})},dp=({align:t="right",label:n="Ask where to save each file before downloading",...o})=>jsxRuntimeExports.jsx(bf,{align:t,label:n,prefKey:Qa,...o}),fp=({title:n="System",...o})=>{const{SystemRestartSection:i,SystemShutdownSection:r}=Np();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{})]})},pp="T42.GD.Execute",mp=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],hp=(e,t)=>e in t;function gp({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(!hp(e,t))throw new Error(`Invalid day: ${e}`);return t[e]}(n).toString()),`${a} ${r} * * ${s}`}function yp(e){const t=reactExports.useContext(IOConnectContext),{value:n,update:o}=ks({prefKey:vp(e)}),{value:i,update:r}=ks({prefKey:vp(e,"Time")}),{value:s,update:l}=ks({prefKey:vp(e,"Frequency")}),{value:u,update:d}=ks({prefKey:vp(e,"Day")}),p=reactExports.useCallback(async()=>{try{await t.interop.invoke(pp,{command:`cancel-${e}`});}catch(e){console.error(e);}},[t,e]),m=reactExports.useCallback(async()=>{try{const n=gp({time:i??"12:00",frequency:s??"daily",day:"weekly"===s?u:"*"});await t.interop.invoke(pp,{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,mp.includes(t))try{await d(e);}catch(e){console.error("Failed to update day:",e);}else console.error("Invalid day provided");}}}function vp(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}=yp(o);return jsxRuntimeExports.jsxs(T,{className:r,...i,children:[jsxRuntimeExports.jsx(sf,{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:mp.map(t=>jsxRuntimeExports.jsx(ei.Item,{onClick:()=>p(t),children:t},t))})]})]})}function wp({className:t,...n}){return jsxRuntimeExports.jsx(bp,{...n,className:t,variant:"restart"})}function kp({className:t,...n}){return jsxRuntimeExports.jsx(bp,{...n,className:t,variant:"shutdown"})}const xp={Body:gf,General:yf,Theme:vf,Launchpad:({title:n="Launchpad",...o})=>{const{MinimizeToTray:i,PinnedPosition:r,HideFavoritesFromLaunchpad:a}=Np();return jsxRuntimeExports.jsxs(T,{title:n,...o,children:[jsxRuntimeExports.jsx(i,{}),jsxRuntimeExports.jsx(r,{}),jsxRuntimeExports.jsx(a,{})]})},MinimizeToTray:wf,PinnedPosition:xf,HideFavoritesFromLaunchpad:Cf,Docking:({className:n,title:o="Docking",...i})=>{const r=E("io-preferences-panel-docking",n),{AllowDocking:a,DockedAlwaysOnTop:s,DockedClaimsSpace:c}=Np();return jsxRuntimeExports.jsxs(T,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{})]})},AllowDocking:Sf,DockedAlwaysOnTop:Nf,DockedClaimsSpace:Ef,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}=Np();return jsxRuntimeExports.jsxs(T,{className:r,title:o,...i,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsx(c,{}),jsxRuntimeExports.jsx(l,{})]})},ShowExtendedArea:Pf,HideLabelsInExtendedArea:If,ShowFavoritesInExtendedArea:Af,ShowRecentAppsInExtendedArea:Of,Layouts:Lf,LayoutsSaveCurrentOnExit:Df,LayoutsShowUnsavedChangesPrompt:Tf,LayoutsShowDeletePrompt:Rf,Downloads:Bf,DownloadsLocation:up,DownloadsAskForEachDownload:dp,System:fp,SystemRestartSection:wp,SystemShutdownSection:kp},Cp=reactExports.createContext(xp),Sp=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...xp,...n}),[n]);return jsxRuntimeExports.jsx(Cp.Provider,{value:o,children:t})});Sp.displayName="PreferencesPanelComponentsStoreProvider";const Np=()=>reactExports.useContext(Cp);function Ap(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];}}}Ap.default=Ap;C(Ap);function Dp(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 uf.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([uf.onAppAdded(t,a),uf.onAppRemoved(t,s),uf.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 $p=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:()=>{}}),_p=()=>reactExports.useContext($p);function jp({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}=mm(),f=Ud();return jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{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 zp({label:t="Allow notifications",align:n="right",...o}){const{settings:i,saveSetting:r}=_p(),s=Ud(),c=reactExports.useCallback(e=>{r({enabledNotifications:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(sf,{label:t,align:n,onChange:c,checked:i.enabledNotifications??!1,...o}):null}function Hp({label:t="Allow notification toasts",align:n="right",...o}){const{settings:i,saveSetting:r}=_p(),s=Ud(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({enabledToasts:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(sf,{label:t,align:n,onChange:l,checked:i.enabledToasts??!1,disabled:c,...o}):null}function Wp({label:t="Show notification badge",align:n="right",...o}){const{settings:i,saveSetting:r}=_p(),s=Ud()&&!i.enabledNotifications,c=reactExports.useCallback(e=>{r({showNotificationBadge:e.target.checked});},[r]);return jsxRuntimeExports.jsx(sf,{label:t,align:n,onChange:c,checked:i.showNotificationBadge??!1,disabled:s,...o})}function Vp({label:t="Close notification on click",align:n="right",...o}){const{settings:i,saveSetting:r}=_p(),s=Ud(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({closeNotificationOnClick:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(sf,{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}=_p(),s=Ud(),c=reactExports.useCallback(e=>{r({autoHidePanel:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(sf,{label:t,align:n,onChange:c,checked:i.autoHidePanel??!1,...o}):null}const Kp=(e,t)=>e?`${e} ${t}${1!==e?"s":""}`:"",Gp=e=>{const t=Math.floor(e/60),n=e%60,o=Kp(t,"minute"),i=Kp(n,"second");return o+(o&&i?" ":"")+i};function qp({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}=_p(),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:Gp((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:Gp(t)},t))})})]})]}):null}function Jp({className:n,title:o="Stacking",...i}){const r=E("io-notifications-settings-panel-stacking",n),{ToastStacking:a,ToastStackBy:s}=mm();return Ud()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}function Yp({label:t="Allow toast stacking",align:n="right",...o}){const{settings:i,saveSetting:r}=_p(),s=Ud(),c=s&&!i.enabledNotifications,l=reactExports.useCallback(e=>{r({toastStacking:e.target.checked});},[r]);return s?jsxRuntimeExports.jsx(sf,{label:t,align:n,onChange:l,checked:i.toastStacking??!1,disabled:c,...o}):null}const Xp={application:"Application",severity:"Priority"},Qp=Object.fromEntries(Object.entries(Xp).map(([e,t])=>[t,e]));function Zp({className:n,title:o="Group by",...i}){const r=E("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=_p(),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(Xp);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:Xp[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=Qp[t];d(e);},children:t},t))})})]})]})}function em({className:n,title:o="Placement",...i}){const r=E("io-notifications-settings-panel-placement",n),{PlacementPanel:a,PlacementToasts:s}=mm();return Ud()?jsxRuntimeExports.jsx("div",{className:r,...i,children:jsxRuntimeExports.jsxs(T,{title:o,children:[jsxRuntimeExports.jsx(a,{}),jsxRuntimeExports.jsx(s,{})]})}):null}const tm=e=>e.replace(/(^|-)\w/g,e=>e.toUpperCase().replace("-"," "));function nm({className:n,title:o="Panel position",...i}){const r=E("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=_p(),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?tm(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 om({className:n,title:o="Toasts position",...i}){const r=E("flex","jc-between","ai-center",n),{settings:s,saveSetting:c}=_p(),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?tm(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 im({className:t,title:n="Snooze",...o}){const i=E("io-notifications-settings-panel-snooze",t),{SnoozeDuration:r}=mm(),{settings:a}=_p();return Ud()&&a.snooze?.enabled?jsxRuntimeExports.jsx("div",{className:i,...o,children:jsxRuntimeExports.jsx(T,{title:n,children:jsxRuntimeExports.jsx(r,{})})}):null}function rm({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}=_p(),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:Gp((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:Gp(t)},t))})})]})]}):null}function am({className:n,title:o,...i}){const r=E("io-notifications-settings-panel-subscriptions",n),{SubscribeAll:a,SubscribeApp:s,SubscribeMuteAll:c,SubscribeMuteApp:l}=mm(),{sortAppsAlphabetically:u}=Dp(),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(T,{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 sm({label:t="All apps",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=_p(),c=Ud()&&!i.enabledNotifications,l=reactExports.useCallback(e=>{s({subscribe:e.target.checked});},[s]);return jsxRuntimeExports.jsx(sf,{align:n,label:t,onChange:l,checked:(r.sourceFilter?.allowed?.includes("*")&&0===r.sourceFilter?.blocked?.length)??!1,disabled:c,...o})}function cm({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=_p(),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(sf,{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 lm({label:t="Mute all",align:n="right",...o}){const{settings:i,configuration:r,saveAllFilter:s}=_p(),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(sf,{align:n,label:t,onChange:u,checked:r.sourceFilter?.muted?.includes("*")??!1,disabled:l??!1,...o}):null}function um({label:t="App",align:n="right",app:o,...i}){const{allApps:r,settings:s,configuration:c,saveFilter:l}=_p(),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(sf,{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 dm={Body:n=>{const{General:o,Placement:i,Stacking:r,Snooze:a,Subscriptions:s}=mm(),{settings:c}=_p(),l=[{key:"general",Component:o},{key:"stacking",Component:r},{key:"placement",Component:i},...Ud()&&!!c.snooze?.enabled?[{key:"snooze",Component:a}]:[],{key:"subscriptions",Component:s}];return jsxRuntimeExports.jsx(Od,{element:Us,elementProps:n,children:l.map(({key:n,Component:o},i)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(o,{}),i<l.length-1&&jsxRuntimeExports.jsx(J,{})]},n))})},General:jp,AllowNotifications:zp,AllowNotificationToasts:Hp,ShowNotificationBadge:Wp,CloseNotificationOnClick:Vp,PanelAutoHide:Up,HideToastsAfter:qp,Stacking:Jp,ToastStacking:Yp,ToastStackBy:Zp,Placement:em,PlacementPanel:nm,PlacementToasts:om,Snooze:im,SnoozeDuration:rm,Subscriptions:am,SubscribeAll:sm,SubscribeApp:cm,SubscribeMuteAll:lm,SubscribeMuteApp:um},fm=reactExports.createContext(dm),pm=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...dm,...n}),[n]);return jsxRuntimeExports.jsx(fm.Provider,{value:o,children:t})});pm.displayName="NotificationsSettingsPanelComponentsStoreProvider";const mm=()=>reactExports.useContext(fm),ym=({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})]}),vm=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("div",{className:E("io-profile-section-body",n),children:[i&&jsxRuntimeExports.jsx(D,{className:"io-profile-section-title",text:i}),o.map(({name:t,value:n})=>jsxRuntimeExports.jsx(ym,{name:t,value:n},t))]}),bm=({className:n,items:o,title:i})=>jsxRuntimeExports.jsxs("section",{className:E("io-profile-section",n),children:[jsxRuntimeExports.jsx(vm,{items:o,title:i}),jsxRuntimeExports.jsx(J,{className:"mt-8"})]}),wm=({title:t="License",...n})=>jsxRuntimeExports.jsx(bm,{title:t,...n}),km=({title:t="Version",...n})=>jsxRuntimeExports.jsx(bm,{title:t,...n}),xm=({title:t="Plugins",...n})=>jsxRuntimeExports.jsx(bm,{title:t,...n}),Cm=({className:n})=>{const o=Or()?"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."]})]})},Sm=({avatarInitials:n=(Or()?"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(vm,{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"})]}),Nm={LicenseSection:wm,ProductsInfoSection:km,PluginsSection:xm,Trademark:Cm,UserSection:Sm},Em=reactExports.createContext(Nm),Pm=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Nm,...n}),[n]);return jsxRuntimeExports.jsx(Em.Provider,{value:o,children:t})});Pm.displayName="ProfilePanelComponentsStoreProvider";document.querySelector("#root")??document.body;reactExports.createContext({theme:"dark"});const Jm="var(--io-neutrals-0)",Ym="var(--io-neutrals-900)";function Xm(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 Ym;t.fillStyle=e;return Xm(t.fillStyle)}{const i=e.match(/\d+/g)?.map(Number);if(!i||i.length<3)return Ym;[t,n,o]=i;}}return (.2126*t+.7152*n+.0722*o)/255>.5?Ym:Jm}function Qm({className:t,channel:n,...o}){const i=E("io-channel-badge",t),r=reactExports.useMemo(()=>Xm(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 Zm(){return jsxRuntimeExports.jsx(P,{variant:"check","data-testid":"channel-selector-channel-selected"})}function eh({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(sf,{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(sf,{label:"Subscribe",checked:o.read,onChange:()=>{i({...o,read:!o.read});},onKeyDown:a("read",!o.isSelected||r?.read),disabled:!o.isSelected||r?.read})})]})}const th=reactExports.createContext({});function nh({channel:t,isSelected:n,onChannelSelect:o,onChannelRestrict:i,...r}){const{variant:s,selectedChannels:l,lockedChannelRestrictions:u}=reactExports.useContext(th),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")||R(e)&&(e.preventDefault(),o?.({...t,isSelected:!d}));},[t,o,d]),h=reactExports.useCallback(e=>{i?.(e);},[i]);return jsxRuntimeExports.jsx(V,{prepend:jsxRuntimeExports.jsx(Qm,{channel:t}),append:"single"===s||"multi"===s?d&&jsxRuntimeExports.jsx(Zm,{}):jsxRuntimeExports.jsx(eh,{channel:t,handleChannelRestricted:h,lockedChannelRestriction:f}),isSelected:d,onClick:p,onKeyDown:m,...r,children:t.name},t.name)}function oh({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(sf,{label:"Directional",align:"right",checked:i,onChange:r,onClick:s,onKeyDown:c,disabled:o,"data-testid":`channel-selector-toggle-${t}`})}const ih=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(th.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(oh,{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(nh,{channel:t,isSelected:t.isSelected,onChannelSelect:c,onChannelRestrict:l,"data-testid":`channel-selector-channel-${t.name}`},t.name))]})})})});ih.displayName="ChannelSelector";const rh=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}));rh.displayName="ChannelSelectorButtonWrapper";function uh({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 dh({actionButtons:n,children:o,onCompletion:i,size:r,title:a=(Or()?"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=>{!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(fe.Body,{children:o}),jsxRuntimeExports.jsx(fe.Footer,{children:jsxRuntimeExports.jsx(uh,{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 fh({children:t}){return jsxRuntimeExports.jsx("h1",{"data-testid":"io-dialog-heading",className:"io-dialog-template-heading",children:t})}function ph({onCompletion:n,size:o,variables:i}){const{actionButtons:r,heading:a,text:s,title:c}=i;return jsxRuntimeExports.jsx(dh,{actionButtons:r,onCompletion:n,size:o,title:c,children:jsxRuntimeExports.jsx(fe.Body.Content,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(fh,{children:a}),jsxRuntimeExports.jsx("p",{"data-testid":"io-dialog-text",children:s})]})})})}function mh({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(dh,{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(fh,{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 hh({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(dh,{actionButtons:r,onCompletion:e=>n({...e,inputs:v}),size:o,title:c,validationErrors:h?[h]:[],children:[jsxRuntimeExports.jsx(fe.Body.Content,{children:jsxRuntimeExports.jsx(fh,{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 gh=ua({width:ga,height:ga}),yh=ca().andThen(e=>((e,t)=>{const n=typeof e;return "function"===n?ca():ma(`The argument provided as "${t}" must be a function, received: ${n}`)})(e,"onCompletion")),vh=ua({autofocus:fa(sa()),id:ha,text:ha,variant:pa(la("default"),la("primary"),la("critical"),la("outline"),la("link"))}),bh=ua({disabledButtonIds:da(ha),errorMessage:ha,regexPattern:ha}),wh=ua({actionButtons:da(vh),heading:ra(),text:ra(),title:fa(ra())}),kh=ua({templateName:la("noInputsConfirmationDialog"),onCompletion:yh,size:fa(gh),variables:wh}),xh=ua({actionButtons:da(vh),checkbox:ua({id:ha,initialValue:fa(sa()),label:fa(ra())}),heading:ra(),text:ra(),title:fa(ra())}),Ch=ua({templateName:la("singleCheckboxDialog"),onCompletion:yh,size:fa(gh),variables:xh}),Sh=ua({actionButtons:da(vh),heading:ra(),input:ua({id:ha,initialValue:fa(ra()),label:fa(ra()),placeholder:fa(ra()),validation:fa(bh)}),title:fa(ra())}),Nh=ua({templateName:la("singleTextInputDialog"),onCompletion:yh,size:fa(gh),variables:Sh});[{name:"noInputsConfirmationDialog",Dialog:ph,validate:kh.runWithException},{name:"singleCheckboxDialog",Dialog:mh,validate:Ch.runWithException},{name:"singleTextInputDialog",Dialog:hh,validate:Nh.runWithException}];reactExports.createContext({config:{message:""},theme:"dark",setResult:()=>{}});const jh={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 Wh=reactExports.createContext({config:jh,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:()=>{}}),Vh=()=>reactExports.useContext(Wh);function Uh({...n}){const{config:o,close:i}=Vh(),{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 Kh({className:n,handleSubmit:o,...i}){const r=E("io-panel-body",n),{config:a,submitFeedback:s}=Vh(),{IntroField:c,DescriptionField:l,TechInfoField:u,EnvInfoField:d,FileAttachmentsField:f,CategoryAttachmentsField:p,MailListField:m}=ug(),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 Gh({...n}){const{FooterButtons:o}=ug(),{openUrl:i,submitInProgress:r,submitStatus:a,jiraTicketURL:s}=Vh();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(Ws,{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 qh({className:t,...n}){const{CloseButton:o}=ug(),{close:i}=Vh(),r=E("non-draggable",t);return jsxRuntimeExports.jsx(ae,{className:r,...n,children:jsxRuntimeExports.jsx(o,{onClick:()=>i()})})}function Jh({className:n,...o}){const{SubmitButton:i,CancelButton:r,CloseButton:a}=ug(),{close:s,submitCompleted:c}=Vh();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 Yh({text:t="Submit",...n}){return jsxRuntimeExports.jsx($,{form:"feedback",type:"submit",variant:"primary",text:t,...n})}function Xh({text:t="Cancel",...n}){return jsxRuntimeExports.jsx($,{variant:"link",text:t,...n})}function Qh({...t}){return jsxRuntimeExports.jsx($,{variant:"primary",...t})}function Zh({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 eg({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(_d,{id:"description",name:"description",label:o,readOnly:r,disabled:a})}):null}function tg({showField:t,className:n,title:o="Technical Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=Vh(),u=t??l.errorMessage,d=r??l.errorMessage;return u&&d?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(_d,{id:"errorMessage",name:"errorMessage",label:o,value:d,readOnly:a,disabled:s})}):null}function ng({showField:t,className:n,title:o="Environment Information",hint:i,fieldValue:r,readOnly:a=!1,disabled:s,...c}){const{config:l}=Vh(),u=t??l.showEnvironmentInfo,d=r??l.environmentInfo;return u&&d?jsxRuntimeExports.jsx(T,{className:n,hint:i,...c,children:jsxRuntimeExports.jsx(_d,{id:"environmentInfo",name:"environmentInfo",label:o,value:d,readOnly:a,disabled:s})}):null}function og({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}=Vh(),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(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: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 ig({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}=Vh(),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(T,{className:n,title:o,hint:i,...u,children:jsxRuntimeExports.jsx("div",{className:"category-attachments",children:p.map(t=>jsxRuntimeExports.jsx(sf,{id:t,name:t,align:"right",label:t,readOnly:r,disabled:s,defaultChecked:h(t)},t))})}):null}function rg({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}=Vh();if(!r)return null;const y=a??m.createJiraTicket,v=c??m.sendEmail;return jsxRuntimeExports.jsxs(T,{className:p,hint:i,title:o,...f,children:[y&&jsxRuntimeExports.jsx(sf,{id:"createJiraTicket",name:"createJiraTicket",label:s,align:"right",readOnly:u,disabled:d,defaultChecked:y}),v&&jsxRuntimeExports.jsx(sf,{onChange:()=>{g(!h);},id:"sendEmail",name:"sendEmail",label:l,align:"right",readOnly:u,disabled:d,defaultChecked:v})]})}function ag({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}=Vh(),d=t??l.sendEmail,f=a??!1===l.allowEditRecipients;return d&&u?jsxRuntimeExports.jsx(T,{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 sg={Header:Uh,Body:Kh,Footer:Gh,HeaderButtons:qh,FooterButtons:Jh,SubmitButton:Yh,CancelButton:Xh,CloseButton:Qh,IntroField:Zh,DescriptionField:eg,TechInfoField:tg,EnvInfoField:ng,FileAttachmentsField:og,CategoryAttachmentsField:ig,SettingsField:rg,MailListField:ag},cg=reactExports.createContext(sg),lg=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...sg,...n}),[n]);return jsxRuntimeExports.jsx(cg.Provider,{value:o,children:t})});function ug(e){return {...reactExports.useContext(cg),...e}}lg.displayName="ComponentsStore";var Pg={exports:{}};var Rg,Bg,Hg,Wg;
|
|
1555
|
-
function Gg(){if(Bg)return Rg;Bg=1;return Rg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}Pg.exports=function(){if(Wg)return Hg;Wg=1;var e=Gg();function t(){}function n(){}return n.resetWarningCache=t,Hg=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},Hg}()();var Yg=C(Pg.exports);function Xg(e){return Xg="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},Xg(e)}function Qg(){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 Zg="object"===("undefined"==typeof window?"undefined":Xg(window))&&window.Element||function(){};Yg.oneOfType([Yg.string,Yg.func,function(e,t,n){if(!(e[t]instanceof Zg))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},Yg.shape({current:Yg.any})]);var ey=Yg.oneOfType([Yg.func,Yg.string,Yg.shape({$$typeof:Yg.symbol,render:Yg.func}),Yg.arrayOf(Yg.oneOfType([Yg.func,Yg.string,Yg.shape({$$typeof:Yg.symbol,render:Yg.func})]))]),ty=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],ny="entering",oy="entered",iy="exiting",ry="exited";({"aria-label":Yg.string,className:Yg.string,cssModule:Yg.object,role:Yg.string,size:Yg.string,tag:ey,vertical:Yg.bool});function py(e,t){return py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},py(e,t)}var my=!1;var gy=React.createContext(null),yy="unmounted",vy="exited",by="entering",wy="entered",ky="exiting",xy=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=vy,o.appearStatus=by):i=wy:i=t.unmountOnExit||t.mountOnEnter?yy:vy,o.state={status:i},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,py(e,t);}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yy?{status:vy}: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!==by&&n!==wy&&(t=by):n!==by&&n!==wy||(t=ky);}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===by){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===vy&&this.setState({status:yy});},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||my?this.safeSetState({status:wy},function(){t.props.onEntered(r);}):(this.props.onEnter(r,a),this.safeSetState({status:by},function(){t.props.onEntering(r,a),t.onTransitionEnd(c,function(){t.safeSetState({status:wy},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&&!my?(this.props.onExit(o),this.safeSetState({status:ky},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:vy},function(){e.props.onExited(o);});});})):this.safeSetState({status:vy},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===yy)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(gy.Provider,{value:null},"function"==typeof n?n(e,o):React.cloneElement(React.Children.only(n),o))},t}(React.Component);function Cy(){}function Sy(e){return Sy="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},Sy(e)}xy.contextType=gy,xy.propTypes={},xy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cy,onEntering:Cy,onEntered:Cy,onExit:Cy,onExiting:Cy,onExited:Cy},xy.UNMOUNTED=yy,xy.EXITED=vy,xy.ENTERING=by,xy.ENTERED=wy,xy.EXITING=ky;var Ny,Ey=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"];function Py(){return Py=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},Py.apply(this,arguments)}function Iy(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 Ay(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 Oy(e,t){return Oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oy(e,t)}function Ly(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=Ty(e);if(t){var i=Ty(this).constructor;n=Reflect.construct(o,arguments,i);}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===Sy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dy(e)}(this,n)}}function Dy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ty(e){return Ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ty(e)}function Ry(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 By(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ry(Object(n),!0).forEach(function(t){My(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function My(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fy=By(By({},xy.propTypes),{},{horizontal:Yg.bool,isOpen:Yg.bool,children:Yg.oneOfType([Yg.arrayOf(Yg.node),Yg.node]),tag:ey,className:Yg.node,navbar:Yg.bool,cssModule:Yg.object,innerRef:Yg.shape({current:Yg.object})}),$y=By(By({},xy.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:350}),_y=(My(Ny={},ny,"collapsing"),My(Ny,oy,"collapse show"),My(Ny,iy,"collapsing"),My(Ny,ry,"collapse"),Ny);var jy=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&&Oy(e,t);}(t,reactExports.Component);var e=Ly(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(Dy(o));}),o}return Ay(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=Iy(t,Ey),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,ty),g=(u=p,d=ty,f={},Object.keys(u).forEach(function(e){-1===d.indexOf(e)&&(f[e]=u[e]);}),f);return React.createElement(xy,Py({},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 _y[e]||"collapse"}(t),u=Qg(E(a,o&&"collapse-horizontal",r,s&&"navbar-collapse"),c),d=null===m?null:My({},o?"width":"height",m);return React.createElement(n,Py({},g,{style:By(By({},g.style),d),className:u,ref:e.nodeRef}),l)})}}]),t}();jy.propTypes=Fy,jy.defaultProps=$y;reactExports.createContext(void 0);reactExports.createContext(void 0);reactExports.createContext(void 0);var Ev=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===Pv}(e)}(e)};var Pv="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Iv(e,t){return !1!==t.clone&&t.isMergeableObject(e)?Tv((n=e,Array.isArray(n)?[]:{}),e,t):e;var n;}function Av(e,t,n){return e.concat(t).map(function(e){return Iv(e,n)})}function Ov(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 Lv(e,t){try{return t in e}catch(e){return !1}}function Dv(e,t,n){var o={};return n.isMergeableObject(e)&&Ov(e).forEach(function(t){o[t]=Iv(e[t],n);}),Ov(t).forEach(function(i){(function(e,t){return Lv(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(Lv(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return Tv;var n=t.customMerge(e);return "function"==typeof n?n:Tv}(i,n)(e[i],t[i],n):o[i]=Iv(t[i],n));}),o}function Tv(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Av,n.isMergeableObject=n.isMergeableObject||Ev,n.cloneUnlessOtherwiseSpecified=Iv;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Dv(e,t,n):Iv(t,n)}Tv.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Tv(e,n,t)},{})};C(Tv);const Mv=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})});Mv.displayName="SearchBar";const zv=reactExports.createContext({searchQuery:"",setSearch:()=>{},isPanelVisible:!1,sortNotificationsBy:"newest",setSortBy:()=>{},viewNotificationsBy:"all",setViewBy:()=>{},isBulkActionsVisible:!1,showBulkActions:()=>{},hideBulkActions:()=>{}}),Hv=()=>reactExports.useContext(zv);function Wv({title:n,onOpenSettings:o,onClose:i,...r}){const{HeaderCaptionTitle:a,HeaderCaptionCount:s,HeaderCaptionButtonSettings:c,HeaderCaptionButtonClose:l,HeaderActions:u,HeaderBulkActions:d,HeaderSearch:f}=Rb(),{isBulkActionsSupported:p,notificationsCount:m}=_p(),{isBulkActionsVisible:h}=Hv(),g=Ud();return jsxRuntimeExports.jsxs(Vs,{...r,children:[jsxRuntimeExports.jsxs("div",{className:"io-panel-header-caption",children:[jsxRuntimeExports.jsx(a,{title:n}),jsxRuntimeExports.jsx(s,{}),jsxRuntimeExports.jsxs(Vs.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 Vv({text:n="Notifications",counter:o,...i}){const{notificationsCount:r}=_p();return jsxRuntimeExports.jsx(D,{text:n,size:"large",...i,children:(o??!0)&&jsxRuntimeExports.jsxs("span",{children:["(",r,")"]})})}const Uv="newest",Kv="oldest",Gv="severity",qv=["None","Low","Medium","High","Critical"],Jv={key:Uv,descending:!0},Yv=e=>[...e].sort((e,t)=>(t.timestamp||0)-(e.timestamp||0)),Xv=e=>[...e].sort((e,t)=>(e.timestamp||0)-(t.timestamp||0)),Qv=(e,t)=>{const n=qv[0];return [...e].sort((e,o)=>{const i=qv.indexOf(e.severity||n),r=qv.indexOf(o.severity||n);return (t?-1:1)*(i-r)})},Zv={[Uv]:Yv,[Kv]:Xv,[Gv]:Qv},eb={severity:"Priority",newest:"Newest",oldest:"Oldest"};function tb({...t}){const[n,o]=reactExports.useState([]),{NotificationsList:i,Notification:r}=Rb(),{notifications:a,setCount:s,notificationsCount:c}=_p(),{sortNotificationsBy:p,viewNotificationsBy:m,searchQuery:h}=Hv(),g=reactExports.useRef(null),y=Wd(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(Yv(v));break;case"oldest":o(Xv(v));break;case"severity":o(Qv(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(Od,{ref:g,element:Us,elementProps:t,children:jsxRuntimeExports.jsx(i,{notifications:n,Notification:r})})}function nb({...t}){const{FooterButtons:n}=Rb();return jsxRuntimeExports.jsx(Ks,{...t,children:jsxRuntimeExports.jsx(n,{})})}function ob({className:n,...o}){const{FooterButtonClearAll:i,FooterButtonClearAllOld:r}=Rb(),{notifications:a}=_p(),[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 ib({text:t="Clear All",...n}){const{clearAll:o}=_p();return jsxRuntimeExports.jsx($,{text:t,onClick:()=>{o();},...n})}function rb({text:t="Clear Old",...n}){const{clearAllOld:o}=_p();return jsxRuntimeExports.jsx($,{text:t,onClick:()=>{o();},...n})}function ab(e){const t=Ud(),{onClose:n,settings:o}=_p(),{isPanelVisible:i}=Hv(),{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 sb({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}=Sb(),{handleWrapperClick:p}=ab(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 cb({notification:t,...n}){const{settings:o,notificationStacks:i}=_p(),{isPanelVisible:r}=Hv(),{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(qs,{...n,children:l>9?"9+":l})}function lb({className:t,notification:n,...o}){if(!n?.severity||"None"===n.severity)return null;const i=E("io-notification-header-badge",t);return jsxRuntimeExports.jsx(qs,{className:i,...o,children:n.severity})}function ub({className:n,state:o,severity:i="None",icon:r,...a}){const s=E("io-notification-header-icon",n),{isPanelVisible:c}=Hv();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 db({className:t,notification:{appTitle:n},...o}){const i=E("io-notification-header-title",t);return jsxRuntimeExports.jsx("div",{className:i,...o,children:n})}function fb({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:Kf(n??0)??"Just Now"})}function pb({notification:{id:t,state:n},...o}){const{settings:i,snooze:r}=_p(),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 mb({notification:{id:t,updateState:n},...o}){const i=Ud(),{onClose:r}=_p(),{isPanelVisible:s}=Hv(),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 hb({className:n,notification:o,...i}){const r=E("io-notification-body",n),{BodyIcon:a,BodyTitle:s,BodyDescription:c}=Sb(),{icon:l,title:u,body:d}=o,{handleClick:f}=ab(o);return jsxRuntimeExports.jsxs("div",{className:r,role:"button",tabIndex:0,onKeyDown:async e=>{R(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 gb({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 yb({text:t,...n}){return jsxRuntimeExports.jsx(D,{text:t,...n})}function vb({className:t,text:n,...o}){const i=E("io-notification-body-description",t);return jsxRuntimeExports.jsx("p",{className:i,...o,children:n})}function bb({className:n,notification:o}){const i=E("io-notification-footer",n),{FooterButton:r}=Sb(),{handleWrapperClick:a}=ab(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 wb({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 kb={Header:sb,HeaderCount:cb,HeaderBadge:lb,HeaderIcon:ub,HeaderTitle:db,HeaderTimestamp:fb,HeaderButtonSnooze:pb,HeaderButtonClose:mb,Body:hb,BodyIcon:gb,BodyTitle:yb,BodyDescription:vb,Footer:bb,FooterButton:wb},xb=reactExports.createContext(kb),Cb=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...kb,...n}),[n]);return jsxRuntimeExports.jsx(xb.Provider,{value:o,children:t})});function Sb(e){return {...reactExports.useContext(xb),...e}}function Nb({className:n,notification:o,...i}){const{Header:r,Body:a,Footer:s}=Sb(),{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 Eb({components:t,notification:n,...o}){return jsxRuntimeExports.jsx(Cb,{components:t,children:jsxRuntimeExports.jsx(Nb,{notification:n,...o})})}function Pb({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(Eb,{notification:t},t.id))]})}function Ib({...t}){const{notificationStacks:o}=_p();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o.map(n=>jsxRuntimeExports.jsx(Pb,{notifications:n.items,...t},n.key))})}Cb.displayName="ComponentsStoreProvider";const Ab=({notification:n,Notification:o,...i})=>{const{configuration:r,isBulkActionsSupported:a,selectedNotifications:s,selectNotification:c}=_p(),{isPanelVisible:l,isBulkActionsVisible:u}=Hv(),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 Ob({className:n,Notification:o,notifications:i=[],noNotificationText:r="No notifications to display",...a}){const s=E("io-notification-list",n),{settings:c}=_p(),{isPanelVisible:l}=Hv(),{toastStacking:u}=c,d=u&&!l,f=i.length>0;return jsxRuntimeExports.jsxs("div",{className:s,...a,children:[d&&jsxRuntimeExports.jsx(Ib,{}),!d&&(f?i.map(t=>jsxRuntimeExports.jsx(Ab,{notification:t,Notification:o,...a},t.id)):jsxRuntimeExports.jsx("div",{className:"io-notification-list-no-notifications",children:r}))]})}const Lb={Header:Wv,HeaderCaptionTitle:Vv,HeaderCaptionCount:function({variant:t="primary",...n}){const{notificationsCount:o=0}=_p();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}=_p(),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}=Rb();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}=Hv(),{onNotificationsSort:s}=(()=>{const{notifications:e}=_p(),[t,n]=reactExports.useState(Jv),{key:o,descending:i}=t,r=reactExports.useMemo(()=>Zv[o](e,i),[e,o,i]),s=reactExports.useCallback(e=>{n(t=>({key:e,descending:t.key!==e?Jv.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:eb[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}=_p(),{viewNotificationsBy:r,setViewBy:a}=Hv(),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}=_p();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}=_p(),{showBulkActions:r}=Hv();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}=Rb(),{isBulkActionsSupported:f}=_p();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}=_p();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}=_p();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}=_p(),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}=_p(),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}=_p(),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}=_p(),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}=_p(),{hideBulkActions:a}=Hv();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}=_p(),{searchQuery:f,setSearch:p}=Hv(),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:tb,Footer:nb,FooterButtons:ob,FooterButtonClearAll:ib,FooterButtonClearAllOld:rb,Notification:Eb,NotificationsList:Ob},Db=reactExports.createContext(Lb),Tb=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Lb,...n}),[n]);return jsxRuntimeExports.jsx(Db.Provider,{value:o,children:t})});function Rb(e){return {...reactExports.useContext(Db),...e}}Tb.displayName="ComponentsStoreProvider";const Fb=({className:t,notifications:n,maxToasts:o=1,...i})=>{const r=E("io-toasts-body",t),{NotificationsList:a,Notification:s}=zb(),[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:""})})};Fb.displayName="Body";const $b={Body:Fb,Notification:Eb,NotificationsList:Ob},_b=reactExports.createContext($b),jb=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...$b,...n}),[n]);return jsxRuntimeExports.jsx(_b.Provider,{value:o,children:t})});function zb(e){return {...reactExports.useContext(_b),...e}}jb.displayName="ComponentsStoreProvider";const Kb=n=>{const{General:o,Layouts:i}=Qb(),r=[{key:"general",Component:o},{key:"layouts",Component:i}];return jsxRuntimeExports.jsx(Od,{element:Us,elementProps:n,children:r.map(({key:n,Component:o},i)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(o,{}),i<r.length-1&&jsxRuntimeExports.jsx(J,{})]},n))})},Gb=({title:t="General",...n})=>{const{Theme:o}=Qb();return jsxRuntimeExports.jsx(T,{title:t,"data-testid":"preferences-panel-general-block",...n,children:jsxRuntimeExports.jsx(o,{})})},qb=({title:t="Layouts",...n})=>{const{LayoutsShowDeletePrompt:o}=Qb();return jsxRuntimeExports.jsx(T,{title:t,"data-testid":"preferences-panel-layouts-block",...n,children:jsxRuntimeExports.jsx(o,{})})},Jb={Body:Kb,General:Gb,Theme:vf,Layouts:qb,LayoutsShowUnsavedChangesPrompt:Tf,LayoutsShowDeletePrompt:Rf},Yb=reactExports.createContext(Jb),Xb=reactExports.memo(({children:t,components:n})=>{const o=reactExports.useMemo(()=>({...Jb,...n}),[n]);return jsxRuntimeExports.jsx(Yb.Provider,{value:o,children:t})});Xb.displayName="PreferencesPanelComponentsStoreProvider";const Qb=()=>reactExports.useContext(Yb);
|
|
1554
|
+
*/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;
|
|
1555
|
+
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);
|
|
1556
1556
|
|
|
1557
1557
|
const CustomIOContext = reactExports.createContext(null);
|
|
1558
1558
|
const useCustomIOContext = () => {
|
|
@@ -1886,7 +1886,7 @@ const Handlers = ({ chosenIntentName, config, chosenHandler, showBackButton, set
|
|
|
1886
1886
|
onConfirmButtonClick(saveUserChoice);
|
|
1887
1887
|
};
|
|
1888
1888
|
return (React.createElement(React.Fragment, null,
|
|
1889
|
-
React.createElement(
|
|
1889
|
+
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" }),
|
|
1890
1890
|
React.createElement("div", { className: "io-intent-list-wrapper" },
|
|
1891
1891
|
!!filteredHandlers.instances.length && (React.createElement(InstanceHandlers, { handlers: filteredHandlers.instances, chosenHandler: chosenHandler, onHandlerClick: handleSelectHandlerClick })),
|
|
1892
1892
|
!!filteredHandlers.apps.length && (React.createElement(AppHandlers, { handlers: filteredHandlers.apps, chosenHandler: chosenHandler, onHandlerClick: handleSelectHandlerClick }))),
|
|
@@ -1935,12 +1935,12 @@ const DefaultIntentResolver = ({ config, io, onUserResponse }) => {
|
|
|
1935
1935
|
setShowIntentsList(false);
|
|
1936
1936
|
};
|
|
1937
1937
|
return (React.createElement(CustomIOContextProvider, { io: io },
|
|
1938
|
-
React.createElement(
|
|
1939
|
-
React.createElement(
|
|
1940
|
-
React.createElement(
|
|
1938
|
+
React.createElement(qs, { className: "io-resolver-panel p-16", "data-testid": "io-intent-resolver" },
|
|
1939
|
+
React.createElement(qs.Header, null,
|
|
1940
|
+
React.createElement(T, { "data-testid": "io-intent-resolver-title", text: "Intent Resolver", size: "large" }),
|
|
1941
1941
|
config.uiSettings?.showCloseButton !== false && React.createElement(ae, null,
|
|
1942
1942
|
React.createElement(I, { size: "24", icon: "close", iconSize: "16", onClick: handleCloseButtonClick, tabIndex: -1, "data-testid": "io-intent-resolver-close-button" }))),
|
|
1943
|
-
React.createElement(
|
|
1943
|
+
React.createElement(qs.Body, null,
|
|
1944
1944
|
React.createElement("p", { "data-testid": "io-intent-resolver-subtitle", className: "io-text-default-lh16" }, title),
|
|
1945
1945
|
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) }))))));
|
|
1946
1946
|
};
|